]> git.saurik.com Git - wxWidgets.git/blame - configure
Detect when --enable-std_string or --enable-std_iostreams won't work and
[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.
e0d84535 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.6.0.
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'
e0d84535
RL
273PACKAGE_VERSION='2.6.0'
274PACKAGE_STRING='wxWidgets 2.6.0'
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"
83d8eb47 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_MSDOS_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_USE_XRC_1 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_SHARED_1_USE_XRC_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
e0d84535 797\`configure' configures wxWidgets 2.6.0 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
e0d84535 863 short | recursive ) echo "Configuration of wxWidgets 2.6.0:";;
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
f34ca037 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
59746b65 929 --enable-std_string use standard C++ string classes
07158944 930 --enable-stdpaths use wxStandardPaths class
a848cd7e 931 --enable-stopwatch use wxStopWatch class
07158944 932 --enable-streams use wxStream etc classes
a848cd7e
SC
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
3b57de8b 939 --enable-mediactrl use wxMediaCtrl class
77ffb593 940 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 941 --enable-zipstream use wxZip streams
a848cd7e
SC
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
9a8f0513 953 --enable-xrc use XRC resources sub-library
a848cd7e
SC
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
8a7b1113 957 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
646b6ec1 961 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
962 --enable-postscript use wxPostscriptDC device context (default for gtk+)
963 --enable-prologio not available; see contrib
964 --enable-resources not available; see contrib
965 --enable-clipboard use wxClipboard class
966 --enable-dnd use Drag'n'Drop classes
967 --enable-metafile use win32 metafiles
968 --enable-controls use all usual controls
969 --enable-accel use accelerators
970 --enable-button use wxButton class
971 --enable-bmpbutton use wxBitmapButton class
972 --enable-calendar use wxCalendarCtrl class
973 --enable-caret use wxCaret class
974 --enable-checkbox use wxCheckBox class
975 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
976 --enable-choice use wxChoice class
92bbdbcd 977 --enable-choicebook use wxChoicebook class
a848cd7e 978 --enable-combobox use wxComboBox class
da98e9be 979 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
980 --enable-display use wxDisplay class
981 --enable-gauge use wxGauge class
982 --enable-grid use wxGrid class
983 --enable-imaglist use wxImageList class
984 --enable-listbook use wxListbook class
985 --enable-listbox use wxListBox class
986 --enable-listctrl use wxListCtrl class
987 --enable-notebook use wxNotebook class
988 --enable-radiobox use wxRadioBox class
989 --enable-radiobtn use wxRadioButton class
990 --enable-sash use wxSashWindow class
991 --enable-scrollbar use wxScrollBar class and scrollable windows
992 --enable-slider use wxSlider class
993 --enable-spinbtn use wxSpinButton class
994 --enable-spinctrl use wxSpinCtrl class
995 --enable-splitter use wxSplitterWindow class
996 --enable-statbmp use wxStaticBitmap class
997 --enable-statbox use wxStaticBox class
998 --enable-statline use wxStaticLine class
999 --enable-stattext use wxStaticText class
1000 --enable-statusbar use wxStatusBar class
1001 --enable-tabdialog use wxTabControl class
1002 --enable-textctrl use wxTextCtrl class
1003 --enable-togglebtn use wxToggleButton class
1004 --enable-toolbar use wxToolBar class
1005 --enable-tbarnative use native wxToolBar class
1006 --enable-tbarsmpl use wxToolBarSimple class
1007 --enable-treectrl use wxTreeCtrl class
1008 --enable-tipwindow use wxTipWindow class
1009 --enable-popupwin use wxPopUpWindow class
1010 --enable-commondlg use all common dialogs
1011 --enable-choicedlg use wxChoiceDialog
1012 --enable-coldlg use wxColourDialog
1013 --enable-filedlg use wxFileDialog
1014 --enable-finddlg use wxFindReplaceDialog
1015 --enable-fontdlg use wxFontDialog
1016 --enable-dirdlg use wxDirDialog
1017 --enable-msgdlg use wxMessageDialog
1018 --enable-numberdlg use wxNumberEntryDialog
1019 --enable-splash use wxSplashScreen
1020 --enable-textdlg use wxTextDialog
1021 --enable-tipdlg use startup tips
1022 --enable-progressdlg use wxProgressDialog
1023 --enable-wizarddlg use wxWizard
1024 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1025 --enable-miniframe use wxMiniFrame class
1026 --enable-tooltips use wxToolTip class
1027 --enable-splines use spline drawing code
fbe2ca43 1028 --enable-mousewheel use mousewheel
a848cd7e
SC
1029 --enable-validators use wxValidator and derived classes
1030 --enable-busyinfo use wxBusyInfo
4cb1d3da 1031 --enable-joystick use wxJoystick
a848cd7e
SC
1032 --enable-metafiles use wxMetaFile (Windows only)
1033 --enable-dragimage use wxDragImage
1034 --enable-accessibility enable accessibility support
1035 --enable-palette use wxPalette class
1036 --enable-image use wxImage class
1037 --enable-gif use gif images (GIF file format)
1038 --enable-pcx use pcx images (PCX file format)
1039 --enable-iff use iff images (IFF file format)
1040 --enable-pnm use pnm images (PNM file format)
1041 --enable-xpm use xpm images (XPM file format)
1042 --enable-icocur use Windows ICO and CUR formats
77ffb593 1043 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1044 --enable-vendor=VENDOR vendor name (win32 DLL only)
1045 --disable-largefile omit support for large files
1046 --disable-gtktest do not try to compile and run a test GTK+ program
1047 --disable-gtktest Do not try to compile and run a test GTK program
1048 --disable-sdltest Do not try to compile and run a test SDL program
1049 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1050 --disable-precomp-headers
1051 don't use precompiled headers even if compiler can
a848cd7e
SC
1052
1053Optional Packages:
1054 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1055 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f34ca037 1056 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1057 --with-motif use Motif/Lesstif
1058 --with-mac use Mac OS X
1059 --with-cocoa use Cocoa
1060 --with-wine use Wine
1061 --with-msw use MS-Windows
1062 --with-pm use OS/2 Presentation Manager
1063 --with-mgl use SciTech MGL
1064 --with-microwin use MicroWindows
1065 --with-x11 use X11
1066 --with-libpng use libpng (PNG image format)
1067 --with-libjpeg use libjpeg (JPEG file format)
1068 --with-libtiff use libtiff (TIFF file format)
1069 --with-libxpm use libxpm (XPM file format)
1070 --with-libmspack use libmspack (CHM help files loading)
1071 --with-sdl use SDL for audio on Unix
d51253e8 1072 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1073 --with-opengl use OpenGL (or Mesa)
1074 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1075 --with-regex enable support for wxRegEx class
1076 --with-zlib use zlib for LZW compression
1077 --with-odbc use the IODBC and wxODBC classes
1078 --with-expat enable XML support using expat parser
ceec2216 1079 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1080 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1081 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1082 --with-x use the X Window System
1083 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1084 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1085 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1086 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1087 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1088
1089Some influential environment variables:
dcc1b6ad
VS
1090 CC C compiler command
1091 CFLAGS C compiler flags
1092 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1093 nonstandard directory <lib dir>
1094 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1095 headers in a nonstandard directory <include dir>
1096 CPP C preprocessor
1097 CXX C++ compiler command
1098 CXXFLAGS C++ compiler flags
1099 CXXCPP C++ preprocessor
a848cd7e
SC
1100
1101Use these variables to override the choices made by `configure' or to help
1102it to find libraries and programs with nonstandard names/locations.
1103
77ffb593 1104Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1105_ACEOF
1106fi
1107
1108if test "$ac_init_help" = "recursive"; then
1109 # If there are subdirs, report their specific --help.
1110 ac_popdir=`pwd`
1111 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1112 test -d $ac_dir || continue
1113 ac_builddir=.
1114
1115if test "$ac_dir" != .; then
1116 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1117 # A "../" for each directory in $ac_dir_suffix.
1118 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1119else
1120 ac_dir_suffix= ac_top_builddir=
1121fi
1122
1123case $srcdir in
1124 .) # No --srcdir option. We are building in place.
1125 ac_srcdir=.
1126 if test -z "$ac_top_builddir"; then
1127 ac_top_srcdir=.
1128 else
1129 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1130 fi ;;
1131 [\\/]* | ?:[\\/]* ) # Absolute path.
1132 ac_srcdir=$srcdir$ac_dir_suffix;
1133 ac_top_srcdir=$srcdir ;;
1134 *) # Relative path.
1135 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1136 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1137esac
ac1cb8d3
VS
1138
1139# Do not use `cd foo && pwd` to compute absolute paths, because
1140# the directories may not exist.
1141case `pwd` in
1142.) ac_abs_builddir="$ac_dir";;
1143*)
1144 case "$ac_dir" in
1145 .) ac_abs_builddir=`pwd`;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1147 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1148 esac;;
1149esac
1150case $ac_abs_builddir in
1151.) ac_abs_top_builddir=${ac_top_builddir}.;;
1152*)
1153 case ${ac_top_builddir}. in
1154 .) ac_abs_top_builddir=$ac_abs_builddir;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1156 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1157 esac;;
1158esac
1159case $ac_abs_builddir in
1160.) ac_abs_srcdir=$ac_srcdir;;
1161*)
1162 case $ac_srcdir in
1163 .) ac_abs_srcdir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1165 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1166 esac;;
1167esac
1168case $ac_abs_builddir in
1169.) ac_abs_top_srcdir=$ac_top_srcdir;;
1170*)
1171 case $ac_top_srcdir in
1172 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1173 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1174 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1175 esac;;
1176esac
a848cd7e
SC
1177
1178 cd $ac_dir
1179 # Check for guested configure; otherwise get Cygnus style configure.
1180 if test -f $ac_srcdir/configure.gnu; then
1181 echo
1182 $SHELL $ac_srcdir/configure.gnu --help=recursive
1183 elif test -f $ac_srcdir/configure; then
1184 echo
1185 $SHELL $ac_srcdir/configure --help=recursive
1186 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1187 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1188 echo
1189 $ac_configure --help
1190 else
1191 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1192 fi
9dd0f6c2 1193 cd "$ac_popdir"
a848cd7e
SC
1194 done
1195fi
1196
1197test -n "$ac_init_help" && exit 0
1198if $ac_init_version; then
1199 cat <<\_ACEOF
e0d84535 1200wxWidgets configure 2.6.0
ac1cb8d3 1201generated by GNU Autoconf 2.59
a848cd7e 1202
ac1cb8d3 1203Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1204This configure script is free software; the Free Software Foundation
1205gives unlimited permission to copy, distribute and modify it.
1206_ACEOF
1207 exit 0
1208fi
1209exec 5>config.log
1210cat >&5 <<_ACEOF
1211This file contains any messages produced by compilers while
1212running configure, to aid debugging if configure makes a mistake.
1213
e0d84535 1214It was created by wxWidgets $as_me 2.6.0, which was
ac1cb8d3 1215generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1216
1217 $ $0 $@
1218
1219_ACEOF
1220{
1221cat <<_ASUNAME
1222## --------- ##
1223## Platform. ##
1224## --------- ##
1225
1226hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1227uname -m = `(uname -m) 2>/dev/null || echo unknown`
1228uname -r = `(uname -r) 2>/dev/null || echo unknown`
1229uname -s = `(uname -s) 2>/dev/null || echo unknown`
1230uname -v = `(uname -v) 2>/dev/null || echo unknown`
1231
1232/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1233/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1234
1235/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1236/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1237/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1238hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1239/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1240/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1241/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1242
1243_ASUNAME
1244
1245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1246for as_dir in $PATH
1247do
1248 IFS=$as_save_IFS
1249 test -z "$as_dir" && as_dir=.
1250 echo "PATH: $as_dir"
1251done
1252
1253} >&5
1254
1255cat >&5 <<_ACEOF
1256
1257
1258## ----------- ##
1259## Core tests. ##
1260## ----------- ##
1261
1262_ACEOF
1263
1264
1265# Keep a trace of the command line.
1266# Strip out --no-create and --no-recursion so they do not pile up.
1267# Strip out --silent because we don't want to record it for future runs.
1268# Also quote any args containing shell meta-characters.
1269# Make two passes to allow for proper duplicate-argument suppression.
1270ac_configure_args=
1271ac_configure_args0=
1272ac_configure_args1=
1273ac_sep=
1274ac_must_keep_next=false
1275for ac_pass in 1 2
1276do
1277 for ac_arg
1278 do
1279 case $ac_arg in
1280 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282 | -silent | --silent | --silen | --sile | --sil)
1283 continue ;;
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 esac
1287 case $ac_pass in
1288 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1289 2)
1290 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1291 if test $ac_must_keep_next = true; then
ac1cb8d3 1292 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1293 else
ac1cb8d3
VS
1294 case $ac_arg in
1295 *=* | --config-cache | -C | -disable-* | --disable-* \
1296 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1297 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1298 | -with-* | --with-* | -without-* | --without-* | --x)
1299 case "$ac_configure_args0 " in
1300 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1301 esac
1302 ;;
1303 -* ) ac_must_keep_next=true ;;
1304 esac
a848cd7e
SC
1305 fi
1306 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1307 # Get rid of the leading space.
1308 ac_sep=" "
1309 ;;
1310 esac
1311 done
1312done
1313$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1314$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1315
1316# When interrupted or exit'd, cleanup temporary files, and complete
1317# config.log. We remove comments because anyway the quotes in there
1318# would cause problems or look ugly.
1319# WARNING: Be sure not to use single quotes in there, as some shells,
1320# such as our DU 5.0 friend, will then `close' the trap.
1321trap 'exit_status=$?
1322 # Save into config.log some information that might help in debugging.
1323 {
1324 echo
1325
1326 cat <<\_ASBOX
1327## ---------------- ##
1328## Cache variables. ##
1329## ---------------- ##
1330_ASBOX
1331 echo
1332 # The following way of writing the cache mishandles newlines in values,
1333{
1334 (set) 2>&1 |
1335 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1336 *ac_space=\ *)
1337 sed -n \
ac1cb8d3
VS
1338 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1340 ;;
1341 *)
1342 sed -n \
ac1cb8d3 1343 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1344 ;;
1345 esac;
1346}
1347 echo
1348
1349 cat <<\_ASBOX
1350## ----------------- ##
1351## Output variables. ##
1352## ----------------- ##
1353_ASBOX
1354 echo
1355 for ac_var in $ac_subst_vars
1356 do
1357 eval ac_val=$`echo $ac_var`
1358 echo "$ac_var='"'"'$ac_val'"'"'"
1359 done | sort
1360 echo
1361
1362 if test -n "$ac_subst_files"; then
1363 cat <<\_ASBOX
1364## ------------- ##
1365## Output files. ##
1366## ------------- ##
1367_ASBOX
1368 echo
1369 for ac_var in $ac_subst_files
1370 do
1371 eval ac_val=$`echo $ac_var`
ac1cb8d3 1372 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1373 done | sort
1374 echo
1375 fi
1376
1377 if test -s confdefs.h; then
1378 cat <<\_ASBOX
1379## ----------- ##
1380## confdefs.h. ##
1381## ----------- ##
1382_ASBOX
1383 echo
1384 sed "/^$/d" confdefs.h | sort
1385 echo
1386 fi
1387 test "$ac_signal" != 0 &&
1388 echo "$as_me: caught signal $ac_signal"
1389 echo "$as_me: exit $exit_status"
1390 } >&5
ac1cb8d3 1391 rm -f core *.core &&
a848cd7e
SC
1392 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1393 exit $exit_status
1394 ' 0
1395for ac_signal in 1 2 13 15; do
1396 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1397done
1398ac_signal=0
1399
1400# confdefs.h avoids OS command line length limits that DEFS can exceed.
1401rm -rf conftest* confdefs.h
1402# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1403echo >confdefs.h
1404
1405# Predefined preprocessor variables.
1406
1407cat >>confdefs.h <<_ACEOF
1408#define PACKAGE_NAME "$PACKAGE_NAME"
1409_ACEOF
1410
1411
1412cat >>confdefs.h <<_ACEOF
1413#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1414_ACEOF
1415
1416
1417cat >>confdefs.h <<_ACEOF
1418#define PACKAGE_VERSION "$PACKAGE_VERSION"
1419_ACEOF
1420
1421
1422cat >>confdefs.h <<_ACEOF
1423#define PACKAGE_STRING "$PACKAGE_STRING"
1424_ACEOF
1425
1426
1427cat >>confdefs.h <<_ACEOF
1428#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1429_ACEOF
1430
1431
1432# Let the site file select an alternate cache file if it wants to.
1433# Prefer explicitly selected file to automatically selected ones.
1434if test -z "$CONFIG_SITE"; then
1435 if test "x$prefix" != xNONE; then
1436 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1437 else
1438 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1439 fi
1440fi
1441for ac_site_file in $CONFIG_SITE; do
1442 if test -r "$ac_site_file"; then
1443 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1444echo "$as_me: loading site script $ac_site_file" >&6;}
1445 sed 's/^/| /' "$ac_site_file" >&5
1446 . "$ac_site_file"
1447 fi
1448done
1449
1450if test -r "$cache_file"; then
1451 # Some versions of bash will fail to source /dev/null (special
1452 # files actually), so we avoid doing that.
1453 if test -f "$cache_file"; then
1454 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1455echo "$as_me: loading cache $cache_file" >&6;}
1456 case $cache_file in
1457 [\\/]* | ?:[\\/]* ) . $cache_file;;
1458 *) . ./$cache_file;;
1459 esac
1460 fi
1461else
1462 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1463echo "$as_me: creating cache $cache_file" >&6;}
1464 >$cache_file
1465fi
1466
1467# Check that the precious variables saved in the cache have kept the same
1468# value.
1469ac_cache_corrupted=false
1470for ac_var in `(set) 2>&1 |
ac1cb8d3 1471 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1472 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1473 eval ac_new_set=\$ac_env_${ac_var}_set
1474 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1475 eval ac_new_val="\$ac_env_${ac_var}_value"
1476 case $ac_old_set,$ac_new_set in
1477 set,)
1478 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1479echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1480 ac_cache_corrupted=: ;;
1481 ,set)
1482 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1483echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1484 ac_cache_corrupted=: ;;
1485 ,);;
1486 *)
1487 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1488 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1489echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1490 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1491echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1492 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1493echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1494 ac_cache_corrupted=:
a848cd7e
SC
1495 fi;;
1496 esac
1497 # Pass precious variables to config.status.
1498 if test "$ac_new_set" = set; then
1499 case $ac_new_val in
1500 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1501 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1502 *) ac_arg=$ac_var=$ac_new_val ;;
1503 esac
1504 case " $ac_configure_args " in
1505 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1506 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1507 esac
1508 fi
1509done
1510if $ac_cache_corrupted; then
1511 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1512echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1513 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1514echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1515 { (exit 1); exit 1; }; }
1516fi
1517
1518ac_ext=c
1519ac_cpp='$CPP $CPPFLAGS'
1520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1551
1552
1553ac_aux_dir=
1554for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1555 if test -f $ac_dir/install-sh; then
1556 ac_aux_dir=$ac_dir
1557 ac_install_sh="$ac_aux_dir/install-sh -c"
1558 break
1559 elif test -f $ac_dir/install.sh; then
1560 ac_aux_dir=$ac_dir
1561 ac_install_sh="$ac_aux_dir/install.sh -c"
1562 break
1563 elif test -f $ac_dir/shtool; then
1564 ac_aux_dir=$ac_dir
1565 ac_install_sh="$ac_aux_dir/shtool install -c"
1566 break
1567 fi
1568done
1569if test -z "$ac_aux_dir"; then
1570 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1571echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1572 { (exit 1); exit 1; }; }
1573fi
1574ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1577
1578# Make sure we can run config.sub.
1579$ac_config_sub sun4 >/dev/null 2>&1 ||
1580 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1581echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1582 { (exit 1); exit 1; }; }
1583
1584echo "$as_me:$LINENO: checking build system type" >&5
1585echo $ECHO_N "checking build system type... $ECHO_C" >&6
1586if test "${ac_cv_build+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588else
1589 ac_cv_build_alias=$build_alias
1590test -z "$ac_cv_build_alias" &&
1591 ac_cv_build_alias=`$ac_config_guess`
1592test -z "$ac_cv_build_alias" &&
1593 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1594echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1595 { (exit 1); exit 1; }; }
1596ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1597 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1598echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1599 { (exit 1); exit 1; }; }
1600
1601fi
1602echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1603echo "${ECHO_T}$ac_cv_build" >&6
1604build=$ac_cv_build
1605build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1606build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1607build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1608
1609
1610echo "$as_me:$LINENO: checking host system type" >&5
1611echo $ECHO_N "checking host system type... $ECHO_C" >&6
1612if test "${ac_cv_host+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1614else
1615 ac_cv_host_alias=$host_alias
1616test -z "$ac_cv_host_alias" &&
1617 ac_cv_host_alias=$ac_cv_build_alias
1618ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1619 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1620echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1621 { (exit 1); exit 1; }; }
1622
1623fi
1624echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1625echo "${ECHO_T}$ac_cv_host" >&6
1626host=$ac_cv_host
1627host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630
1631
1632echo "$as_me:$LINENO: checking target system type" >&5
1633echo $ECHO_N "checking target system type... $ECHO_C" >&6
1634if test "${ac_cv_target+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1636else
1637 ac_cv_target_alias=$target_alias
1638test "x$ac_cv_target_alias" = "x" &&
1639 ac_cv_target_alias=$ac_cv_host_alias
1640ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1641 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1642echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1643 { (exit 1); exit 1; }; }
1644
1645fi
1646echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1647echo "${ECHO_T}$ac_cv_target" >&6
1648target=$ac_cv_target
1649target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1650target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1651target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1652
1653
1654# The aliases save the names the user supplied, while $host etc.
1655# will get canonicalized.
1656test -n "$target_alias" &&
1657 test "$program_prefix$program_suffix$program_transform_name" = \
1658 NONENONEs,x,x, &&
1659 program_prefix=${target_alias}-
1660
1661
1662
ceec2216 1663wx_major_version_number=2
e0d84535
RL
1664wx_minor_version_number=6
1665wx_release_number=0
d26fbe54 1666wx_subrelease_number=1
a848cd7e 1667
ceec2216
RL
1668WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1669WX_VERSION=$WX_RELEASE.$wx_release_number
1670WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1671
ceec2216 1672WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1673
e0d84535 1674WX_CURRENT=0
a848cd7e 1675WX_REVISION=0
e0d84535 1676WX_AGE=0
a848cd7e
SC
1677
1678
1679
1680USE_UNIX=1
1681USE_OS2=0
1682USE_WIN32=0
1683USE_DOS=0
1684USE_BEOS=0
1685USE_MAC=0
1686
1687USE_AIX=
1688USE_BSD= USE_DARWIN= USE_FREEBSD=
1689USE_GNU= USE_HPUX=
1690USE_LINUX=
1691USE_NETBSD=
1692USE_OPENBSD=
1693USE_OSF= USE_SGI=
1694USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1695USE_ULTRIX=
1696USE_UNIXWARE=
1697
1698USE_ALPHA=
1699
1700NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1701
1702ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1703
1704DEFAULT_wxUSE_COCOA=0
1705DEFAULT_wxUSE_GTK=0
1706DEFAULT_wxUSE_MAC=0
1707DEFAULT_wxUSE_MGL=0
1708DEFAULT_wxUSE_MICROWIN=0
1709DEFAULT_wxUSE_MOTIF=0
1710DEFAULT_wxUSE_MSW=0
1711DEFAULT_wxUSE_PM=0
1712DEFAULT_wxUSE_X11=0
1713
1714DEFAULT_DEFAULT_wxUSE_COCOA=0
1715DEFAULT_DEFAULT_wxUSE_GTK=0
1716DEFAULT_DEFAULT_wxUSE_MAC=0
1717DEFAULT_DEFAULT_wxUSE_MGL=0
1718DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1719DEFAULT_DEFAULT_wxUSE_MOTIF=0
1720DEFAULT_DEFAULT_wxUSE_MSW=0
1721DEFAULT_DEFAULT_wxUSE_PM=0
1722DEFAULT_DEFAULT_wxUSE_X11=0
1723
1724PROGRAM_EXT=
1725SO_SUFFIX=so
1726SAMPLES_RPATH_FLAG=
1727SAMPLES_RPATH_POSTLINK=
1728
a03b8b04
RD
1729DEFAULT_STD_FLAG=yes
1730
a848cd7e
SC
1731case "${host}" in
1732 *-hp-hpux* )
1733 USE_HPUX=1
1734 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1735 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1736 SO_SUFFIX=sl
1737 cat >>confdefs.h <<\_ACEOF
1738#define __HPUX__ 1
1739_ACEOF
1740
1741 ;;
1742 *-*-linux* )
1743 USE_LINUX=1
1744 cat >>confdefs.h <<\_ACEOF
1745#define __LINUX__ 1
1746_ACEOF
1747
1748 TMP=`uname -m`
1749 if test "x$TMP" = "xalpha"; then
1750 USE_ALPHA=1
1751 cat >>confdefs.h <<\_ACEOF
1752#define __ALPHA__ 1
1753_ACEOF
1754
1755 fi
1756 DEFAULT_DEFAULT_wxUSE_GTK=1
1757 ;;
1758 *-*-gnu* | *-*-k*bsd*-gnu )
1759 USE_GNU=1
1760 TMP=`uname -m`
1761 if test "x$TMP" = "xalpha"; then
1762 USE_ALPHA=1
1763 cat >>confdefs.h <<\_ACEOF
1764#define __ALPHA__ 1
1765_ACEOF
1766
1767 fi
1768 DEFAULT_DEFAULT_wxUSE_GTK=1
1769 ;;
1770 *-*-irix5* | *-*-irix6* )
1771 USE_SGI=1
1772 USE_SVR4=1
1773 cat >>confdefs.h <<\_ACEOF
1774#define __SGI__ 1
1775_ACEOF
1776
1777 cat >>confdefs.h <<\_ACEOF
1778#define __SVR4__ 1
1779_ACEOF
1780
1781 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1782 ;;
1783 *-*-solaris2* )
1784 USE_SUN=1
1785 USE_SOLARIS=1
1786 USE_SVR4=1
1787 cat >>confdefs.h <<\_ACEOF
1788#define __SUN__ 1
1789_ACEOF
1790
1791 cat >>confdefs.h <<\_ACEOF
1792#define __SOLARIS__ 1
1793_ACEOF
1794
1795 cat >>confdefs.h <<\_ACEOF
1796#define __SVR4__ 1
1797_ACEOF
1798
1799 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1800 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1801 ;;
1802 *-*-sunos4* )
1803 USE_SUN=1
1804 USE_SUNOS=1
1805 USE_BSD=1
1806 cat >>confdefs.h <<\_ACEOF
1807#define __SUN__ 1
1808_ACEOF
1809
1810 cat >>confdefs.h <<\_ACEOF
1811#define __SUNOS__ 1
1812_ACEOF
1813
1814 cat >>confdefs.h <<\_ACEOF
1815#define __BSD__ 1
1816_ACEOF
1817
1818 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1819 ;;
1820 *-*-freebsd*)
1821 USE_BSD=1
1822 USE_FREEBSD=1
1823 cat >>confdefs.h <<\_ACEOF
1824#define __FREEBSD__ 1
1825_ACEOF
1826
1827 cat >>confdefs.h <<\_ACEOF
1828#define __BSD__ 1
1829_ACEOF
1830
1831 DEFAULT_DEFAULT_wxUSE_GTK=1
1832 ;;
1833 *-*-openbsd*)
1834 USE_BSD=1
1835 USE_OPENBSD=1
1836 cat >>confdefs.h <<\_ACEOF
1837#define __OPENBSD__ 1
1838_ACEOF
1839
1840 cat >>confdefs.h <<\_ACEOF
1841#define __BSD__ 1
1842_ACEOF
1843
1844 DEFAULT_DEFAULT_wxUSE_GTK=1
1845 ;;
1846 *-*-netbsd*)
1847 USE_BSD=1
1848 USE_NETBSD=1
1849 cat >>confdefs.h <<\_ACEOF
1850#define __NETBSD__ 1
1851_ACEOF
1852
1853 cat >>confdefs.h <<\_ACEOF
1854#define __BSD__ 1
1855_ACEOF
1856
1857 DEFAULT_DEFAULT_wxUSE_GTK=1
1858 ;;
1859 *-*-osf* )
1860 USE_ALPHA=1
1861 USE_OSF=1
1862 cat >>confdefs.h <<\_ACEOF
1863#define __ALPHA__ 1
1864_ACEOF
1865
1866 cat >>confdefs.h <<\_ACEOF
1867#define __OSF__ 1
1868_ACEOF
1869
1870 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1871 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1872 ;;
1873 *-*-dgux5* )
1874 USE_ALPHA=1
1875 USE_SVR4=1
1876 cat >>confdefs.h <<\_ACEOF
1877#define __ALPHA__ 1
1878_ACEOF
1879
1880 cat >>confdefs.h <<\_ACEOF
1881#define __SVR4__ 1
1882_ACEOF
1883
1884 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1885 ;;
1886 *-*-sysv5* )
1887 USE_SYSV=1
1888 USE_SVR4=1
1889 cat >>confdefs.h <<\_ACEOF
1890#define __SYSV__ 1
1891_ACEOF
1892
1893 cat >>confdefs.h <<\_ACEOF
1894#define __SVR4__ 1
1895_ACEOF
1896
1897 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1898 ;;
1899 *-*-aix* )
1900 USE_AIX=1
1901 USE_SYSV=1
1902 USE_SVR4=1
1903 SO_SUFFIX=a
1904 cat >>confdefs.h <<\_ACEOF
1905#define __AIX__ 1
1906_ACEOF
1907
1908 cat >>confdefs.h <<\_ACEOF
1909#define __SYSV__ 1
1910_ACEOF
1911
1912 cat >>confdefs.h <<\_ACEOF
1913#define __SVR4__ 1
1914_ACEOF
1915
1916 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1917 ;;
1918
1919 *-*-*UnixWare*)
1920 USE_SYSV=1
1921 USE_SVR4=1
1922 USE_UNIXWARE=1
1923 cat >>confdefs.h <<\_ACEOF
1924#define __UNIXWARE__ 1
1925_ACEOF
1926
1927 ;;
1928
1929 *-*-cygwin* | *-*-mingw32* )
1930 SO_SUFFIX=dll
1931 PROGRAM_EXT=".exe"
1932 RESCOMP=windres
1933 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1934 DEFAULT_STD_FLAG=no
a848cd7e
SC
1935 ;;
1936
1937 *-pc-msdosdjgpp )
1938 USE_UNIX=0
1939 USE_DOS=1
1940 cat >>confdefs.h <<\_ACEOF
1941#define __DOS__ 1
1942_ACEOF
1943
1944 PROGRAM_EXT=".exe"
1945 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1946 ;;
1947
1948 *-pc-os2_emx | *-pc-os2-emx )
1949 cat >>confdefs.h <<\_ACEOF
1950#define __EMX__ 1
1951_ACEOF
1952
1953 USE_OS2=1
1954 cat >>confdefs.h <<\_ACEOF
1955#define __OS2__ 1
1956_ACEOF
1957
1958 PROGRAM_EXT=".exe"
1959 DEFAULT_DEFAULT_wxUSE_PM=1
1960 CXX=gcc
1961 LDFLAGS="$LDFLAGS -Zcrtdll"
1962 ac_executable_extensions=".exe"
1963 export ac_executable_extensions
1964 ac_save_IFS="$IFS"
1965 IFS='\\'
1966 ac_TEMP_PATH=
1967 for ac_dir in $PATH; do
1968 IFS=$ac_save_IFS
1969 if test -z "$ac_TEMP_PATH"; then
1970 ac_TEMP_PATH="$ac_dir"
1971 else
1972 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1973 fi
1974 done
1975 export PATH="$ac_TEMP_PATH"
1976 unset ac_TEMP_PATH
a03b8b04 1977 DEFAULT_STD_FLAG=no
a848cd7e
SC
1978 ;;
1979
1980 powerpc-*-darwin* )
1981 USE_BSD=1
1982 USE_DARWIN=1
1983 SO_SUFFIX=dylib
1984 cat >>confdefs.h <<\_ACEOF
1985#define __BSD__ 1
1986_ACEOF
1987
1988 cat >>confdefs.h <<\_ACEOF
1989#define __DARWIN__ 1
a848cd7e
SC
1990_ACEOF
1991
1992 cat >>confdefs.h <<\_ACEOF
1993#define TARGET_CARBON 1
1994_ACEOF
1995
1996 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1997 DEFAULT_STD_FLAG=no
a848cd7e 1998 ;;
1e9e8aba
DE
1999 powerpc-apple-macos* )
2000 USE_UNIX=0
2001 ac_cv_c_bigendian=yes
2002 SO_SUFFIX=shlib
2003 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2004 DEFAULT_STD_FLAG=no
1e9e8aba 2005 ;;
a848cd7e
SC
2006
2007 *-*-beos* )
2008 USE_BEOS=1
2009 cat >>confdefs.h <<\_ACEOF
2010#define __BEOS__ 1
2011_ACEOF
2012
2013 ;;
2014
2015 *)
2016 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2017echo "$as_me: error: unknown system type ${host}." >&2;}
2018 { (exit 1); exit 1; }; }
2019esac
2020
2021
2022
2023
2024 wx_arg_cache_file="configarg.cache"
2025 echo "loading argument cache $wx_arg_cache_file"
2026 rm -f ${wx_arg_cache_file}.tmp
2027 touch ${wx_arg_cache_file}.tmp
2028 touch ${wx_arg_cache_file}
2029
2030
2031DEBUG_CONFIGURE=0
2032if test $DEBUG_CONFIGURE = 1; then
2033 DEFAULT_wxUSE_UNIVERSAL=no
2034 DEFAULT_wxUSE_STL=no
2035
2036 DEFAULT_wxUSE_NANOX=no
2037
2038 DEFAULT_wxUSE_THREADS=yes
2039
2040 DEFAULT_wxUSE_SHARED=yes
2041 DEFAULT_wxUSE_OPTIMISE=no
2042 DEFAULT_wxUSE_PROFILE=no
2043 DEFAULT_wxUSE_NO_DEPS=no
2044 DEFAULT_wxUSE_NO_RTTI=no
2045 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2046 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2047 DEFAULT_wxUSE_PERMISSIVE=no
2048 DEFAULT_wxUSE_DEBUG_FLAG=yes
2049 DEFAULT_wxUSE_DEBUG_INFO=yes
2050 DEFAULT_wxUSE_DEBUG_GDB=yes
2051 DEFAULT_wxUSE_MEM_TRACING=no
2052 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2053 DEFAULT_wxUSE_DMALLOC=no
2054 DEFAULT_wxUSE_APPLE_IEEE=no
2055
2056 DEFAULT_wxUSE_EXCEPTIONS=no
2057 DEFAULT_wxUSE_LOG=yes
2058 DEFAULT_wxUSE_LOGWINDOW=no
2059 DEFAULT_wxUSE_LOGGUI=no
2060 DEFAULT_wxUSE_LOGDIALOG=no
2061
2062 DEFAULT_wxUSE_GUI=yes
2063 DEFAULT_wxUSE_CONTROLS=no
2064
2065 DEFAULT_wxUSE_REGEX=no
2066 DEFAULT_wxUSE_XML=no
2067 DEFAULT_wxUSE_EXPAT=no
2068 DEFAULT_wxUSE_ZLIB=no
2069 DEFAULT_wxUSE_LIBPNG=no
2070 DEFAULT_wxUSE_LIBJPEG=no
2071 DEFAULT_wxUSE_LIBTIFF=no
2072 DEFAULT_wxUSE_LIBXPM=no
2073 DEFAULT_wxUSE_LIBMSPACK=no
2074 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2075 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2076 DEFAULT_wxUSE_ODBC=no
2077 DEFAULT_wxUSE_OPENGL=no
2078
2079 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2080 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2081 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2082 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2083 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2084 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2085 DEFAULT_wxUSE_CMDLINE_PARSER=no
2086 DEFAULT_wxUSE_DATETIME=no
2087 DEFAULT_wxUSE_TIMER=no
2088 DEFAULT_wxUSE_STOPWATCH=no
2089 DEFAULT_wxUSE_FILE=no
2090 DEFAULT_wxUSE_FFILE=no
07158944 2091 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2092 DEFAULT_wxUSE_TEXTBUFFER=no
2093 DEFAULT_wxUSE_TEXTFILE=no
2094 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2095 DEFAULT_wxUSE_MEDIACTRL=no
2096 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2097 DEFAULT_wxUSE_INTL=no
2098 DEFAULT_wxUSE_CONFIG=no
2099 DEFAULT_wxUSE_FONTMAP=no
2100 DEFAULT_wxUSE_STREAMS=no
2101 DEFAULT_wxUSE_SOCKETS=no
2102 DEFAULT_wxUSE_OLE=no
2103 DEFAULT_wxUSE_DATAOBJ=no
2104 DEFAULT_wxUSE_DIALUP_MANAGER=no
2105 DEFAULT_wxUSE_JOYSTICK=no
2106 DEFAULT_wxUSE_DYNLIB_CLASS=no
2107 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2108 DEFAULT_wxUSE_LONGLONG=no
2109 DEFAULT_wxUSE_GEOMETRY=no
2110
2111 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2112 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2113 DEFAULT_wxUSE_POSTSCRIPT=no
2114
2115 DEFAULT_wxUSE_CLIPBOARD=no
2116 DEFAULT_wxUSE_TOOLTIPS=no
2117 DEFAULT_wxUSE_DRAG_AND_DROP=no
2118 DEFAULT_wxUSE_DRAGIMAGE=no
2119 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2120 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2121
8a7b1113 2122 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2123 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2124 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2125 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2126
2127 DEFAULT_wxUSE_RESOURCES=no
2128 DEFAULT_wxUSE_CONSTRAINTS=no
2129 DEFAULT_wxUSE_IPC=no
2130 DEFAULT_wxUSE_HELP=no
2131 DEFAULT_wxUSE_MS_HTML_HELP=no
2132 DEFAULT_wxUSE_WXHTML_HELP=no
2133 DEFAULT_wxUSE_TREELAYOUT=no
2134 DEFAULT_wxUSE_METAFILE=no
2135 DEFAULT_wxUSE_MIMETYPE=no
2136 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2137 DEFAULT_wxUSE_PROTOCOL=no
2138 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2139 DEFAULT_wxUSE_PROTOCOL_FTP=no
2140 DEFAULT_wxUSE_PROTOCOL_FILE=no
2141 DEFAULT_wxUSE_URL=no
2142
2143 DEFAULT_wxUSE_COMMONDLGS=no
2144 DEFAULT_wxUSE_CHOICEDLG=no
2145 DEFAULT_wxUSE_COLOURDLG=no
2146 DEFAULT_wxUSE_DIRDLG=no
2147 DEFAULT_wxUSE_FILEDLG=no
2148 DEFAULT_wxUSE_FINDREPLDLG=no
2149 DEFAULT_wxUSE_FONTDLG=no
2150 DEFAULT_wxUSE_MSGDLG=no
2151 DEFAULT_wxUSE_NUMBERDLG=no
2152 DEFAULT_wxUSE_TEXTDLG=no
2153 DEFAULT_wxUSE_SPLASH=no
2154 DEFAULT_wxUSE_STARTUP_TIPS=no
2155 DEFAULT_wxUSE_PROGRESSDLG=no
2156 DEFAULT_wxUSE_WIZARDDLG=no
2157
2158 DEFAULT_wxUSE_MENUS=no
2159 DEFAULT_wxUSE_MINIFRAME=no
2160 DEFAULT_wxUSE_HTML=no
9a8f0513 2161 DEFAULT_wxUSE_XRC=no
646b6ec1 2162 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2163 DEFAULT_wxUSE_FILESYSTEM=no
2164 DEFAULT_wxUSE_FS_INET=no
2165 DEFAULT_wxUSE_FS_ZIP=no
2166 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2167 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2168 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2169 DEFAULT_wxUSE_VALIDATORS=no
2170
2171 DEFAULT_wxUSE_ACCEL=no
2172 DEFAULT_wxUSE_BUTTON=no
2173 DEFAULT_wxUSE_BMPBUTTON=no
2174 DEFAULT_wxUSE_CALCTRL=no
2175 DEFAULT_wxUSE_CARET=no
2176 DEFAULT_wxUSE_CHECKBOX=no
2177 DEFAULT_wxUSE_CHECKLST=no
2178 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2179 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2180 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2181 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2182 DEFAULT_wxUSE_DISPLAY=no
2183 DEFAULT_wxUSE_GAUGE=no
2184 DEFAULT_wxUSE_GRID=no
2185 DEFAULT_wxUSE_IMAGLIST=no
2186 DEFAULT_wxUSE_LISTBOOK=no
2187 DEFAULT_wxUSE_LISTBOX=no
2188 DEFAULT_wxUSE_LISTCTRL=no
2189 DEFAULT_wxUSE_NOTEBOOK=no
2190 DEFAULT_wxUSE_RADIOBOX=no
2191 DEFAULT_wxUSE_RADIOBTN=no
2192 DEFAULT_wxUSE_SASH=no
2193 DEFAULT_wxUSE_SCROLLBAR=no
2194 DEFAULT_wxUSE_SLIDER=no
2195 DEFAULT_wxUSE_SPINBTN=no
2196 DEFAULT_wxUSE_SPINCTRL=no
2197 DEFAULT_wxUSE_SPLITTER=no
2198 DEFAULT_wxUSE_STATBMP=no
2199 DEFAULT_wxUSE_STATBOX=no
2200 DEFAULT_wxUSE_STATLINE=no
2201 DEFAULT_wxUSE_STATTEXT=no
2202 DEFAULT_wxUSE_STATUSBAR=yes
2203 DEFAULT_wxUSE_TABDIALOG=no
2204 DEFAULT_wxUSE_TEXTCTRL=no
2205 DEFAULT_wxUSE_TOGGLEBTN=no
2206 DEFAULT_wxUSE_TOOLBAR=no
2207 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2208 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2209 DEFAULT_wxUSE_TREECTRL=no
2210 DEFAULT_wxUSE_POPUPWIN=no
2211 DEFAULT_wxUSE_TIPWINDOW=no
2212
2213 DEFAULT_wxUSE_UNICODE=no
2214 DEFAULT_wxUSE_UNICODE_MSLU=no
2215 DEFAULT_wxUSE_WCSRTOMBS=no
2216
2217 DEFAULT_wxUSE_PALETTE=no
2218 DEFAULT_wxUSE_IMAGE=no
2219 DEFAULT_wxUSE_GIF=no
2220 DEFAULT_wxUSE_PCX=no
2221 DEFAULT_wxUSE_PNM=no
2222 DEFAULT_wxUSE_IFF=no
2223 DEFAULT_wxUSE_XPM=no
2224 DEFAULT_wxUSE_ICO_CUR=no
2225 DEFAULT_wxUSE_ACCESSIBILITY=no
2226
2227 DEFAULT_wxUSE_MONOLITHIC=no
2228 DEFAULT_wxUSE_PLUGINS=no
2229 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2230else
2231 DEFAULT_wxUSE_UNIVERSAL=no
2232 DEFAULT_wxUSE_STL=no
2233
2234 DEFAULT_wxUSE_NANOX=no
2235
2236 DEFAULT_wxUSE_THREADS=yes
2237
2238 DEFAULT_wxUSE_SHARED=yes
2239 DEFAULT_wxUSE_OPTIMISE=yes
2240 DEFAULT_wxUSE_PROFILE=no
2241 DEFAULT_wxUSE_NO_DEPS=no
2242 DEFAULT_wxUSE_NO_RTTI=no
2243 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2244 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2245 DEFAULT_wxUSE_PERMISSIVE=no
2246 DEFAULT_wxUSE_DEBUG_FLAG=no
2247 DEFAULT_wxUSE_DEBUG_INFO=no
2248 DEFAULT_wxUSE_DEBUG_GDB=no
2249 DEFAULT_wxUSE_MEM_TRACING=no
2250 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2251 DEFAULT_wxUSE_DMALLOC=no
2252 DEFAULT_wxUSE_APPLE_IEEE=yes
2253
2254 DEFAULT_wxUSE_EXCEPTIONS=yes
2255 DEFAULT_wxUSE_LOG=yes
2256 DEFAULT_wxUSE_LOGWINDOW=yes
2257 DEFAULT_wxUSE_LOGGUI=yes
2258 DEFAULT_wxUSE_LOGDIALOG=yes
2259
2260 DEFAULT_wxUSE_GUI=yes
2261
2262 DEFAULT_wxUSE_REGEX=yes
2263 DEFAULT_wxUSE_XML=yes
2264 DEFAULT_wxUSE_EXPAT=yes
2265 DEFAULT_wxUSE_ZLIB=yes
2266 DEFAULT_wxUSE_LIBPNG=yes
2267 DEFAULT_wxUSE_LIBJPEG=yes
2268 DEFAULT_wxUSE_LIBTIFF=yes
2269 DEFAULT_wxUSE_LIBXPM=yes
2270 DEFAULT_wxUSE_LIBMSPACK=yes
2271 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2272 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2273 DEFAULT_wxUSE_ODBC=no
52cb607e 2274 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2275
2276 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2277 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2278 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2279 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2280 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2281 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2282 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2283 DEFAULT_wxUSE_DATETIME=yes
2284 DEFAULT_wxUSE_TIMER=yes
2285 DEFAULT_wxUSE_STOPWATCH=yes
2286 DEFAULT_wxUSE_FILE=yes
2287 DEFAULT_wxUSE_FFILE=yes
07158944 2288 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2289 DEFAULT_wxUSE_TEXTBUFFER=yes
2290 DEFAULT_wxUSE_TEXTFILE=yes
2291 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2292 DEFAULT_wxUSE_MEDIACTRL=no
2293 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2294 DEFAULT_wxUSE_INTL=yes
2295 DEFAULT_wxUSE_CONFIG=yes
2296 DEFAULT_wxUSE_FONTMAP=yes
2297 DEFAULT_wxUSE_STREAMS=yes
2298 DEFAULT_wxUSE_SOCKETS=yes
2299 DEFAULT_wxUSE_OLE=yes
2300 DEFAULT_wxUSE_DATAOBJ=yes
2301 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2302 DEFAULT_wxUSE_JOYSTICK=yes
2303 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2304 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2305 DEFAULT_wxUSE_LONGLONG=yes
2306 DEFAULT_wxUSE_GEOMETRY=yes
2307
2308 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2309 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2310 DEFAULT_wxUSE_POSTSCRIPT=yes
2311
2312 DEFAULT_wxUSE_CLIPBOARD=yes
2313 DEFAULT_wxUSE_TOOLTIPS=yes
2314 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2315 DEFAULT_wxUSE_DRAGIMAGE=yes
2316 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2317 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2318
8a7b1113 2319 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2320 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2321 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2322 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2323
2324 DEFAULT_wxUSE_RESOURCES=no
2325 DEFAULT_wxUSE_CONSTRAINTS=yes
2326 DEFAULT_wxUSE_IPC=yes
2327 DEFAULT_wxUSE_HELP=yes
2328 DEFAULT_wxUSE_MS_HTML_HELP=yes
2329 DEFAULT_wxUSE_WXHTML_HELP=yes
2330 DEFAULT_wxUSE_TREELAYOUT=yes
2331 DEFAULT_wxUSE_METAFILE=yes
2332 DEFAULT_wxUSE_MIMETYPE=yes
2333 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2334 DEFAULT_wxUSE_PROTOCOL=yes
2335 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2336 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2337 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2338 DEFAULT_wxUSE_URL=yes
2339
2340 DEFAULT_wxUSE_COMMONDLGS=yes
2341 DEFAULT_wxUSE_CHOICEDLG=yes
2342 DEFAULT_wxUSE_COLOURDLG=yes
2343 DEFAULT_wxUSE_DIRDLG=yes
2344 DEFAULT_wxUSE_FILEDLG=yes
2345 DEFAULT_wxUSE_FINDREPLDLG=yes
2346 DEFAULT_wxUSE_FONTDLG=yes
2347 DEFAULT_wxUSE_MSGDLG=yes
2348 DEFAULT_wxUSE_NUMBERDLG=yes
2349 DEFAULT_wxUSE_TEXTDLG=yes
2350 DEFAULT_wxUSE_SPLASH=yes
2351 DEFAULT_wxUSE_STARTUP_TIPS=yes
2352 DEFAULT_wxUSE_PROGRESSDLG=yes
2353 DEFAULT_wxUSE_WIZARDDLG=yes
2354
2355 DEFAULT_wxUSE_MENUS=yes
2356 DEFAULT_wxUSE_MINIFRAME=yes
2357 DEFAULT_wxUSE_HTML=yes
9a8f0513 2358 DEFAULT_wxUSE_XRC=yes
646b6ec1 2359 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2360 DEFAULT_wxUSE_FILESYSTEM=yes
2361 DEFAULT_wxUSE_FS_INET=yes
2362 DEFAULT_wxUSE_FS_ZIP=yes
2363 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2364 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2365 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2366 DEFAULT_wxUSE_VALIDATORS=yes
2367
2368 DEFAULT_wxUSE_ACCEL=yes
2369 DEFAULT_wxUSE_BUTTON=yes
2370 DEFAULT_wxUSE_BMPBUTTON=yes
2371 DEFAULT_wxUSE_CALCTRL=yes
2372 DEFAULT_wxUSE_CARET=yes
2373 DEFAULT_wxUSE_CHECKBOX=yes
2374 DEFAULT_wxUSE_CHECKLST=yes
2375 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2376 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2377 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2378 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2379 DEFAULT_wxUSE_DISPLAY=yes
2380 DEFAULT_wxUSE_GAUGE=yes
2381 DEFAULT_wxUSE_GRID=yes
2382 DEFAULT_wxUSE_IMAGLIST=yes
2383 DEFAULT_wxUSE_LISTBOOK=yes
2384 DEFAULT_wxUSE_LISTBOX=yes
2385 DEFAULT_wxUSE_LISTCTRL=yes
2386 DEFAULT_wxUSE_NOTEBOOK=yes
2387 DEFAULT_wxUSE_RADIOBOX=yes
2388 DEFAULT_wxUSE_RADIOBTN=yes
2389 DEFAULT_wxUSE_SASH=yes
2390 DEFAULT_wxUSE_SCROLLBAR=yes
2391 DEFAULT_wxUSE_SLIDER=yes
2392 DEFAULT_wxUSE_SPINBTN=yes
2393 DEFAULT_wxUSE_SPINCTRL=yes
2394 DEFAULT_wxUSE_SPLITTER=yes
2395 DEFAULT_wxUSE_STATBMP=yes
2396 DEFAULT_wxUSE_STATBOX=yes
2397 DEFAULT_wxUSE_STATLINE=yes
2398 DEFAULT_wxUSE_STATTEXT=yes
2399 DEFAULT_wxUSE_STATUSBAR=yes
2400 DEFAULT_wxUSE_TABDIALOG=no
2401 DEFAULT_wxUSE_TEXTCTRL=yes
2402 DEFAULT_wxUSE_TOGGLEBTN=yes
2403 DEFAULT_wxUSE_TOOLBAR=yes
2404 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2405 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2406 DEFAULT_wxUSE_TREECTRL=yes
2407 DEFAULT_wxUSE_POPUPWIN=yes
2408 DEFAULT_wxUSE_TIPWINDOW=yes
2409
78de529b 2410 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2411 DEFAULT_wxUSE_UNICODE_MSLU=yes
2412 DEFAULT_wxUSE_WCSRTOMBS=no
2413
2414 DEFAULT_wxUSE_PALETTE=yes
2415 DEFAULT_wxUSE_IMAGE=yes
2416 DEFAULT_wxUSE_GIF=yes
2417 DEFAULT_wxUSE_PCX=yes
2418 DEFAULT_wxUSE_IFF=no
2419 DEFAULT_wxUSE_PNM=yes
2420 DEFAULT_wxUSE_XPM=yes
2421 DEFAULT_wxUSE_ICO_CUR=yes
2422 DEFAULT_wxUSE_ACCESSIBILITY=no
2423
2424 DEFAULT_wxUSE_MONOLITHIC=no
2425 DEFAULT_wxUSE_PLUGINS=no
2426 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2427
f34ca037 2428 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2429fi
2430
2431
2432
f34ca037 2433
a848cd7e
SC
2434for toolkit in `echo $ALL_TOOLKITS`; do
2435 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2436 if test "x$LINE" != "x" ; then
2437 has_toolkit_in_cache=1
2438 eval "DEFAULT_$LINE"
2439 eval "CACHE_$toolkit=1"
f34ca037
MW
2440
2441 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2442 if test "x$LINE" != "x" ; then
2443 eval "DEFAULT_$LINE"
2444 fi
a848cd7e
SC
2445 fi
2446done
2447
2448
2449
2450 enablestring=
2451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2452echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2453 no_cache=0
2454 # Check whether --enable-gui or --disable-gui was given.
2455if test "${enable_gui+set}" = set; then
2456 enableval="$enable_gui"
2457
2458 if test "$enableval" = yes; then
2459 ac_cv_use_gui='wxUSE_GUI=yes'
2460 else
2461 ac_cv_use_gui='wxUSE_GUI=no'
2462 fi
2463
2464else
2465
2466 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2467 if test "x$LINE" != x ; then
2468 eval "DEFAULT_$LINE"
2469 else
2470 no_cache=1
2471 fi
2472
2473 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2474
2475fi;
2476
2477 eval "$ac_cv_use_gui"
2478 if test "$no_cache" != 1; then
2479 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2480 fi
2481
2482 if test "$wxUSE_GUI" = yes; then
2483 echo "$as_me:$LINENO: result: yes" >&5
2484echo "${ECHO_T}yes" >&6
2485 else
2486 echo "$as_me:$LINENO: result: no" >&5
2487echo "${ECHO_T}no" >&6
2488 fi
2489
2490
2491 enablestring=
2492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2493echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2494 no_cache=0
2495 # Check whether --enable-monolithic or --disable-monolithic was given.
2496if test "${enable_monolithic+set}" = set; then
2497 enableval="$enable_monolithic"
2498
2499 if test "$enableval" = yes; then
2500 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2501 else
2502 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2503 fi
2504
2505else
2506
2507 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2508 if test "x$LINE" != x ; then
2509 eval "DEFAULT_$LINE"
2510 else
2511 no_cache=1
2512 fi
2513
2514 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2515
2516fi;
2517
2518 eval "$ac_cv_use_monolithic"
2519 if test "$no_cache" != 1; then
2520 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2521 fi
2522
2523 if test "$wxUSE_MONOLITHIC" = yes; then
2524 echo "$as_me:$LINENO: result: yes" >&5
2525echo "${ECHO_T}yes" >&6
2526 else
2527 echo "$as_me:$LINENO: result: no" >&5
2528echo "${ECHO_T}no" >&6
2529 fi
2530
2531
2532 enablestring=
2533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2534echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2535 no_cache=0
2536 # Check whether --enable-plugins or --disable-plugins was given.
2537if test "${enable_plugins+set}" = set; then
2538 enableval="$enable_plugins"
2539
2540 if test "$enableval" = yes; then
2541 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2542 else
2543 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2544 fi
2545
2546else
2547
2548 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2549 if test "x$LINE" != x ; then
2550 eval "DEFAULT_$LINE"
2551 else
2552 no_cache=1
2553 fi
2554
2555 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2556
2557fi;
2558
2559 eval "$ac_cv_use_plugins"
2560 if test "$no_cache" != 1; then
2561 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2562 fi
2563
2564 if test "$wxUSE_PLUGINS" = yes; then
2565 echo "$as_me:$LINENO: result: yes" >&5
2566echo "${ECHO_T}yes" >&6
2567 else
2568 echo "$as_me:$LINENO: result: no" >&5
2569echo "${ECHO_T}no" >&6
2570 fi
2571
2572
2573if test "$wxUSE_GUI" = "yes"; then
2574
2575
2576 enablestring=
2577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2578echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2579 no_cache=0
2580 # Check whether --enable-universal or --disable-universal was given.
2581if test "${enable_universal+set}" = set; then
2582 enableval="$enable_universal"
2583
2584 if test "$enableval" = yes; then
2585 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2586 else
2587 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2588 fi
2589
2590else
2591
2592 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2593 if test "x$LINE" != x ; then
2594 eval "DEFAULT_$LINE"
2595 else
2596 no_cache=1
2597 fi
2598
2599 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2600
2601fi;
2602
2603 eval "$ac_cv_use_universal"
2604 if test "$no_cache" != 1; then
2605 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2606 fi
2607
2608 if test "$wxUSE_UNIVERSAL" = yes; then
2609 echo "$as_me:$LINENO: result: yes" >&5
2610echo "${ECHO_T}yes" >&6
2611 else
2612 echo "$as_me:$LINENO: result: no" >&5
2613echo "${ECHO_T}no" >&6
2614 fi
2615
2616
2617# Check whether --with-gtk or --without-gtk was given.
2618if test "${with_gtk+set}" = set; then
2619 withval="$with_gtk"
2620 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2621fi;
2622
2623# Check whether --with-motif or --without-motif was given.
2624if test "${with_motif+set}" = set; then
2625 withval="$with_motif"
2626 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2627fi;
2628
2629# Check whether --with-mac or --without-mac was given.
2630if test "${with_mac+set}" = set; then
2631 withval="$with_mac"
c228d3a4 2632 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2633fi;
2634
2635# Check whether --with-cocoa or --without-cocoa was given.
2636if test "${with_cocoa+set}" = set; then
2637 withval="$with_cocoa"
c228d3a4 2638 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2639fi;
2640
2641# Check whether --with-wine or --without-wine was given.
2642if test "${with_wine+set}" = set; then
2643 withval="$with_wine"
2644 wxUSE_WINE="$withval" CACHE_WINE=1
2645fi;
2646
2647# Check whether --with-msw or --without-msw was given.
2648if test "${with_msw+set}" = set; then
2649 withval="$with_msw"
2650 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2651fi;
2652
2653# Check whether --with-pm or --without-pm was given.
2654if test "${with_pm+set}" = set; then
2655 withval="$with_pm"
2656 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2657fi;
2658
2659# Check whether --with-mgl or --without-mgl was given.
2660if test "${with_mgl+set}" = set; then
2661 withval="$with_mgl"
2662 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2663fi;
2664
2665# Check whether --with-microwin or --without-microwin was given.
2666if test "${with_microwin+set}" = set; then
2667 withval="$with_microwin"
2668 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2669fi;
2670
2671# Check whether --with-x11 or --without-x11 was given.
2672if test "${with_x11+set}" = set; then
2673 withval="$with_x11"
2674 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2675fi;
2676
2677 enablestring=
2678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2679echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2680 no_cache=0
2681 # Check whether --enable-nanox or --disable-nanox was given.
2682if test "${enable_nanox+set}" = set; then
2683 enableval="$enable_nanox"
2684
2685 if test "$enableval" = yes; then
2686 ac_cv_use_nanox='wxUSE_NANOX=yes'
2687 else
2688 ac_cv_use_nanox='wxUSE_NANOX=no'
2689 fi
2690
2691else
2692
2693 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2694 if test "x$LINE" != x ; then
2695 eval "DEFAULT_$LINE"
2696 else
2697 no_cache=1
2698 fi
2699
2700 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2701
2702fi;
2703
2704 eval "$ac_cv_use_nanox"
2705 if test "$no_cache" != 1; then
2706 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2707 fi
2708
2709 if test "$wxUSE_NANOX" = yes; then
2710 echo "$as_me:$LINENO: result: yes" >&5
2711echo "${ECHO_T}yes" >&6
2712 else
2713 echo "$as_me:$LINENO: result: no" >&5
2714echo "${ECHO_T}no" >&6
2715 fi
2716
2717
f34ca037
MW
2718# Check whether --enable-gtk2 or --disable-gtk2 was given.
2719if test "${enable_gtk2+set}" = set; then
2720 enableval="$enable_gtk2"
2721 wxUSE_GTK2="$enableval"
2722fi;
a848cd7e 2723
a848cd7e
SC
2724 enablestring=
2725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2726echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2727 no_cache=0
2728 # Check whether --enable-gpe or --disable-gpe was given.
2729if test "${enable_gpe+set}" = set; then
2730 enableval="$enable_gpe"
2731
2732 if test "$enableval" = yes; then
2733 ac_cv_use_gpe='wxUSE_GPE=yes'
2734 else
2735 ac_cv_use_gpe='wxUSE_GPE=no'
2736 fi
2737
2738else
2739
2740 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2741 if test "x$LINE" != x ; then
2742 eval "DEFAULT_$LINE"
2743 else
2744 no_cache=1
2745 fi
2746
2747 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2748
2749fi;
2750
2751 eval "$ac_cv_use_gpe"
2752 if test "$no_cache" != 1; then
2753 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2754 fi
2755
2756 if test "$wxUSE_GPE" = yes; then
2757 echo "$as_me:$LINENO: result: yes" >&5
2758echo "${ECHO_T}yes" >&6
2759 else
2760 echo "$as_me:$LINENO: result: no" >&5
2761echo "${ECHO_T}no" >&6
2762 fi
2763
2764
2765
2766 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2767echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2768 no_cache=0
2769
2770# Check whether --with-libpng or --without-libpng was given.
2771if test "${with_libpng+set}" = set; then
2772 withval="$with_libpng"
2773
2774 if test "$withval" = yes; then
2775 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2776 elif test "$withval" = no; then
2777 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2778 elif test "$withval" = sys; then
2779 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2780 elif test "$withval" = builtin; then
2781 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2782 else
2783 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2784echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2785 { (exit 1); exit 1; }; }
2786 fi
2787
2788else
2789
2790 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2791 if test "x$LINE" != x ; then
2792 eval "DEFAULT_$LINE"
2793 else
2794 no_cache=1
2795 fi
2796
2797 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2798
2799fi;
2800
2801 eval "$ac_cv_use_libpng"
2802 if test "$no_cache" != 1; then
2803 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2804 fi
2805
2806 if test "$wxUSE_LIBPNG" = yes; then
2807 echo "$as_me:$LINENO: result: yes" >&5
2808echo "${ECHO_T}yes" >&6
2809 elif test "$wxUSE_LIBPNG" = no; then
2810 echo "$as_me:$LINENO: result: no" >&5
2811echo "${ECHO_T}no" >&6
2812 elif test "$wxUSE_LIBPNG" = sys; then
2813 echo "$as_me:$LINENO: result: system version" >&5
2814echo "${ECHO_T}system version" >&6
2815 elif test "$wxUSE_LIBPNG" = builtin; then
2816 echo "$as_me:$LINENO: result: builtin version" >&5
2817echo "${ECHO_T}builtin version" >&6
2818 else
2819 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2820echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2821 { (exit 1); exit 1; }; }
2822 fi
2823
2824
2825 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2826echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2827 no_cache=0
2828
2829# Check whether --with-libjpeg or --without-libjpeg was given.
2830if test "${with_libjpeg+set}" = set; then
2831 withval="$with_libjpeg"
2832
2833 if test "$withval" = yes; then
2834 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2835 elif test "$withval" = no; then
2836 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2837 elif test "$withval" = sys; then
2838 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2839 elif test "$withval" = builtin; then
2840 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2841 else
2842 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2843echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2844 { (exit 1); exit 1; }; }
2845 fi
2846
2847else
2848
2849 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2850 if test "x$LINE" != x ; then
2851 eval "DEFAULT_$LINE"
2852 else
2853 no_cache=1
2854 fi
2855
2856 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2857
2858fi;
2859
2860 eval "$ac_cv_use_libjpeg"
2861 if test "$no_cache" != 1; then
2862 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2863 fi
2864
2865 if test "$wxUSE_LIBJPEG" = yes; then
2866 echo "$as_me:$LINENO: result: yes" >&5
2867echo "${ECHO_T}yes" >&6
2868 elif test "$wxUSE_LIBJPEG" = no; then
2869 echo "$as_me:$LINENO: result: no" >&5
2870echo "${ECHO_T}no" >&6
2871 elif test "$wxUSE_LIBJPEG" = sys; then
2872 echo "$as_me:$LINENO: result: system version" >&5
2873echo "${ECHO_T}system version" >&6
2874 elif test "$wxUSE_LIBJPEG" = builtin; then
2875 echo "$as_me:$LINENO: result: builtin version" >&5
2876echo "${ECHO_T}builtin version" >&6
2877 else
2878 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2879echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2880 { (exit 1); exit 1; }; }
2881 fi
2882
2883
2884 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2885echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2886 no_cache=0
2887
2888# Check whether --with-libtiff or --without-libtiff was given.
2889if test "${with_libtiff+set}" = set; then
2890 withval="$with_libtiff"
2891
2892 if test "$withval" = yes; then
2893 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2894 elif test "$withval" = no; then
2895 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2896 elif test "$withval" = sys; then
2897 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2898 elif test "$withval" = builtin; then
2899 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2900 else
2901 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2902echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2903 { (exit 1); exit 1; }; }
2904 fi
2905
2906else
2907
2908 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2909 if test "x$LINE" != x ; then
2910 eval "DEFAULT_$LINE"
2911 else
2912 no_cache=1
2913 fi
2914
2915 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2916
2917fi;
2918
2919 eval "$ac_cv_use_libtiff"
2920 if test "$no_cache" != 1; then
2921 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2922 fi
2923
2924 if test "$wxUSE_LIBTIFF" = yes; then
2925 echo "$as_me:$LINENO: result: yes" >&5
2926echo "${ECHO_T}yes" >&6
2927 elif test "$wxUSE_LIBTIFF" = no; then
2928 echo "$as_me:$LINENO: result: no" >&5
2929echo "${ECHO_T}no" >&6
2930 elif test "$wxUSE_LIBTIFF" = sys; then
2931 echo "$as_me:$LINENO: result: system version" >&5
2932echo "${ECHO_T}system version" >&6
2933 elif test "$wxUSE_LIBTIFF" = builtin; then
2934 echo "$as_me:$LINENO: result: builtin version" >&5
2935echo "${ECHO_T}builtin version" >&6
2936 else
2937 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2938echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2939 { (exit 1); exit 1; }; }
2940 fi
2941
2942
2943 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2944echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2945 no_cache=0
2946
2947# Check whether --with-libxpm or --without-libxpm was given.
2948if test "${with_libxpm+set}" = set; then
2949 withval="$with_libxpm"
2950
2951 if test "$withval" = yes; then
2952 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2953 elif test "$withval" = no; then
2954 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2955 elif test "$withval" = sys; then
2956 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2957 elif test "$withval" = builtin; then
2958 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2959 else
2960 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2961echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2962 { (exit 1); exit 1; }; }
2963 fi
2964
2965else
2966
2967 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2968 if test "x$LINE" != x ; then
2969 eval "DEFAULT_$LINE"
2970 else
2971 no_cache=1
2972 fi
2973
2974 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2975
2976fi;
2977
2978 eval "$ac_cv_use_libxpm"
2979 if test "$no_cache" != 1; then
2980 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2981 fi
2982
2983 if test "$wxUSE_LIBXPM" = yes; then
2984 echo "$as_me:$LINENO: result: yes" >&5
2985echo "${ECHO_T}yes" >&6
2986 elif test "$wxUSE_LIBXPM" = no; then
2987 echo "$as_me:$LINENO: result: no" >&5
2988echo "${ECHO_T}no" >&6
2989 elif test "$wxUSE_LIBXPM" = sys; then
2990 echo "$as_me:$LINENO: result: system version" >&5
2991echo "${ECHO_T}system version" >&6
2992 elif test "$wxUSE_LIBXPM" = builtin; then
2993 echo "$as_me:$LINENO: result: builtin version" >&5
2994echo "${ECHO_T}builtin version" >&6
2995 else
2996 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2997echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2998 { (exit 1); exit 1; }; }
2999 fi
3000
3001
3002 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3003echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3004 no_cache=0
3005
3006# Check whether --with-libmspack or --without-libmspack was given.
3007if test "${with_libmspack+set}" = set; then
3008 withval="$with_libmspack"
3009
3010 if test "$withval" = yes; then
3011 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3012 else
3013 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3014 fi
3015
3016else
3017
3018 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3019 if test "x$LINE" != x ; then
3020 eval "DEFAULT_$LINE"
3021 else
3022 no_cache=1
3023 fi
3024
3025 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3026
3027fi;
3028
3029 eval "$ac_cv_use_libmspack"
3030 if test "$no_cache" != 1; then
3031 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3032 fi
3033
3034 if test "$wxUSE_LIBMSPACK" = yes; then
3035 echo "$as_me:$LINENO: result: yes" >&5
3036echo "${ECHO_T}yes" >&6
3037 else
3038 echo "$as_me:$LINENO: result: no" >&5
3039echo "${ECHO_T}no" >&6
3040 fi
3041
3042
3043 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3044echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3045 no_cache=0
3046
3047# Check whether --with-sdl or --without-sdl was given.
3048if test "${with_sdl+set}" = set; then
3049 withval="$with_sdl"
3050
3051 if test "$withval" = yes; then
3052 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3053 else
3054 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3055 fi
3056
3057else
3058
3059 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3060 if test "x$LINE" != x ; then
3061 eval "DEFAULT_$LINE"
3062 else
3063 no_cache=1
3064 fi
3065
3066 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3067
3068fi;
3069
3070 eval "$ac_cv_use_sdl"
3071 if test "$no_cache" != 1; then
3072 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3073 fi
3074
3075 if test "$wxUSE_LIBSDL" = yes; then
3076 echo "$as_me:$LINENO: result: yes" >&5
3077echo "${ECHO_T}yes" >&6
3078 else
3079 echo "$as_me:$LINENO: result: no" >&5
3080echo "${ECHO_T}no" >&6
3081 fi
3082
3083
d1c38808
VZ
3084 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3085echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3086 no_cache=0
3087
3088# Check whether --with-gnomeprint or --without-gnomeprint was given.
3089if test "${with_gnomeprint+set}" = set; then
3090 withval="$with_gnomeprint"
3091
3092 if test "$withval" = yes; then
3093 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3094 else
3095 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3096 fi
3097
3098else
3099
3100 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3101 if test "x$LINE" != x ; then
3102 eval "DEFAULT_$LINE"
3103 else
3104 no_cache=1
3105 fi
3106
3107 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3108
3109fi;
3110
3111 eval "$ac_cv_use_gnomeprint"
3112 if test "$no_cache" != 1; then
3113 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3114 fi
3115
3116 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3117 echo "$as_me:$LINENO: result: yes" >&5
3118echo "${ECHO_T}yes" >&6
3119 else
3120 echo "$as_me:$LINENO: result: no" >&5
3121echo "${ECHO_T}no" >&6
3122 fi
3123
3124
a848cd7e
SC
3125 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3126echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3127 no_cache=0
3128
3129# Check whether --with-opengl or --without-opengl was given.
3130if test "${with_opengl+set}" = set; then
3131 withval="$with_opengl"
3132
3133 if test "$withval" = yes; then
3134 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3135 else
3136 ac_cv_use_opengl='wxUSE_OPENGL=no'
3137 fi
3138
3139else
3140
3141 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3142 if test "x$LINE" != x ; then
3143 eval "DEFAULT_$LINE"
3144 else
3145 no_cache=1
3146 fi
3147
3148 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3149
3150fi;
3151
3152 eval "$ac_cv_use_opengl"
3153 if test "$no_cache" != 1; then
3154 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3155 fi
3156
3157 if test "$wxUSE_OPENGL" = yes; then
3158 echo "$as_me:$LINENO: result: yes" >&5
3159echo "${ECHO_T}yes" >&6
3160 else
3161 echo "$as_me:$LINENO: result: no" >&5
3162echo "${ECHO_T}no" >&6
3163 fi
3164
3165
3166fi
3167
3168
3169 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3170echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3171 no_cache=0
3172
3173# Check whether --with-dmalloc or --without-dmalloc was given.
3174if test "${with_dmalloc+set}" = set; then
3175 withval="$with_dmalloc"
3176
3177 if test "$withval" = yes; then
3178 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3179 else
3180 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3181 fi
3182
3183else
3184
3185 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3186 if test "x$LINE" != x ; then
3187 eval "DEFAULT_$LINE"
3188 else
3189 no_cache=1
3190 fi
3191
3192 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3193
3194fi;
3195
3196 eval "$ac_cv_use_dmalloc"
3197 if test "$no_cache" != 1; then
3198 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3199 fi
3200
3201 if test "$wxUSE_DMALLOC" = yes; then
3202 echo "$as_me:$LINENO: result: yes" >&5
3203echo "${ECHO_T}yes" >&6
3204 else
3205 echo "$as_me:$LINENO: result: no" >&5
3206echo "${ECHO_T}no" >&6
3207 fi
3208
3209
3210 echo "$as_me:$LINENO: checking for --with-regex" >&5
3211echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3212 no_cache=0
3213
3214# Check whether --with-regex or --without-regex was given.
3215if test "${with_regex+set}" = set; then
3216 withval="$with_regex"
3217
3218 if test "$withval" = yes; then
3219 ac_cv_use_regex='wxUSE_REGEX=yes'
3220 elif test "$withval" = no; then
3221 ac_cv_use_regex='wxUSE_REGEX=no'
3222 elif test "$withval" = sys; then
3223 ac_cv_use_regex='wxUSE_REGEX=sys'
3224 elif test "$withval" = builtin; then
3225 ac_cv_use_regex='wxUSE_REGEX=builtin'
3226 else
3227 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3228echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3229 { (exit 1); exit 1; }; }
3230 fi
3231
3232else
3233
3234 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3235 if test "x$LINE" != x ; then
3236 eval "DEFAULT_$LINE"
3237 else
3238 no_cache=1
3239 fi
3240
3241 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3242
3243fi;
3244
3245 eval "$ac_cv_use_regex"
3246 if test "$no_cache" != 1; then
3247 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3248 fi
3249
3250 if test "$wxUSE_REGEX" = yes; then
3251 echo "$as_me:$LINENO: result: yes" >&5
3252echo "${ECHO_T}yes" >&6
3253 elif test "$wxUSE_REGEX" = no; then
3254 echo "$as_me:$LINENO: result: no" >&5
3255echo "${ECHO_T}no" >&6
3256 elif test "$wxUSE_REGEX" = sys; then
3257 echo "$as_me:$LINENO: result: system version" >&5
3258echo "${ECHO_T}system version" >&6
3259 elif test "$wxUSE_REGEX" = builtin; then
3260 echo "$as_me:$LINENO: result: builtin version" >&5
3261echo "${ECHO_T}builtin version" >&6
3262 else
3263 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3264echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3265 { (exit 1); exit 1; }; }
3266 fi
3267
3268
3269 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3270echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3271 no_cache=0
3272
3273# Check whether --with-zlib or --without-zlib was given.
3274if test "${with_zlib+set}" = set; then
3275 withval="$with_zlib"
3276
3277 if test "$withval" = yes; then
3278 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3279 elif test "$withval" = no; then
3280 ac_cv_use_zlib='wxUSE_ZLIB=no'
3281 elif test "$withval" = sys; then
3282 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3283 elif test "$withval" = builtin; then
3284 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3285 else
3286 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3287echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3288 { (exit 1); exit 1; }; }
3289 fi
3290
3291else
3292
3293 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3294 if test "x$LINE" != x ; then
3295 eval "DEFAULT_$LINE"
3296 else
3297 no_cache=1
3298 fi
3299
3300 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3301
3302fi;
3303
3304 eval "$ac_cv_use_zlib"
3305 if test "$no_cache" != 1; then
3306 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3307 fi
3308
3309 if test "$wxUSE_ZLIB" = yes; then
3310 echo "$as_me:$LINENO: result: yes" >&5
3311echo "${ECHO_T}yes" >&6
3312 elif test "$wxUSE_ZLIB" = no; then
3313 echo "$as_me:$LINENO: result: no" >&5
3314echo "${ECHO_T}no" >&6
3315 elif test "$wxUSE_ZLIB" = sys; then
3316 echo "$as_me:$LINENO: result: system version" >&5
3317echo "${ECHO_T}system version" >&6
3318 elif test "$wxUSE_ZLIB" = builtin; then
3319 echo "$as_me:$LINENO: result: builtin version" >&5
3320echo "${ECHO_T}builtin version" >&6
3321 else
3322 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3323echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3324 { (exit 1); exit 1; }; }
3325 fi
3326
3327
3328 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3329echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3330 no_cache=0
3331
3332# Check whether --with-odbc or --without-odbc was given.
3333if test "${with_odbc+set}" = set; then
3334 withval="$with_odbc"
3335
3336 if test "$withval" = yes; then
3337 ac_cv_use_odbc='wxUSE_ODBC=yes'
3338 elif test "$withval" = no; then
3339 ac_cv_use_odbc='wxUSE_ODBC=no'
3340 elif test "$withval" = sys; then
3341 ac_cv_use_odbc='wxUSE_ODBC=sys'
3342 elif test "$withval" = builtin; then
3343 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3344 else
3345 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3346echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3347 { (exit 1); exit 1; }; }
3348 fi
3349
3350else
3351
3352 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3353 if test "x$LINE" != x ; then
3354 eval "DEFAULT_$LINE"
3355 else
3356 no_cache=1
3357 fi
3358
3359 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3360
3361fi;
3362
3363 eval "$ac_cv_use_odbc"
3364 if test "$no_cache" != 1; then
3365 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3366 fi
3367
3368 if test "$wxUSE_ODBC" = yes; then
3369 echo "$as_me:$LINENO: result: yes" >&5
3370echo "${ECHO_T}yes" >&6
3371 elif test "$wxUSE_ODBC" = no; then
3372 echo "$as_me:$LINENO: result: no" >&5
3373echo "${ECHO_T}no" >&6
3374 elif test "$wxUSE_ODBC" = sys; then
3375 echo "$as_me:$LINENO: result: system version" >&5
3376echo "${ECHO_T}system version" >&6
3377 elif test "$wxUSE_ODBC" = builtin; then
3378 echo "$as_me:$LINENO: result: builtin version" >&5
3379echo "${ECHO_T}builtin version" >&6
3380 else
3381 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3382echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3383 { (exit 1); exit 1; }; }
3384 fi
3385
3386
3387 echo "$as_me:$LINENO: checking for --with-expat" >&5
3388echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3389 no_cache=0
3390
3391# Check whether --with-expat or --without-expat was given.
3392if test "${with_expat+set}" = set; then
3393 withval="$with_expat"
3394
3395 if test "$withval" = yes; then
3396 ac_cv_use_expat='wxUSE_EXPAT=yes'
3397 elif test "$withval" = no; then
3398 ac_cv_use_expat='wxUSE_EXPAT=no'
3399 elif test "$withval" = sys; then
3400 ac_cv_use_expat='wxUSE_EXPAT=sys'
3401 elif test "$withval" = builtin; then
3402 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3403 else
3404 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3405echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3406 { (exit 1); exit 1; }; }
3407 fi
3408
3409else
3410
3411 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3412 if test "x$LINE" != x ; then
3413 eval "DEFAULT_$LINE"
3414 else
3415 no_cache=1
3416 fi
3417
3418 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3419
3420fi;
3421
3422 eval "$ac_cv_use_expat"
3423 if test "$no_cache" != 1; then
3424 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3425 fi
3426
3427 if test "$wxUSE_EXPAT" = yes; then
3428 echo "$as_me:$LINENO: result: yes" >&5
3429echo "${ECHO_T}yes" >&6
3430 elif test "$wxUSE_EXPAT" = no; then
3431 echo "$as_me:$LINENO: result: no" >&5
3432echo "${ECHO_T}no" >&6
3433 elif test "$wxUSE_EXPAT" = sys; then
3434 echo "$as_me:$LINENO: result: system version" >&5
3435echo "${ECHO_T}system version" >&6
3436 elif test "$wxUSE_EXPAT" = builtin; then
3437 echo "$as_me:$LINENO: result: builtin version" >&5
3438echo "${ECHO_T}builtin version" >&6
3439 else
3440 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3441echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3442 { (exit 1); exit 1; }; }
3443 fi
3444
3445
3446
3447
3448 enablestring=
3449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3450echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3451 no_cache=0
3452 # Check whether --enable-shared or --disable-shared was given.
3453if test "${enable_shared+set}" = set; then
3454 enableval="$enable_shared"
3455
3456 if test "$enableval" = yes; then
3457 ac_cv_use_shared='wxUSE_SHARED=yes'
3458 else
3459 ac_cv_use_shared='wxUSE_SHARED=no'
3460 fi
3461
3462else
3463
3464 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3465 if test "x$LINE" != x ; then
3466 eval "DEFAULT_$LINE"
3467 else
3468 no_cache=1
3469 fi
3470
3471 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3472
3473fi;
3474
3475 eval "$ac_cv_use_shared"
3476 if test "$no_cache" != 1; then
3477 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3478 fi
3479
3480 if test "$wxUSE_SHARED" = yes; then
3481 echo "$as_me:$LINENO: result: yes" >&5
3482echo "${ECHO_T}yes" >&6
3483 else
3484 echo "$as_me:$LINENO: result: no" >&5
3485echo "${ECHO_T}no" >&6
3486 fi
3487
3488
3489 enablestring=
3490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3491echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3492 no_cache=0
3493 # Check whether --enable-optimise or --disable-optimise was given.
3494if test "${enable_optimise+set}" = set; then
3495 enableval="$enable_optimise"
3496
3497 if test "$enableval" = yes; then
3498 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3499 else
3500 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3501 fi
3502
3503else
3504
3505 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3506 if test "x$LINE" != x ; then
3507 eval "DEFAULT_$LINE"
3508 else
3509 no_cache=1
3510 fi
3511
3512 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3513
3514fi;
3515
3516 eval "$ac_cv_use_optimise"
3517 if test "$no_cache" != 1; then
3518 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3519 fi
3520
3521 if test "$wxUSE_OPTIMISE" = yes; then
3522 echo "$as_me:$LINENO: result: yes" >&5
3523echo "${ECHO_T}yes" >&6
3524 else
3525 echo "$as_me:$LINENO: result: no" >&5
3526echo "${ECHO_T}no" >&6
3527 fi
3528
3529
3530 enablestring=
3531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3532echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3533 no_cache=0
3534 # Check whether --enable-debug or --disable-debug was given.
3535if test "${enable_debug+set}" = set; then
3536 enableval="$enable_debug"
3537
3538 if test "$enableval" = yes; then
3539 ac_cv_use_debug='wxUSE_DEBUG=yes'
3540 else
3541 ac_cv_use_debug='wxUSE_DEBUG=no'
3542 fi
3543
3544else
3545
3546 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3547 if test "x$LINE" != x ; then
3548 eval "DEFAULT_$LINE"
3549 else
3550 no_cache=1
3551 fi
3552
3553 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3554
3555fi;
3556
3557 eval "$ac_cv_use_debug"
3558 if test "$no_cache" != 1; then
3559 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3560 fi
3561
3562 if test "$wxUSE_DEBUG" = yes; then
3563 echo "$as_me:$LINENO: result: yes" >&5
3564echo "${ECHO_T}yes" >&6
3565 else
3566 echo "$as_me:$LINENO: result: no" >&5
3567echo "${ECHO_T}no" >&6
3568 fi
3569
3570
3571 enablestring=
3572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3573echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3574 no_cache=0
3575 # Check whether --enable-stl or --disable-stl was given.
3576if test "${enable_stl+set}" = set; then
3577 enableval="$enable_stl"
3578
3579 if test "$enableval" = yes; then
3580 ac_cv_use_stl='wxUSE_STL=yes'
3581 else
3582 ac_cv_use_stl='wxUSE_STL=no'
3583 fi
3584
3585else
3586
3587 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3588 if test "x$LINE" != x ; then
3589 eval "DEFAULT_$LINE"
3590 else
3591 no_cache=1
3592 fi
3593
3594 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3595
3596fi;
3597
3598 eval "$ac_cv_use_stl"
3599 if test "$no_cache" != 1; then
3600 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3601 fi
3602
3603 if test "$wxUSE_STL" = yes; then
3604 echo "$as_me:$LINENO: result: yes" >&5
3605echo "${ECHO_T}yes" >&6
3606 else
3607 echo "$as_me:$LINENO: result: no" >&5
3608echo "${ECHO_T}no" >&6
3609 fi
3610
3611if test "$USE_OS2" = "1"; then
69120ee4 3612 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3613
3614 enablestring=
3615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3616echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3617 no_cache=0
3618 # Check whether --enable-omf or --disable-omf was given.
3619if test "${enable_omf+set}" = set; then
3620 enableval="$enable_omf"
3621
3622 if test "$enableval" = yes; then
3623 ac_cv_use_omf='wxUSE_OMF=yes'
3624 else
3625 ac_cv_use_omf='wxUSE_OMF=no'
3626 fi
3627
3628else
3629
3630 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3631 if test "x$LINE" != x ; then
3632 eval "DEFAULT_$LINE"
3633 else
3634 no_cache=1
3635 fi
3636
3637 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3638
3639fi;
3640
3641 eval "$ac_cv_use_omf"
3642 if test "$no_cache" != 1; then
3643 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3644 fi
3645
3646 if test "$wxUSE_OMF" = yes; then
3647 echo "$as_me:$LINENO: result: yes" >&5
3648echo "${ECHO_T}yes" >&6
3649 else
3650 echo "$as_me:$LINENO: result: no" >&5
3651echo "${ECHO_T}no" >&6
3652 fi
3653
3654fi
3655
3656if test "$wxUSE_DEBUG" = "yes"; then
3657 DEFAULT_wxUSE_DEBUG_FLAG=yes
3658 DEFAULT_wxUSE_DEBUG_INFO=yes
3659 BUILD=debug
3660elif test "$wxUSE_DEBUG" = "no"; then
3661 DEFAULT_wxUSE_DEBUG_FLAG=no
3662 DEFAULT_wxUSE_DEBUG_INFO=no
3663 BUILD=release
3664fi
3665
3666
3667 enablestring=
3668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3669echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3670 no_cache=0
3671 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3672if test "${enable_debug_flag+set}" = set; then
3673 enableval="$enable_debug_flag"
3674
3675 if test "$enableval" = yes; then
3676 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3677 else
3678 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3679 fi
3680
3681else
3682
3683 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3684 if test "x$LINE" != x ; then
3685 eval "DEFAULT_$LINE"
3686 else
3687 no_cache=1
3688 fi
3689
3690 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3691
3692fi;
3693
3694 eval "$ac_cv_use_debug_flag"
3695 if test "$no_cache" != 1; then
3696 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3697 fi
3698
3699 if test "$wxUSE_DEBUG_FLAG" = yes; then
3700 echo "$as_me:$LINENO: result: yes" >&5
3701echo "${ECHO_T}yes" >&6
3702 else
3703 echo "$as_me:$LINENO: result: no" >&5
3704echo "${ECHO_T}no" >&6
3705 fi
3706
3707
3708 enablestring=
3709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3710echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3711 no_cache=0
3712 # Check whether --enable-debug_info or --disable-debug_info was given.
3713if test "${enable_debug_info+set}" = set; then
3714 enableval="$enable_debug_info"
3715
3716 if test "$enableval" = yes; then
3717 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3718 else
3719 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3720 fi
3721
3722else
3723
3724 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3725 if test "x$LINE" != x ; then
3726 eval "DEFAULT_$LINE"
3727 else
3728 no_cache=1
3729 fi
3730
3731 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3732
3733fi;
3734
3735 eval "$ac_cv_use_debug_info"
3736 if test "$no_cache" != 1; then
3737 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3738 fi
3739
3740 if test "$wxUSE_DEBUG_INFO" = yes; then
3741 echo "$as_me:$LINENO: result: yes" >&5
3742echo "${ECHO_T}yes" >&6
3743 else
3744 echo "$as_me:$LINENO: result: no" >&5
3745echo "${ECHO_T}no" >&6
3746 fi
3747
3748
3749 enablestring=
3750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3751echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3752 no_cache=0
3753 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3754if test "${enable_debug_gdb+set}" = set; then
3755 enableval="$enable_debug_gdb"
3756
3757 if test "$enableval" = yes; then
3758 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3759 else
3760 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3761 fi
3762
3763else
3764
3765 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3766 if test "x$LINE" != x ; then
3767 eval "DEFAULT_$LINE"
3768 else
3769 no_cache=1
3770 fi
3771
3772 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3773
3774fi;
3775
3776 eval "$ac_cv_use_debug_gdb"
3777 if test "$no_cache" != 1; then
3778 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3779 fi
3780
3781 if test "$wxUSE_DEBUG_GDB" = yes; then
3782 echo "$as_me:$LINENO: result: yes" >&5
3783echo "${ECHO_T}yes" >&6
3784 else
3785 echo "$as_me:$LINENO: result: no" >&5
3786echo "${ECHO_T}no" >&6
3787 fi
3788
3789
3790 enablestring=
3791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3792echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3793 no_cache=0
3794 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3795if test "${enable_debug_cntxt+set}" = set; then
3796 enableval="$enable_debug_cntxt"
3797
3798 if test "$enableval" = yes; then
3799 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3800 else
3801 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3802 fi
3803
3804else
3805
3806 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3807 if test "x$LINE" != x ; then
3808 eval "DEFAULT_$LINE"
3809 else
3810 no_cache=1
3811 fi
3812
3813 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3814
3815fi;
3816
3817 eval "$ac_cv_use_debug_cntxt"
3818 if test "$no_cache" != 1; then
3819 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3820 fi
3821
3822 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3823 echo "$as_me:$LINENO: result: yes" >&5
3824echo "${ECHO_T}yes" >&6
3825 else
3826 echo "$as_me:$LINENO: result: no" >&5
3827echo "${ECHO_T}no" >&6
3828 fi
3829
3830
3831 enablestring=
3832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3833echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3834 no_cache=0
3835 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3836if test "${enable_mem_tracing+set}" = set; then
3837 enableval="$enable_mem_tracing"
3838
3839 if test "$enableval" = yes; then
3840 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3841 else
3842 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3843 fi
3844
3845else
3846
3847 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3848 if test "x$LINE" != x ; then
3849 eval "DEFAULT_$LINE"
3850 else
3851 no_cache=1
3852 fi
3853
3854 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3855
3856fi;
3857
3858 eval "$ac_cv_use_mem_tracing"
3859 if test "$no_cache" != 1; then
3860 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3861 fi
3862
3863 if test "$wxUSE_MEM_TRACING" = yes; then
3864 echo "$as_me:$LINENO: result: yes" >&5
3865echo "${ECHO_T}yes" >&6
3866 else
3867 echo "$as_me:$LINENO: result: no" >&5
3868echo "${ECHO_T}no" >&6
3869 fi
3870
3871
3872 enablestring=
3873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3874echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3875 no_cache=0
3876 # Check whether --enable-profile or --disable-profile was given.
3877if test "${enable_profile+set}" = set; then
3878 enableval="$enable_profile"
3879
3880 if test "$enableval" = yes; then
3881 ac_cv_use_profile='wxUSE_PROFILE=yes'
3882 else
3883 ac_cv_use_profile='wxUSE_PROFILE=no'
3884 fi
3885
3886else
3887
3888 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3889 if test "x$LINE" != x ; then
3890 eval "DEFAULT_$LINE"
3891 else
3892 no_cache=1
3893 fi
3894
3895 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3896
3897fi;
3898
3899 eval "$ac_cv_use_profile"
3900 if test "$no_cache" != 1; then
3901 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3902 fi
3903
3904 if test "$wxUSE_PROFILE" = yes; then
3905 echo "$as_me:$LINENO: result: yes" >&5
3906echo "${ECHO_T}yes" >&6
3907 else
3908 echo "$as_me:$LINENO: result: no" >&5
3909echo "${ECHO_T}no" >&6
3910 fi
3911
3912
3913 enablestring=
3914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3915echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3916 no_cache=0
3917 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3918if test "${enable_no_rtti+set}" = set; then
3919 enableval="$enable_no_rtti"
3920
3921 if test "$enableval" = yes; then
3922 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3923 else
3924 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3925 fi
3926
3927else
3928
3929 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3930 if test "x$LINE" != x ; then
3931 eval "DEFAULT_$LINE"
3932 else
3933 no_cache=1
3934 fi
3935
3936 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3937
3938fi;
3939
3940 eval "$ac_cv_use_no_rtti"
3941 if test "$no_cache" != 1; then
3942 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3943 fi
3944
3945 if test "$wxUSE_NO_RTTI" = yes; then
3946 echo "$as_me:$LINENO: result: yes" >&5
3947echo "${ECHO_T}yes" >&6
3948 else
3949 echo "$as_me:$LINENO: result: no" >&5
3950echo "${ECHO_T}no" >&6
3951 fi
3952
3953
3954 enablestring=
3955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3956echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3957 no_cache=0
3958 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3959if test "${enable_no_exceptions+set}" = set; then
3960 enableval="$enable_no_exceptions"
3961
3962 if test "$enableval" = yes; then
3963 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3964 else
3965 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3966 fi
3967
3968else
3969
3970 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3971 if test "x$LINE" != x ; then
3972 eval "DEFAULT_$LINE"
3973 else
3974 no_cache=1
3975 fi
3976
3977 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3978
3979fi;
3980
3981 eval "$ac_cv_use_no_exceptions"
3982 if test "$no_cache" != 1; then
3983 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3984 fi
3985
3986 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3987 echo "$as_me:$LINENO: result: yes" >&5
3988echo "${ECHO_T}yes" >&6
3989 else
3990 echo "$as_me:$LINENO: result: no" >&5
3991echo "${ECHO_T}no" >&6
3992 fi
3993
3994
3995 enablestring=
3996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3997echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3998 no_cache=0
3999 # Check whether --enable-permissive or --disable-permissive was given.
4000if test "${enable_permissive+set}" = set; then
4001 enableval="$enable_permissive"
4002
4003 if test "$enableval" = yes; then
4004 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4005 else
4006 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4007 fi
4008
4009else
4010
4011 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4012 if test "x$LINE" != x ; then
4013 eval "DEFAULT_$LINE"
4014 else
4015 no_cache=1
4016 fi
4017
4018 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4019
4020fi;
4021
4022 eval "$ac_cv_use_permissive"
4023 if test "$no_cache" != 1; then
4024 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4025 fi
4026
4027 if test "$wxUSE_PERMISSIVE" = yes; then
4028 echo "$as_me:$LINENO: result: yes" >&5
4029echo "${ECHO_T}yes" >&6
4030 else
4031 echo "$as_me:$LINENO: result: no" >&5
4032echo "${ECHO_T}no" >&6
4033 fi
4034
4035
4036 enablestring=
4037 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4038echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4039 no_cache=0
4040 # Check whether --enable-no_deps or --disable-no_deps was given.
4041if test "${enable_no_deps+set}" = set; then
4042 enableval="$enable_no_deps"
4043
4044 if test "$enableval" = yes; then
4045 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4046 else
4047 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4048 fi
4049
4050else
4051
4052 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4053 if test "x$LINE" != x ; then
4054 eval "DEFAULT_$LINE"
4055 else
4056 no_cache=1
4057 fi
4058
4059 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4060
4061fi;
4062
4063 eval "$ac_cv_use_no_deps"
4064 if test "$no_cache" != 1; then
4065 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4066 fi
4067
4068 if test "$wxUSE_NO_DEPS" = yes; then
4069 echo "$as_me:$LINENO: result: yes" >&5
4070echo "${ECHO_T}yes" >&6
4071 else
4072 echo "$as_me:$LINENO: result: no" >&5
4073echo "${ECHO_T}no" >&6
4074 fi
4075
4076
4077
4078 enablestring=
4079 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4080echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4081 no_cache=0
4082 # Check whether --enable-compat22 or --disable-compat22 was given.
4083if test "${enable_compat22+set}" = set; then
4084 enableval="$enable_compat22"
4085
4086 if test "$enableval" = yes; then
4087 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4088 else
4089 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4090 fi
4091
4092else
4093
4094 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4095 if test "x$LINE" != x ; then
4096 eval "DEFAULT_$LINE"
4097 else
4098 no_cache=1
4099 fi
4100
4101 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4102
4103fi;
4104
4105 eval "$ac_cv_use_compat22"
4106 if test "$no_cache" != 1; then
4107 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4108 fi
4109
4110 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4111 echo "$as_me:$LINENO: result: yes" >&5
4112echo "${ECHO_T}yes" >&6
4113 else
4114 echo "$as_me:$LINENO: result: no" >&5
4115echo "${ECHO_T}no" >&6
4116 fi
4117
4118
4119 enablestring=disable
4120 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4121echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4122 no_cache=0
4123 # Check whether --enable-compat24 or --disable-compat24 was given.
4124if test "${enable_compat24+set}" = set; then
4125 enableval="$enable_compat24"
4126
4127 if test "$enableval" = yes; then
4128 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4129 else
4130 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4131 fi
4132
4133else
4134
4135 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4136 if test "x$LINE" != x ; then
4137 eval "DEFAULT_$LINE"
4138 else
4139 no_cache=1
4140 fi
4141
4142 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4143
4144fi;
4145
4146 eval "$ac_cv_use_compat24"
4147 if test "$no_cache" != 1; then
4148 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4149 fi
4150
4151 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4152 echo "$as_me:$LINENO: result: yes" >&5
4153echo "${ECHO_T}yes" >&6
4154 else
4155 echo "$as_me:$LINENO: result: no" >&5
4156echo "${ECHO_T}no" >&6
4157 fi
4158
4159
ffa0583f
RL
4160
4161 enablestring=
4162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4163echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4164 no_cache=0
4165 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4166if test "${enable_rpath+set}" = set; then
4167 enableval="$enable_rpath"
ffa0583f
RL
4168
4169 if test "$enableval" = yes; then
4170 ac_cv_use_rpath='wxUSE_RPATH=yes'
4171 else
4172 ac_cv_use_rpath='wxUSE_RPATH=no'
4173 fi
4174
4175else
4176
4177 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4178 if test "x$LINE" != x ; then
4179 eval "DEFAULT_$LINE"
4180 else
4181 no_cache=1
4182 fi
4183
4184 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4185
a848cd7e
SC
4186fi;
4187
ffa0583f
RL
4188 eval "$ac_cv_use_rpath"
4189 if test "$no_cache" != 1; then
4190 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4191 fi
4192
4193 if test "$wxUSE_RPATH" = yes; then
4194 echo "$as_me:$LINENO: result: yes" >&5
4195echo "${ECHO_T}yes" >&6
4196 else
4197 echo "$as_me:$LINENO: result: no" >&5
4198echo "${ECHO_T}no" >&6
4199 fi
4200
a848cd7e
SC
4201
4202
4203
4204
4205 enablestring=
4206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4207echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4208 no_cache=0
4209 # Check whether --enable-intl or --disable-intl was given.
4210if test "${enable_intl+set}" = set; then
4211 enableval="$enable_intl"
4212
4213 if test "$enableval" = yes; then
4214 ac_cv_use_intl='wxUSE_INTL=yes'
4215 else
4216 ac_cv_use_intl='wxUSE_INTL=no'
4217 fi
4218
4219else
4220
4221 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4222 if test "x$LINE" != x ; then
4223 eval "DEFAULT_$LINE"
4224 else
4225 no_cache=1
4226 fi
4227
4228 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4229
4230fi;
4231
4232 eval "$ac_cv_use_intl"
4233 if test "$no_cache" != 1; then
4234 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4235 fi
4236
4237 if test "$wxUSE_INTL" = yes; then
4238 echo "$as_me:$LINENO: result: yes" >&5
4239echo "${ECHO_T}yes" >&6
4240 else
4241 echo "$as_me:$LINENO: result: no" >&5
4242echo "${ECHO_T}no" >&6
4243 fi
4244
4245
4246 enablestring=
4247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4248echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4249 no_cache=0
4250 # Check whether --enable-config or --disable-config was given.
4251if test "${enable_config+set}" = set; then
4252 enableval="$enable_config"
4253
4254 if test "$enableval" = yes; then
4255 ac_cv_use_config='wxUSE_CONFIG=yes'
4256 else
4257 ac_cv_use_config='wxUSE_CONFIG=no'
4258 fi
4259
4260else
4261
4262 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4263 if test "x$LINE" != x ; then
4264 eval "DEFAULT_$LINE"
4265 else
4266 no_cache=1
4267 fi
4268
4269 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4270
4271fi;
4272
4273 eval "$ac_cv_use_config"
4274 if test "$no_cache" != 1; then
4275 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4276 fi
4277
4278 if test "$wxUSE_CONFIG" = yes; then
4279 echo "$as_me:$LINENO: result: yes" >&5
4280echo "${ECHO_T}yes" >&6
4281 else
4282 echo "$as_me:$LINENO: result: no" >&5
4283echo "${ECHO_T}no" >&6
4284 fi
4285
4286
4287
4288 enablestring=
4289 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4290echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4291 no_cache=0
4292 # Check whether --enable-protocols or --disable-protocols was given.
4293if test "${enable_protocols+set}" = set; then
4294 enableval="$enable_protocols"
4295
4296 if test "$enableval" = yes; then
4297 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4298 else
4299 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4300 fi
4301
4302else
4303
4304 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4305 if test "x$LINE" != x ; then
4306 eval "DEFAULT_$LINE"
4307 else
4308 no_cache=1
4309 fi
4310
4311 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4312
4313fi;
4314
4315 eval "$ac_cv_use_protocols"
4316 if test "$no_cache" != 1; then
4317 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4318 fi
4319
4320 if test "$wxUSE_PROTOCOL" = yes; then
4321 echo "$as_me:$LINENO: result: yes" >&5
4322echo "${ECHO_T}yes" >&6
4323 else
4324 echo "$as_me:$LINENO: result: no" >&5
4325echo "${ECHO_T}no" >&6
4326 fi
4327
4328
4329 enablestring=
4330 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4331echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4332 no_cache=0
4333 # Check whether --enable-ftp or --disable-ftp was given.
4334if test "${enable_ftp+set}" = set; then
4335 enableval="$enable_ftp"
4336
4337 if test "$enableval" = yes; then
4338 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4339 else
4340 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4341 fi
4342
4343else
4344
4345 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4346 if test "x$LINE" != x ; then
4347 eval "DEFAULT_$LINE"
4348 else
4349 no_cache=1
4350 fi
4351
4352 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4353
4354fi;
4355
4356 eval "$ac_cv_use_ftp"
4357 if test "$no_cache" != 1; then
4358 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4359 fi
4360
4361 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4362 echo "$as_me:$LINENO: result: yes" >&5
4363echo "${ECHO_T}yes" >&6
4364 else
4365 echo "$as_me:$LINENO: result: no" >&5
4366echo "${ECHO_T}no" >&6
4367 fi
4368
4369
4370 enablestring=
4371 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4372echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4373 no_cache=0
4374 # Check whether --enable-http or --disable-http was given.
4375if test "${enable_http+set}" = set; then
4376 enableval="$enable_http"
4377
4378 if test "$enableval" = yes; then
4379 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4380 else
4381 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4382 fi
4383
4384else
4385
4386 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4387 if test "x$LINE" != x ; then
4388 eval "DEFAULT_$LINE"
4389 else
4390 no_cache=1
4391 fi
4392
4393 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4394
4395fi;
4396
4397 eval "$ac_cv_use_http"
4398 if test "$no_cache" != 1; then
4399 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4400 fi
4401
4402 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4403 echo "$as_me:$LINENO: result: yes" >&5
4404echo "${ECHO_T}yes" >&6
4405 else
4406 echo "$as_me:$LINENO: result: no" >&5
4407echo "${ECHO_T}no" >&6
4408 fi
4409
4410
4411 enablestring=
4412 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4413echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4414 no_cache=0
4415 # Check whether --enable-fileproto or --disable-fileproto was given.
4416if test "${enable_fileproto+set}" = set; then
4417 enableval="$enable_fileproto"
4418
4419 if test "$enableval" = yes; then
4420 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4421 else
4422 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4423 fi
4424
4425else
4426
4427 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4428 if test "x$LINE" != x ; then
4429 eval "DEFAULT_$LINE"
4430 else
4431 no_cache=1
4432 fi
4433
4434 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4435
4436fi;
4437
4438 eval "$ac_cv_use_fileproto"
4439 if test "$no_cache" != 1; then
4440 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4441 fi
4442
4443 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4444 echo "$as_me:$LINENO: result: yes" >&5
4445echo "${ECHO_T}yes" >&6
4446 else
4447 echo "$as_me:$LINENO: result: no" >&5
4448echo "${ECHO_T}no" >&6
4449 fi
4450
4451
4452 enablestring=
4453 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4454echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4455 no_cache=0
4456 # Check whether --enable-sockets or --disable-sockets was given.
4457if test "${enable_sockets+set}" = set; then
4458 enableval="$enable_sockets"
4459
4460 if test "$enableval" = yes; then
4461 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4462 else
4463 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4464 fi
4465
4466else
4467
4468 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4469 if test "x$LINE" != x ; then
4470 eval "DEFAULT_$LINE"
4471 else
4472 no_cache=1
4473 fi
4474
4475 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4476
4477fi;
4478
4479 eval "$ac_cv_use_sockets"
4480 if test "$no_cache" != 1; then
4481 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4482 fi
4483
4484 if test "$wxUSE_SOCKETS" = yes; then
4485 echo "$as_me:$LINENO: result: yes" >&5
4486echo "${ECHO_T}yes" >&6
4487 else
4488 echo "$as_me:$LINENO: result: no" >&5
4489echo "${ECHO_T}no" >&6
4490 fi
4491
4492
4493 enablestring=
4494 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4495echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4496 no_cache=0
4497 # Check whether --enable-ole or --disable-ole was given.
4498if test "${enable_ole+set}" = set; then
4499 enableval="$enable_ole"
4500
4501 if test "$enableval" = yes; then
4502 ac_cv_use_ole='wxUSE_OLE=yes'
4503 else
4504 ac_cv_use_ole='wxUSE_OLE=no'
4505 fi
4506
4507else
4508
4509 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4510 if test "x$LINE" != x ; then
4511 eval "DEFAULT_$LINE"
4512 else
4513 no_cache=1
4514 fi
4515
4516 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4517
4518fi;
4519
4520 eval "$ac_cv_use_ole"
4521 if test "$no_cache" != 1; then
4522 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4523 fi
4524
4525 if test "$wxUSE_OLE" = yes; then
4526 echo "$as_me:$LINENO: result: yes" >&5
4527echo "${ECHO_T}yes" >&6
4528 else
4529 echo "$as_me:$LINENO: result: no" >&5
4530echo "${ECHO_T}no" >&6
4531 fi
4532
4533
4534 enablestring=
4535 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4536echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4537 no_cache=0
4538 # Check whether --enable-dataobj or --disable-dataobj was given.
4539if test "${enable_dataobj+set}" = set; then
4540 enableval="$enable_dataobj"
4541
4542 if test "$enableval" = yes; then
4543 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4544 else
4545 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4546 fi
4547
4548else
4549
4550 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4551 if test "x$LINE" != x ; then
4552 eval "DEFAULT_$LINE"
4553 else
4554 no_cache=1
4555 fi
4556
4557 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4558
4559fi;
4560
4561 eval "$ac_cv_use_dataobj"
4562 if test "$no_cache" != 1; then
4563 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4564 fi
4565
4566 if test "$wxUSE_DATAOBJ" = yes; then
4567 echo "$as_me:$LINENO: result: yes" >&5
4568echo "${ECHO_T}yes" >&6
4569 else
4570 echo "$as_me:$LINENO: result: no" >&5
4571echo "${ECHO_T}no" >&6
4572 fi
4573
4574
4575
4576 enablestring=
4577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4578echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4579 no_cache=0
4580 # Check whether --enable-ipc or --disable-ipc was given.
4581if test "${enable_ipc+set}" = set; then
4582 enableval="$enable_ipc"
4583
4584 if test "$enableval" = yes; then
4585 ac_cv_use_ipc='wxUSE_IPC=yes'
4586 else
4587 ac_cv_use_ipc='wxUSE_IPC=no'
4588 fi
4589
4590else
4591
4592 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4593 if test "x$LINE" != x ; then
4594 eval "DEFAULT_$LINE"
4595 else
4596 no_cache=1
4597 fi
4598
4599 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4600
4601fi;
4602
4603 eval "$ac_cv_use_ipc"
4604 if test "$no_cache" != 1; then
4605 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4606 fi
4607
4608 if test "$wxUSE_IPC" = yes; then
4609 echo "$as_me:$LINENO: result: yes" >&5
4610echo "${ECHO_T}yes" >&6
4611 else
4612 echo "$as_me:$LINENO: result: no" >&5
4613echo "${ECHO_T}no" >&6
4614 fi
4615
4616
4617
4618 enablestring=
4619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4620echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4621 no_cache=0
4622 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4623if test "${enable_apple_ieee+set}" = set; then
4624 enableval="$enable_apple_ieee"
4625
4626 if test "$enableval" = yes; then
4627 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4628 else
4629 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4630 fi
4631
4632else
4633
4634 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4635 if test "x$LINE" != x ; then
4636 eval "DEFAULT_$LINE"
4637 else
4638 no_cache=1
4639 fi
4640
4641 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4642
4643fi;
4644
4645 eval "$ac_cv_use_apple_ieee"
4646 if test "$no_cache" != 1; then
4647 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4648 fi
4649
4650 if test "$wxUSE_APPLE_IEEE" = yes; then
4651 echo "$as_me:$LINENO: result: yes" >&5
4652echo "${ECHO_T}yes" >&6
4653 else
4654 echo "$as_me:$LINENO: result: no" >&5
4655echo "${ECHO_T}no" >&6
4656 fi
4657
4658
81f90336
MW
4659 enablestring=
4660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4661echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4662 no_cache=0
4663 # Check whether --enable-arcstream or --disable-arcstream was given.
4664if test "${enable_arcstream+set}" = set; then
4665 enableval="$enable_arcstream"
4666
4667 if test "$enableval" = yes; then
9e8e867f 4668 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4669 else
9e8e867f 4670 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4671 fi
4672
4673else
4674
9e8e867f 4675 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4676 if test "x$LINE" != x ; then
4677 eval "DEFAULT_$LINE"
4678 else
4679 no_cache=1
4680 fi
4681
9e8e867f 4682 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4683
4684fi;
4685
4686 eval "$ac_cv_use_arcstream"
4687 if test "$no_cache" != 1; then
4688 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4689 fi
4690
9e8e867f 4691 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4692 echo "$as_me:$LINENO: result: yes" >&5
4693echo "${ECHO_T}yes" >&6
4694 else
4695 echo "$as_me:$LINENO: result: no" >&5
4696echo "${ECHO_T}no" >&6
4697 fi
4698
4699
a848cd7e 4700 enablestring=
36b6448c
VZ
4701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4702echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4703 no_cache=0
36b6448c
VZ
4704 # Check whether --enable-backtrace or --disable-backtrace was given.
4705if test "${enable_backtrace+set}" = set; then
4706 enableval="$enable_backtrace"
a848cd7e
SC
4707
4708 if test "$enableval" = yes; then
36b6448c 4709 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4710 else
36b6448c 4711 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4712 fi
4713
4714else
4715
36b6448c 4716 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4717 if test "x$LINE" != x ; then
4718 eval "DEFAULT_$LINE"
4719 else
4720 no_cache=1
4721 fi
4722
36b6448c 4723 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4724
4725fi;
4726
36b6448c 4727 eval "$ac_cv_use_backtrace"
a848cd7e 4728 if test "$no_cache" != 1; then
36b6448c 4729 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4730 fi
4731
36b6448c 4732 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4733 echo "$as_me:$LINENO: result: yes" >&5
4734echo "${ECHO_T}yes" >&6
4735 else
4736 echo "$as_me:$LINENO: result: no" >&5
4737echo "${ECHO_T}no" >&6
4738 fi
4739
4740
eaff0f0d 4741 enablestring=
36b6448c
VZ
4742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4743echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4744 no_cache=0
36b6448c
VZ
4745 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4746if test "${enable_catch_segvs+set}" = set; then
4747 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4748
4749 if test "$enableval" = yes; then
36b6448c 4750 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4751 else
36b6448c 4752 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4753 fi
4754
4755else
4756
36b6448c 4757 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4758 if test "x$LINE" != x ; then
4759 eval "DEFAULT_$LINE"
4760 else
4761 no_cache=1
4762 fi
4763
36b6448c 4764 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4765
4766fi;
4767
36b6448c 4768 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4769 if test "$no_cache" != 1; then
36b6448c 4770 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4771 fi
4772
36b6448c 4773 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4774 echo "$as_me:$LINENO: result: yes" >&5
4775echo "${ECHO_T}yes" >&6
4776 else
4777 echo "$as_me:$LINENO: result: no" >&5
4778echo "${ECHO_T}no" >&6
4779 fi
4780
4781
a848cd7e
SC
4782 enablestring=
4783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4784echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4785 no_cache=0
4786 # Check whether --enable-cmdline or --disable-cmdline was given.
4787if test "${enable_cmdline+set}" = set; then
4788 enableval="$enable_cmdline"
4789
4790 if test "$enableval" = yes; then
4791 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4792 else
4793 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4794 fi
4795
4796else
4797
4798 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4799 if test "x$LINE" != x ; then
4800 eval "DEFAULT_$LINE"
4801 else
4802 no_cache=1
4803 fi
4804
4805 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4806
4807fi;
4808
4809 eval "$ac_cv_use_cmdline"
4810 if test "$no_cache" != 1; then
4811 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4812 fi
4813
4814 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4815 echo "$as_me:$LINENO: result: yes" >&5
4816echo "${ECHO_T}yes" >&6
4817 else
4818 echo "$as_me:$LINENO: result: no" >&5
4819echo "${ECHO_T}no" >&6
4820 fi
4821
4822
4823 enablestring=
4824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4825echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4826 no_cache=0
4827 # Check whether --enable-datetime or --disable-datetime was given.
4828if test "${enable_datetime+set}" = set; then
4829 enableval="$enable_datetime"
4830
4831 if test "$enableval" = yes; then
4832 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4833 else
4834 ac_cv_use_datetime='wxUSE_DATETIME=no'
4835 fi
4836
4837else
4838
4839 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4840 if test "x$LINE" != x ; then
4841 eval "DEFAULT_$LINE"
4842 else
4843 no_cache=1
4844 fi
4845
4846 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4847
4848fi;
4849
4850 eval "$ac_cv_use_datetime"
4851 if test "$no_cache" != 1; then
4852 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4853 fi
4854
4855 if test "$wxUSE_DATETIME" = yes; then
4856 echo "$as_me:$LINENO: result: yes" >&5
4857echo "${ECHO_T}yes" >&6
4858 else
4859 echo "$as_me:$LINENO: result: no" >&5
4860echo "${ECHO_T}no" >&6
4861 fi
4862
4863
36b6448c
VZ
4864 enablestring=
4865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4866echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4867 no_cache=0
4868 # Check whether --enable-debugreport or --disable-debugreport was given.
4869if test "${enable_debugreport+set}" = set; then
4870 enableval="$enable_debugreport"
4871
4872 if test "$enableval" = yes; then
4873 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4874 else
4875 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4876 fi
4877
4878else
4879
4880 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4881 if test "x$LINE" != x ; then
4882 eval "DEFAULT_$LINE"
4883 else
4884 no_cache=1
4885 fi
4886
4887 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4888
4889fi;
4890
4891 eval "$ac_cv_use_debugreport"
4892 if test "$no_cache" != 1; then
4893 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4894 fi
4895
4896 if test "$wxUSE_DEBUGREPORT" = yes; then
4897 echo "$as_me:$LINENO: result: yes" >&5
4898echo "${ECHO_T}yes" >&6
4899 else
4900 echo "$as_me:$LINENO: result: no" >&5
4901echo "${ECHO_T}no" >&6
4902 fi
4903
4904
a848cd7e
SC
4905 enablestring=
4906 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4907echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4908 no_cache=0
4909 # Check whether --enable-dialupman or --disable-dialupman was given.
4910if test "${enable_dialupman+set}" = set; then
4911 enableval="$enable_dialupman"
4912
4913 if test "$enableval" = yes; then
4914 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4915 else
4916 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4917 fi
4918
4919else
4920
4921 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4922 if test "x$LINE" != x ; then
4923 eval "DEFAULT_$LINE"
4924 else
4925 no_cache=1
4926 fi
4927
4928 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4929
4930fi;
4931
4932 eval "$ac_cv_use_dialupman"
4933 if test "$no_cache" != 1; then
4934 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4935 fi
4936
4937 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4938 echo "$as_me:$LINENO: result: yes" >&5
4939echo "${ECHO_T}yes" >&6
4940 else
4941 echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6
4943 fi
4944
4945
4946 enablestring=
4947 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4948echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4949 no_cache=0
4950 # Check whether --enable-dynlib or --disable-dynlib was given.
4951if test "${enable_dynlib+set}" = set; then
4952 enableval="$enable_dynlib"
4953
4954 if test "$enableval" = yes; then
4955 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4956 else
4957 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4958 fi
4959
4960else
4961
4962 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4963 if test "x$LINE" != x ; then
4964 eval "DEFAULT_$LINE"
4965 else
4966 no_cache=1
4967 fi
4968
4969 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4970
4971fi;
4972
4973 eval "$ac_cv_use_dynlib"
4974 if test "$no_cache" != 1; then
4975 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4976 fi
4977
4978 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4979 echo "$as_me:$LINENO: result: yes" >&5
4980echo "${ECHO_T}yes" >&6
4981 else
4982 echo "$as_me:$LINENO: result: no" >&5
4983echo "${ECHO_T}no" >&6
4984 fi
4985
4986
4987 enablestring=
4988 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4989echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4990 no_cache=0
4991 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4992if test "${enable_dynamicloader+set}" = set; then
4993 enableval="$enable_dynamicloader"
4994
4995 if test "$enableval" = yes; then
4996 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4997 else
4998 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4999 fi
5000
5001else
5002
5003 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5004 if test "x$LINE" != x ; then
5005 eval "DEFAULT_$LINE"
5006 else
5007 no_cache=1
5008 fi
5009
5010 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5011
5012fi;
5013
5014 eval "$ac_cv_use_dynamicloader"
5015 if test "$no_cache" != 1; then
5016 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5017 fi
5018
5019 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5020 echo "$as_me:$LINENO: result: yes" >&5
5021echo "${ECHO_T}yes" >&6
5022 else
5023 echo "$as_me:$LINENO: result: no" >&5
5024echo "${ECHO_T}no" >&6
5025 fi
5026
5027
5028 enablestring=
5029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5030echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5031 no_cache=0
5032 # Check whether --enable-exceptions or --disable-exceptions was given.
5033if test "${enable_exceptions+set}" = set; then
5034 enableval="$enable_exceptions"
5035
5036 if test "$enableval" = yes; then
5037 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5038 else
5039 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5040 fi
5041
5042else
5043
5044 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5045 if test "x$LINE" != x ; then
5046 eval "DEFAULT_$LINE"
5047 else
5048 no_cache=1
5049 fi
5050
5051 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5052
5053fi;
5054
5055 eval "$ac_cv_use_exceptions"
5056 if test "$no_cache" != 1; then
5057 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5058 fi
5059
5060 if test "$wxUSE_EXCEPTIONS" = yes; then
5061 echo "$as_me:$LINENO: result: yes" >&5
5062echo "${ECHO_T}yes" >&6
5063 else
5064 echo "$as_me:$LINENO: result: no" >&5
5065echo "${ECHO_T}no" >&6
5066 fi
5067
5068
5069 enablestring=
5070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5071echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5072 no_cache=0
5073 # Check whether --enable-ffile or --disable-ffile was given.
5074if test "${enable_ffile+set}" = set; then
5075 enableval="$enable_ffile"
5076
5077 if test "$enableval" = yes; then
5078 ac_cv_use_ffile='wxUSE_FFILE=yes'
5079 else
5080 ac_cv_use_ffile='wxUSE_FFILE=no'
5081 fi
5082
5083else
5084
5085 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5086 if test "x$LINE" != x ; then
5087 eval "DEFAULT_$LINE"
5088 else
5089 no_cache=1
5090 fi
5091
5092 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5093
5094fi;
5095
5096 eval "$ac_cv_use_ffile"
5097 if test "$no_cache" != 1; then
5098 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5099 fi
5100
5101 if test "$wxUSE_FFILE" = yes; then
5102 echo "$as_me:$LINENO: result: yes" >&5
5103echo "${ECHO_T}yes" >&6
5104 else
5105 echo "$as_me:$LINENO: result: no" >&5
5106echo "${ECHO_T}no" >&6
5107 fi
5108
5109
5110 enablestring=
5111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5112echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5113 no_cache=0
5114 # Check whether --enable-file or --disable-file was given.
5115if test "${enable_file+set}" = set; then
5116 enableval="$enable_file"
5117
5118 if test "$enableval" = yes; then
5119 ac_cv_use_file='wxUSE_FILE=yes'
5120 else
5121 ac_cv_use_file='wxUSE_FILE=no'
5122 fi
5123
5124else
5125
5126 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5127 if test "x$LINE" != x ; then
5128 eval "DEFAULT_$LINE"
5129 else
5130 no_cache=1
5131 fi
5132
5133 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5134
5135fi;
5136
5137 eval "$ac_cv_use_file"
5138 if test "$no_cache" != 1; then
5139 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5140 fi
5141
5142 if test "$wxUSE_FILE" = yes; then
5143 echo "$as_me:$LINENO: result: yes" >&5
5144echo "${ECHO_T}yes" >&6
5145 else
5146 echo "$as_me:$LINENO: result: no" >&5
5147echo "${ECHO_T}no" >&6
5148 fi
5149
5150
5151 enablestring=
5152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5153echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5154 no_cache=0
5155 # Check whether --enable-filesystem or --disable-filesystem was given.
5156if test "${enable_filesystem+set}" = set; then
5157 enableval="$enable_filesystem"
5158
5159 if test "$enableval" = yes; then
5160 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5161 else
5162 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5163 fi
5164
5165else
5166
5167 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5168 if test "x$LINE" != x ; then
5169 eval "DEFAULT_$LINE"
5170 else
5171 no_cache=1
5172 fi
5173
5174 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5175
5176fi;
5177
5178 eval "$ac_cv_use_filesystem"
5179 if test "$no_cache" != 1; then
5180 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5181 fi
5182
5183 if test "$wxUSE_FILESYSTEM" = yes; then
5184 echo "$as_me:$LINENO: result: yes" >&5
5185echo "${ECHO_T}yes" >&6
5186 else
5187 echo "$as_me:$LINENO: result: no" >&5
5188echo "${ECHO_T}no" >&6
5189 fi
5190
5191
5192 enablestring=
5193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5194echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5195 no_cache=0
5196 # Check whether --enable-fontmap or --disable-fontmap was given.
5197if test "${enable_fontmap+set}" = set; then
5198 enableval="$enable_fontmap"
5199
5200 if test "$enableval" = yes; then
5201 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5202 else
5203 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5204 fi
5205
5206else
5207
5208 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5209 if test "x$LINE" != x ; then
5210 eval "DEFAULT_$LINE"
5211 else
5212 no_cache=1
5213 fi
5214
5215 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5216
5217fi;
5218
5219 eval "$ac_cv_use_fontmap"
5220 if test "$no_cache" != 1; then
5221 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5222 fi
5223
5224 if test "$wxUSE_FONTMAP" = yes; then
5225 echo "$as_me:$LINENO: result: yes" >&5
5226echo "${ECHO_T}yes" >&6
5227 else
5228 echo "$as_me:$LINENO: result: no" >&5
5229echo "${ECHO_T}no" >&6
5230 fi
5231
5232
5233 enablestring=
5234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5235echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5236 no_cache=0
5237 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5238if test "${enable_fs_inet+set}" = set; then
5239 enableval="$enable_fs_inet"
5240
5241 if test "$enableval" = yes; then
5242 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5243 else
5244 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5245 fi
5246
5247else
5248
5249 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5250 if test "x$LINE" != x ; then
5251 eval "DEFAULT_$LINE"
5252 else
5253 no_cache=1
5254 fi
5255
5256 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5257
5258fi;
5259
5260 eval "$ac_cv_use_fs_inet"
5261 if test "$no_cache" != 1; then
5262 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5263 fi
5264
5265 if test "$wxUSE_FS_INET" = yes; then
5266 echo "$as_me:$LINENO: result: yes" >&5
5267echo "${ECHO_T}yes" >&6
5268 else
5269 echo "$as_me:$LINENO: result: no" >&5
5270echo "${ECHO_T}no" >&6
5271 fi
5272
5273
5274 enablestring=
5275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5276echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5277 no_cache=0
5278 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5279if test "${enable_fs_zip+set}" = set; then
5280 enableval="$enable_fs_zip"
5281
5282 if test "$enableval" = yes; then
5283 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5284 else
5285 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5286 fi
5287
5288else
5289
5290 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5291 if test "x$LINE" != x ; then
5292 eval "DEFAULT_$LINE"
5293 else
5294 no_cache=1
5295 fi
5296
5297 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5298
5299fi;
5300
5301 eval "$ac_cv_use_fs_zip"
5302 if test "$no_cache" != 1; then
5303 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5304 fi
5305
5306 if test "$wxUSE_FS_ZIP" = yes; then
5307 echo "$as_me:$LINENO: result: yes" >&5
5308echo "${ECHO_T}yes" >&6
5309 else
5310 echo "$as_me:$LINENO: result: no" >&5
5311echo "${ECHO_T}no" >&6
5312 fi
5313
5314
5315 enablestring=
5316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5317echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5318 no_cache=0
5319 # Check whether --enable-geometry or --disable-geometry was given.
5320if test "${enable_geometry+set}" = set; then
5321 enableval="$enable_geometry"
5322
5323 if test "$enableval" = yes; then
5324 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5325 else
5326 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5327 fi
5328
5329else
5330
5331 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5332 if test "x$LINE" != x ; then
5333 eval "DEFAULT_$LINE"
5334 else
5335 no_cache=1
5336 fi
5337
5338 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5339
5340fi;
5341
5342 eval "$ac_cv_use_geometry"
5343 if test "$no_cache" != 1; then
5344 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5345 fi
5346
5347 if test "$wxUSE_GEOMETRY" = yes; then
5348 echo "$as_me:$LINENO: result: yes" >&5
5349echo "${ECHO_T}yes" >&6
5350 else
5351 echo "$as_me:$LINENO: result: no" >&5
5352echo "${ECHO_T}no" >&6
5353 fi
5354
5355
5356 enablestring=
5357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5358echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5359 no_cache=0
5360 # Check whether --enable-log or --disable-log was given.
5361if test "${enable_log+set}" = set; then
5362 enableval="$enable_log"
5363
5364 if test "$enableval" = yes; then
5365 ac_cv_use_log='wxUSE_LOG=yes'
5366 else
5367 ac_cv_use_log='wxUSE_LOG=no'
5368 fi
5369
5370else
5371
5372 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5373 if test "x$LINE" != x ; then
5374 eval "DEFAULT_$LINE"
5375 else
5376 no_cache=1
5377 fi
5378
5379 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5380
5381fi;
5382
5383 eval "$ac_cv_use_log"
5384 if test "$no_cache" != 1; then
5385 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5386 fi
5387
5388 if test "$wxUSE_LOG" = yes; then
5389 echo "$as_me:$LINENO: result: yes" >&5
5390echo "${ECHO_T}yes" >&6
5391 else
5392 echo "$as_me:$LINENO: result: no" >&5
5393echo "${ECHO_T}no" >&6
5394 fi
5395
5396
5397 enablestring=
5398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5399echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5400 no_cache=0
5401 # Check whether --enable-longlong or --disable-longlong was given.
5402if test "${enable_longlong+set}" = set; then
5403 enableval="$enable_longlong"
5404
5405 if test "$enableval" = yes; then
5406 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5407 else
5408 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5409 fi
5410
5411else
5412
5413 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5421
5422fi;
5423
5424 eval "$ac_cv_use_longlong"
5425 if test "$no_cache" != 1; then
5426 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5427 fi
5428
5429 if test "$wxUSE_LONGLONG" = yes; then
5430 echo "$as_me:$LINENO: result: yes" >&5
5431echo "${ECHO_T}yes" >&6
5432 else
5433 echo "$as_me:$LINENO: result: no" >&5
5434echo "${ECHO_T}no" >&6
5435 fi
5436
5437
5438 enablestring=
5439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5440echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5441 no_cache=0
5442 # Check whether --enable-mimetype or --disable-mimetype was given.
5443if test "${enable_mimetype+set}" = set; then
5444 enableval="$enable_mimetype"
5445
5446 if test "$enableval" = yes; then
5447 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5448 else
5449 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5450 fi
5451
5452else
5453
5454 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5455 if test "x$LINE" != x ; then
5456 eval "DEFAULT_$LINE"
5457 else
5458 no_cache=1
5459 fi
5460
5461 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5462
5463fi;
5464
5465 eval "$ac_cv_use_mimetype"
5466 if test "$no_cache" != 1; then
5467 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5468 fi
5469
5470 if test "$wxUSE_MIMETYPE" = yes; then
5471 echo "$as_me:$LINENO: result: yes" >&5
5472echo "${ECHO_T}yes" >&6
5473 else
5474 echo "$as_me:$LINENO: result: no" >&5
5475echo "${ECHO_T}no" >&6
5476 fi
5477
5478
5479 enablestring=
5480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5481echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5482 no_cache=0
5483 # Check whether --enable-mslu or --disable-mslu was given.
5484if test "${enable_mslu+set}" = set; then
5485 enableval="$enable_mslu"
5486
5487 if test "$enableval" = yes; then
5488 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5489 else
5490 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5491 fi
5492
5493else
5494
5495 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5496 if test "x$LINE" != x ; then
5497 eval "DEFAULT_$LINE"
5498 else
5499 no_cache=1
5500 fi
5501
5502 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5503
5504fi;
5505
5506 eval "$ac_cv_use_mslu"
5507 if test "$no_cache" != 1; then
5508 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5509 fi
5510
5511 if test "$wxUSE_UNICODE_MSLU" = yes; then
5512 echo "$as_me:$LINENO: result: yes" >&5
5513echo "${ECHO_T}yes" >&6
5514 else
5515 echo "$as_me:$LINENO: result: no" >&5
5516echo "${ECHO_T}no" >&6
5517 fi
5518
5519
5520 enablestring=
5521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5522echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5523 no_cache=0
5524 # Check whether --enable-snglinst or --disable-snglinst was given.
5525if test "${enable_snglinst+set}" = set; then
5526 enableval="$enable_snglinst"
5527
5528 if test "$enableval" = yes; then
5529 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5530 else
5531 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5532 fi
5533
5534else
5535
5536 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5537 if test "x$LINE" != x ; then
5538 eval "DEFAULT_$LINE"
5539 else
5540 no_cache=1
5541 fi
5542
5543 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5544
5545fi;
5546
5547 eval "$ac_cv_use_snglinst"
5548 if test "$no_cache" != 1; then
5549 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5550 fi
5551
5552 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5553 echo "$as_me:$LINENO: result: yes" >&5
5554echo "${ECHO_T}yes" >&6
5555 else
5556 echo "$as_me:$LINENO: result: no" >&5
5557echo "${ECHO_T}no" >&6
5558 fi
5559
5560
5561 enablestring=
07158944
VZ
5562 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5563echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5564 no_cache=0
07158944
VZ
5565 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5566if test "${enable_std_iostreams+set}" = set; then
5567 enableval="$enable_std_iostreams"
a848cd7e
SC
5568
5569 if test "$enableval" = yes; then
07158944 5570 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5571 else
07158944 5572 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5573 fi
5574
5575else
5576
07158944 5577 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5578 if test "x$LINE" != x ; then
5579 eval "DEFAULT_$LINE"
5580 else
5581 no_cache=1
5582 fi
5583
07158944 5584 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5585
5586fi;
5587
07158944 5588 eval "$ac_cv_use_std_iostreams"
a848cd7e 5589 if test "$no_cache" != 1; then
07158944 5590 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5591 fi
5592
07158944 5593 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5594 echo "$as_me:$LINENO: result: yes" >&5
5595echo "${ECHO_T}yes" >&6
5596 else
5597 echo "$as_me:$LINENO: result: no" >&5
5598echo "${ECHO_T}no" >&6
5599 fi
5600
5601
59746b65
MW
5602 enablestring=
5603 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5604echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5605 no_cache=0
5606 # Check whether --enable-std_string or --disable-std_string was given.
5607if test "${enable_std_string+set}" = set; then
5608 enableval="$enable_std_string"
5609
5610 if test "$enableval" = yes; then
5611 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5612 else
5613 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5614 fi
5615
5616else
5617
5618 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5619 if test "x$LINE" != x ; then
5620 eval "DEFAULT_$LINE"
5621 else
5622 no_cache=1
5623 fi
5624
5625 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5626
5627fi;
5628
5629 eval "$ac_cv_use_std_string"
5630 if test "$no_cache" != 1; then
5631 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5632 fi
5633
5634 if test "$wxUSE_STD_STRING" = yes; then
5635 echo "$as_me:$LINENO: result: yes" >&5
5636echo "${ECHO_T}yes" >&6
5637 else
5638 echo "$as_me:$LINENO: result: no" >&5
5639echo "${ECHO_T}no" >&6
5640 fi
5641
5642
a848cd7e 5643 enablestring=
07158944
VZ
5644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5645echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5646 no_cache=0
07158944
VZ
5647 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5648if test "${enable_stdpaths+set}" = set; then
5649 enableval="$enable_stdpaths"
a848cd7e
SC
5650
5651 if test "$enableval" = yes; then
07158944 5652 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5653 else
07158944 5654 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5655 fi
5656
5657else
5658
07158944 5659 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5660 if test "x$LINE" != x ; then
5661 eval "DEFAULT_$LINE"
5662 else
5663 no_cache=1
5664 fi
5665
07158944 5666 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5667
5668fi;
5669
07158944 5670 eval "$ac_cv_use_stdpaths"
a848cd7e 5671 if test "$no_cache" != 1; then
07158944 5672 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5673 fi
5674
07158944 5675 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5676 echo "$as_me:$LINENO: result: yes" >&5
5677echo "${ECHO_T}yes" >&6
5678 else
5679 echo "$as_me:$LINENO: result: no" >&5
5680echo "${ECHO_T}no" >&6
5681 fi
5682
5683
5684 enablestring=
5685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5686echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5687 no_cache=0
5688 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5689if test "${enable_stopwatch+set}" = set; then
5690 enableval="$enable_stopwatch"
5691
5692 if test "$enableval" = yes; then
5693 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5694 else
5695 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5696 fi
5697
5698else
5699
5700 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5701 if test "x$LINE" != x ; then
5702 eval "DEFAULT_$LINE"
5703 else
5704 no_cache=1
5705 fi
5706
5707 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5708
5709fi;
5710
5711 eval "$ac_cv_use_stopwatch"
5712 if test "$no_cache" != 1; then
5713 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5714 fi
5715
5716 if test "$wxUSE_STOPWATCH" = yes; then
5717 echo "$as_me:$LINENO: result: yes" >&5
5718echo "${ECHO_T}yes" >&6
5719 else
5720 echo "$as_me:$LINENO: result: no" >&5
5721echo "${ECHO_T}no" >&6
5722 fi
5723
5724
07158944
VZ
5725 enablestring=
5726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5727echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5728 no_cache=0
5729 # Check whether --enable-streams or --disable-streams was given.
5730if test "${enable_streams+set}" = set; then
5731 enableval="$enable_streams"
5732
5733 if test "$enableval" = yes; then
5734 ac_cv_use_streams='wxUSE_STREAMS=yes'
5735 else
5736 ac_cv_use_streams='wxUSE_STREAMS=no'
5737 fi
5738
5739else
5740
5741 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5742 if test "x$LINE" != x ; then
5743 eval "DEFAULT_$LINE"
5744 else
5745 no_cache=1
5746 fi
5747
5748 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5749
5750fi;
5751
5752 eval "$ac_cv_use_streams"
5753 if test "$no_cache" != 1; then
5754 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5755 fi
5756
5757 if test "$wxUSE_STREAMS" = yes; then
5758 echo "$as_me:$LINENO: result: yes" >&5
5759echo "${ECHO_T}yes" >&6
5760 else
5761 echo "$as_me:$LINENO: result: no" >&5
5762echo "${ECHO_T}no" >&6
5763 fi
5764
5765
a848cd7e
SC
5766 enablestring=
5767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5768echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5769 no_cache=0
5770 # Check whether --enable-system_options or --disable-system_options was given.
5771if test "${enable_system_options+set}" = set; then
5772 enableval="$enable_system_options"
5773
5774 if test "$enableval" = yes; then
5775 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5776 else
5777 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5778 fi
5779
5780else
5781
5782 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5783 if test "x$LINE" != x ; then
5784 eval "DEFAULT_$LINE"
5785 else
5786 no_cache=1
5787 fi
5788
5789 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5790
5791fi;
5792
5793 eval "$ac_cv_use_system_options"
5794 if test "$no_cache" != 1; then
5795 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5796 fi
5797
5798 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5799 echo "$as_me:$LINENO: result: yes" >&5
5800echo "${ECHO_T}yes" >&6
5801 else
5802 echo "$as_me:$LINENO: result: no" >&5
5803echo "${ECHO_T}no" >&6
5804 fi
5805
5806
5807 enablestring=
5808 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5809echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5810 no_cache=0
5811 # Check whether --enable-textbuf or --disable-textbuf was given.
5812if test "${enable_textbuf+set}" = set; then
5813 enableval="$enable_textbuf"
5814
5815 if test "$enableval" = yes; then
5816 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5817 else
5818 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5819 fi
5820
5821else
5822
5823 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5824 if test "x$LINE" != x ; then
5825 eval "DEFAULT_$LINE"
5826 else
5827 no_cache=1
5828 fi
5829
5830 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5831
5832fi;
5833
5834 eval "$ac_cv_use_textbuf"
5835 if test "$no_cache" != 1; then
5836 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5837 fi
5838
5839 if test "$wxUSE_TEXTBUFFER" = yes; then
5840 echo "$as_me:$LINENO: result: yes" >&5
5841echo "${ECHO_T}yes" >&6
5842 else
5843 echo "$as_me:$LINENO: result: no" >&5
5844echo "${ECHO_T}no" >&6
5845 fi
5846
5847
5848 enablestring=
5849 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5850echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5851 no_cache=0
5852 # Check whether --enable-textfile or --disable-textfile was given.
5853if test "${enable_textfile+set}" = set; then
5854 enableval="$enable_textfile"
5855
5856 if test "$enableval" = yes; then
5857 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5858 else
5859 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5860 fi
5861
5862else
5863
5864 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5865 if test "x$LINE" != x ; then
5866 eval "DEFAULT_$LINE"
5867 else
5868 no_cache=1
5869 fi
5870
5871 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5872
5873fi;
5874
5875 eval "$ac_cv_use_textfile"
5876 if test "$no_cache" != 1; then
5877 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5878 fi
5879
5880 if test "$wxUSE_TEXTFILE" = yes; then
5881 echo "$as_me:$LINENO: result: yes" >&5
5882echo "${ECHO_T}yes" >&6
5883 else
5884 echo "$as_me:$LINENO: result: no" >&5
5885echo "${ECHO_T}no" >&6
5886 fi
5887
5888
5889 enablestring=
5890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5891echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5892 no_cache=0
5893 # Check whether --enable-timer or --disable-timer was given.
5894if test "${enable_timer+set}" = set; then
5895 enableval="$enable_timer"
5896
5897 if test "$enableval" = yes; then
5898 ac_cv_use_timer='wxUSE_TIMER=yes'
5899 else
5900 ac_cv_use_timer='wxUSE_TIMER=no'
5901 fi
5902
5903else
5904
5905 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5906 if test "x$LINE" != x ; then
5907 eval "DEFAULT_$LINE"
5908 else
5909 no_cache=1
5910 fi
5911
5912 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5913
5914fi;
5915
5916 eval "$ac_cv_use_timer"
5917 if test "$no_cache" != 1; then
5918 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5919 fi
5920
5921 if test "$wxUSE_TIMER" = yes; then
5922 echo "$as_me:$LINENO: result: yes" >&5
5923echo "${ECHO_T}yes" >&6
5924 else
5925 echo "$as_me:$LINENO: result: no" >&5
5926echo "${ECHO_T}no" >&6
5927 fi
5928
5929
5930 enablestring=
5931 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5932echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5933 no_cache=0
5934 # Check whether --enable-unicode or --disable-unicode was given.
5935if test "${enable_unicode+set}" = set; then
5936 enableval="$enable_unicode"
5937
5938 if test "$enableval" = yes; then
5939 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5940 else
5941 ac_cv_use_unicode='wxUSE_UNICODE=no'
5942 fi
5943
5944else
5945
5946 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5947 if test "x$LINE" != x ; then
5948 eval "DEFAULT_$LINE"
5949 else
5950 no_cache=1
5951 fi
5952
5953 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5954
5955fi;
5956
5957 eval "$ac_cv_use_unicode"
5958 if test "$no_cache" != 1; then
5959 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5960 fi
5961
5962 if test "$wxUSE_UNICODE" = yes; then
5963 echo "$as_me:$LINENO: result: yes" >&5
5964echo "${ECHO_T}yes" >&6
5965 else
5966 echo "$as_me:$LINENO: result: no" >&5
5967echo "${ECHO_T}no" >&6
5968 fi
5969
5970
5971 enablestring=
5972 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5973echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5974 no_cache=0
5975 # Check whether --enable-sound or --disable-sound was given.
5976if test "${enable_sound+set}" = set; then
5977 enableval="$enable_sound"
5978
5979 if test "$enableval" = yes; then
5980 ac_cv_use_sound='wxUSE_SOUND=yes'
5981 else
5982 ac_cv_use_sound='wxUSE_SOUND=no'
5983 fi
5984
5985else
5986
5987 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5988 if test "x$LINE" != x ; then
5989 eval "DEFAULT_$LINE"
5990 else
5991 no_cache=1
5992 fi
5993
5994 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5995
5996fi;
5997
5998 eval "$ac_cv_use_sound"
5999 if test "$no_cache" != 1; then
6000 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6001 fi
6002
6003 if test "$wxUSE_SOUND" = yes; then
6004 echo "$as_me:$LINENO: result: yes" >&5
6005echo "${ECHO_T}yes" >&6
6006 else
6007 echo "$as_me:$LINENO: result: no" >&5
6008echo "${ECHO_T}no" >&6
6009 fi
6010
6011
3b57de8b
RL
6012 enablestring=
6013 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6014echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6015 no_cache=0
6016 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6017if test "${enable_mediactrl+set}" = set; then
6018 enableval="$enable_mediactrl"
6019
6020 if test "$enableval" = yes; then
6021 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6022 else
6023 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6024 fi
6025
6026else
6027
6028 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6029 if test "x$LINE" != x ; then
6030 eval "DEFAULT_$LINE"
6031 else
6032 no_cache=1
6033 fi
6034
6035 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6036
6037fi;
6038
6039 eval "$ac_cv_use_mediactrl"
6040 if test "$no_cache" != 1; then
6041 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6042 fi
6043
6044 if test "$wxUSE_MEDIACTRL" = yes; then
6045 echo "$as_me:$LINENO: result: yes" >&5
6046echo "${ECHO_T}yes" >&6
6047 else
6048 echo "$as_me:$LINENO: result: no" >&5
6049echo "${ECHO_T}no" >&6
6050 fi
6051
6052
a848cd7e
SC
6053 enablestring=
6054 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6055echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6056 no_cache=0
6057 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6058if test "${enable_wxprintfv+set}" = set; then
6059 enableval="$enable_wxprintfv"
6060
6061 if test "$enableval" = yes; then
6062 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6063 else
6064 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6065 fi
6066
6067else
6068
6069 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6070 if test "x$LINE" != x ; then
6071 eval "DEFAULT_$LINE"
6072 else
6073 no_cache=1
6074 fi
6075
6076 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6077
6078fi;
6079
6080 eval "$ac_cv_use_wxprintfv"
6081 if test "$no_cache" != 1; then
6082 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6083 fi
6084
6085 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6086 echo "$as_me:$LINENO: result: yes" >&5
6087echo "${ECHO_T}yes" >&6
6088 else
6089 echo "$as_me:$LINENO: result: no" >&5
6090echo "${ECHO_T}no" >&6
6091 fi
6092
6093
6094 enablestring=
6095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6096echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6097 no_cache=0
6098 # Check whether --enable-zipstream or --disable-zipstream was given.
6099if test "${enable_zipstream+set}" = set; then
6100 enableval="$enable_zipstream"
6101
6102 if test "$enableval" = yes; then
6103 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6104 else
6105 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6106 fi
6107
6108else
6109
6110 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6111 if test "x$LINE" != x ; then
6112 eval "DEFAULT_$LINE"
6113 else
6114 no_cache=1
6115 fi
6116
6117 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6118
6119fi;
6120
6121 eval "$ac_cv_use_zipstream"
6122 if test "$no_cache" != 1; then
6123 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6124 fi
6125
6126 if test "$wxUSE_ZIPSTREAM" = yes; then
6127 echo "$as_me:$LINENO: result: yes" >&5
6128echo "${ECHO_T}yes" >&6
6129 else
6130 echo "$as_me:$LINENO: result: no" >&5
6131echo "${ECHO_T}no" >&6
6132 fi
6133
6134
a848cd7e
SC
6135
6136 enablestring=
6137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6138echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6139 no_cache=0
6140 # Check whether --enable-url or --disable-url was given.
6141if test "${enable_url+set}" = set; then
6142 enableval="$enable_url"
6143
6144 if test "$enableval" = yes; then
6145 ac_cv_use_url='wxUSE_URL=yes'
6146 else
6147 ac_cv_use_url='wxUSE_URL=no'
6148 fi
6149
6150else
6151
6152 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6153 if test "x$LINE" != x ; then
6154 eval "DEFAULT_$LINE"
6155 else
6156 no_cache=1
6157 fi
6158
6159 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6160
6161fi;
6162
6163 eval "$ac_cv_use_url"
6164 if test "$no_cache" != 1; then
6165 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6166 fi
6167
6168 if test "$wxUSE_URL" = yes; then
6169 echo "$as_me:$LINENO: result: yes" >&5
6170echo "${ECHO_T}yes" >&6
6171 else
6172 echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6
6174 fi
6175
6176
6177 enablestring=
6178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6179echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6180 no_cache=0
6181 # Check whether --enable-protocol or --disable-protocol was given.
6182if test "${enable_protocol+set}" = set; then
6183 enableval="$enable_protocol"
6184
6185 if test "$enableval" = yes; then
6186 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6187 else
6188 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6189 fi
6190
6191else
6192
6193 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6194 if test "x$LINE" != x ; then
6195 eval "DEFAULT_$LINE"
6196 else
6197 no_cache=1
6198 fi
6199
6200 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6201
6202fi;
6203
6204 eval "$ac_cv_use_protocol"
6205 if test "$no_cache" != 1; then
6206 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6207 fi
6208
6209 if test "$wxUSE_PROTOCOL" = yes; then
6210 echo "$as_me:$LINENO: result: yes" >&5
6211echo "${ECHO_T}yes" >&6
6212 else
6213 echo "$as_me:$LINENO: result: no" >&5
6214echo "${ECHO_T}no" >&6
6215 fi
6216
6217
6218 enablestring=
6219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6220echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6221 no_cache=0
6222 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6223if test "${enable_protocol_http+set}" = set; then
6224 enableval="$enable_protocol_http"
6225
6226 if test "$enableval" = yes; then
6227 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6228 else
6229 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6230 fi
6231
6232else
6233
6234 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6235 if test "x$LINE" != x ; then
6236 eval "DEFAULT_$LINE"
6237 else
6238 no_cache=1
6239 fi
6240
6241 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6242
6243fi;
6244
6245 eval "$ac_cv_use_protocol_http"
6246 if test "$no_cache" != 1; then
6247 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6248 fi
6249
6250 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6251 echo "$as_me:$LINENO: result: yes" >&5
6252echo "${ECHO_T}yes" >&6
6253 else
6254 echo "$as_me:$LINENO: result: no" >&5
6255echo "${ECHO_T}no" >&6
6256 fi
6257
6258
6259 enablestring=
6260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6261echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6262 no_cache=0
6263 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6264if test "${enable_protocol_ftp+set}" = set; then
6265 enableval="$enable_protocol_ftp"
6266
6267 if test "$enableval" = yes; then
6268 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6269 else
6270 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6271 fi
6272
6273else
6274
6275 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6276 if test "x$LINE" != x ; then
6277 eval "DEFAULT_$LINE"
6278 else
6279 no_cache=1
6280 fi
6281
6282 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6283
6284fi;
6285
6286 eval "$ac_cv_use_protocol_ftp"
6287 if test "$no_cache" != 1; then
6288 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6289 fi
6290
6291 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6292 echo "$as_me:$LINENO: result: yes" >&5
6293echo "${ECHO_T}yes" >&6
6294 else
6295 echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6
6297 fi
6298
6299
6300 enablestring=
6301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6302echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6303 no_cache=0
6304 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6305if test "${enable_protocol_file+set}" = set; then
6306 enableval="$enable_protocol_file"
6307
6308 if test "$enableval" = yes; then
6309 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6310 else
6311 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6312 fi
6313
6314else
6315
6316 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6317 if test "x$LINE" != x ; then
6318 eval "DEFAULT_$LINE"
6319 else
6320 no_cache=1
6321 fi
6322
6323 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6324
6325fi;
6326
6327 eval "$ac_cv_use_protocol_file"
6328 if test "$no_cache" != 1; then
6329 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6330 fi
6331
6332 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6333 echo "$as_me:$LINENO: result: yes" >&5
6334echo "${ECHO_T}yes" >&6
6335 else
6336 echo "$as_me:$LINENO: result: no" >&5
6337echo "${ECHO_T}no" >&6
6338 fi
6339
6340
6341
6342
6343
6344 enablestring=
6345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6346echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6347 no_cache=0
6348 # Check whether --enable-threads or --disable-threads was given.
6349if test "${enable_threads+set}" = set; then
6350 enableval="$enable_threads"
6351
6352 if test "$enableval" = yes; then
6353 ac_cv_use_threads='wxUSE_THREADS=yes'
6354 else
6355 ac_cv_use_threads='wxUSE_THREADS=no'
6356 fi
6357
6358else
6359
6360 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6361 if test "x$LINE" != x ; then
6362 eval "DEFAULT_$LINE"
6363 else
6364 no_cache=1
6365 fi
6366
6367 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6368
6369fi;
6370
6371 eval "$ac_cv_use_threads"
6372 if test "$no_cache" != 1; then
6373 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6374 fi
6375
6376 if test "$wxUSE_THREADS" = yes; then
6377 echo "$as_me:$LINENO: result: yes" >&5
6378echo "${ECHO_T}yes" >&6
6379 else
6380 echo "$as_me:$LINENO: result: no" >&5
6381echo "${ECHO_T}no" >&6
6382 fi
6383
6384
6385if test "$wxUSE_GUI" = "yes"; then
6386
6387
6388
6389 enablestring=
6390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6391echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6392 no_cache=0
6393 # Check whether --enable-docview or --disable-docview was given.
6394if test "${enable_docview+set}" = set; then
6395 enableval="$enable_docview"
6396
6397 if test "$enableval" = yes; then
6398 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6399 else
6400 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6401 fi
6402
6403else
6404
6405 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6406 if test "x$LINE" != x ; then
6407 eval "DEFAULT_$LINE"
6408 else
6409 no_cache=1
6410 fi
6411
6412 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6413
6414fi;
6415
6416 eval "$ac_cv_use_docview"
6417 if test "$no_cache" != 1; then
6418 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6419 fi
6420
6421 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6422 echo "$as_me:$LINENO: result: yes" >&5
6423echo "${ECHO_T}yes" >&6
6424 else
6425 echo "$as_me:$LINENO: result: no" >&5
6426echo "${ECHO_T}no" >&6
6427 fi
6428
6429
6430 enablestring=
6431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6432echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6433 no_cache=0
6434 # Check whether --enable-help or --disable-help was given.
6435if test "${enable_help+set}" = set; then
6436 enableval="$enable_help"
6437
6438 if test "$enableval" = yes; then
6439 ac_cv_use_help='wxUSE_HELP=yes'
6440 else
6441 ac_cv_use_help='wxUSE_HELP=no'
6442 fi
6443
6444else
6445
6446 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6447 if test "x$LINE" != x ; then
6448 eval "DEFAULT_$LINE"
6449 else
6450 no_cache=1
6451 fi
6452
6453 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6454
6455fi;
6456
6457 eval "$ac_cv_use_help"
6458 if test "$no_cache" != 1; then
6459 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6460 fi
6461
6462 if test "$wxUSE_HELP" = yes; then
6463 echo "$as_me:$LINENO: result: yes" >&5
6464echo "${ECHO_T}yes" >&6
6465 else
6466 echo "$as_me:$LINENO: result: no" >&5
6467echo "${ECHO_T}no" >&6
6468 fi
6469
6470
6471 enablestring=
6472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6473echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6474 no_cache=0
6475 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6476if test "${enable_mshtmlhelp+set}" = set; then
6477 enableval="$enable_mshtmlhelp"
6478
6479 if test "$enableval" = yes; then
6480 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6481 else
6482 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6483 fi
6484
6485else
6486
6487 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6488 if test "x$LINE" != x ; then
6489 eval "DEFAULT_$LINE"
6490 else
6491 no_cache=1
6492 fi
6493
6494 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6495
6496fi;
6497
6498 eval "$ac_cv_use_mshtmlhelp"
6499 if test "$no_cache" != 1; then
6500 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6501 fi
6502
6503 if test "$wxUSE_MS_HTML_HELP" = yes; then
6504 echo "$as_me:$LINENO: result: yes" >&5
6505echo "${ECHO_T}yes" >&6
6506 else
6507 echo "$as_me:$LINENO: result: no" >&5
6508echo "${ECHO_T}no" >&6
6509 fi
6510
6511
6512 enablestring=
6513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6514echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6515 no_cache=0
6516 # Check whether --enable-html or --disable-html was given.
6517if test "${enable_html+set}" = set; then
6518 enableval="$enable_html"
6519
6520 if test "$enableval" = yes; then
6521 ac_cv_use_html='wxUSE_HTML=yes'
6522 else
6523 ac_cv_use_html='wxUSE_HTML=no'
6524 fi
6525
6526else
6527
6528 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6529 if test "x$LINE" != x ; then
6530 eval "DEFAULT_$LINE"
6531 else
6532 no_cache=1
6533 fi
6534
6535 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6536
6537fi;
6538
6539 eval "$ac_cv_use_html"
6540 if test "$no_cache" != 1; then
6541 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6542 fi
6543
6544 if test "$wxUSE_HTML" = yes; then
6545 echo "$as_me:$LINENO: result: yes" >&5
6546echo "${ECHO_T}yes" >&6
6547 else
6548 echo "$as_me:$LINENO: result: no" >&5
6549echo "${ECHO_T}no" >&6
6550 fi
6551
6552
6553 enablestring=
6554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6555echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6556 no_cache=0
6557 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6558if test "${enable_htmlhelp+set}" = set; then
6559 enableval="$enable_htmlhelp"
6560
6561 if test "$enableval" = yes; then
6562 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6563 else
6564 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6565 fi
6566
6567else
6568
6569 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6570 if test "x$LINE" != x ; then
6571 eval "DEFAULT_$LINE"
6572 else
6573 no_cache=1
6574 fi
6575
6576 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6577
6578fi;
6579
6580 eval "$ac_cv_use_htmlhelp"
6581 if test "$no_cache" != 1; then
6582 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6583 fi
6584
6585 if test "$wxUSE_WXHTML_HELP" = yes; then
6586 echo "$as_me:$LINENO: result: yes" >&5
6587echo "${ECHO_T}yes" >&6
6588 else
6589 echo "$as_me:$LINENO: result: no" >&5
6590echo "${ECHO_T}no" >&6
6591 fi
6592
6593
9a8f0513
VS
6594 enablestring=
6595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6596echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6597 no_cache=0
6598 # Check whether --enable-xrc or --disable-xrc was given.
6599if test "${enable_xrc+set}" = set; then
6600 enableval="$enable_xrc"
6601
6602 if test "$enableval" = yes; then
6603 ac_cv_use_xrc='wxUSE_XRC=yes'
6604 else
6605 ac_cv_use_xrc='wxUSE_XRC=no'
6606 fi
6607
6608else
6609
6610 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6611 if test "x$LINE" != x ; then
6612 eval "DEFAULT_$LINE"
6613 else
6614 no_cache=1
6615 fi
6616
6617 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6618
6619fi;
6620
6621 eval "$ac_cv_use_xrc"
6622 if test "$no_cache" != 1; then
6623 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6624 fi
6625
6626 if test "$wxUSE_XRC" = yes; then
6627 echo "$as_me:$LINENO: result: yes" >&5
6628echo "${ECHO_T}yes" >&6
6629 else
6630 echo "$as_me:$LINENO: result: no" >&5
6631echo "${ECHO_T}no" >&6
6632 fi
6633
6634
a848cd7e
SC
6635 enablestring=
6636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6637echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6638 no_cache=0
6639 # Check whether --enable-constraints or --disable-constraints was given.
6640if test "${enable_constraints+set}" = set; then
6641 enableval="$enable_constraints"
6642
6643 if test "$enableval" = yes; then
6644 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6645 else
6646 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6647 fi
6648
6649else
6650
6651 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6652 if test "x$LINE" != x ; then
6653 eval "DEFAULT_$LINE"
6654 else
6655 no_cache=1
6656 fi
6657
6658 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6659
6660fi;
6661
6662 eval "$ac_cv_use_constraints"
6663 if test "$no_cache" != 1; then
6664 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6665 fi
6666
6667 if test "$wxUSE_CONSTRAINTS" = yes; then
6668 echo "$as_me:$LINENO: result: yes" >&5
6669echo "${ECHO_T}yes" >&6
6670 else
6671 echo "$as_me:$LINENO: result: no" >&5
6672echo "${ECHO_T}no" >&6
6673 fi
6674
6675
6676 enablestring=
6677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6678echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6679 no_cache=0
6680 # Check whether --enable-printarch or --disable-printarch was given.
6681if test "${enable_printarch+set}" = set; then
6682 enableval="$enable_printarch"
6683
6684 if test "$enableval" = yes; then
6685 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6686 else
6687 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6688 fi
6689
6690else
6691
6692 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6693 if test "x$LINE" != x ; then
6694 eval "DEFAULT_$LINE"
6695 else
6696 no_cache=1
6697 fi
6698
6699 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6700
6701fi;
6702
6703 eval "$ac_cv_use_printarch"
6704 if test "$no_cache" != 1; then
6705 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6706 fi
6707
6708 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6709 echo "$as_me:$LINENO: result: yes" >&5
6710echo "${ECHO_T}yes" >&6
6711 else
6712 echo "$as_me:$LINENO: result: no" >&5
6713echo "${ECHO_T}no" >&6
6714 fi
6715
6716
6717 enablestring=
6718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6719echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6720 no_cache=0
6721 # Check whether --enable-mdi or --disable-mdi was given.
6722if test "${enable_mdi+set}" = set; then
6723 enableval="$enable_mdi"
6724
6725 if test "$enableval" = yes; then
8a7b1113 6726 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6727 else
8a7b1113 6728 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6729 fi
6730
6731else
6732
8a7b1113 6733 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6734 if test "x$LINE" != x ; then
6735 eval "DEFAULT_$LINE"
6736 else
6737 no_cache=1
6738 fi
6739
8a7b1113 6740 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6741
6742fi;
6743
6744 eval "$ac_cv_use_mdi"
6745 if test "$no_cache" != 1; then
6746 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6747 fi
6748
8a7b1113
VZ
6749 if test "$wxUSE_MDI" = yes; then
6750 echo "$as_me:$LINENO: result: yes" >&5
6751echo "${ECHO_T}yes" >&6
6752 else
6753 echo "$as_me:$LINENO: result: no" >&5
6754echo "${ECHO_T}no" >&6
6755 fi
6756
6757
6758 enablestring=
6759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6760echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6761 no_cache=0
6762 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6763if test "${enable_mdidoc+set}" = set; then
6764 enableval="$enable_mdidoc"
6765
6766 if test "$enableval" = yes; then
6767 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6768 else
6769 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6770 fi
6771
6772else
6773
6774 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6775 if test "x$LINE" != x ; then
6776 eval "DEFAULT_$LINE"
6777 else
6778 no_cache=1
6779 fi
6780
6781 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6782
6783fi;
6784
6785 eval "$ac_cv_use_mdidoc"
6786 if test "$no_cache" != 1; then
6787 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6788 fi
6789
a848cd7e
SC
6790 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6791 echo "$as_me:$LINENO: result: yes" >&5
6792echo "${ECHO_T}yes" >&6
6793 else
6794 echo "$as_me:$LINENO: result: no" >&5
6795echo "${ECHO_T}no" >&6
6796 fi
6797
6798
6799 enablestring=
6800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6801echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6802 no_cache=0
6803 # Check whether --enable-loggui or --disable-loggui was given.
6804if test "${enable_loggui+set}" = set; then
6805 enableval="$enable_loggui"
6806
6807 if test "$enableval" = yes; then
6808 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6809 else
6810 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6811 fi
6812
6813else
6814
6815 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6816 if test "x$LINE" != x ; then
6817 eval "DEFAULT_$LINE"
6818 else
6819 no_cache=1
6820 fi
6821
6822 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6823
6824fi;
6825
6826 eval "$ac_cv_use_loggui"
6827 if test "$no_cache" != 1; then
6828 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6829 fi
6830
6831 if test "$wxUSE_LOGGUI" = yes; then
6832 echo "$as_me:$LINENO: result: yes" >&5
6833echo "${ECHO_T}yes" >&6
6834 else
6835 echo "$as_me:$LINENO: result: no" >&5
6836echo "${ECHO_T}no" >&6
6837 fi
6838
6839
6840 enablestring=
6841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6842echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6843 no_cache=0
6844 # Check whether --enable-logwin or --disable-logwin was given.
6845if test "${enable_logwin+set}" = set; then
6846 enableval="$enable_logwin"
6847
6848 if test "$enableval" = yes; then
6849 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6850 else
6851 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6852 fi
6853
6854else
6855
6856 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6857 if test "x$LINE" != x ; then
6858 eval "DEFAULT_$LINE"
6859 else
6860 no_cache=1
6861 fi
6862
6863 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6864
6865fi;
6866
6867 eval "$ac_cv_use_logwin"
6868 if test "$no_cache" != 1; then
6869 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6870 fi
6871
6872 if test "$wxUSE_LOGWINDOW" = yes; then
6873 echo "$as_me:$LINENO: result: yes" >&5
6874echo "${ECHO_T}yes" >&6
6875 else
6876 echo "$as_me:$LINENO: result: no" >&5
6877echo "${ECHO_T}no" >&6
6878 fi
6879
6880
6881 enablestring=
6882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6883echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6884 no_cache=0
6885 # Check whether --enable-logdialog or --disable-logdialog was given.
6886if test "${enable_logdialog+set}" = set; then
6887 enableval="$enable_logdialog"
6888
6889 if test "$enableval" = yes; then
6890 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6891 else
6892 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6893 fi
6894
6895else
6896
6897 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6898 if test "x$LINE" != x ; then
6899 eval "DEFAULT_$LINE"
6900 else
6901 no_cache=1
6902 fi
6903
6904 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6905
6906fi;
6907
6908 eval "$ac_cv_use_logdialog"
6909 if test "$no_cache" != 1; then
6910 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6911 fi
6912
6913 if test "$wxUSE_LOGDIALOG" = yes; then
6914 echo "$as_me:$LINENO: result: yes" >&5
6915echo "${ECHO_T}yes" >&6
6916 else
6917 echo "$as_me:$LINENO: result: no" >&5
6918echo "${ECHO_T}no" >&6
6919 fi
6920
6921
646b6ec1
VS
6922 enablestring=
6923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6924echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6925 no_cache=0
6926 # Check whether --enable-webkit or --disable-webkit was given.
6927if test "${enable_webkit+set}" = set; then
6928 enableval="$enable_webkit"
6929
6930 if test "$enableval" = yes; then
6931 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6932 else
6933 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6934 fi
6935
6936else
6937
6938 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6939 if test "x$LINE" != x ; then
6940 eval "DEFAULT_$LINE"
6941 else
6942 no_cache=1
6943 fi
6944
6945 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6946
6947fi;
6948
6949 eval "$ac_cv_use_webkit"
6950 if test "$no_cache" != 1; then
6951 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6952 fi
6953
6954 if test "$wxUSE_WEBKIT" = yes; then
6955 echo "$as_me:$LINENO: result: yes" >&5
6956echo "${ECHO_T}yes" >&6
6957 else
6958 echo "$as_me:$LINENO: result: no" >&5
6959echo "${ECHO_T}no" >&6
6960 fi
6961
6962
a848cd7e
SC
6963
6964 enablestring=
6965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6966echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6967 no_cache=0
6968 # Check whether --enable-postscript or --disable-postscript was given.
6969if test "${enable_postscript+set}" = set; then
6970 enableval="$enable_postscript"
6971
6972 if test "$enableval" = yes; then
6973 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6974 else
6975 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6976 fi
6977
6978else
6979
6980 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6981 if test "x$LINE" != x ; then
6982 eval "DEFAULT_$LINE"
6983 else
6984 no_cache=1
6985 fi
6986
6987 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6988
6989fi;
6990
6991 eval "$ac_cv_use_postscript"
6992 if test "$no_cache" != 1; then
6993 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6994 fi
6995
6996 if test "$wxUSE_POSTSCRIPT" = yes; then
6997 echo "$as_me:$LINENO: result: yes" >&5
6998echo "${ECHO_T}yes" >&6
6999 else
7000 echo "$as_me:$LINENO: result: no" >&5
7001echo "${ECHO_T}no" >&6
7002 fi
7003
7004
7005
7006
7007
7008 enablestring=
7009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7010echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7011 no_cache=0
7012 # Check whether --enable-prologio or --disable-prologio was given.
7013if test "${enable_prologio+set}" = set; then
7014 enableval="$enable_prologio"
7015
7016 if test "$enableval" = yes; then
7017 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7018 else
7019 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7020 fi
7021
7022else
7023
7024 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7025 if test "x$LINE" != x ; then
7026 eval "DEFAULT_$LINE"
7027 else
7028 no_cache=1
7029 fi
7030
7031 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7032
7033fi;
7034
7035 eval "$ac_cv_use_prologio"
7036 if test "$no_cache" != 1; then
7037 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7038 fi
7039
7040 if test "$wxUSE_PROLOGIO" = yes; then
7041 echo "$as_me:$LINENO: result: yes" >&5
7042echo "${ECHO_T}yes" >&6
7043 else
7044 echo "$as_me:$LINENO: result: no" >&5
7045echo "${ECHO_T}no" >&6
7046 fi
7047
7048
7049 enablestring=
7050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7051echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7052 no_cache=0
7053 # Check whether --enable-resources or --disable-resources was given.
7054if test "${enable_resources+set}" = set; then
7055 enableval="$enable_resources"
7056
7057 if test "$enableval" = yes; then
7058 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7059 else
7060 ac_cv_use_resources='wxUSE_RESOURCES=no'
7061 fi
7062
7063else
7064
7065 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7066 if test "x$LINE" != x ; then
7067 eval "DEFAULT_$LINE"
7068 else
7069 no_cache=1
7070 fi
7071
7072 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7073
7074fi;
7075
7076 eval "$ac_cv_use_resources"
7077 if test "$no_cache" != 1; then
7078 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7079 fi
7080
7081 if test "$wxUSE_RESOURCES" = yes; then
7082 echo "$as_me:$LINENO: result: yes" >&5
7083echo "${ECHO_T}yes" >&6
7084 else
7085 echo "$as_me:$LINENO: result: no" >&5
7086echo "${ECHO_T}no" >&6
7087 fi
7088
7089
7090
7091
7092 enablestring=
7093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7094echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7095 no_cache=0
7096 # Check whether --enable-clipboard or --disable-clipboard was given.
7097if test "${enable_clipboard+set}" = set; then
7098 enableval="$enable_clipboard"
7099
7100 if test "$enableval" = yes; then
7101 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7102 else
7103 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7104 fi
7105
7106else
7107
7108 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7109 if test "x$LINE" != x ; then
7110 eval "DEFAULT_$LINE"
7111 else
7112 no_cache=1
7113 fi
7114
7115 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7116
7117fi;
7118
7119 eval "$ac_cv_use_clipboard"
7120 if test "$no_cache" != 1; then
7121 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7122 fi
7123
7124 if test "$wxUSE_CLIPBOARD" = yes; then
7125 echo "$as_me:$LINENO: result: yes" >&5
7126echo "${ECHO_T}yes" >&6
7127 else
7128 echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6
7130 fi
7131
7132
7133 enablestring=
7134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7135echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7136 no_cache=0
7137 # Check whether --enable-dnd or --disable-dnd was given.
7138if test "${enable_dnd+set}" = set; then
7139 enableval="$enable_dnd"
7140
7141 if test "$enableval" = yes; then
7142 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7143 else
7144 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7145 fi
7146
7147else
7148
7149 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7150 if test "x$LINE" != x ; then
7151 eval "DEFAULT_$LINE"
7152 else
7153 no_cache=1
7154 fi
7155
7156 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7157
7158fi;
7159
7160 eval "$ac_cv_use_dnd"
7161 if test "$no_cache" != 1; then
7162 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7163 fi
7164
7165 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7166 echo "$as_me:$LINENO: result: yes" >&5
7167echo "${ECHO_T}yes" >&6
7168 else
7169 echo "$as_me:$LINENO: result: no" >&5
7170echo "${ECHO_T}no" >&6
7171 fi
7172
7173
7174 enablestring=
7175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7176echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7177 no_cache=0
7178 # Check whether --enable-metafile or --disable-metafile was given.
7179if test "${enable_metafile+set}" = set; then
7180 enableval="$enable_metafile"
7181
7182 if test "$enableval" = yes; then
7183 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7184 else
7185 ac_cv_use_metafile='wxUSE_METAFILE=no'
7186 fi
7187
7188else
7189
7190 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7191 if test "x$LINE" != x ; then
7192 eval "DEFAULT_$LINE"
7193 else
7194 no_cache=1
7195 fi
7196
7197 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7198
7199fi;
7200
7201 eval "$ac_cv_use_metafile"
7202 if test "$no_cache" != 1; then
7203 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7204 fi
7205
7206 if test "$wxUSE_METAFILE" = yes; then
7207 echo "$as_me:$LINENO: result: yes" >&5
7208echo "${ECHO_T}yes" >&6
7209 else
7210 echo "$as_me:$LINENO: result: no" >&5
7211echo "${ECHO_T}no" >&6
7212 fi
7213
7214
7215
7216
7217
7218 enablestring=
7219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7220echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7221 no_cache=0
7222 # Check whether --enable-controls or --disable-controls was given.
7223if test "${enable_controls+set}" = set; then
7224 enableval="$enable_controls"
7225
7226 if test "$enableval" = yes; then
7227 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7228 else
7229 ac_cv_use_controls='wxUSE_CONTROLS=no'
7230 fi
7231
7232else
7233
7234 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7235 if test "x$LINE" != x ; then
7236 eval "DEFAULT_$LINE"
7237 else
7238 no_cache=1
7239 fi
7240
7241 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7242
7243fi;
7244
7245 eval "$ac_cv_use_controls"
7246 if test "$no_cache" != 1; then
7247 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7248 fi
7249
7250 if test "$wxUSE_CONTROLS" = yes; then
7251 echo "$as_me:$LINENO: result: yes" >&5
7252echo "${ECHO_T}yes" >&6
7253 else
7254 echo "$as_me:$LINENO: result: no" >&5
7255echo "${ECHO_T}no" >&6
7256 fi
7257
7258
7259if test "$wxUSE_CONTROLS" = "yes"; then
7260 DEFAULT_wxUSE_ACCEL=yes
7261 DEFAULT_wxUSE_BMPBUTTON=yes
7262 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7263 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7264 DEFAULT_wxUSE_CARET=yes
7265 DEFAULT_wxUSE_COMBOBOX=yes
7266 DEFAULT_wxUSE_CHECKBOX=yes
7267 DEFAULT_wxUSE_CHECKLISTBOX=yes
7268 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7269 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7270 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7271 DEFAULT_wxUSE_GAUGE=yes
7272 DEFAULT_wxUSE_GRID=yes
7273 DEFAULT_wxUSE_IMAGLIST=yes
7274 DEFAULT_wxUSE_LISTBOOK=yes
7275 DEFAULT_wxUSE_LISTBOX=yes
7276 DEFAULT_wxUSE_LISTCTRL=yes
7277 DEFAULT_wxUSE_NOTEBOOK=yes
7278 DEFAULT_wxUSE_RADIOBOX=yes
7279 DEFAULT_wxUSE_RADIOBTN=yes
7280 DEFAULT_wxUSE_SASH=yes
7281 DEFAULT_wxUSE_SCROLLBAR=yes
7282 DEFAULT_wxUSE_SLIDER=yes
7283 DEFAULT_wxUSE_SPINBTN=yes
7284 DEFAULT_wxUSE_SPINCTRL=yes
7285 DEFAULT_wxUSE_SPLITTER=yes
7286 DEFAULT_wxUSE_STATBMP=yes
7287 DEFAULT_wxUSE_STATBOX=yes
7288 DEFAULT_wxUSE_STATLINE=yes
7289 DEFAULT_wxUSE_STATUSBAR=yes
7290 DEFAULT_wxUSE_TAB_DIALOG=yes
7291 DEFAULT_wxUSE_TOGGLEBTN=yes
7292 DEFAULT_wxUSE_TOOLBAR=yes
7293 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7294 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7295 DEFAULT_wxUSE_TOOLTIPS=yes
7296 DEFAULT_wxUSE_TREECTRL=yes
7297 DEFAULT_wxUSE_POPUPWIN=yes
7298 DEFAULT_wxUSE_TIPWINDOW=yes
7299elif test "$wxUSE_CONTROLS" = "no"; then
7300 DEFAULT_wxUSE_ACCEL=no
7301 DEFAULT_wxUSE_BMPBUTTON=no
7302 DEFAULT_wxUSE_BUTTON=no
7303 DEFAULT_wxUSE_CALCTRL=no
7304 DEFAULT_wxUSE_CARET=no
7305 DEFAULT_wxUSE_COMBOBOX=no
7306 DEFAULT_wxUSE_CHECKBOX=no
7307 DEFAULT_wxUSE_CHECKLISTBOX=no
7308 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7309 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7310 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7311 DEFAULT_wxUSE_GAUGE=no
7312 DEFAULT_wxUSE_GRID=no
7313 DEFAULT_wxUSE_IMAGLIST=no
7314 DEFAULT_wxUSE_LISTBOOK=no
7315 DEFAULT_wxUSE_LISTBOX=no
7316 DEFAULT_wxUSE_LISTCTRL=no
7317 DEFAULT_wxUSE_NOTEBOOK=no
7318 DEFAULT_wxUSE_RADIOBOX=no
7319 DEFAULT_wxUSE_RADIOBTN=no
7320 DEFAULT_wxUSE_SASH=no
7321 DEFAULT_wxUSE_SCROLLBAR=no
7322 DEFAULT_wxUSE_SLIDER=no
7323 DEFAULT_wxUSE_SPINBTN=no
7324 DEFAULT_wxUSE_SPINCTRL=no
7325 DEFAULT_wxUSE_SPLITTER=no
7326 DEFAULT_wxUSE_STATBMP=no
7327 DEFAULT_wxUSE_STATBOX=no
7328 DEFAULT_wxUSE_STATLINE=no
7329 DEFAULT_wxUSE_STATUSBAR=no
7330 DEFAULT_wxUSE_TAB_DIALOG=no
7331 DEFAULT_wxUSE_TOGGLEBTN=no
7332 DEFAULT_wxUSE_TOOLBAR=no
7333 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7334 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7335 DEFAULT_wxUSE_TOOLTIPS=no
7336 DEFAULT_wxUSE_TREECTRL=no
7337 DEFAULT_wxUSE_POPUPWIN=no
7338 DEFAULT_wxUSE_TIPWINDOW=no
7339fi
7340
a848cd7e
SC
7341
7342 enablestring=
7343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7344echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7345 no_cache=0
7346 # Check whether --enable-accel or --disable-accel was given.
7347if test "${enable_accel+set}" = set; then
7348 enableval="$enable_accel"
7349
7350 if test "$enableval" = yes; then
7351 ac_cv_use_accel='wxUSE_ACCEL=yes'
7352 else
7353 ac_cv_use_accel='wxUSE_ACCEL=no'
7354 fi
7355
7356else
7357
7358 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7359 if test "x$LINE" != x ; then
7360 eval "DEFAULT_$LINE"
7361 else
7362 no_cache=1
7363 fi
7364
7365 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7366
7367fi;
7368
7369 eval "$ac_cv_use_accel"
7370 if test "$no_cache" != 1; then
7371 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7372 fi
7373
7374 if test "$wxUSE_ACCEL" = yes; then
7375 echo "$as_me:$LINENO: result: yes" >&5
7376echo "${ECHO_T}yes" >&6
7377 else
7378 echo "$as_me:$LINENO: result: no" >&5
7379echo "${ECHO_T}no" >&6
7380 fi
7381
7382
7383 enablestring=
7384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7385echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7386 no_cache=0
7387 # Check whether --enable-button or --disable-button was given.
7388if test "${enable_button+set}" = set; then
7389 enableval="$enable_button"
7390
7391 if test "$enableval" = yes; then
7392 ac_cv_use_button='wxUSE_BUTTON=yes'
7393 else
7394 ac_cv_use_button='wxUSE_BUTTON=no'
7395 fi
7396
7397else
7398
7399 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7400 if test "x$LINE" != x ; then
7401 eval "DEFAULT_$LINE"
7402 else
7403 no_cache=1
7404 fi
7405
7406 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7407
7408fi;
7409
7410 eval "$ac_cv_use_button"
7411 if test "$no_cache" != 1; then
7412 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7413 fi
7414
7415 if test "$wxUSE_BUTTON" = yes; then
7416 echo "$as_me:$LINENO: result: yes" >&5
7417echo "${ECHO_T}yes" >&6
7418 else
7419 echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6
7421 fi
7422
7423
7424 enablestring=
7425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7426echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7427 no_cache=0
7428 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7429if test "${enable_bmpbutton+set}" = set; then
7430 enableval="$enable_bmpbutton"
7431
7432 if test "$enableval" = yes; then
7433 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7434 else
7435 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7436 fi
7437
7438else
7439
7440 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7441 if test "x$LINE" != x ; then
7442 eval "DEFAULT_$LINE"
7443 else
7444 no_cache=1
7445 fi
7446
7447 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7448
7449fi;
7450
7451 eval "$ac_cv_use_bmpbutton"
7452 if test "$no_cache" != 1; then
7453 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7454 fi
7455
7456 if test "$wxUSE_BMPBUTTON" = yes; then
7457 echo "$as_me:$LINENO: result: yes" >&5
7458echo "${ECHO_T}yes" >&6
7459 else
7460 echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6
7462 fi
7463
7464
7465 enablestring=
7466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7467echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7468 no_cache=0
7469 # Check whether --enable-calendar or --disable-calendar was given.
7470if test "${enable_calendar+set}" = set; then
7471 enableval="$enable_calendar"
7472
7473 if test "$enableval" = yes; then
7474 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7475 else
7476 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7477 fi
7478
7479else
7480
7481 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7482 if test "x$LINE" != x ; then
7483 eval "DEFAULT_$LINE"
7484 else
7485 no_cache=1
7486 fi
7487
7488 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7489
7490fi;
7491
7492 eval "$ac_cv_use_calendar"
7493 if test "$no_cache" != 1; then
7494 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7495 fi
7496
7497 if test "$wxUSE_CALCTRL" = yes; then
7498 echo "$as_me:$LINENO: result: yes" >&5
7499echo "${ECHO_T}yes" >&6
7500 else
7501 echo "$as_me:$LINENO: result: no" >&5
7502echo "${ECHO_T}no" >&6
7503 fi
7504
7505
7506 enablestring=
7507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7508echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7509 no_cache=0
7510 # Check whether --enable-caret or --disable-caret was given.
7511if test "${enable_caret+set}" = set; then
7512 enableval="$enable_caret"
7513
7514 if test "$enableval" = yes; then
7515 ac_cv_use_caret='wxUSE_CARET=yes'
7516 else
7517 ac_cv_use_caret='wxUSE_CARET=no'
7518 fi
7519
7520else
7521
7522 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7523 if test "x$LINE" != x ; then
7524 eval "DEFAULT_$LINE"
7525 else
7526 no_cache=1
7527 fi
7528
7529 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7530
7531fi;
7532
7533 eval "$ac_cv_use_caret"
7534 if test "$no_cache" != 1; then
7535 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7536 fi
7537
7538 if test "$wxUSE_CARET" = yes; then
7539 echo "$as_me:$LINENO: result: yes" >&5
7540echo "${ECHO_T}yes" >&6
7541 else
7542 echo "$as_me:$LINENO: result: no" >&5
7543echo "${ECHO_T}no" >&6
7544 fi
7545
7546
7547 enablestring=
7548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7549echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7550 no_cache=0
7551 # Check whether --enable-checkbox or --disable-checkbox was given.
7552if test "${enable_checkbox+set}" = set; then
7553 enableval="$enable_checkbox"
7554
7555 if test "$enableval" = yes; then
7556 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7557 else
7558 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7559 fi
7560
7561else
7562
7563 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7564 if test "x$LINE" != x ; then
7565 eval "DEFAULT_$LINE"
7566 else
7567 no_cache=1
7568 fi
7569
7570 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7571
7572fi;
7573
7574 eval "$ac_cv_use_checkbox"
7575 if test "$no_cache" != 1; then
7576 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7577 fi
7578
7579 if test "$wxUSE_CHECKBOX" = yes; then
7580 echo "$as_me:$LINENO: result: yes" >&5
7581echo "${ECHO_T}yes" >&6
7582 else
7583 echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6
7585 fi
7586
7587
7588 enablestring=
7589 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7590echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7591 no_cache=0
7592 # Check whether --enable-checklst or --disable-checklst was given.
7593if test "${enable_checklst+set}" = set; then
7594 enableval="$enable_checklst"
7595
7596 if test "$enableval" = yes; then
7597 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7598 else
7599 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7600 fi
7601
7602else
7603
7604 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7605 if test "x$LINE" != x ; then
7606 eval "DEFAULT_$LINE"
7607 else
7608 no_cache=1
7609 fi
7610
7611 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7612
7613fi;
7614
7615 eval "$ac_cv_use_checklst"
7616 if test "$no_cache" != 1; then
7617 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7618 fi
7619
7620 if test "$wxUSE_CHECKLST" = yes; then
7621 echo "$as_me:$LINENO: result: yes" >&5
7622echo "${ECHO_T}yes" >&6
7623 else
7624 echo "$as_me:$LINENO: result: no" >&5
7625echo "${ECHO_T}no" >&6
7626 fi
7627
7628
7629 enablestring=
7630 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7631echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7632 no_cache=0
7633 # Check whether --enable-choice or --disable-choice was given.
7634if test "${enable_choice+set}" = set; then
7635 enableval="$enable_choice"
7636
7637 if test "$enableval" = yes; then
7638 ac_cv_use_choice='wxUSE_CHOICE=yes'
7639 else
7640 ac_cv_use_choice='wxUSE_CHOICE=no'
7641 fi
7642
7643else
7644
7645 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7646 if test "x$LINE" != x ; then
7647 eval "DEFAULT_$LINE"
7648 else
7649 no_cache=1
7650 fi
7651
7652 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7653
7654fi;
7655
7656 eval "$ac_cv_use_choice"
7657 if test "$no_cache" != 1; then
7658 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7659 fi
7660
7661 if test "$wxUSE_CHOICE" = yes; then
7662 echo "$as_me:$LINENO: result: yes" >&5
7663echo "${ECHO_T}yes" >&6
7664 else
7665 echo "$as_me:$LINENO: result: no" >&5
7666echo "${ECHO_T}no" >&6
7667 fi
7668
7669
92bbdbcd
WS
7670 enablestring=
7671 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7672echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7673 no_cache=0
7674 # Check whether --enable-choicebook or --disable-choicebook was given.
7675if test "${enable_choicebook+set}" = set; then
7676 enableval="$enable_choicebook"
7677
7678 if test "$enableval" = yes; then
7679 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7680 else
7681 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7682 fi
7683
7684else
7685
7686 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7687 if test "x$LINE" != x ; then
7688 eval "DEFAULT_$LINE"
7689 else
7690 no_cache=1
7691 fi
7692
7693 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7694
7695fi;
7696
7697 eval "$ac_cv_use_choicebook"
7698 if test "$no_cache" != 1; then
7699 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7700 fi
7701
7702 if test "$wxUSE_CHOICEBOOK" = yes; then
7703 echo "$as_me:$LINENO: result: yes" >&5
7704echo "${ECHO_T}yes" >&6
7705 else
7706 echo "$as_me:$LINENO: result: no" >&5
7707echo "${ECHO_T}no" >&6
7708 fi
7709
7710
a848cd7e
SC
7711 enablestring=
7712 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7713echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7714 no_cache=0
7715 # Check whether --enable-combobox or --disable-combobox was given.
7716if test "${enable_combobox+set}" = set; then
7717 enableval="$enable_combobox"
7718
7719 if test "$enableval" = yes; then
7720 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7721 else
7722 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7723 fi
7724
7725else
7726
7727 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7728 if test "x$LINE" != x ; then
7729 eval "DEFAULT_$LINE"
7730 else
7731 no_cache=1
7732 fi
7733
7734 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7735
7736fi;
7737
7738 eval "$ac_cv_use_combobox"
7739 if test "$no_cache" != 1; then
7740 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7741 fi
7742
7743 if test "$wxUSE_COMBOBOX" = yes; then
7744 echo "$as_me:$LINENO: result: yes" >&5
7745echo "${ECHO_T}yes" >&6
7746 else
7747 echo "$as_me:$LINENO: result: no" >&5
7748echo "${ECHO_T}no" >&6
7749 fi
7750
7751
da98e9be
VZ
7752 enablestring=
7753 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7754echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7755 no_cache=0
7756 # Check whether --enable-datepick or --disable-datepick was given.
7757if test "${enable_datepick+set}" = set; then
7758 enableval="$enable_datepick"
7759
7760 if test "$enableval" = yes; then
7761 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7762 else
7763 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7764 fi
7765
7766else
7767
7768 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7769 if test "x$LINE" != x ; then
7770 eval "DEFAULT_$LINE"
7771 else
7772 no_cache=1
7773 fi
7774
7775 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7776
7777fi;
7778
7779 eval "$ac_cv_use_datepick"
7780 if test "$no_cache" != 1; then
7781 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7782 fi
7783
7784 if test "$wxUSE_DATEPICKCTRL" = yes; then
7785 echo "$as_me:$LINENO: result: yes" >&5
7786echo "${ECHO_T}yes" >&6
7787 else
7788 echo "$as_me:$LINENO: result: no" >&5
7789echo "${ECHO_T}no" >&6
7790 fi
7791
7792
a848cd7e
SC
7793 enablestring=
7794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7795echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7796 no_cache=0
7797 # Check whether --enable-display or --disable-display was given.
7798if test "${enable_display+set}" = set; then
7799 enableval="$enable_display"
7800
7801 if test "$enableval" = yes; then
7802 ac_cv_use_display='wxUSE_DISPLAY=yes'
7803 else
7804 ac_cv_use_display='wxUSE_DISPLAY=no'
7805 fi
7806
7807else
7808
7809 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7810 if test "x$LINE" != x ; then
7811 eval "DEFAULT_$LINE"
7812 else
7813 no_cache=1
7814 fi
7815
7816 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7817
7818fi;
7819
7820 eval "$ac_cv_use_display"
7821 if test "$no_cache" != 1; then
7822 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7823 fi
7824
7825 if test "$wxUSE_DISPLAY" = yes; then
7826 echo "$as_me:$LINENO: result: yes" >&5
7827echo "${ECHO_T}yes" >&6
7828 else
7829 echo "$as_me:$LINENO: result: no" >&5
7830echo "${ECHO_T}no" >&6
7831 fi
7832
7833
7834 enablestring=
7835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7836echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7837 no_cache=0
7838 # Check whether --enable-gauge or --disable-gauge was given.
7839if test "${enable_gauge+set}" = set; then
7840 enableval="$enable_gauge"
7841
7842 if test "$enableval" = yes; then
7843 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7844 else
7845 ac_cv_use_gauge='wxUSE_GAUGE=no'
7846 fi
7847
7848else
7849
7850 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7851 if test "x$LINE" != x ; then
7852 eval "DEFAULT_$LINE"
7853 else
7854 no_cache=1
7855 fi
7856
7857 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7858
7859fi;
7860
7861 eval "$ac_cv_use_gauge"
7862 if test "$no_cache" != 1; then
7863 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7864 fi
7865
7866 if test "$wxUSE_GAUGE" = yes; then
7867 echo "$as_me:$LINENO: result: yes" >&5
7868echo "${ECHO_T}yes" >&6
7869 else
7870 echo "$as_me:$LINENO: result: no" >&5
7871echo "${ECHO_T}no" >&6
7872 fi
7873
7874
7875 enablestring=
7876 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7877echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7878 no_cache=0
7879 # Check whether --enable-grid or --disable-grid was given.
7880if test "${enable_grid+set}" = set; then
7881 enableval="$enable_grid"
7882
7883 if test "$enableval" = yes; then
7884 ac_cv_use_grid='wxUSE_GRID=yes'
7885 else
7886 ac_cv_use_grid='wxUSE_GRID=no'
7887 fi
7888
7889else
7890
7891 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7892 if test "x$LINE" != x ; then
7893 eval "DEFAULT_$LINE"
7894 else
7895 no_cache=1
7896 fi
7897
7898 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7899
7900fi;
7901
7902 eval "$ac_cv_use_grid"
7903 if test "$no_cache" != 1; then
7904 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7905 fi
7906
7907 if test "$wxUSE_GRID" = yes; then
7908 echo "$as_me:$LINENO: result: yes" >&5
7909echo "${ECHO_T}yes" >&6
7910 else
7911 echo "$as_me:$LINENO: result: no" >&5
7912echo "${ECHO_T}no" >&6
7913 fi
7914
7915
7916 enablestring=
7917 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7918echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7919 no_cache=0
7920 # Check whether --enable-imaglist or --disable-imaglist was given.
7921if test "${enable_imaglist+set}" = set; then
7922 enableval="$enable_imaglist"
7923
7924 if test "$enableval" = yes; then
7925 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7926 else
7927 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7928 fi
7929
7930else
7931
7932 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7933 if test "x$LINE" != x ; then
7934 eval "DEFAULT_$LINE"
7935 else
7936 no_cache=1
7937 fi
7938
7939 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7940
7941fi;
7942
7943 eval "$ac_cv_use_imaglist"
7944 if test "$no_cache" != 1; then
7945 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7946 fi
7947
7948 if test "$wxUSE_IMAGLIST" = yes; then
7949 echo "$as_me:$LINENO: result: yes" >&5
7950echo "${ECHO_T}yes" >&6
7951 else
7952 echo "$as_me:$LINENO: result: no" >&5
7953echo "${ECHO_T}no" >&6
7954 fi
7955
7956
7957 enablestring=
7958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7959echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7960 no_cache=0
7961 # Check whether --enable-listbook or --disable-listbook was given.
7962if test "${enable_listbook+set}" = set; then
7963 enableval="$enable_listbook"
7964
7965 if test "$enableval" = yes; then
7966 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7967 else
7968 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7969 fi
7970
7971else
7972
7973 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7974 if test "x$LINE" != x ; then
7975 eval "DEFAULT_$LINE"
7976 else
7977 no_cache=1
7978 fi
7979
7980 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7981
7982fi;
7983
7984 eval "$ac_cv_use_listbook"
7985 if test "$no_cache" != 1; then
7986 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7987 fi
7988
7989 if test "$wxUSE_LISTBOOK" = yes; then
7990 echo "$as_me:$LINENO: result: yes" >&5
7991echo "${ECHO_T}yes" >&6
7992 else
7993 echo "$as_me:$LINENO: result: no" >&5
7994echo "${ECHO_T}no" >&6
7995 fi
7996
7997
7998 enablestring=
7999 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8000echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8001 no_cache=0
8002 # Check whether --enable-listbox or --disable-listbox was given.
8003if test "${enable_listbox+set}" = set; then
8004 enableval="$enable_listbox"
8005
8006 if test "$enableval" = yes; then
8007 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8008 else
8009 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8010 fi
8011
8012else
8013
8014 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8015 if test "x$LINE" != x ; then
8016 eval "DEFAULT_$LINE"
8017 else
8018 no_cache=1
8019 fi
8020
8021 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8022
8023fi;
8024
8025 eval "$ac_cv_use_listbox"
8026 if test "$no_cache" != 1; then
8027 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8028 fi
8029
8030 if test "$wxUSE_LISTBOX" = yes; then
8031 echo "$as_me:$LINENO: result: yes" >&5
8032echo "${ECHO_T}yes" >&6
8033 else
8034 echo "$as_me:$LINENO: result: no" >&5
8035echo "${ECHO_T}no" >&6
8036 fi
8037
8038
8039 enablestring=
8040 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8041echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8042 no_cache=0
8043 # Check whether --enable-listctrl or --disable-listctrl was given.
8044if test "${enable_listctrl+set}" = set; then
8045 enableval="$enable_listctrl"
8046
8047 if test "$enableval" = yes; then
8048 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8049 else
8050 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8051 fi
8052
8053else
8054
8055 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8056 if test "x$LINE" != x ; then
8057 eval "DEFAULT_$LINE"
8058 else
8059 no_cache=1
8060 fi
8061
8062 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8063
8064fi;
8065
8066 eval "$ac_cv_use_listctrl"
8067 if test "$no_cache" != 1; then
8068 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8069 fi
8070
8071 if test "$wxUSE_LISTCTRL" = yes; then
8072 echo "$as_me:$LINENO: result: yes" >&5
8073echo "${ECHO_T}yes" >&6
8074 else
8075 echo "$as_me:$LINENO: result: no" >&5
8076echo "${ECHO_T}no" >&6
8077 fi
8078
8079
8080 enablestring=
8081 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8082echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8083 no_cache=0
8084 # Check whether --enable-notebook or --disable-notebook was given.
8085if test "${enable_notebook+set}" = set; then
8086 enableval="$enable_notebook"
8087
8088 if test "$enableval" = yes; then
8089 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8090 else
8091 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8092 fi
8093
8094else
8095
8096 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8097 if test "x$LINE" != x ; then
8098 eval "DEFAULT_$LINE"
8099 else
8100 no_cache=1
8101 fi
8102
8103 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8104
8105fi;
8106
8107 eval "$ac_cv_use_notebook"
8108 if test "$no_cache" != 1; then
8109 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8110 fi
8111
8112 if test "$wxUSE_NOTEBOOK" = yes; then
8113 echo "$as_me:$LINENO: result: yes" >&5
8114echo "${ECHO_T}yes" >&6
8115 else
8116 echo "$as_me:$LINENO: result: no" >&5
8117echo "${ECHO_T}no" >&6
8118 fi
8119
8120
8121 enablestring=
8122 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8123echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8124 no_cache=0
8125 # Check whether --enable-radiobox or --disable-radiobox was given.
8126if test "${enable_radiobox+set}" = set; then
8127 enableval="$enable_radiobox"
8128
8129 if test "$enableval" = yes; then
8130 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8131 else
8132 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8133 fi
8134
8135else
8136
8137 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8138 if test "x$LINE" != x ; then
8139 eval "DEFAULT_$LINE"
8140 else
8141 no_cache=1
8142 fi
8143
8144 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8145
8146fi;
8147
8148 eval "$ac_cv_use_radiobox"
8149 if test "$no_cache" != 1; then
8150 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8151 fi
8152
8153 if test "$wxUSE_RADIOBOX" = yes; then
8154 echo "$as_me:$LINENO: result: yes" >&5
8155echo "${ECHO_T}yes" >&6
8156 else
8157 echo "$as_me:$LINENO: result: no" >&5
8158echo "${ECHO_T}no" >&6
8159 fi
8160
8161
8162 enablestring=
8163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8164echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8165 no_cache=0
8166 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8167if test "${enable_radiobtn+set}" = set; then
8168 enableval="$enable_radiobtn"
8169
8170 if test "$enableval" = yes; then
8171 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8172 else
8173 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8174 fi
8175
8176else
8177
8178 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8179 if test "x$LINE" != x ; then
8180 eval "DEFAULT_$LINE"
8181 else
8182 no_cache=1
8183 fi
8184
8185 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8186
8187fi;
8188
8189 eval "$ac_cv_use_radiobtn"
8190 if test "$no_cache" != 1; then
8191 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8192 fi
8193
8194 if test "$wxUSE_RADIOBTN" = yes; then
8195 echo "$as_me:$LINENO: result: yes" >&5
8196echo "${ECHO_T}yes" >&6
8197 else
8198 echo "$as_me:$LINENO: result: no" >&5
8199echo "${ECHO_T}no" >&6
8200 fi
8201
8202
8203 enablestring=
8204 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8205echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8206 no_cache=0
8207 # Check whether --enable-sash or --disable-sash was given.
8208if test "${enable_sash+set}" = set; then
8209 enableval="$enable_sash"
8210
8211 if test "$enableval" = yes; then
8212 ac_cv_use_sash='wxUSE_SASH=yes'
8213 else
8214 ac_cv_use_sash='wxUSE_SASH=no'
8215 fi
8216
8217else
8218
8219 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8220 if test "x$LINE" != x ; then
8221 eval "DEFAULT_$LINE"
8222 else
8223 no_cache=1
8224 fi
8225
8226 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8227
8228fi;
8229
8230 eval "$ac_cv_use_sash"
8231 if test "$no_cache" != 1; then
8232 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8233 fi
8234
8235 if test "$wxUSE_SASH" = yes; then
8236 echo "$as_me:$LINENO: result: yes" >&5
8237echo "${ECHO_T}yes" >&6
8238 else
8239 echo "$as_me:$LINENO: result: no" >&5
8240echo "${ECHO_T}no" >&6
8241 fi
8242
8243
8244 enablestring=
8245 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8246echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8247 no_cache=0
8248 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8249if test "${enable_scrollbar+set}" = set; then
8250 enableval="$enable_scrollbar"
8251
8252 if test "$enableval" = yes; then
8253 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8254 else
8255 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8256 fi
8257
8258else
8259
8260 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8261 if test "x$LINE" != x ; then
8262 eval "DEFAULT_$LINE"
8263 else
8264 no_cache=1
8265 fi
8266
8267 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8268
8269fi;
8270
8271 eval "$ac_cv_use_scrollbar"
8272 if test "$no_cache" != 1; then
8273 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8274 fi
8275
8276 if test "$wxUSE_SCROLLBAR" = yes; then
8277 echo "$as_me:$LINENO: result: yes" >&5
8278echo "${ECHO_T}yes" >&6
8279 else
8280 echo "$as_me:$LINENO: result: no" >&5
8281echo "${ECHO_T}no" >&6
8282 fi
8283
8284
8285 enablestring=
8286 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8287echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8288 no_cache=0
8289 # Check whether --enable-slider or --disable-slider was given.
8290if test "${enable_slider+set}" = set; then
8291 enableval="$enable_slider"
8292
8293 if test "$enableval" = yes; then
8294 ac_cv_use_slider='wxUSE_SLIDER=yes'
8295 else
8296 ac_cv_use_slider='wxUSE_SLIDER=no'
8297 fi
8298
8299else
8300
8301 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8302 if test "x$LINE" != x ; then
8303 eval "DEFAULT_$LINE"
8304 else
8305 no_cache=1
8306 fi
8307
8308 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8309
8310fi;
8311
8312 eval "$ac_cv_use_slider"
8313 if test "$no_cache" != 1; then
8314 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8315 fi
8316
8317 if test "$wxUSE_SLIDER" = yes; then
8318 echo "$as_me:$LINENO: result: yes" >&5
8319echo "${ECHO_T}yes" >&6
8320 else
8321 echo "$as_me:$LINENO: result: no" >&5
8322echo "${ECHO_T}no" >&6
8323 fi
8324
8325
8326 enablestring=
8327 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8328echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8329 no_cache=0
8330 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8331if test "${enable_spinbtn+set}" = set; then
8332 enableval="$enable_spinbtn"
8333
8334 if test "$enableval" = yes; then
8335 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8336 else
8337 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8338 fi
8339
8340else
8341
8342 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8343 if test "x$LINE" != x ; then
8344 eval "DEFAULT_$LINE"
8345 else
8346 no_cache=1
8347 fi
8348
8349 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8350
8351fi;
8352
8353 eval "$ac_cv_use_spinbtn"
8354 if test "$no_cache" != 1; then
8355 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8356 fi
8357
8358 if test "$wxUSE_SPINBTN" = yes; then
8359 echo "$as_me:$LINENO: result: yes" >&5
8360echo "${ECHO_T}yes" >&6
8361 else
8362 echo "$as_me:$LINENO: result: no" >&5
8363echo "${ECHO_T}no" >&6
8364 fi
8365
8366
8367 enablestring=
8368 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8369echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8370 no_cache=0
8371 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8372if test "${enable_spinctrl+set}" = set; then
8373 enableval="$enable_spinctrl"
8374
8375 if test "$enableval" = yes; then
8376 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8377 else
8378 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8379 fi
8380
8381else
8382
8383 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8384 if test "x$LINE" != x ; then
8385 eval "DEFAULT_$LINE"
8386 else
8387 no_cache=1
8388 fi
8389
8390 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8391
8392fi;
8393
8394 eval "$ac_cv_use_spinctrl"
8395 if test "$no_cache" != 1; then
8396 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8397 fi
8398
8399 if test "$wxUSE_SPINCTRL" = yes; then
8400 echo "$as_me:$LINENO: result: yes" >&5
8401echo "${ECHO_T}yes" >&6
8402 else
8403 echo "$as_me:$LINENO: result: no" >&5
8404echo "${ECHO_T}no" >&6
8405 fi
8406
8407
8408 enablestring=
8409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8410echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8411 no_cache=0
8412 # Check whether --enable-splitter or --disable-splitter was given.
8413if test "${enable_splitter+set}" = set; then
8414 enableval="$enable_splitter"
8415
8416 if test "$enableval" = yes; then
8417 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8418 else
8419 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8420 fi
8421
8422else
8423
8424 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8425 if test "x$LINE" != x ; then
8426 eval "DEFAULT_$LINE"
8427 else
8428 no_cache=1
8429 fi
8430
8431 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8432
8433fi;
8434
8435 eval "$ac_cv_use_splitter"
8436 if test "$no_cache" != 1; then
8437 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8438 fi
8439
8440 if test "$wxUSE_SPLITTER" = yes; then
8441 echo "$as_me:$LINENO: result: yes" >&5
8442echo "${ECHO_T}yes" >&6
8443 else
8444 echo "$as_me:$LINENO: result: no" >&5
8445echo "${ECHO_T}no" >&6
8446 fi
8447
8448
8449 enablestring=
8450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8451echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8452 no_cache=0
8453 # Check whether --enable-statbmp or --disable-statbmp was given.
8454if test "${enable_statbmp+set}" = set; then
8455 enableval="$enable_statbmp"
8456
8457 if test "$enableval" = yes; then
8458 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8459 else
8460 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8461 fi
8462
8463else
8464
8465 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8466 if test "x$LINE" != x ; then
8467 eval "DEFAULT_$LINE"
8468 else
8469 no_cache=1
8470 fi
8471
8472 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8473
8474fi;
8475
8476 eval "$ac_cv_use_statbmp"
8477 if test "$no_cache" != 1; then
8478 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8479 fi
8480
8481 if test "$wxUSE_STATBMP" = yes; then
8482 echo "$as_me:$LINENO: result: yes" >&5
8483echo "${ECHO_T}yes" >&6
8484 else
8485 echo "$as_me:$LINENO: result: no" >&5
8486echo "${ECHO_T}no" >&6
8487 fi
8488
8489
8490 enablestring=
8491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8492echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8493 no_cache=0
8494 # Check whether --enable-statbox or --disable-statbox was given.
8495if test "${enable_statbox+set}" = set; then
8496 enableval="$enable_statbox"
8497
8498 if test "$enableval" = yes; then
8499 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8500 else
8501 ac_cv_use_statbox='wxUSE_STATBOX=no'
8502 fi
8503
8504else
8505
8506 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8507 if test "x$LINE" != x ; then
8508 eval "DEFAULT_$LINE"
8509 else
8510 no_cache=1
8511 fi
8512
8513 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8514
8515fi;
8516
8517 eval "$ac_cv_use_statbox"
8518 if test "$no_cache" != 1; then
8519 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8520 fi
8521
8522 if test "$wxUSE_STATBOX" = yes; then
8523 echo "$as_me:$LINENO: result: yes" >&5
8524echo "${ECHO_T}yes" >&6
8525 else
8526 echo "$as_me:$LINENO: result: no" >&5
8527echo "${ECHO_T}no" >&6
8528 fi
8529
8530
8531 enablestring=
8532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8533echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8534 no_cache=0
8535 # Check whether --enable-statline or --disable-statline was given.
8536if test "${enable_statline+set}" = set; then
8537 enableval="$enable_statline"
8538
8539 if test "$enableval" = yes; then
8540 ac_cv_use_statline='wxUSE_STATLINE=yes'
8541 else
8542 ac_cv_use_statline='wxUSE_STATLINE=no'
8543 fi
8544
8545else
8546
8547 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8548 if test "x$LINE" != x ; then
8549 eval "DEFAULT_$LINE"
8550 else
8551 no_cache=1
8552 fi
8553
8554 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8555
8556fi;
8557
8558 eval "$ac_cv_use_statline"
8559 if test "$no_cache" != 1; then
8560 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8561 fi
8562
8563 if test "$wxUSE_STATLINE" = yes; then
8564 echo "$as_me:$LINENO: result: yes" >&5
8565echo "${ECHO_T}yes" >&6
8566 else
8567 echo "$as_me:$LINENO: result: no" >&5
8568echo "${ECHO_T}no" >&6
8569 fi
8570
8571
8572 enablestring=
8573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8574echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8575 no_cache=0
8576 # Check whether --enable-stattext or --disable-stattext was given.
8577if test "${enable_stattext+set}" = set; then
8578 enableval="$enable_stattext"
8579
8580 if test "$enableval" = yes; then
8581 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8582 else
8583 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8584 fi
8585
8586else
8587
8588 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8589 if test "x$LINE" != x ; then
8590 eval "DEFAULT_$LINE"
8591 else
8592 no_cache=1
8593 fi
8594
8595 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8596
8597fi;
8598
8599 eval "$ac_cv_use_stattext"
8600 if test "$no_cache" != 1; then
8601 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8602 fi
8603
8604 if test "$wxUSE_STATTEXT" = yes; then
8605 echo "$as_me:$LINENO: result: yes" >&5
8606echo "${ECHO_T}yes" >&6
8607 else
8608 echo "$as_me:$LINENO: result: no" >&5
8609echo "${ECHO_T}no" >&6
8610 fi
8611
8612
8613 enablestring=
8614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8615echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8616 no_cache=0
8617 # Check whether --enable-statusbar or --disable-statusbar was given.
8618if test "${enable_statusbar+set}" = set; then
8619 enableval="$enable_statusbar"
8620
8621 if test "$enableval" = yes; then
8622 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8623 else
8624 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8625 fi
8626
8627else
8628
8629 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8630 if test "x$LINE" != x ; then
8631 eval "DEFAULT_$LINE"
8632 else
8633 no_cache=1
8634 fi
8635
8636 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8637
8638fi;
8639
8640 eval "$ac_cv_use_statusbar"
8641 if test "$no_cache" != 1; then
8642 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8643 fi
8644
8645 if test "$wxUSE_STATUSBAR" = yes; then
8646 echo "$as_me:$LINENO: result: yes" >&5
8647echo "${ECHO_T}yes" >&6
8648 else
8649 echo "$as_me:$LINENO: result: no" >&5
8650echo "${ECHO_T}no" >&6
8651 fi
8652
8653
8654 enablestring=
8655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8656echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8657 no_cache=0
8658 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8659if test "${enable_tabdialog+set}" = set; then
8660 enableval="$enable_tabdialog"
8661
8662 if test "$enableval" = yes; then
8663 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8664 else
8665 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8666 fi
8667
8668else
8669
8670 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8671 if test "x$LINE" != x ; then
8672 eval "DEFAULT_$LINE"
8673 else
8674 no_cache=1
8675 fi
8676
8677 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8678
8679fi;
8680
8681 eval "$ac_cv_use_tabdialog"
8682 if test "$no_cache" != 1; then
8683 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8684 fi
8685
8686 if test "$wxUSE_TABDIALOG" = yes; then
8687 echo "$as_me:$LINENO: result: yes" >&5
8688echo "${ECHO_T}yes" >&6
8689 else
8690 echo "$as_me:$LINENO: result: no" >&5
8691echo "${ECHO_T}no" >&6
8692 fi
8693
8694
8695 enablestring=
8696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8697echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8698 no_cache=0
8699 # Check whether --enable-textctrl or --disable-textctrl was given.
8700if test "${enable_textctrl+set}" = set; then
8701 enableval="$enable_textctrl"
8702
8703 if test "$enableval" = yes; then
8704 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8705 else
8706 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8707 fi
8708
8709else
8710
8711 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8712 if test "x$LINE" != x ; then
8713 eval "DEFAULT_$LINE"
8714 else
8715 no_cache=1
8716 fi
8717
8718 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8719
8720fi;
8721
8722 eval "$ac_cv_use_textctrl"
8723 if test "$no_cache" != 1; then
8724 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8725 fi
8726
8727 if test "$wxUSE_TEXTCTRL" = yes; then
8728 echo "$as_me:$LINENO: result: yes" >&5
8729echo "${ECHO_T}yes" >&6
8730 else
8731 echo "$as_me:$LINENO: result: no" >&5
8732echo "${ECHO_T}no" >&6
8733 fi
8734
8735
8736 enablestring=
8737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8738echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8739 no_cache=0
8740 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8741if test "${enable_togglebtn+set}" = set; then
8742 enableval="$enable_togglebtn"
8743
8744 if test "$enableval" = yes; then
8745 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8746 else
8747 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8748 fi
8749
8750else
8751
8752 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8753 if test "x$LINE" != x ; then
8754 eval "DEFAULT_$LINE"
8755 else
8756 no_cache=1
8757 fi
8758
8759 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8760
8761fi;
8762
8763 eval "$ac_cv_use_togglebtn"
8764 if test "$no_cache" != 1; then
8765 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8766 fi
8767
8768 if test "$wxUSE_TOGGLEBTN" = yes; then
8769 echo "$as_me:$LINENO: result: yes" >&5
8770echo "${ECHO_T}yes" >&6
8771 else
8772 echo "$as_me:$LINENO: result: no" >&5
8773echo "${ECHO_T}no" >&6
8774 fi
8775
8776
8777 enablestring=
8778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8779echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8780 no_cache=0
8781 # Check whether --enable-toolbar or --disable-toolbar was given.
8782if test "${enable_toolbar+set}" = set; then
8783 enableval="$enable_toolbar"
8784
8785 if test "$enableval" = yes; then
8786 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8787 else
8788 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8789 fi
8790
8791else
8792
8793 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8794 if test "x$LINE" != x ; then
8795 eval "DEFAULT_$LINE"
8796 else
8797 no_cache=1
8798 fi
8799
8800 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8801
8802fi;
8803
8804 eval "$ac_cv_use_toolbar"
8805 if test "$no_cache" != 1; then
8806 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8807 fi
8808
8809 if test "$wxUSE_TOOLBAR" = yes; then
8810 echo "$as_me:$LINENO: result: yes" >&5
8811echo "${ECHO_T}yes" >&6
8812 else
8813 echo "$as_me:$LINENO: result: no" >&5
8814echo "${ECHO_T}no" >&6
8815 fi
8816
8817
8818 enablestring=
8819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8820echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8821 no_cache=0
8822 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8823if test "${enable_tbarnative+set}" = set; then
8824 enableval="$enable_tbarnative"
8825
8826 if test "$enableval" = yes; then
8827 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8828 else
8829 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8830 fi
8831
8832else
8833
8834 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8835 if test "x$LINE" != x ; then
8836 eval "DEFAULT_$LINE"
8837 else
8838 no_cache=1
8839 fi
8840
8841 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8842
8843fi;
8844
8845 eval "$ac_cv_use_tbarnative"
8846 if test "$no_cache" != 1; then
8847 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8848 fi
8849
8850 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8851 echo "$as_me:$LINENO: result: yes" >&5
8852echo "${ECHO_T}yes" >&6
8853 else
8854 echo "$as_me:$LINENO: result: no" >&5
8855echo "${ECHO_T}no" >&6
8856 fi
8857
8858
8859 enablestring=
8860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8861echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8862 no_cache=0
8863 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8864if test "${enable_tbarsmpl+set}" = set; then
8865 enableval="$enable_tbarsmpl"
8866
8867 if test "$enableval" = yes; then
8868 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8869 else
8870 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8871 fi
8872
8873else
8874
8875 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8876 if test "x$LINE" != x ; then
8877 eval "DEFAULT_$LINE"
8878 else
8879 no_cache=1
8880 fi
8881
8882 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8883
8884fi;
8885
8886 eval "$ac_cv_use_tbarsmpl"
8887 if test "$no_cache" != 1; then
8888 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8889 fi
8890
8891 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8892 echo "$as_me:$LINENO: result: yes" >&5
8893echo "${ECHO_T}yes" >&6
8894 else
8895 echo "$as_me:$LINENO: result: no" >&5
8896echo "${ECHO_T}no" >&6
8897 fi
8898
8899
8900 enablestring=
8901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8902echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8903 no_cache=0
8904 # Check whether --enable-treectrl or --disable-treectrl was given.
8905if test "${enable_treectrl+set}" = set; then
8906 enableval="$enable_treectrl"
8907
8908 if test "$enableval" = yes; then
8909 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8910 else
8911 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8912 fi
8913
8914else
8915
8916 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8917 if test "x$LINE" != x ; then
8918 eval "DEFAULT_$LINE"
8919 else
8920 no_cache=1
8921 fi
8922
8923 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8924
8925fi;
8926
8927 eval "$ac_cv_use_treectrl"
8928 if test "$no_cache" != 1; then
8929 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8930 fi
8931
8932 if test "$wxUSE_TREECTRL" = yes; then
8933 echo "$as_me:$LINENO: result: yes" >&5
8934echo "${ECHO_T}yes" >&6
8935 else
8936 echo "$as_me:$LINENO: result: no" >&5
8937echo "${ECHO_T}no" >&6
8938 fi
8939
8940
8941 enablestring=
8942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8943echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8944 no_cache=0
8945 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8946if test "${enable_tipwindow+set}" = set; then
8947 enableval="$enable_tipwindow"
8948
8949 if test "$enableval" = yes; then
8950 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8951 else
8952 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8953 fi
8954
8955else
8956
8957 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8958 if test "x$LINE" != x ; then
8959 eval "DEFAULT_$LINE"
8960 else
8961 no_cache=1
8962 fi
8963
8964 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8965
8966fi;
8967
8968 eval "$ac_cv_use_tipwindow"
8969 if test "$no_cache" != 1; then
8970 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8971 fi
8972
8973 if test "$wxUSE_TIPWINDOW" = yes; then
8974 echo "$as_me:$LINENO: result: yes" >&5
8975echo "${ECHO_T}yes" >&6
8976 else
8977 echo "$as_me:$LINENO: result: no" >&5
8978echo "${ECHO_T}no" >&6
8979 fi
8980
8981
8982 enablestring=
8983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8984echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8985 no_cache=0
8986 # Check whether --enable-popupwin or --disable-popupwin was given.
8987if test "${enable_popupwin+set}" = set; then
8988 enableval="$enable_popupwin"
8989
8990 if test "$enableval" = yes; then
8991 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8992 else
8993 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8994 fi
8995
8996else
8997
8998 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8999 if test "x$LINE" != x ; then
9000 eval "DEFAULT_$LINE"
9001 else
9002 no_cache=1
9003 fi
9004
9005 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9006
9007fi;
9008
9009 eval "$ac_cv_use_popupwin"
9010 if test "$no_cache" != 1; then
9011 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9012 fi
9013
9014 if test "$wxUSE_POPUPWIN" = yes; then
9015 echo "$as_me:$LINENO: result: yes" >&5
9016echo "${ECHO_T}yes" >&6
9017 else
9018 echo "$as_me:$LINENO: result: no" >&5
9019echo "${ECHO_T}no" >&6
9020 fi
9021
9022
9023
9024
9025 enablestring=
9026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9027echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9028 no_cache=0
9029 # Check whether --enable-commondlg or --disable-commondlg was given.
9030if test "${enable_commondlg+set}" = set; then
9031 enableval="$enable_commondlg"
9032
9033 if test "$enableval" = yes; then
9034 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9035 else
9036 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9037 fi
9038
9039else
9040
9041 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9042 if test "x$LINE" != x ; then
9043 eval "DEFAULT_$LINE"
9044 else
9045 no_cache=1
9046 fi
9047
9048 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9049
9050fi;
9051
9052 eval "$ac_cv_use_commondlg"
9053 if test "$no_cache" != 1; then
9054 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9055 fi
9056
9057 if test "$wxUSE_COMMONDLGS" = yes; then
9058 echo "$as_me:$LINENO: result: yes" >&5
9059echo "${ECHO_T}yes" >&6
9060 else
9061 echo "$as_me:$LINENO: result: no" >&5
9062echo "${ECHO_T}no" >&6
9063 fi
9064
9065
9066 enablestring=
9067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9068echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9069 no_cache=0
9070 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9071if test "${enable_choicedlg+set}" = set; then
9072 enableval="$enable_choicedlg"
9073
9074 if test "$enableval" = yes; then
9075 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9076 else
9077 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9078 fi
9079
9080else
9081
9082 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9083 if test "x$LINE" != x ; then
9084 eval "DEFAULT_$LINE"
9085 else
9086 no_cache=1
9087 fi
9088
9089 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9090
9091fi;
9092
9093 eval "$ac_cv_use_choicedlg"
9094 if test "$no_cache" != 1; then
9095 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9096 fi
9097
9098 if test "$wxUSE_CHOICEDLG" = yes; then
9099 echo "$as_me:$LINENO: result: yes" >&5
9100echo "${ECHO_T}yes" >&6
9101 else
9102 echo "$as_me:$LINENO: result: no" >&5
9103echo "${ECHO_T}no" >&6
9104 fi
9105
9106
9107 enablestring=
9108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9109echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9110 no_cache=0
9111 # Check whether --enable-coldlg or --disable-coldlg was given.
9112if test "${enable_coldlg+set}" = set; then
9113 enableval="$enable_coldlg"
9114
9115 if test "$enableval" = yes; then
9116 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9117 else
9118 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9119 fi
9120
9121else
9122
9123 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9124 if test "x$LINE" != x ; then
9125 eval "DEFAULT_$LINE"
9126 else
9127 no_cache=1
9128 fi
9129
9130 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9131
9132fi;
9133
9134 eval "$ac_cv_use_coldlg"
9135 if test "$no_cache" != 1; then
9136 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9137 fi
9138
9139 if test "$wxUSE_COLOURDLG" = yes; then
9140 echo "$as_me:$LINENO: result: yes" >&5
9141echo "${ECHO_T}yes" >&6
9142 else
9143 echo "$as_me:$LINENO: result: no" >&5
9144echo "${ECHO_T}no" >&6
9145 fi
9146
9147
9148 enablestring=
9149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9150echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9151 no_cache=0
9152 # Check whether --enable-filedlg or --disable-filedlg was given.
9153if test "${enable_filedlg+set}" = set; then
9154 enableval="$enable_filedlg"
9155
9156 if test "$enableval" = yes; then
9157 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9158 else
9159 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9160 fi
9161
9162else
9163
9164 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9165 if test "x$LINE" != x ; then
9166 eval "DEFAULT_$LINE"
9167 else
9168 no_cache=1
9169 fi
9170
9171 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9172
9173fi;
9174
9175 eval "$ac_cv_use_filedlg"
9176 if test "$no_cache" != 1; then
9177 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9178 fi
9179
9180 if test "$wxUSE_FILEDLG" = yes; then
9181 echo "$as_me:$LINENO: result: yes" >&5
9182echo "${ECHO_T}yes" >&6
9183 else
9184 echo "$as_me:$LINENO: result: no" >&5
9185echo "${ECHO_T}no" >&6
9186 fi
9187
9188
9189 enablestring=
9190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9191echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9192 no_cache=0
9193 # Check whether --enable-finddlg or --disable-finddlg was given.
9194if test "${enable_finddlg+set}" = set; then
9195 enableval="$enable_finddlg"
9196
9197 if test "$enableval" = yes; then
9198 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9199 else
9200 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9201 fi
9202
9203else
9204
9205 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9206 if test "x$LINE" != x ; then
9207 eval "DEFAULT_$LINE"
9208 else
9209 no_cache=1
9210 fi
9211
9212 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9213
9214fi;
9215
9216 eval "$ac_cv_use_finddlg"
9217 if test "$no_cache" != 1; then
9218 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9219 fi
9220
9221 if test "$wxUSE_FINDREPLDLG" = yes; then
9222 echo "$as_me:$LINENO: result: yes" >&5
9223echo "${ECHO_T}yes" >&6
9224 else
9225 echo "$as_me:$LINENO: result: no" >&5
9226echo "${ECHO_T}no" >&6
9227 fi
9228
9229
9230 enablestring=
9231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9232echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9233 no_cache=0
9234 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9235if test "${enable_fontdlg+set}" = set; then
9236 enableval="$enable_fontdlg"
9237
9238 if test "$enableval" = yes; then
9239 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9240 else
9241 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9242 fi
9243
9244else
9245
9246 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9247 if test "x$LINE" != x ; then
9248 eval "DEFAULT_$LINE"
9249 else
9250 no_cache=1
9251 fi
9252
9253 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9254
9255fi;
9256
9257 eval "$ac_cv_use_fontdlg"
9258 if test "$no_cache" != 1; then
9259 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9260 fi
9261
9262 if test "$wxUSE_FONTDLG" = yes; then
9263 echo "$as_me:$LINENO: result: yes" >&5
9264echo "${ECHO_T}yes" >&6
9265 else
9266 echo "$as_me:$LINENO: result: no" >&5
9267echo "${ECHO_T}no" >&6
9268 fi
9269
9270
9271 enablestring=
9272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9273echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9274 no_cache=0
9275 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9276if test "${enable_dirdlg+set}" = set; then
9277 enableval="$enable_dirdlg"
9278
9279 if test "$enableval" = yes; then
9280 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9281 else
9282 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9283 fi
9284
9285else
9286
9287 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9288 if test "x$LINE" != x ; then
9289 eval "DEFAULT_$LINE"
9290 else
9291 no_cache=1
9292 fi
9293
9294 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9295
9296fi;
9297
9298 eval "$ac_cv_use_dirdlg"
9299 if test "$no_cache" != 1; then
9300 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9301 fi
9302
9303 if test "$wxUSE_DIRDLG" = yes; then
9304 echo "$as_me:$LINENO: result: yes" >&5
9305echo "${ECHO_T}yes" >&6
9306 else
9307 echo "$as_me:$LINENO: result: no" >&5
9308echo "${ECHO_T}no" >&6
9309 fi
9310
9311
9312 enablestring=
9313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9314echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9315 no_cache=0
9316 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9317if test "${enable_msgdlg+set}" = set; then
9318 enableval="$enable_msgdlg"
9319
9320 if test "$enableval" = yes; then
9321 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9322 else
9323 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9324 fi
9325
9326else
9327
9328 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9329 if test "x$LINE" != x ; then
9330 eval "DEFAULT_$LINE"
9331 else
9332 no_cache=1
9333 fi
9334
9335 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9336
9337fi;
9338
9339 eval "$ac_cv_use_msgdlg"
9340 if test "$no_cache" != 1; then
9341 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9342 fi
9343
9344 if test "$wxUSE_MSGDLG" = yes; then
9345 echo "$as_me:$LINENO: result: yes" >&5
9346echo "${ECHO_T}yes" >&6
9347 else
9348 echo "$as_me:$LINENO: result: no" >&5
9349echo "${ECHO_T}no" >&6
9350 fi
9351
9352
9353 enablestring=
9354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9355echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9356 no_cache=0
9357 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9358if test "${enable_numberdlg+set}" = set; then
9359 enableval="$enable_numberdlg"
9360
9361 if test "$enableval" = yes; then
9362 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9363 else
9364 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9365 fi
9366
9367else
9368
9369 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9370 if test "x$LINE" != x ; then
9371 eval "DEFAULT_$LINE"
9372 else
9373 no_cache=1
9374 fi
9375
9376 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9377
9378fi;
9379
9380 eval "$ac_cv_use_numberdlg"
9381 if test "$no_cache" != 1; then
9382 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9383 fi
9384
9385 if test "$wxUSE_NUMBERDLG" = yes; then
9386 echo "$as_me:$LINENO: result: yes" >&5
9387echo "${ECHO_T}yes" >&6
9388 else
9389 echo "$as_me:$LINENO: result: no" >&5
9390echo "${ECHO_T}no" >&6
9391 fi
9392
9393
9394 enablestring=
9395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9396echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9397 no_cache=0
9398 # Check whether --enable-splash or --disable-splash was given.
9399if test "${enable_splash+set}" = set; then
9400 enableval="$enable_splash"
9401
9402 if test "$enableval" = yes; then
9403 ac_cv_use_splash='wxUSE_SPLASH=yes'
9404 else
9405 ac_cv_use_splash='wxUSE_SPLASH=no'
9406 fi
9407
9408else
9409
9410 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9411 if test "x$LINE" != x ; then
9412 eval "DEFAULT_$LINE"
9413 else
9414 no_cache=1
9415 fi
9416
9417 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9418
9419fi;
9420
9421 eval "$ac_cv_use_splash"
9422 if test "$no_cache" != 1; then
9423 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9424 fi
9425
9426 if test "$wxUSE_SPLASH" = yes; then
9427 echo "$as_me:$LINENO: result: yes" >&5
9428echo "${ECHO_T}yes" >&6
9429 else
9430 echo "$as_me:$LINENO: result: no" >&5
9431echo "${ECHO_T}no" >&6
9432 fi
9433
9434
9435 enablestring=
9436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9437echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9438 no_cache=0
9439 # Check whether --enable-textdlg or --disable-textdlg was given.
9440if test "${enable_textdlg+set}" = set; then
9441 enableval="$enable_textdlg"
9442
9443 if test "$enableval" = yes; then
9444 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9445 else
9446 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9447 fi
9448
9449else
9450
9451 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9452 if test "x$LINE" != x ; then
9453 eval "DEFAULT_$LINE"
9454 else
9455 no_cache=1
9456 fi
9457
9458 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9459
9460fi;
9461
9462 eval "$ac_cv_use_textdlg"
9463 if test "$no_cache" != 1; then
9464 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9465 fi
9466
9467 if test "$wxUSE_TEXTDLG" = yes; then
9468 echo "$as_me:$LINENO: result: yes" >&5
9469echo "${ECHO_T}yes" >&6
9470 else
9471 echo "$as_me:$LINENO: result: no" >&5
9472echo "${ECHO_T}no" >&6
9473 fi
9474
9475
9476 enablestring=
9477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9478echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9479 no_cache=0
9480 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9481if test "${enable_tipdlg+set}" = set; then
9482 enableval="$enable_tipdlg"
9483
9484 if test "$enableval" = yes; then
9485 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9486 else
9487 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9488 fi
9489
9490else
9491
9492 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9493 if test "x$LINE" != x ; then
9494 eval "DEFAULT_$LINE"
9495 else
9496 no_cache=1
9497 fi
9498
9499 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9500
9501fi;
9502
9503 eval "$ac_cv_use_tipdlg"
9504 if test "$no_cache" != 1; then
9505 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9506 fi
9507
9508 if test "$wxUSE_STARTUP_TIPS" = yes; then
9509 echo "$as_me:$LINENO: result: yes" >&5
9510echo "${ECHO_T}yes" >&6
9511 else
9512 echo "$as_me:$LINENO: result: no" >&5
9513echo "${ECHO_T}no" >&6
9514 fi
9515
9516
9517 enablestring=
9518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9519echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9520 no_cache=0
9521 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9522if test "${enable_progressdlg+set}" = set; then
9523 enableval="$enable_progressdlg"
9524
9525 if test "$enableval" = yes; then
9526 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9527 else
9528 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9529 fi
9530
9531else
9532
9533 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9534 if test "x$LINE" != x ; then
9535 eval "DEFAULT_$LINE"
9536 else
9537 no_cache=1
9538 fi
9539
9540 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9541
9542fi;
9543
9544 eval "$ac_cv_use_progressdlg"
9545 if test "$no_cache" != 1; then
9546 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9547 fi
9548
9549 if test "$wxUSE_PROGRESSDLG" = yes; then
9550 echo "$as_me:$LINENO: result: yes" >&5
9551echo "${ECHO_T}yes" >&6
9552 else
9553 echo "$as_me:$LINENO: result: no" >&5
9554echo "${ECHO_T}no" >&6
9555 fi
9556
9557
9558 enablestring=
9559 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9560echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9561 no_cache=0
9562 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9563if test "${enable_wizarddlg+set}" = set; then
9564 enableval="$enable_wizarddlg"
9565
9566 if test "$enableval" = yes; then
9567 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9568 else
9569 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9570 fi
9571
9572else
9573
9574 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9575 if test "x$LINE" != x ; then
9576 eval "DEFAULT_$LINE"
9577 else
9578 no_cache=1
9579 fi
9580
9581 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9582
9583fi;
9584
9585 eval "$ac_cv_use_wizarddlg"
9586 if test "$no_cache" != 1; then
9587 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9588 fi
9589
9590 if test "$wxUSE_WIZARDDLG" = yes; then
9591 echo "$as_me:$LINENO: result: yes" >&5
9592echo "${ECHO_T}yes" >&6
9593 else
9594 echo "$as_me:$LINENO: result: no" >&5
9595echo "${ECHO_T}no" >&6
9596 fi
9597
9598
9599
9600
9601 enablestring=
9602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9603echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9604 no_cache=0
9605 # Check whether --enable-menus or --disable-menus was given.
9606if test "${enable_menus+set}" = set; then
9607 enableval="$enable_menus"
9608
9609 if test "$enableval" = yes; then
9610 ac_cv_use_menus='wxUSE_MENUS=yes'
9611 else
9612 ac_cv_use_menus='wxUSE_MENUS=no'
9613 fi
9614
9615else
9616
9617 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9618 if test "x$LINE" != x ; then
9619 eval "DEFAULT_$LINE"
9620 else
9621 no_cache=1
9622 fi
9623
9624 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9625
9626fi;
9627
9628 eval "$ac_cv_use_menus"
9629 if test "$no_cache" != 1; then
9630 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9631 fi
9632
9633 if test "$wxUSE_MENUS" = yes; then
9634 echo "$as_me:$LINENO: result: yes" >&5
9635echo "${ECHO_T}yes" >&6
9636 else
9637 echo "$as_me:$LINENO: result: no" >&5
9638echo "${ECHO_T}no" >&6
9639 fi
9640
9641
9642 enablestring=
9643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9644echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9645 no_cache=0
9646 # Check whether --enable-miniframe or --disable-miniframe was given.
9647if test "${enable_miniframe+set}" = set; then
9648 enableval="$enable_miniframe"
9649
9650 if test "$enableval" = yes; then
9651 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9652 else
9653 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9654 fi
9655
9656else
9657
9658 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9659 if test "x$LINE" != x ; then
9660 eval "DEFAULT_$LINE"
9661 else
9662 no_cache=1
9663 fi
9664
9665 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9666
9667fi;
9668
9669 eval "$ac_cv_use_miniframe"
9670 if test "$no_cache" != 1; then
9671 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9672 fi
9673
9674 if test "$wxUSE_MINIFRAME" = yes; then
9675 echo "$as_me:$LINENO: result: yes" >&5
9676echo "${ECHO_T}yes" >&6
9677 else
9678 echo "$as_me:$LINENO: result: no" >&5
9679echo "${ECHO_T}no" >&6
9680 fi
9681
9682
9683 enablestring=
9684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9685echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9686 no_cache=0
9687 # Check whether --enable-tooltips or --disable-tooltips was given.
9688if test "${enable_tooltips+set}" = set; then
9689 enableval="$enable_tooltips"
9690
9691 if test "$enableval" = yes; then
9692 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9693 else
9694 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9695 fi
9696
9697else
9698
9699 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9700 if test "x$LINE" != x ; then
9701 eval "DEFAULT_$LINE"
9702 else
9703 no_cache=1
9704 fi
9705
9706 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9707
9708fi;
9709
9710 eval "$ac_cv_use_tooltips"
9711 if test "$no_cache" != 1; then
9712 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9713 fi
9714
9715 if test "$wxUSE_TOOLTIPS" = yes; then
9716 echo "$as_me:$LINENO: result: yes" >&5
9717echo "${ECHO_T}yes" >&6
9718 else
9719 echo "$as_me:$LINENO: result: no" >&5
9720echo "${ECHO_T}no" >&6
9721 fi
9722
9723
9724 enablestring=
9725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9726echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9727 no_cache=0
9728 # Check whether --enable-splines or --disable-splines was given.
9729if test "${enable_splines+set}" = set; then
9730 enableval="$enable_splines"
9731
9732 if test "$enableval" = yes; then
9733 ac_cv_use_splines='wxUSE_SPLINES=yes'
9734 else
9735 ac_cv_use_splines='wxUSE_SPLINES=no'
9736 fi
9737
9738else
9739
9740 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9741 if test "x$LINE" != x ; then
9742 eval "DEFAULT_$LINE"
9743 else
9744 no_cache=1
9745 fi
9746
9747 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9748
9749fi;
9750
9751 eval "$ac_cv_use_splines"
9752 if test "$no_cache" != 1; then
9753 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9754 fi
9755
9756 if test "$wxUSE_SPLINES" = yes; then
9757 echo "$as_me:$LINENO: result: yes" >&5
9758echo "${ECHO_T}yes" >&6
9759 else
9760 echo "$as_me:$LINENO: result: no" >&5
9761echo "${ECHO_T}no" >&6
9762 fi
9763
9764
fbe2ca43
SN
9765 enablestring=
9766 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9767echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9768 no_cache=0
9769 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9770if test "${enable_mousewheel+set}" = set; then
9771 enableval="$enable_mousewheel"
9772
9773 if test "$enableval" = yes; then
9774 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9775 else
9776 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9777 fi
9778
9779else
9780
9781 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9782 if test "x$LINE" != x ; then
9783 eval "DEFAULT_$LINE"
9784 else
9785 no_cache=1
9786 fi
9787
9788 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9789
9790fi;
9791
9792 eval "$ac_cv_use_mousewheel"
9793 if test "$no_cache" != 1; then
9794 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9795 fi
9796
9797 if test "$wxUSE_MOUSEWHEEL" = yes; then
9798 echo "$as_me:$LINENO: result: yes" >&5
9799echo "${ECHO_T}yes" >&6
9800 else
9801 echo "$as_me:$LINENO: result: no" >&5
9802echo "${ECHO_T}no" >&6
9803 fi
9804
9805
a848cd7e
SC
9806 enablestring=
9807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9808echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9809 no_cache=0
9810 # Check whether --enable-validators or --disable-validators was given.
9811if test "${enable_validators+set}" = set; then
9812 enableval="$enable_validators"
9813
9814 if test "$enableval" = yes; then
9815 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9816 else
9817 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9818 fi
9819
9820else
9821
9822 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9823 if test "x$LINE" != x ; then
9824 eval "DEFAULT_$LINE"
9825 else
9826 no_cache=1
9827 fi
9828
9829 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9830
9831fi;
9832
9833 eval "$ac_cv_use_validators"
9834 if test "$no_cache" != 1; then
9835 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9836 fi
9837
9838 if test "$wxUSE_VALIDATORS" = yes; then
9839 echo "$as_me:$LINENO: result: yes" >&5
9840echo "${ECHO_T}yes" >&6
9841 else
9842 echo "$as_me:$LINENO: result: no" >&5
9843echo "${ECHO_T}no" >&6
9844 fi
9845
9846
9847 enablestring=
9848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9849echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9850 no_cache=0
9851 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9852if test "${enable_busyinfo+set}" = set; then
9853 enableval="$enable_busyinfo"
9854
9855 if test "$enableval" = yes; then
9856 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9857 else
9858 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9859 fi
9860
9861else
9862
9863 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9864 if test "x$LINE" != x ; then
9865 eval "DEFAULT_$LINE"
9866 else
9867 no_cache=1
9868 fi
9869
9870 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9871
9872fi;
9873
9874 eval "$ac_cv_use_busyinfo"
9875 if test "$no_cache" != 1; then
9876 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9877 fi
9878
9879 if test "$wxUSE_BUSYINFO" = yes; then
9880 echo "$as_me:$LINENO: result: yes" >&5
9881echo "${ECHO_T}yes" >&6
9882 else
9883 echo "$as_me:$LINENO: result: no" >&5
9884echo "${ECHO_T}no" >&6
9885 fi
9886
9887
9888 enablestring=
9889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9890echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9891 no_cache=0
9892 # Check whether --enable-joystick or --disable-joystick was given.
9893if test "${enable_joystick+set}" = set; then
9894 enableval="$enable_joystick"
9895
9896 if test "$enableval" = yes; then
9897 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9898 else
9899 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9900 fi
9901
9902else
9903
9904 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9905 if test "x$LINE" != x ; then
9906 eval "DEFAULT_$LINE"
9907 else
9908 no_cache=1
9909 fi
9910
9911 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9912
9913fi;
9914
9915 eval "$ac_cv_use_joystick"
9916 if test "$no_cache" != 1; then
9917 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9918 fi
9919
9920 if test "$wxUSE_JOYSTICK" = yes; then
9921 echo "$as_me:$LINENO: result: yes" >&5
9922echo "${ECHO_T}yes" >&6
9923 else
9924 echo "$as_me:$LINENO: result: no" >&5
9925echo "${ECHO_T}no" >&6
9926 fi
9927
9928
9929 enablestring=
9930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9931echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9932 no_cache=0
9933 # Check whether --enable-metafile or --disable-metafile was given.
9934if test "${enable_metafile+set}" = set; then
9935 enableval="$enable_metafile"
9936
9937 if test "$enableval" = yes; then
9938 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9939 else
9940 ac_cv_use_metafile='wxUSE_METAFILE=no'
9941 fi
9942
9943else
9944
9945 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9946 if test "x$LINE" != x ; then
9947 eval "DEFAULT_$LINE"
9948 else
9949 no_cache=1
9950 fi
9951
9952 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9953
9954fi;
9955
9956 eval "$ac_cv_use_metafile"
9957 if test "$no_cache" != 1; then
9958 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9959 fi
9960
9961 if test "$wxUSE_METAFILE" = yes; then
9962 echo "$as_me:$LINENO: result: yes" >&5
9963echo "${ECHO_T}yes" >&6
9964 else
9965 echo "$as_me:$LINENO: result: no" >&5
9966echo "${ECHO_T}no" >&6
9967 fi
9968
9969
9970 enablestring=
9971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9972echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9973 no_cache=0
9974 # Check whether --enable-dragimage or --disable-dragimage was given.
9975if test "${enable_dragimage+set}" = set; then
9976 enableval="$enable_dragimage"
9977
9978 if test "$enableval" = yes; then
9979 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9980 else
9981 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9982 fi
9983
9984else
9985
9986 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9987 if test "x$LINE" != x ; then
9988 eval "DEFAULT_$LINE"
9989 else
9990 no_cache=1
9991 fi
9992
9993 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9994
9995fi;
9996
9997 eval "$ac_cv_use_dragimage"
9998 if test "$no_cache" != 1; then
9999 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10000 fi
10001
10002 if test "$wxUSE_DRAGIMAGE" = yes; then
10003 echo "$as_me:$LINENO: result: yes" >&5
10004echo "${ECHO_T}yes" >&6
10005 else
10006 echo "$as_me:$LINENO: result: no" >&5
10007echo "${ECHO_T}no" >&6
10008 fi
10009
10010
10011 enablestring=
10012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10013echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10014 no_cache=0
10015 # Check whether --enable-accessibility or --disable-accessibility was given.
10016if test "${enable_accessibility+set}" = set; then
10017 enableval="$enable_accessibility"
10018
10019 if test "$enableval" = yes; then
10020 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10021 else
10022 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10023 fi
10024
10025else
10026
10027 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10028 if test "x$LINE" != x ; then
10029 eval "DEFAULT_$LINE"
10030 else
10031 no_cache=1
10032 fi
10033
10034 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10035
10036fi;
10037
10038 eval "$ac_cv_use_accessibility"
10039 if test "$no_cache" != 1; then
10040 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10041 fi
10042
10043 if test "$wxUSE_ACCESSIBILITY" = yes; then
10044 echo "$as_me:$LINENO: result: yes" >&5
10045echo "${ECHO_T}yes" >&6
10046 else
10047 echo "$as_me:$LINENO: result: no" >&5
10048echo "${ECHO_T}no" >&6
10049 fi
10050
10051
10052
10053
10054 enablestring=
10055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10056echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10057 no_cache=0
10058 # Check whether --enable-palette or --disable-palette was given.
10059if test "${enable_palette+set}" = set; then
10060 enableval="$enable_palette"
10061
10062 if test "$enableval" = yes; then
10063 ac_cv_use_palette='wxUSE_PALETTE=yes'
10064 else
10065 ac_cv_use_palette='wxUSE_PALETTE=no'
10066 fi
10067
10068else
10069
10070 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10071 if test "x$LINE" != x ; then
10072 eval "DEFAULT_$LINE"
10073 else
10074 no_cache=1
10075 fi
10076
10077 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10078
10079fi;
10080
10081 eval "$ac_cv_use_palette"
10082 if test "$no_cache" != 1; then
10083 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10084 fi
10085
10086 if test "$wxUSE_PALETTE" = yes; then
10087 echo "$as_me:$LINENO: result: yes" >&5
10088echo "${ECHO_T}yes" >&6
10089 else
10090 echo "$as_me:$LINENO: result: no" >&5
10091echo "${ECHO_T}no" >&6
10092 fi
10093
10094
10095 enablestring=
10096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10097echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10098 no_cache=0
10099 # Check whether --enable-image or --disable-image was given.
10100if test "${enable_image+set}" = set; then
10101 enableval="$enable_image"
10102
10103 if test "$enableval" = yes; then
10104 ac_cv_use_image='wxUSE_IMAGE=yes'
10105 else
10106 ac_cv_use_image='wxUSE_IMAGE=no'
10107 fi
10108
10109else
10110
10111 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10112 if test "x$LINE" != x ; then
10113 eval "DEFAULT_$LINE"
10114 else
10115 no_cache=1
10116 fi
10117
10118 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10119
10120fi;
10121
10122 eval "$ac_cv_use_image"
10123 if test "$no_cache" != 1; then
10124 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10125 fi
10126
10127 if test "$wxUSE_IMAGE" = yes; then
10128 echo "$as_me:$LINENO: result: yes" >&5
10129echo "${ECHO_T}yes" >&6
10130 else
10131 echo "$as_me:$LINENO: result: no" >&5
10132echo "${ECHO_T}no" >&6
10133 fi
10134
10135
10136 enablestring=
10137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10138echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10139 no_cache=0
10140 # Check whether --enable-gif or --disable-gif was given.
10141if test "${enable_gif+set}" = set; then
10142 enableval="$enable_gif"
10143
10144 if test "$enableval" = yes; then
10145 ac_cv_use_gif='wxUSE_GIF=yes'
10146 else
10147 ac_cv_use_gif='wxUSE_GIF=no'
10148 fi
10149
10150else
10151
10152 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10153 if test "x$LINE" != x ; then
10154 eval "DEFAULT_$LINE"
10155 else
10156 no_cache=1
10157 fi
10158
10159 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10160
10161fi;
10162
10163 eval "$ac_cv_use_gif"
10164 if test "$no_cache" != 1; then
10165 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10166 fi
10167
10168 if test "$wxUSE_GIF" = yes; then
10169 echo "$as_me:$LINENO: result: yes" >&5
10170echo "${ECHO_T}yes" >&6
10171 else
10172 echo "$as_me:$LINENO: result: no" >&5
10173echo "${ECHO_T}no" >&6
10174 fi
10175
10176
10177 enablestring=
10178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10179echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10180 no_cache=0
10181 # Check whether --enable-pcx or --disable-pcx was given.
10182if test "${enable_pcx+set}" = set; then
10183 enableval="$enable_pcx"
10184
10185 if test "$enableval" = yes; then
10186 ac_cv_use_pcx='wxUSE_PCX=yes'
10187 else
10188 ac_cv_use_pcx='wxUSE_PCX=no'
10189 fi
10190
10191else
10192
10193 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10194 if test "x$LINE" != x ; then
10195 eval "DEFAULT_$LINE"
10196 else
10197 no_cache=1
10198 fi
10199
10200 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10201
10202fi;
10203
10204 eval "$ac_cv_use_pcx"
10205 if test "$no_cache" != 1; then
10206 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10207 fi
10208
10209 if test "$wxUSE_PCX" = yes; then
10210 echo "$as_me:$LINENO: result: yes" >&5
10211echo "${ECHO_T}yes" >&6
10212 else
10213 echo "$as_me:$LINENO: result: no" >&5
10214echo "${ECHO_T}no" >&6
10215 fi
10216
10217
10218 enablestring=
10219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10220echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10221 no_cache=0
10222 # Check whether --enable-iff or --disable-iff was given.
10223if test "${enable_iff+set}" = set; then
10224 enableval="$enable_iff"
10225
10226 if test "$enableval" = yes; then
10227 ac_cv_use_iff='wxUSE_IFF=yes'
10228 else
10229 ac_cv_use_iff='wxUSE_IFF=no'
10230 fi
10231
10232else
10233
10234 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10235 if test "x$LINE" != x ; then
10236 eval "DEFAULT_$LINE"
10237 else
10238 no_cache=1
10239 fi
10240
10241 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10242
10243fi;
10244
10245 eval "$ac_cv_use_iff"
10246 if test "$no_cache" != 1; then
10247 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10248 fi
10249
10250 if test "$wxUSE_IFF" = yes; then
10251 echo "$as_me:$LINENO: result: yes" >&5
10252echo "${ECHO_T}yes" >&6
10253 else
10254 echo "$as_me:$LINENO: result: no" >&5
10255echo "${ECHO_T}no" >&6
10256 fi
10257
10258
10259 enablestring=
10260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10261echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10262 no_cache=0
10263 # Check whether --enable-pnm or --disable-pnm was given.
10264if test "${enable_pnm+set}" = set; then
10265 enableval="$enable_pnm"
10266
10267 if test "$enableval" = yes; then
10268 ac_cv_use_pnm='wxUSE_PNM=yes'
10269 else
10270 ac_cv_use_pnm='wxUSE_PNM=no'
10271 fi
10272
10273else
10274
10275 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10276 if test "x$LINE" != x ; then
10277 eval "DEFAULT_$LINE"
10278 else
10279 no_cache=1
10280 fi
10281
10282 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10283
10284fi;
10285
10286 eval "$ac_cv_use_pnm"
10287 if test "$no_cache" != 1; then
10288 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10289 fi
10290
10291 if test "$wxUSE_PNM" = yes; then
10292 echo "$as_me:$LINENO: result: yes" >&5
10293echo "${ECHO_T}yes" >&6
10294 else
10295 echo "$as_me:$LINENO: result: no" >&5
10296echo "${ECHO_T}no" >&6
10297 fi
10298
10299
10300 enablestring=
10301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10302echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10303 no_cache=0
10304 # Check whether --enable-xpm or --disable-xpm was given.
10305if test "${enable_xpm+set}" = set; then
10306 enableval="$enable_xpm"
10307
10308 if test "$enableval" = yes; then
10309 ac_cv_use_xpm='wxUSE_XPM=yes'
10310 else
10311 ac_cv_use_xpm='wxUSE_XPM=no'
10312 fi
10313
10314else
10315
10316 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10317 if test "x$LINE" != x ; then
10318 eval "DEFAULT_$LINE"
10319 else
10320 no_cache=1
10321 fi
10322
10323 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10324
10325fi;
10326
10327 eval "$ac_cv_use_xpm"
10328 if test "$no_cache" != 1; then
10329 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10330 fi
10331
10332 if test "$wxUSE_XPM" = yes; then
10333 echo "$as_me:$LINENO: result: yes" >&5
10334echo "${ECHO_T}yes" >&6
10335 else
10336 echo "$as_me:$LINENO: result: no" >&5
10337echo "${ECHO_T}no" >&6
10338 fi
10339
10340
10341 enablestring=
10342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10343echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10344 no_cache=0
10345 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10346if test "${enable_ico_cur+set}" = set; then
10347 enableval="$enable_ico_cur"
10348
10349 if test "$enableval" = yes; then
10350 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10351 else
10352 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10353 fi
10354
10355else
10356
10357 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10358 if test "x$LINE" != x ; then
10359 eval "DEFAULT_$LINE"
10360 else
10361 no_cache=1
10362 fi
10363
10364 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10365
10366fi;
10367
10368 eval "$ac_cv_use_ico_cur"
10369 if test "$no_cache" != 1; then
10370 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10371 fi
10372
10373 if test "$wxUSE_ICO_CUR" = yes; then
10374 echo "$as_me:$LINENO: result: yes" >&5
10375echo "${ECHO_T}yes" >&6
10376 else
10377 echo "$as_me:$LINENO: result: no" >&5
10378echo "${ECHO_T}no" >&6
10379 fi
10380
10381
10382fi
10383
10384
10385
ceec2216
RL
10386# Check whether --with-flavour or --without-flavour was given.
10387if test "${with_flavour+set}" = set; then
10388 withval="$with_flavour"
10389 WX_FLAVOUR="$withval"
10390fi;
10391
10392
10393
a848cd7e
SC
10394 enablestring=
10395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10396echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10397 no_cache=0
10398 # Check whether --enable-official_build or --disable-official_build was given.
10399if test "${enable_official_build+set}" = set; then
10400 enableval="$enable_official_build"
10401
10402 if test "$enableval" = yes; then
10403 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10404 else
10405 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10406 fi
10407
10408else
10409
10410 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10411 if test "x$LINE" != x ; then
10412 eval "DEFAULT_$LINE"
10413 else
10414 no_cache=1
10415 fi
10416
10417 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10418
10419fi;
10420
10421 eval "$ac_cv_use_official_build"
10422 if test "$no_cache" != 1; then
10423 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10424 fi
10425
10426 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10427 echo "$as_me:$LINENO: result: yes" >&5
10428echo "${ECHO_T}yes" >&6
10429 else
10430 echo "$as_me:$LINENO: result: no" >&5
10431echo "${ECHO_T}no" >&6
10432 fi
10433
10434# Check whether --enable-vendor or --disable-vendor was given.
10435if test "${enable_vendor+set}" = set; then
10436 enableval="$enable_vendor"
10437 VENDOR="$enableval"
10438fi;
10439if test "x$VENDOR" = "x"; then
10440 VENDOR="custom"
10441fi
10442
a848cd7e
SC
10443
10444
10445
10446 echo "saving argument cache $wx_arg_cache_file"
10447 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10448
10449
10450
10451echo "$as_me:$LINENO: checking for toolkit" >&5
10452echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10453
10454# In Wine, we need to default to MSW, not GTK or MOTIF
10455if test "$wxUSE_WINE" = "yes"; then
10456 DEFAULT_DEFAULT_wxUSE_GTK=0
10457 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10458 DEFAULT_DEFAULT_wxUSE_MSW=1
10459 wxUSE_SHARED=no
10460fi
10461
f597b41c 10462
a848cd7e
SC
10463if test "$wxUSE_GUI" = "yes"; then
10464
10465 if test "$USE_BEOS" = 1; then
10466 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10467echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10468 { (exit 1); exit 1; }; }
10469 fi
10470
10471 if test "$TOOLKIT_GIVEN" = 1; then
10472 for toolkit in `echo $ALL_TOOLKITS`; do
10473 var=wxUSE_$toolkit
10474 eval "value=\$${var}"
f34ca037
MW
10475 if test "x$value" = "xno"; then
10476 eval "$var=0"
10477 elif test "x$value" != "x"; then
10478 eval "$var=1"
10479 fi
10480
10481 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10482 eval "wx${toolkit}_VERSION=$value"
10483 fi
a848cd7e
SC
10484 done
10485 else
10486 for toolkit in `echo $ALL_TOOLKITS`; do
10487 if test "$has_toolkit_in_cache" != 1; then
10488 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10489 else
10490 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10491
10492 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10493 if test "x$version" != "x"; then
10494 eval "wx${toolkit}_VERSION=$version"
10495 fi
a848cd7e
SC
10496 fi
10497 eval "wxUSE_$toolkit=\$${var}"
10498 done
10499 fi
10500
10501 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10502 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10503 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10504
10505 case "${host}" in
10506 *-pc-os2_emx | *-pc-os2-emx )
10507 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10508 esac
10509
10510 case "$NUM_TOOLKITS" in
10511 1)
10512 ;;
10513 0)
10514 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10515echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10516 { (exit 1); exit 1; }; }
10517 ;;
10518 *)
10519 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10520echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10521 { (exit 1); exit 1; }; }
10522 esac
10523
f34ca037
MW
10524 # to be removed when --disable-gtk2 isn't needed
10525 if test "x$wxUSE_GTK2" = "xyes"; then
10526 wxGTK_VERSION=2
10527 elif test "x$wxUSE_GTK2" = "xno"; then
10528 wxGTK_VERSION=1
10529 fi
10530
a848cd7e
SC
10531 for toolkit in `echo $ALL_TOOLKITS`; do
10532 var=wxUSE_$toolkit
10533 eval "value=\$${var}"
10534 if test "x$value" != x; then
10535 cache_var=CACHE_$toolkit
10536 eval "cache=\$${cache_var}"
10537 if test "$cache" = 1; then
10538 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10539 eval "version=\$wx${toolkit}_VERSION"
10540 if test "x$version" != "x"; then
10541 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10542 fi
a848cd7e
SC
10543 fi
10544 if test "$value" = 1; then
10545 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10546 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10547echo "${ECHO_T}$toolkit_echo" >&6
10548 fi
10549 fi
10550 done
10551else
10552 if test "x$host_alias" != "x"; then
10553 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10554echo "${ECHO_T}base ($host_alias hosted) only" >&6
10555 else
10556 echo "$as_me:$LINENO: result: base only" >&5
10557echo "${ECHO_T}base only" >&6
10558 fi
10559fi
10560
10561wants_win32=0
10562doesnt_want_win32=0
10563case "${host}" in
10564 *-*-cygwin*)
10565 if test "$wxUSE_MSW" = 1 ; then
10566 wants_win32=1
10567 else
10568 doesnt_want_win32=1
10569 fi
10570 ;;
10571 *-*-mingw*)
10572 wants_win32=1
10573 ;;
10574esac
10575
10576if test "$wxUSE_WINE" = "yes"; then
10577 wants_win32=1
10578 CC=winegcc
10579 CXX=wineg++
10580 RESCOMP=wrc
10581 LDFLAGS_GUI="-mwindows"
10582fi
10583
10584if test "$wants_win32" = 1 ; then
10585 USE_UNIX=0
10586 USE_WIN32=1
10587 cat >>confdefs.h <<\_ACEOF
10588#define __WIN32__ 1
10589_ACEOF
10590
10591 cat >>confdefs.h <<\_ACEOF
10592#define __WIN95__ 1
10593_ACEOF
10594
10595 cat >>confdefs.h <<\_ACEOF
10596#define __WINDOWS__ 1
10597_ACEOF
10598
10599 cat >>confdefs.h <<\_ACEOF
10600#define __GNUWIN32__ 1
10601_ACEOF
10602
10603 cat >>confdefs.h <<\_ACEOF
10604#define STRICT 1
10605_ACEOF
10606
10607 cat >>confdefs.h <<\_ACEOF
10608#define WINVER 0x0400
10609_ACEOF
10610
10611fi
10612if test "$doesnt_want_win32" = 1 ; then
10613 USE_UNIX=1
10614 USE_WIN32=0
10615fi
10616
10617if test "$USE_UNIX" = 1 ; then
10618 wxUSE_UNIX=yes
10619 cat >>confdefs.h <<\_ACEOF
10620#define __UNIX__ 1
10621_ACEOF
10622
10623fi
10624
10625
10626cat >confcache <<\_ACEOF
10627# This file is a shell script that caches the results of configure
10628# tests run on this system so they can be shared between configure
10629# scripts and configure runs, see configure's option --config-cache.
10630# It is not useful on other systems. If it contains results you don't
10631# want to keep, you may remove or edit it.
10632#
10633# config.status only pays attention to the cache file if you give it
10634# the --recheck option to rerun configure.
10635#
10636# `ac_cv_env_foo' variables (set or unset) will be overridden when
10637# loading this file, other *unset* `ac_cv_foo' will be assigned the
10638# following values.
10639
10640_ACEOF
10641
10642# The following way of writing the cache mishandles newlines in values,
10643# but we know of no workaround that is simple, portable, and efficient.
10644# So, don't put newlines in cache variables' values.
10645# Ultrix sh set writes to stderr and can't be redirected directly,
10646# and sets the high bit in the cache file unless we assign to the vars.
10647{
10648 (set) 2>&1 |
10649 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10650 *ac_space=\ *)
10651 # `set' does not quote correctly, so add quotes (double-quote
10652 # substitution turns \\\\ into \\, and sed turns \\ into \).
10653 sed -n \
ac1cb8d3
VS
10654 "s/'/'\\\\''/g;
10655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10656 ;;
10657 *)
10658 # `set' quotes correctly as required by POSIX, so do not add quotes.
10659 sed -n \
ac1cb8d3 10660 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10661 ;;
10662 esac;
10663} |
10664 sed '
10665 t clear
10666 : clear
10667 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10668 t end
10669 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10670 : end' >>confcache
10671if diff $cache_file confcache >/dev/null 2>&1; then :; else
10672 if test -w $cache_file; then
10673 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10674 cat confcache >$cache_file
10675 else
10676 echo "not updating unwritable cache $cache_file"
10677 fi
10678fi
10679rm -f confcache
10680
10681if test "$build" != "$host" ; then
1e9e8aba 10682 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10683 CC=$host_alias-gcc
10684 CXX=$host_alias-c++
10685 AR=$host_alias-ar
10686 RANLIB=$host_alias-ranlib
10687 DLLTOOL=$host_alias-dlltool
10688 RESCOMP=$host_alias-windres
a848cd7e 10689 STRIP=$host_alias-strip
1e9e8aba
DE
10690 elif test "x$CC" '!=' "x"; then
10691 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10692 else
10693 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10694echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10695 { (exit 1); exit 1; }; }
10696 fi
10697fi
10698
10699CFLAGS=${CFLAGS:=}
6dcfc289
DE
10700
10701
10702 ac_ext=c
a848cd7e
SC
10703ac_cpp='$CPP $CPPFLAGS'
10704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10706ac_compiler_gnu=$ac_cv_c_compiler_gnu
10707if test -n "$ac_tool_prefix"; then
10708 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10709set dummy ${ac_tool_prefix}gcc; ac_word=$2
10710echo "$as_me:$LINENO: checking for $ac_word" >&5
10711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10712if test "${ac_cv_prog_CC+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10714else
10715 if test -n "$CC"; then
10716 ac_cv_prog_CC="$CC" # Let the user override the test.
10717else
10718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719for as_dir in $PATH
10720do
10721 IFS=$as_save_IFS
10722 test -z "$as_dir" && as_dir=.
10723 for ac_exec_ext in '' $ac_executable_extensions; do
10724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10725 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10727 break 2
10728 fi
10729done
10730done
10731
10732fi
10733fi
10734CC=$ac_cv_prog_CC
10735if test -n "$CC"; then
10736 echo "$as_me:$LINENO: result: $CC" >&5
10737echo "${ECHO_T}$CC" >&6
10738else
10739 echo "$as_me:$LINENO: result: no" >&5
10740echo "${ECHO_T}no" >&6
10741fi
10742
10743fi
10744if test -z "$ac_cv_prog_CC"; then
10745 ac_ct_CC=$CC
10746 # Extract the first word of "gcc", so it can be a program name with args.
10747set dummy gcc; ac_word=$2
10748echo "$as_me:$LINENO: checking for $ac_word" >&5
10749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10750if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752else
10753 if test -n "$ac_ct_CC"; then
10754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10755else
10756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757for as_dir in $PATH
10758do
10759 IFS=$as_save_IFS
10760 test -z "$as_dir" && as_dir=.
10761 for ac_exec_ext in '' $ac_executable_extensions; do
10762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10763 ac_cv_prog_ac_ct_CC="gcc"
10764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10765 break 2
10766 fi
10767done
10768done
10769
10770fi
10771fi
10772ac_ct_CC=$ac_cv_prog_ac_ct_CC
10773if test -n "$ac_ct_CC"; then
10774 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10775echo "${ECHO_T}$ac_ct_CC" >&6
10776else
10777 echo "$as_me:$LINENO: result: no" >&5
10778echo "${ECHO_T}no" >&6
10779fi
10780
10781 CC=$ac_ct_CC
10782else
10783 CC="$ac_cv_prog_CC"
10784fi
10785
10786if test -z "$CC"; then
10787 if test -n "$ac_tool_prefix"; then
10788 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10789set dummy ${ac_tool_prefix}cc; ac_word=$2
10790echo "$as_me:$LINENO: checking for $ac_word" >&5
10791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10792if test "${ac_cv_prog_CC+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10794else
10795 if test -n "$CC"; then
10796 ac_cv_prog_CC="$CC" # Let the user override the test.
10797else
10798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799for as_dir in $PATH
10800do
10801 IFS=$as_save_IFS
10802 test -z "$as_dir" && as_dir=.
10803 for ac_exec_ext in '' $ac_executable_extensions; do
10804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10805 ac_cv_prog_CC="${ac_tool_prefix}cc"
10806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10807 break 2
10808 fi
10809done
10810done
10811
10812fi
10813fi
10814CC=$ac_cv_prog_CC
10815if test -n "$CC"; then
10816 echo "$as_me:$LINENO: result: $CC" >&5
10817echo "${ECHO_T}$CC" >&6
10818else
10819 echo "$as_me:$LINENO: result: no" >&5
10820echo "${ECHO_T}no" >&6
10821fi
10822
10823fi
10824if test -z "$ac_cv_prog_CC"; then
10825 ac_ct_CC=$CC
10826 # Extract the first word of "cc", so it can be a program name with args.
10827set dummy cc; ac_word=$2
10828echo "$as_me:$LINENO: checking for $ac_word" >&5
10829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10830if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10832else
10833 if test -n "$ac_ct_CC"; then
10834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10835else
10836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837for as_dir in $PATH
10838do
10839 IFS=$as_save_IFS
10840 test -z "$as_dir" && as_dir=.
10841 for ac_exec_ext in '' $ac_executable_extensions; do
10842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10843 ac_cv_prog_ac_ct_CC="cc"
10844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10845 break 2
10846 fi
10847done
10848done
10849
10850fi
10851fi
10852ac_ct_CC=$ac_cv_prog_ac_ct_CC
10853if test -n "$ac_ct_CC"; then
10854 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10855echo "${ECHO_T}$ac_ct_CC" >&6
10856else
10857 echo "$as_me:$LINENO: result: no" >&5
10858echo "${ECHO_T}no" >&6
10859fi
10860
10861 CC=$ac_ct_CC
10862else
10863 CC="$ac_cv_prog_CC"
10864fi
10865
10866fi
10867if test -z "$CC"; then
10868 # Extract the first word of "cc", so it can be a program name with args.
10869set dummy cc; ac_word=$2
10870echo "$as_me:$LINENO: checking for $ac_word" >&5
10871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10872if test "${ac_cv_prog_CC+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10874else
10875 if test -n "$CC"; then
10876 ac_cv_prog_CC="$CC" # Let the user override the test.
10877else
10878 ac_prog_rejected=no
10879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10880for as_dir in $PATH
10881do
10882 IFS=$as_save_IFS
10883 test -z "$as_dir" && as_dir=.
10884 for ac_exec_ext in '' $ac_executable_extensions; do
10885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10886 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10887 ac_prog_rejected=yes
10888 continue
10889 fi
10890 ac_cv_prog_CC="cc"
10891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10892 break 2
10893 fi
10894done
10895done
10896
10897if test $ac_prog_rejected = yes; then
10898 # We found a bogon in the path, so make sure we never use it.
10899 set dummy $ac_cv_prog_CC
10900 shift
10901 if test $# != 0; then
10902 # We chose a different compiler from the bogus one.
10903 # However, it has the same basename, so the bogon will be chosen
10904 # first if we set CC to just the basename; use the full file name.
10905 shift
10906 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10907 fi
10908fi
10909fi
10910fi
10911CC=$ac_cv_prog_CC
10912if test -n "$CC"; then
10913 echo "$as_me:$LINENO: result: $CC" >&5
10914echo "${ECHO_T}$CC" >&6
10915else
10916 echo "$as_me:$LINENO: result: no" >&5
10917echo "${ECHO_T}no" >&6
10918fi
10919
10920fi
10921if test -z "$CC"; then
10922 if test -n "$ac_tool_prefix"; then
10923 for ac_prog in cl
10924 do
10925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10926set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10927echo "$as_me:$LINENO: checking for $ac_word" >&5
10928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10929if test "${ac_cv_prog_CC+set}" = set; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10931else
10932 if test -n "$CC"; then
10933 ac_cv_prog_CC="$CC" # Let the user override the test.
10934else
10935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936for as_dir in $PATH
10937do
10938 IFS=$as_save_IFS
10939 test -z "$as_dir" && as_dir=.
10940 for ac_exec_ext in '' $ac_executable_extensions; do
10941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10942 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10944 break 2
10945 fi
10946done
10947done
10948
10949fi
10950fi
10951CC=$ac_cv_prog_CC
10952if test -n "$CC"; then
10953 echo "$as_me:$LINENO: result: $CC" >&5
10954echo "${ECHO_T}$CC" >&6
10955else
10956 echo "$as_me:$LINENO: result: no" >&5
10957echo "${ECHO_T}no" >&6
10958fi
10959
10960 test -n "$CC" && break
10961 done
10962fi
10963if test -z "$CC"; then
10964 ac_ct_CC=$CC
10965 for ac_prog in cl
10966do
10967 # Extract the first word of "$ac_prog", so it can be a program name with args.
10968set dummy $ac_prog; ac_word=$2
10969echo "$as_me:$LINENO: checking for $ac_word" >&5
10970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10971if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10972 echo $ECHO_N "(cached) $ECHO_C" >&6
10973else
10974 if test -n "$ac_ct_CC"; then
10975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10976else
10977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978for as_dir in $PATH
10979do
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10984 ac_cv_prog_ac_ct_CC="$ac_prog"
10985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 break 2
10987 fi
10988done
10989done
10990
10991fi
10992fi
10993ac_ct_CC=$ac_cv_prog_ac_ct_CC
10994if test -n "$ac_ct_CC"; then
10995 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10996echo "${ECHO_T}$ac_ct_CC" >&6
10997else
10998 echo "$as_me:$LINENO: result: no" >&5
10999echo "${ECHO_T}no" >&6
11000fi
11001
11002 test -n "$ac_ct_CC" && break
11003done
11004
11005 CC=$ac_ct_CC
11006fi
11007
11008fi
11009
11010
11011test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11012See \`config.log' for more details." >&5
11013echo "$as_me: error: no acceptable C compiler found in \$PATH
11014See \`config.log' for more details." >&2;}
11015 { (exit 1); exit 1; }; }
11016
11017# Provide some information about the compiler.
11018echo "$as_me:$LINENO:" \
11019 "checking for C compiler version" >&5
11020ac_compiler=`set X $ac_compile; echo $2`
11021{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11022 (eval $ac_compiler --version </dev/null >&5) 2>&5
11023 ac_status=$?
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }
11026{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11027 (eval $ac_compiler -v </dev/null >&5) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }
11031{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11032 (eval $ac_compiler -V </dev/null >&5) 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }
11036
11037cat >conftest.$ac_ext <<_ACEOF
11038/* confdefs.h. */
11039_ACEOF
11040cat confdefs.h >>conftest.$ac_ext
11041cat >>conftest.$ac_ext <<_ACEOF
11042/* end confdefs.h. */
11043
11044int
11045main ()
11046{
11047
11048 ;
11049 return 0;
11050}
11051_ACEOF
11052ac_clean_files_save=$ac_clean_files
11053ac_clean_files="$ac_clean_files a.out a.exe b.out"
11054# Try to create an executable without -o first, disregard a.out.
11055# It will help us diagnose broken compilers, and finding out an intuition
11056# of exeext.
ac1cb8d3
VS
11057echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11058echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11059ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11060if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11061 (eval $ac_link_default) 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; then
11065 # Find the output, starting from the most likely. This scheme is
11066# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11067# resort.
11068
11069# Be careful to initialize this variable, since it used to be cached.
11070# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11071ac_cv_exeext=
11072# b.out is created by i960 compilers.
11073for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11074do
11075 test -f "$ac_file" || continue
11076 case $ac_file in
11077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11078 ;;
a848cd7e 11079 conftest.$ac_ext )
ac1cb8d3
VS
11080 # This is the source file.
11081 ;;
a848cd7e 11082 [ab].out )
ac1cb8d3
VS
11083 # We found the default executable, but exeext='' is most
11084 # certainly right.
11085 break;;
a848cd7e 11086 *.* )
ac1cb8d3
VS
11087 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11088 # FIXME: I believe we export ac_cv_exeext for Libtool,
11089 # but it would be cool to find out if it's true. Does anybody
11090 # maintain Libtool? --akim.
11091 export ac_cv_exeext
11092 break;;
a848cd7e 11093 * )
ac1cb8d3 11094 break;;
a848cd7e
SC
11095 esac
11096done
11097else
11098 echo "$as_me: failed program was:" >&5
11099sed 's/^/| /' conftest.$ac_ext >&5
11100
11101{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11102See \`config.log' for more details." >&5
11103echo "$as_me: error: C compiler cannot create executables
11104See \`config.log' for more details." >&2;}
11105 { (exit 77); exit 77; }; }
11106fi
11107
11108ac_exeext=$ac_cv_exeext
11109echo "$as_me:$LINENO: result: $ac_file" >&5
11110echo "${ECHO_T}$ac_file" >&6
11111
11112# Check the compiler produces executables we can run. If not, either
11113# the compiler is broken, or we cross compile.
11114echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11115echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11116# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11117# If not cross compiling, check that we can run a simple program.
11118if test "$cross_compiling" != yes; then
11119 if { ac_try='./$ac_file'
11120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121 (eval $ac_try) 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; }; then
11125 cross_compiling=no
11126 else
11127 if test "$cross_compiling" = maybe; then
11128 cross_compiling=yes
11129 else
11130 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11131If you meant to cross compile, use \`--host'.
11132See \`config.log' for more details." >&5
11133echo "$as_me: error: cannot run C compiled programs.
11134If you meant to cross compile, use \`--host'.
11135See \`config.log' for more details." >&2;}
11136 { (exit 1); exit 1; }; }
11137 fi
11138 fi
11139fi
11140echo "$as_me:$LINENO: result: yes" >&5
11141echo "${ECHO_T}yes" >&6
11142
11143rm -f a.out a.exe conftest$ac_cv_exeext b.out
11144ac_clean_files=$ac_clean_files_save
11145# Check the compiler produces executables we can run. If not, either
11146# the compiler is broken, or we cross compile.
11147echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11148echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11149echo "$as_me:$LINENO: result: $cross_compiling" >&5
11150echo "${ECHO_T}$cross_compiling" >&6
11151
11152echo "$as_me:$LINENO: checking for suffix of executables" >&5
11153echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11155 (eval $ac_link) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; then
11159 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11160# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11161# work properly (i.e., refer to `conftest.exe'), while it won't with
11162# `rm'.
11163for ac_file in conftest.exe conftest conftest.*; do
11164 test -f "$ac_file" || continue
11165 case $ac_file in
11166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11167 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11168 export ac_cv_exeext
11169 break;;
a848cd7e
SC
11170 * ) break;;
11171 esac
11172done
11173else
11174 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11175See \`config.log' for more details." >&5
11176echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11177See \`config.log' for more details." >&2;}
11178 { (exit 1); exit 1; }; }
11179fi
11180
11181rm -f conftest$ac_cv_exeext
11182echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11183echo "${ECHO_T}$ac_cv_exeext" >&6
11184
11185rm -f conftest.$ac_ext
11186EXEEXT=$ac_cv_exeext
11187ac_exeext=$EXEEXT
11188echo "$as_me:$LINENO: checking for suffix of object files" >&5
11189echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11190if test "${ac_cv_objext+set}" = set; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11192else
11193 cat >conftest.$ac_ext <<_ACEOF
11194/* confdefs.h. */
11195_ACEOF
11196cat confdefs.h >>conftest.$ac_ext
11197cat >>conftest.$ac_ext <<_ACEOF
11198/* end confdefs.h. */
11199
11200int
11201main ()
11202{
11203
11204 ;
11205 return 0;
11206}
11207_ACEOF
11208rm -f conftest.o conftest.obj
11209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11210 (eval $ac_compile) 2>&5
11211 ac_status=$?
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; then
11214 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11215 case $ac_file in
11216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11217 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11218 break;;
11219 esac
11220done
11221else
11222 echo "$as_me: failed program was:" >&5
11223sed 's/^/| /' conftest.$ac_ext >&5
11224
11225{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11226See \`config.log' for more details." >&5
11227echo "$as_me: error: cannot compute suffix of object files: cannot compile
11228See \`config.log' for more details." >&2;}
11229 { (exit 1); exit 1; }; }
11230fi
11231
11232rm -f conftest.$ac_cv_objext conftest.$ac_ext
11233fi
11234echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11235echo "${ECHO_T}$ac_cv_objext" >&6
11236OBJEXT=$ac_cv_objext
11237ac_objext=$OBJEXT
11238echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11239echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11240if test "${ac_cv_c_compiler_gnu+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11242else
11243 cat >conftest.$ac_ext <<_ACEOF
11244/* confdefs.h. */
11245_ACEOF
11246cat confdefs.h >>conftest.$ac_ext
11247cat >>conftest.$ac_ext <<_ACEOF
11248/* end confdefs.h. */
11249
11250int
11251main ()
11252{
11253#ifndef __GNUC__
11254 choke me
11255#endif
11256
11257 ;
11258 return 0;
11259}
11260_ACEOF
11261rm -f conftest.$ac_objext
11262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11263 (eval $ac_compile) 2>conftest.er1
a848cd7e 11264 ac_status=$?
ac1cb8d3
VS
11265 grep -v '^ *+' conftest.er1 >conftest.err
11266 rm -f conftest.er1
11267 cat conftest.err >&5
a848cd7e
SC
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } &&
9dd0f6c2 11270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278 (eval $ac_try) 2>&5
11279 ac_status=$?
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
11282 ac_compiler_gnu=yes
11283else
11284 echo "$as_me: failed program was:" >&5
11285sed 's/^/| /' conftest.$ac_ext >&5
11286
11287ac_compiler_gnu=no
11288fi
ac1cb8d3 11289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11290ac_cv_c_compiler_gnu=$ac_compiler_gnu
11291
11292fi
11293echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11294echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11295GCC=`test $ac_compiler_gnu = yes && echo yes`
11296ac_test_CFLAGS=${CFLAGS+set}
11297ac_save_CFLAGS=$CFLAGS
52ada004 11298CFLAGS="-g"
a848cd7e
SC
11299echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11300echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11301if test "${ac_cv_prog_cc_g+set}" = set; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11303else
11304 cat >conftest.$ac_ext <<_ACEOF
11305/* confdefs.h. */
11306_ACEOF
11307cat confdefs.h >>conftest.$ac_ext
11308cat >>conftest.$ac_ext <<_ACEOF
11309/* end confdefs.h. */
11310
11311int
11312main ()
11313{
11314
11315 ;
11316 return 0;
11317}
11318_ACEOF
11319rm -f conftest.$ac_objext
11320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11321 (eval $ac_compile) 2>conftest.er1
a848cd7e 11322 ac_status=$?
ac1cb8d3
VS
11323 grep -v '^ *+' conftest.er1 >conftest.err
11324 rm -f conftest.er1
11325 cat conftest.err >&5
a848cd7e
SC
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } &&
9dd0f6c2 11328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; } &&
11334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 ac_cv_prog_cc_g=yes
11341else
11342 echo "$as_me: failed program was:" >&5
11343sed 's/^/| /' conftest.$ac_ext >&5
11344
11345ac_cv_prog_cc_g=no
11346fi
ac1cb8d3 11347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11348fi
11349echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11350echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11351if test "$ac_test_CFLAGS" = set; then
11352 CFLAGS=$ac_save_CFLAGS
11353elif test $ac_cv_prog_cc_g = yes; then
11354 if test "$GCC" = yes; then
11355 CFLAGS="-g -O2"
11356 else
11357 CFLAGS="-g"
11358 fi
11359else
11360 if test "$GCC" = yes; then
11361 CFLAGS="-O2"
11362 else
11363 CFLAGS=
11364 fi
11365fi
11366echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11367echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11368if test "${ac_cv_prog_cc_stdc+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11370else
11371 ac_cv_prog_cc_stdc=no
11372ac_save_CC=$CC
11373cat >conftest.$ac_ext <<_ACEOF
11374/* confdefs.h. */
11375_ACEOF
11376cat confdefs.h >>conftest.$ac_ext
11377cat >>conftest.$ac_ext <<_ACEOF
11378/* end confdefs.h. */
11379#include <stdarg.h>
11380#include <stdio.h>
11381#include <sys/types.h>
11382#include <sys/stat.h>
11383/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11384struct buf { int x; };
11385FILE * (*rcsopen) (struct buf *, struct stat *, int);
11386static char *e (p, i)
11387 char **p;
11388 int i;
11389{
11390 return p[i];
11391}
11392static char *f (char * (*g) (char **, int), char **p, ...)
11393{
11394 char *s;
11395 va_list v;
11396 va_start (v,p);
11397 s = g (p, va_arg (v,int));
11398 va_end (v);
11399 return s;
11400}
ac1cb8d3
VS
11401
11402/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11403 function prototypes and stuff, but not '\xHH' hex character constants.
11404 These don't provoke an error unfortunately, instead are silently treated
11405 as 'x'. The following induces an error, until -std1 is added to get
11406 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11407 array size at least. It's necessary to write '\x00'==0 to get something
11408 that's true only with -std1. */
11409int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11410
a848cd7e
SC
11411int test (int i, double x);
11412struct s1 {int (*f) (int a);};
11413struct s2 {int (*f) (double a);};
11414int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11415int argc;
11416char **argv;
11417int
11418main ()
11419{
11420return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11421 ;
11422 return 0;
11423}
11424_ACEOF
11425# Don't try gcc -ansi; that turns off useful extensions and
11426# breaks some systems' header files.
11427# AIX -qlanglvl=ansi
11428# Ultrix and OSF/1 -std1
11429# HP-UX 10.20 and later -Ae
11430# HP-UX older versions -Aa -D_HPUX_SOURCE
11431# SVR4 -Xc -D__EXTENSIONS__
11432for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11433do
11434 CC="$ac_save_CC $ac_arg"
11435 rm -f conftest.$ac_objext
11436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11437 (eval $ac_compile) 2>conftest.er1
a848cd7e 11438 ac_status=$?
ac1cb8d3
VS
11439 grep -v '^ *+' conftest.er1 >conftest.err
11440 rm -f conftest.er1
11441 cat conftest.err >&5
a848cd7e
SC
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } &&
9dd0f6c2 11444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446 (eval $ac_try) 2>&5
11447 ac_status=$?
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; } &&
11450 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452 (eval $ac_try) 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; }; then
11456 ac_cv_prog_cc_stdc=$ac_arg
11457break
11458else
11459 echo "$as_me: failed program was:" >&5
11460sed 's/^/| /' conftest.$ac_ext >&5
11461
11462fi
ac1cb8d3 11463rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11464done
11465rm -f conftest.$ac_ext conftest.$ac_objext
11466CC=$ac_save_CC
11467
11468fi
11469
11470case "x$ac_cv_prog_cc_stdc" in
11471 x|xno)
11472 echo "$as_me:$LINENO: result: none needed" >&5
11473echo "${ECHO_T}none needed" >&6 ;;
11474 *)
11475 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11476echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11477 CC="$CC $ac_cv_prog_cc_stdc" ;;
11478esac
11479
11480# Some people use a C++ compiler to compile C. Since we use `exit',
11481# in C++ we need to declare it. In case someone uses the same compiler
11482# for both compiling C and C++ we need to have the C++ compiler decide
11483# the declaration of exit, since it's the most demanding environment.
11484cat >conftest.$ac_ext <<_ACEOF
11485#ifndef __cplusplus
11486 choke me
11487#endif
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); } &&
9dd0f6c2 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 for ac_declaration in \
ac1cb8d3 11511 '' \
a848cd7e
SC
11512 'extern "C" void std::exit (int) throw (); using std::exit;' \
11513 'extern "C" void std::exit (int); using std::exit;' \
11514 'extern "C" void exit (int) throw ();' \
11515 'extern "C" void exit (int);' \
11516 'void exit (int);'
11517do
11518 cat >conftest.$ac_ext <<_ACEOF
11519/* confdefs.h. */
11520_ACEOF
11521cat confdefs.h >>conftest.$ac_ext
11522cat >>conftest.$ac_ext <<_ACEOF
11523/* end confdefs.h. */
de59c161 11524$ac_declaration
ac1cb8d3 11525#include <stdlib.h>
a848cd7e
SC
11526int
11527main ()
11528{
11529exit (42);
11530 ;
11531 return 0;
11532}
11533_ACEOF
11534rm -f conftest.$ac_objext
11535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11536 (eval $ac_compile) 2>conftest.er1
a848cd7e 11537 ac_status=$?
ac1cb8d3
VS
11538 grep -v '^ *+' conftest.er1 >conftest.err
11539 rm -f conftest.er1
11540 cat conftest.err >&5
a848cd7e
SC
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } &&
9dd0f6c2 11543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; } &&
11549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11555 :
11556else
11557 echo "$as_me: failed program was:" >&5
11558sed 's/^/| /' conftest.$ac_ext >&5
11559
11560continue
11561fi
ac1cb8d3 11562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11563 cat >conftest.$ac_ext <<_ACEOF
11564/* confdefs.h. */
11565_ACEOF
11566cat confdefs.h >>conftest.$ac_ext
11567cat >>conftest.$ac_ext <<_ACEOF
11568/* end confdefs.h. */
11569$ac_declaration
11570int
11571main ()
11572{
11573exit (42);
11574 ;
11575 return 0;
11576}
11577_ACEOF
11578rm -f conftest.$ac_objext
11579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11580 (eval $ac_compile) 2>conftest.er1
a848cd7e 11581 ac_status=$?
ac1cb8d3
VS
11582 grep -v '^ *+' conftest.er1 >conftest.err
11583 rm -f conftest.er1
11584 cat conftest.err >&5
a848cd7e
SC
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } &&
9dd0f6c2 11587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; } &&
11593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11596 ac_status=$?
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; }; then
11599 break
11600else
11601 echo "$as_me: failed program was:" >&5
11602sed 's/^/| /' conftest.$ac_ext >&5
11603
11604fi
ac1cb8d3 11605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11606done
11607rm -f conftest*
11608if test -n "$ac_declaration"; then
11609 echo '#ifdef __cplusplus' >>confdefs.h
11610 echo $ac_declaration >>confdefs.h
11611 echo '#endif' >>confdefs.h
11612fi
11613
11614else
11615 echo "$as_me: failed program was:" >&5
11616sed 's/^/| /' conftest.$ac_ext >&5
11617
11618fi
ac1cb8d3 11619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11620ac_ext=c
11621ac_cpp='$CPP $CPPFLAGS'
11622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11624ac_compiler_gnu=$ac_cv_c_compiler_gnu
11625
6dcfc289 11626 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11627echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11628if test "${wx_cv_c_exto+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11630else
11631 cat >conftest.$ac_ext <<_ACEOF
11632/* confdefs.h. */
11633_ACEOF
11634cat confdefs.h >>conftest.$ac_ext
11635cat >>conftest.$ac_ext <<_ACEOF
11636/* end confdefs.h. */
11637
11638int
11639main ()
11640{
11641
11642 ;
11643 return 0;
11644}
11645_ACEOF
11646rm -f conftest.$ac_objext conftest.$ac_ext.o
11647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11648 (eval $ac_compile) 2>&5
11649 ac_status=$?
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; then
11652 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11653 case $ac_file in
11654 conftest.$ac_ext.o)
11655 wx_cv_c_exto="-ext o"
11656 ;;
11657 *)
11658 ;;
11659 esac
11660done
11661else
11662 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11663See \`config.log' for more details." >&5
11664echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11665See \`config.log' for more details." >&2;}
11666 { (exit 1); exit 1; }; }
11667
11668fi
11669
11670rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11671
11672fi
11673echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11674echo "${ECHO_T}$wx_cv_c_exto" >&6
11675if test "x$wx_cv_c_exto" '!=' "x"; then
11676 if test "c" = "c"; then
11677 CFLAGS="$wx_cv_c_exto $CFLAGS"
11678 fi
11679 if test "c" = "cxx"; then
11680 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11681 fi
11682fi
11683
6dcfc289
DE
11684 if test "x$wx_cv_c_exto" '!=' "x"; then
11685 unset ac_cv_prog_cc_g
11686 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11687ac_save_CFLAGS=$CFLAGS
52ada004 11688CFLAGS="-g"
480ccd21
DE
11689echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11690echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11691if test "${ac_cv_prog_cc_g+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11693else
11694 cat >conftest.$ac_ext <<_ACEOF
11695/* confdefs.h. */
11696_ACEOF
11697cat confdefs.h >>conftest.$ac_ext
11698cat >>conftest.$ac_ext <<_ACEOF
11699/* end confdefs.h. */
11700
11701int
11702main ()
11703{
11704
11705 ;
11706 return 0;
11707}
11708_ACEOF
11709rm -f conftest.$ac_objext
11710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11711 (eval $ac_compile) 2>conftest.er1
11712 ac_status=$?
11713 grep -v '^ *+' conftest.er1 >conftest.err
11714 rm -f conftest.er1
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
9dd0f6c2 11718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; } &&
11724 { ac_try='test -s conftest.$ac_objext'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
11730 ac_cv_prog_cc_g=yes
11731else
11732 echo "$as_me: failed program was:" >&5
11733sed 's/^/| /' conftest.$ac_ext >&5
11734
11735ac_cv_prog_cc_g=no
11736fi
11737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11738fi
11739echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11740echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11741if test "$ac_test_CFLAGS" = set; then
11742 CFLAGS=$ac_save_CFLAGS
11743elif test $ac_cv_prog_cc_g = yes; then
11744 if test "$GCC" = yes; then
11745 CFLAGS="-g -O2"
11746 else
11747 CFLAGS="-g"
11748 fi
11749else
11750 if test "$GCC" = yes; then
11751 CFLAGS="-O2"
11752 else
11753 CFLAGS=
11754 fi
11755fi
6dcfc289
DE
11756 fi
11757 ac_ext=c
95986553
DE
11758ac_cpp='$CPP $CPPFLAGS'
11759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11761ac_compiler_gnu=$ac_cv_c_compiler_gnu
11762
11763echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11764echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11765if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11767else
11768 cat >conftest.$ac_ext <<_ACEOF
11769/* confdefs.h. */
11770_ACEOF
11771cat confdefs.h >>conftest.$ac_ext
11772cat >>conftest.$ac_ext <<_ACEOF
11773/* end confdefs.h. */
11774
11775int
11776main ()
11777{
11778#ifndef __MWERKS__
11779 choke me
11780#endif
11781
11782 ;
11783 return 0;
11784}
11785_ACEOF
11786rm -f conftest.$ac_objext
11787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11788 (eval $ac_compile) 2>conftest.er1
11789 ac_status=$?
11790 grep -v '^ *+' conftest.er1 >conftest.err
11791 rm -f conftest.er1
11792 cat conftest.err >&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } &&
9dd0f6c2 11795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; } &&
11801 { ac_try='test -s conftest.$ac_objext'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
11807 bakefile_compiler_mwerks=yes
11808else
11809 echo "$as_me: failed program was:" >&5
11810sed 's/^/| /' conftest.$ac_ext >&5
11811
11812bakefile_compiler_mwerks=no
11813fi
11814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11815 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11816
11817fi
11818echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11819echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11820
0e6fa1d9 11821MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11822ac_ext=c
11823ac_cpp='$CPP $CPPFLAGS'
11824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11826ac_compiler_gnu=$ac_cv_c_compiler_gnu
11827
11828
6dcfc289 11829 ac_ext=c
9273ffba
DE
11830ac_cpp='$CPP $CPPFLAGS'
11831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11833ac_compiler_gnu=$ac_cv_c_compiler_gnu
11834
11835echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11836echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11837if test "${wx_cv_c_compiler_xlc+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11839else
11840 cat >conftest.$ac_ext <<_ACEOF
11841/* confdefs.h. */
11842_ACEOF
11843cat confdefs.h >>conftest.$ac_ext
11844cat >>conftest.$ac_ext <<_ACEOF
11845/* end confdefs.h. */
11846
11847int
11848main ()
11849{
11850#ifndef __xlC__
11851 choke me
11852#endif
11853
11854 ;
11855 return 0;
11856}
11857_ACEOF
11858rm -f conftest.$ac_objext
11859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11860 (eval $ac_compile) 2>conftest.er1
11861 ac_status=$?
11862 grep -v '^ *+' conftest.er1 >conftest.err
11863 rm -f conftest.er1
11864 cat conftest.err >&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } &&
9dd0f6c2 11867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11870 ac_status=$?
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; } &&
11873 { ac_try='test -s conftest.$ac_objext'
11874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11876 ac_status=$?
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; }; then
11879 wx_compiler_xlc=yes
11880else
11881 echo "$as_me: failed program was:" >&5
11882sed 's/^/| /' conftest.$ac_ext >&5
11883
11884wx_compiler_xlc=no
11885fi
11886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11887 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11888
11889fi
11890echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11891echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11892
0e6fa1d9 11893XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11894ac_ext=c
11895ac_cpp='$CPP $CPPFLAGS'
11896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11898ac_compiler_gnu=$ac_cv_c_compiler_gnu
11899
11900
a848cd7e 11901
6dcfc289 11902
a848cd7e
SC
11903ac_ext=c
11904ac_cpp='$CPP $CPPFLAGS'
11905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11907ac_compiler_gnu=$ac_cv_c_compiler_gnu
11908echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11909echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11910# On Suns, sometimes $CPP names a directory.
11911if test -n "$CPP" && test -d "$CPP"; then
11912 CPP=
11913fi
11914if test -z "$CPP"; then
11915 if test "${ac_cv_prog_CPP+set}" = set; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11917else
11918 # Double quotes because CPP needs to be expanded
11919 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11920 do
11921 ac_preproc_ok=false
11922for ac_c_preproc_warn_flag in '' yes
11923do
11924 # Use a header file that comes with gcc, so configuring glibc
11925 # with a fresh cross-compiler works.
11926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11927 # <limits.h> exists even on freestanding compilers.
11928 # On the NeXT, cc -E runs the code through the compiler's parser,
11929 # not just through cpp. "Syntax error" is here to catch this case.
11930 cat >conftest.$ac_ext <<_ACEOF
11931/* confdefs.h. */
11932_ACEOF
11933cat confdefs.h >>conftest.$ac_ext
11934cat >>conftest.$ac_ext <<_ACEOF
11935/* end confdefs.h. */
11936#ifdef __STDC__
11937# include <limits.h>
11938#else
11939# include <assert.h>
11940#endif
ac1cb8d3 11941 Syntax error
a848cd7e
SC
11942_ACEOF
11943if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11945 ac_status=$?
11946 grep -v '^ *+' conftest.er1 >conftest.err
11947 rm -f conftest.er1
11948 cat conftest.err >&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } >/dev/null; then
11951 if test -s conftest.err; then
11952 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11954 else
11955 ac_cpp_err=
11956 fi
11957else
11958 ac_cpp_err=yes
11959fi
11960if test -z "$ac_cpp_err"; then
11961 :
11962else
11963 echo "$as_me: failed program was:" >&5
11964sed 's/^/| /' conftest.$ac_ext >&5
11965
11966 # Broken: fails on valid input.
11967continue
11968fi
11969rm -f conftest.err conftest.$ac_ext
11970
11971 # OK, works on sane cases. Now check whether non-existent headers
11972 # can be detected and how.
11973 cat >conftest.$ac_ext <<_ACEOF
11974/* confdefs.h. */
11975_ACEOF
11976cat confdefs.h >>conftest.$ac_ext
11977cat >>conftest.$ac_ext <<_ACEOF
11978/* end confdefs.h. */
11979#include <ac_nonexistent.h>
11980_ACEOF
11981if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11983 ac_status=$?
11984 grep -v '^ *+' conftest.er1 >conftest.err
11985 rm -f conftest.er1
11986 cat conftest.err >&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } >/dev/null; then
11989 if test -s conftest.err; then
11990 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11992 else
11993 ac_cpp_err=
11994 fi
11995else
11996 ac_cpp_err=yes
11997fi
11998if test -z "$ac_cpp_err"; then
11999 # Broken: success on invalid input.
12000continue
12001else
12002 echo "$as_me: failed program was:" >&5
12003sed 's/^/| /' conftest.$ac_ext >&5
12004
12005 # Passes both tests.
12006ac_preproc_ok=:
12007break
12008fi
12009rm -f conftest.err conftest.$ac_ext
12010
12011done
12012# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12013rm -f conftest.err conftest.$ac_ext
12014if $ac_preproc_ok; then
12015 break
12016fi
12017
12018 done
12019 ac_cv_prog_CPP=$CPP
12020
12021fi
12022 CPP=$ac_cv_prog_CPP
12023else
12024 ac_cv_prog_CPP=$CPP
12025fi
12026echo "$as_me:$LINENO: result: $CPP" >&5
12027echo "${ECHO_T}$CPP" >&6
12028ac_preproc_ok=false
12029for ac_c_preproc_warn_flag in '' yes
12030do
12031 # Use a header file that comes with gcc, so configuring glibc
12032 # with a fresh cross-compiler works.
12033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12034 # <limits.h> exists even on freestanding compilers.
12035 # On the NeXT, cc -E runs the code through the compiler's parser,
12036 # not just through cpp. "Syntax error" is here to catch this case.
12037 cat >conftest.$ac_ext <<_ACEOF
12038/* confdefs.h. */
12039_ACEOF
12040cat confdefs.h >>conftest.$ac_ext
12041cat >>conftest.$ac_ext <<_ACEOF
12042/* end confdefs.h. */
12043#ifdef __STDC__
12044# include <limits.h>
12045#else
12046# include <assert.h>
12047#endif
ac1cb8d3 12048 Syntax error
a848cd7e
SC
12049_ACEOF
12050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12052 ac_status=$?
12053 grep -v '^ *+' conftest.er1 >conftest.err
12054 rm -f conftest.er1
12055 cat conftest.err >&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } >/dev/null; then
12058 if test -s conftest.err; then
12059 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12061 else
12062 ac_cpp_err=
12063 fi
12064else
12065 ac_cpp_err=yes
12066fi
12067if test -z "$ac_cpp_err"; then
12068 :
12069else
12070 echo "$as_me: failed program was:" >&5
12071sed 's/^/| /' conftest.$ac_ext >&5
12072
12073 # Broken: fails on valid input.
12074continue
12075fi
12076rm -f conftest.err conftest.$ac_ext
12077
12078 # OK, works on sane cases. Now check whether non-existent headers
12079 # can be detected and how.
12080 cat >conftest.$ac_ext <<_ACEOF
12081/* confdefs.h. */
12082_ACEOF
12083cat confdefs.h >>conftest.$ac_ext
12084cat >>conftest.$ac_ext <<_ACEOF
12085/* end confdefs.h. */
12086#include <ac_nonexistent.h>
12087_ACEOF
12088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12090 ac_status=$?
12091 grep -v '^ *+' conftest.er1 >conftest.err
12092 rm -f conftest.er1
12093 cat conftest.err >&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); } >/dev/null; then
12096 if test -s conftest.err; then
12097 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12099 else
12100 ac_cpp_err=
12101 fi
12102else
12103 ac_cpp_err=yes
12104fi
12105if test -z "$ac_cpp_err"; then
12106 # Broken: success on invalid input.
12107continue
12108else
12109 echo "$as_me: failed program was:" >&5
12110sed 's/^/| /' conftest.$ac_ext >&5
12111
12112 # Passes both tests.
12113ac_preproc_ok=:
12114break
12115fi
12116rm -f conftest.err conftest.$ac_ext
12117
12118done
12119# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12120rm -f conftest.err conftest.$ac_ext
12121if $ac_preproc_ok; then
12122 :
12123else
12124 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12125See \`config.log' for more details." >&5
12126echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12127See \`config.log' for more details." >&2;}
12128 { (exit 1); exit 1; }; }
12129fi
12130
12131ac_ext=c
12132ac_cpp='$CPP $CPPFLAGS'
12133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12135ac_compiler_gnu=$ac_cv_c_compiler_gnu
12136
12137
12138echo "$as_me:$LINENO: checking for egrep" >&5
12139echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12140if test "${ac_cv_prog_egrep+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12142else
12143 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12144 then ac_cv_prog_egrep='grep -E'
12145 else ac_cv_prog_egrep='egrep'
12146 fi
12147fi
12148echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12149echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12150 EGREP=$ac_cv_prog_egrep
12151
12152
12153if test $ac_cv_c_compiler_gnu = yes; then
12154 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12155echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12156if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12158else
12159 ac_pattern="Autoconf.*'x'"
12160 cat >conftest.$ac_ext <<_ACEOF
12161/* confdefs.h. */
12162_ACEOF
12163cat confdefs.h >>conftest.$ac_ext
12164cat >>conftest.$ac_ext <<_ACEOF
12165/* end confdefs.h. */
12166#include <sgtty.h>
12167Autoconf TIOCGETP
12168_ACEOF
12169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12170 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12171 ac_cv_prog_gcc_traditional=yes
12172else
12173 ac_cv_prog_gcc_traditional=no
12174fi
12175rm -f conftest*
12176
12177
12178 if test $ac_cv_prog_gcc_traditional = no; then
12179 cat >conftest.$ac_ext <<_ACEOF
12180/* confdefs.h. */
12181_ACEOF
12182cat confdefs.h >>conftest.$ac_ext
12183cat >>conftest.$ac_ext <<_ACEOF
12184/* end confdefs.h. */
12185#include <termio.h>
12186Autoconf TCGETA
12187_ACEOF
12188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12189 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12190 ac_cv_prog_gcc_traditional=yes
12191fi
12192rm -f conftest*
12193
12194 fi
12195fi
12196echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12197echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12198 if test $ac_cv_prog_gcc_traditional = yes; then
12199 CC="$CC -traditional"
12200 fi
12201fi
12202
12203
12204
12205
12206ac_ext=cc
12207ac_cpp='$CXXCPP $CPPFLAGS'
12208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12211
12212
12213CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12214
12215
12216 ac_ext=cc
a848cd7e
SC
12217ac_cpp='$CXXCPP $CPPFLAGS'
12218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12221if test -n "$ac_tool_prefix"; then
12222 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12223 do
12224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12225set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12226echo "$as_me:$LINENO: checking for $ac_word" >&5
12227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12228if test "${ac_cv_prog_CXX+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230else
12231 if test -n "$CXX"; then
12232 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12233else
12234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235for as_dir in $PATH
12236do
12237 IFS=$as_save_IFS
12238 test -z "$as_dir" && as_dir=.
12239 for ac_exec_ext in '' $ac_executable_extensions; do
12240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12241 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12243 break 2
12244 fi
12245done
12246done
12247
12248fi
12249fi
12250CXX=$ac_cv_prog_CXX
12251if test -n "$CXX"; then
12252 echo "$as_me:$LINENO: result: $CXX" >&5
12253echo "${ECHO_T}$CXX" >&6
12254else
12255 echo "$as_me:$LINENO: result: no" >&5
12256echo "${ECHO_T}no" >&6
12257fi
12258
12259 test -n "$CXX" && break
12260 done
12261fi
12262if test -z "$CXX"; then
12263 ac_ct_CXX=$CXX
12264 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12265do
12266 # Extract the first word of "$ac_prog", so it can be a program name with args.
12267set dummy $ac_prog; ac_word=$2
12268echo "$as_me:$LINENO: checking for $ac_word" >&5
12269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12270if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12272else
12273 if test -n "$ac_ct_CXX"; then
12274 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12275else
12276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277for as_dir in $PATH
12278do
12279 IFS=$as_save_IFS
12280 test -z "$as_dir" && as_dir=.
12281 for ac_exec_ext in '' $ac_executable_extensions; do
12282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12283 ac_cv_prog_ac_ct_CXX="$ac_prog"
12284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12285 break 2
12286 fi
12287done
12288done
12289
12290fi
12291fi
12292ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12293if test -n "$ac_ct_CXX"; then
12294 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12295echo "${ECHO_T}$ac_ct_CXX" >&6
12296else
12297 echo "$as_me:$LINENO: result: no" >&5
12298echo "${ECHO_T}no" >&6
12299fi
12300
12301 test -n "$ac_ct_CXX" && break
12302done
12303test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12304
12305 CXX=$ac_ct_CXX
12306fi
12307
12308
12309# Provide some information about the compiler.
12310echo "$as_me:$LINENO:" \
12311 "checking for C++ compiler version" >&5
12312ac_compiler=`set X $ac_compile; echo $2`
12313{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12314 (eval $ac_compiler --version </dev/null >&5) 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }
12318{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12319 (eval $ac_compiler -v </dev/null >&5) 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }
12323{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12324 (eval $ac_compiler -V </dev/null >&5) 2>&5
12325 ac_status=$?
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }
12328
12329echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12330echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12331if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12333else
12334 cat >conftest.$ac_ext <<_ACEOF
12335/* confdefs.h. */
12336_ACEOF
12337cat confdefs.h >>conftest.$ac_ext
12338cat >>conftest.$ac_ext <<_ACEOF
12339/* end confdefs.h. */
12340
12341int
12342main ()
12343{
12344#ifndef __GNUC__
12345 choke me
12346#endif
12347
12348 ;
12349 return 0;
12350}
12351_ACEOF
12352rm -f conftest.$ac_objext
12353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12354 (eval $ac_compile) 2>conftest.er1
a848cd7e 12355 ac_status=$?
ac1cb8d3
VS
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
a848cd7e
SC
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
9dd0f6c2 12361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363 (eval $ac_try) 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; } &&
12367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12370 ac_status=$?
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; }; then
12373 ac_compiler_gnu=yes
12374else
12375 echo "$as_me: failed program was:" >&5
12376sed 's/^/| /' conftest.$ac_ext >&5
12377
12378ac_compiler_gnu=no
12379fi
ac1cb8d3 12380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12381ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12382
12383fi
12384echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12385echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12386GXX=`test $ac_compiler_gnu = yes && echo yes`
12387ac_test_CXXFLAGS=${CXXFLAGS+set}
12388ac_save_CXXFLAGS=$CXXFLAGS
12389CXXFLAGS="-g"
12390echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12391echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12392if test "${ac_cv_prog_cxx_g+set}" = set; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12394else
12395 cat >conftest.$ac_ext <<_ACEOF
12396/* confdefs.h. */
12397_ACEOF
12398cat confdefs.h >>conftest.$ac_ext
12399cat >>conftest.$ac_ext <<_ACEOF
12400/* end confdefs.h. */
12401
12402int
12403main ()
12404{
12405
12406 ;
12407 return 0;
12408}
12409_ACEOF
12410rm -f conftest.$ac_objext
12411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12412 (eval $ac_compile) 2>conftest.er1
a848cd7e 12413 ac_status=$?
ac1cb8d3
VS
12414 grep -v '^ *+' conftest.er1 >conftest.err
12415 rm -f conftest.er1
12416 cat conftest.err >&5
a848cd7e
SC
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } &&
9dd0f6c2 12419 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12422 ac_status=$?
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; } &&
12425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12428 ac_status=$?
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; }; then
12431 ac_cv_prog_cxx_g=yes
12432else
12433 echo "$as_me: failed program was:" >&5
12434sed 's/^/| /' conftest.$ac_ext >&5
12435
12436ac_cv_prog_cxx_g=no
12437fi
ac1cb8d3 12438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12439fi
12440echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12441echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12442if test "$ac_test_CXXFLAGS" = set; then
12443 CXXFLAGS=$ac_save_CXXFLAGS
12444elif test $ac_cv_prog_cxx_g = yes; then
12445 if test "$GXX" = yes; then
52ada004 12446 CXXFLAGS="-g -O2"
a848cd7e 12447 else
52ada004 12448 CXXFLAGS="-g"
a848cd7e
SC
12449 fi
12450else
12451 if test "$GXX" = yes; then
12452 CXXFLAGS="-O2"
12453 else
12454 CXXFLAGS=
12455 fi
12456fi
12457for ac_declaration in \
ac1cb8d3 12458 '' \
a848cd7e
SC
12459 'extern "C" void std::exit (int) throw (); using std::exit;' \
12460 'extern "C" void std::exit (int); using std::exit;' \
12461 'extern "C" void exit (int) throw ();' \
12462 'extern "C" void exit (int);' \
12463 'void exit (int);'
12464do
12465 cat >conftest.$ac_ext <<_ACEOF
12466/* confdefs.h. */
12467_ACEOF
12468cat confdefs.h >>conftest.$ac_ext
12469cat >>conftest.$ac_ext <<_ACEOF
12470/* end confdefs.h. */
de59c161 12471$ac_declaration
ac1cb8d3 12472#include <stdlib.h>
a848cd7e
SC
12473int
12474main ()
12475{
12476exit (42);
12477 ;
12478 return 0;
12479}
12480_ACEOF
12481rm -f conftest.$ac_objext
12482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12483 (eval $ac_compile) 2>conftest.er1
a848cd7e 12484 ac_status=$?
ac1cb8d3
VS
12485 grep -v '^ *+' conftest.er1 >conftest.err
12486 rm -f conftest.er1
12487 cat conftest.err >&5
a848cd7e
SC
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
9dd0f6c2 12490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12493 ac_status=$?
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; } &&
12496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12499 ac_status=$?
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
12502 :
12503else
12504 echo "$as_me: failed program was:" >&5
12505sed 's/^/| /' conftest.$ac_ext >&5
12506
12507continue
12508fi
ac1cb8d3 12509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12510 cat >conftest.$ac_ext <<_ACEOF
12511/* confdefs.h. */
12512_ACEOF
12513cat confdefs.h >>conftest.$ac_ext
12514cat >>conftest.$ac_ext <<_ACEOF
12515/* end confdefs.h. */
12516$ac_declaration
12517int
12518main ()
12519{
12520exit (42);
12521 ;
12522 return 0;
12523}
12524_ACEOF
12525rm -f conftest.$ac_objext
12526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12527 (eval $ac_compile) 2>conftest.er1
a848cd7e 12528 ac_status=$?
ac1cb8d3
VS
12529 grep -v '^ *+' conftest.er1 >conftest.err
12530 rm -f conftest.er1
12531 cat conftest.err >&5
a848cd7e
SC
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } &&
9dd0f6c2 12534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
12546 break
12547else
12548 echo "$as_me: failed program was:" >&5
12549sed 's/^/| /' conftest.$ac_ext >&5
12550
12551fi
ac1cb8d3 12552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12553done
12554rm -f conftest*
12555if test -n "$ac_declaration"; then
12556 echo '#ifdef __cplusplus' >>confdefs.h
12557 echo $ac_declaration >>confdefs.h
12558 echo '#endif' >>confdefs.h
12559fi
12560
12561ac_ext=cc
12562ac_cpp='$CXXCPP $CPPFLAGS'
12563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12566
6dcfc289 12567 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12568echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12569if test "${wx_cv_cxx_exto+set}" = set; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12571else
12572 cat >conftest.$ac_ext <<_ACEOF
12573/* confdefs.h. */
12574_ACEOF
12575cat confdefs.h >>conftest.$ac_ext
12576cat >>conftest.$ac_ext <<_ACEOF
12577/* end confdefs.h. */
12578
12579int
12580main ()
12581{
12582
12583 ;
12584 return 0;
12585}
12586_ACEOF
12587rm -f conftest.$ac_objext conftest.$ac_ext.o
12588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12589 (eval $ac_compile) 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; then
12593 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12594 case $ac_file in
12595 conftest.$ac_ext.o)
12596 wx_cv_cxx_exto="-ext o"
12597 ;;
12598 *)
12599 ;;
12600 esac
12601done
12602else
12603 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12604See \`config.log' for more details." >&5
12605echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12606See \`config.log' for more details." >&2;}
12607 { (exit 1); exit 1; }; }
12608
12609fi
12610
12611rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12612
12613fi
12614echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12615echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12616if test "x$wx_cv_cxx_exto" '!=' "x"; then
12617 if test "cxx" = "c"; then
12618 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12619 fi
12620 if test "cxx" = "cxx"; then
12621 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12622 fi
12623fi
12624
6dcfc289
DE
12625 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12626 unset ac_cv_prog_cxx_g
12627 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12628ac_save_CXXFLAGS=$CXXFLAGS
12629CXXFLAGS="-g"
12630echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12631echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12632if test "${ac_cv_prog_cxx_g+set}" = set; then
12633 echo $ECHO_N "(cached) $ECHO_C" >&6
12634else
12635 cat >conftest.$ac_ext <<_ACEOF
12636/* confdefs.h. */
12637_ACEOF
12638cat confdefs.h >>conftest.$ac_ext
12639cat >>conftest.$ac_ext <<_ACEOF
12640/* end confdefs.h. */
12641
12642int
12643main ()
12644{
12645
12646 ;
12647 return 0;
12648}
12649_ACEOF
12650rm -f conftest.$ac_objext
12651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12652 (eval $ac_compile) 2>conftest.er1
12653 ac_status=$?
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -f conftest.er1
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } &&
9dd0f6c2 12659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661 (eval $ac_try) 2>&5
12662 ac_status=$?
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; } &&
12665 { ac_try='test -s conftest.$ac_objext'
12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667 (eval $ac_try) 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; }; then
12671 ac_cv_prog_cxx_g=yes
12672else
12673 echo "$as_me: failed program was:" >&5
12674sed 's/^/| /' conftest.$ac_ext >&5
12675
12676ac_cv_prog_cxx_g=no
12677fi
12678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12679fi
12680echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12681echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12682if test "$ac_test_CXXFLAGS" = set; then
12683 CXXFLAGS=$ac_save_CXXFLAGS
12684elif test $ac_cv_prog_cxx_g = yes; then
12685 if test "$GXX" = yes; then
52ada004 12686 CXXFLAGS="-g -O2"
480ccd21 12687 else
52ada004 12688 CXXFLAGS="-g"
480ccd21
DE
12689 fi
12690else
12691 if test "$GXX" = yes; then
12692 CXXFLAGS="-O2"
12693 else
12694 CXXFLAGS=
12695 fi
12696fi
6dcfc289
DE
12697 fi
12698 ac_ext=cc
95986553
DE
12699ac_cpp='$CXXCPP $CPPFLAGS'
12700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12703
12704echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12705echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12706if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12708else
12709 cat >conftest.$ac_ext <<_ACEOF
12710/* confdefs.h. */
12711_ACEOF
12712cat confdefs.h >>conftest.$ac_ext
12713cat >>conftest.$ac_ext <<_ACEOF
12714/* end confdefs.h. */
12715
12716int
12717main ()
12718{
12719#ifndef __MWERKS__
12720 choke me
12721#endif
12722
12723 ;
12724 return 0;
12725}
12726_ACEOF
12727rm -f conftest.$ac_objext
12728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729 (eval $ac_compile) 2>conftest.er1
12730 ac_status=$?
12731 grep -v '^ *+' conftest.er1 >conftest.err
12732 rm -f conftest.er1
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
9dd0f6c2 12736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; } &&
12742 { ac_try='test -s conftest.$ac_objext'
12743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744 (eval $ac_try) 2>&5
12745 ac_status=$?
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; }; then
12748 bakefile_compiler_mwerks=yes
12749else
12750 echo "$as_me: failed program was:" >&5
12751sed 's/^/| /' conftest.$ac_ext >&5
12752
12753bakefile_compiler_mwerks=no
12754fi
12755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12756 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12757
12758fi
12759echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12760echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12761
0e6fa1d9 12762MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12763ac_ext=cc
12764ac_cpp='$CXXCPP $CPPFLAGS'
12765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12768
12769
6dcfc289 12770 ac_ext=cc
9273ffba
DE
12771ac_cpp='$CXXCPP $CPPFLAGS'
12772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12775
12776echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12777echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12778if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12780else
12781 cat >conftest.$ac_ext <<_ACEOF
12782/* confdefs.h. */
12783_ACEOF
12784cat confdefs.h >>conftest.$ac_ext
12785cat >>conftest.$ac_ext <<_ACEOF
12786/* end confdefs.h. */
12787
12788int
12789main ()
12790{
12791#ifndef __xlC__
12792 choke me
12793#endif
12794
12795 ;
12796 return 0;
12797}
12798_ACEOF
12799rm -f conftest.$ac_objext
12800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801 (eval $ac_compile) 2>conftest.er1
12802 ac_status=$?
12803 grep -v '^ *+' conftest.er1 >conftest.err
12804 rm -f conftest.er1
12805 cat conftest.err >&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } &&
9dd0f6c2 12808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; } &&
12814 { ac_try='test -s conftest.$ac_objext'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12820 wx_compiler_xlc=yes
12821else
12822 echo "$as_me: failed program was:" >&5
12823sed 's/^/| /' conftest.$ac_ext >&5
12824
12825wx_compiler_xlc=no
12826fi
12827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12828 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12829
12830fi
12831echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12832echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12833
0e6fa1d9 12834XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12835ac_ext=cc
12836ac_cpp='$CXXCPP $CPPFLAGS'
12837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12840
12841
95986553 12842
6dcfc289 12843
a848cd7e
SC
12844ac_ext=c
12845ac_cpp='$CPP $CPPFLAGS'
12846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12848ac_compiler_gnu=$ac_cv_c_compiler_gnu
12849
12850
a848cd7e
SC
12851if test -n "$ac_tool_prefix"; then
12852 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12853set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12854echo "$as_me:$LINENO: checking for $ac_word" >&5
12855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12856if test "${ac_cv_prog_RANLIB+set}" = set; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12858else
12859 if test -n "$RANLIB"; then
12860 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12861else
12862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12863for as_dir in $PATH
12864do
12865 IFS=$as_save_IFS
12866 test -z "$as_dir" && as_dir=.
12867 for ac_exec_ext in '' $ac_executable_extensions; do
12868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12869 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12871 break 2
12872 fi
12873done
12874done
12875
12876fi
12877fi
12878RANLIB=$ac_cv_prog_RANLIB
12879if test -n "$RANLIB"; then
12880 echo "$as_me:$LINENO: result: $RANLIB" >&5
12881echo "${ECHO_T}$RANLIB" >&6
12882else
12883 echo "$as_me:$LINENO: result: no" >&5
12884echo "${ECHO_T}no" >&6
12885fi
12886
12887fi
12888if test -z "$ac_cv_prog_RANLIB"; then
12889 ac_ct_RANLIB=$RANLIB
12890 # Extract the first word of "ranlib", so it can be a program name with args.
12891set dummy ranlib; ac_word=$2
12892echo "$as_me:$LINENO: checking for $ac_word" >&5
12893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12894if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12895 echo $ECHO_N "(cached) $ECHO_C" >&6
12896else
12897 if test -n "$ac_ct_RANLIB"; then
12898 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12899else
12900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901for as_dir in $PATH
12902do
12903 IFS=$as_save_IFS
12904 test -z "$as_dir" && as_dir=.
12905 for ac_exec_ext in '' $ac_executable_extensions; do
12906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12907 ac_cv_prog_ac_ct_RANLIB="ranlib"
12908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12909 break 2
12910 fi
12911done
12912done
12913
12914 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12915fi
12916fi
12917ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12918if test -n "$ac_ct_RANLIB"; then
12919 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12920echo "${ECHO_T}$ac_ct_RANLIB" >&6
12921else
12922 echo "$as_me:$LINENO: result: no" >&5
12923echo "${ECHO_T}no" >&6
12924fi
12925
12926 RANLIB=$ac_ct_RANLIB
12927else
12928 RANLIB="$ac_cv_prog_RANLIB"
12929fi
12930
12931
12932# Extract the first word of "ar", so it can be a program name with args.
12933set dummy ar; ac_word=$2
12934echo "$as_me:$LINENO: checking for $ac_word" >&5
12935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12936if test "${ac_cv_prog_AR+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12938else
12939 if test -n "$AR"; then
12940 ac_cv_prog_AR="$AR" # Let the user override the test.
12941else
12942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943for as_dir in $PATH
12944do
12945 IFS=$as_save_IFS
12946 test -z "$as_dir" && as_dir=.
12947 for ac_exec_ext in '' $ac_executable_extensions; do
12948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12949 ac_cv_prog_AR="ar"
12950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12951 break 2
12952 fi
12953done
12954done
12955
12956fi
12957fi
12958AR=$ac_cv_prog_AR
12959if test -n "$AR"; then
12960 echo "$as_me:$LINENO: result: $AR" >&5
12961echo "${ECHO_T}$AR" >&6
12962else
12963 echo "$as_me:$LINENO: result: no" >&5
12964echo "${ECHO_T}no" >&6
12965fi
12966
12967if test "x$AR" = "x" ; then
77ffb593
JS
12968 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12969echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12970 { (exit 1); exit 1; }; }
12971fi
12972
12973# Find a good install program. We prefer a C program (faster),
12974# so one script is as good as another. But avoid the broken or
12975# incompatible versions:
12976# SysV /etc/install, /usr/sbin/install
12977# SunOS /usr/etc/install
12978# IRIX /sbin/install
12979# AIX /bin/install
12980# AmigaOS /C/install, which installs bootblocks on floppy discs
12981# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12982# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12983# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12984# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12985# ./install, which can be erroneously created by make from ./install.sh.
12986echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12987echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12988if test -z "$INSTALL"; then
12989if test "${ac_cv_path_install+set}" = set; then
12990 echo $ECHO_N "(cached) $ECHO_C" >&6
12991else
12992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12993for as_dir in $PATH
12994do
12995 IFS=$as_save_IFS
12996 test -z "$as_dir" && as_dir=.
12997 # Account for people who put trailing slashes in PATH elements.
12998case $as_dir/ in
12999 ./ | .// | /cC/* | \
13000 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13001 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13002 /usr/ucb/* ) ;;
13003 *)
13004 # OSF1 and SCO ODT 3.0 have their own names for install.
13005 # Don't use installbsd from OSF since it installs stuff as root
13006 # by default.
13007 for ac_prog in ginstall scoinst install; do
13008 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13009 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13010 if test $ac_prog = install &&
13011 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13012 # AIX install. It has an incompatible calling convention.
13013 :
13014 elif test $ac_prog = install &&
13015 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13016 # program-specific install script used by HP pwplus--don't use.
13017 :
13018 else
13019 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13020 break 3
13021 fi
13022 fi
a848cd7e
SC
13023 done
13024 done
13025 ;;
13026esac
13027done
13028
13029
13030fi
13031 if test "${ac_cv_path_install+set}" = set; then
13032 INSTALL=$ac_cv_path_install
13033 else
13034 # As a last resort, use the slow shell script. We don't cache a
13035 # path for INSTALL within a source directory, because that will
13036 # break other packages using the cache if that directory is
13037 # removed, or if the path is relative.
13038 INSTALL=$ac_install_sh
13039 fi
13040fi
13041echo "$as_me:$LINENO: result: $INSTALL" >&5
13042echo "${ECHO_T}$INSTALL" >&6
13043
13044# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13045# It thinks the first close brace ends the variable substitution.
13046test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13047
13048test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13049
13050test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13051
13052
13053case ${INSTALL} in
13054 /* ) # Absolute
13055 ;;
13056 ?:* ) # Drive letter, considered as absolute.
13057 ;;
13058 *)
13059 INSTALL=`pwd`/${INSTALL} ;;
13060esac
13061
a848cd7e
SC
13062
13063case "${host}" in
13064
13065 powerpc-*-darwin* )
13066 INSTALL_PROGRAM="cp -fp"
13067 INSTALL_DATA="cp -fp"
13068 ;;
13069 *)
13070 ;;
13071esac
13072
13073# Extract the first word of "strip", so it can be a program name with args.
13074set dummy strip; ac_word=$2
13075echo "$as_me:$LINENO: checking for $ac_word" >&5
13076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13077if test "${ac_cv_prog_STRIP+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13079else
13080 if test -n "$STRIP"; then
13081 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13082else
13083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13084for as_dir in $PATH
13085do
13086 IFS=$as_save_IFS
13087 test -z "$as_dir" && as_dir=.
13088 for ac_exec_ext in '' $ac_executable_extensions; do
13089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13090 ac_cv_prog_STRIP="strip"
13091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13092 break 2
13093 fi
13094done
13095done
13096
13097 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13098fi
13099fi
13100STRIP=$ac_cv_prog_STRIP
13101if test -n "$STRIP"; then
13102 echo "$as_me:$LINENO: result: $STRIP" >&5
13103echo "${ECHO_T}$STRIP" >&6
13104else
13105 echo "$as_me:$LINENO: result: no" >&5
13106echo "${ECHO_T}no" >&6
13107fi
13108
13109
13110echo "$as_me:$LINENO: checking if make is GNU make" >&5
13111echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13112if test "${wx_cv_prog_makeisgnu+set}" = set; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6
13114else
13115
13116 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13117 egrep -s GNU > /dev/null); then
13118 wx_cv_prog_makeisgnu="yes"
13119 else
13120 wx_cv_prog_makeisgnu="no"
13121 fi
13122
13123fi
13124echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13125echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13126
13127if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13128 IF_GNU_MAKE=""
13129else
13130 IF_GNU_MAKE="#"
13131fi
13132
13133
13134
13135if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13136echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13137echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13138if test "${wx_cv_prog_makevpath+set}" = set; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13140else
13141
13142cat - << EOF > confMake
13143check : file
13144 cp \$? \$@
13145 cp \$? final_file
13146EOF
13147
13148if test ! -d sub ; then
13149 mkdir sub
13150fi
13151echo dummy > sub/file
13152${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13153RESULT=$?
13154rm -f sub/file check final_file confMake
13155rmdir sub
13156if test "$RESULT" = 0; then
13157 wx_cv_prog_makevpath="yes"
13158else
13159 wx_cv_prog_makevpath="no"
13160fi
13161
13162fi
13163echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13164echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13165
13166if test "x$wx_cv_prog_makevpath" != "xyes"; then
13167{ { echo "$as_me:$LINENO: error:
13168You need a make-utility that is able to use the variable
13169VPATH correctly.
13170If your version of make does not support VPATH correctly,
13171please install GNU-make (possibly as gmake), and start
13172configure with the following command:
13173export MAKE=gmake; ./configure for sh-type shells
13174setenv MAKE gmake; ./configure for csh-type shells
13175Also please do remember to use gmake in this case every time
13176you are trying to compile.
13177" >&5
13178echo "$as_me: error:
13179You need a make-utility that is able to use the variable
13180VPATH correctly.
13181If your version of make does not support VPATH correctly,
13182please install GNU-make (possibly as gmake), and start
13183configure with the following command:
13184export MAKE=gmake; ./configure for sh-type shells
13185setenv MAKE gmake; ./configure for csh-type shells
13186Also please do remember to use gmake in this case every time
13187you are trying to compile.
13188" >&2;}
13189 { (exit 1); exit 1; }; }
13190fi fi
13191echo "$as_me:$LINENO: checking whether ln -s works" >&5
13192echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13193LN_S=$as_ln_s
13194if test "$LN_S" = "ln -s"; then
13195 echo "$as_me:$LINENO: result: yes" >&5
13196echo "${ECHO_T}yes" >&6
13197else
13198 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13199echo "${ECHO_T}no, using $LN_S" >&6
13200fi
13201
13202
13203
9273ffba
DE
13204if test "x$XLCXX" = "xyes"; then
13205 CXXFLAGS="$CXXFLAGS -qunique"
13206fi
13207
13208
4d7ec9f1
DE
13209case "${host}" in
13210 powerpc-*-darwin* )
13211 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13212echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13213 cat >conftest.$ac_ext <<_ACEOF
13214/* confdefs.h. */
13215_ACEOF
13216cat confdefs.h >>conftest.$ac_ext
13217cat >>conftest.$ac_ext <<_ACEOF
13218/* end confdefs.h. */
13219
13220int
13221main ()
13222{
13223#ifndef __POWERPC__
13224 choke me for lack of PowerPC
13225#endif
13226
13227 ;
13228 return 0;
13229}
13230_ACEOF
13231rm -f conftest.$ac_objext
13232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13233 (eval $ac_compile) 2>conftest.er1
13234 ac_status=$?
13235 grep -v '^ *+' conftest.er1 >conftest.err
13236 rm -f conftest.er1
13237 cat conftest.err >&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } &&
9dd0f6c2 13240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242 (eval $ac_try) 2>&5
13243 ac_status=$?
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }; } &&
13246 { ac_try='test -s conftest.$ac_objext'
13247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248 (eval $ac_try) 2>&5
13249 ac_status=$?
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; }; then
13252 echo "$as_me:$LINENO: result: yes" >&5
13253echo "${ECHO_T}yes" >&6
13254else
13255 echo "$as_me: failed program was:" >&5
13256sed 's/^/| /' conftest.$ac_ext >&5
13257
13258echo "$as_me:$LINENO: result: no" >&5
13259echo "${ECHO_T}no" >&6
13260 cat >>confdefs.h <<\_ACEOF
13261#define __POWERPC__ 1
13262_ACEOF
13263
13264
13265fi
13266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13267 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13268echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13269 cat >conftest.$ac_ext <<_ACEOF
13270/* confdefs.h. */
13271_ACEOF
13272cat confdefs.h >>conftest.$ac_ext
13273cat >>conftest.$ac_ext <<_ACEOF
13274/* end confdefs.h. */
13275#include <CoreFoundation/CFBase.h>
13276
13277int
13278main ()
13279{
13280
13281 ;
13282 return 0;
13283}
13284_ACEOF
13285rm -f conftest.$ac_objext
13286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13287 (eval $ac_compile) 2>conftest.er1
13288 ac_status=$?
13289 grep -v '^ *+' conftest.er1 >conftest.err
13290 rm -f conftest.er1
13291 cat conftest.err >&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
9dd0f6c2 13294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13297 ac_status=$?
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; } &&
13300 { ac_try='test -s conftest.$ac_objext'
13301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302 (eval $ac_try) 2>&5
13303 ac_status=$?
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; }; then
13306 echo "$as_me:$LINENO: result: yes" >&5
13307echo "${ECHO_T}yes" >&6
13308else
13309 echo "$as_me: failed program was:" >&5
13310sed 's/^/| /' conftest.$ac_ext >&5
13311
13312echo "$as_me:$LINENO: result: no" >&5
13313echo "${ECHO_T}no" >&6
13314 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13315echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13316 cat >conftest.$ac_ext <<_ACEOF
13317/* confdefs.h. */
13318_ACEOF
13319cat confdefs.h >>conftest.$ac_ext
13320cat >>conftest.$ac_ext <<_ACEOF
13321/* end confdefs.h. */
13322#define __CF_USE_FRAMEWORK_INCLUDES__
13323#include <CoreFoundation/CFBase.h>
13324
13325int
13326main ()
13327{
13328
13329 ;
13330 return 0;
13331}
13332_ACEOF
13333rm -f conftest.$ac_objext
13334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13335 (eval $ac_compile) 2>conftest.er1
13336 ac_status=$?
13337 grep -v '^ *+' conftest.er1 >conftest.err
13338 rm -f conftest.er1
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } &&
9dd0f6c2 13342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; } &&
13348 { ac_try='test -s conftest.$ac_objext'
13349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350 (eval $ac_try) 2>&5
13351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }; then
13354 echo "$as_me:$LINENO: result: yes" >&5
13355echo "${ECHO_T}yes" >&6
13356 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13357else
13358 echo "$as_me: failed program was:" >&5
13359sed 's/^/| /' conftest.$ac_ext >&5
13360
13361{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13362See \`config.log' for more details." >&5
13363echo "$as_me: error: no. CoreFoundation not available.
13364See \`config.log' for more details." >&2;}
13365 { (exit 1); exit 1; }; }
13366
13367fi
13368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13369
13370
13371fi
13372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13373 ;;
13374esac
13375
a848cd7e
SC
13376case "${host}" in
13377 *-pc-os2_emx | *-pc-os2-emx )
13378 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13379 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13380echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13381if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13382 echo $ECHO_N "(cached) $ECHO_C" >&6
13383else
13384 ac_check_lib_save_LIBS=$LIBS
13385LIBS="-lcExt $LIBS"
13386cat >conftest.$ac_ext <<_ACEOF
13387/* confdefs.h. */
13388_ACEOF
13389cat confdefs.h >>conftest.$ac_ext
13390cat >>conftest.$ac_ext <<_ACEOF
13391/* end confdefs.h. */
13392
13393/* Override any gcc2 internal prototype to avoid an error. */
13394#ifdef __cplusplus
13395extern "C"
13396#endif
13397/* We use char because int might match the return type of a gcc2
13398 builtin and then its argument prototype would still apply. */
13399char drand48 ();
13400int
13401main ()
13402{
13403drand48 ();
13404 ;
13405 return 0;
13406}
13407_ACEOF
13408rm -f conftest.$ac_objext conftest$ac_exeext
13409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13410 (eval $ac_link) 2>conftest.er1
a848cd7e 13411 ac_status=$?
ac1cb8d3
VS
13412 grep -v '^ *+' conftest.er1 >conftest.err
13413 rm -f conftest.er1
13414 cat conftest.err >&5
a848cd7e
SC
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } &&
9dd0f6c2 13417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419 (eval $ac_try) 2>&5
13420 ac_status=$?
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; } &&
13423 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425 (eval $ac_try) 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; }; then
13429 ac_cv_lib_cExt_drand48=yes
13430else
13431 echo "$as_me: failed program was:" >&5
13432sed 's/^/| /' conftest.$ac_ext >&5
13433
13434ac_cv_lib_cExt_drand48=no
13435fi
ac1cb8d3
VS
13436rm -f conftest.err conftest.$ac_objext \
13437 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13438LIBS=$ac_check_lib_save_LIBS
13439fi
13440echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13441echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13442if test $ac_cv_lib_cExt_drand48 = yes; then
13443 LIBS="$LIBS -lcExt"
13444fi
13445
13446 else
13447 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13448 fi
69120ee4
VZ
13449 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13450echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13451if test "${wx_cv_gccversion+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13453else
13454
391a765e
VS
13455 if test "$cross_compiling" = yes; then
13456 wx_cv_gccversion="EMX2"
13457
13458else
13459 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13460/* confdefs.h. */
13461_ACEOF
13462cat confdefs.h >>conftest.$ac_ext
13463cat >>conftest.$ac_ext <<_ACEOF
13464/* end confdefs.h. */
13465
391a765e 13466 #include <stdio.h>
a848cd7e 13467
391a765e
VS
13468 int main()
13469 {
13470 FILE *f=fopen("conftestval", "w");
13471 if (!f) exit(1);
13472 fprintf(f,
a848cd7e 13473 #if (__GNUC__ < 3)
391a765e
VS
13474 "EMX2"
13475 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13476 "EMX3"
13477 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13478 "Innotek5"
13479 #else
13480 "Innotek6"
a848cd7e 13481 #endif
391a765e
VS
13482 );
13483 exit(0);
13484 }
a848cd7e 13485
a848cd7e 13486_ACEOF
391a765e
VS
13487rm -f conftest$ac_exeext
13488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489 (eval $ac_link) 2>&5
ac1cb8d3
VS
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
391a765e 13498 wx_cv_gccversion=`cat conftestval`
a848cd7e 13499else
391a765e
VS
13500 echo "$as_me: program exited with status $ac_status" >&5
13501echo "$as_me: failed program was:" >&5
a848cd7e
SC
13502sed 's/^/| /' conftest.$ac_ext >&5
13503
391a765e
VS
13504( exit $ac_status )
13505wx_cv_gccversion="EMX2"
a848cd7e 13506fi
391a765e 13507rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13508fi
a848cd7e
SC
13509
13510fi
13511echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13512echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13513 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13514 LIBS="$LIBS -lstdcpp"
13515 LDFLAGS="$LDFLAGS -Zsysv-signals"
13516 else
391a765e 13517 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13518 LIBS="$LIBS -lstdcxx"
13519 LDFLAGS="$LDFLAGS -Zsysv-signals"
13520 else
13521 LIBS="$LIBS -lstdc++"
13522 fi
13523 fi
94acd38e
DE
13524 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13525 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13526echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13527 wxUSE_OMF=yes
2da0c077 13528 enable_omf=yes
a848cd7e
SC
13529 fi
13530 ;;
13531 *)
13532
13533
13534
13535 ac_ext=cc
13536ac_cpp='$CXXCPP $CPPFLAGS'
13537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13540
13541
95986553 13542 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13543echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13544if test "${ac_cv_string_strcasecmp+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13546else
13547
13548 cat >conftest.$ac_ext <<_ACEOF
13549/* confdefs.h. */
13550_ACEOF
13551cat confdefs.h >>conftest.$ac_ext
13552cat >>conftest.$ac_ext <<_ACEOF
13553/* end confdefs.h. */
13554
13555 #include <string.h>
13556
13557int
13558main ()
13559{
13560
13561 strcasecmp("foo", "bar");
13562
13563 ;
13564 return 0;
13565}
13566_ACEOF
13567rm -f conftest.$ac_objext conftest$ac_exeext
13568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13569 (eval $ac_link) 2>conftest.er1
a848cd7e 13570 ac_status=$?
ac1cb8d3
VS
13571 grep -v '^ *+' conftest.er1 >conftest.err
13572 rm -f conftest.er1
13573 cat conftest.err >&5
a848cd7e
SC
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } &&
9dd0f6c2 13576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13579 ac_status=$?
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; } &&
13582 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13585 ac_status=$?
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; }; then
13588 ac_cv_string_strcasecmp=yes
13589else
13590 echo "$as_me: failed program was:" >&5
13591sed 's/^/| /' conftest.$ac_ext >&5
13592
13593ac_cv_string_strcasecmp=no
13594
13595fi
ac1cb8d3
VS
13596rm -f conftest.err conftest.$ac_objext \
13597 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13598
13599fi
13600echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13601echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13602
13603 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13604 cat >>confdefs.h <<\_ACEOF
13605#define HAVE_STRCASECMP_IN_STRING_H 1
13606_ACEOF
13607
13608 else
13609 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13610echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13611if test "${ac_cv_strings_strcasecmp+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13613else
13614
13615 cat >conftest.$ac_ext <<_ACEOF
13616/* confdefs.h. */
13617_ACEOF
13618cat confdefs.h >>conftest.$ac_ext
13619cat >>conftest.$ac_ext <<_ACEOF
13620/* end confdefs.h. */
13621
13622 #include <strings.h>
13623
13624int
13625main ()
13626{
13627
13628 strcasecmp("foo", "bar");
13629
13630 ;
13631 return 0;
13632}
13633_ACEOF
13634rm -f conftest.$ac_objext conftest$ac_exeext
13635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13636 (eval $ac_link) 2>conftest.er1
a848cd7e 13637 ac_status=$?
ac1cb8d3
VS
13638 grep -v '^ *+' conftest.er1 >conftest.err
13639 rm -f conftest.er1
13640 cat conftest.err >&5
a848cd7e
SC
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } &&
9dd0f6c2 13643 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; } &&
13649 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; }; then
13655 ac_cv_strings_strcasecmp=yes
13656else
13657 echo "$as_me: failed program was:" >&5
13658sed 's/^/| /' conftest.$ac_ext >&5
13659
13660ac_cv_strings_strcasecmp=no
13661
13662fi
ac1cb8d3
VS
13663rm -f conftest.err conftest.$ac_objext \
13664 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13665
13666fi
13667echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13668echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13669
0c3c69fc 13670 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13671 cat >>confdefs.h <<\_ACEOF
13672#define HAVE_STRCASECMP_IN_STRINGS_H 1
13673_ACEOF
13674
13675 else
13676 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13677echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13678 { (exit 1); exit 1; }; }
13679 fi
13680 fi
13681
13682 ac_ext=c
13683ac_cpp='$CPP $CPPFLAGS'
13684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13686ac_compiler_gnu=$ac_cv_c_compiler_gnu
13687
13688 ;;
13689esac
13690
13691
13692echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13693echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13694if test "${ac_cv_header_stdc+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13696else
13697 cat >conftest.$ac_ext <<_ACEOF
13698/* confdefs.h. */
13699_ACEOF
13700cat confdefs.h >>conftest.$ac_ext
13701cat >>conftest.$ac_ext <<_ACEOF
13702/* end confdefs.h. */
13703#include <stdlib.h>
13704#include <stdarg.h>
13705#include <string.h>
13706#include <float.h>
13707
13708int
13709main ()
13710{
13711
13712 ;
13713 return 0;
13714}
13715_ACEOF
13716rm -f conftest.$ac_objext
13717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13718 (eval $ac_compile) 2>conftest.er1
a848cd7e 13719 ac_status=$?
ac1cb8d3
VS
13720 grep -v '^ *+' conftest.er1 >conftest.err
13721 rm -f conftest.er1
13722 cat conftest.err >&5
a848cd7e
SC
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
9dd0f6c2 13725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13728 ac_status=$?
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 ac_cv_header_stdc=yes
13738else
13739 echo "$as_me: failed program was:" >&5
13740sed 's/^/| /' conftest.$ac_ext >&5
13741
13742ac_cv_header_stdc=no
13743fi
ac1cb8d3 13744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13745
13746if test $ac_cv_header_stdc = yes; then
13747 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13748 cat >conftest.$ac_ext <<_ACEOF
13749/* confdefs.h. */
13750_ACEOF
13751cat confdefs.h >>conftest.$ac_ext
13752cat >>conftest.$ac_ext <<_ACEOF
13753/* end confdefs.h. */
13754#include <string.h>
13755
13756_ACEOF
13757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13758 $EGREP "memchr" >/dev/null 2>&1; then
13759 :
13760else
13761 ac_cv_header_stdc=no
13762fi
13763rm -f conftest*
13764
13765fi
13766
13767if test $ac_cv_header_stdc = yes; then
13768 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13769 cat >conftest.$ac_ext <<_ACEOF
13770/* confdefs.h. */
13771_ACEOF
13772cat confdefs.h >>conftest.$ac_ext
13773cat >>conftest.$ac_ext <<_ACEOF
13774/* end confdefs.h. */
13775#include <stdlib.h>
13776
13777_ACEOF
13778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13779 $EGREP "free" >/dev/null 2>&1; then
13780 :
13781else
13782 ac_cv_header_stdc=no
13783fi
13784rm -f conftest*
13785
13786fi
13787
13788if test $ac_cv_header_stdc = yes; then
13789 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13790 if test "$cross_compiling" = yes; then
13791 :
13792else
13793 cat >conftest.$ac_ext <<_ACEOF
13794/* confdefs.h. */
13795_ACEOF
13796cat confdefs.h >>conftest.$ac_ext
13797cat >>conftest.$ac_ext <<_ACEOF
13798/* end confdefs.h. */
13799#include <ctype.h>
13800#if ((' ' & 0x0FF) == 0x020)
13801# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13802# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13803#else
13804# define ISLOWER(c) \
ac1cb8d3
VS
13805 (('a' <= (c) && (c) <= 'i') \
13806 || ('j' <= (c) && (c) <= 'r') \
13807 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13808# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13809#endif
13810
13811#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13812int
13813main ()
13814{
13815 int i;
13816 for (i = 0; i < 256; i++)
13817 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13818 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13819 exit(2);
13820 exit (0);
13821}
13822_ACEOF
13823rm -f conftest$ac_exeext
13824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13825 (eval $ac_link) 2>&5
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13831 ac_status=$?
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; }; then
13834 :
13835else
13836 echo "$as_me: program exited with status $ac_status" >&5
13837echo "$as_me: failed program was:" >&5
13838sed 's/^/| /' conftest.$ac_ext >&5
13839
13840( exit $ac_status )
13841ac_cv_header_stdc=no
13842fi
ac1cb8d3 13843rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13844fi
13845fi
13846fi
13847echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13848echo "${ECHO_T}$ac_cv_header_stdc" >&6
13849if test $ac_cv_header_stdc = yes; then
13850
13851cat >>confdefs.h <<\_ACEOF
13852#define STDC_HEADERS 1
13853_ACEOF
13854
13855fi
13856
13857# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13868 inttypes.h stdint.h unistd.h
a848cd7e
SC
13869do
13870as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13871echo "$as_me:$LINENO: checking for $ac_header" >&5
13872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13873if eval "test \"\${$as_ac_Header+set}\" = set"; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13875else
13876 cat >conftest.$ac_ext <<_ACEOF
13877/* confdefs.h. */
13878_ACEOF
13879cat confdefs.h >>conftest.$ac_ext
13880cat >>conftest.$ac_ext <<_ACEOF
13881/* end confdefs.h. */
13882$ac_includes_default
13883
13884#include <$ac_header>
13885_ACEOF
13886rm -f conftest.$ac_objext
13887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13888 (eval $ac_compile) 2>conftest.er1
a848cd7e 13889 ac_status=$?
ac1cb8d3
VS
13890 grep -v '^ *+' conftest.er1 >conftest.err
13891 rm -f conftest.er1
13892 cat conftest.err >&5
a848cd7e
SC
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
9dd0f6c2 13895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; } &&
13901 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13904 ac_status=$?
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907 eval "$as_ac_Header=yes"
13908else
13909 echo "$as_me: failed program was:" >&5
13910sed 's/^/| /' conftest.$ac_ext >&5
13911
13912eval "$as_ac_Header=no"
13913fi
ac1cb8d3 13914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13915fi
13916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13917echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13918if test `eval echo '${'$as_ac_Header'}'` = yes; then
13919 cat >>confdefs.h <<_ACEOF
13920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13921_ACEOF
13922
13923fi
13924
13925done
13926
13927
13928
13929for ac_header in stdlib.h
13930do
13931as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13932if eval "test \"\${$as_ac_Header+set}\" = set"; then
13933 echo "$as_me:$LINENO: checking for $ac_header" >&5
13934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13935if eval "test \"\${$as_ac_Header+set}\" = set"; then
13936 echo $ECHO_N "(cached) $ECHO_C" >&6
13937fi
13938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13939echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13940else
13941 # Is the header compilable?
13942echo "$as_me:$LINENO: checking $ac_header usability" >&5
13943echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13944cat >conftest.$ac_ext <<_ACEOF
13945/* confdefs.h. */
13946_ACEOF
13947cat confdefs.h >>conftest.$ac_ext
13948cat >>conftest.$ac_ext <<_ACEOF
13949/* end confdefs.h. */
13950$ac_includes_default
13951#include <$ac_header>
13952_ACEOF
13953rm -f conftest.$ac_objext
13954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13955 (eval $ac_compile) 2>conftest.er1
a848cd7e 13956 ac_status=$?
ac1cb8d3
VS
13957 grep -v '^ *+' conftest.er1 >conftest.err
13958 rm -f conftest.er1
13959 cat conftest.err >&5
a848cd7e
SC
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } &&
9dd0f6c2 13962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; } &&
13968 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13971 ac_status=$?
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; }; then
13974 ac_header_compiler=yes
13975else
13976 echo "$as_me: failed program was:" >&5
13977sed 's/^/| /' conftest.$ac_ext >&5
13978
13979ac_header_compiler=no
13980fi
ac1cb8d3 13981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13982echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13983echo "${ECHO_T}$ac_header_compiler" >&6
13984
13985# Is the header present?
13986echo "$as_me:$LINENO: checking $ac_header presence" >&5
13987echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13988cat >conftest.$ac_ext <<_ACEOF
13989/* confdefs.h. */
13990_ACEOF
13991cat confdefs.h >>conftest.$ac_ext
13992cat >>conftest.$ac_ext <<_ACEOF
13993/* end confdefs.h. */
13994#include <$ac_header>
13995_ACEOF
13996if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13998 ac_status=$?
13999 grep -v '^ *+' conftest.er1 >conftest.err
14000 rm -f conftest.er1
14001 cat conftest.err >&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } >/dev/null; then
14004 if test -s conftest.err; then
14005 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14007 else
14008 ac_cpp_err=
14009 fi
14010else
14011 ac_cpp_err=yes
14012fi
14013if test -z "$ac_cpp_err"; then
14014 ac_header_preproc=yes
14015else
14016 echo "$as_me: failed program was:" >&5
14017sed 's/^/| /' conftest.$ac_ext >&5
14018
14019 ac_header_preproc=no
14020fi
14021rm -f conftest.err conftest.$ac_ext
14022echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14023echo "${ECHO_T}$ac_header_preproc" >&6
14024
14025# So? What about this header?
ac1cb8d3
VS
14026case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14027 yes:no: )
a848cd7e
SC
14028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14029echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14031echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14032 ac_header_preproc=yes
a848cd7e 14033 ;;
ac1cb8d3 14034 no:yes:* )
a848cd7e
SC
14035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14036echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14038echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14040echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14042echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14044echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14046echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14047 (
14048 cat <<\_ASBOX
ac1cb8d3
VS
14049## ----------------------------------------- ##
14050## Report this to wx-dev@lists.wxwidgets.org ##
14051## ----------------------------------------- ##
a848cd7e
SC
14052_ASBOX
14053 ) |
14054 sed "s/^/$as_me: WARNING: /" >&2
14055 ;;
14056esac
14057echo "$as_me:$LINENO: checking for $ac_header" >&5
14058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14059if eval "test \"\${$as_ac_Header+set}\" = set"; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14061else
ac1cb8d3 14062 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14063fi
14064echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14065echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14066
14067fi
14068if test `eval echo '${'$as_ac_Header'}'` = yes; then
14069 cat >>confdefs.h <<_ACEOF
14070#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14071_ACEOF
14072
14073fi
14074
14075done
14076
14077
14078for ac_header in malloc.h
14079do
14080as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14081if eval "test \"\${$as_ac_Header+set}\" = set"; then
14082 echo "$as_me:$LINENO: checking for $ac_header" >&5
14083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14084if eval "test \"\${$as_ac_Header+set}\" = set"; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14086fi
14087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14089else
14090 # Is the header compilable?
14091echo "$as_me:$LINENO: checking $ac_header usability" >&5
14092echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14093cat >conftest.$ac_ext <<_ACEOF
14094/* confdefs.h. */
14095_ACEOF
14096cat confdefs.h >>conftest.$ac_ext
14097cat >>conftest.$ac_ext <<_ACEOF
14098/* end confdefs.h. */
14099$ac_includes_default
14100#include <$ac_header>
14101_ACEOF
14102rm -f conftest.$ac_objext
14103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14104 (eval $ac_compile) 2>conftest.er1
a848cd7e 14105 ac_status=$?
ac1cb8d3
VS
14106 grep -v '^ *+' conftest.er1 >conftest.err
14107 rm -f conftest.er1
14108 cat conftest.err >&5
a848cd7e
SC
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
9dd0f6c2 14111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; } &&
14117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 ac_header_compiler=yes
14124else
14125 echo "$as_me: failed program was:" >&5
14126sed 's/^/| /' conftest.$ac_ext >&5
14127
14128ac_header_compiler=no
14129fi
ac1cb8d3 14130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14131echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14132echo "${ECHO_T}$ac_header_compiler" >&6
14133
14134# Is the header present?
14135echo "$as_me:$LINENO: checking $ac_header presence" >&5
14136echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14137cat >conftest.$ac_ext <<_ACEOF
14138/* confdefs.h. */
14139_ACEOF
14140cat confdefs.h >>conftest.$ac_ext
14141cat >>conftest.$ac_ext <<_ACEOF
14142/* end confdefs.h. */
14143#include <$ac_header>
14144_ACEOF
14145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14147 ac_status=$?
14148 grep -v '^ *+' conftest.er1 >conftest.err
14149 rm -f conftest.er1
14150 cat conftest.err >&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); } >/dev/null; then
14153 if test -s conftest.err; then
14154 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14156 else
14157 ac_cpp_err=
14158 fi
14159else
14160 ac_cpp_err=yes
14161fi
14162if test -z "$ac_cpp_err"; then
14163 ac_header_preproc=yes
14164else
14165 echo "$as_me: failed program was:" >&5
14166sed 's/^/| /' conftest.$ac_ext >&5
14167
14168 ac_header_preproc=no
14169fi
14170rm -f conftest.err conftest.$ac_ext
14171echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14172echo "${ECHO_T}$ac_header_preproc" >&6
14173
14174# So? What about this header?
ac1cb8d3
VS
14175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14176 yes:no: )
a848cd7e
SC
14177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14178echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14180echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14181 ac_header_preproc=yes
a848cd7e 14182 ;;
ac1cb8d3 14183 no:yes:* )
a848cd7e
SC
14184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14185echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14187echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14189echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14191echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14193echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14195echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14196 (
14197 cat <<\_ASBOX
ac1cb8d3
VS
14198## ----------------------------------------- ##
14199## Report this to wx-dev@lists.wxwidgets.org ##
14200## ----------------------------------------- ##
a848cd7e
SC
14201_ASBOX
14202 ) |
14203 sed "s/^/$as_me: WARNING: /" >&2
14204 ;;
14205esac
14206echo "$as_me:$LINENO: checking for $ac_header" >&5
14207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14208if eval "test \"\${$as_ac_Header+set}\" = set"; then
14209 echo $ECHO_N "(cached) $ECHO_C" >&6
14210else
ac1cb8d3 14211 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14212fi
14213echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14214echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14215
14216fi
14217if test `eval echo '${'$as_ac_Header'}'` = yes; then
14218 cat >>confdefs.h <<_ACEOF
14219#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14220_ACEOF
14221
14222fi
14223
14224done
14225
14226
14227for ac_header in unistd.h
14228do
14229as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14230if eval "test \"\${$as_ac_Header+set}\" = set"; then
14231 echo "$as_me:$LINENO: checking for $ac_header" >&5
14232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14233if eval "test \"\${$as_ac_Header+set}\" = set"; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14235fi
14236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14238else
14239 # Is the header compilable?
14240echo "$as_me:$LINENO: checking $ac_header usability" >&5
14241echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14242cat >conftest.$ac_ext <<_ACEOF
14243/* confdefs.h. */
14244_ACEOF
14245cat confdefs.h >>conftest.$ac_ext
14246cat >>conftest.$ac_ext <<_ACEOF
14247/* end confdefs.h. */
14248$ac_includes_default
14249#include <$ac_header>
14250_ACEOF
14251rm -f conftest.$ac_objext
14252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14253 (eval $ac_compile) 2>conftest.er1
a848cd7e 14254 ac_status=$?
ac1cb8d3
VS
14255 grep -v '^ *+' conftest.er1 >conftest.err
14256 rm -f conftest.er1
14257 cat conftest.err >&5
a848cd7e
SC
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } &&
9dd0f6c2 14260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; } &&
14266 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14269 ac_status=$?
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then
14272 ac_header_compiler=yes
14273else
14274 echo "$as_me: failed program was:" >&5
14275sed 's/^/| /' conftest.$ac_ext >&5
14276
14277ac_header_compiler=no
14278fi
ac1cb8d3 14279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14280echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14281echo "${ECHO_T}$ac_header_compiler" >&6
14282
14283# Is the header present?
14284echo "$as_me:$LINENO: checking $ac_header presence" >&5
14285echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14286cat >conftest.$ac_ext <<_ACEOF
14287/* confdefs.h. */
14288_ACEOF
14289cat confdefs.h >>conftest.$ac_ext
14290cat >>conftest.$ac_ext <<_ACEOF
14291/* end confdefs.h. */
14292#include <$ac_header>
14293_ACEOF
14294if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14296 ac_status=$?
14297 grep -v '^ *+' conftest.er1 >conftest.err
14298 rm -f conftest.er1
14299 cat conftest.err >&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); } >/dev/null; then
14302 if test -s conftest.err; then
14303 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14305 else
14306 ac_cpp_err=
14307 fi
14308else
14309 ac_cpp_err=yes
14310fi
14311if test -z "$ac_cpp_err"; then
14312 ac_header_preproc=yes
14313else
14314 echo "$as_me: failed program was:" >&5
14315sed 's/^/| /' conftest.$ac_ext >&5
14316
14317 ac_header_preproc=no
14318fi
14319rm -f conftest.err conftest.$ac_ext
14320echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14321echo "${ECHO_T}$ac_header_preproc" >&6
14322
14323# So? What about this header?
ac1cb8d3
VS
14324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14325 yes:no: )
a848cd7e
SC
14326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14327echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14329echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14330 ac_header_preproc=yes
a848cd7e 14331 ;;
ac1cb8d3 14332 no:yes:* )
a848cd7e
SC
14333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14334echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14336echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14338echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14340echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14342echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14344echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14345 (
14346 cat <<\_ASBOX
ac1cb8d3
VS
14347## ----------------------------------------- ##
14348## Report this to wx-dev@lists.wxwidgets.org ##
14349## ----------------------------------------- ##
a848cd7e
SC
14350_ASBOX
14351 ) |
14352 sed "s/^/$as_me: WARNING: /" >&2
14353 ;;
14354esac
14355echo "$as_me:$LINENO: checking for $ac_header" >&5
14356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14357if eval "test \"\${$as_ac_Header+set}\" = set"; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14359else
ac1cb8d3 14360 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14361fi
14362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14363echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14364
14365fi
14366if test `eval echo '${'$as_ac_Header'}'` = yes; then
14367 cat >>confdefs.h <<_ACEOF
14368#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14369_ACEOF
14370
14371fi
14372
14373done
14374
14375
14376for ac_header in wchar.h
14377do
14378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14379if eval "test \"\${$as_ac_Header+set}\" = set"; then
14380 echo "$as_me:$LINENO: checking for $ac_header" >&5
14381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14382if eval "test \"\${$as_ac_Header+set}\" = set"; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14384fi
14385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14387else
14388 # Is the header compilable?
14389echo "$as_me:$LINENO: checking $ac_header usability" >&5
14390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14391cat >conftest.$ac_ext <<_ACEOF
14392/* confdefs.h. */
14393_ACEOF
14394cat confdefs.h >>conftest.$ac_ext
14395cat >>conftest.$ac_ext <<_ACEOF
14396/* end confdefs.h. */
14397$ac_includes_default
14398#include <$ac_header>
14399_ACEOF
14400rm -f conftest.$ac_objext
14401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14402 (eval $ac_compile) 2>conftest.er1
a848cd7e 14403 ac_status=$?
ac1cb8d3
VS
14404 grep -v '^ *+' conftest.er1 >conftest.err
14405 rm -f conftest.er1
14406 cat conftest.err >&5
a848cd7e
SC
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } &&
9dd0f6c2 14409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14412 ac_status=$?
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; } &&
14415 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14418 ac_status=$?
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
14421 ac_header_compiler=yes
14422else
14423 echo "$as_me: failed program was:" >&5
14424sed 's/^/| /' conftest.$ac_ext >&5
14425
14426ac_header_compiler=no
14427fi
ac1cb8d3 14428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14429echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14430echo "${ECHO_T}$ac_header_compiler" >&6
14431
14432# Is the header present?
14433echo "$as_me:$LINENO: checking $ac_header presence" >&5
14434echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14435cat >conftest.$ac_ext <<_ACEOF
14436/* confdefs.h. */
14437_ACEOF
14438cat confdefs.h >>conftest.$ac_ext
14439cat >>conftest.$ac_ext <<_ACEOF
14440/* end confdefs.h. */
14441#include <$ac_header>
14442_ACEOF
14443if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14445 ac_status=$?
14446 grep -v '^ *+' conftest.er1 >conftest.err
14447 rm -f conftest.er1
14448 cat conftest.err >&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } >/dev/null; then
14451 if test -s conftest.err; then
14452 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14454 else
14455 ac_cpp_err=
14456 fi
14457else
14458 ac_cpp_err=yes
14459fi
14460if test -z "$ac_cpp_err"; then
14461 ac_header_preproc=yes
14462else
14463 echo "$as_me: failed program was:" >&5
14464sed 's/^/| /' conftest.$ac_ext >&5
14465
14466 ac_header_preproc=no
14467fi
14468rm -f conftest.err conftest.$ac_ext
14469echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14470echo "${ECHO_T}$ac_header_preproc" >&6
14471
14472# So? What about this header?
ac1cb8d3
VS
14473case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14474 yes:no: )
a848cd7e
SC
14475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14476echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14478echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14479 ac_header_preproc=yes
a848cd7e 14480 ;;
ac1cb8d3 14481 no:yes:* )
a848cd7e
SC
14482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14483echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14485echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14487echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14489echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14491echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14493echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14494 (
14495 cat <<\_ASBOX
ac1cb8d3
VS
14496## ----------------------------------------- ##
14497## Report this to wx-dev@lists.wxwidgets.org ##
14498## ----------------------------------------- ##
a848cd7e
SC
14499_ASBOX
14500 ) |
14501 sed "s/^/$as_me: WARNING: /" >&2
14502 ;;
14503esac
14504echo "$as_me:$LINENO: checking for $ac_header" >&5
14505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14506if eval "test \"\${$as_ac_Header+set}\" = set"; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14508else
ac1cb8d3 14509 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14510fi
14511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14512echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14513
14514fi
14515if test `eval echo '${'$as_ac_Header'}'` = yes; then
14516 cat >>confdefs.h <<_ACEOF
14517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14518_ACEOF
14519
14520fi
14521
14522done
14523
14524
14525if test "$ac_cv_header_wchar_h" != "yes"; then
14526
14527for ac_header in wcstr.h
14528do
14529as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14530if eval "test \"\${$as_ac_Header+set}\" = set"; then
14531 echo "$as_me:$LINENO: checking for $ac_header" >&5
14532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14533if eval "test \"\${$as_ac_Header+set}\" = set"; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14535fi
14536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14538else
14539 # Is the header compilable?
14540echo "$as_me:$LINENO: checking $ac_header usability" >&5
14541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14542cat >conftest.$ac_ext <<_ACEOF
14543/* confdefs.h. */
14544_ACEOF
14545cat confdefs.h >>conftest.$ac_ext
14546cat >>conftest.$ac_ext <<_ACEOF
14547/* end confdefs.h. */
14548$ac_includes_default
14549#include <$ac_header>
14550_ACEOF
14551rm -f conftest.$ac_objext
14552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14553 (eval $ac_compile) 2>conftest.er1
a848cd7e 14554 ac_status=$?
ac1cb8d3
VS
14555 grep -v '^ *+' conftest.er1 >conftest.err
14556 rm -f conftest.er1
14557 cat conftest.err >&5
a848cd7e
SC
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
9dd0f6c2 14560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; } &&
14566 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; }; then
14572 ac_header_compiler=yes
14573else
14574 echo "$as_me: failed program was:" >&5
14575sed 's/^/| /' conftest.$ac_ext >&5
14576
14577ac_header_compiler=no
14578fi
ac1cb8d3 14579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14580echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14581echo "${ECHO_T}$ac_header_compiler" >&6
14582
14583# Is the header present?
14584echo "$as_me:$LINENO: checking $ac_header presence" >&5
14585echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14586cat >conftest.$ac_ext <<_ACEOF
14587/* confdefs.h. */
14588_ACEOF
14589cat confdefs.h >>conftest.$ac_ext
14590cat >>conftest.$ac_ext <<_ACEOF
14591/* end confdefs.h. */
14592#include <$ac_header>
14593_ACEOF
14594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14596 ac_status=$?
14597 grep -v '^ *+' conftest.er1 >conftest.err
14598 rm -f conftest.er1
14599 cat conftest.err >&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); } >/dev/null; then
14602 if test -s conftest.err; then
14603 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14605 else
14606 ac_cpp_err=
14607 fi
14608else
14609 ac_cpp_err=yes
14610fi
14611if test -z "$ac_cpp_err"; then
14612 ac_header_preproc=yes
14613else
14614 echo "$as_me: failed program was:" >&5
14615sed 's/^/| /' conftest.$ac_ext >&5
14616
14617 ac_header_preproc=no
14618fi
14619rm -f conftest.err conftest.$ac_ext
14620echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14621echo "${ECHO_T}$ac_header_preproc" >&6
14622
14623# So? What about this header?
ac1cb8d3
VS
14624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14625 yes:no: )
a848cd7e
SC
14626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14627echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14629echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14630 ac_header_preproc=yes
a848cd7e 14631 ;;
ac1cb8d3 14632 no:yes:* )
a848cd7e
SC
14633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14634echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14636echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14638echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14640echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14642echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14644echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14645 (
14646 cat <<\_ASBOX
ac1cb8d3
VS
14647## ----------------------------------------- ##
14648## Report this to wx-dev@lists.wxwidgets.org ##
14649## ----------------------------------------- ##
a848cd7e
SC
14650_ASBOX
14651 ) |
14652 sed "s/^/$as_me: WARNING: /" >&2
14653 ;;
14654esac
14655echo "$as_me:$LINENO: checking for $ac_header" >&5
14656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14657if eval "test \"\${$as_ac_Header+set}\" = set"; then
14658 echo $ECHO_N "(cached) $ECHO_C" >&6
14659else
ac1cb8d3 14660 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14661fi
14662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14663echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14664
14665fi
14666if test `eval echo '${'$as_ac_Header'}'` = yes; then
14667 cat >>confdefs.h <<_ACEOF
14668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14669_ACEOF
14670
14671fi
14672
14673done
14674
14675fi
14676
14677
14678for ac_header in fnmatch.h
14679do
14680as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14681if eval "test \"\${$as_ac_Header+set}\" = set"; then
14682 echo "$as_me:$LINENO: checking for $ac_header" >&5
14683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14684if eval "test \"\${$as_ac_Header+set}\" = set"; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14686fi
14687echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14688echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14689else
14690 # Is the header compilable?
14691echo "$as_me:$LINENO: checking $ac_header usability" >&5
14692echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14693cat >conftest.$ac_ext <<_ACEOF
14694/* confdefs.h. */
14695_ACEOF
14696cat confdefs.h >>conftest.$ac_ext
14697cat >>conftest.$ac_ext <<_ACEOF
14698/* end confdefs.h. */
14699$ac_includes_default
14700#include <$ac_header>
14701_ACEOF
14702rm -f conftest.$ac_objext
14703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14704 (eval $ac_compile) 2>conftest.er1
a848cd7e 14705 ac_status=$?
ac1cb8d3
VS
14706 grep -v '^ *+' conftest.er1 >conftest.err
14707 rm -f conftest.er1
14708 cat conftest.err >&5
a848cd7e
SC
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } &&
9dd0f6c2 14711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14714 ac_status=$?
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; } &&
14717 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14723 ac_header_compiler=yes
14724else
14725 echo "$as_me: failed program was:" >&5
14726sed 's/^/| /' conftest.$ac_ext >&5
14727
14728ac_header_compiler=no
14729fi
ac1cb8d3 14730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14731echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14732echo "${ECHO_T}$ac_header_compiler" >&6
14733
14734# Is the header present?
14735echo "$as_me:$LINENO: checking $ac_header presence" >&5
14736echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14737cat >conftest.$ac_ext <<_ACEOF
14738/* confdefs.h. */
14739_ACEOF
14740cat confdefs.h >>conftest.$ac_ext
14741cat >>conftest.$ac_ext <<_ACEOF
14742/* end confdefs.h. */
14743#include <$ac_header>
14744_ACEOF
14745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14747 ac_status=$?
14748 grep -v '^ *+' conftest.er1 >conftest.err
14749 rm -f conftest.er1
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } >/dev/null; then
14753 if test -s conftest.err; then
14754 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14756 else
14757 ac_cpp_err=
14758 fi
14759else
14760 ac_cpp_err=yes
14761fi
14762if test -z "$ac_cpp_err"; then
14763 ac_header_preproc=yes
14764else
14765 echo "$as_me: failed program was:" >&5
14766sed 's/^/| /' conftest.$ac_ext >&5
14767
14768 ac_header_preproc=no
14769fi
14770rm -f conftest.err conftest.$ac_ext
14771echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14772echo "${ECHO_T}$ac_header_preproc" >&6
14773
14774# So? What about this header?
ac1cb8d3
VS
14775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14776 yes:no: )
a848cd7e
SC
14777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14778echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14780echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14781 ac_header_preproc=yes
a848cd7e 14782 ;;
ac1cb8d3 14783 no:yes:* )
a848cd7e
SC
14784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14785echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14787echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14789echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14791echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14793echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14795echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14796 (
14797 cat <<\_ASBOX
ac1cb8d3
VS
14798## ----------------------------------------- ##
14799## Report this to wx-dev@lists.wxwidgets.org ##
14800## ----------------------------------------- ##
a848cd7e
SC
14801_ASBOX
14802 ) |
14803 sed "s/^/$as_me: WARNING: /" >&2
14804 ;;
14805esac
14806echo "$as_me:$LINENO: checking for $ac_header" >&5
14807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14808if eval "test \"\${$as_ac_Header+set}\" = set"; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14810else
ac1cb8d3 14811 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14812fi
14813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14815
14816fi
14817if test `eval echo '${'$as_ac_Header'}'` = yes; then
14818 cat >>confdefs.h <<_ACEOF
14819#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14820_ACEOF
14821
14822fi
14823
14824done
14825
14826
14827if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14828
14829for ac_func in fnmatch
14830do
14831as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14832echo "$as_me:$LINENO: checking for $ac_func" >&5
14833echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14834if eval "test \"\${$as_ac_var+set}\" = set"; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14836else
14837 cat >conftest.$ac_ext <<_ACEOF
14838/* confdefs.h. */
14839_ACEOF
14840cat confdefs.h >>conftest.$ac_ext
14841cat >>conftest.$ac_ext <<_ACEOF
14842/* end confdefs.h. */
ac1cb8d3
VS
14843/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14845#define $ac_func innocuous_$ac_func
14846
a848cd7e
SC
14847/* System header to define __stub macros and hopefully few prototypes,
14848 which can conflict with char $ac_func (); below.
14849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14850 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14851
a848cd7e
SC
14852#ifdef __STDC__
14853# include <limits.h>
14854#else
14855# include <assert.h>
14856#endif
ac1cb8d3
VS
14857
14858#undef $ac_func
14859
a848cd7e
SC
14860/* Override any gcc2 internal prototype to avoid an error. */
14861#ifdef __cplusplus
14862extern "C"
14863{
14864#endif
14865/* We use char because int might match the return type of a gcc2
14866 builtin and then its argument prototype would still apply. */
14867char $ac_func ();
14868/* The GNU C library defines this for functions which it implements
14869 to always fail with ENOSYS. Some functions are actually named
14870 something starting with __ and the normal name is an alias. */
14871#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14872choke me
14873#else
14874char (*f) () = $ac_func;
14875#endif
14876#ifdef __cplusplus
14877}
14878#endif
14879
14880int
14881main ()
14882{
14883return f != $ac_func;
14884 ;
14885 return 0;
14886}
14887_ACEOF
14888rm -f conftest.$ac_objext conftest$ac_exeext
14889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14890 (eval $ac_link) 2>conftest.er1
a848cd7e 14891 ac_status=$?
ac1cb8d3
VS
14892 grep -v '^ *+' conftest.er1 >conftest.err
14893 rm -f conftest.er1
14894 cat conftest.err >&5
a848cd7e
SC
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } &&
9dd0f6c2 14897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; } &&
14903 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 eval "$as_ac_var=yes"
14910else
14911 echo "$as_me: failed program was:" >&5
14912sed 's/^/| /' conftest.$ac_ext >&5
14913
14914eval "$as_ac_var=no"
14915fi
ac1cb8d3
VS
14916rm -f conftest.err conftest.$ac_objext \
14917 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14918fi
14919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14920echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14921if test `eval echo '${'$as_ac_var'}'` = yes; then
14922 cat >>confdefs.h <<_ACEOF
14923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14924_ACEOF
14925
14926fi
14927done
14928
14929fi
14930
14931
14932for ac_header in langinfo.h
14933do
14934as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14935if eval "test \"\${$as_ac_Header+set}\" = set"; then
14936 echo "$as_me:$LINENO: checking for $ac_header" >&5
14937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14938if eval "test \"\${$as_ac_Header+set}\" = set"; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14940fi
14941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14942echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14943else
14944 # Is the header compilable?
14945echo "$as_me:$LINENO: checking $ac_header usability" >&5
14946echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14947cat >conftest.$ac_ext <<_ACEOF
14948/* confdefs.h. */
14949_ACEOF
14950cat confdefs.h >>conftest.$ac_ext
14951cat >>conftest.$ac_ext <<_ACEOF
14952/* end confdefs.h. */
14953$ac_includes_default
14954#include <$ac_header>
14955_ACEOF
14956rm -f conftest.$ac_objext
14957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14958 (eval $ac_compile) 2>conftest.er1
a848cd7e 14959 ac_status=$?
ac1cb8d3
VS
14960 grep -v '^ *+' conftest.er1 >conftest.err
14961 rm -f conftest.er1
14962 cat conftest.err >&5
a848cd7e
SC
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } &&
9dd0f6c2 14965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; } &&
14971 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14974 ac_status=$?
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; }; then
14977 ac_header_compiler=yes
14978else
14979 echo "$as_me: failed program was:" >&5
14980sed 's/^/| /' conftest.$ac_ext >&5
14981
14982ac_header_compiler=no
14983fi
ac1cb8d3 14984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14985echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14986echo "${ECHO_T}$ac_header_compiler" >&6
14987
14988# Is the header present?
14989echo "$as_me:$LINENO: checking $ac_header presence" >&5
14990echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14991cat >conftest.$ac_ext <<_ACEOF
14992/* confdefs.h. */
14993_ACEOF
14994cat confdefs.h >>conftest.$ac_ext
14995cat >>conftest.$ac_ext <<_ACEOF
14996/* end confdefs.h. */
14997#include <$ac_header>
14998_ACEOF
14999if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15001 ac_status=$?
15002 grep -v '^ *+' conftest.er1 >conftest.err
15003 rm -f conftest.er1
15004 cat conftest.err >&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } >/dev/null; then
15007 if test -s conftest.err; then
15008 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15010 else
15011 ac_cpp_err=
15012 fi
15013else
15014 ac_cpp_err=yes
15015fi
15016if test -z "$ac_cpp_err"; then
15017 ac_header_preproc=yes
15018else
15019 echo "$as_me: failed program was:" >&5
15020sed 's/^/| /' conftest.$ac_ext >&5
15021
15022 ac_header_preproc=no
15023fi
15024rm -f conftest.err conftest.$ac_ext
15025echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15026echo "${ECHO_T}$ac_header_preproc" >&6
15027
15028# So? What about this header?
ac1cb8d3
VS
15029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15030 yes:no: )
a848cd7e
SC
15031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15032echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15034echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15035 ac_header_preproc=yes
a848cd7e 15036 ;;
ac1cb8d3 15037 no:yes:* )
a848cd7e
SC
15038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15041echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15043echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15045echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15047echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15049echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15050 (
15051 cat <<\_ASBOX
ac1cb8d3
VS
15052## ----------------------------------------- ##
15053## Report this to wx-dev@lists.wxwidgets.org ##
15054## ----------------------------------------- ##
a848cd7e
SC
15055_ASBOX
15056 ) |
15057 sed "s/^/$as_me: WARNING: /" >&2
15058 ;;
15059esac
15060echo "$as_me:$LINENO: checking for $ac_header" >&5
15061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15062if eval "test \"\${$as_ac_Header+set}\" = set"; then
15063 echo $ECHO_N "(cached) $ECHO_C" >&6
15064else
ac1cb8d3 15065 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15066fi
15067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15068echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15069
15070fi
15071if test `eval echo '${'$as_ac_Header'}'` = yes; then
15072 cat >>confdefs.h <<_ACEOF
15073#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15074_ACEOF
15075
15076fi
15077
15078done
15079
15080
15081case "${host}" in
15082 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15083 if test $ac_cv_header_langinfo_h = "yes" \
15084 -a \( "$wx_cv_gccversion" = "EMX2" \
15085 -o "$wx_cv_gccversion" = "EMX3" \
15086 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15087 LIBS="$LIBS -lintl"
15088 fi
15089 ;;
15090esac
15091
15092if test "$wxUSE_GUI" = "yes"; then
15093 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15094
15095for ac_header in X11/Xlib.h
15096do
15097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15098if eval "test \"\${$as_ac_Header+set}\" = set"; then
15099 echo "$as_me:$LINENO: checking for $ac_header" >&5
15100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15101if eval "test \"\${$as_ac_Header+set}\" = set"; then
15102 echo $ECHO_N "(cached) $ECHO_C" >&6
15103fi
15104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15106else
15107 # Is the header compilable?
15108echo "$as_me:$LINENO: checking $ac_header usability" >&5
15109echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15110cat >conftest.$ac_ext <<_ACEOF
15111/* confdefs.h. */
15112_ACEOF
15113cat confdefs.h >>conftest.$ac_ext
15114cat >>conftest.$ac_ext <<_ACEOF
15115/* end confdefs.h. */
15116$ac_includes_default
15117#include <$ac_header>
15118_ACEOF
15119rm -f conftest.$ac_objext
15120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15121 (eval $ac_compile) 2>conftest.er1
a848cd7e 15122 ac_status=$?
ac1cb8d3
VS
15123 grep -v '^ *+' conftest.er1 >conftest.err
15124 rm -f conftest.er1
15125 cat conftest.err >&5
a848cd7e
SC
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } &&
9dd0f6c2 15128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; } &&
15134 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then
15140 ac_header_compiler=yes
15141else
15142 echo "$as_me: failed program was:" >&5
15143sed 's/^/| /' conftest.$ac_ext >&5
15144
15145ac_header_compiler=no
15146fi
ac1cb8d3 15147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15148echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15149echo "${ECHO_T}$ac_header_compiler" >&6
15150
15151# Is the header present?
15152echo "$as_me:$LINENO: checking $ac_header presence" >&5
15153echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15154cat >conftest.$ac_ext <<_ACEOF
15155/* confdefs.h. */
15156_ACEOF
15157cat confdefs.h >>conftest.$ac_ext
15158cat >>conftest.$ac_ext <<_ACEOF
15159/* end confdefs.h. */
15160#include <$ac_header>
15161_ACEOF
15162if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15164 ac_status=$?
15165 grep -v '^ *+' conftest.er1 >conftest.err
15166 rm -f conftest.er1
15167 cat conftest.err >&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } >/dev/null; then
15170 if test -s conftest.err; then
15171 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15173 else
15174 ac_cpp_err=
15175 fi
15176else
15177 ac_cpp_err=yes
15178fi
15179if test -z "$ac_cpp_err"; then
15180 ac_header_preproc=yes
15181else
15182 echo "$as_me: failed program was:" >&5
15183sed 's/^/| /' conftest.$ac_ext >&5
15184
15185 ac_header_preproc=no
15186fi
15187rm -f conftest.err conftest.$ac_ext
15188echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15189echo "${ECHO_T}$ac_header_preproc" >&6
15190
15191# So? What about this header?
ac1cb8d3
VS
15192case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15193 yes:no: )
a848cd7e
SC
15194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15195echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15197echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15198 ac_header_preproc=yes
a848cd7e 15199 ;;
ac1cb8d3 15200 no:yes:* )
a848cd7e
SC
15201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15202echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15204echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15206echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15208echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15210echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15212echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15213 (
15214 cat <<\_ASBOX
ac1cb8d3
VS
15215## ----------------------------------------- ##
15216## Report this to wx-dev@lists.wxwidgets.org ##
15217## ----------------------------------------- ##
a848cd7e
SC
15218_ASBOX
15219 ) |
15220 sed "s/^/$as_me: WARNING: /" >&2
15221 ;;
15222esac
15223echo "$as_me:$LINENO: checking for $ac_header" >&5
15224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15225if eval "test \"\${$as_ac_Header+set}\" = set"; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15227else
ac1cb8d3 15228 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15229fi
15230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15231echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15232
15233fi
15234if test `eval echo '${'$as_ac_Header'}'` = yes; then
15235 cat >>confdefs.h <<_ACEOF
15236#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15237_ACEOF
15238
15239fi
15240
15241done
15242
15243
15244for ac_header in X11/XKBlib.h
15245do
15246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15247echo "$as_me:$LINENO: checking for $ac_header" >&5
15248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15249if eval "test \"\${$as_ac_Header+set}\" = set"; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15251else
15252 cat >conftest.$ac_ext <<_ACEOF
15253/* confdefs.h. */
15254_ACEOF
15255cat confdefs.h >>conftest.$ac_ext
15256cat >>conftest.$ac_ext <<_ACEOF
15257/* end confdefs.h. */
15258
15259 #if HAVE_X11_XLIB_H
15260 #include <X11/Xlib.h>
15261 #endif
15262
15263
15264#include <$ac_header>
15265_ACEOF
15266rm -f conftest.$ac_objext
15267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15268 (eval $ac_compile) 2>conftest.er1
a848cd7e 15269 ac_status=$?
ac1cb8d3
VS
15270 grep -v '^ *+' conftest.er1 >conftest.err
15271 rm -f conftest.er1
15272 cat conftest.err >&5
a848cd7e
SC
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } &&
9dd0f6c2 15275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; } &&
15281 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15284 ac_status=$?
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15287 eval "$as_ac_Header=yes"
15288else
15289 echo "$as_me: failed program was:" >&5
15290sed 's/^/| /' conftest.$ac_ext >&5
15291
15292eval "$as_ac_Header=no"
15293fi
ac1cb8d3 15294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15295fi
15296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15298if test `eval echo '${'$as_ac_Header'}'` = yes; then
15299 cat >>confdefs.h <<_ACEOF
15300#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15301_ACEOF
15302
15303fi
15304
15305done
15306
15307 fi
15308fi
15309
15310
15311echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15312echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15313if test "${ac_cv_c_const+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15315else
15316 cat >conftest.$ac_ext <<_ACEOF
15317/* confdefs.h. */
15318_ACEOF
15319cat confdefs.h >>conftest.$ac_ext
15320cat >>conftest.$ac_ext <<_ACEOF
15321/* end confdefs.h. */
15322
15323int
15324main ()
15325{
15326/* FIXME: Include the comments suggested by Paul. */
15327#ifndef __cplusplus
15328 /* Ultrix mips cc rejects this. */
15329 typedef int charset[2];
15330 const charset x;
15331 /* SunOS 4.1.1 cc rejects this. */
15332 char const *const *ccp;
15333 char **p;
15334 /* NEC SVR4.0.2 mips cc rejects this. */
15335 struct point {int x, y;};
15336 static struct point const zero = {0,0};
15337 /* AIX XL C 1.02.0.0 rejects this.
15338 It does not let you subtract one const X* pointer from another in
15339 an arm of an if-expression whose if-part is not a constant
15340 expression */
15341 const char *g = "string";
15342 ccp = &g + (g ? g-g : 0);
15343 /* HPUX 7.0 cc rejects these. */
15344 ++ccp;
15345 p = (char**) ccp;
15346 ccp = (char const *const *) p;
15347 { /* SCO 3.2v4 cc rejects this. */
15348 char *t;
15349 char const *s = 0 ? (char *) 0 : (char const *) 0;
15350
15351 *t++ = 0;
15352 }
15353 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15354 int x[] = {25, 17};
15355 const int *foo = &x[0];
15356 ++foo;
15357 }
15358 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15359 typedef const int *iptr;
15360 iptr p = 0;
15361 ++p;
15362 }
15363 { /* AIX XL C 1.02.0.0 rejects this saying
15364 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15365 struct s { int j; const int *ap[3]; };
15366 struct s *b; b->j = 5;
15367 }
15368 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15369 const int foo = 10;
15370 }
15371#endif
15372
15373 ;
15374 return 0;
15375}
15376_ACEOF
15377rm -f conftest.$ac_objext
15378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15379 (eval $ac_compile) 2>conftest.er1
a848cd7e 15380 ac_status=$?
ac1cb8d3
VS
15381 grep -v '^ *+' conftest.er1 >conftest.err
15382 rm -f conftest.er1
15383 cat conftest.err >&5
a848cd7e
SC
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); } &&
9dd0f6c2 15386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; } &&
15392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_cv_c_const=yes
15399else
15400 echo "$as_me: failed program was:" >&5
15401sed 's/^/| /' conftest.$ac_ext >&5
15402
15403ac_cv_c_const=no
15404fi
ac1cb8d3 15405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15406fi
15407echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15408echo "${ECHO_T}$ac_cv_c_const" >&6
15409if test $ac_cv_c_const = no; then
15410
15411cat >>confdefs.h <<\_ACEOF
15412#define const
15413_ACEOF
15414
15415fi
15416
15417echo "$as_me:$LINENO: checking for inline" >&5
15418echo $ECHO_N "checking for inline... $ECHO_C" >&6
15419if test "${ac_cv_c_inline+set}" = set; then
15420 echo $ECHO_N "(cached) $ECHO_C" >&6
15421else
15422 ac_cv_c_inline=no
15423for ac_kw in inline __inline__ __inline; do
15424 cat >conftest.$ac_ext <<_ACEOF
15425/* confdefs.h. */
15426_ACEOF
15427cat confdefs.h >>conftest.$ac_ext
15428cat >>conftest.$ac_ext <<_ACEOF
15429/* end confdefs.h. */
15430#ifndef __cplusplus
15431typedef int foo_t;
15432static $ac_kw foo_t static_foo () {return 0; }
15433$ac_kw foo_t foo () {return 0; }
15434#endif
15435
15436_ACEOF
15437rm -f conftest.$ac_objext
15438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15439 (eval $ac_compile) 2>conftest.er1
a848cd7e 15440 ac_status=$?
ac1cb8d3
VS
15441 grep -v '^ *+' conftest.er1 >conftest.err
15442 rm -f conftest.er1
15443 cat conftest.err >&5
a848cd7e
SC
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } &&
9dd0f6c2 15446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; } &&
15452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_cv_c_inline=$ac_kw; break
15459else
15460 echo "$as_me: failed program was:" >&5
15461sed 's/^/| /' conftest.$ac_ext >&5
15462
15463fi
ac1cb8d3 15464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15465done
15466
15467fi
15468echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15469echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15470
15471
a848cd7e
SC
15472case $ac_cv_c_inline in
15473 inline | yes) ;;
ac1cb8d3
VS
15474 *)
15475 case $ac_cv_c_inline in
15476 no) ac_val=;;
15477 *) ac_val=$ac_cv_c_inline;;
15478 esac
15479 cat >>confdefs.h <<_ACEOF
15480#ifndef __cplusplus
15481#define inline $ac_val
15482#endif
de59c161 15483_ACEOF
ac1cb8d3 15484 ;;
a848cd7e
SC
15485esac
15486
15487
15488echo "$as_me:$LINENO: checking for char" >&5
15489echo $ECHO_N "checking for char... $ECHO_C" >&6
15490if test "${ac_cv_type_char+set}" = set; then
15491 echo $ECHO_N "(cached) $ECHO_C" >&6
15492else
15493 cat >conftest.$ac_ext <<_ACEOF
15494/* confdefs.h. */
15495_ACEOF
15496cat confdefs.h >>conftest.$ac_ext
15497cat >>conftest.$ac_ext <<_ACEOF
15498/* end confdefs.h. */
15499$ac_includes_default
15500int
15501main ()
15502{
15503if ((char *) 0)
15504 return 0;
15505if (sizeof (char))
15506 return 0;
15507 ;
15508 return 0;
15509}
15510_ACEOF
15511rm -f conftest.$ac_objext
15512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15513 (eval $ac_compile) 2>conftest.er1
a848cd7e 15514 ac_status=$?
ac1cb8d3
VS
15515 grep -v '^ *+' conftest.er1 >conftest.err
15516 rm -f conftest.er1
15517 cat conftest.err >&5
a848cd7e
SC
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } &&
9dd0f6c2 15520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; } &&
15526 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; }; then
15532 ac_cv_type_char=yes
15533else
15534 echo "$as_me: failed program was:" >&5
15535sed 's/^/| /' conftest.$ac_ext >&5
15536
15537ac_cv_type_char=no
15538fi
ac1cb8d3 15539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15540fi
15541echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15542echo "${ECHO_T}$ac_cv_type_char" >&6
15543
15544echo "$as_me:$LINENO: checking size of char" >&5
15545echo $ECHO_N "checking size of char... $ECHO_C" >&6
15546if test "${ac_cv_sizeof_char+set}" = set; then
15547 echo $ECHO_N "(cached) $ECHO_C" >&6
15548else
15549 if test "$ac_cv_type_char" = yes; then
15550 # The cast to unsigned long works around a bug in the HP C Compiler
15551 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15552 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15553 # This bug is HP SR number 8606223364.
15554 if test "$cross_compiling" = yes; then
15555 # Depending upon the size, compute the lo and hi bounds.
15556cat >conftest.$ac_ext <<_ACEOF
15557/* confdefs.h. */
15558_ACEOF
15559cat confdefs.h >>conftest.$ac_ext
15560cat >>conftest.$ac_ext <<_ACEOF
15561/* end confdefs.h. */
15562$ac_includes_default
15563int
15564main ()
15565{
15566static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15567test_array [0] = 0
15568
15569 ;
15570 return 0;
15571}
15572_ACEOF
15573rm -f conftest.$ac_objext
15574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15575 (eval $ac_compile) 2>conftest.er1
a848cd7e 15576 ac_status=$?
ac1cb8d3
VS
15577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
a848cd7e
SC
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } &&
9dd0f6c2 15582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584 (eval $ac_try) 2>&5
15585 ac_status=$?
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); }; } &&
15588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590 (eval $ac_try) 2>&5
15591 ac_status=$?
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; }; then
15594 ac_lo=0 ac_mid=0
15595 while :; do
15596 cat >conftest.$ac_ext <<_ACEOF
15597/* confdefs.h. */
15598_ACEOF
15599cat confdefs.h >>conftest.$ac_ext
15600cat >>conftest.$ac_ext <<_ACEOF
15601/* end confdefs.h. */
15602$ac_includes_default
15603int
15604main ()
15605{
15606static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15607test_array [0] = 0
15608
15609 ;
15610 return 0;
15611}
15612_ACEOF
15613rm -f conftest.$ac_objext
15614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15615 (eval $ac_compile) 2>conftest.er1
a848cd7e 15616 ac_status=$?
ac1cb8d3
VS
15617 grep -v '^ *+' conftest.er1 >conftest.err
15618 rm -f conftest.er1
15619 cat conftest.err >&5
a848cd7e
SC
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } &&
9dd0f6c2 15622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; } &&
15628 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634 ac_hi=$ac_mid; break
15635else
15636 echo "$as_me: failed program was:" >&5
15637sed 's/^/| /' conftest.$ac_ext >&5
15638
15639ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15640 if test $ac_lo -le $ac_mid; then
15641 ac_lo= ac_hi=
15642 break
15643 fi
15644 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15645fi
ac1cb8d3 15646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15647 done
15648else
15649 echo "$as_me: failed program was:" >&5
15650sed 's/^/| /' conftest.$ac_ext >&5
15651
15652cat >conftest.$ac_ext <<_ACEOF
15653/* confdefs.h. */
15654_ACEOF
15655cat confdefs.h >>conftest.$ac_ext
15656cat >>conftest.$ac_ext <<_ACEOF
15657/* end confdefs.h. */
15658$ac_includes_default
15659int
15660main ()
15661{
15662static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15663test_array [0] = 0
15664
15665 ;
15666 return 0;
15667}
15668_ACEOF
15669rm -f conftest.$ac_objext
15670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15671 (eval $ac_compile) 2>conftest.er1
a848cd7e 15672 ac_status=$?
ac1cb8d3
VS
15673 grep -v '^ *+' conftest.er1 >conftest.err
15674 rm -f conftest.er1
15675 cat conftest.err >&5
a848cd7e
SC
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } &&
9dd0f6c2 15678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15680 (eval $ac_try) 2>&5
15681 ac_status=$?
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }; } &&
15684 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 ac_hi=-1 ac_mid=-1
15691 while :; do
15692 cat >conftest.$ac_ext <<_ACEOF
15693/* confdefs.h. */
15694_ACEOF
15695cat confdefs.h >>conftest.$ac_ext
15696cat >>conftest.$ac_ext <<_ACEOF
15697/* end confdefs.h. */
15698$ac_includes_default
15699int
15700main ()
15701{
15702static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15703test_array [0] = 0
15704
15705 ;
15706 return 0;
15707}
15708_ACEOF
15709rm -f conftest.$ac_objext
15710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15711 (eval $ac_compile) 2>conftest.er1
a848cd7e 15712 ac_status=$?
ac1cb8d3
VS
15713 grep -v '^ *+' conftest.er1 >conftest.err
15714 rm -f conftest.er1
15715 cat conftest.err >&5
a848cd7e
SC
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } &&
9dd0f6c2 15718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15720 (eval $ac_try) 2>&5
15721 ac_status=$?
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); }; } &&
15724 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; }; then
15730 ac_lo=$ac_mid; break
15731else
15732 echo "$as_me: failed program was:" >&5
15733sed 's/^/| /' conftest.$ac_ext >&5
15734
15735ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15736 if test $ac_mid -le $ac_hi; then
15737 ac_lo= ac_hi=
15738 break
15739 fi
15740 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15741fi
ac1cb8d3 15742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15743 done
15744else
15745 echo "$as_me: failed program was:" >&5
15746sed 's/^/| /' conftest.$ac_ext >&5
15747
15748ac_lo= ac_hi=
15749fi
ac1cb8d3 15750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15751fi
ac1cb8d3 15752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15753# Binary search between lo and hi bounds.
15754while test "x$ac_lo" != "x$ac_hi"; do
15755 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15756 cat >conftest.$ac_ext <<_ACEOF
15757/* confdefs.h. */
15758_ACEOF
15759cat confdefs.h >>conftest.$ac_ext
15760cat >>conftest.$ac_ext <<_ACEOF
15761/* end confdefs.h. */
15762$ac_includes_default
15763int
15764main ()
15765{
15766static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15767test_array [0] = 0
15768
15769 ;
15770 return 0;
15771}
15772_ACEOF
15773rm -f conftest.$ac_objext
15774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15775 (eval $ac_compile) 2>conftest.er1
a848cd7e 15776 ac_status=$?
ac1cb8d3
VS
15777 grep -v '^ *+' conftest.er1 >conftest.err
15778 rm -f conftest.er1
15779 cat conftest.err >&5
a848cd7e
SC
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } &&
9dd0f6c2 15782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784 (eval $ac_try) 2>&5
15785 ac_status=$?
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; } &&
15788 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15790 (eval $ac_try) 2>&5
15791 ac_status=$?
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; }; then
15794 ac_hi=$ac_mid
15795else
15796 echo "$as_me: failed program was:" >&5
15797sed 's/^/| /' conftest.$ac_ext >&5
15798
15799ac_lo=`expr '(' $ac_mid ')' + 1`
15800fi
ac1cb8d3 15801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15802done
15803case $ac_lo in
15804?*) ac_cv_sizeof_char=$ac_lo;;
15805'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15806See \`config.log' for more details." >&5
15807echo "$as_me: error: cannot compute sizeof (char), 77
15808See \`config.log' for more details." >&2;}
15809 { (exit 1); exit 1; }; } ;;
15810esac
15811else
15812 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
15813 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15814echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15815 { (exit 1); exit 1; }; }
15816else
15817 cat >conftest.$ac_ext <<_ACEOF
15818/* confdefs.h. */
15819_ACEOF
15820cat confdefs.h >>conftest.$ac_ext
15821cat >>conftest.$ac_ext <<_ACEOF
15822/* end confdefs.h. */
15823$ac_includes_default
15824long longval () { return (long) (sizeof (char)); }
15825unsigned long ulongval () { return (long) (sizeof (char)); }
15826#include <stdio.h>
15827#include <stdlib.h>
15828int
15829main ()
15830{
15831
15832 FILE *f = fopen ("conftest.val", "w");
15833 if (! f)
15834 exit (1);
15835 if (((long) (sizeof (char))) < 0)
15836 {
15837 long i = longval ();
15838 if (i != ((long) (sizeof (char))))
15839 exit (1);
15840 fprintf (f, "%ld\n", i);
15841 }
15842 else
15843 {
15844 unsigned long i = ulongval ();
15845 if (i != ((long) (sizeof (char))))
15846 exit (1);
15847 fprintf (f, "%lu\n", i);
15848 }
15849 exit (ferror (f) || fclose (f) != 0);
15850
15851 ;
15852 return 0;
15853}
15854_ACEOF
15855rm -f conftest$ac_exeext
15856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15857 (eval $ac_link) 2>&5
15858 ac_status=$?
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15863 ac_status=$?
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 ac_cv_sizeof_char=`cat conftest.val`
15867else
15868 echo "$as_me: program exited with status $ac_status" >&5
15869echo "$as_me: failed program was:" >&5
15870sed 's/^/| /' conftest.$ac_ext >&5
15871
15872( exit $ac_status )
15873{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15874See \`config.log' for more details." >&5
15875echo "$as_me: error: cannot compute sizeof (char), 77
15876See \`config.log' for more details." >&2;}
15877 { (exit 1); exit 1; }; }
15878fi
ac1cb8d3 15879rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15880fi
15881fi
15882rm -f conftest.val
15883else
15884 ac_cv_sizeof_char=0
15885fi
15886fi
15887echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15888echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15889cat >>confdefs.h <<_ACEOF
15890#define SIZEOF_CHAR $ac_cv_sizeof_char
15891_ACEOF
15892
15893
15894echo "$as_me:$LINENO: checking for short" >&5
15895echo $ECHO_N "checking for short... $ECHO_C" >&6
15896if test "${ac_cv_type_short+set}" = set; then
15897 echo $ECHO_N "(cached) $ECHO_C" >&6
15898else
15899 cat >conftest.$ac_ext <<_ACEOF
15900/* confdefs.h. */
15901_ACEOF
15902cat confdefs.h >>conftest.$ac_ext
15903cat >>conftest.$ac_ext <<_ACEOF
15904/* end confdefs.h. */
15905$ac_includes_default
15906int
15907main ()
15908{
15909if ((short *) 0)
15910 return 0;
15911if (sizeof (short))
15912 return 0;
15913 ;
15914 return 0;
15915}
15916_ACEOF
15917rm -f conftest.$ac_objext
15918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15919 (eval $ac_compile) 2>conftest.er1
a848cd7e 15920 ac_status=$?
ac1cb8d3
VS
15921 grep -v '^ *+' conftest.er1 >conftest.err
15922 rm -f conftest.er1
15923 cat conftest.err >&5
a848cd7e
SC
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } &&
9dd0f6c2 15926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928 (eval $ac_try) 2>&5
15929 ac_status=$?
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); }; } &&
15932 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934 (eval $ac_try) 2>&5
15935 ac_status=$?
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; }; then
15938 ac_cv_type_short=yes
15939else
15940 echo "$as_me: failed program was:" >&5
15941sed 's/^/| /' conftest.$ac_ext >&5
15942
15943ac_cv_type_short=no
15944fi
ac1cb8d3 15945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15946fi
15947echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15948echo "${ECHO_T}$ac_cv_type_short" >&6
15949
15950echo "$as_me:$LINENO: checking size of short" >&5
15951echo $ECHO_N "checking size of short... $ECHO_C" >&6
15952if test "${ac_cv_sizeof_short+set}" = set; then
15953 echo $ECHO_N "(cached) $ECHO_C" >&6
15954else
15955 if test "$ac_cv_type_short" = yes; then
15956 # The cast to unsigned long works around a bug in the HP C Compiler
15957 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15958 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15959 # This bug is HP SR number 8606223364.
15960 if test "$cross_compiling" = yes; then
15961 # Depending upon the size, compute the lo and hi bounds.
15962cat >conftest.$ac_ext <<_ACEOF
15963/* confdefs.h. */
15964_ACEOF
15965cat confdefs.h >>conftest.$ac_ext
15966cat >>conftest.$ac_ext <<_ACEOF
15967/* end confdefs.h. */
15968$ac_includes_default
15969int
15970main ()
15971{
15972static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15973test_array [0] = 0
15974
15975 ;
15976 return 0;
15977}
15978_ACEOF
15979rm -f conftest.$ac_objext
15980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15981 (eval $ac_compile) 2>conftest.er1
a848cd7e 15982 ac_status=$?
ac1cb8d3
VS
15983 grep -v '^ *+' conftest.er1 >conftest.err
15984 rm -f conftest.er1
15985 cat conftest.err >&5
a848cd7e
SC
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } &&
9dd0f6c2 15988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15990 (eval $ac_try) 2>&5
15991 ac_status=$?
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); }; } &&
15994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15997 ac_status=$?
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; }; then
16000 ac_lo=0 ac_mid=0
16001 while :; do
16002 cat >conftest.$ac_ext <<_ACEOF
16003/* confdefs.h. */
16004_ACEOF
16005cat confdefs.h >>conftest.$ac_ext
16006cat >>conftest.$ac_ext <<_ACEOF
16007/* end confdefs.h. */
16008$ac_includes_default
16009int
16010main ()
16011{
16012static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16013test_array [0] = 0
16014
16015 ;
16016 return 0;
16017}
16018_ACEOF
16019rm -f conftest.$ac_objext
16020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16021 (eval $ac_compile) 2>conftest.er1
a848cd7e 16022 ac_status=$?
ac1cb8d3
VS
16023 grep -v '^ *+' conftest.er1 >conftest.err
16024 rm -f conftest.er1
16025 cat conftest.err >&5
a848cd7e
SC
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); } &&
9dd0f6c2 16028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16031 ac_status=$?
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; } &&
16034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16037 ac_status=$?
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; }; then
16040 ac_hi=$ac_mid; break
16041else
16042 echo "$as_me: failed program was:" >&5
16043sed 's/^/| /' conftest.$ac_ext >&5
16044
16045ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16046 if test $ac_lo -le $ac_mid; then
16047 ac_lo= ac_hi=
16048 break
16049 fi
16050 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16051fi
ac1cb8d3 16052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16053 done
16054else
16055 echo "$as_me: failed program was:" >&5
16056sed 's/^/| /' conftest.$ac_ext >&5
16057
16058cat >conftest.$ac_ext <<_ACEOF
16059/* confdefs.h. */
16060_ACEOF
16061cat confdefs.h >>conftest.$ac_ext
16062cat >>conftest.$ac_ext <<_ACEOF
16063/* end confdefs.h. */
16064$ac_includes_default
16065int
16066main ()
16067{
16068static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16069test_array [0] = 0
16070
16071 ;
16072 return 0;
16073}
16074_ACEOF
16075rm -f conftest.$ac_objext
16076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16077 (eval $ac_compile) 2>conftest.er1
a848cd7e 16078 ac_status=$?
ac1cb8d3
VS
16079 grep -v '^ *+' conftest.er1 >conftest.err
16080 rm -f conftest.er1
16081 cat conftest.err >&5
a848cd7e
SC
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } &&
9dd0f6c2 16084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086 (eval $ac_try) 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; } &&
16090 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092 (eval $ac_try) 2>&5
16093 ac_status=$?
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; }; then
16096 ac_hi=-1 ac_mid=-1
16097 while :; do
16098 cat >conftest.$ac_ext <<_ACEOF
16099/* confdefs.h. */
16100_ACEOF
16101cat confdefs.h >>conftest.$ac_ext
16102cat >>conftest.$ac_ext <<_ACEOF
16103/* end confdefs.h. */
16104$ac_includes_default
16105int
16106main ()
16107{
16108static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16109test_array [0] = 0
16110
16111 ;
16112 return 0;
16113}
16114_ACEOF
16115rm -f conftest.$ac_objext
16116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16117 (eval $ac_compile) 2>conftest.er1
a848cd7e 16118 ac_status=$?
ac1cb8d3
VS
16119 grep -v '^ *+' conftest.er1 >conftest.err
16120 rm -f conftest.er1
16121 cat conftest.err >&5
a848cd7e
SC
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } &&
9dd0f6c2 16124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126 (eval $ac_try) 2>&5
16127 ac_status=$?
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; } &&
16130 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16133 ac_status=$?
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; }; then
16136 ac_lo=$ac_mid; break
16137else
16138 echo "$as_me: failed program was:" >&5
16139sed 's/^/| /' conftest.$ac_ext >&5
16140
16141ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16142 if test $ac_mid -le $ac_hi; then
16143 ac_lo= ac_hi=
16144 break
16145 fi
16146 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16147fi
ac1cb8d3 16148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16149 done
16150else
16151 echo "$as_me: failed program was:" >&5
16152sed 's/^/| /' conftest.$ac_ext >&5
16153
16154ac_lo= ac_hi=
16155fi
ac1cb8d3 16156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16157fi
ac1cb8d3 16158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16159# Binary search between lo and hi bounds.
16160while test "x$ac_lo" != "x$ac_hi"; do
16161 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16162 cat >conftest.$ac_ext <<_ACEOF
16163/* confdefs.h. */
16164_ACEOF
16165cat confdefs.h >>conftest.$ac_ext
16166cat >>conftest.$ac_ext <<_ACEOF
16167/* end confdefs.h. */
16168$ac_includes_default
16169int
16170main ()
16171{
16172static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16173test_array [0] = 0
16174
16175 ;
16176 return 0;
16177}
16178_ACEOF
16179rm -f conftest.$ac_objext
16180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16181 (eval $ac_compile) 2>conftest.er1
a848cd7e 16182 ac_status=$?
ac1cb8d3
VS
16183 grep -v '^ *+' conftest.er1 >conftest.err
16184 rm -f conftest.er1
16185 cat conftest.err >&5
a848cd7e
SC
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); } &&
9dd0f6c2 16188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16191 ac_status=$?
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; } &&
16194 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196 (eval $ac_try) 2>&5
16197 ac_status=$?
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; }; then
16200 ac_hi=$ac_mid
16201else
16202 echo "$as_me: failed program was:" >&5
16203sed 's/^/| /' conftest.$ac_ext >&5
16204
16205ac_lo=`expr '(' $ac_mid ')' + 1`
16206fi
ac1cb8d3 16207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16208done
16209case $ac_lo in
16210?*) ac_cv_sizeof_short=$ac_lo;;
16211'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16212See \`config.log' for more details." >&5
16213echo "$as_me: error: cannot compute sizeof (short), 77
16214See \`config.log' for more details." >&2;}
16215 { (exit 1); exit 1; }; } ;;
16216esac
16217else
16218 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
16219 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16220echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16221 { (exit 1); exit 1; }; }
16222else
16223 cat >conftest.$ac_ext <<_ACEOF
16224/* confdefs.h. */
16225_ACEOF
16226cat confdefs.h >>conftest.$ac_ext
16227cat >>conftest.$ac_ext <<_ACEOF
16228/* end confdefs.h. */
16229$ac_includes_default
16230long longval () { return (long) (sizeof (short)); }
16231unsigned long ulongval () { return (long) (sizeof (short)); }
16232#include <stdio.h>
16233#include <stdlib.h>
16234int
16235main ()
16236{
16237
16238 FILE *f = fopen ("conftest.val", "w");
16239 if (! f)
16240 exit (1);
16241 if (((long) (sizeof (short))) < 0)
16242 {
16243 long i = longval ();
16244 if (i != ((long) (sizeof (short))))
16245 exit (1);
16246 fprintf (f, "%ld\n", i);
16247 }
16248 else
16249 {
16250 unsigned long i = ulongval ();
16251 if (i != ((long) (sizeof (short))))
16252 exit (1);
16253 fprintf (f, "%lu\n", i);
16254 }
16255 exit (ferror (f) || fclose (f) != 0);
16256
16257 ;
16258 return 0;
16259}
16260_ACEOF
16261rm -f conftest$ac_exeext
16262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16263 (eval $ac_link) 2>&5
16264 ac_status=$?
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16269 ac_status=$?
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; }; then
16272 ac_cv_sizeof_short=`cat conftest.val`
16273else
16274 echo "$as_me: program exited with status $ac_status" >&5
16275echo "$as_me: failed program was:" >&5
16276sed 's/^/| /' conftest.$ac_ext >&5
16277
16278( exit $ac_status )
16279{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16280See \`config.log' for more details." >&5
16281echo "$as_me: error: cannot compute sizeof (short), 77
16282See \`config.log' for more details." >&2;}
16283 { (exit 1); exit 1; }; }
16284fi
ac1cb8d3 16285rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16286fi
16287fi
16288rm -f conftest.val
16289else
16290 ac_cv_sizeof_short=0
16291fi
16292fi
16293echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16294echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16295cat >>confdefs.h <<_ACEOF
16296#define SIZEOF_SHORT $ac_cv_sizeof_short
16297_ACEOF
16298
16299
16300echo "$as_me:$LINENO: checking for void *" >&5
16301echo $ECHO_N "checking for void *... $ECHO_C" >&6
16302if test "${ac_cv_type_void_p+set}" = set; then
16303 echo $ECHO_N "(cached) $ECHO_C" >&6
16304else
16305 cat >conftest.$ac_ext <<_ACEOF
16306/* confdefs.h. */
16307_ACEOF
16308cat confdefs.h >>conftest.$ac_ext
16309cat >>conftest.$ac_ext <<_ACEOF
16310/* end confdefs.h. */
16311$ac_includes_default
16312int
16313main ()
16314{
16315if ((void * *) 0)
16316 return 0;
16317if (sizeof (void *))
16318 return 0;
16319 ;
16320 return 0;
16321}
16322_ACEOF
16323rm -f conftest.$ac_objext
16324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16325 (eval $ac_compile) 2>conftest.er1
a848cd7e 16326 ac_status=$?
ac1cb8d3
VS
16327 grep -v '^ *+' conftest.er1 >conftest.err
16328 rm -f conftest.er1
16329 cat conftest.err >&5
a848cd7e
SC
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } &&
9dd0f6c2 16332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16335 ac_status=$?
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; } &&
16338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340 (eval $ac_try) 2>&5
16341 ac_status=$?
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; }; then
16344 ac_cv_type_void_p=yes
16345else
16346 echo "$as_me: failed program was:" >&5
16347sed 's/^/| /' conftest.$ac_ext >&5
16348
16349ac_cv_type_void_p=no
16350fi
ac1cb8d3 16351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16352fi
16353echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16354echo "${ECHO_T}$ac_cv_type_void_p" >&6
16355
16356echo "$as_me:$LINENO: checking size of void *" >&5
16357echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16358if test "${ac_cv_sizeof_void_p+set}" = set; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16360else
16361 if test "$ac_cv_type_void_p" = yes; then
16362 # The cast to unsigned long works around a bug in the HP C Compiler
16363 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16364 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16365 # This bug is HP SR number 8606223364.
16366 if test "$cross_compiling" = yes; then
16367 # Depending upon the size, compute the lo and hi bounds.
16368cat >conftest.$ac_ext <<_ACEOF
16369/* confdefs.h. */
16370_ACEOF
16371cat confdefs.h >>conftest.$ac_ext
16372cat >>conftest.$ac_ext <<_ACEOF
16373/* end confdefs.h. */
16374$ac_includes_default
16375int
16376main ()
16377{
16378static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16379test_array [0] = 0
16380
16381 ;
16382 return 0;
16383}
16384_ACEOF
16385rm -f conftest.$ac_objext
16386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16387 (eval $ac_compile) 2>conftest.er1
a848cd7e 16388 ac_status=$?
ac1cb8d3
VS
16389 grep -v '^ *+' conftest.er1 >conftest.err
16390 rm -f conftest.er1
16391 cat conftest.err >&5
a848cd7e
SC
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); } &&
9dd0f6c2 16394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16396 (eval $ac_try) 2>&5
16397 ac_status=$?
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; } &&
16400 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16403 ac_status=$?
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; }; then
16406 ac_lo=0 ac_mid=0
16407 while :; do
16408 cat >conftest.$ac_ext <<_ACEOF
16409/* confdefs.h. */
16410_ACEOF
16411cat confdefs.h >>conftest.$ac_ext
16412cat >>conftest.$ac_ext <<_ACEOF
16413/* end confdefs.h. */
16414$ac_includes_default
16415int
16416main ()
16417{
16418static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16419test_array [0] = 0
16420
16421 ;
16422 return 0;
16423}
16424_ACEOF
16425rm -f conftest.$ac_objext
16426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16427 (eval $ac_compile) 2>conftest.er1
a848cd7e 16428 ac_status=$?
ac1cb8d3
VS
16429 grep -v '^ *+' conftest.er1 >conftest.err
16430 rm -f conftest.er1
16431 cat conftest.err >&5
a848cd7e
SC
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
9dd0f6c2 16434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16437 ac_status=$?
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; } &&
16440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 ac_hi=$ac_mid; break
16447else
16448 echo "$as_me: failed program was:" >&5
16449sed 's/^/| /' conftest.$ac_ext >&5
16450
16451ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16452 if test $ac_lo -le $ac_mid; then
16453 ac_lo= ac_hi=
16454 break
16455 fi
16456 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16457fi
ac1cb8d3 16458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16459 done
16460else
16461 echo "$as_me: failed program was:" >&5
16462sed 's/^/| /' conftest.$ac_ext >&5
16463
16464cat >conftest.$ac_ext <<_ACEOF
16465/* confdefs.h. */
16466_ACEOF
16467cat confdefs.h >>conftest.$ac_ext
16468cat >>conftest.$ac_ext <<_ACEOF
16469/* end confdefs.h. */
16470$ac_includes_default
16471int
16472main ()
16473{
16474static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16475test_array [0] = 0
16476
16477 ;
16478 return 0;
16479}
16480_ACEOF
16481rm -f conftest.$ac_objext
16482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16483 (eval $ac_compile) 2>conftest.er1
a848cd7e 16484 ac_status=$?
ac1cb8d3
VS
16485 grep -v '^ *+' conftest.er1 >conftest.err
16486 rm -f conftest.er1
16487 cat conftest.err >&5
a848cd7e
SC
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); } &&
9dd0f6c2 16490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492 (eval $ac_try) 2>&5
16493 ac_status=$?
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; } &&
16496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16502 ac_hi=-1 ac_mid=-1
16503 while :; do
16504 cat >conftest.$ac_ext <<_ACEOF
16505/* confdefs.h. */
16506_ACEOF
16507cat confdefs.h >>conftest.$ac_ext
16508cat >>conftest.$ac_ext <<_ACEOF
16509/* end confdefs.h. */
16510$ac_includes_default
16511int
16512main ()
16513{
16514static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16515test_array [0] = 0
16516
16517 ;
16518 return 0;
16519}
16520_ACEOF
16521rm -f conftest.$ac_objext
16522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16523 (eval $ac_compile) 2>conftest.er1
a848cd7e 16524 ac_status=$?
ac1cb8d3
VS
16525 grep -v '^ *+' conftest.er1 >conftest.err
16526 rm -f conftest.er1
16527 cat conftest.err >&5
a848cd7e
SC
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } &&
9dd0f6c2 16530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532 (eval $ac_try) 2>&5
16533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; } &&
16536 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
16542 ac_lo=$ac_mid; break
16543else
16544 echo "$as_me: failed program was:" >&5
16545sed 's/^/| /' conftest.$ac_ext >&5
16546
16547ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16548 if test $ac_mid -le $ac_hi; then
16549 ac_lo= ac_hi=
16550 break
16551 fi
16552 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16553fi
ac1cb8d3 16554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16555 done
16556else
16557 echo "$as_me: failed program was:" >&5
16558sed 's/^/| /' conftest.$ac_ext >&5
16559
16560ac_lo= ac_hi=
16561fi
ac1cb8d3 16562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16563fi
ac1cb8d3 16564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16565# Binary search between lo and hi bounds.
16566while test "x$ac_lo" != "x$ac_hi"; do
16567 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16568 cat >conftest.$ac_ext <<_ACEOF
16569/* confdefs.h. */
16570_ACEOF
16571cat confdefs.h >>conftest.$ac_ext
16572cat >>conftest.$ac_ext <<_ACEOF
16573/* end confdefs.h. */
16574$ac_includes_default
16575int
16576main ()
16577{
16578static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16579test_array [0] = 0
16580
16581 ;
16582 return 0;
16583}
16584_ACEOF
16585rm -f conftest.$ac_objext
16586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16587 (eval $ac_compile) 2>conftest.er1
a848cd7e 16588 ac_status=$?
ac1cb8d3
VS
16589 grep -v '^ *+' conftest.er1 >conftest.err
16590 rm -f conftest.er1
16591 cat conftest.err >&5
a848cd7e
SC
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } &&
9dd0f6c2 16594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596 (eval $ac_try) 2>&5
16597 ac_status=$?
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; } &&
16600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602 (eval $ac_try) 2>&5
16603 ac_status=$?
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }; }; then
16606 ac_hi=$ac_mid
16607else
16608 echo "$as_me: failed program was:" >&5
16609sed 's/^/| /' conftest.$ac_ext >&5
16610
16611ac_lo=`expr '(' $ac_mid ')' + 1`
16612fi
ac1cb8d3 16613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16614done
16615case $ac_lo in
16616?*) ac_cv_sizeof_void_p=$ac_lo;;
16617'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16618See \`config.log' for more details." >&5
16619echo "$as_me: error: cannot compute sizeof (void *), 77
16620See \`config.log' for more details." >&2;}
16621 { (exit 1); exit 1; }; } ;;
16622esac
16623else
16624 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
16625 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16626echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16627 { (exit 1); exit 1; }; }
16628else
16629 cat >conftest.$ac_ext <<_ACEOF
16630/* confdefs.h. */
16631_ACEOF
16632cat confdefs.h >>conftest.$ac_ext
16633cat >>conftest.$ac_ext <<_ACEOF
16634/* end confdefs.h. */
16635$ac_includes_default
16636long longval () { return (long) (sizeof (void *)); }
16637unsigned long ulongval () { return (long) (sizeof (void *)); }
16638#include <stdio.h>
16639#include <stdlib.h>
16640int
16641main ()
16642{
16643
16644 FILE *f = fopen ("conftest.val", "w");
16645 if (! f)
16646 exit (1);
16647 if (((long) (sizeof (void *))) < 0)
16648 {
16649 long i = longval ();
16650 if (i != ((long) (sizeof (void *))))
16651 exit (1);
16652 fprintf (f, "%ld\n", i);
16653 }
16654 else
16655 {
16656 unsigned long i = ulongval ();
16657 if (i != ((long) (sizeof (void *))))
16658 exit (1);
16659 fprintf (f, "%lu\n", i);
16660 }
16661 exit (ferror (f) || fclose (f) != 0);
16662
16663 ;
16664 return 0;
16665}
16666_ACEOF
16667rm -f conftest$ac_exeext
16668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16669 (eval $ac_link) 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16675 ac_status=$?
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16678 ac_cv_sizeof_void_p=`cat conftest.val`
16679else
16680 echo "$as_me: program exited with status $ac_status" >&5
16681echo "$as_me: failed program was:" >&5
16682sed 's/^/| /' conftest.$ac_ext >&5
16683
16684( exit $ac_status )
16685{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16686See \`config.log' for more details." >&5
16687echo "$as_me: error: cannot compute sizeof (void *), 77
16688See \`config.log' for more details." >&2;}
16689 { (exit 1); exit 1; }; }
16690fi
ac1cb8d3 16691rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16692fi
16693fi
16694rm -f conftest.val
16695else
16696 ac_cv_sizeof_void_p=0
16697fi
16698fi
16699echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16700echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16701cat >>confdefs.h <<_ACEOF
16702#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16703_ACEOF
16704
16705
16706echo "$as_me:$LINENO: checking for int" >&5
16707echo $ECHO_N "checking for int... $ECHO_C" >&6
16708if test "${ac_cv_type_int+set}" = set; then
16709 echo $ECHO_N "(cached) $ECHO_C" >&6
16710else
16711 cat >conftest.$ac_ext <<_ACEOF
16712/* confdefs.h. */
16713_ACEOF
16714cat confdefs.h >>conftest.$ac_ext
16715cat >>conftest.$ac_ext <<_ACEOF
16716/* end confdefs.h. */
16717$ac_includes_default
16718int
16719main ()
16720{
16721if ((int *) 0)
16722 return 0;
16723if (sizeof (int))
16724 return 0;
16725 ;
16726 return 0;
16727}
16728_ACEOF
16729rm -f conftest.$ac_objext
16730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16731 (eval $ac_compile) 2>conftest.er1
a848cd7e 16732 ac_status=$?
ac1cb8d3
VS
16733 grep -v '^ *+' conftest.er1 >conftest.err
16734 rm -f conftest.er1
16735 cat conftest.err >&5
a848cd7e
SC
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
9dd0f6c2 16738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16741 ac_status=$?
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; } &&
16744 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; }; then
16750 ac_cv_type_int=yes
16751else
16752 echo "$as_me: failed program was:" >&5
16753sed 's/^/| /' conftest.$ac_ext >&5
16754
16755ac_cv_type_int=no
16756fi
ac1cb8d3 16757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16758fi
16759echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16760echo "${ECHO_T}$ac_cv_type_int" >&6
16761
16762echo "$as_me:$LINENO: checking size of int" >&5
16763echo $ECHO_N "checking size of int... $ECHO_C" >&6
16764if test "${ac_cv_sizeof_int+set}" = set; then
16765 echo $ECHO_N "(cached) $ECHO_C" >&6
16766else
16767 if test "$ac_cv_type_int" = yes; then
16768 # The cast to unsigned long works around a bug in the HP C Compiler
16769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16771 # This bug is HP SR number 8606223364.
16772 if test "$cross_compiling" = yes; then
16773 # Depending upon the size, compute the lo and hi bounds.
16774cat >conftest.$ac_ext <<_ACEOF
16775/* confdefs.h. */
16776_ACEOF
16777cat confdefs.h >>conftest.$ac_ext
16778cat >>conftest.$ac_ext <<_ACEOF
16779/* end confdefs.h. */
16780$ac_includes_default
16781int
16782main ()
16783{
16784static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16785test_array [0] = 0
16786
16787 ;
16788 return 0;
16789}
16790_ACEOF
16791rm -f conftest.$ac_objext
16792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16793 (eval $ac_compile) 2>conftest.er1
a848cd7e 16794 ac_status=$?
ac1cb8d3
VS
16795 grep -v '^ *+' conftest.er1 >conftest.err
16796 rm -f conftest.er1
16797 cat conftest.err >&5
a848cd7e
SC
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); } &&
9dd0f6c2 16800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16802 (eval $ac_try) 2>&5
16803 ac_status=$?
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); }; } &&
16806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; }; then
16812 ac_lo=0 ac_mid=0
16813 while :; do
16814 cat >conftest.$ac_ext <<_ACEOF
16815/* confdefs.h. */
16816_ACEOF
16817cat confdefs.h >>conftest.$ac_ext
16818cat >>conftest.$ac_ext <<_ACEOF
16819/* end confdefs.h. */
16820$ac_includes_default
16821int
16822main ()
16823{
16824static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16825test_array [0] = 0
16826
16827 ;
16828 return 0;
16829}
16830_ACEOF
16831rm -f conftest.$ac_objext
16832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16833 (eval $ac_compile) 2>conftest.er1
a848cd7e 16834 ac_status=$?
ac1cb8d3
VS
16835 grep -v '^ *+' conftest.er1 >conftest.err
16836 rm -f conftest.er1
16837 cat conftest.err >&5
a848cd7e
SC
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } &&
9dd0f6c2 16840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } &&
16846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852 ac_hi=$ac_mid; break
16853else
16854 echo "$as_me: failed program was:" >&5
16855sed 's/^/| /' conftest.$ac_ext >&5
16856
16857ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16858 if test $ac_lo -le $ac_mid; then
16859 ac_lo= ac_hi=
16860 break
16861 fi
16862 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16863fi
ac1cb8d3 16864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16865 done
16866else
16867 echo "$as_me: failed program was:" >&5
16868sed 's/^/| /' conftest.$ac_ext >&5
16869
16870cat >conftest.$ac_ext <<_ACEOF
16871/* confdefs.h. */
16872_ACEOF
16873cat confdefs.h >>conftest.$ac_ext
16874cat >>conftest.$ac_ext <<_ACEOF
16875/* end confdefs.h. */
16876$ac_includes_default
16877int
16878main ()
16879{
16880static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16881test_array [0] = 0
16882
16883 ;
16884 return 0;
16885}
16886_ACEOF
16887rm -f conftest.$ac_objext
16888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16889 (eval $ac_compile) 2>conftest.er1
a848cd7e 16890 ac_status=$?
ac1cb8d3
VS
16891 grep -v '^ *+' conftest.er1 >conftest.err
16892 rm -f conftest.er1
16893 cat conftest.err >&5
a848cd7e
SC
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); } &&
9dd0f6c2 16896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898 (eval $ac_try) 2>&5
16899 ac_status=$?
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; } &&
16902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; }; then
16908 ac_hi=-1 ac_mid=-1
16909 while :; do
16910 cat >conftest.$ac_ext <<_ACEOF
16911/* confdefs.h. */
16912_ACEOF
16913cat confdefs.h >>conftest.$ac_ext
16914cat >>conftest.$ac_ext <<_ACEOF
16915/* end confdefs.h. */
16916$ac_includes_default
16917int
16918main ()
16919{
16920static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16921test_array [0] = 0
16922
16923 ;
16924 return 0;
16925}
16926_ACEOF
16927rm -f conftest.$ac_objext
16928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16929 (eval $ac_compile) 2>conftest.er1
a848cd7e 16930 ac_status=$?
ac1cb8d3
VS
16931 grep -v '^ *+' conftest.er1 >conftest.err
16932 rm -f conftest.er1
16933 cat conftest.err >&5
a848cd7e
SC
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } &&
9dd0f6c2 16936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938 (eval $ac_try) 2>&5
16939 ac_status=$?
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }; } &&
16942 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; }; then
16948 ac_lo=$ac_mid; break
16949else
16950 echo "$as_me: failed program was:" >&5
16951sed 's/^/| /' conftest.$ac_ext >&5
16952
16953ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16954 if test $ac_mid -le $ac_hi; then
16955 ac_lo= ac_hi=
16956 break
16957 fi
16958 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16959fi
ac1cb8d3 16960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16961 done
16962else
16963 echo "$as_me: failed program was:" >&5
16964sed 's/^/| /' conftest.$ac_ext >&5
16965
16966ac_lo= ac_hi=
16967fi
ac1cb8d3 16968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16969fi
ac1cb8d3 16970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16971# Binary search between lo and hi bounds.
16972while test "x$ac_lo" != "x$ac_hi"; do
16973 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16974 cat >conftest.$ac_ext <<_ACEOF
16975/* confdefs.h. */
16976_ACEOF
16977cat confdefs.h >>conftest.$ac_ext
16978cat >>conftest.$ac_ext <<_ACEOF
16979/* end confdefs.h. */
16980$ac_includes_default
16981int
16982main ()
16983{
16984static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16985test_array [0] = 0
16986
16987 ;
16988 return 0;
16989}
16990_ACEOF
16991rm -f conftest.$ac_objext
16992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16993 (eval $ac_compile) 2>conftest.er1
a848cd7e 16994 ac_status=$?
ac1cb8d3
VS
16995 grep -v '^ *+' conftest.er1 >conftest.err
16996 rm -f conftest.er1
16997 cat conftest.err >&5
a848cd7e
SC
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); } &&
9dd0f6c2 17000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17003 ac_status=$?
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; } &&
17006 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; }; then
17012 ac_hi=$ac_mid
17013else
17014 echo "$as_me: failed program was:" >&5
17015sed 's/^/| /' conftest.$ac_ext >&5
17016
17017ac_lo=`expr '(' $ac_mid ')' + 1`
17018fi
ac1cb8d3 17019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17020done
17021case $ac_lo in
17022?*) ac_cv_sizeof_int=$ac_lo;;
17023'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17024See \`config.log' for more details." >&5
17025echo "$as_me: error: cannot compute sizeof (int), 77
17026See \`config.log' for more details." >&2;}
17027 { (exit 1); exit 1; }; } ;;
17028esac
17029else
17030 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17031 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17032echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17033 { (exit 1); exit 1; }; }
17034else
17035 cat >conftest.$ac_ext <<_ACEOF
17036/* confdefs.h. */
17037_ACEOF
17038cat confdefs.h >>conftest.$ac_ext
17039cat >>conftest.$ac_ext <<_ACEOF
17040/* end confdefs.h. */
17041$ac_includes_default
17042long longval () { return (long) (sizeof (int)); }
17043unsigned long ulongval () { return (long) (sizeof (int)); }
17044#include <stdio.h>
17045#include <stdlib.h>
17046int
17047main ()
17048{
17049
17050 FILE *f = fopen ("conftest.val", "w");
17051 if (! f)
17052 exit (1);
17053 if (((long) (sizeof (int))) < 0)
17054 {
17055 long i = longval ();
17056 if (i != ((long) (sizeof (int))))
17057 exit (1);
17058 fprintf (f, "%ld\n", i);
17059 }
17060 else
17061 {
17062 unsigned long i = ulongval ();
17063 if (i != ((long) (sizeof (int))))
17064 exit (1);
17065 fprintf (f, "%lu\n", i);
17066 }
17067 exit (ferror (f) || fclose (f) != 0);
17068
17069 ;
17070 return 0;
17071}
17072_ACEOF
17073rm -f conftest$ac_exeext
17074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17075 (eval $ac_link) 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080 (eval $ac_try) 2>&5
17081 ac_status=$?
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; }; then
17084 ac_cv_sizeof_int=`cat conftest.val`
17085else
17086 echo "$as_me: program exited with status $ac_status" >&5
17087echo "$as_me: failed program was:" >&5
17088sed 's/^/| /' conftest.$ac_ext >&5
17089
17090( exit $ac_status )
17091{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17092See \`config.log' for more details." >&5
17093echo "$as_me: error: cannot compute sizeof (int), 77
17094See \`config.log' for more details." >&2;}
17095 { (exit 1); exit 1; }; }
17096fi
ac1cb8d3 17097rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17098fi
17099fi
17100rm -f conftest.val
17101else
17102 ac_cv_sizeof_int=0
17103fi
17104fi
17105echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17106echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17107cat >>confdefs.h <<_ACEOF
17108#define SIZEOF_INT $ac_cv_sizeof_int
17109_ACEOF
17110
17111
17112echo "$as_me:$LINENO: checking for long" >&5
17113echo $ECHO_N "checking for long... $ECHO_C" >&6
17114if test "${ac_cv_type_long+set}" = set; then
17115 echo $ECHO_N "(cached) $ECHO_C" >&6
17116else
17117 cat >conftest.$ac_ext <<_ACEOF
17118/* confdefs.h. */
17119_ACEOF
17120cat confdefs.h >>conftest.$ac_ext
17121cat >>conftest.$ac_ext <<_ACEOF
17122/* end confdefs.h. */
17123$ac_includes_default
17124int
17125main ()
17126{
17127if ((long *) 0)
17128 return 0;
17129if (sizeof (long))
17130 return 0;
17131 ;
17132 return 0;
17133}
17134_ACEOF
17135rm -f conftest.$ac_objext
17136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17137 (eval $ac_compile) 2>conftest.er1
a848cd7e 17138 ac_status=$?
ac1cb8d3
VS
17139 grep -v '^ *+' conftest.er1 >conftest.err
17140 rm -f conftest.er1
17141 cat conftest.err >&5
a848cd7e
SC
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } &&
9dd0f6c2 17144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146 (eval $ac_try) 2>&5
17147 ac_status=$?
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; } &&
17150 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152 (eval $ac_try) 2>&5
17153 ac_status=$?
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; }; then
17156 ac_cv_type_long=yes
17157else
17158 echo "$as_me: failed program was:" >&5
17159sed 's/^/| /' conftest.$ac_ext >&5
17160
17161ac_cv_type_long=no
17162fi
ac1cb8d3 17163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17164fi
17165echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17166echo "${ECHO_T}$ac_cv_type_long" >&6
17167
17168echo "$as_me:$LINENO: checking size of long" >&5
17169echo $ECHO_N "checking size of long... $ECHO_C" >&6
17170if test "${ac_cv_sizeof_long+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17172else
17173 if test "$ac_cv_type_long" = yes; then
17174 # The cast to unsigned long works around a bug in the HP C Compiler
17175 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17176 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17177 # This bug is HP SR number 8606223364.
17178 if test "$cross_compiling" = yes; then
17179 # Depending upon the size, compute the lo and hi bounds.
17180cat >conftest.$ac_ext <<_ACEOF
17181/* confdefs.h. */
17182_ACEOF
17183cat confdefs.h >>conftest.$ac_ext
17184cat >>conftest.$ac_ext <<_ACEOF
17185/* end confdefs.h. */
17186$ac_includes_default
17187int
17188main ()
17189{
17190static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17191test_array [0] = 0
17192
17193 ;
17194 return 0;
17195}
17196_ACEOF
17197rm -f conftest.$ac_objext
17198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17199 (eval $ac_compile) 2>conftest.er1
a848cd7e 17200 ac_status=$?
ac1cb8d3
VS
17201 grep -v '^ *+' conftest.er1 >conftest.err
17202 rm -f conftest.er1
17203 cat conftest.err >&5
a848cd7e
SC
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } &&
9dd0f6c2 17206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208 (eval $ac_try) 2>&5
17209 ac_status=$?
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; } &&
17212 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214 (eval $ac_try) 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; }; then
17218 ac_lo=0 ac_mid=0
17219 while :; do
17220 cat >conftest.$ac_ext <<_ACEOF
17221/* confdefs.h. */
17222_ACEOF
17223cat confdefs.h >>conftest.$ac_ext
17224cat >>conftest.$ac_ext <<_ACEOF
17225/* end confdefs.h. */
17226$ac_includes_default
17227int
17228main ()
17229{
17230static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17231test_array [0] = 0
17232
17233 ;
17234 return 0;
17235}
17236_ACEOF
17237rm -f conftest.$ac_objext
17238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17239 (eval $ac_compile) 2>conftest.er1
a848cd7e 17240 ac_status=$?
ac1cb8d3
VS
17241 grep -v '^ *+' conftest.er1 >conftest.err
17242 rm -f conftest.er1
17243 cat conftest.err >&5
a848cd7e
SC
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } &&
9dd0f6c2 17246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17249 ac_status=$?
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; } &&
17252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 ac_hi=$ac_mid; break
17259else
17260 echo "$as_me: failed program was:" >&5
17261sed 's/^/| /' conftest.$ac_ext >&5
17262
17263ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17264 if test $ac_lo -le $ac_mid; then
17265 ac_lo= ac_hi=
17266 break
17267 fi
17268 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17269fi
ac1cb8d3 17270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17271 done
17272else
17273 echo "$as_me: failed program was:" >&5
17274sed 's/^/| /' conftest.$ac_ext >&5
17275
17276cat >conftest.$ac_ext <<_ACEOF
17277/* confdefs.h. */
17278_ACEOF
17279cat confdefs.h >>conftest.$ac_ext
17280cat >>conftest.$ac_ext <<_ACEOF
17281/* end confdefs.h. */
17282$ac_includes_default
17283int
17284main ()
17285{
17286static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17287test_array [0] = 0
17288
17289 ;
17290 return 0;
17291}
17292_ACEOF
17293rm -f conftest.$ac_objext
17294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17295 (eval $ac_compile) 2>conftest.er1
a848cd7e 17296 ac_status=$?
ac1cb8d3
VS
17297 grep -v '^ *+' conftest.er1 >conftest.err
17298 rm -f conftest.er1
17299 cat conftest.err >&5
a848cd7e
SC
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } &&
9dd0f6c2 17302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17305 ac_status=$?
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; } &&
17308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314 ac_hi=-1 ac_mid=-1
17315 while :; do
17316 cat >conftest.$ac_ext <<_ACEOF
17317/* confdefs.h. */
17318_ACEOF
17319cat confdefs.h >>conftest.$ac_ext
17320cat >>conftest.$ac_ext <<_ACEOF
17321/* end confdefs.h. */
17322$ac_includes_default
17323int
17324main ()
17325{
17326static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17327test_array [0] = 0
17328
17329 ;
17330 return 0;
17331}
17332_ACEOF
17333rm -f conftest.$ac_objext
17334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17335 (eval $ac_compile) 2>conftest.er1
a848cd7e 17336 ac_status=$?
ac1cb8d3
VS
17337 grep -v '^ *+' conftest.er1 >conftest.err
17338 rm -f conftest.er1
17339 cat conftest.err >&5
a848cd7e
SC
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } &&
9dd0f6c2 17342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344 (eval $ac_try) 2>&5
17345 ac_status=$?
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; } &&
17348 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; }; then
17354 ac_lo=$ac_mid; break
17355else
17356 echo "$as_me: failed program was:" >&5
17357sed 's/^/| /' conftest.$ac_ext >&5
17358
17359ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17360 if test $ac_mid -le $ac_hi; then
17361 ac_lo= ac_hi=
17362 break
17363 fi
17364 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17365fi
ac1cb8d3 17366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17367 done
17368else
17369 echo "$as_me: failed program was:" >&5
17370sed 's/^/| /' conftest.$ac_ext >&5
17371
17372ac_lo= ac_hi=
17373fi
ac1cb8d3 17374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17375fi
ac1cb8d3 17376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17377# Binary search between lo and hi bounds.
17378while test "x$ac_lo" != "x$ac_hi"; do
17379 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17380 cat >conftest.$ac_ext <<_ACEOF
17381/* confdefs.h. */
17382_ACEOF
17383cat confdefs.h >>conftest.$ac_ext
17384cat >>conftest.$ac_ext <<_ACEOF
17385/* end confdefs.h. */
17386$ac_includes_default
17387int
17388main ()
17389{
17390static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17391test_array [0] = 0
17392
17393 ;
17394 return 0;
17395}
17396_ACEOF
17397rm -f conftest.$ac_objext
17398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17399 (eval $ac_compile) 2>conftest.er1
a848cd7e 17400 ac_status=$?
ac1cb8d3
VS
17401 grep -v '^ *+' conftest.er1 >conftest.err
17402 rm -f conftest.er1
17403 cat conftest.err >&5
a848cd7e
SC
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } &&
9dd0f6c2 17406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408 (eval $ac_try) 2>&5
17409 ac_status=$?
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; } &&
17412 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414 (eval $ac_try) 2>&5
17415 ac_status=$?
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; }; then
17418 ac_hi=$ac_mid
17419else
17420 echo "$as_me: failed program was:" >&5
17421sed 's/^/| /' conftest.$ac_ext >&5
17422
17423ac_lo=`expr '(' $ac_mid ')' + 1`
17424fi
ac1cb8d3 17425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17426done
17427case $ac_lo in
17428?*) ac_cv_sizeof_long=$ac_lo;;
17429'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17430See \`config.log' for more details." >&5
17431echo "$as_me: error: cannot compute sizeof (long), 77
17432See \`config.log' for more details." >&2;}
17433 { (exit 1); exit 1; }; } ;;
17434esac
17435else
17436 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17437 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17438echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17439 { (exit 1); exit 1; }; }
17440else
17441 cat >conftest.$ac_ext <<_ACEOF
17442/* confdefs.h. */
17443_ACEOF
17444cat confdefs.h >>conftest.$ac_ext
17445cat >>conftest.$ac_ext <<_ACEOF
17446/* end confdefs.h. */
17447$ac_includes_default
17448long longval () { return (long) (sizeof (long)); }
17449unsigned long ulongval () { return (long) (sizeof (long)); }
17450#include <stdio.h>
17451#include <stdlib.h>
17452int
17453main ()
17454{
17455
17456 FILE *f = fopen ("conftest.val", "w");
17457 if (! f)
17458 exit (1);
17459 if (((long) (sizeof (long))) < 0)
17460 {
17461 long i = longval ();
17462 if (i != ((long) (sizeof (long))))
17463 exit (1);
17464 fprintf (f, "%ld\n", i);
17465 }
17466 else
17467 {
17468 unsigned long i = ulongval ();
17469 if (i != ((long) (sizeof (long))))
17470 exit (1);
17471 fprintf (f, "%lu\n", i);
17472 }
17473 exit (ferror (f) || fclose (f) != 0);
17474
17475 ;
17476 return 0;
17477}
17478_ACEOF
17479rm -f conftest$ac_exeext
17480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17481 (eval $ac_link) 2>&5
17482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486 (eval $ac_try) 2>&5
17487 ac_status=$?
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; }; then
17490 ac_cv_sizeof_long=`cat conftest.val`
17491else
17492 echo "$as_me: program exited with status $ac_status" >&5
17493echo "$as_me: failed program was:" >&5
17494sed 's/^/| /' conftest.$ac_ext >&5
17495
17496( exit $ac_status )
17497{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17498See \`config.log' for more details." >&5
17499echo "$as_me: error: cannot compute sizeof (long), 77
17500See \`config.log' for more details." >&2;}
17501 { (exit 1); exit 1; }; }
17502fi
ac1cb8d3 17503rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17504fi
17505fi
17506rm -f conftest.val
17507else
17508 ac_cv_sizeof_long=0
17509fi
17510fi
17511echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17512echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17513cat >>confdefs.h <<_ACEOF
17514#define SIZEOF_LONG $ac_cv_sizeof_long
17515_ACEOF
17516
17517
17518echo "$as_me:$LINENO: checking for size_t" >&5
17519echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17520if test "${ac_cv_type_size_t+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17522else
17523 cat >conftest.$ac_ext <<_ACEOF
17524/* confdefs.h. */
17525_ACEOF
17526cat confdefs.h >>conftest.$ac_ext
17527cat >>conftest.$ac_ext <<_ACEOF
17528/* end confdefs.h. */
17529$ac_includes_default
17530int
17531main ()
17532{
17533if ((size_t *) 0)
17534 return 0;
17535if (sizeof (size_t))
17536 return 0;
17537 ;
17538 return 0;
17539}
17540_ACEOF
17541rm -f conftest.$ac_objext
17542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17543 (eval $ac_compile) 2>conftest.er1
a848cd7e 17544 ac_status=$?
ac1cb8d3
VS
17545 grep -v '^ *+' conftest.er1 >conftest.err
17546 rm -f conftest.er1
17547 cat conftest.err >&5
a848cd7e
SC
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } &&
9dd0f6c2 17550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552 (eval $ac_try) 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; } &&
17556 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17559 ac_status=$?
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; }; then
17562 ac_cv_type_size_t=yes
17563else
17564 echo "$as_me: failed program was:" >&5
17565sed 's/^/| /' conftest.$ac_ext >&5
17566
17567ac_cv_type_size_t=no
17568fi
ac1cb8d3 17569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17570fi
17571echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17572echo "${ECHO_T}$ac_cv_type_size_t" >&6
17573
17574echo "$as_me:$LINENO: checking size of size_t" >&5
17575echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17576if test "${ac_cv_sizeof_size_t+set}" = set; then
17577 echo $ECHO_N "(cached) $ECHO_C" >&6
17578else
17579 if test "$ac_cv_type_size_t" = yes; then
17580 # The cast to unsigned long works around a bug in the HP C Compiler
17581 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17582 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17583 # This bug is HP SR number 8606223364.
17584 if test "$cross_compiling" = yes; then
17585 # Depending upon the size, compute the lo and hi bounds.
17586cat >conftest.$ac_ext <<_ACEOF
17587/* confdefs.h. */
17588_ACEOF
17589cat confdefs.h >>conftest.$ac_ext
17590cat >>conftest.$ac_ext <<_ACEOF
17591/* end confdefs.h. */
17592$ac_includes_default
17593int
17594main ()
17595{
17596static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17597test_array [0] = 0
17598
17599 ;
17600 return 0;
17601}
17602_ACEOF
17603rm -f conftest.$ac_objext
17604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17605 (eval $ac_compile) 2>conftest.er1
a848cd7e 17606 ac_status=$?
ac1cb8d3
VS
17607 grep -v '^ *+' conftest.er1 >conftest.err
17608 rm -f conftest.er1
17609 cat conftest.err >&5
a848cd7e
SC
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } &&
9dd0f6c2 17612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; } &&
17618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17621 ac_status=$?
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; }; then
17624 ac_lo=0 ac_mid=0
17625 while :; do
17626 cat >conftest.$ac_ext <<_ACEOF
17627/* confdefs.h. */
17628_ACEOF
17629cat confdefs.h >>conftest.$ac_ext
17630cat >>conftest.$ac_ext <<_ACEOF
17631/* end confdefs.h. */
17632$ac_includes_default
17633int
17634main ()
17635{
17636static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17637test_array [0] = 0
17638
17639 ;
17640 return 0;
17641}
17642_ACEOF
17643rm -f conftest.$ac_objext
17644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17645 (eval $ac_compile) 2>conftest.er1
a848cd7e 17646 ac_status=$?
ac1cb8d3
VS
17647 grep -v '^ *+' conftest.er1 >conftest.err
17648 rm -f conftest.er1
17649 cat conftest.err >&5
a848cd7e
SC
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
9dd0f6c2 17652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; } &&
17658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; }; then
17664 ac_hi=$ac_mid; break
17665else
17666 echo "$as_me: failed program was:" >&5
17667sed 's/^/| /' conftest.$ac_ext >&5
17668
17669ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17670 if test $ac_lo -le $ac_mid; then
17671 ac_lo= ac_hi=
17672 break
17673 fi
17674 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17675fi
ac1cb8d3 17676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17677 done
17678else
17679 echo "$as_me: failed program was:" >&5
17680sed 's/^/| /' conftest.$ac_ext >&5
17681
17682cat >conftest.$ac_ext <<_ACEOF
17683/* confdefs.h. */
17684_ACEOF
17685cat confdefs.h >>conftest.$ac_ext
17686cat >>conftest.$ac_ext <<_ACEOF
17687/* end confdefs.h. */
17688$ac_includes_default
17689int
17690main ()
17691{
17692static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17693test_array [0] = 0
17694
17695 ;
17696 return 0;
17697}
17698_ACEOF
17699rm -f conftest.$ac_objext
17700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17701 (eval $ac_compile) 2>conftest.er1
a848cd7e 17702 ac_status=$?
ac1cb8d3
VS
17703 grep -v '^ *+' conftest.er1 >conftest.err
17704 rm -f conftest.er1
17705 cat conftest.err >&5
a848cd7e
SC
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); } &&
9dd0f6c2 17708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; } &&
17714 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; }; then
17720 ac_hi=-1 ac_mid=-1
17721 while :; do
17722 cat >conftest.$ac_ext <<_ACEOF
17723/* confdefs.h. */
17724_ACEOF
17725cat confdefs.h >>conftest.$ac_ext
17726cat >>conftest.$ac_ext <<_ACEOF
17727/* end confdefs.h. */
17728$ac_includes_default
17729int
17730main ()
17731{
17732static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17733test_array [0] = 0
17734
17735 ;
17736 return 0;
17737}
17738_ACEOF
17739rm -f conftest.$ac_objext
17740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17741 (eval $ac_compile) 2>conftest.er1
a848cd7e 17742 ac_status=$?
ac1cb8d3
VS
17743 grep -v '^ *+' conftest.er1 >conftest.err
17744 rm -f conftest.er1
17745 cat conftest.err >&5
a848cd7e
SC
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } &&
9dd0f6c2 17748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17751 ac_status=$?
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; } &&
17754 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; }; then
17760 ac_lo=$ac_mid; break
17761else
17762 echo "$as_me: failed program was:" >&5
17763sed 's/^/| /' conftest.$ac_ext >&5
17764
17765ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17766 if test $ac_mid -le $ac_hi; then
17767 ac_lo= ac_hi=
17768 break
17769 fi
17770 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17771fi
ac1cb8d3 17772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17773 done
17774else
17775 echo "$as_me: failed program was:" >&5
17776sed 's/^/| /' conftest.$ac_ext >&5
17777
17778ac_lo= ac_hi=
17779fi
ac1cb8d3 17780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17781fi
ac1cb8d3 17782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17783# Binary search between lo and hi bounds.
17784while test "x$ac_lo" != "x$ac_hi"; do
17785 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17786 cat >conftest.$ac_ext <<_ACEOF
17787/* confdefs.h. */
17788_ACEOF
17789cat confdefs.h >>conftest.$ac_ext
17790cat >>conftest.$ac_ext <<_ACEOF
17791/* end confdefs.h. */
17792$ac_includes_default
17793int
17794main ()
17795{
17796static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17797test_array [0] = 0
17798
17799 ;
17800 return 0;
17801}
17802_ACEOF
17803rm -f conftest.$ac_objext
17804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17805 (eval $ac_compile) 2>conftest.er1
a848cd7e 17806 ac_status=$?
ac1cb8d3
VS
17807 grep -v '^ *+' conftest.er1 >conftest.err
17808 rm -f conftest.er1
17809 cat conftest.err >&5
a848cd7e
SC
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); } &&
9dd0f6c2 17812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; } &&
17818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820 (eval $ac_try) 2>&5
17821 ac_status=$?
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
17824 ac_hi=$ac_mid
17825else
17826 echo "$as_me: failed program was:" >&5
17827sed 's/^/| /' conftest.$ac_ext >&5
17828
17829ac_lo=`expr '(' $ac_mid ')' + 1`
17830fi
ac1cb8d3 17831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17832done
17833case $ac_lo in
17834?*) ac_cv_sizeof_size_t=$ac_lo;;
17835'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17836See \`config.log' for more details." >&5
17837echo "$as_me: error: cannot compute sizeof (size_t), 77
17838See \`config.log' for more details." >&2;}
17839 { (exit 1); exit 1; }; } ;;
17840esac
17841else
17842 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17843 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17844echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17845 { (exit 1); exit 1; }; }
17846else
17847 cat >conftest.$ac_ext <<_ACEOF
17848/* confdefs.h. */
17849_ACEOF
17850cat confdefs.h >>conftest.$ac_ext
17851cat >>conftest.$ac_ext <<_ACEOF
17852/* end confdefs.h. */
17853$ac_includes_default
17854long longval () { return (long) (sizeof (size_t)); }
17855unsigned long ulongval () { return (long) (sizeof (size_t)); }
17856#include <stdio.h>
17857#include <stdlib.h>
17858int
17859main ()
17860{
17861
17862 FILE *f = fopen ("conftest.val", "w");
17863 if (! f)
17864 exit (1);
17865 if (((long) (sizeof (size_t))) < 0)
17866 {
17867 long i = longval ();
17868 if (i != ((long) (sizeof (size_t))))
17869 exit (1);
17870 fprintf (f, "%ld\n", i);
17871 }
17872 else
17873 {
17874 unsigned long i = ulongval ();
17875 if (i != ((long) (sizeof (size_t))))
17876 exit (1);
17877 fprintf (f, "%lu\n", i);
17878 }
17879 exit (ferror (f) || fclose (f) != 0);
17880
17881 ;
17882 return 0;
17883}
17884_ACEOF
17885rm -f conftest$ac_exeext
17886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17887 (eval $ac_link) 2>&5
17888 ac_status=$?
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_cv_sizeof_size_t=`cat conftest.val`
17897else
17898 echo "$as_me: program exited with status $ac_status" >&5
17899echo "$as_me: failed program was:" >&5
17900sed 's/^/| /' conftest.$ac_ext >&5
17901
17902( exit $ac_status )
17903{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17904See \`config.log' for more details." >&5
17905echo "$as_me: error: cannot compute sizeof (size_t), 77
17906See \`config.log' for more details." >&2;}
17907 { (exit 1); exit 1; }; }
17908fi
ac1cb8d3 17909rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17910fi
17911fi
17912rm -f conftest.val
17913else
17914 ac_cv_sizeof_size_t=0
17915fi
17916fi
17917echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17918echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17919cat >>confdefs.h <<_ACEOF
17920#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17921_ACEOF
17922
17923
17924
17925case "${host}" in
17926 arm-*-linux* )
17927 echo "$as_me:$LINENO: checking for long long" >&5
17928echo $ECHO_N "checking for long long... $ECHO_C" >&6
17929if test "${ac_cv_type_long_long+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17931else
17932 cat >conftest.$ac_ext <<_ACEOF
17933/* confdefs.h. */
17934_ACEOF
17935cat confdefs.h >>conftest.$ac_ext
17936cat >>conftest.$ac_ext <<_ACEOF
17937/* end confdefs.h. */
17938$ac_includes_default
17939int
17940main ()
17941{
17942if ((long long *) 0)
17943 return 0;
17944if (sizeof (long long))
17945 return 0;
17946 ;
17947 return 0;
17948}
17949_ACEOF
17950rm -f conftest.$ac_objext
17951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17952 (eval $ac_compile) 2>conftest.er1
a848cd7e 17953 ac_status=$?
ac1cb8d3
VS
17954 grep -v '^ *+' conftest.er1 >conftest.err
17955 rm -f conftest.er1
17956 cat conftest.err >&5
a848cd7e
SC
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); } &&
9dd0f6c2 17959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17962 ac_status=$?
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; } &&
17965 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967 (eval $ac_try) 2>&5
17968 ac_status=$?
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); }; }; then
17971 ac_cv_type_long_long=yes
17972else
17973 echo "$as_me: failed program was:" >&5
17974sed 's/^/| /' conftest.$ac_ext >&5
17975
17976ac_cv_type_long_long=no
17977fi
ac1cb8d3 17978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17979fi
17980echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17981echo "${ECHO_T}$ac_cv_type_long_long" >&6
17982
17983echo "$as_me:$LINENO: checking size of long long" >&5
17984echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17985if test "${ac_cv_sizeof_long_long+set}" = set; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17987else
17988 if test "$ac_cv_type_long_long" = yes; then
17989 # The cast to unsigned long works around a bug in the HP C Compiler
17990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17992 # This bug is HP SR number 8606223364.
17993 if test "$cross_compiling" = yes; then
17994 # Depending upon the size, compute the lo and hi bounds.
17995cat >conftest.$ac_ext <<_ACEOF
17996/* confdefs.h. */
17997_ACEOF
17998cat confdefs.h >>conftest.$ac_ext
17999cat >>conftest.$ac_ext <<_ACEOF
18000/* end confdefs.h. */
18001$ac_includes_default
18002int
18003main ()
18004{
18005static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18006test_array [0] = 0
18007
18008 ;
18009 return 0;
18010}
18011_ACEOF
18012rm -f conftest.$ac_objext
18013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18014 (eval $ac_compile) 2>conftest.er1
a848cd7e 18015 ac_status=$?
ac1cb8d3
VS
18016 grep -v '^ *+' conftest.er1 >conftest.err
18017 rm -f conftest.er1
18018 cat conftest.err >&5
a848cd7e
SC
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } &&
9dd0f6c2 18021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18023 (eval $ac_try) 2>&5
18024 ac_status=$?
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); }; } &&
18027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; }; then
18033 ac_lo=0 ac_mid=0
18034 while :; do
18035 cat >conftest.$ac_ext <<_ACEOF
18036/* confdefs.h. */
18037_ACEOF
18038cat confdefs.h >>conftest.$ac_ext
18039cat >>conftest.$ac_ext <<_ACEOF
18040/* end confdefs.h. */
18041$ac_includes_default
18042int
18043main ()
18044{
18045static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18046test_array [0] = 0
18047
18048 ;
18049 return 0;
18050}
18051_ACEOF
18052rm -f conftest.$ac_objext
18053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18054 (eval $ac_compile) 2>conftest.er1
a848cd7e 18055 ac_status=$?
ac1cb8d3
VS
18056 grep -v '^ *+' conftest.er1 >conftest.err
18057 rm -f conftest.er1
18058 cat conftest.err >&5
a848cd7e
SC
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); } &&
9dd0f6c2 18061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063 (eval $ac_try) 2>&5
18064 ac_status=$?
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; } &&
18067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; }; then
18073 ac_hi=$ac_mid; break
18074else
18075 echo "$as_me: failed program was:" >&5
18076sed 's/^/| /' conftest.$ac_ext >&5
18077
18078ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18079 if test $ac_lo -le $ac_mid; then
18080 ac_lo= ac_hi=
18081 break
18082 fi
18083 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18084fi
ac1cb8d3 18085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18086 done
18087else
18088 echo "$as_me: failed program was:" >&5
18089sed 's/^/| /' conftest.$ac_ext >&5
18090
18091cat >conftest.$ac_ext <<_ACEOF
18092/* confdefs.h. */
18093_ACEOF
18094cat confdefs.h >>conftest.$ac_ext
18095cat >>conftest.$ac_ext <<_ACEOF
18096/* end confdefs.h. */
18097$ac_includes_default
18098int
18099main ()
18100{
18101static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18102test_array [0] = 0
18103
18104 ;
18105 return 0;
18106}
18107_ACEOF
18108rm -f conftest.$ac_objext
18109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18110 (eval $ac_compile) 2>conftest.er1
a848cd7e 18111 ac_status=$?
ac1cb8d3
VS
18112 grep -v '^ *+' conftest.er1 >conftest.err
18113 rm -f conftest.er1
18114 cat conftest.err >&5
a848cd7e
SC
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } &&
9dd0f6c2 18117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119 (eval $ac_try) 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; } &&
18123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; }; then
18129 ac_hi=-1 ac_mid=-1
18130 while :; do
18131 cat >conftest.$ac_ext <<_ACEOF
18132/* confdefs.h. */
18133_ACEOF
18134cat confdefs.h >>conftest.$ac_ext
18135cat >>conftest.$ac_ext <<_ACEOF
18136/* end confdefs.h. */
18137$ac_includes_default
18138int
18139main ()
18140{
18141static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18142test_array [0] = 0
18143
18144 ;
18145 return 0;
18146}
18147_ACEOF
18148rm -f conftest.$ac_objext
18149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18150 (eval $ac_compile) 2>conftest.er1
a848cd7e 18151 ac_status=$?
ac1cb8d3
VS
18152 grep -v '^ *+' conftest.er1 >conftest.err
18153 rm -f conftest.er1
18154 cat conftest.err >&5
a848cd7e
SC
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } &&
9dd0f6c2 18157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; } &&
18163 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; }; then
18169 ac_lo=$ac_mid; break
18170else
18171 echo "$as_me: failed program was:" >&5
18172sed 's/^/| /' conftest.$ac_ext >&5
18173
18174ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18175 if test $ac_mid -le $ac_hi; then
18176 ac_lo= ac_hi=
18177 break
18178 fi
18179 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18180fi
ac1cb8d3 18181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18182 done
18183else
18184 echo "$as_me: failed program was:" >&5
18185sed 's/^/| /' conftest.$ac_ext >&5
18186
18187ac_lo= ac_hi=
18188fi
ac1cb8d3 18189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18190fi
ac1cb8d3 18191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18192# Binary search between lo and hi bounds.
18193while test "x$ac_lo" != "x$ac_hi"; do
18194 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18195 cat >conftest.$ac_ext <<_ACEOF
18196/* confdefs.h. */
18197_ACEOF
18198cat confdefs.h >>conftest.$ac_ext
18199cat >>conftest.$ac_ext <<_ACEOF
18200/* end confdefs.h. */
18201$ac_includes_default
18202int
18203main ()
18204{
18205static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18206test_array [0] = 0
18207
18208 ;
18209 return 0;
18210}
18211_ACEOF
18212rm -f conftest.$ac_objext
18213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18214 (eval $ac_compile) 2>conftest.er1
a848cd7e 18215 ac_status=$?
ac1cb8d3
VS
18216 grep -v '^ *+' conftest.er1 >conftest.err
18217 rm -f conftest.er1
18218 cat conftest.err >&5
a848cd7e
SC
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } &&
9dd0f6c2 18221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18224 ac_status=$?
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; } &&
18227 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; }; then
18233 ac_hi=$ac_mid
18234else
18235 echo "$as_me: failed program was:" >&5
18236sed 's/^/| /' conftest.$ac_ext >&5
18237
18238ac_lo=`expr '(' $ac_mid ')' + 1`
18239fi
ac1cb8d3 18240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18241done
18242case $ac_lo in
18243?*) ac_cv_sizeof_long_long=$ac_lo;;
18244'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18245See \`config.log' for more details." >&5
18246echo "$as_me: error: cannot compute sizeof (long long), 77
18247See \`config.log' for more details." >&2;}
18248 { (exit 1); exit 1; }; } ;;
18249esac
18250else
18251 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
18252 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18253echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18254 { (exit 1); exit 1; }; }
18255else
18256 cat >conftest.$ac_ext <<_ACEOF
18257/* confdefs.h. */
18258_ACEOF
18259cat confdefs.h >>conftest.$ac_ext
18260cat >>conftest.$ac_ext <<_ACEOF
18261/* end confdefs.h. */
18262$ac_includes_default
18263long longval () { return (long) (sizeof (long long)); }
18264unsigned long ulongval () { return (long) (sizeof (long long)); }
18265#include <stdio.h>
18266#include <stdlib.h>
18267int
18268main ()
18269{
18270
18271 FILE *f = fopen ("conftest.val", "w");
18272 if (! f)
18273 exit (1);
18274 if (((long) (sizeof (long long))) < 0)
18275 {
18276 long i = longval ();
18277 if (i != ((long) (sizeof (long long))))
18278 exit (1);
18279 fprintf (f, "%ld\n", i);
18280 }
18281 else
18282 {
18283 unsigned long i = ulongval ();
18284 if (i != ((long) (sizeof (long long))))
18285 exit (1);
18286 fprintf (f, "%lu\n", i);
18287 }
18288 exit (ferror (f) || fclose (f) != 0);
18289
18290 ;
18291 return 0;
18292}
18293_ACEOF
18294rm -f conftest$ac_exeext
18295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18296 (eval $ac_link) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18301 (eval $ac_try) 2>&5
18302 ac_status=$?
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); }; }; then
18305 ac_cv_sizeof_long_long=`cat conftest.val`
18306else
18307 echo "$as_me: program exited with status $ac_status" >&5
18308echo "$as_me: failed program was:" >&5
18309sed 's/^/| /' conftest.$ac_ext >&5
18310
18311( exit $ac_status )
18312{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18313See \`config.log' for more details." >&5
18314echo "$as_me: error: cannot compute sizeof (long long), 77
18315See \`config.log' for more details." >&2;}
18316 { (exit 1); exit 1; }; }
18317fi
ac1cb8d3 18318rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18319fi
18320fi
18321rm -f conftest.val
18322else
18323 ac_cv_sizeof_long_long=0
18324fi
18325fi
18326echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18327echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18328cat >>confdefs.h <<_ACEOF
18329#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18330_ACEOF
18331
18332
18333 ;;
18334 *-hp-hpux* )
18335 echo "$as_me:$LINENO: checking for long long" >&5
18336echo $ECHO_N "checking for long long... $ECHO_C" >&6
18337if test "${ac_cv_type_long_long+set}" = set; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18339else
18340 cat >conftest.$ac_ext <<_ACEOF
18341/* confdefs.h. */
18342_ACEOF
18343cat confdefs.h >>conftest.$ac_ext
18344cat >>conftest.$ac_ext <<_ACEOF
18345/* end confdefs.h. */
18346$ac_includes_default
18347int
18348main ()
18349{
18350if ((long long *) 0)
18351 return 0;
18352if (sizeof (long long))
18353 return 0;
18354 ;
18355 return 0;
18356}
18357_ACEOF
18358rm -f conftest.$ac_objext
18359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18360 (eval $ac_compile) 2>conftest.er1
a848cd7e 18361 ac_status=$?
ac1cb8d3
VS
18362 grep -v '^ *+' conftest.er1 >conftest.err
18363 rm -f conftest.er1
18364 cat conftest.err >&5
a848cd7e
SC
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } &&
9dd0f6c2 18367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; } &&
18373 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375 (eval $ac_try) 2>&5
18376 ac_status=$?
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; }; then
18379 ac_cv_type_long_long=yes
18380else
18381 echo "$as_me: failed program was:" >&5
18382sed 's/^/| /' conftest.$ac_ext >&5
18383
18384ac_cv_type_long_long=no
18385fi
ac1cb8d3 18386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18387fi
18388echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18389echo "${ECHO_T}$ac_cv_type_long_long" >&6
18390
18391echo "$as_me:$LINENO: checking size of long long" >&5
18392echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18393if test "${ac_cv_sizeof_long_long+set}" = set; then
18394 echo $ECHO_N "(cached) $ECHO_C" >&6
18395else
18396 if test "$ac_cv_type_long_long" = yes; then
18397 # The cast to unsigned long works around a bug in the HP C Compiler
18398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18400 # This bug is HP SR number 8606223364.
18401 if test "$cross_compiling" = yes; then
18402 # Depending upon the size, compute the lo and hi bounds.
18403cat >conftest.$ac_ext <<_ACEOF
18404/* confdefs.h. */
18405_ACEOF
18406cat confdefs.h >>conftest.$ac_ext
18407cat >>conftest.$ac_ext <<_ACEOF
18408/* end confdefs.h. */
18409$ac_includes_default
18410int
18411main ()
18412{
18413static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18414test_array [0] = 0
18415
18416 ;
18417 return 0;
18418}
18419_ACEOF
18420rm -f conftest.$ac_objext
18421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18422 (eval $ac_compile) 2>conftest.er1
a848cd7e 18423 ac_status=$?
ac1cb8d3
VS
18424 grep -v '^ *+' conftest.er1 >conftest.err
18425 rm -f conftest.er1
18426 cat conftest.err >&5
a848cd7e
SC
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } &&
9dd0f6c2 18429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18432 ac_status=$?
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; } &&
18435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; }; then
18441 ac_lo=0 ac_mid=0
18442 while :; do
18443 cat >conftest.$ac_ext <<_ACEOF
18444/* confdefs.h. */
18445_ACEOF
18446cat confdefs.h >>conftest.$ac_ext
18447cat >>conftest.$ac_ext <<_ACEOF
18448/* end confdefs.h. */
18449$ac_includes_default
18450int
18451main ()
18452{
18453static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18454test_array [0] = 0
18455
18456 ;
18457 return 0;
18458}
18459_ACEOF
18460rm -f conftest.$ac_objext
18461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18462 (eval $ac_compile) 2>conftest.er1
a848cd7e 18463 ac_status=$?
ac1cb8d3
VS
18464 grep -v '^ *+' conftest.er1 >conftest.err
18465 rm -f conftest.er1
18466 cat conftest.err >&5
a848cd7e
SC
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } &&
9dd0f6c2 18469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; } &&
18475 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18481 ac_hi=$ac_mid; break
18482else
18483 echo "$as_me: failed program was:" >&5
18484sed 's/^/| /' conftest.$ac_ext >&5
18485
18486ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18487 if test $ac_lo -le $ac_mid; then
18488 ac_lo= ac_hi=
18489 break
18490 fi
18491 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18492fi
ac1cb8d3 18493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18494 done
18495else
18496 echo "$as_me: failed program was:" >&5
18497sed 's/^/| /' conftest.$ac_ext >&5
18498
18499cat >conftest.$ac_ext <<_ACEOF
18500/* confdefs.h. */
18501_ACEOF
18502cat confdefs.h >>conftest.$ac_ext
18503cat >>conftest.$ac_ext <<_ACEOF
18504/* end confdefs.h. */
18505$ac_includes_default
18506int
18507main ()
18508{
18509static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18510test_array [0] = 0
18511
18512 ;
18513 return 0;
18514}
18515_ACEOF
18516rm -f conftest.$ac_objext
18517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18518 (eval $ac_compile) 2>conftest.er1
a848cd7e 18519 ac_status=$?
ac1cb8d3
VS
18520 grep -v '^ *+' conftest.er1 >conftest.err
18521 rm -f conftest.er1
18522 cat conftest.err >&5
a848cd7e
SC
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } &&
9dd0f6c2 18525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18527 (eval $ac_try) 2>&5
18528 ac_status=$?
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; } &&
18531 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; }; then
18537 ac_hi=-1 ac_mid=-1
18538 while :; do
18539 cat >conftest.$ac_ext <<_ACEOF
18540/* confdefs.h. */
18541_ACEOF
18542cat confdefs.h >>conftest.$ac_ext
18543cat >>conftest.$ac_ext <<_ACEOF
18544/* end confdefs.h. */
18545$ac_includes_default
18546int
18547main ()
18548{
18549static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18550test_array [0] = 0
18551
18552 ;
18553 return 0;
18554}
18555_ACEOF
18556rm -f conftest.$ac_objext
18557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18558 (eval $ac_compile) 2>conftest.er1
a848cd7e 18559 ac_status=$?
ac1cb8d3
VS
18560 grep -v '^ *+' conftest.er1 >conftest.err
18561 rm -f conftest.er1
18562 cat conftest.err >&5
a848cd7e
SC
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); } &&
9dd0f6c2 18565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567 (eval $ac_try) 2>&5
18568 ac_status=$?
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; } &&
18571 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; }; then
18577 ac_lo=$ac_mid; break
18578else
18579 echo "$as_me: failed program was:" >&5
18580sed 's/^/| /' conftest.$ac_ext >&5
18581
18582ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18583 if test $ac_mid -le $ac_hi; then
18584 ac_lo= ac_hi=
18585 break
18586 fi
18587 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18588fi
ac1cb8d3 18589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18590 done
18591else
18592 echo "$as_me: failed program was:" >&5
18593sed 's/^/| /' conftest.$ac_ext >&5
18594
18595ac_lo= ac_hi=
18596fi
ac1cb8d3 18597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18598fi
ac1cb8d3 18599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18600# Binary search between lo and hi bounds.
18601while test "x$ac_lo" != "x$ac_hi"; do
18602 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18603 cat >conftest.$ac_ext <<_ACEOF
18604/* confdefs.h. */
18605_ACEOF
18606cat confdefs.h >>conftest.$ac_ext
18607cat >>conftest.$ac_ext <<_ACEOF
18608/* end confdefs.h. */
18609$ac_includes_default
18610int
18611main ()
18612{
18613static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18614test_array [0] = 0
18615
18616 ;
18617 return 0;
18618}
18619_ACEOF
18620rm -f conftest.$ac_objext
18621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18622 (eval $ac_compile) 2>conftest.er1
a848cd7e 18623 ac_status=$?
ac1cb8d3
VS
18624 grep -v '^ *+' conftest.er1 >conftest.err
18625 rm -f conftest.er1
18626 cat conftest.err >&5
a848cd7e
SC
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } &&
9dd0f6c2 18629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; } &&
18635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; }; then
18641 ac_hi=$ac_mid
18642else
18643 echo "$as_me: failed program was:" >&5
18644sed 's/^/| /' conftest.$ac_ext >&5
18645
18646ac_lo=`expr '(' $ac_mid ')' + 1`
18647fi
ac1cb8d3 18648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18649done
18650case $ac_lo in
18651?*) ac_cv_sizeof_long_long=$ac_lo;;
18652'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18653See \`config.log' for more details." >&5
18654echo "$as_me: error: cannot compute sizeof (long long), 77
18655See \`config.log' for more details." >&2;}
18656 { (exit 1); exit 1; }; } ;;
18657esac
18658else
18659 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
18660 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18661echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18662 { (exit 1); exit 1; }; }
18663else
18664 cat >conftest.$ac_ext <<_ACEOF
18665/* confdefs.h. */
18666_ACEOF
18667cat confdefs.h >>conftest.$ac_ext
18668cat >>conftest.$ac_ext <<_ACEOF
18669/* end confdefs.h. */
18670$ac_includes_default
18671long longval () { return (long) (sizeof (long long)); }
18672unsigned long ulongval () { return (long) (sizeof (long long)); }
18673#include <stdio.h>
18674#include <stdlib.h>
18675int
18676main ()
18677{
18678
18679 FILE *f = fopen ("conftest.val", "w");
18680 if (! f)
18681 exit (1);
18682 if (((long) (sizeof (long long))) < 0)
18683 {
18684 long i = longval ();
18685 if (i != ((long) (sizeof (long long))))
18686 exit (1);
18687 fprintf (f, "%ld\n", i);
18688 }
18689 else
18690 {
18691 unsigned long i = ulongval ();
18692 if (i != ((long) (sizeof (long long))))
18693 exit (1);
18694 fprintf (f, "%lu\n", i);
18695 }
18696 exit (ferror (f) || fclose (f) != 0);
18697
18698 ;
18699 return 0;
18700}
18701_ACEOF
18702rm -f conftest$ac_exeext
18703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18704 (eval $ac_link) 2>&5
18705 ac_status=$?
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709 (eval $ac_try) 2>&5
18710 ac_status=$?
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; }; then
18713 ac_cv_sizeof_long_long=`cat conftest.val`
18714else
18715 echo "$as_me: program exited with status $ac_status" >&5
18716echo "$as_me: failed program was:" >&5
18717sed 's/^/| /' conftest.$ac_ext >&5
18718
18719( exit $ac_status )
18720{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18721See \`config.log' for more details." >&5
18722echo "$as_me: error: cannot compute sizeof (long long), 77
18723See \`config.log' for more details." >&2;}
18724 { (exit 1); exit 1; }; }
18725fi
ac1cb8d3 18726rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18727fi
18728fi
18729rm -f conftest.val
18730else
18731 ac_cv_sizeof_long_long=0
18732fi
18733fi
18734echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18735echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18736cat >>confdefs.h <<_ACEOF
18737#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18738_ACEOF
18739
18740
18741 if test "$ac_cv_sizeof_long_long" != "0"; then
18742 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18743 fi
18744 ;;
18745 * )
18746 echo "$as_me:$LINENO: checking for long long" >&5
18747echo $ECHO_N "checking for long long... $ECHO_C" >&6
18748if test "${ac_cv_type_long_long+set}" = set; then
18749 echo $ECHO_N "(cached) $ECHO_C" >&6
18750else
18751 cat >conftest.$ac_ext <<_ACEOF
18752/* confdefs.h. */
18753_ACEOF
18754cat confdefs.h >>conftest.$ac_ext
18755cat >>conftest.$ac_ext <<_ACEOF
18756/* end confdefs.h. */
18757$ac_includes_default
18758int
18759main ()
18760{
18761if ((long long *) 0)
18762 return 0;
18763if (sizeof (long long))
18764 return 0;
18765 ;
18766 return 0;
18767}
18768_ACEOF
18769rm -f conftest.$ac_objext
18770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18771 (eval $ac_compile) 2>conftest.er1
a848cd7e 18772 ac_status=$?
ac1cb8d3
VS
18773 grep -v '^ *+' conftest.er1 >conftest.err
18774 rm -f conftest.er1
18775 cat conftest.err >&5
a848cd7e
SC
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } &&
9dd0f6c2 18778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780 (eval $ac_try) 2>&5
18781 ac_status=$?
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; } &&
18784 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786 (eval $ac_try) 2>&5
18787 ac_status=$?
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; }; then
18790 ac_cv_type_long_long=yes
18791else
18792 echo "$as_me: failed program was:" >&5
18793sed 's/^/| /' conftest.$ac_ext >&5
18794
18795ac_cv_type_long_long=no
18796fi
ac1cb8d3 18797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18798fi
18799echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18800echo "${ECHO_T}$ac_cv_type_long_long" >&6
18801
18802echo "$as_me:$LINENO: checking size of long long" >&5
18803echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18804if test "${ac_cv_sizeof_long_long+set}" = set; then
18805 echo $ECHO_N "(cached) $ECHO_C" >&6
18806else
18807 if test "$ac_cv_type_long_long" = yes; then
18808 # The cast to unsigned long works around a bug in the HP C Compiler
18809 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18810 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18811 # This bug is HP SR number 8606223364.
18812 if test "$cross_compiling" = yes; then
18813 # Depending upon the size, compute the lo and hi bounds.
18814cat >conftest.$ac_ext <<_ACEOF
18815/* confdefs.h. */
18816_ACEOF
18817cat confdefs.h >>conftest.$ac_ext
18818cat >>conftest.$ac_ext <<_ACEOF
18819/* end confdefs.h. */
18820$ac_includes_default
18821int
18822main ()
18823{
18824static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18825test_array [0] = 0
18826
18827 ;
18828 return 0;
18829}
18830_ACEOF
18831rm -f conftest.$ac_objext
18832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18833 (eval $ac_compile) 2>conftest.er1
a848cd7e 18834 ac_status=$?
ac1cb8d3
VS
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
a848cd7e
SC
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
9dd0f6c2 18840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18842 (eval $ac_try) 2>&5
18843 ac_status=$?
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); }; } &&
18846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; }; then
18852 ac_lo=0 ac_mid=0
18853 while :; do
18854 cat >conftest.$ac_ext <<_ACEOF
18855/* confdefs.h. */
18856_ACEOF
18857cat confdefs.h >>conftest.$ac_ext
18858cat >>conftest.$ac_ext <<_ACEOF
18859/* end confdefs.h. */
18860$ac_includes_default
18861int
18862main ()
18863{
18864static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18865test_array [0] = 0
18866
18867 ;
18868 return 0;
18869}
18870_ACEOF
18871rm -f conftest.$ac_objext
18872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18873 (eval $ac_compile) 2>conftest.er1
a848cd7e 18874 ac_status=$?
ac1cb8d3
VS
18875 grep -v '^ *+' conftest.er1 >conftest.err
18876 rm -f conftest.er1
18877 cat conftest.err >&5
a848cd7e
SC
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); } &&
9dd0f6c2 18880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18882 (eval $ac_try) 2>&5
18883 ac_status=$?
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; } &&
18886 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; }; then
18892 ac_hi=$ac_mid; break
18893else
18894 echo "$as_me: failed program was:" >&5
18895sed 's/^/| /' conftest.$ac_ext >&5
18896
18897ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18898 if test $ac_lo -le $ac_mid; then
18899 ac_lo= ac_hi=
18900 break
18901 fi
18902 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18903fi
ac1cb8d3 18904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18905 done
18906else
18907 echo "$as_me: failed program was:" >&5
18908sed 's/^/| /' conftest.$ac_ext >&5
18909
18910cat >conftest.$ac_ext <<_ACEOF
18911/* confdefs.h. */
18912_ACEOF
18913cat confdefs.h >>conftest.$ac_ext
18914cat >>conftest.$ac_ext <<_ACEOF
18915/* end confdefs.h. */
18916$ac_includes_default
18917int
18918main ()
18919{
18920static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18921test_array [0] = 0
18922
18923 ;
18924 return 0;
18925}
18926_ACEOF
18927rm -f conftest.$ac_objext
18928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18929 (eval $ac_compile) 2>conftest.er1
a848cd7e 18930 ac_status=$?
ac1cb8d3
VS
18931 grep -v '^ *+' conftest.er1 >conftest.err
18932 rm -f conftest.er1
18933 cat conftest.err >&5
a848cd7e
SC
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); } &&
9dd0f6c2 18936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938 (eval $ac_try) 2>&5
18939 ac_status=$?
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; } &&
18942 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; }; then
18948 ac_hi=-1 ac_mid=-1
18949 while :; do
18950 cat >conftest.$ac_ext <<_ACEOF
18951/* confdefs.h. */
18952_ACEOF
18953cat confdefs.h >>conftest.$ac_ext
18954cat >>conftest.$ac_ext <<_ACEOF
18955/* end confdefs.h. */
18956$ac_includes_default
18957int
18958main ()
18959{
18960static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18961test_array [0] = 0
18962
18963 ;
18964 return 0;
18965}
18966_ACEOF
18967rm -f conftest.$ac_objext
18968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18969 (eval $ac_compile) 2>conftest.er1
a848cd7e 18970 ac_status=$?
ac1cb8d3
VS
18971 grep -v '^ *+' conftest.er1 >conftest.err
18972 rm -f conftest.er1
18973 cat conftest.err >&5
a848cd7e
SC
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } &&
9dd0f6c2 18976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18978 (eval $ac_try) 2>&5
18979 ac_status=$?
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); }; } &&
18982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18984 (eval $ac_try) 2>&5
18985 ac_status=$?
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); }; }; then
18988 ac_lo=$ac_mid; break
18989else
18990 echo "$as_me: failed program was:" >&5
18991sed 's/^/| /' conftest.$ac_ext >&5
18992
18993ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18994 if test $ac_mid -le $ac_hi; then
18995 ac_lo= ac_hi=
18996 break
18997 fi
18998 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18999fi
ac1cb8d3 19000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19001 done
19002else
19003 echo "$as_me: failed program was:" >&5
19004sed 's/^/| /' conftest.$ac_ext >&5
19005
19006ac_lo= ac_hi=
19007fi
ac1cb8d3 19008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19009fi
ac1cb8d3 19010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19011# Binary search between lo and hi bounds.
19012while test "x$ac_lo" != "x$ac_hi"; do
19013 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19014 cat >conftest.$ac_ext <<_ACEOF
19015/* confdefs.h. */
19016_ACEOF
19017cat confdefs.h >>conftest.$ac_ext
19018cat >>conftest.$ac_ext <<_ACEOF
19019/* end confdefs.h. */
19020$ac_includes_default
19021int
19022main ()
19023{
19024static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19025test_array [0] = 0
19026
19027 ;
19028 return 0;
19029}
19030_ACEOF
19031rm -f conftest.$ac_objext
19032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19033 (eval $ac_compile) 2>conftest.er1
a848cd7e 19034 ac_status=$?
ac1cb8d3
VS
19035 grep -v '^ *+' conftest.er1 >conftest.err
19036 rm -f conftest.er1
19037 cat conftest.err >&5
a848cd7e
SC
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } &&
9dd0f6c2 19040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19043 ac_status=$?
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; } &&
19046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048 (eval $ac_try) 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; }; then
19052 ac_hi=$ac_mid
19053else
19054 echo "$as_me: failed program was:" >&5
19055sed 's/^/| /' conftest.$ac_ext >&5
19056
19057ac_lo=`expr '(' $ac_mid ')' + 1`
19058fi
ac1cb8d3 19059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19060done
19061case $ac_lo in
19062?*) ac_cv_sizeof_long_long=$ac_lo;;
19063'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19064See \`config.log' for more details." >&5
19065echo "$as_me: error: cannot compute sizeof (long long), 77
19066See \`config.log' for more details." >&2;}
19067 { (exit 1); exit 1; }; } ;;
19068esac
19069else
19070 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
19071 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19072echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19073 { (exit 1); exit 1; }; }
19074else
19075 cat >conftest.$ac_ext <<_ACEOF
19076/* confdefs.h. */
19077_ACEOF
19078cat confdefs.h >>conftest.$ac_ext
19079cat >>conftest.$ac_ext <<_ACEOF
19080/* end confdefs.h. */
19081$ac_includes_default
19082long longval () { return (long) (sizeof (long long)); }
19083unsigned long ulongval () { return (long) (sizeof (long long)); }
19084#include <stdio.h>
19085#include <stdlib.h>
19086int
19087main ()
19088{
19089
19090 FILE *f = fopen ("conftest.val", "w");
19091 if (! f)
19092 exit (1);
19093 if (((long) (sizeof (long long))) < 0)
19094 {
19095 long i = longval ();
19096 if (i != ((long) (sizeof (long long))))
19097 exit (1);
19098 fprintf (f, "%ld\n", i);
19099 }
19100 else
19101 {
19102 unsigned long i = ulongval ();
19103 if (i != ((long) (sizeof (long long))))
19104 exit (1);
19105 fprintf (f, "%lu\n", i);
19106 }
19107 exit (ferror (f) || fclose (f) != 0);
19108
19109 ;
19110 return 0;
19111}
19112_ACEOF
19113rm -f conftest$ac_exeext
19114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19115 (eval $ac_link) 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19121 ac_status=$?
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; }; then
19124 ac_cv_sizeof_long_long=`cat conftest.val`
19125else
19126 echo "$as_me: program exited with status $ac_status" >&5
19127echo "$as_me: failed program was:" >&5
19128sed 's/^/| /' conftest.$ac_ext >&5
19129
19130( exit $ac_status )
19131{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19132See \`config.log' for more details." >&5
19133echo "$as_me: error: cannot compute sizeof (long long), 77
19134See \`config.log' for more details." >&2;}
19135 { (exit 1); exit 1; }; }
19136fi
ac1cb8d3 19137rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19138fi
19139fi
19140rm -f conftest.val
19141else
19142 ac_cv_sizeof_long_long=0
19143fi
19144fi
19145echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19146echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19147cat >>confdefs.h <<_ACEOF
19148#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19149_ACEOF
19150
19151
19152esac
19153
238ecede
MW
19154echo "$as_me:$LINENO: checking for wchar_t" >&5
19155echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19156if test "${ac_cv_type_wchar_t+set}" = set; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
19158else
19159 cat >conftest.$ac_ext <<_ACEOF
19160/* confdefs.h. */
19161_ACEOF
19162cat confdefs.h >>conftest.$ac_ext
19163cat >>conftest.$ac_ext <<_ACEOF
19164/* end confdefs.h. */
19165
83d8eb47
MW
19166 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19167 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19168 # error "fake wchar_t"
19169 #endif
19170 #ifdef HAVE_WCHAR_H
19171 # ifdef __CYGWIN__
19172 # include <stddef.h>
19173 # endif
19174 # include <wchar.h>
19175 #endif
19176 #ifdef HAVE_STDLIB_H
19177 # include <stdlib.h>
19178 #endif
19179 #include <stdio.h>
19180
19181
19182
19183int
19184main ()
19185{
19186if ((wchar_t *) 0)
19187 return 0;
19188if (sizeof (wchar_t))
19189 return 0;
19190 ;
19191 return 0;
19192}
19193_ACEOF
19194rm -f conftest.$ac_objext
19195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19196 (eval $ac_compile) 2>conftest.er1
19197 ac_status=$?
19198 grep -v '^ *+' conftest.er1 >conftest.err
19199 rm -f conftest.er1
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } &&
9dd0f6c2 19203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205 (eval $ac_try) 2>&5
19206 ac_status=$?
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; } &&
19209 { ac_try='test -s conftest.$ac_objext'
19210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19212 ac_status=$?
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; }; then
19215 ac_cv_type_wchar_t=yes
19216else
19217 echo "$as_me: failed program was:" >&5
19218sed 's/^/| /' conftest.$ac_ext >&5
19219
19220ac_cv_type_wchar_t=no
19221fi
19222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19223fi
19224echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19225echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19226
a848cd7e
SC
19227echo "$as_me:$LINENO: checking size of wchar_t" >&5
19228echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19229if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19231else
238ecede
MW
19232 if test "$ac_cv_type_wchar_t" = yes; then
19233 # The cast to unsigned long works around a bug in the HP C Compiler
19234 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19235 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19236 # This bug is HP SR number 8606223364.
19237 if test "$cross_compiling" = yes; then
19238 # Depending upon the size, compute the lo and hi bounds.
19239cat >conftest.$ac_ext <<_ACEOF
19240/* confdefs.h. */
19241_ACEOF
19242cat confdefs.h >>conftest.$ac_ext
19243cat >>conftest.$ac_ext <<_ACEOF
19244/* end confdefs.h. */
19245
83d8eb47
MW
19246 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19247 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19248 # error "fake wchar_t"
19249 #endif
19250 #ifdef HAVE_WCHAR_H
19251 # ifdef __CYGWIN__
19252 # include <stddef.h>
19253 # endif
19254 # include <wchar.h>
19255 #endif
19256 #ifdef HAVE_STDLIB_H
19257 # include <stdlib.h>
19258 #endif
19259 #include <stdio.h>
19260
19261
19262
19263int
19264main ()
19265{
19266static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19267test_array [0] = 0
19268
19269 ;
19270 return 0;
19271}
19272_ACEOF
19273rm -f conftest.$ac_objext
19274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19275 (eval $ac_compile) 2>conftest.er1
19276 ac_status=$?
19277 grep -v '^ *+' conftest.er1 >conftest.err
19278 rm -f conftest.er1
19279 cat conftest.err >&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
9dd0f6c2 19282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284 (eval $ac_try) 2>&5
19285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; } &&
19288 { ac_try='test -s conftest.$ac_objext'
19289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290 (eval $ac_try) 2>&5
19291 ac_status=$?
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; }; then
19294 ac_lo=0 ac_mid=0
19295 while :; do
19296 cat >conftest.$ac_ext <<_ACEOF
19297/* confdefs.h. */
19298_ACEOF
19299cat confdefs.h >>conftest.$ac_ext
19300cat >>conftest.$ac_ext <<_ACEOF
19301/* end confdefs.h. */
19302
83d8eb47
MW
19303 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19304 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19305 # error "fake wchar_t"
19306 #endif
19307 #ifdef HAVE_WCHAR_H
19308 # ifdef __CYGWIN__
19309 # include <stddef.h>
19310 # endif
19311 # include <wchar.h>
19312 #endif
19313 #ifdef HAVE_STDLIB_H
19314 # include <stdlib.h>
19315 #endif
19316 #include <stdio.h>
19317
19318
19319
19320int
19321main ()
19322{
19323static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19324test_array [0] = 0
19325
19326 ;
19327 return 0;
19328}
19329_ACEOF
19330rm -f conftest.$ac_objext
19331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19332 (eval $ac_compile) 2>conftest.er1
19333 ac_status=$?
19334 grep -v '^ *+' conftest.er1 >conftest.err
19335 rm -f conftest.er1
19336 cat conftest.err >&5
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); } &&
9dd0f6c2 19339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341 (eval $ac_try) 2>&5
19342 ac_status=$?
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; } &&
19345 { ac_try='test -s conftest.$ac_objext'
19346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347 (eval $ac_try) 2>&5
19348 ac_status=$?
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; }; then
19351 ac_hi=$ac_mid; break
19352else
19353 echo "$as_me: failed program was:" >&5
19354sed 's/^/| /' conftest.$ac_ext >&5
19355
19356ac_lo=`expr $ac_mid + 1`
19357 if test $ac_lo -le $ac_mid; then
19358 ac_lo= ac_hi=
19359 break
19360 fi
19361 ac_mid=`expr 2 '*' $ac_mid + 1`
19362fi
19363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19364 done
19365else
19366 echo "$as_me: failed program was:" >&5
19367sed 's/^/| /' conftest.$ac_ext >&5
19368
19369cat >conftest.$ac_ext <<_ACEOF
19370/* confdefs.h. */
19371_ACEOF
19372cat confdefs.h >>conftest.$ac_ext
19373cat >>conftest.$ac_ext <<_ACEOF
19374/* end confdefs.h. */
19375
83d8eb47
MW
19376 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19377 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19378 # error "fake wchar_t"
19379 #endif
19380 #ifdef HAVE_WCHAR_H
19381 # ifdef __CYGWIN__
19382 # include <stddef.h>
19383 # endif
19384 # include <wchar.h>
19385 #endif
19386 #ifdef HAVE_STDLIB_H
19387 # include <stdlib.h>
19388 #endif
19389 #include <stdio.h>
19390
19391
19392
19393int
19394main ()
19395{
19396static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19397test_array [0] = 0
19398
19399 ;
19400 return 0;
19401}
19402_ACEOF
19403rm -f conftest.$ac_objext
19404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19405 (eval $ac_compile) 2>conftest.er1
19406 ac_status=$?
19407 grep -v '^ *+' conftest.er1 >conftest.err
19408 rm -f conftest.er1
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } &&
9dd0f6c2 19412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19415 ac_status=$?
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; } &&
19418 { ac_try='test -s conftest.$ac_objext'
19419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19420 (eval $ac_try) 2>&5
19421 ac_status=$?
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); }; }; then
19424 ac_hi=-1 ac_mid=-1
19425 while :; do
19426 cat >conftest.$ac_ext <<_ACEOF
19427/* confdefs.h. */
19428_ACEOF
19429cat confdefs.h >>conftest.$ac_ext
19430cat >>conftest.$ac_ext <<_ACEOF
19431/* end confdefs.h. */
19432
83d8eb47
MW
19433 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19434 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19435 # error "fake wchar_t"
19436 #endif
19437 #ifdef HAVE_WCHAR_H
19438 # ifdef __CYGWIN__
19439 # include <stddef.h>
19440 # endif
19441 # include <wchar.h>
19442 #endif
19443 #ifdef HAVE_STDLIB_H
19444 # include <stdlib.h>
19445 #endif
19446 #include <stdio.h>
19447
19448
19449
19450int
19451main ()
19452{
19453static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19454test_array [0] = 0
19455
19456 ;
19457 return 0;
19458}
19459_ACEOF
19460rm -f conftest.$ac_objext
19461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19462 (eval $ac_compile) 2>conftest.er1
19463 ac_status=$?
19464 grep -v '^ *+' conftest.er1 >conftest.err
19465 rm -f conftest.er1
19466 cat conftest.err >&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } &&
9dd0f6c2 19469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471 (eval $ac_try) 2>&5
19472 ac_status=$?
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; } &&
19475 { ac_try='test -s conftest.$ac_objext'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19478 ac_status=$?
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19481 ac_lo=$ac_mid; break
19482else
19483 echo "$as_me: failed program was:" >&5
19484sed 's/^/| /' conftest.$ac_ext >&5
19485
19486ac_hi=`expr '(' $ac_mid ')' - 1`
19487 if test $ac_mid -le $ac_hi; then
19488 ac_lo= ac_hi=
19489 break
19490 fi
19491 ac_mid=`expr 2 '*' $ac_mid`
19492fi
19493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19494 done
19495else
19496 echo "$as_me: failed program was:" >&5
19497sed 's/^/| /' conftest.$ac_ext >&5
19498
19499ac_lo= ac_hi=
19500fi
19501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19502fi
19503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19504# Binary search between lo and hi bounds.
19505while test "x$ac_lo" != "x$ac_hi"; do
19506 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19507 cat >conftest.$ac_ext <<_ACEOF
19508/* confdefs.h. */
19509_ACEOF
19510cat confdefs.h >>conftest.$ac_ext
19511cat >>conftest.$ac_ext <<_ACEOF
19512/* end confdefs.h. */
19513
83d8eb47
MW
19514 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19515 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19516 # error "fake wchar_t"
19517 #endif
19518 #ifdef HAVE_WCHAR_H
19519 # ifdef __CYGWIN__
19520 # include <stddef.h>
19521 # endif
19522 # include <wchar.h>
19523 #endif
19524 #ifdef HAVE_STDLIB_H
19525 # include <stdlib.h>
19526 #endif
19527 #include <stdio.h>
a848cd7e 19528
a848cd7e 19529
a848cd7e 19530
238ecede
MW
19531int
19532main ()
19533{
19534static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19535test_array [0] = 0
a848cd7e 19536
238ecede
MW
19537 ;
19538 return 0;
19539}
19540_ACEOF
19541rm -f conftest.$ac_objext
19542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19543 (eval $ac_compile) 2>conftest.er1
19544 ac_status=$?
19545 grep -v '^ *+' conftest.er1 >conftest.err
19546 rm -f conftest.er1
19547 cat conftest.err >&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } &&
9dd0f6c2 19550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; } &&
19556 { ac_try='test -s conftest.$ac_objext'
19557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558 (eval $ac_try) 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; }; then
19562 ac_hi=$ac_mid
19563else
19564 echo "$as_me: failed program was:" >&5
19565sed 's/^/| /' conftest.$ac_ext >&5
19566
19567ac_lo=`expr '(' $ac_mid ')' + 1`
19568fi
19569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19570done
19571case $ac_lo in
19572?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19573'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19574See \`config.log' for more details." >&5
19575echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19576See \`config.log' for more details." >&2;}
19577 { (exit 1); exit 1; }; } ;;
19578esac
19579else
19580 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
19581 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19582echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19583 { (exit 1); exit 1; }; }
a848cd7e
SC
19584else
19585 cat >conftest.$ac_ext <<_ACEOF
19586/* confdefs.h. */
19587_ACEOF
19588cat confdefs.h >>conftest.$ac_ext
19589cat >>conftest.$ac_ext <<_ACEOF
19590/* end confdefs.h. */
19591
83d8eb47
MW
19592 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19593 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19594 # error "fake wchar_t"
19595 #endif
19596 #ifdef HAVE_WCHAR_H
19597 # ifdef __CYGWIN__
19598 # include <stddef.h>
19599 # endif
19600 # include <wchar.h>
19601 #endif
19602 #ifdef HAVE_STDLIB_H
19603 # include <stdlib.h>
19604 #endif
19605 #include <stdio.h>
19606
19607
19608
19609long longval () { return (long) (sizeof (wchar_t)); }
19610unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19611#include <stdio.h>
19612#include <stdlib.h>
19613int
19614main ()
19615{
a848cd7e 19616
238ecede
MW
19617 FILE *f = fopen ("conftest.val", "w");
19618 if (! f)
19619 exit (1);
19620 if (((long) (sizeof (wchar_t))) < 0)
19621 {
19622 long i = longval ();
19623 if (i != ((long) (sizeof (wchar_t))))
19624 exit (1);
19625 fprintf (f, "%ld\n", i);
19626 }
19627 else
19628 {
19629 unsigned long i = ulongval ();
19630 if (i != ((long) (sizeof (wchar_t))))
19631 exit (1);
19632 fprintf (f, "%lu\n", i);
19633 }
19634 exit (ferror (f) || fclose (f) != 0);
19635
19636 ;
19637 return 0;
19638}
a848cd7e
SC
19639_ACEOF
19640rm -f conftest$ac_exeext
19641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19642 (eval $ac_link) 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19648 ac_status=$?
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
238ecede 19651 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19652else
19653 echo "$as_me: program exited with status $ac_status" >&5
19654echo "$as_me: failed program was:" >&5
19655sed 's/^/| /' conftest.$ac_ext >&5
19656
19657( exit $ac_status )
238ecede
MW
19658{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19659See \`config.log' for more details." >&5
19660echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19661See \`config.log' for more details." >&2;}
19662 { (exit 1); exit 1; }; }
a848cd7e 19663fi
ac1cb8d3 19664rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19665fi
a848cd7e 19666fi
238ecede
MW
19667rm -f conftest.val
19668else
19669 ac_cv_sizeof_wchar_t=0
19670fi
19671fi
19672echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19673echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19674cat >>confdefs.h <<_ACEOF
238ecede 19675#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19676_ACEOF
19677
19678
47a7e797
MW
19679if test "$ac_cv_sizeof_wchar_t" != "0"; then
19680 wxUSE_WCHAR_T=yes
19681else
19682 wxUSE_WCHAR_T=no
19683fi
238ecede 19684
ba3d13e1
VZ
19685echo "$as_me:$LINENO: checking for va_copy" >&5
19686echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19687if test "${wx_cv_func_va_copy+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19689else
19690
19691 cat >conftest.$ac_ext <<_ACEOF
19692
19693 #include <stdarg.h>
19694 void foo(char *f, ...)
19695 {
19696 va_list ap1, ap2;
19697 va_start(ap1, f);
19698 va_copy(ap2, ap1);
19699 va_end(ap2);
19700 va_end(ap1);
19701 }
5886b072
VZ
19702 int main()
19703 {
b902e639
VZ
19704 foo("hi", 17);
19705 return 0;
5886b072 19706 }
ba3d13e1
VZ
19707_ACEOF
19708rm -f conftest.$ac_objext conftest$ac_exeext
19709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19710 (eval $ac_link) 2>conftest.er1
19711 ac_status=$?
19712 grep -v '^ *+' conftest.er1 >conftest.err
19713 rm -f conftest.er1
19714 cat conftest.err >&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } &&
9dd0f6c2 19717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719 (eval $ac_try) 2>&5
19720 ac_status=$?
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; } &&
19723 { ac_try='test -s conftest$ac_exeext'
19724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19726 ac_status=$?
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; }; then
19729 wx_cv_func_va_copy=yes
19730else
19731 echo "$as_me: failed program was:" >&5
19732sed 's/^/| /' conftest.$ac_ext >&5
19733
19734wx_cv_func_va_copy=no
19735
19736fi
19737rm -f conftest.err conftest.$ac_objext \
19738 conftest$ac_exeext conftest.$ac_ext
19739
19740
19741fi
19742echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19743echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19744
19745if test $wx_cv_func_va_copy = "yes"; then
19746 cat >>confdefs.h <<\_ACEOF
19747#define HAVE_VA_COPY 1
19748_ACEOF
19749
19750else
19751 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19752echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19753if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19754 echo $ECHO_N "(cached) $ECHO_C" >&6
19755else
19756
19757 if test "$cross_compiling" = yes; then
19758 wx_cv_type_va_list_lvalue=yes
19759
19760else
19761 cat >conftest.$ac_ext <<_ACEOF
19762
19763 #include <stdarg.h>
19764 int foo(char *f, ...)
19765 {
19766 va_list ap1, ap2;
19767 va_start(ap1, f);
19768 ap2 = ap1;
19769 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19770 return 1;
19771 va_end(ap2);
19772 va_end(ap1);
19773 return 0;
19774 }
19775 int main()
19776 {
19777 return foo("hi", 17);
19778 }
19779_ACEOF
19780rm -f conftest$ac_exeext
19781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19782 (eval $ac_link) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787 (eval $ac_try) 2>&5
19788 ac_status=$?
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; }; then
19791 wx_cv_type_va_list_lvalue=yes
19792else
19793 echo "$as_me: program exited with status $ac_status" >&5
19794echo "$as_me: failed program was:" >&5
19795sed 's/^/| /' conftest.$ac_ext >&5
19796
19797( exit $ac_status )
19798wx_cv_type_va_list_lvalue=no
19799fi
19800rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19801fi
19802
19803
19804fi
19805echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19806echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19807
19808 if test $wx_cv_type_va_list_lvalue != "yes"; then
19809 cat >>confdefs.h <<\_ACEOF
19810#define VA_LIST_IS_ARRAY 1
19811_ACEOF
19812
19813 fi
19814fi
19815
a848cd7e
SC
19816# Check whether --enable-largefile or --disable-largefile was given.
19817if test "${enable_largefile+set}" = set; then
19818 enableval="$enable_largefile"
19819
19820fi;
19821if test "$enable_largefile" != no; then
19822 wx_largefile=no
19823
19824 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19825echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19826if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
19828else
19829
19830 cat >conftest.$ac_ext <<_ACEOF
19831/* confdefs.h. */
19832_ACEOF
19833cat confdefs.h >>conftest.$ac_ext
19834cat >>conftest.$ac_ext <<_ACEOF
19835/* end confdefs.h. */
19836#define _FILE_OFFSET_BITS 64
19837 #include <sys/types.h>
19838int
19839main ()
19840{
19841typedef struct {
19842 unsigned int field: sizeof(off_t) == 8;
19843} wxlf;
19844
19845 ;
19846 return 0;
19847}
19848_ACEOF
19849rm -f conftest.$ac_objext
19850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19851 (eval $ac_compile) 2>conftest.er1
a848cd7e 19852 ac_status=$?
ac1cb8d3
VS
19853 grep -v '^ *+' conftest.er1 >conftest.err
19854 rm -f conftest.er1
19855 cat conftest.err >&5
a848cd7e
SC
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); } &&
9dd0f6c2 19858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19860 (eval $ac_try) 2>&5
19861 ac_status=$?
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); }; } &&
19864 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866 (eval $ac_try) 2>&5
19867 ac_status=$?
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); }; }; then
19870 ac_cv_sys_file_offset_bits=64
19871else
19872 echo "$as_me: failed program was:" >&5
19873sed 's/^/| /' conftest.$ac_ext >&5
19874
19875ac_cv_sys_file_offset_bits=no
19876fi
ac1cb8d3 19877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19878
19879
19880fi
19881echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19882echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19883
19884 if test "$ac_cv_sys_file_offset_bits" != no; then
19885 wx_largefile=yes
19886 cat >>confdefs.h <<_ACEOF
19887#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19888_ACEOF
19889
19890 fi
19891
19892 if test "x$wx_largefile" != "xyes"; then
19893
19894 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19895echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19896if test "${ac_cv_sys_large_files+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19898else
19899
19900 cat >conftest.$ac_ext <<_ACEOF
19901/* confdefs.h. */
19902_ACEOF
19903cat confdefs.h >>conftest.$ac_ext
19904cat >>conftest.$ac_ext <<_ACEOF
19905/* end confdefs.h. */
19906#define _LARGE_FILES 1
19907 #include <sys/types.h>
19908int
19909main ()
19910{
19911typedef struct {
19912 unsigned int field: sizeof(off_t) == 8;
19913} wxlf;
19914
19915 ;
19916 return 0;
19917}
19918_ACEOF
19919rm -f conftest.$ac_objext
19920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19921 (eval $ac_compile) 2>conftest.er1
a848cd7e 19922 ac_status=$?
ac1cb8d3
VS
19923 grep -v '^ *+' conftest.er1 >conftest.err
19924 rm -f conftest.er1
19925 cat conftest.err >&5
a848cd7e
SC
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } &&
9dd0f6c2 19928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930 (eval $ac_try) 2>&5
19931 ac_status=$?
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); }; } &&
19934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19937 ac_status=$?
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; }; then
19940 ac_cv_sys_large_files=1
19941else
19942 echo "$as_me: failed program was:" >&5
19943sed 's/^/| /' conftest.$ac_ext >&5
19944
19945ac_cv_sys_large_files=no
19946fi
ac1cb8d3 19947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19948
19949
19950fi
19951echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19952echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19953
19954 if test "$ac_cv_sys_large_files" != no; then
19955 wx_largefile=yes
19956 cat >>confdefs.h <<_ACEOF
19957#define _LARGE_FILES $ac_cv_sys_large_files
19958_ACEOF
19959
19960 fi
19961
19962 fi
19963
19964 echo "$as_me:$LINENO: checking if large file support is available" >&5
19965echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19966 if test "x$wx_largefile" = "xyes"; then
19967 cat >>confdefs.h <<\_ACEOF
19968#define HAVE_LARGEFILE_SUPPORT 1
19969_ACEOF
19970
19971 fi
19972 echo "$as_me:$LINENO: result: $wx_largefile" >&5
19973echo "${ECHO_T}$wx_largefile" >&6
19974fi
19975
5b674b9d
DE
19976
19977if test "x$wx_largefile" = "xyes"; then
19978 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19979 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
19980 else
19981 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19982 fi
19983 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
19984echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19985if test "${ac_cv_sys_largefile_source+set}" = set; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19987else
19988 while :; do
19989 ac_cv_sys_largefile_source=no
19990 cat >conftest.$ac_ext <<_ACEOF
19991/* confdefs.h. */
19992_ACEOF
19993cat confdefs.h >>conftest.$ac_ext
19994cat >>conftest.$ac_ext <<_ACEOF
19995/* end confdefs.h. */
19996#include <stdio.h>
19997int
19998main ()
19999{
20000return !fseeko;
20001 ;
20002 return 0;
20003}
20004_ACEOF
20005rm -f conftest.$ac_objext
20006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20007 (eval $ac_compile) 2>conftest.er1
20008 ac_status=$?
20009 grep -v '^ *+' conftest.er1 >conftest.err
20010 rm -f conftest.er1
20011 cat conftest.err >&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } &&
9dd0f6c2 20014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20017 ac_status=$?
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; } &&
20020 { ac_try='test -s conftest.$ac_objext'
20021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20022 (eval $ac_try) 2>&5
20023 ac_status=$?
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); }; }; then
20026 break
20027else
20028 echo "$as_me: failed program was:" >&5
20029sed 's/^/| /' conftest.$ac_ext >&5
20030
20031fi
20032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20033 cat >conftest.$ac_ext <<_ACEOF
20034/* confdefs.h. */
20035_ACEOF
20036cat confdefs.h >>conftest.$ac_ext
20037cat >>conftest.$ac_ext <<_ACEOF
20038/* end confdefs.h. */
20039#define _LARGEFILE_SOURCE 1
20040#include <stdio.h>
20041int
20042main ()
20043{
20044return !fseeko;
20045 ;
20046 return 0;
20047}
20048_ACEOF
20049rm -f conftest.$ac_objext
20050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20051 (eval $ac_compile) 2>conftest.er1
20052 ac_status=$?
20053 grep -v '^ *+' conftest.er1 >conftest.err
20054 rm -f conftest.er1
20055 cat conftest.err >&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } &&
9dd0f6c2 20058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060 (eval $ac_try) 2>&5
20061 ac_status=$?
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; } &&
20064 { ac_try='test -s conftest.$ac_objext'
20065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20066 (eval $ac_try) 2>&5
20067 ac_status=$?
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); }; }; then
20070 ac_cv_sys_largefile_source=1; break
20071else
20072 echo "$as_me: failed program was:" >&5
20073sed 's/^/| /' conftest.$ac_ext >&5
20074
20075fi
20076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20077 break
20078done
20079fi
20080echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20081echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20082if test "$ac_cv_sys_largefile_source" != no; then
20083
20084cat >>confdefs.h <<_ACEOF
20085#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20086_ACEOF
20087
20088fi
20089rm -f conftest*
20090
20091# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20092# in glibc 2.1.3, but that breaks too many other things.
20093# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20094echo "$as_me:$LINENO: checking for fseeko" >&5
20095echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20096if test "${ac_cv_func_fseeko+set}" = set; then
20097 echo $ECHO_N "(cached) $ECHO_C" >&6
20098else
20099 cat >conftest.$ac_ext <<_ACEOF
20100/* confdefs.h. */
20101_ACEOF
20102cat confdefs.h >>conftest.$ac_ext
20103cat >>conftest.$ac_ext <<_ACEOF
20104/* end confdefs.h. */
20105#include <stdio.h>
20106int
20107main ()
20108{
20109return fseeko && fseeko (stdin, 0, 0);
20110 ;
20111 return 0;
20112}
20113_ACEOF
20114rm -f conftest.$ac_objext conftest$ac_exeext
20115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20116 (eval $ac_link) 2>conftest.er1
20117 ac_status=$?
20118 grep -v '^ *+' conftest.er1 >conftest.err
20119 rm -f conftest.er1
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } &&
9dd0f6c2 20123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20126 ac_status=$?
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; } &&
20129 { ac_try='test -s conftest$ac_exeext'
20130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131 (eval $ac_try) 2>&5
20132 ac_status=$?
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; }; then
20135 ac_cv_func_fseeko=yes
20136else
20137 echo "$as_me: failed program was:" >&5
20138sed 's/^/| /' conftest.$ac_ext >&5
20139
20140ac_cv_func_fseeko=no
20141fi
20142rm -f conftest.err conftest.$ac_objext \
20143 conftest$ac_exeext conftest.$ac_ext
20144fi
20145echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20146echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20147if test $ac_cv_func_fseeko = yes; then
20148
20149cat >>confdefs.h <<\_ACEOF
20150#define HAVE_FSEEKO 1
20151_ACEOF
20152
20153fi
20154
5b674b9d
DE
20155 if test "$ac_cv_sys_largefile_source" != no; then
20156 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20157 fi
20158 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20159fi
20160
20161echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20162echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20163if test "${ac_cv_c_bigendian+set}" = set; then
20164 echo $ECHO_N "(cached) $ECHO_C" >&6
20165else
20166 ac_cv_c_bigendian=unknown
20167# See if sys/param.h defines the BYTE_ORDER macro.
20168cat >conftest.$ac_ext <<_ACEOF
20169/* confdefs.h. */
20170_ACEOF
20171cat confdefs.h >>conftest.$ac_ext
20172cat >>conftest.$ac_ext <<_ACEOF
20173/* end confdefs.h. */
20174#include <sys/types.h>
20175#include <sys/param.h>
20176int
20177main ()
20178{
20179
20180#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20181 bogus endian macros
20182#endif
20183 ;
20184 return 0;
20185}
20186_ACEOF
20187rm -f conftest.$ac_objext
20188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20189 (eval $ac_compile) 2>conftest.er1
a848cd7e 20190 ac_status=$?
ac1cb8d3
VS
20191 grep -v '^ *+' conftest.er1 >conftest.err
20192 rm -f conftest.er1
20193 cat conftest.err >&5
a848cd7e
SC
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } &&
9dd0f6c2 20196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; } &&
20202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
20208 # It does; now see whether it defined to BIG_ENDIAN or not.
20209cat >conftest.$ac_ext <<_ACEOF
20210/* confdefs.h. */
20211_ACEOF
20212cat confdefs.h >>conftest.$ac_ext
20213cat >>conftest.$ac_ext <<_ACEOF
20214/* end confdefs.h. */
20215#include <sys/types.h>
20216#include <sys/param.h>
20217int
20218main ()
20219{
20220
20221#if BYTE_ORDER != BIG_ENDIAN
20222 not big endian
20223#endif
20224 ;
20225 return 0;
20226}
20227_ACEOF
20228rm -f conftest.$ac_objext
20229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20230 (eval $ac_compile) 2>conftest.er1
a848cd7e 20231 ac_status=$?
ac1cb8d3
VS
20232 grep -v '^ *+' conftest.er1 >conftest.err
20233 rm -f conftest.er1
20234 cat conftest.err >&5
a848cd7e
SC
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } &&
9dd0f6c2 20237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20240 ac_status=$?
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; } &&
20243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; }; then
20249 ac_cv_c_bigendian=yes
20250else
20251 echo "$as_me: failed program was:" >&5
20252sed 's/^/| /' conftest.$ac_ext >&5
20253
20254ac_cv_c_bigendian=no
20255fi
ac1cb8d3 20256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20257else
20258 echo "$as_me: failed program was:" >&5
20259sed 's/^/| /' conftest.$ac_ext >&5
20260
20261fi
ac1cb8d3 20262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20263if test $ac_cv_c_bigendian = unknown; then
20264if test "$cross_compiling" = yes; then
20265 ac_cv_c_bigendian=unknown
20266else
20267 cat >conftest.$ac_ext <<_ACEOF
20268/* confdefs.h. */
20269_ACEOF
20270cat confdefs.h >>conftest.$ac_ext
20271cat >>conftest.$ac_ext <<_ACEOF
20272/* end confdefs.h. */
20273main () {
20274 /* Are we little or big endian? From Harbison&Steele. */
20275 union
20276 {
20277 long l;
20278 char c[sizeof (long)];
20279 } u;
20280 u.l = 1;
20281 exit (u.c[sizeof (long) - 1] == 1);
20282}
20283_ACEOF
20284rm -f conftest$ac_exeext
20285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20286 (eval $ac_link) 2>&5
20287 ac_status=$?
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20291 (eval $ac_try) 2>&5
20292 ac_status=$?
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); }; }; then
20295 ac_cv_c_bigendian=no
20296else
20297 echo "$as_me: program exited with status $ac_status" >&5
20298echo "$as_me: failed program was:" >&5
20299sed 's/^/| /' conftest.$ac_ext >&5
20300
20301( exit $ac_status )
20302ac_cv_c_bigendian=yes
20303fi
ac1cb8d3 20304rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20305fi
20306fi
20307fi
20308echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20309echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20310if test $ac_cv_c_bigendian = unknown; then
20311 { 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
20312echo "$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;}
20313fi
20314if test $ac_cv_c_bigendian = yes; then
20315 cat >>confdefs.h <<\_ACEOF
20316#define WORDS_BIGENDIAN 1
20317_ACEOF
20318
20319fi
20320
20321
20322ac_ext=cc
20323ac_cpp='$CXXCPP $CPPFLAGS'
20324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20327echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20328echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20329if test -z "$CXXCPP"; then
20330 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20331 echo $ECHO_N "(cached) $ECHO_C" >&6
20332else
20333 # Double quotes because CXXCPP needs to be expanded
20334 for CXXCPP in "$CXX -E" "/lib/cpp"
20335 do
20336 ac_preproc_ok=false
20337for ac_cxx_preproc_warn_flag in '' yes
20338do
20339 # Use a header file that comes with gcc, so configuring glibc
20340 # with a fresh cross-compiler works.
20341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20342 # <limits.h> exists even on freestanding compilers.
20343 # On the NeXT, cc -E runs the code through the compiler's parser,
20344 # not just through cpp. "Syntax error" is here to catch this case.
20345 cat >conftest.$ac_ext <<_ACEOF
20346/* confdefs.h. */
20347_ACEOF
20348cat confdefs.h >>conftest.$ac_ext
20349cat >>conftest.$ac_ext <<_ACEOF
20350/* end confdefs.h. */
20351#ifdef __STDC__
20352# include <limits.h>
20353#else
20354# include <assert.h>
20355#endif
ac1cb8d3 20356 Syntax error
a848cd7e
SC
20357_ACEOF
20358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20360 ac_status=$?
20361 grep -v '^ *+' conftest.er1 >conftest.err
20362 rm -f conftest.er1
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } >/dev/null; then
20366 if test -s conftest.err; then
20367 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20368 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20369 else
20370 ac_cpp_err=
20371 fi
20372else
20373 ac_cpp_err=yes
20374fi
20375if test -z "$ac_cpp_err"; then
20376 :
20377else
20378 echo "$as_me: failed program was:" >&5
20379sed 's/^/| /' conftest.$ac_ext >&5
20380
20381 # Broken: fails on valid input.
20382continue
20383fi
20384rm -f conftest.err conftest.$ac_ext
20385
20386 # OK, works on sane cases. Now check whether non-existent headers
20387 # can be detected and how.
20388 cat >conftest.$ac_ext <<_ACEOF
20389/* confdefs.h. */
20390_ACEOF
20391cat confdefs.h >>conftest.$ac_ext
20392cat >>conftest.$ac_ext <<_ACEOF
20393/* end confdefs.h. */
20394#include <ac_nonexistent.h>
20395_ACEOF
20396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20398 ac_status=$?
20399 grep -v '^ *+' conftest.er1 >conftest.err
20400 rm -f conftest.er1
20401 cat conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } >/dev/null; then
20404 if test -s conftest.err; then
20405 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20406 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20407 else
20408 ac_cpp_err=
20409 fi
20410else
20411 ac_cpp_err=yes
20412fi
20413if test -z "$ac_cpp_err"; then
20414 # Broken: success on invalid input.
20415continue
20416else
20417 echo "$as_me: failed program was:" >&5
20418sed 's/^/| /' conftest.$ac_ext >&5
20419
20420 # Passes both tests.
20421ac_preproc_ok=:
20422break
20423fi
20424rm -f conftest.err conftest.$ac_ext
20425
20426done
20427# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20428rm -f conftest.err conftest.$ac_ext
20429if $ac_preproc_ok; then
20430 break
20431fi
20432
20433 done
20434 ac_cv_prog_CXXCPP=$CXXCPP
20435
20436fi
20437 CXXCPP=$ac_cv_prog_CXXCPP
20438else
20439 ac_cv_prog_CXXCPP=$CXXCPP
20440fi
20441echo "$as_me:$LINENO: result: $CXXCPP" >&5
20442echo "${ECHO_T}$CXXCPP" >&6
20443ac_preproc_ok=false
20444for ac_cxx_preproc_warn_flag in '' yes
20445do
20446 # Use a header file that comes with gcc, so configuring glibc
20447 # with a fresh cross-compiler works.
20448 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20449 # <limits.h> exists even on freestanding compilers.
20450 # On the NeXT, cc -E runs the code through the compiler's parser,
20451 # not just through cpp. "Syntax error" is here to catch this case.
20452 cat >conftest.$ac_ext <<_ACEOF
20453/* confdefs.h. */
20454_ACEOF
20455cat confdefs.h >>conftest.$ac_ext
20456cat >>conftest.$ac_ext <<_ACEOF
20457/* end confdefs.h. */
20458#ifdef __STDC__
20459# include <limits.h>
20460#else
20461# include <assert.h>
20462#endif
ac1cb8d3 20463 Syntax error
a848cd7e
SC
20464_ACEOF
20465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20467 ac_status=$?
20468 grep -v '^ *+' conftest.er1 >conftest.err
20469 rm -f conftest.er1
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } >/dev/null; then
20473 if test -s conftest.err; then
20474 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20475 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20476 else
20477 ac_cpp_err=
20478 fi
20479else
20480 ac_cpp_err=yes
20481fi
20482if test -z "$ac_cpp_err"; then
20483 :
20484else
20485 echo "$as_me: failed program was:" >&5
20486sed 's/^/| /' conftest.$ac_ext >&5
20487
20488 # Broken: fails on valid input.
20489continue
20490fi
20491rm -f conftest.err conftest.$ac_ext
20492
20493 # OK, works on sane cases. Now check whether non-existent headers
20494 # can be detected and how.
20495 cat >conftest.$ac_ext <<_ACEOF
20496/* confdefs.h. */
20497_ACEOF
20498cat confdefs.h >>conftest.$ac_ext
20499cat >>conftest.$ac_ext <<_ACEOF
20500/* end confdefs.h. */
20501#include <ac_nonexistent.h>
20502_ACEOF
20503if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20505 ac_status=$?
20506 grep -v '^ *+' conftest.er1 >conftest.err
20507 rm -f conftest.er1
20508 cat conftest.err >&5
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); } >/dev/null; then
20511 if test -s conftest.err; then
20512 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20513 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20514 else
20515 ac_cpp_err=
20516 fi
20517else
20518 ac_cpp_err=yes
20519fi
20520if test -z "$ac_cpp_err"; then
20521 # Broken: success on invalid input.
20522continue
20523else
20524 echo "$as_me: failed program was:" >&5
20525sed 's/^/| /' conftest.$ac_ext >&5
20526
20527 # Passes both tests.
20528ac_preproc_ok=:
20529break
20530fi
20531rm -f conftest.err conftest.$ac_ext
20532
20533done
20534# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20535rm -f conftest.err conftest.$ac_ext
20536if $ac_preproc_ok; then
20537 :
20538else
20539 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20540See \`config.log' for more details." >&5
20541echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20542See \`config.log' for more details." >&2;}
20543 { (exit 1); exit 1; }; }
20544fi
20545
20546ac_ext=cc
20547ac_cpp='$CXXCPP $CPPFLAGS'
20548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20551
20552
20553
20554
20555
20556 ac_ext=cc
20557ac_cpp='$CXXCPP $CPPFLAGS'
20558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20561
20562
20563
20564for ac_header in iostream
20565do
20566as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20567if eval "test \"\${$as_ac_Header+set}\" = set"; then
20568 echo "$as_me:$LINENO: checking for $ac_header" >&5
20569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20570if eval "test \"\${$as_ac_Header+set}\" = set"; then
20571 echo $ECHO_N "(cached) $ECHO_C" >&6
20572fi
20573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20574echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20575else
20576 # Is the header compilable?
20577echo "$as_me:$LINENO: checking $ac_header usability" >&5
20578echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20579cat >conftest.$ac_ext <<_ACEOF
20580/* confdefs.h. */
20581_ACEOF
20582cat confdefs.h >>conftest.$ac_ext
20583cat >>conftest.$ac_ext <<_ACEOF
20584/* end confdefs.h. */
20585$ac_includes_default
20586#include <$ac_header>
20587_ACEOF
20588rm -f conftest.$ac_objext
20589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20590 (eval $ac_compile) 2>conftest.er1
a848cd7e 20591 ac_status=$?
ac1cb8d3
VS
20592 grep -v '^ *+' conftest.er1 >conftest.err
20593 rm -f conftest.er1
20594 cat conftest.err >&5
a848cd7e
SC
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } &&
9dd0f6c2 20597 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599 (eval $ac_try) 2>&5
20600 ac_status=$?
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); }; } &&
20603 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605 (eval $ac_try) 2>&5
20606 ac_status=$?
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); }; }; then
20609 ac_header_compiler=yes
20610else
20611 echo "$as_me: failed program was:" >&5
20612sed 's/^/| /' conftest.$ac_ext >&5
20613
20614ac_header_compiler=no
20615fi
ac1cb8d3 20616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20617echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20618echo "${ECHO_T}$ac_header_compiler" >&6
20619
20620# Is the header present?
20621echo "$as_me:$LINENO: checking $ac_header presence" >&5
20622echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20623cat >conftest.$ac_ext <<_ACEOF
20624/* confdefs.h. */
20625_ACEOF
20626cat confdefs.h >>conftest.$ac_ext
20627cat >>conftest.$ac_ext <<_ACEOF
20628/* end confdefs.h. */
20629#include <$ac_header>
20630_ACEOF
20631if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20633 ac_status=$?
20634 grep -v '^ *+' conftest.er1 >conftest.err
20635 rm -f conftest.er1
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } >/dev/null; then
20639 if test -s conftest.err; then
20640 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20641 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20642 else
20643 ac_cpp_err=
20644 fi
20645else
20646 ac_cpp_err=yes
20647fi
20648if test -z "$ac_cpp_err"; then
20649 ac_header_preproc=yes
20650else
20651 echo "$as_me: failed program was:" >&5
20652sed 's/^/| /' conftest.$ac_ext >&5
20653
20654 ac_header_preproc=no
20655fi
20656rm -f conftest.err conftest.$ac_ext
20657echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20658echo "${ECHO_T}$ac_header_preproc" >&6
20659
20660# So? What about this header?
ac1cb8d3
VS
20661case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20662 yes:no: )
a848cd7e
SC
20663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20664echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20666echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20667 ac_header_preproc=yes
a848cd7e 20668 ;;
ac1cb8d3 20669 no:yes:* )
a848cd7e
SC
20670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20671echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20673echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20675echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20677echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20679echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20681echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20682 (
20683 cat <<\_ASBOX
ac1cb8d3
VS
20684## ----------------------------------------- ##
20685## Report this to wx-dev@lists.wxwidgets.org ##
20686## ----------------------------------------- ##
a848cd7e
SC
20687_ASBOX
20688 ) |
20689 sed "s/^/$as_me: WARNING: /" >&2
20690 ;;
20691esac
20692echo "$as_me:$LINENO: checking for $ac_header" >&5
20693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20694if eval "test \"\${$as_ac_Header+set}\" = set"; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
20696else
ac1cb8d3 20697 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20698fi
20699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20701
20702fi
20703if test `eval echo '${'$as_ac_Header'}'` = yes; then
20704 cat >>confdefs.h <<_ACEOF
20705#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20706_ACEOF
20707
20708fi
20709
20710done
20711
20712
20713 if test "$ac_cv_header_iostream" = "yes" ; then
20714 :
20715 else
20716 cat >>confdefs.h <<\_ACEOF
20717#define wxUSE_IOSTREAMH 1
20718_ACEOF
20719
20720 fi
20721
20722 ac_ext=c
20723ac_cpp='$CPP $CPPFLAGS'
20724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20726ac_compiler_gnu=$ac_cv_c_compiler_gnu
20727
20728
20729
20730
20731 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20732echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20733if test "${wx_cv_cpp_bool+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20735else
20736
20737
20738
20739 ac_ext=cc
20740ac_cpp='$CXXCPP $CPPFLAGS'
20741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20744
20745
20746 cat >conftest.$ac_ext <<_ACEOF
20747/* confdefs.h. */
20748_ACEOF
20749cat confdefs.h >>conftest.$ac_ext
20750cat >>conftest.$ac_ext <<_ACEOF
20751/* end confdefs.h. */
20752
20753
20754int
20755main ()
20756{
20757
20758 bool b = true;
20759
20760 return 0;
20761
20762 ;
20763 return 0;
20764}
20765_ACEOF
20766rm -f conftest.$ac_objext
20767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20768 (eval $ac_compile) 2>conftest.er1
a848cd7e 20769 ac_status=$?
ac1cb8d3
VS
20770 grep -v '^ *+' conftest.er1 >conftest.err
20771 rm -f conftest.er1
20772 cat conftest.err >&5
a848cd7e
SC
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); } &&
9dd0f6c2 20775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20777 (eval $ac_try) 2>&5
20778 ac_status=$?
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); }; } &&
20781 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20783 (eval $ac_try) 2>&5
20784 ac_status=$?
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); }; }; then
20787
20788 wx_cv_cpp_bool=yes
20789
20790else
20791 echo "$as_me: failed program was:" >&5
20792sed 's/^/| /' conftest.$ac_ext >&5
20793
20794
20795 wx_cv_cpp_bool=no
20796
20797
20798fi
ac1cb8d3 20799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20800
20801 ac_ext=c
20802ac_cpp='$CPP $CPPFLAGS'
20803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20805ac_compiler_gnu=$ac_cv_c_compiler_gnu
20806
20807
20808fi
20809echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20810echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20811
20812 if test "$wx_cv_cpp_bool" = "yes"; then
20813 cat >>confdefs.h <<\_ACEOF
20814#define HAVE_BOOL 1
20815_ACEOF
20816
20817 fi
20818
20819
20820
20821 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20822echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20823if test "${wx_cv_explicit+set}" = set; then
20824 echo $ECHO_N "(cached) $ECHO_C" >&6
20825else
20826
20827
20828
20829 ac_ext=cc
20830ac_cpp='$CXXCPP $CPPFLAGS'
20831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20834
20835
20836 cat >conftest.$ac_ext <<_ACEOF
20837/* confdefs.h. */
20838_ACEOF
20839cat confdefs.h >>conftest.$ac_ext
20840cat >>conftest.$ac_ext <<_ACEOF
20841/* end confdefs.h. */
20842
20843 class Foo { public: explicit Foo(int) {} };
20844
20845int
20846main ()
20847{
20848
20849 return 0;
20850
20851 ;
20852 return 0;
20853}
20854_ACEOF
20855rm -f conftest.$ac_objext
20856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20857 (eval $ac_compile) 2>conftest.er1
a848cd7e 20858 ac_status=$?
ac1cb8d3
VS
20859 grep -v '^ *+' conftest.er1 >conftest.err
20860 rm -f conftest.er1
20861 cat conftest.err >&5
a848cd7e
SC
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } &&
9dd0f6c2 20864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866 (eval $ac_try) 2>&5
20867 ac_status=$?
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; } &&
20870 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872 (eval $ac_try) 2>&5
20873 ac_status=$?
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; }; then
20876
20877 cat >conftest.$ac_ext <<_ACEOF
20878/* confdefs.h. */
20879_ACEOF
20880cat confdefs.h >>conftest.$ac_ext
20881cat >>conftest.$ac_ext <<_ACEOF
20882/* end confdefs.h. */
20883
20884 class Foo { public: explicit Foo(int) {} };
20885 static void TakeFoo(const Foo& foo) { }
20886
20887int
20888main ()
20889{
20890
20891 TakeFoo(17);
20892 return 0;
20893
20894 ;
20895 return 0;
20896}
20897_ACEOF
20898rm -f conftest.$ac_objext
20899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20900 (eval $ac_compile) 2>conftest.er1
a848cd7e 20901 ac_status=$?
ac1cb8d3
VS
20902 grep -v '^ *+' conftest.er1 >conftest.err
20903 rm -f conftest.er1
20904 cat conftest.err >&5
a848cd7e
SC
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); } &&
9dd0f6c2 20907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909 (eval $ac_try) 2>&5
20910 ac_status=$?
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); }; } &&
20913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20915 (eval $ac_try) 2>&5
20916 ac_status=$?
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; }; then
20919 wx_cv_explicit=no
20920else
20921 echo "$as_me: failed program was:" >&5
20922sed 's/^/| /' conftest.$ac_ext >&5
20923
20924wx_cv_explicit=yes
20925
20926fi
ac1cb8d3 20927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20928
20929else
20930 echo "$as_me: failed program was:" >&5
20931sed 's/^/| /' conftest.$ac_ext >&5
20932
20933wx_cv_explicit=no
20934
20935fi
ac1cb8d3 20936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20937
20938 ac_ext=c
20939ac_cpp='$CPP $CPPFLAGS'
20940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20942ac_compiler_gnu=$ac_cv_c_compiler_gnu
20943
20944
20945fi
20946echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20947echo "${ECHO_T}$wx_cv_explicit" >&6
20948
20949 if test "$wx_cv_explicit" = "yes"; then
20950 cat >>confdefs.h <<\_ACEOF
20951#define HAVE_EXPLICIT 1
20952_ACEOF
20953
20954 fi
20955
20956
20957echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20958echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20959if test "${ac_cv_cxx_const_cast+set}" = set; then
20960 echo $ECHO_N "(cached) $ECHO_C" >&6
20961else
20962
20963
20964 ac_ext=cc
20965ac_cpp='$CXXCPP $CPPFLAGS'
20966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20969
20970 cat >conftest.$ac_ext <<_ACEOF
20971/* confdefs.h. */
20972_ACEOF
20973cat confdefs.h >>conftest.$ac_ext
20974cat >>conftest.$ac_ext <<_ACEOF
20975/* end confdefs.h. */
20976
20977int
20978main ()
20979{
20980int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20981 ;
20982 return 0;
20983}
20984_ACEOF
20985rm -f conftest.$ac_objext
20986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20987 (eval $ac_compile) 2>conftest.er1
a848cd7e 20988 ac_status=$?
ac1cb8d3
VS
20989 grep -v '^ *+' conftest.er1 >conftest.err
20990 rm -f conftest.er1
20991 cat conftest.err >&5
a848cd7e
SC
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); } &&
9dd0f6c2 20994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20997 ac_status=$?
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; } &&
21000 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21002 (eval $ac_try) 2>&5
21003 ac_status=$?
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; }; then
21006 ac_cv_cxx_const_cast=yes
21007else
21008 echo "$as_me: failed program was:" >&5
21009sed 's/^/| /' conftest.$ac_ext >&5
21010
21011ac_cv_cxx_const_cast=no
21012fi
ac1cb8d3 21013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21014 ac_ext=c
21015ac_cpp='$CPP $CPPFLAGS'
21016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21018ac_compiler_gnu=$ac_cv_c_compiler_gnu
21019
21020
21021fi
21022echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21023echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21024if test "$ac_cv_cxx_const_cast" = yes; then
21025
21026cat >>confdefs.h <<\_ACEOF
21027#define HAVE_CONST_CAST
21028_ACEOF
21029
21030fi
21031
7714864e
RL
21032echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21033echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21034if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21035 echo $ECHO_N "(cached) $ECHO_C" >&6
21036else
21037
21038
21039 ac_ext=cc
21040ac_cpp='$CXXCPP $CPPFLAGS'
21041ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21042ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21043ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21044
21045 cat >conftest.$ac_ext <<_ACEOF
21046/* confdefs.h. */
21047_ACEOF
21048cat confdefs.h >>conftest.$ac_ext
21049cat >>conftest.$ac_ext <<_ACEOF
21050/* end confdefs.h. */
21051#include <typeinfo>
21052class Base { public : Base () {} virtual void f () = 0;};
21053class Derived : public Base { public : Derived () {} virtual void f () {} };
21054class Unrelated { public : Unrelated () {} };
21055int g (Unrelated&) { return 0; }
21056int
21057main ()
21058{
21059
21060Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21061 ;
21062 return 0;
21063}
21064_ACEOF
21065rm -f conftest.$ac_objext
21066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21067 (eval $ac_compile) 2>conftest.er1
21068 ac_status=$?
21069 grep -v '^ *+' conftest.er1 >conftest.err
21070 rm -f conftest.er1
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } &&
9dd0f6c2 21074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076 (eval $ac_try) 2>&5
21077 ac_status=$?
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); }; } &&
21080 { ac_try='test -s conftest.$ac_objext'
21081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21082 (eval $ac_try) 2>&5
21083 ac_status=$?
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); }; }; then
21086 ac_cv_cxx_reinterpret_cast=yes
21087else
21088 echo "$as_me: failed program was:" >&5
21089sed 's/^/| /' conftest.$ac_ext >&5
21090
21091ac_cv_cxx_reinterpret_cast=no
21092fi
21093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21094 ac_ext=c
21095ac_cpp='$CPP $CPPFLAGS'
21096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21098ac_compiler_gnu=$ac_cv_c_compiler_gnu
21099
21100
21101fi
21102echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21103echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21104if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21105
21106cat >>confdefs.h <<\_ACEOF
21107#define HAVE_REINTERPRET_CAST
21108_ACEOF
21109
21110fi
21111
a848cd7e
SC
21112echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21113echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21114if test "${ac_cv_cxx_static_cast+set}" = set; then
21115 echo $ECHO_N "(cached) $ECHO_C" >&6
21116else
21117
21118
21119 ac_ext=cc
21120ac_cpp='$CXXCPP $CPPFLAGS'
21121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21124
21125 cat >conftest.$ac_ext <<_ACEOF
21126/* confdefs.h. */
21127_ACEOF
21128cat confdefs.h >>conftest.$ac_ext
21129cat >>conftest.$ac_ext <<_ACEOF
21130/* end confdefs.h. */
21131#include <typeinfo>
21132class Base { public : Base () {} virtual void f () = 0; };
21133class Derived : public Base { public : Derived () {} virtual void f () {} };
21134int g (Derived&) { return 0; }
21135int
21136main ()
21137{
21138
21139Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21140 ;
21141 return 0;
21142}
21143_ACEOF
21144rm -f conftest.$ac_objext
21145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21146 (eval $ac_compile) 2>conftest.er1
a848cd7e 21147 ac_status=$?
ac1cb8d3
VS
21148 grep -v '^ *+' conftest.er1 >conftest.err
21149 rm -f conftest.er1
21150 cat conftest.err >&5
a848cd7e
SC
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); } &&
9dd0f6c2 21153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21155 (eval $ac_try) 2>&5
21156 ac_status=$?
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); }; } &&
21159 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161 (eval $ac_try) 2>&5
21162 ac_status=$?
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); }; }; then
21165 ac_cv_cxx_static_cast=yes
21166else
21167 echo "$as_me: failed program was:" >&5
21168sed 's/^/| /' conftest.$ac_ext >&5
21169
21170ac_cv_cxx_static_cast=no
21171fi
ac1cb8d3 21172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21173 ac_ext=c
21174ac_cpp='$CPP $CPPFLAGS'
21175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21177ac_compiler_gnu=$ac_cv_c_compiler_gnu
21178
21179
21180fi
21181echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21182echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21183if test "$ac_cv_cxx_static_cast" = yes; then
21184
21185cat >>confdefs.h <<\_ACEOF
21186#define HAVE_STATIC_CAST
21187_ACEOF
21188
21189fi
21190
21191
f56c22b4 21192if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21193 ac_ext=cc
21194ac_cpp='$CXXCPP $CPPFLAGS'
21195ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21196ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21197ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21198
21199
f56c22b4
MW
21200 if test "$wxUSE_UNICODE" = "yes"; then
21201 std_string="std::wstring"
21202 char_type="wchar_t"
21203 else
21204 std_string="std::string"
21205 char_type="char"
21206 fi
21207
21208 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21209echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21210 cat >conftest.$ac_ext <<_ACEOF
21211/* confdefs.h. */
21212_ACEOF
21213cat confdefs.h >>conftest.$ac_ext
21214cat >>conftest.$ac_ext <<_ACEOF
21215/* end confdefs.h. */
21216#include <string>
a848cd7e
SC
21217int
21218main ()
21219{
f56c22b4 21220$std_string foo;
a848cd7e
SC
21221 ;
21222 return 0;
21223}
21224_ACEOF
21225rm -f conftest.$ac_objext
21226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21227 (eval $ac_compile) 2>conftest.er1
a848cd7e 21228 ac_status=$?
ac1cb8d3
VS
21229 grep -v '^ *+' conftest.er1 >conftest.err
21230 rm -f conftest.er1
21231 cat conftest.err >&5
a848cd7e
SC
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } &&
9dd0f6c2 21234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236 (eval $ac_try) 2>&5
21237 ac_status=$?
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; } &&
21240 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242 (eval $ac_try) 2>&5
21243 ac_status=$?
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); }; }; then
21246 echo "$as_me:$LINENO: result: yes" >&5
21247echo "${ECHO_T}yes" >&6
0a08f02a
MB
21248 cat >>confdefs.h <<\_ACEOF
21249#define HAVE_STD_WSTRING 1
21250_ACEOF
21251
a848cd7e
SC
21252else
21253 echo "$as_me: failed program was:" >&5
21254sed 's/^/| /' conftest.$ac_ext >&5
21255
21256echo "$as_me:$LINENO: result: no" >&5
21257echo "${ECHO_T}no" >&6
f56c22b4
MW
21258 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21259echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
21260 cat >conftest.$ac_ext <<_ACEOF
21261/* confdefs.h. */
21262_ACEOF
21263cat confdefs.h >>conftest.$ac_ext
21264cat >>conftest.$ac_ext <<_ACEOF
21265/* end confdefs.h. */
21266
21267 #ifdef HAVE_WCHAR_H
21268 # ifdef __CYGWIN__
21269 # include <stddef.h>
21270 # endif
21271 # include <wchar.h>
21272 #endif
21273 #ifdef HAVE_STDLIB_H
21274 # include <stdlib.h>
21275 #endif
21276 #include <stdio.h>
21277 #include <string>
21278
21279int
21280main ()
21281{
f56c22b4
MW
21282std::basic_string<$char_type> foo;
21283 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21284 ;
21285 return 0;
21286}
21287_ACEOF
21288rm -f conftest.$ac_objext
21289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21290 (eval $ac_compile) 2>conftest.er1
21291 ac_status=$?
21292 grep -v '^ *+' conftest.er1 >conftest.err
21293 rm -f conftest.er1
21294 cat conftest.err >&5
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); } &&
21297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21299 (eval $ac_try) 2>&5
21300 ac_status=$?
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); }; } &&
21303 { ac_try='test -s conftest.$ac_objext'
21304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305 (eval $ac_try) 2>&5
21306 ac_status=$?
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); }; }; then
21309 echo "$as_me:$LINENO: result: yes" >&5
21310echo "${ECHO_T}yes" >&6
21311else
21312 echo "$as_me: failed program was:" >&5
21313sed 's/^/| /' conftest.$ac_ext >&5
21314
21315echo "$as_me:$LINENO: result: no" >&5
21316echo "${ECHO_T}no" >&6
f56c22b4
MW
21317 if test "$wxUSE_STL" = "yes"; then
21318 { { echo "$as_me:$LINENO: error: Can't compile with --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21319echo "$as_me: error: Can't compile with --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21320 { (exit 1); exit 1; }; }
f56c22b4
MW
21321 else
21322 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21323echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21324 wxUSE_STD_STRING=no
21325 fi
21326
0a08f02a 21327
a848cd7e 21328fi
ac1cb8d3 21329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21330
0a08f02a
MB
21331fi
21332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21333
21334 ac_ext=c
21335ac_cpp='$CPP $CPPFLAGS'
21336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
21338ac_compiler_gnu=$ac_cv_c_compiler_gnu
21339
21340fi
21341
21342if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21343 ac_ext=cc
21344ac_cpp='$CXXCPP $CPPFLAGS'
21345ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21346ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21347ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21348
21349
21350 echo "$as_me:$LINENO: checking for std::istream" >&5
21351echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21352if test "${ac_cv_type_std__istream+set}" = set; then
21353 echo $ECHO_N "(cached) $ECHO_C" >&6
21354else
21355 cat >conftest.$ac_ext <<_ACEOF
21356/* confdefs.h. */
21357_ACEOF
21358cat confdefs.h >>conftest.$ac_ext
21359cat >>conftest.$ac_ext <<_ACEOF
21360/* end confdefs.h. */
21361#include <iostream>
21362
21363int
21364main ()
21365{
21366if ((std::istream *) 0)
21367 return 0;
21368if (sizeof (std::istream))
21369 return 0;
21370 ;
21371 return 0;
21372}
21373_ACEOF
21374rm -f conftest.$ac_objext
21375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21376 (eval $ac_compile) 2>conftest.er1
21377 ac_status=$?
21378 grep -v '^ *+' conftest.er1 >conftest.err
21379 rm -f conftest.er1
21380 cat conftest.err >&5
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); } &&
21383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385 (eval $ac_try) 2>&5
21386 ac_status=$?
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; } &&
21389 { ac_try='test -s conftest.$ac_objext'
21390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391 (eval $ac_try) 2>&5
21392 ac_status=$?
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); }; }; then
21395 ac_cv_type_std__istream=yes
21396else
21397 echo "$as_me: failed program was:" >&5
21398sed 's/^/| /' conftest.$ac_ext >&5
21399
21400ac_cv_type_std__istream=no
21401fi
21402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21403fi
21404echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
21405echo "${ECHO_T}$ac_cv_type_std__istream" >&6
21406if test $ac_cv_type_std__istream = yes; then
21407
21408cat >>confdefs.h <<_ACEOF
21409#define HAVE_STD__ISTREAM 1
21410_ACEOF
21411
21412
21413else
21414 wxUSE_STD_IOSTREAM=no
21415fi
21416echo "$as_me:$LINENO: checking for std::ostream" >&5
21417echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
21418if test "${ac_cv_type_std__ostream+set}" = set; then
21419 echo $ECHO_N "(cached) $ECHO_C" >&6
21420else
21421 cat >conftest.$ac_ext <<_ACEOF
21422/* confdefs.h. */
21423_ACEOF
21424cat confdefs.h >>conftest.$ac_ext
21425cat >>conftest.$ac_ext <<_ACEOF
21426/* end confdefs.h. */
21427#include <iostream>
21428
21429int
21430main ()
21431{
21432if ((std::ostream *) 0)
21433 return 0;
21434if (sizeof (std::ostream))
21435 return 0;
21436 ;
21437 return 0;
21438}
21439_ACEOF
21440rm -f conftest.$ac_objext
21441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21442 (eval $ac_compile) 2>conftest.er1
21443 ac_status=$?
21444 grep -v '^ *+' conftest.er1 >conftest.err
21445 rm -f conftest.er1
21446 cat conftest.err >&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } &&
21449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451 (eval $ac_try) 2>&5
21452 ac_status=$?
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; } &&
21455 { ac_try='test -s conftest.$ac_objext'
21456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457 (eval $ac_try) 2>&5
21458 ac_status=$?
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); }; }; then
21461 ac_cv_type_std__ostream=yes
21462else
21463 echo "$as_me: failed program was:" >&5
21464sed 's/^/| /' conftest.$ac_ext >&5
21465
21466ac_cv_type_std__ostream=no
21467fi
21468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21469fi
21470echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
21471echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
21472if test $ac_cv_type_std__ostream = yes; then
21473
21474cat >>confdefs.h <<_ACEOF
21475#define HAVE_STD__OSTREAM 1
21476_ACEOF
21477
21478
21479else
21480 wxUSE_STD_IOSTREAM=no
21481fi
21482
21483
21484 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
21485 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
21486echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
21487 fi
21488
21489 ac_ext=c
21490ac_cpp='$CPP $CPPFLAGS'
21491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
21493ac_compiler_gnu=$ac_cv_c_compiler_gnu
21494
21495fi
21496
21497if test "$wxUSE_STL" = "yes"; then
21498 ac_ext=cc
21499ac_cpp='$CXXCPP $CPPFLAGS'
21500ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21501ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21502ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21503
21504
21505 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21506echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21507 cat >conftest.$ac_ext <<_ACEOF
21508/* confdefs.h. */
21509_ACEOF
21510cat confdefs.h >>conftest.$ac_ext
21511cat >>conftest.$ac_ext <<_ACEOF
21512/* end confdefs.h. */
21513#include <string>
0a08f02a
MB
21514 #include <functional>
21515 #include <algorithm>
21516 #include <vector>
21517 #include <list>
a848cd7e
SC
21518int
21519main ()
21520{
0a08f02a
MB
21521std::vector<int> moo;
21522 std::list<int> foo;
21523 std::vector<int>::iterator it =
21524 std::find_if(moo.begin(), moo.end(),
21525 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21526 ;
21527 return 0;
21528}
21529_ACEOF
21530rm -f conftest.$ac_objext
21531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21532 (eval $ac_compile) 2>conftest.er1
a848cd7e 21533 ac_status=$?
ac1cb8d3
VS
21534 grep -v '^ *+' conftest.er1 >conftest.err
21535 rm -f conftest.er1
21536 cat conftest.err >&5
a848cd7e
SC
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } &&
9dd0f6c2 21539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21541 (eval $ac_try) 2>&5
21542 ac_status=$?
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); }; } &&
21545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21547 (eval $ac_try) 2>&5
21548 ac_status=$?
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); }; }; then
21551 echo "$as_me:$LINENO: result: yes" >&5
21552echo "${ECHO_T}yes" >&6
a848cd7e
SC
21553else
21554 echo "$as_me: failed program was:" >&5
21555sed 's/^/| /' conftest.$ac_ext >&5
21556
21557echo "$as_me:$LINENO: result: no" >&5
21558echo "${ECHO_T}no" >&6
0a08f02a
MB
21559 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21560echo "$as_me: error: Basic STL functionality missing" >&2;}
21561 { (exit 1); exit 1; }; }
a848cd7e 21562fi
ac1cb8d3 21563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21564
21565 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21566echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21567 cat >conftest.$ac_ext <<_ACEOF
21568/* confdefs.h. */
21569_ACEOF
21570cat confdefs.h >>conftest.$ac_ext
21571cat >>conftest.$ac_ext <<_ACEOF
21572/* end confdefs.h. */
21573#include <string>
21574int
21575main ()
21576{
21577std::string foo, bar;
21578 foo.compare(bar);
21579 foo.compare(1, 1, bar);
21580 foo.compare(1, 1, bar, 1, 1);
21581 foo.compare("");
21582 foo.compare(1, 1, "");
21583 foo.compare(1, 1, "", 2);
21584 ;
21585 return 0;
21586}
21587_ACEOF
21588rm -f conftest.$ac_objext
21589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21590 (eval $ac_compile) 2>conftest.er1
a848cd7e 21591 ac_status=$?
ac1cb8d3
VS
21592 grep -v '^ *+' conftest.er1 >conftest.err
21593 rm -f conftest.er1
21594 cat conftest.err >&5
a848cd7e
SC
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } &&
9dd0f6c2 21597 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599 (eval $ac_try) 2>&5
21600 ac_status=$?
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; } &&
21603 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605 (eval $ac_try) 2>&5
21606 ac_status=$?
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); }; }; then
21609 echo "$as_me:$LINENO: result: yes" >&5
21610echo "${ECHO_T}yes" >&6
21611 cat >>confdefs.h <<\_ACEOF
21612#define HAVE_STD_STRING_COMPARE 1
21613_ACEOF
21614
21615else
21616 echo "$as_me: failed program was:" >&5
21617sed 's/^/| /' conftest.$ac_ext >&5
21618
21619echo "$as_me:$LINENO: result: no" >&5
21620echo "${ECHO_T}no" >&6
21621fi
ac1cb8d3 21622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21623
21624 if test "${ac_cv_header_hash_map+set}" = set; then
21625 echo "$as_me:$LINENO: checking for hash_map" >&5
21626echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21627if test "${ac_cv_header_hash_map+set}" = set; then
21628 echo $ECHO_N "(cached) $ECHO_C" >&6
21629fi
21630echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21631echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21632else
21633 # Is the header compilable?
21634echo "$as_me:$LINENO: checking hash_map usability" >&5
21635echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21636cat >conftest.$ac_ext <<_ACEOF
21637/* confdefs.h. */
21638_ACEOF
21639cat confdefs.h >>conftest.$ac_ext
21640cat >>conftest.$ac_ext <<_ACEOF
21641/* end confdefs.h. */
21642$ac_includes_default
21643#include <hash_map>
21644_ACEOF
21645rm -f conftest.$ac_objext
21646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21647 (eval $ac_compile) 2>conftest.er1
bdcade0a 21648 ac_status=$?
ac1cb8d3
VS
21649 grep -v '^ *+' conftest.er1 >conftest.err
21650 rm -f conftest.er1
21651 cat conftest.err >&5
bdcade0a
MB
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); } &&
9dd0f6c2 21654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21656 (eval $ac_try) 2>&5
21657 ac_status=$?
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; } &&
21660 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21662 (eval $ac_try) 2>&5
21663 ac_status=$?
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; }; then
21666 ac_header_compiler=yes
21667else
21668 echo "$as_me: failed program was:" >&5
21669sed 's/^/| /' conftest.$ac_ext >&5
21670
21671ac_header_compiler=no
21672fi
ac1cb8d3 21673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21674echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21675echo "${ECHO_T}$ac_header_compiler" >&6
21676
21677# Is the header present?
21678echo "$as_me:$LINENO: checking hash_map presence" >&5
21679echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21680cat >conftest.$ac_ext <<_ACEOF
21681/* confdefs.h. */
21682_ACEOF
21683cat confdefs.h >>conftest.$ac_ext
21684cat >>conftest.$ac_ext <<_ACEOF
21685/* end confdefs.h. */
21686#include <hash_map>
21687_ACEOF
21688if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21690 ac_status=$?
21691 grep -v '^ *+' conftest.er1 >conftest.err
21692 rm -f conftest.er1
21693 cat conftest.err >&5
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); } >/dev/null; then
21696 if test -s conftest.err; then
21697 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21698 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21699 else
21700 ac_cpp_err=
21701 fi
21702else
21703 ac_cpp_err=yes
21704fi
21705if test -z "$ac_cpp_err"; then
21706 ac_header_preproc=yes
21707else
21708 echo "$as_me: failed program was:" >&5
21709sed 's/^/| /' conftest.$ac_ext >&5
21710
21711 ac_header_preproc=no
21712fi
21713rm -f conftest.err conftest.$ac_ext
21714echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21715echo "${ECHO_T}$ac_header_preproc" >&6
21716
21717# So? What about this header?
ac1cb8d3
VS
21718case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21719 yes:no: )
bdcade0a
MB
21720 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21721echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21722 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21723echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21724 ac_header_preproc=yes
bdcade0a 21725 ;;
ac1cb8d3 21726 no:yes:* )
bdcade0a
MB
21727 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21728echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21729 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21730echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21731 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21732echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21733 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21734echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21735 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21736echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21737 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21738echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21739 (
21740 cat <<\_ASBOX
ac1cb8d3
VS
21741## ----------------------------------------- ##
21742## Report this to wx-dev@lists.wxwidgets.org ##
21743## ----------------------------------------- ##
bdcade0a
MB
21744_ASBOX
21745 ) |
21746 sed "s/^/$as_me: WARNING: /" >&2
21747 ;;
21748esac
21749echo "$as_me:$LINENO: checking for hash_map" >&5
21750echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21751if test "${ac_cv_header_hash_map+set}" = set; then
21752 echo $ECHO_N "(cached) $ECHO_C" >&6
21753else
21754 ac_cv_header_hash_map=$ac_header_preproc
21755fi
21756echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21757echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21758
21759fi
21760if test $ac_cv_header_hash_map = yes; then
21761 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21762echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21763 cat >conftest.$ac_ext <<_ACEOF
21764/* confdefs.h. */
21765_ACEOF
21766cat confdefs.h >>conftest.$ac_ext
21767cat >>conftest.$ac_ext <<_ACEOF
21768/* end confdefs.h. */
21769#include <hash_map>
21770 #include <hash_set>
21771int
21772main ()
21773{
21774std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21775 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21776 ;
21777 return 0;
21778}
21779_ACEOF
21780rm -f conftest.$ac_objext
21781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21782 (eval $ac_compile) 2>conftest.er1
bdcade0a 21783 ac_status=$?
ac1cb8d3
VS
21784 grep -v '^ *+' conftest.er1 >conftest.err
21785 rm -f conftest.er1
21786 cat conftest.err >&5
bdcade0a
MB
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); } &&
9dd0f6c2 21789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791 (eval $ac_try) 2>&5
21792 ac_status=$?
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); }; } &&
21795 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21797 (eval $ac_try) 2>&5
21798 ac_status=$?
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); }; }; then
21801 echo "$as_me:$LINENO: result: yes" >&5
21802echo "${ECHO_T}yes" >&6
21803 cat >>confdefs.h <<\_ACEOF
21804#define HAVE_HASH_MAP 1
21805_ACEOF
21806
21807 cat >>confdefs.h <<\_ACEOF
21808#define HAVE_STD_HASH_MAP 1
21809_ACEOF
21810
21811else
21812 echo "$as_me: failed program was:" >&5
21813sed 's/^/| /' conftest.$ac_ext >&5
21814
21815echo "$as_me:$LINENO: result: no" >&5
21816echo "${ECHO_T}no" >&6
21817fi
ac1cb8d3 21818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21819
21820fi
21821
21822
21823
21824 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21825 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21826echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21827if test "${ac_cv_header_ext_hash_map+set}" = set; then
21828 echo $ECHO_N "(cached) $ECHO_C" >&6
21829fi
21830echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21831echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21832else
21833 # Is the header compilable?
21834echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21835echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21836cat >conftest.$ac_ext <<_ACEOF
21837/* confdefs.h. */
21838_ACEOF
21839cat confdefs.h >>conftest.$ac_ext
21840cat >>conftest.$ac_ext <<_ACEOF
21841/* end confdefs.h. */
21842$ac_includes_default
21843#include <ext/hash_map>
21844_ACEOF
21845rm -f conftest.$ac_objext
21846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21847 (eval $ac_compile) 2>conftest.er1
bdcade0a 21848 ac_status=$?
ac1cb8d3
VS
21849 grep -v '^ *+' conftest.er1 >conftest.err
21850 rm -f conftest.er1
21851 cat conftest.err >&5
bdcade0a
MB
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); } &&
9dd0f6c2 21854 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
21860 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862 (eval $ac_try) 2>&5
21863 ac_status=$?
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); }; }; then
21866 ac_header_compiler=yes
21867else
21868 echo "$as_me: failed program was:" >&5
21869sed 's/^/| /' conftest.$ac_ext >&5
21870
21871ac_header_compiler=no
21872fi
ac1cb8d3 21873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21874echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21875echo "${ECHO_T}$ac_header_compiler" >&6
21876
21877# Is the header present?
21878echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21879echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21880cat >conftest.$ac_ext <<_ACEOF
21881/* confdefs.h. */
21882_ACEOF
21883cat confdefs.h >>conftest.$ac_ext
21884cat >>conftest.$ac_ext <<_ACEOF
21885/* end confdefs.h. */
21886#include <ext/hash_map>
21887_ACEOF
21888if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21890 ac_status=$?
21891 grep -v '^ *+' conftest.er1 >conftest.err
21892 rm -f conftest.er1
21893 cat conftest.err >&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); } >/dev/null; then
21896 if test -s conftest.err; then
21897 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21898 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21899 else
21900 ac_cpp_err=
21901 fi
21902else
21903 ac_cpp_err=yes
21904fi
21905if test -z "$ac_cpp_err"; then
21906 ac_header_preproc=yes
21907else
21908 echo "$as_me: failed program was:" >&5
21909sed 's/^/| /' conftest.$ac_ext >&5
21910
21911 ac_header_preproc=no
21912fi
21913rm -f conftest.err conftest.$ac_ext
21914echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21915echo "${ECHO_T}$ac_header_preproc" >&6
21916
21917# So? What about this header?
ac1cb8d3
VS
21918case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21919 yes:no: )
bdcade0a
MB
21920 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21921echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21922 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21923echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21924 ac_header_preproc=yes
bdcade0a 21925 ;;
ac1cb8d3 21926 no:yes:* )
bdcade0a
MB
21927 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21928echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21929 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21930echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21931 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21932echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21933 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21934echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21935 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21936echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21937 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21938echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21939 (
21940 cat <<\_ASBOX
ac1cb8d3
VS
21941## ----------------------------------------- ##
21942## Report this to wx-dev@lists.wxwidgets.org ##
21943## ----------------------------------------- ##
bdcade0a
MB
21944_ASBOX
21945 ) |
21946 sed "s/^/$as_me: WARNING: /" >&2
21947 ;;
21948esac
21949echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21950echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21951if test "${ac_cv_header_ext_hash_map+set}" = set; then
21952 echo $ECHO_N "(cached) $ECHO_C" >&6
21953else
21954 ac_cv_header_ext_hash_map=$ac_header_preproc
21955fi
21956echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21957echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21958
21959fi
21960if test $ac_cv_header_ext_hash_map = yes; then
21961 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21962echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21963 cat >conftest.$ac_ext <<_ACEOF
21964/* confdefs.h. */
21965_ACEOF
21966cat confdefs.h >>conftest.$ac_ext
21967cat >>conftest.$ac_ext <<_ACEOF
21968/* end confdefs.h. */
21969#include <ext/hash_map>
21970 #include <ext/hash_set>
21971int
21972main ()
21973{
21974__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21975 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21976 ;
21977 return 0;
21978}
21979_ACEOF
21980rm -f conftest.$ac_objext
21981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21982 (eval $ac_compile) 2>conftest.er1
bdcade0a 21983 ac_status=$?
ac1cb8d3
VS
21984 grep -v '^ *+' conftest.er1 >conftest.err
21985 rm -f conftest.er1
21986 cat conftest.err >&5
bdcade0a
MB
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); } &&
9dd0f6c2 21989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21992 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; } &&
21995 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21997 (eval $ac_try) 2>&5
21998 ac_status=$?
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); }; }; then
22001 echo "$as_me:$LINENO: result: yes" >&5
22002echo "${ECHO_T}yes" >&6
22003 cat >>confdefs.h <<\_ACEOF
22004#define HAVE_EXT_HASH_MAP 1
22005_ACEOF
22006
22007 cat >>confdefs.h <<\_ACEOF
22008#define HAVE_GNU_CXX_HASH_MAP 1
22009_ACEOF
22010
22011else
22012 echo "$as_me: failed program was:" >&5
22013sed 's/^/| /' conftest.$ac_ext >&5
22014
22015echo "$as_me:$LINENO: result: no" >&5
22016echo "${ECHO_T}no" >&6
22017fi
ac1cb8d3 22018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22019
22020fi
22021
22022
a848cd7e
SC
22023
22024 ac_ext=c
22025ac_cpp='$CPP $CPPFLAGS'
22026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22028ac_compiler_gnu=$ac_cv_c_compiler_gnu
22029
22030fi
22031
22032
22033SEARCH_INCLUDE="\
22034 /usr/local/include \
22035 \
22036 /usr/Motif-2.1/include \
22037 /usr/Motif-1.2/include \
22038 /usr/include/Motif1.2 \
22039 /opt/xpm/include/X11 \
22040 /opt/GBxpm/include/ \
22041 /opt/GBxpm/X11/include/ \
22042 \
22043 /usr/dt/include \
22044 /usr/openwin/include \
22045 \
22046 /usr/include/Xm \
22047 \
22048 /usr/X11R6/include \
22049 /usr/X11R6.4/include \
22050 /usr/X11R5/include \
22051 /usr/X11R4/include \
22052 \
22053 /usr/include/X11R6 \
22054 /usr/include/X11R5 \
22055 /usr/include/X11R4 \
22056 \
22057 /usr/local/X11R6/include \
22058 /usr/local/X11R5/include \
22059 /usr/local/X11R4/include \
22060 \
22061 /usr/local/include/X11R6 \
22062 /usr/local/include/X11R5 \
22063 /usr/local/include/X11R4 \
22064 \
22065 /usr/X11/include \
22066 /usr/include/X11 \
22067 /usr/local/X11/include \
22068 /usr/local/include/X11 \
22069 \
22070 /usr/X386/include \
22071 /usr/x386/include \
22072 /usr/XFree86/include/X11 \
22073 \
22074 X:/XFree86/include \
22075 X:/XFree86/include/X11 \
22076 \
22077 /usr/include/gtk \
22078 /usr/local/include/gtk \
22079 /usr/include/glib \
22080 /usr/local/include/glib \
22081 \
22082 /usr/include/qt \
22083 /usr/local/include/qt \
22084 \
22085 /usr/local/arm/3.3.2/include \
22086 \
22087 /usr/include/windows \
22088 /usr/include/wine \
22089 /usr/local/include/wine \
22090 \
22091 /usr/unsupported/include \
22092 /usr/athena/include \
22093 /usr/local/x11r5/include \
22094 /usr/lpp/Xamples/include \
22095 \
22096 /usr/openwin/share/include"
22097
07158944 22098SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e
SC
22099
22100
22101cat >confcache <<\_ACEOF
22102# This file is a shell script that caches the results of configure
22103# tests run on this system so they can be shared between configure
22104# scripts and configure runs, see configure's option --config-cache.
22105# It is not useful on other systems. If it contains results you don't
22106# want to keep, you may remove or edit it.
22107#
22108# config.status only pays attention to the cache file if you give it
22109# the --recheck option to rerun configure.
22110#
22111# `ac_cv_env_foo' variables (set or unset) will be overridden when
22112# loading this file, other *unset* `ac_cv_foo' will be assigned the
22113# following values.
22114
22115_ACEOF
22116
22117# The following way of writing the cache mishandles newlines in values,
22118# but we know of no workaround that is simple, portable, and efficient.
22119# So, don't put newlines in cache variables' values.
22120# Ultrix sh set writes to stderr and can't be redirected directly,
22121# and sets the high bit in the cache file unless we assign to the vars.
22122{
22123 (set) 2>&1 |
22124 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22125 *ac_space=\ *)
22126 # `set' does not quote correctly, so add quotes (double-quote
22127 # substitution turns \\\\ into \\, and sed turns \\ into \).
22128 sed -n \
ac1cb8d3
VS
22129 "s/'/'\\\\''/g;
22130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22131 ;;
22132 *)
22133 # `set' quotes correctly as required by POSIX, so do not add quotes.
22134 sed -n \
ac1cb8d3 22135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22136 ;;
22137 esac;
22138} |
22139 sed '
22140 t clear
22141 : clear
22142 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22143 t end
22144 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22145 : end' >>confcache
22146if diff $cache_file confcache >/dev/null 2>&1; then :; else
22147 if test -w $cache_file; then
22148 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22149 cat confcache >$cache_file
22150 else
22151 echo "not updating unwritable cache $cache_file"
22152 fi
22153fi
22154rm -f confcache
22155
22156if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22157 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22158echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22159if test "${wx_cv_lib_glibc21+set}" = set; then
22160 echo $ECHO_N "(cached) $ECHO_C" >&6
22161else
22162
22163 cat >conftest.$ac_ext <<_ACEOF
22164/* confdefs.h. */
22165_ACEOF
22166cat confdefs.h >>conftest.$ac_ext
22167cat >>conftest.$ac_ext <<_ACEOF
22168/* end confdefs.h. */
22169#include <features.h>
22170int
22171main ()
22172{
22173
22174 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
22175 #error not glibc2.1
22176 #endif
22177
22178 ;
22179 return 0;
22180}
22181_ACEOF
22182rm -f conftest.$ac_objext
22183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22184 (eval $ac_compile) 2>conftest.er1
a848cd7e 22185 ac_status=$?
ac1cb8d3
VS
22186 grep -v '^ *+' conftest.er1 >conftest.err
22187 rm -f conftest.er1
22188 cat conftest.err >&5
a848cd7e
SC
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 (exit $ac_status); } &&
9dd0f6c2 22191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22193 (eval $ac_try) 2>&5
22194 ac_status=$?
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); }; } &&
22197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22199 (eval $ac_try) 2>&5
22200 ac_status=$?
22201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202 (exit $ac_status); }; }; then
22203
22204 wx_cv_lib_glibc21=yes
22205
22206else
22207 echo "$as_me: failed program was:" >&5
22208sed 's/^/| /' conftest.$ac_ext >&5
22209
22210
22211 wx_cv_lib_glibc21=no
22212
22213
22214fi
ac1cb8d3 22215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22216
22217fi
22218echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22219echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22220 if test "$wx_cv_lib_glibc21" = "yes"; then
22221 cat >>confdefs.h <<\_ACEOF
22222#define wxHAVE_GLIBC2 1
22223_ACEOF
22224
22225 fi
22226fi
22227
22228if test "x$wx_cv_lib_glibc21" = "xyes"; then
22229 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22230 cat >>confdefs.h <<\_ACEOF
22231#define _GNU_SOURCE 1
22232_ACEOF
22233
22234 fi
22235fi
22236
22237
22238
22239if test "$wxUSE_REGEX" != "no"; then
22240 cat >>confdefs.h <<\_ACEOF
22241#define wxUSE_REGEX 1
22242_ACEOF
22243
22244
22245 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22246 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22247echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22248 wxUSE_REGEX=builtin
22249 fi
22250
22251 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22252 if test "${ac_cv_header_regex_h+set}" = set; then
22253 echo "$as_me:$LINENO: checking for regex.h" >&5
22254echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22255if test "${ac_cv_header_regex_h+set}" = set; then
22256 echo $ECHO_N "(cached) $ECHO_C" >&6
22257fi
22258echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22259echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22260else
22261 # Is the header compilable?
22262echo "$as_me:$LINENO: checking regex.h usability" >&5
22263echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22264cat >conftest.$ac_ext <<_ACEOF
22265/* confdefs.h. */
22266_ACEOF
22267cat confdefs.h >>conftest.$ac_ext
22268cat >>conftest.$ac_ext <<_ACEOF
22269/* end confdefs.h. */
22270$ac_includes_default
22271#include <regex.h>
22272_ACEOF
22273rm -f conftest.$ac_objext
22274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22275 (eval $ac_compile) 2>conftest.er1
a848cd7e 22276 ac_status=$?
ac1cb8d3
VS
22277 grep -v '^ *+' conftest.er1 >conftest.err
22278 rm -f conftest.er1
22279 cat conftest.err >&5
a848cd7e
SC
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); } &&
9dd0f6c2 22282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22284 (eval $ac_try) 2>&5
22285 ac_status=$?
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); }; } &&
22288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22290 (eval $ac_try) 2>&5
22291 ac_status=$?
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); }; }; then
22294 ac_header_compiler=yes
22295else
22296 echo "$as_me: failed program was:" >&5
22297sed 's/^/| /' conftest.$ac_ext >&5
22298
22299ac_header_compiler=no
22300fi
ac1cb8d3 22301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22302echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22303echo "${ECHO_T}$ac_header_compiler" >&6
22304
22305# Is the header present?
22306echo "$as_me:$LINENO: checking regex.h presence" >&5
22307echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22308cat >conftest.$ac_ext <<_ACEOF
22309/* confdefs.h. */
22310_ACEOF
22311cat confdefs.h >>conftest.$ac_ext
22312cat >>conftest.$ac_ext <<_ACEOF
22313/* end confdefs.h. */
22314#include <regex.h>
22315_ACEOF
22316if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22318 ac_status=$?
22319 grep -v '^ *+' conftest.er1 >conftest.err
22320 rm -f conftest.er1
22321 cat conftest.err >&5
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); } >/dev/null; then
22324 if test -s conftest.err; then
22325 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22327 else
22328 ac_cpp_err=
22329 fi
22330else
22331 ac_cpp_err=yes
22332fi
22333if test -z "$ac_cpp_err"; then
22334 ac_header_preproc=yes
22335else
22336 echo "$as_me: failed program was:" >&5
22337sed 's/^/| /' conftest.$ac_ext >&5
22338
22339 ac_header_preproc=no
22340fi
22341rm -f conftest.err conftest.$ac_ext
22342echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22343echo "${ECHO_T}$ac_header_preproc" >&6
22344
22345# So? What about this header?
ac1cb8d3
VS
22346case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22347 yes:no: )
a848cd7e
SC
22348 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22349echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22350 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22351echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22352 ac_header_preproc=yes
a848cd7e 22353 ;;
ac1cb8d3 22354 no:yes:* )
a848cd7e
SC
22355 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22356echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22357 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22358echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22359 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22360echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22361 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22362echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22363 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22364echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22365 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22366echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22367 (
22368 cat <<\_ASBOX
ac1cb8d3
VS
22369## ----------------------------------------- ##
22370## Report this to wx-dev@lists.wxwidgets.org ##
22371## ----------------------------------------- ##
a848cd7e
SC
22372_ASBOX
22373 ) |
22374 sed "s/^/$as_me: WARNING: /" >&2
22375 ;;
22376esac
22377echo "$as_me:$LINENO: checking for regex.h" >&5
22378echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22379if test "${ac_cv_header_regex_h+set}" = set; then
22380 echo $ECHO_N "(cached) $ECHO_C" >&6
22381else
22382 ac_cv_header_regex_h=$ac_header_preproc
22383fi
22384echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22385echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22386
22387fi
22388if test $ac_cv_header_regex_h = yes; then
22389
22390for ac_func in regcomp
22391do
22392as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22393echo "$as_me:$LINENO: checking for $ac_func" >&5
22394echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22395if eval "test \"\${$as_ac_var+set}\" = set"; then
22396 echo $ECHO_N "(cached) $ECHO_C" >&6
22397else
22398 cat >conftest.$ac_ext <<_ACEOF
22399/* confdefs.h. */
22400_ACEOF
22401cat confdefs.h >>conftest.$ac_ext
22402cat >>conftest.$ac_ext <<_ACEOF
22403/* end confdefs.h. */
ac1cb8d3
VS
22404/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22406#define $ac_func innocuous_$ac_func
22407
a848cd7e
SC
22408/* System header to define __stub macros and hopefully few prototypes,
22409 which can conflict with char $ac_func (); below.
22410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22411 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22412
a848cd7e
SC
22413#ifdef __STDC__
22414# include <limits.h>
22415#else
22416# include <assert.h>
22417#endif
ac1cb8d3
VS
22418
22419#undef $ac_func
22420
a848cd7e
SC
22421/* Override any gcc2 internal prototype to avoid an error. */
22422#ifdef __cplusplus
22423extern "C"
22424{
22425#endif
22426/* We use char because int might match the return type of a gcc2
22427 builtin and then its argument prototype would still apply. */
22428char $ac_func ();
22429/* The GNU C library defines this for functions which it implements
22430 to always fail with ENOSYS. Some functions are actually named
22431 something starting with __ and the normal name is an alias. */
22432#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22433choke me
22434#else
22435char (*f) () = $ac_func;
22436#endif
22437#ifdef __cplusplus
22438}
22439#endif
22440
22441int
22442main ()
22443{
22444return f != $ac_func;
22445 ;
22446 return 0;
22447}
22448_ACEOF
22449rm -f conftest.$ac_objext conftest$ac_exeext
22450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22451 (eval $ac_link) 2>conftest.er1
a848cd7e 22452 ac_status=$?
ac1cb8d3
VS
22453 grep -v '^ *+' conftest.er1 >conftest.err
22454 rm -f conftest.er1
22455 cat conftest.err >&5
a848cd7e
SC
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } &&
9dd0f6c2 22458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460 (eval $ac_try) 2>&5
22461 ac_status=$?
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; } &&
22464 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466 (eval $ac_try) 2>&5
22467 ac_status=$?
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); }; }; then
22470 eval "$as_ac_var=yes"
22471else
22472 echo "$as_me: failed program was:" >&5
22473sed 's/^/| /' conftest.$ac_ext >&5
22474
22475eval "$as_ac_var=no"
22476fi
ac1cb8d3
VS
22477rm -f conftest.err conftest.$ac_objext \
22478 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22479fi
22480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22481echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22482if test `eval echo '${'$as_ac_var'}'` = yes; then
22483 cat >>confdefs.h <<_ACEOF
22484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22485_ACEOF
22486
22487fi
22488done
22489
22490fi
22491
22492
22493
22494 if test "x$ac_cv_func_regcomp" != "xyes"; then
22495 if test "$wxUSE_REGEX" = "sys" ; then
22496 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22497echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22498 { (exit 1); exit 1; }; }
22499 else
22500 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22501echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22502 wxUSE_REGEX=builtin
22503 fi
22504 else
22505 wxUSE_REGEX=sys
22506 cat >>confdefs.h <<\_ACEOF
22507#define WX_NO_REGEX_ADVANCED 1
22508_ACEOF
22509
22510 fi
22511 fi
22512fi
22513
22514
22515ZLIB_LINK=
22516if test "$wxUSE_ZLIB" != "no" ; then
22517 cat >>confdefs.h <<\_ACEOF
22518#define wxUSE_ZLIB 1
22519_ACEOF
22520
22521
22522 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22523 if test "$USE_DARWIN" = 1; then
22524 system_zlib_h_ok="yes"
22525 else
22526 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22527echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22528if test "${ac_cv_header_zlib_h+set}" = set; then
22529 echo $ECHO_N "(cached) $ECHO_C" >&6
22530else
22531 if test "$cross_compiling" = yes; then
22532 unset ac_cv_header_zlib_h
22533
22534else
22535 cat >conftest.$ac_ext <<_ACEOF
22536/* confdefs.h. */
22537_ACEOF
22538cat confdefs.h >>conftest.$ac_ext
22539cat >>conftest.$ac_ext <<_ACEOF
22540/* end confdefs.h. */
22541
22542 #include <zlib.h>
22543 #include <stdio.h>
22544
22545 int main()
22546 {
22547 FILE *f=fopen("conftestval", "w");
22548 if (!f) exit(1);
22549 fprintf(f, "%s",
22550 ZLIB_VERSION[0] == '1' &&
22551 (ZLIB_VERSION[2] > '1' ||
22552 (ZLIB_VERSION[2] == '1' &&
22553 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22554 exit(0);
22555 }
22556
22557_ACEOF
22558rm -f conftest$ac_exeext
22559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22560 (eval $ac_link) 2>&5
22561 ac_status=$?
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22565 (eval $ac_try) 2>&5
22566 ac_status=$?
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); }; }; then
22569 ac_cv_header_zlib_h=`cat conftestval`
22570else
22571 echo "$as_me: program exited with status $ac_status" >&5
22572echo "$as_me: failed program was:" >&5
22573sed 's/^/| /' conftest.$ac_ext >&5
22574
22575( exit $ac_status )
22576ac_cv_header_zlib_h=no
22577fi
ac1cb8d3 22578rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22579fi
22580
22581fi
22582echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22583echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22584 if test "${ac_cv_header_zlib_h+set}" = set; then
22585 echo "$as_me:$LINENO: checking for zlib.h" >&5
22586echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22587if test "${ac_cv_header_zlib_h+set}" = set; then
22588 echo $ECHO_N "(cached) $ECHO_C" >&6
22589fi
22590echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22591echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22592else
22593 # Is the header compilable?
22594echo "$as_me:$LINENO: checking zlib.h usability" >&5
22595echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22596cat >conftest.$ac_ext <<_ACEOF
22597/* confdefs.h. */
22598_ACEOF
22599cat confdefs.h >>conftest.$ac_ext
22600cat >>conftest.$ac_ext <<_ACEOF
22601/* end confdefs.h. */
22602$ac_includes_default
22603#include <zlib.h>
22604_ACEOF
22605rm -f conftest.$ac_objext
22606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22607 (eval $ac_compile) 2>conftest.er1
a848cd7e 22608 ac_status=$?
ac1cb8d3
VS
22609 grep -v '^ *+' conftest.er1 >conftest.err
22610 rm -f conftest.er1
22611 cat conftest.err >&5
a848cd7e
SC
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); } &&
9dd0f6c2 22614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22616 (eval $ac_try) 2>&5
22617 ac_status=$?
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); }; } &&
22620 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22622 (eval $ac_try) 2>&5
22623 ac_status=$?
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); }; }; then
22626 ac_header_compiler=yes
22627else
22628 echo "$as_me: failed program was:" >&5
22629sed 's/^/| /' conftest.$ac_ext >&5
22630
22631ac_header_compiler=no
22632fi
ac1cb8d3 22633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22634echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22635echo "${ECHO_T}$ac_header_compiler" >&6
22636
22637# Is the header present?
22638echo "$as_me:$LINENO: checking zlib.h presence" >&5
22639echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22640cat >conftest.$ac_ext <<_ACEOF
22641/* confdefs.h. */
22642_ACEOF
22643cat confdefs.h >>conftest.$ac_ext
22644cat >>conftest.$ac_ext <<_ACEOF
22645/* end confdefs.h. */
22646#include <zlib.h>
22647_ACEOF
22648if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22650 ac_status=$?
22651 grep -v '^ *+' conftest.er1 >conftest.err
22652 rm -f conftest.er1
22653 cat conftest.err >&5
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); } >/dev/null; then
22656 if test -s conftest.err; then
22657 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22659 else
22660 ac_cpp_err=
22661 fi
22662else
22663 ac_cpp_err=yes
22664fi
22665if test -z "$ac_cpp_err"; then
22666 ac_header_preproc=yes
22667else
22668 echo "$as_me: failed program was:" >&5
22669sed 's/^/| /' conftest.$ac_ext >&5
22670
22671 ac_header_preproc=no
22672fi
22673rm -f conftest.err conftest.$ac_ext
22674echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22675echo "${ECHO_T}$ac_header_preproc" >&6
22676
22677# So? What about this header?
ac1cb8d3
VS
22678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22679 yes:no: )
a848cd7e
SC
22680 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22681echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22682 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22683echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22684 ac_header_preproc=yes
a848cd7e 22685 ;;
ac1cb8d3 22686 no:yes:* )
a848cd7e
SC
22687 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22688echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22689 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22690echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22691 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22692echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22693 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22694echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22695 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22696echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22697 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22698echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22699 (
22700 cat <<\_ASBOX
ac1cb8d3
VS
22701## ----------------------------------------- ##
22702## Report this to wx-dev@lists.wxwidgets.org ##
22703## ----------------------------------------- ##
a848cd7e
SC
22704_ASBOX
22705 ) |
22706 sed "s/^/$as_me: WARNING: /" >&2
22707 ;;
22708esac
22709echo "$as_me:$LINENO: checking for zlib.h" >&5
22710echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22711if test "${ac_cv_header_zlib_h+set}" = set; then
22712 echo $ECHO_N "(cached) $ECHO_C" >&6
22713else
22714 ac_cv_header_zlib_h=$ac_header_preproc
22715fi
22716echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22717echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22718
22719fi
22720
22721
22722
22723 system_zlib_h_ok=$ac_cv_header_zlib_h
22724 fi
22725
22726 if test "$system_zlib_h_ok" = "yes"; then
22727 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22728echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22729if test "${ac_cv_lib_z_deflate+set}" = set; then
22730 echo $ECHO_N "(cached) $ECHO_C" >&6
22731else
22732 ac_check_lib_save_LIBS=$LIBS
22733LIBS="-lz $LIBS"
22734cat >conftest.$ac_ext <<_ACEOF
22735/* confdefs.h. */
22736_ACEOF
22737cat confdefs.h >>conftest.$ac_ext
22738cat >>conftest.$ac_ext <<_ACEOF
22739/* end confdefs.h. */
22740
22741/* Override any gcc2 internal prototype to avoid an error. */
22742#ifdef __cplusplus
22743extern "C"
22744#endif
22745/* We use char because int might match the return type of a gcc2
22746 builtin and then its argument prototype would still apply. */
22747char deflate ();
22748int
22749main ()
22750{
22751deflate ();
22752 ;
22753 return 0;
22754}
22755_ACEOF
22756rm -f conftest.$ac_objext conftest$ac_exeext
22757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22758 (eval $ac_link) 2>conftest.er1
a848cd7e 22759 ac_status=$?
ac1cb8d3
VS
22760 grep -v '^ *+' conftest.er1 >conftest.err
22761 rm -f conftest.er1
22762 cat conftest.err >&5
a848cd7e
SC
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } &&
9dd0f6c2 22765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22767 (eval $ac_try) 2>&5
22768 ac_status=$?
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); }; } &&
22771 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22773 (eval $ac_try) 2>&5
22774 ac_status=$?
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); }; }; then
22777 ac_cv_lib_z_deflate=yes
22778else
22779 echo "$as_me: failed program was:" >&5
22780sed 's/^/| /' conftest.$ac_ext >&5
22781
22782ac_cv_lib_z_deflate=no
22783fi
ac1cb8d3
VS
22784rm -f conftest.err conftest.$ac_objext \
22785 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22786LIBS=$ac_check_lib_save_LIBS
22787fi
22788echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22789echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22790if test $ac_cv_lib_z_deflate = yes; then
22791 ZLIB_LINK=" -lz"
22792fi
22793
22794 fi
22795
22796 if test "x$ZLIB_LINK" = "x" ; then
22797 if test "$wxUSE_ZLIB" = "sys" ; then
22798 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22799echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22800 { (exit 1); exit 1; }; }
22801 else
22802 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22803echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22804 wxUSE_ZLIB=builtin
22805 fi
22806 else
22807 wxUSE_ZLIB=sys
22808 fi
22809 fi
22810fi
22811
22812
22813PNG_LINK=
22814if test "$wxUSE_LIBPNG" != "no" ; then
22815 cat >>confdefs.h <<\_ACEOF
22816#define wxUSE_LIBPNG 1
22817_ACEOF
22818
22819
22820 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22821 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22822echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22823 wxUSE_LIBPNG=sys
22824 fi
22825
22826 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22827 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22828echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22829 wxUSE_LIBPNG=builtin
22830 fi
22831
22832 if test "$wxUSE_MGL" != 1 ; then
22833 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22834 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22835echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22836if test "${ac_cv_header_png_h+set}" = set; then
22837 echo $ECHO_N "(cached) $ECHO_C" >&6
22838else
22839 if test "$cross_compiling" = yes; then
22840 unset ac_cv_header_png_h
22841
22842else
22843 cat >conftest.$ac_ext <<_ACEOF
22844/* confdefs.h. */
22845_ACEOF
22846cat confdefs.h >>conftest.$ac_ext
22847cat >>conftest.$ac_ext <<_ACEOF
22848/* end confdefs.h. */
22849
22850 #include <png.h>
22851 #include <stdio.h>
22852
22853 int main()
22854 {
22855 FILE *f=fopen("conftestval", "w");
22856 if (!f) exit(1);
22857 fprintf(f, "%s",
22858 PNG_LIBPNG_VER > 90 ? "yes" : "no");
22859 exit(0);
22860 }
22861
22862_ACEOF
22863rm -f conftest$ac_exeext
22864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22865 (eval $ac_link) 2>&5
22866 ac_status=$?
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22870 (eval $ac_try) 2>&5
22871 ac_status=$?
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); }; }; then
22874 ac_cv_header_png_h=`cat conftestval`
22875else
22876 echo "$as_me: program exited with status $ac_status" >&5
22877echo "$as_me: failed program was:" >&5
22878sed 's/^/| /' conftest.$ac_ext >&5
22879
22880( exit $ac_status )
22881ac_cv_header_png_h=no
22882fi
ac1cb8d3 22883rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22884fi
22885
22886fi
22887echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22888echo "${ECHO_T}$ac_cv_header_png_h" >&6
22889 if test "${ac_cv_header_png_h+set}" = set; then
22890 echo "$as_me:$LINENO: checking for png.h" >&5
22891echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22892if test "${ac_cv_header_png_h+set}" = set; then
22893 echo $ECHO_N "(cached) $ECHO_C" >&6
22894fi
22895echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22896echo "${ECHO_T}$ac_cv_header_png_h" >&6
22897else
22898 # Is the header compilable?
22899echo "$as_me:$LINENO: checking png.h usability" >&5
22900echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22901cat >conftest.$ac_ext <<_ACEOF
22902/* confdefs.h. */
22903_ACEOF
22904cat confdefs.h >>conftest.$ac_ext
22905cat >>conftest.$ac_ext <<_ACEOF
22906/* end confdefs.h. */
22907$ac_includes_default
22908#include <png.h>
22909_ACEOF
22910rm -f conftest.$ac_objext
22911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22912 (eval $ac_compile) 2>conftest.er1
a848cd7e 22913 ac_status=$?
ac1cb8d3
VS
22914 grep -v '^ *+' conftest.er1 >conftest.err
22915 rm -f conftest.er1
22916 cat conftest.err >&5
a848cd7e
SC
22917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918 (exit $ac_status); } &&
9dd0f6c2 22919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22921 (eval $ac_try) 2>&5
22922 ac_status=$?
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); }; } &&
22925 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22927 (eval $ac_try) 2>&5
22928 ac_status=$?
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); }; }; then
22931 ac_header_compiler=yes
22932else
22933 echo "$as_me: failed program was:" >&5
22934sed 's/^/| /' conftest.$ac_ext >&5
22935
22936ac_header_compiler=no
22937fi
ac1cb8d3 22938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22939echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22940echo "${ECHO_T}$ac_header_compiler" >&6
22941
22942# Is the header present?
22943echo "$as_me:$LINENO: checking png.h presence" >&5
22944echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22945cat >conftest.$ac_ext <<_ACEOF
22946/* confdefs.h. */
22947_ACEOF
22948cat confdefs.h >>conftest.$ac_ext
22949cat >>conftest.$ac_ext <<_ACEOF
22950/* end confdefs.h. */
22951#include <png.h>
22952_ACEOF
22953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22955 ac_status=$?
22956 grep -v '^ *+' conftest.er1 >conftest.err
22957 rm -f conftest.er1
22958 cat conftest.err >&5
22959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); } >/dev/null; then
22961 if test -s conftest.err; then
22962 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22964 else
22965 ac_cpp_err=
22966 fi
22967else
22968 ac_cpp_err=yes
22969fi
22970if test -z "$ac_cpp_err"; then
22971 ac_header_preproc=yes
22972else
22973 echo "$as_me: failed program was:" >&5
22974sed 's/^/| /' conftest.$ac_ext >&5
22975
22976 ac_header_preproc=no
22977fi
22978rm -f conftest.err conftest.$ac_ext
22979echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22980echo "${ECHO_T}$ac_header_preproc" >&6
22981
22982# So? What about this header?
ac1cb8d3
VS
22983case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22984 yes:no: )
a848cd7e
SC
22985 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22986echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22987 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22988echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
22989 ac_header_preproc=yes
a848cd7e 22990 ;;
ac1cb8d3 22991 no:yes:* )
a848cd7e
SC
22992 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
22993echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22994 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
22995echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
22996 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
22997echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
22998 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
22999echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23000 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23001echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23002 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23003echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23004 (
23005 cat <<\_ASBOX
ac1cb8d3
VS
23006## ----------------------------------------- ##
23007## Report this to wx-dev@lists.wxwidgets.org ##
23008## ----------------------------------------- ##
a848cd7e
SC
23009_ASBOX
23010 ) |
23011 sed "s/^/$as_me: WARNING: /" >&2
23012 ;;
23013esac
23014echo "$as_me:$LINENO: checking for png.h" >&5
23015echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23016if test "${ac_cv_header_png_h+set}" = set; then
23017 echo $ECHO_N "(cached) $ECHO_C" >&6
23018else
23019 ac_cv_header_png_h=$ac_header_preproc
23020fi
23021echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23022echo "${ECHO_T}$ac_cv_header_png_h" >&6
23023
23024fi
23025
23026
23027
23028 if test "$ac_cv_header_png_h" = "yes"; then
23029 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23030echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23031if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23032 echo $ECHO_N "(cached) $ECHO_C" >&6
23033else
23034 ac_check_lib_save_LIBS=$LIBS
23035LIBS="-lpng -lz -lm $LIBS"
23036cat >conftest.$ac_ext <<_ACEOF
23037/* confdefs.h. */
23038_ACEOF
23039cat confdefs.h >>conftest.$ac_ext
23040cat >>conftest.$ac_ext <<_ACEOF
23041/* end confdefs.h. */
23042
23043/* Override any gcc2 internal prototype to avoid an error. */
23044#ifdef __cplusplus
23045extern "C"
23046#endif
23047/* We use char because int might match the return type of a gcc2
23048 builtin and then its argument prototype would still apply. */
23049char png_check_sig ();
23050int
23051main ()
23052{
23053png_check_sig ();
23054 ;
23055 return 0;
23056}
23057_ACEOF
23058rm -f conftest.$ac_objext conftest$ac_exeext
23059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23060 (eval $ac_link) 2>conftest.er1
a848cd7e 23061 ac_status=$?
ac1cb8d3
VS
23062 grep -v '^ *+' conftest.er1 >conftest.err
23063 rm -f conftest.er1
23064 cat conftest.err >&5
a848cd7e
SC
23065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); } &&
9dd0f6c2 23067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23069 (eval $ac_try) 2>&5
23070 ac_status=$?
23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); }; } &&
23073 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23075 (eval $ac_try) 2>&5
23076 ac_status=$?
23077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); }; }; then
23079 ac_cv_lib_png_png_check_sig=yes
23080else
23081 echo "$as_me: failed program was:" >&5
23082sed 's/^/| /' conftest.$ac_ext >&5
23083
23084ac_cv_lib_png_png_check_sig=no
23085fi
ac1cb8d3
VS
23086rm -f conftest.err conftest.$ac_objext \
23087 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23088LIBS=$ac_check_lib_save_LIBS
23089fi
23090echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23091echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23092if test $ac_cv_lib_png_png_check_sig = yes; then
23093 PNG_LINK=" -lpng -lz"
23094fi
23095
23096 fi
23097
23098 if test "x$PNG_LINK" = "x" ; then
23099 if test "$wxUSE_LIBPNG" = "sys" ; then
23100 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23101echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23102 { (exit 1); exit 1; }; }
23103 else
23104 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23105echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23106 wxUSE_LIBPNG=builtin
23107 fi
23108 else
23109 wxUSE_LIBPNG=sys
23110 fi
23111 fi
23112 fi
23113
23114 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23115fi
23116
23117
23118JPEG_LINK=
23119if test "$wxUSE_LIBJPEG" != "no" ; then
23120 cat >>confdefs.h <<\_ACEOF
23121#define wxUSE_LIBJPEG 1
23122_ACEOF
23123
23124
23125 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23126 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23127echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23128 wxUSE_LIBJPEG=sys
23129 fi
23130
23131 if test "$wxUSE_MGL" != 1 ; then
23132 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23133 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23134echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23135 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23136 echo $ECHO_N "(cached) $ECHO_C" >&6
23137else
23138 cat >conftest.$ac_ext <<_ACEOF
23139/* confdefs.h. */
23140_ACEOF
23141cat confdefs.h >>conftest.$ac_ext
23142cat >>conftest.$ac_ext <<_ACEOF
23143/* end confdefs.h. */
23144
23145 #undef HAVE_STDLIB_H
23146 #include <stdio.h>
23147 #include <jpeglib.h>
23148
23149int
23150main ()
23151{
23152
23153
23154 ;
23155 return 0;
23156}
23157_ACEOF
23158rm -f conftest.$ac_objext
23159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23160 (eval $ac_compile) 2>conftest.er1
a848cd7e 23161 ac_status=$?
ac1cb8d3
VS
23162 grep -v '^ *+' conftest.er1 >conftest.err
23163 rm -f conftest.er1
23164 cat conftest.err >&5
a848cd7e
SC
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); } &&
9dd0f6c2 23167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23169 (eval $ac_try) 2>&5
23170 ac_status=$?
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); }; } &&
23173 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23175 (eval $ac_try) 2>&5
23176 ac_status=$?
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); }; }; then
23179 ac_cv_header_jpeglib_h=yes
23180else
23181 echo "$as_me: failed program was:" >&5
23182sed 's/^/| /' conftest.$ac_ext >&5
23183
23184ac_cv_header_jpeglib_h=no
23185
23186fi
ac1cb8d3 23187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23188
23189fi
23190
23191 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23192echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23193
23194 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23195 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23196echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23197if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23198 echo $ECHO_N "(cached) $ECHO_C" >&6
23199else
23200 ac_check_lib_save_LIBS=$LIBS
23201LIBS="-ljpeg $LIBS"
23202cat >conftest.$ac_ext <<_ACEOF
23203/* confdefs.h. */
23204_ACEOF
23205cat confdefs.h >>conftest.$ac_ext
23206cat >>conftest.$ac_ext <<_ACEOF
23207/* end confdefs.h. */
23208
23209/* Override any gcc2 internal prototype to avoid an error. */
23210#ifdef __cplusplus
23211extern "C"
23212#endif
23213/* We use char because int might match the return type of a gcc2
23214 builtin and then its argument prototype would still apply. */
23215char jpeg_read_header ();
23216int
23217main ()
23218{
23219jpeg_read_header ();
23220 ;
23221 return 0;
23222}
23223_ACEOF
23224rm -f conftest.$ac_objext conftest$ac_exeext
23225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23226 (eval $ac_link) 2>conftest.er1
a848cd7e 23227 ac_status=$?
ac1cb8d3
VS
23228 grep -v '^ *+' conftest.er1 >conftest.err
23229 rm -f conftest.er1
23230 cat conftest.err >&5
a848cd7e
SC
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } &&
9dd0f6c2 23233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23235 (eval $ac_try) 2>&5
23236 ac_status=$?
23237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); }; } &&
23239 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23241 (eval $ac_try) 2>&5
23242 ac_status=$?
23243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244 (exit $ac_status); }; }; then
23245 ac_cv_lib_jpeg_jpeg_read_header=yes
23246else
23247 echo "$as_me: failed program was:" >&5
23248sed 's/^/| /' conftest.$ac_ext >&5
23249
23250ac_cv_lib_jpeg_jpeg_read_header=no
23251fi
ac1cb8d3
VS
23252rm -f conftest.err conftest.$ac_objext \
23253 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23254LIBS=$ac_check_lib_save_LIBS
23255fi
23256echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23257echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23258if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23259 JPEG_LINK=" -ljpeg"
23260fi
23261
23262 fi
23263
23264 if test "x$JPEG_LINK" = "x" ; then
23265 if test "$wxUSE_LIBJPEG" = "sys" ; then
23266 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23267echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23268 { (exit 1); exit 1; }; }
23269 else
23270 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23271echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23272 wxUSE_LIBJPEG=builtin
23273 fi
23274 else
23275 wxUSE_LIBJPEG=sys
23276 fi
23277 fi
23278 fi
23279fi
23280
23281
23282TIFF_LINK=
23283TIFF_PREREQ_LINKS=-lm
23284if test "$wxUSE_LIBTIFF" != "no" ; then
23285 cat >>confdefs.h <<\_ACEOF
23286#define wxUSE_LIBTIFF 1
23287_ACEOF
23288
23289
23290 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23291 if test "$wxUSE_LIBJPEG" = "sys"; then
23292 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23293 fi
23294 if test "$wxUSE_ZLIB" = "sys"; then
23295 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23296 fi
23297 if test "${ac_cv_header_tiffio_h+set}" = set; then
23298 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23299echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23300if test "${ac_cv_header_tiffio_h+set}" = set; then
23301 echo $ECHO_N "(cached) $ECHO_C" >&6
23302fi
23303echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23304echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23305else
23306 # Is the header compilable?
23307echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23308echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23309cat >conftest.$ac_ext <<_ACEOF
23310/* confdefs.h. */
23311_ACEOF
23312cat confdefs.h >>conftest.$ac_ext
23313cat >>conftest.$ac_ext <<_ACEOF
23314/* end confdefs.h. */
23315$ac_includes_default
23316#include <tiffio.h>
23317_ACEOF
23318rm -f conftest.$ac_objext
23319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23320 (eval $ac_compile) 2>conftest.er1
a848cd7e 23321 ac_status=$?
ac1cb8d3
VS
23322 grep -v '^ *+' conftest.er1 >conftest.err
23323 rm -f conftest.er1
23324 cat conftest.err >&5
a848cd7e
SC
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); } &&
9dd0f6c2 23327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23329 (eval $ac_try) 2>&5
23330 ac_status=$?
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); }; } &&
23333 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23335 (eval $ac_try) 2>&5
23336 ac_status=$?
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); }; }; then
23339 ac_header_compiler=yes
23340else
23341 echo "$as_me: failed program was:" >&5
23342sed 's/^/| /' conftest.$ac_ext >&5
23343
23344ac_header_compiler=no
23345fi
ac1cb8d3 23346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23347echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23348echo "${ECHO_T}$ac_header_compiler" >&6
23349
23350# Is the header present?
23351echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23352echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23353cat >conftest.$ac_ext <<_ACEOF
23354/* confdefs.h. */
23355_ACEOF
23356cat confdefs.h >>conftest.$ac_ext
23357cat >>conftest.$ac_ext <<_ACEOF
23358/* end confdefs.h. */
23359#include <tiffio.h>
23360_ACEOF
23361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23363 ac_status=$?
23364 grep -v '^ *+' conftest.er1 >conftest.err
23365 rm -f conftest.er1
23366 cat conftest.err >&5
23367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 (exit $ac_status); } >/dev/null; then
23369 if test -s conftest.err; then
23370 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23372 else
23373 ac_cpp_err=
23374 fi
23375else
23376 ac_cpp_err=yes
23377fi
23378if test -z "$ac_cpp_err"; then
23379 ac_header_preproc=yes
23380else
23381 echo "$as_me: failed program was:" >&5
23382sed 's/^/| /' conftest.$ac_ext >&5
23383
23384 ac_header_preproc=no
23385fi
23386rm -f conftest.err conftest.$ac_ext
23387echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23388echo "${ECHO_T}$ac_header_preproc" >&6
23389
23390# So? What about this header?
ac1cb8d3
VS
23391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23392 yes:no: )
a848cd7e
SC
23393 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23394echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23395 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23396echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23397 ac_header_preproc=yes
a848cd7e 23398 ;;
ac1cb8d3 23399 no:yes:* )
a848cd7e
SC
23400 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23401echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23402 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23403echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23404 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23405echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23406 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23407echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23408 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23409echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23410 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23411echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23412 (
23413 cat <<\_ASBOX
ac1cb8d3
VS
23414## ----------------------------------------- ##
23415## Report this to wx-dev@lists.wxwidgets.org ##
23416## ----------------------------------------- ##
a848cd7e
SC
23417_ASBOX
23418 ) |
23419 sed "s/^/$as_me: WARNING: /" >&2
23420 ;;
23421esac
23422echo "$as_me:$LINENO: checking for tiffio.h" >&5
23423echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23424if test "${ac_cv_header_tiffio_h+set}" = set; then
23425 echo $ECHO_N "(cached) $ECHO_C" >&6
23426else
23427 ac_cv_header_tiffio_h=$ac_header_preproc
23428fi
23429echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23430echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23431
23432fi
23433if test $ac_cv_header_tiffio_h = yes; then
23434
23435 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23436echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23437if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23438 echo $ECHO_N "(cached) $ECHO_C" >&6
23439else
23440 ac_check_lib_save_LIBS=$LIBS
23441LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23442cat >conftest.$ac_ext <<_ACEOF
23443/* confdefs.h. */
23444_ACEOF
23445cat confdefs.h >>conftest.$ac_ext
23446cat >>conftest.$ac_ext <<_ACEOF
23447/* end confdefs.h. */
23448
23449/* Override any gcc2 internal prototype to avoid an error. */
23450#ifdef __cplusplus
23451extern "C"
23452#endif
23453/* We use char because int might match the return type of a gcc2
23454 builtin and then its argument prototype would still apply. */
23455char TIFFError ();
23456int
23457main ()
23458{
23459TIFFError ();
23460 ;
23461 return 0;
23462}
23463_ACEOF
23464rm -f conftest.$ac_objext conftest$ac_exeext
23465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23466 (eval $ac_link) 2>conftest.er1
a848cd7e 23467 ac_status=$?
ac1cb8d3
VS
23468 grep -v '^ *+' conftest.er1 >conftest.err
23469 rm -f conftest.er1
23470 cat conftest.err >&5
a848cd7e
SC
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); } &&
9dd0f6c2 23473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23475 (eval $ac_try) 2>&5
23476 ac_status=$?
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); }; } &&
23479 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23481 (eval $ac_try) 2>&5
23482 ac_status=$?
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); }; }; then
23485 ac_cv_lib_tiff_TIFFError=yes
23486else
23487 echo "$as_me: failed program was:" >&5
23488sed 's/^/| /' conftest.$ac_ext >&5
23489
23490ac_cv_lib_tiff_TIFFError=no
23491fi
ac1cb8d3
VS
23492rm -f conftest.err conftest.$ac_objext \
23493 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23494LIBS=$ac_check_lib_save_LIBS
23495fi
23496echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23497echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23498if test $ac_cv_lib_tiff_TIFFError = yes; then
23499 TIFF_LINK=" -ltiff"
23500fi
23501
23502
23503
23504fi
23505
23506
23507
23508 if test "x$TIFF_LINK" = "x" ; then
23509 if test "$wxUSE_LIBTIFF" = "sys" ; then
23510 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23511echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23512 { (exit 1); exit 1; }; }
23513 else
23514 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23515echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23516 wxUSE_LIBTIFF=builtin
23517 fi
23518 else
23519 wxUSE_LIBTIFF=sys
23520 fi
23521 fi
23522fi
23523
23524
47a7e797
MW
23525if test "$wxUSE_WCHAR_T" != "yes"; then
23526 if test "$wxUSE_EXPAT" != "no"; then
23527 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
23528echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
23529 wxUSE_EXPAT=no
23530 fi
23531 if test "$wxUSE_XML" != "no"; then
23532 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
23533echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
23534 wxUSE_XML=no
23535 fi
23536fi
23537
a848cd7e
SC
23538if test "$wxUSE_EXPAT" != "no"; then
23539 wxUSE_XML=yes
23540 cat >>confdefs.h <<\_ACEOF
23541#define wxUSE_EXPAT 1
23542_ACEOF
23543
23544 cat >>confdefs.h <<\_ACEOF
23545#define wxUSE_XML 1
23546_ACEOF
23547
23548
23549 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23550 if test "${ac_cv_header_expat_h+set}" = set; then
23551 echo "$as_me:$LINENO: checking for expat.h" >&5
23552echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23553if test "${ac_cv_header_expat_h+set}" = set; then
23554 echo $ECHO_N "(cached) $ECHO_C" >&6
23555fi
23556echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23557echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23558else
23559 # Is the header compilable?
23560echo "$as_me:$LINENO: checking expat.h usability" >&5
23561echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23562cat >conftest.$ac_ext <<_ACEOF
23563/* confdefs.h. */
23564_ACEOF
23565cat confdefs.h >>conftest.$ac_ext
23566cat >>conftest.$ac_ext <<_ACEOF
23567/* end confdefs.h. */
23568$ac_includes_default
23569#include <expat.h>
23570_ACEOF
23571rm -f conftest.$ac_objext
23572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23573 (eval $ac_compile) 2>conftest.er1
a848cd7e 23574 ac_status=$?
ac1cb8d3
VS
23575 grep -v '^ *+' conftest.er1 >conftest.err
23576 rm -f conftest.er1
23577 cat conftest.err >&5
a848cd7e
SC
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); } &&
9dd0f6c2 23580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23582 (eval $ac_try) 2>&5
23583 ac_status=$?
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; } &&
23586 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23588 (eval $ac_try) 2>&5
23589 ac_status=$?
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); }; }; then
23592 ac_header_compiler=yes
23593else
23594 echo "$as_me: failed program was:" >&5
23595sed 's/^/| /' conftest.$ac_ext >&5
23596
23597ac_header_compiler=no
23598fi
ac1cb8d3 23599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23600echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23601echo "${ECHO_T}$ac_header_compiler" >&6
23602
23603# Is the header present?
23604echo "$as_me:$LINENO: checking expat.h presence" >&5
23605echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23606cat >conftest.$ac_ext <<_ACEOF
23607/* confdefs.h. */
23608_ACEOF
23609cat confdefs.h >>conftest.$ac_ext
23610cat >>conftest.$ac_ext <<_ACEOF
23611/* end confdefs.h. */
23612#include <expat.h>
23613_ACEOF
23614if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23616 ac_status=$?
23617 grep -v '^ *+' conftest.er1 >conftest.err
23618 rm -f conftest.er1
23619 cat conftest.err >&5
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); } >/dev/null; then
23622 if test -s conftest.err; then
23623 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23625 else
23626 ac_cpp_err=
23627 fi
23628else
23629 ac_cpp_err=yes
23630fi
23631if test -z "$ac_cpp_err"; then
23632 ac_header_preproc=yes
23633else
23634 echo "$as_me: failed program was:" >&5
23635sed 's/^/| /' conftest.$ac_ext >&5
23636
23637 ac_header_preproc=no
23638fi
23639rm -f conftest.err conftest.$ac_ext
23640echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23641echo "${ECHO_T}$ac_header_preproc" >&6
23642
23643# So? What about this header?
ac1cb8d3
VS
23644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23645 yes:no: )
a848cd7e
SC
23646 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23647echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23648 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23649echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23650 ac_header_preproc=yes
a848cd7e 23651 ;;
ac1cb8d3 23652 no:yes:* )
a848cd7e
SC
23653 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23654echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23655 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23656echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23657 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23658echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23659 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23660echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23661 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23662echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23663 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23664echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23665 (
23666 cat <<\_ASBOX
ac1cb8d3
VS
23667## ----------------------------------------- ##
23668## Report this to wx-dev@lists.wxwidgets.org ##
23669## ----------------------------------------- ##
a848cd7e
SC
23670_ASBOX
23671 ) |
23672 sed "s/^/$as_me: WARNING: /" >&2
23673 ;;
23674esac
23675echo "$as_me:$LINENO: checking for expat.h" >&5
23676echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23677if test "${ac_cv_header_expat_h+set}" = set; then
23678 echo $ECHO_N "(cached) $ECHO_C" >&6
23679else
23680 ac_cv_header_expat_h=$ac_header_preproc
23681fi
23682echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23683echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23684
23685fi
23686if test $ac_cv_header_expat_h = yes; then
23687 found_expat_h=1
23688fi
23689
23690
23691 if test "x$found_expat_h" = "x1"; then
23692 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23693echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23694if test "${wx_cv_expat_is_not_broken+set}" = set; then
23695 echo $ECHO_N "(cached) $ECHO_C" >&6
23696else
23697
23698
23699
23700 ac_ext=cc
23701ac_cpp='$CXXCPP $CPPFLAGS'
23702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23705
23706 cat >conftest.$ac_ext <<_ACEOF
23707/* confdefs.h. */
23708_ACEOF
23709cat confdefs.h >>conftest.$ac_ext
23710cat >>conftest.$ac_ext <<_ACEOF
23711/* end confdefs.h. */
23712#include <expat.h>
23713int
23714main ()
23715{
23716
23717 ;
23718 return 0;
23719}
23720_ACEOF
23721rm -f conftest.$ac_objext
23722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23723 (eval $ac_compile) 2>conftest.er1
a848cd7e 23724 ac_status=$?
ac1cb8d3
VS
23725 grep -v '^ *+' conftest.er1 >conftest.err
23726 rm -f conftest.er1
23727 cat conftest.err >&5
a848cd7e
SC
23728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); } &&
9dd0f6c2 23730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23732 (eval $ac_try) 2>&5
23733 ac_status=$?
23734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); }; } &&
23736 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23738 (eval $ac_try) 2>&5
23739 ac_status=$?
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); }; }; then
23742 wx_cv_expat_is_not_broken=yes
23743else
23744 echo "$as_me: failed program was:" >&5
23745sed 's/^/| /' conftest.$ac_ext >&5
23746
23747wx_cv_expat_is_not_broken=no
23748
23749fi
ac1cb8d3 23750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23751 ac_ext=c
23752ac_cpp='$CPP $CPPFLAGS'
23753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23755ac_compiler_gnu=$ac_cv_c_compiler_gnu
23756
23757
23758
23759fi
23760echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23761echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23762 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23763 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23764echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23765if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23766 echo $ECHO_N "(cached) $ECHO_C" >&6
23767else
23768 ac_check_lib_save_LIBS=$LIBS
23769LIBS="-lexpat $LIBS"
23770cat >conftest.$ac_ext <<_ACEOF
23771/* confdefs.h. */
23772_ACEOF
23773cat confdefs.h >>conftest.$ac_ext
23774cat >>conftest.$ac_ext <<_ACEOF
23775/* end confdefs.h. */
23776
23777/* Override any gcc2 internal prototype to avoid an error. */
23778#ifdef __cplusplus
23779extern "C"
23780#endif
23781/* We use char because int might match the return type of a gcc2
23782 builtin and then its argument prototype would still apply. */
23783char XML_ParserCreate ();
23784int
23785main ()
23786{
23787XML_ParserCreate ();
23788 ;
23789 return 0;
23790}
23791_ACEOF
23792rm -f conftest.$ac_objext conftest$ac_exeext
23793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23794 (eval $ac_link) 2>conftest.er1
a848cd7e 23795 ac_status=$?
ac1cb8d3
VS
23796 grep -v '^ *+' conftest.er1 >conftest.err
23797 rm -f conftest.er1
23798 cat conftest.err >&5
a848cd7e
SC
23799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800 (exit $ac_status); } &&
9dd0f6c2 23801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23803 (eval $ac_try) 2>&5
23804 ac_status=$?
23805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); }; } &&
23807 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23809 (eval $ac_try) 2>&5
23810 ac_status=$?
23811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812 (exit $ac_status); }; }; then
23813 ac_cv_lib_expat_XML_ParserCreate=yes
23814else
23815 echo "$as_me: failed program was:" >&5
23816sed 's/^/| /' conftest.$ac_ext >&5
23817
23818ac_cv_lib_expat_XML_ParserCreate=no
23819fi
ac1cb8d3
VS
23820rm -f conftest.err conftest.$ac_objext \
23821 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23822LIBS=$ac_check_lib_save_LIBS
23823fi
23824echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23825echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23826if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23827 EXPAT_LINK=" -lexpat"
23828fi
23829
23830 fi
23831 fi
23832 if test "x$EXPAT_LINK" = "x" ; then
23833 if test "$wxUSE_EXPAT" = "sys" ; then
23834 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23835echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23836 { (exit 1); exit 1; }; }
23837 else
23838 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23839echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23840 wxUSE_EXPAT=builtin
23841 fi
23842 else
23843 wxUSE_EXPAT=sys
23844 fi
23845 fi
23846 if test "$wxUSE_EXPAT" = "builtin" ; then
23847
23848
23849subdirs="$subdirs src/expat"
23850
23851 fi
23852fi
23853
23854
23855
23856if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
23857 if test "${ac_cv_header_mspack_h+set}" = set; then
23858 echo "$as_me:$LINENO: checking for mspack.h" >&5
23859echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23860if test "${ac_cv_header_mspack_h+set}" = set; then
23861 echo $ECHO_N "(cached) $ECHO_C" >&6
23862fi
23863echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23864echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23865else
23866 # Is the header compilable?
23867echo "$as_me:$LINENO: checking mspack.h usability" >&5
23868echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23869cat >conftest.$ac_ext <<_ACEOF
23870/* confdefs.h. */
23871_ACEOF
23872cat confdefs.h >>conftest.$ac_ext
23873cat >>conftest.$ac_ext <<_ACEOF
23874/* end confdefs.h. */
23875$ac_includes_default
23876#include <mspack.h>
23877_ACEOF
23878rm -f conftest.$ac_objext
23879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23880 (eval $ac_compile) 2>conftest.er1
a848cd7e 23881 ac_status=$?
ac1cb8d3
VS
23882 grep -v '^ *+' conftest.er1 >conftest.err
23883 rm -f conftest.er1
23884 cat conftest.err >&5
a848cd7e
SC
23885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886 (exit $ac_status); } &&
9dd0f6c2 23887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23889 (eval $ac_try) 2>&5
23890 ac_status=$?
23891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); }; } &&
23893 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23895 (eval $ac_try) 2>&5
23896 ac_status=$?
23897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898 (exit $ac_status); }; }; then
23899 ac_header_compiler=yes
23900else
23901 echo "$as_me: failed program was:" >&5
23902sed 's/^/| /' conftest.$ac_ext >&5
23903
23904ac_header_compiler=no
23905fi
ac1cb8d3 23906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23907echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23908echo "${ECHO_T}$ac_header_compiler" >&6
23909
23910# Is the header present?
23911echo "$as_me:$LINENO: checking mspack.h presence" >&5
23912echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23913cat >conftest.$ac_ext <<_ACEOF
23914/* confdefs.h. */
23915_ACEOF
23916cat confdefs.h >>conftest.$ac_ext
23917cat >>conftest.$ac_ext <<_ACEOF
23918/* end confdefs.h. */
23919#include <mspack.h>
23920_ACEOF
23921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23923 ac_status=$?
23924 grep -v '^ *+' conftest.er1 >conftest.err
23925 rm -f conftest.er1
23926 cat conftest.err >&5
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } >/dev/null; then
23929 if test -s conftest.err; then
23930 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23932 else
23933 ac_cpp_err=
23934 fi
23935else
23936 ac_cpp_err=yes
23937fi
23938if test -z "$ac_cpp_err"; then
23939 ac_header_preproc=yes
23940else
23941 echo "$as_me: failed program was:" >&5
23942sed 's/^/| /' conftest.$ac_ext >&5
23943
23944 ac_header_preproc=no
23945fi
23946rm -f conftest.err conftest.$ac_ext
23947echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23948echo "${ECHO_T}$ac_header_preproc" >&6
23949
23950# So? What about this header?
ac1cb8d3
VS
23951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23952 yes:no: )
a848cd7e
SC
23953 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23954echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23955 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23956echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23957 ac_header_preproc=yes
a848cd7e 23958 ;;
ac1cb8d3 23959 no:yes:* )
a848cd7e
SC
23960 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23961echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23962 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
23963echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
23964 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23965echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23966 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
23967echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23968 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23969echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23970 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23971echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23972 (
23973 cat <<\_ASBOX
ac1cb8d3
VS
23974## ----------------------------------------- ##
23975## Report this to wx-dev@lists.wxwidgets.org ##
23976## ----------------------------------------- ##
a848cd7e
SC
23977_ASBOX
23978 ) |
23979 sed "s/^/$as_me: WARNING: /" >&2
23980 ;;
23981esac
23982echo "$as_me:$LINENO: checking for mspack.h" >&5
23983echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23984if test "${ac_cv_header_mspack_h+set}" = set; then
23985 echo $ECHO_N "(cached) $ECHO_C" >&6
23986else
23987 ac_cv_header_mspack_h=$ac_header_preproc
23988fi
23989echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23990echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23991
23992fi
23993if test $ac_cv_header_mspack_h = yes; then
23994 found_mspack_h=1
23995fi
23996
23997
23998 if test "x$found_mspack_h" = "x1"; then
23999 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24000echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24001if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24002 echo $ECHO_N "(cached) $ECHO_C" >&6
24003else
24004 ac_check_lib_save_LIBS=$LIBS
24005LIBS="-lmspack $LIBS"
24006cat >conftest.$ac_ext <<_ACEOF
24007/* confdefs.h. */
24008_ACEOF
24009cat confdefs.h >>conftest.$ac_ext
24010cat >>conftest.$ac_ext <<_ACEOF
24011/* end confdefs.h. */
24012
24013/* Override any gcc2 internal prototype to avoid an error. */
24014#ifdef __cplusplus
24015extern "C"
24016#endif
24017/* We use char because int might match the return type of a gcc2
24018 builtin and then its argument prototype would still apply. */
24019char mspack_create_chm_decompressor ();
24020int
24021main ()
24022{
24023mspack_create_chm_decompressor ();
24024 ;
24025 return 0;
24026}
24027_ACEOF
24028rm -f conftest.$ac_objext conftest$ac_exeext
24029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24030 (eval $ac_link) 2>conftest.er1
a848cd7e 24031 ac_status=$?
ac1cb8d3
VS
24032 grep -v '^ *+' conftest.er1 >conftest.err
24033 rm -f conftest.er1
24034 cat conftest.err >&5
a848cd7e
SC
24035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036 (exit $ac_status); } &&
9dd0f6c2 24037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24039 (eval $ac_try) 2>&5
24040 ac_status=$?
24041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24042 (exit $ac_status); }; } &&
24043 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24045 (eval $ac_try) 2>&5
24046 ac_status=$?
24047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); }; }; then
24049 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24050else
24051 echo "$as_me: failed program was:" >&5
24052sed 's/^/| /' conftest.$ac_ext >&5
24053
24054ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24055fi
ac1cb8d3
VS
24056rm -f conftest.err conftest.$ac_objext \
24057 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24058LIBS=$ac_check_lib_save_LIBS
24059fi
24060echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24061echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24062if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24063 MSPACK_LINK=" -lmspack"
24064fi
24065
24066 fi
24067 if test "x$MSPACK_LINK" = "x" ; then
24068 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24069 fi
24070fi
24071
24072if test "$wxUSE_LIBMSPACK" != "no"; then
24073 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24074#define wxUSE_LIBMSPACK 1
24075_ACEOF
24076
a848cd7e
SC
24077fi
24078
24079
24080
24081AFMINSTALL=
24082WIN32INSTALL=
24083
24084TOOLKIT=
24085TOOLKIT_INCLUDE=
24086WIDGET_SET=
24087
24088if test "$USE_WIN32" = 1 ; then
24089
24090for ac_header in w32api.h
24091do
24092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24093if eval "test \"\${$as_ac_Header+set}\" = set"; then
24094 echo "$as_me:$LINENO: checking for $ac_header" >&5
24095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24096if eval "test \"\${$as_ac_Header+set}\" = set"; then
24097 echo $ECHO_N "(cached) $ECHO_C" >&6
24098fi
24099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24101else
24102 # Is the header compilable?
24103echo "$as_me:$LINENO: checking $ac_header usability" >&5
24104echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24105cat >conftest.$ac_ext <<_ACEOF
24106/* confdefs.h. */
24107_ACEOF
24108cat confdefs.h >>conftest.$ac_ext
24109cat >>conftest.$ac_ext <<_ACEOF
24110/* end confdefs.h. */
24111$ac_includes_default
24112#include <$ac_header>
24113_ACEOF
24114rm -f conftest.$ac_objext
24115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24116 (eval $ac_compile) 2>conftest.er1
a848cd7e 24117 ac_status=$?
ac1cb8d3
VS
24118 grep -v '^ *+' conftest.er1 >conftest.err
24119 rm -f conftest.er1
24120 cat conftest.err >&5
a848cd7e
SC
24121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122 (exit $ac_status); } &&
9dd0f6c2 24123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24125 (eval $ac_try) 2>&5
24126 ac_status=$?
24127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128 (exit $ac_status); }; } &&
24129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24131 (eval $ac_try) 2>&5
24132 ac_status=$?
24133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134 (exit $ac_status); }; }; then
24135 ac_header_compiler=yes
24136else
24137 echo "$as_me: failed program was:" >&5
24138sed 's/^/| /' conftest.$ac_ext >&5
24139
24140ac_header_compiler=no
24141fi
ac1cb8d3 24142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24143echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24144echo "${ECHO_T}$ac_header_compiler" >&6
24145
24146# Is the header present?
24147echo "$as_me:$LINENO: checking $ac_header presence" >&5
24148echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24149cat >conftest.$ac_ext <<_ACEOF
24150/* confdefs.h. */
24151_ACEOF
24152cat confdefs.h >>conftest.$ac_ext
24153cat >>conftest.$ac_ext <<_ACEOF
24154/* end confdefs.h. */
24155#include <$ac_header>
24156_ACEOF
24157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24159 ac_status=$?
24160 grep -v '^ *+' conftest.er1 >conftest.err
24161 rm -f conftest.er1
24162 cat conftest.err >&5
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); } >/dev/null; then
24165 if test -s conftest.err; then
24166 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24168 else
24169 ac_cpp_err=
24170 fi
24171else
24172 ac_cpp_err=yes
24173fi
24174if test -z "$ac_cpp_err"; then
24175 ac_header_preproc=yes
24176else
24177 echo "$as_me: failed program was:" >&5
24178sed 's/^/| /' conftest.$ac_ext >&5
24179
24180 ac_header_preproc=no
24181fi
24182rm -f conftest.err conftest.$ac_ext
24183echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24184echo "${ECHO_T}$ac_header_preproc" >&6
24185
24186# So? What about this header?
ac1cb8d3
VS
24187case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24188 yes:no: )
a848cd7e
SC
24189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24190echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24192echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24193 ac_header_preproc=yes
a848cd7e 24194 ;;
ac1cb8d3 24195 no:yes:* )
a848cd7e
SC
24196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24199echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24201echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24203echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24207echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24208 (
24209 cat <<\_ASBOX
ac1cb8d3
VS
24210## ----------------------------------------- ##
24211## Report this to wx-dev@lists.wxwidgets.org ##
24212## ----------------------------------------- ##
a848cd7e
SC
24213_ASBOX
24214 ) |
24215 sed "s/^/$as_me: WARNING: /" >&2
24216 ;;
24217esac
24218echo "$as_me:$LINENO: checking for $ac_header" >&5
24219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24220if eval "test \"\${$as_ac_Header+set}\" = set"; then
24221 echo $ECHO_N "(cached) $ECHO_C" >&6
24222else
ac1cb8d3 24223 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24224fi
24225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24226echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24227
24228fi
24229if test `eval echo '${'$as_ac_Header'}'` = yes; then
24230 cat >>confdefs.h <<_ACEOF
24231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24232_ACEOF
24233
24234fi
24235
24236done
24237
24238 if test "${ac_cv_header_windows_h+set}" = set; then
24239 echo "$as_me:$LINENO: checking for windows.h" >&5
24240echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24241if test "${ac_cv_header_windows_h+set}" = set; then
24242 echo $ECHO_N "(cached) $ECHO_C" >&6
24243fi
24244echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24245echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24246else
24247 # Is the header compilable?
24248echo "$as_me:$LINENO: checking windows.h usability" >&5
24249echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24250cat >conftest.$ac_ext <<_ACEOF
24251/* confdefs.h. */
24252_ACEOF
24253cat confdefs.h >>conftest.$ac_ext
24254cat >>conftest.$ac_ext <<_ACEOF
24255/* end confdefs.h. */
24256$ac_includes_default
24257#include <windows.h>
24258_ACEOF
24259rm -f conftest.$ac_objext
24260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24261 (eval $ac_compile) 2>conftest.er1
a848cd7e 24262 ac_status=$?
ac1cb8d3
VS
24263 grep -v '^ *+' conftest.er1 >conftest.err
24264 rm -f conftest.er1
24265 cat conftest.err >&5
a848cd7e
SC
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); } &&
9dd0f6c2 24268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24270 (eval $ac_try) 2>&5
24271 ac_status=$?
24272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24273 (exit $ac_status); }; } &&
24274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24276 (eval $ac_try) 2>&5
24277 ac_status=$?
24278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279 (exit $ac_status); }; }; then
24280 ac_header_compiler=yes
24281else
24282 echo "$as_me: failed program was:" >&5
24283sed 's/^/| /' conftest.$ac_ext >&5
24284
24285ac_header_compiler=no
24286fi
ac1cb8d3 24287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24288echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24289echo "${ECHO_T}$ac_header_compiler" >&6
24290
24291# Is the header present?
24292echo "$as_me:$LINENO: checking windows.h presence" >&5
24293echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24294cat >conftest.$ac_ext <<_ACEOF
24295/* confdefs.h. */
24296_ACEOF
24297cat confdefs.h >>conftest.$ac_ext
24298cat >>conftest.$ac_ext <<_ACEOF
24299/* end confdefs.h. */
24300#include <windows.h>
24301_ACEOF
24302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24304 ac_status=$?
24305 grep -v '^ *+' conftest.er1 >conftest.err
24306 rm -f conftest.er1
24307 cat conftest.err >&5
24308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24309 (exit $ac_status); } >/dev/null; then
24310 if test -s conftest.err; then
24311 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24313 else
24314 ac_cpp_err=
24315 fi
24316else
24317 ac_cpp_err=yes
24318fi
24319if test -z "$ac_cpp_err"; then
24320 ac_header_preproc=yes
24321else
24322 echo "$as_me: failed program was:" >&5
24323sed 's/^/| /' conftest.$ac_ext >&5
24324
24325 ac_header_preproc=no
24326fi
24327rm -f conftest.err conftest.$ac_ext
24328echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24329echo "${ECHO_T}$ac_header_preproc" >&6
24330
24331# So? What about this header?
ac1cb8d3
VS
24332case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24333 yes:no: )
a848cd7e
SC
24334 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24335echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24336 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24337echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24338 ac_header_preproc=yes
a848cd7e 24339 ;;
ac1cb8d3 24340 no:yes:* )
a848cd7e
SC
24341 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24342echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24343 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24344echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24345 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24346echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24347 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24348echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24349 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24350echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24351 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24352echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24353 (
24354 cat <<\_ASBOX
ac1cb8d3
VS
24355## ----------------------------------------- ##
24356## Report this to wx-dev@lists.wxwidgets.org ##
24357## ----------------------------------------- ##
a848cd7e
SC
24358_ASBOX
24359 ) |
24360 sed "s/^/$as_me: WARNING: /" >&2
24361 ;;
24362esac
24363echo "$as_me:$LINENO: checking for windows.h" >&5
24364echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24365if test "${ac_cv_header_windows_h+set}" = set; then
24366 echo $ECHO_N "(cached) $ECHO_C" >&6
24367else
24368 ac_cv_header_windows_h=$ac_header_preproc
24369fi
24370echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24371echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24372
24373fi
24374if test $ac_cv_header_windows_h = yes; then
24375 :
24376else
24377
24378 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24379echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24380 { (exit 1); exit 1; }; }
24381
24382fi
24383
24384
24385
24386 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24387
24388 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24389 LIBS="$LIBS -loleacc"
24390 fi
24391
24392 case "${host}" in
24393 *-*-cygwin* )
24394 LIBS="$LIBS -lkernel32 -luser32"
24395 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24396 esac
24397
24398 if test "$wxUSE_ODBC" = "sys" ; then
24399 wxUSE_ODBC = "yes"
24400 fi
24401 if test "$wxUSE_ODBC" = "yes" ; then
24402 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24403 cat >>confdefs.h <<\_ACEOF
24404#define wxUSE_ODBC 1
24405_ACEOF
24406
24407 fi
24408
24409 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24410 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24411
24412 WIN32INSTALL=win32install
24413fi
24414
24415if test "$wxUSE_GUI" = "yes"; then
24416 USE_GUI=1
24417
24418 GUI_TK_LIBRARY=
24419
24420 WXGTK12=
24421 WXGTK127=
24422 WXGTK20=
24423 WXGPE=
24424
207bc66c
RN
24425 if test "$wxUSE_COCOA" = 1 ; then
24426 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24427 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24428echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24429 wxUSE_PRINTING_ARCHITECTURE=no
24430 fi
24431 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24432 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24433echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24434 wxUSE_DRAG_AND_DROP=no
24435 fi
24436 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24437 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24438echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24439 wxUSE_DRAGIMAGE=no
24440 fi
24441 fi
24442
a848cd7e
SC
24443 if test "$wxUSE_MSW" = 1 ; then
24444 TOOLKIT=MSW
24445 GUIDIST=MSW_DIST
24446
ceec2216 24447 case "${host}" in
a848cd7e
SC
24448 *-*-mingw32* )
24449 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24450 esac
24451 fi
24452
24453 if test "$wxUSE_GTK" = 1; then
24454 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24455echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24456
24457 gtk_version_cached=1
24458 if test "${wx_cv_lib_gtk+set}" = set; then
24459 echo $ECHO_N "(cached) $ECHO_C" >&6
24460else
24461
24462 gtk_version_cached=0
24463 echo "$as_me:$LINENO: result: " >&5
24464echo "${ECHO_T}" >&6
24465
24466 GTK_MODULES=
24467 if test "$wxUSE_THREADS" = "yes"; then
24468 GTK_MODULES=gthread
24469 fi
24470
f597b41c 24471 wx_cv_lib_gtk=
f34ca037 24472 if test "x$wxGTK_VERSION" != "x1"; then
a848cd7e
SC
24473 # Check whether --enable-gtktest or --disable-gtktest was given.
24474if test "${enable_gtktest+set}" = set; then
24475 enableval="$enable_gtktest"
24476
24477else
24478 enable_gtktest=yes
24479fi;
24480
24481 pkg_config_args=gtk+-2.0
24482 for module in . $GTK_MODULES
24483 do
24484 case "$module" in
24485 gthread)
24486 pkg_config_args="$pkg_config_args gthread-2.0"
24487 ;;
24488 esac
24489 done
24490
24491 no_gtk=""
24492
24493 # Extract the first word of "pkg-config", so it can be a program name with args.
24494set dummy pkg-config; ac_word=$2
24495echo "$as_me:$LINENO: checking for $ac_word" >&5
24496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24497if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24498 echo $ECHO_N "(cached) $ECHO_C" >&6
24499else
24500 case $PKG_CONFIG in
24501 [\\/]* | ?:[\\/]*)
24502 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24503 ;;
24504 *)
24505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24506for as_dir in $PATH
24507do
24508 IFS=$as_save_IFS
24509 test -z "$as_dir" && as_dir=.
24510 for ac_exec_ext in '' $ac_executable_extensions; do
24511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24512 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24514 break 2
24515 fi
24516done
24517done
24518
24519 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24520 ;;
24521esac
24522fi
24523PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24524
24525if test -n "$PKG_CONFIG"; then
24526 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24527echo "${ECHO_T}$PKG_CONFIG" >&6
24528else
24529 echo "$as_me:$LINENO: result: no" >&5
24530echo "${ECHO_T}no" >&6
24531fi
24532
24533
24534 if test x$PKG_CONFIG != xno ; then
24535 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24536 :
24537 else
c2218763 24538 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24539 no_gtk=yes
24540 PKG_CONFIG=no
24541 fi
24542 else
24543 no_gtk=yes
24544 fi
24545
24546 min_gtk_version=2.0.0
24547 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24548echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24549
24550 if test x$PKG_CONFIG != xno ; then
24551 ## don't try to run the test against uninstalled libtool libs
24552 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24553 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24554 enable_gtktest=no
24555 fi
24556
24557 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24558 :
24559 else
24560 no_gtk=yes
24561 fi
24562 fi
24563
24564 if test x"$no_gtk" = x ; then
24565 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24566 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24567 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24568 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24569 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24570 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24571 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24572 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24573 if test "x$enable_gtktest" = "xyes" ; then
24574 ac_save_CFLAGS="$CFLAGS"
24575 ac_save_LIBS="$LIBS"
24576 CFLAGS="$CFLAGS $GTK_CFLAGS"
24577 LIBS="$GTK_LIBS $LIBS"
24578 rm -f conf.gtktest
24579 if test "$cross_compiling" = yes; then
24580 echo $ac_n "cross compiling; assumed OK... $ac_c"
24581else
24582 cat >conftest.$ac_ext <<_ACEOF
24583/* confdefs.h. */
24584_ACEOF
24585cat confdefs.h >>conftest.$ac_ext
24586cat >>conftest.$ac_ext <<_ACEOF
24587/* end confdefs.h. */
24588
24589#include <gtk/gtk.h>
24590#include <stdio.h>
24591#include <stdlib.h>
24592
24593int
24594main ()
24595{
24596 int major, minor, micro;
24597 char *tmp_version;
24598
24599 system ("touch conf.gtktest");
24600
24601 /* HP/UX 9 (%@#!) writes to sscanf strings */
24602 tmp_version = g_strdup("$min_gtk_version");
24603 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24604 printf("%s, bad version string\n", "$min_gtk_version");
24605 exit(1);
24606 }
24607
24608 if ((gtk_major_version != $gtk_config_major_version) ||
24609 (gtk_minor_version != $gtk_config_minor_version) ||
24610 (gtk_micro_version != $gtk_config_micro_version))
24611 {
24612 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24613 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24614 gtk_major_version, gtk_minor_version, gtk_micro_version);
24615 printf ("*** was found! If pkg-config was correct, then it is best\n");
24616 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24617 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24618 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24619 printf("*** required on your system.\n");
24620 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24621 printf("*** to point to the correct configuration files\n");
24622 }
24623 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24624 (gtk_minor_version != GTK_MINOR_VERSION) ||
24625 (gtk_micro_version != GTK_MICRO_VERSION))
24626 {
24627 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24628 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24629 printf("*** library (version %d.%d.%d)\n",
24630 gtk_major_version, gtk_minor_version, gtk_micro_version);
24631 }
24632 else
24633 {
24634 if ((gtk_major_version > major) ||
24635 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24636 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24637 {
24638 return 0;
24639 }
24640 else
24641 {
24642 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24643 gtk_major_version, gtk_minor_version, gtk_micro_version);
24644 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24645 major, minor, micro);
24646 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24647 printf("***\n");
24648 printf("*** If you have already installed a sufficiently new version, this error\n");
24649 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24650 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24651 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24652 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24653 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24654 printf("*** so that the correct libraries are found at run-time))\n");
24655 }
24656 }
24657 return 1;
24658}
24659
24660_ACEOF
24661rm -f conftest$ac_exeext
24662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24663 (eval $ac_link) 2>&5
24664 ac_status=$?
24665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24668 (eval $ac_try) 2>&5
24669 ac_status=$?
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); }; }; then
24672 :
24673else
24674 echo "$as_me: program exited with status $ac_status" >&5
24675echo "$as_me: failed program was:" >&5
24676sed 's/^/| /' conftest.$ac_ext >&5
24677
24678( exit $ac_status )
24679no_gtk=yes
24680fi
ac1cb8d3 24681rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24682fi
24683 CFLAGS="$ac_save_CFLAGS"
24684 LIBS="$ac_save_LIBS"
24685 fi
24686 fi
24687 if test "x$no_gtk" = x ; then
24688 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24689echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24690 wx_cv_lib_gtk=2.0
24691 else
24692 echo "$as_me:$LINENO: result: no" >&5
24693echo "${ECHO_T}no" >&6
24694 if test "$PKG_CONFIG" = "no" ; then
24695 echo "*** A new enough version of pkg-config was not found."
24696 echo "*** See http://pkgconfig.sourceforge.net"
24697 else
24698 if test -f conf.gtktest ; then
24699 :
24700 else
24701 echo "*** Could not run GTK+ test program, checking why..."
24702 ac_save_CFLAGS="$CFLAGS"
24703 ac_save_LIBS="$LIBS"
24704 CFLAGS="$CFLAGS $GTK_CFLAGS"
24705 LIBS="$LIBS $GTK_LIBS"
24706 cat >conftest.$ac_ext <<_ACEOF
24707/* confdefs.h. */
24708_ACEOF
24709cat confdefs.h >>conftest.$ac_ext
24710cat >>conftest.$ac_ext <<_ACEOF
24711/* end confdefs.h. */
24712
24713#include <gtk/gtk.h>
24714#include <stdio.h>
24715
24716int
24717main ()
24718{
24719 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24720 ;
24721 return 0;
24722}
24723_ACEOF
24724rm -f conftest.$ac_objext conftest$ac_exeext
24725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24726 (eval $ac_link) 2>conftest.er1
a848cd7e 24727 ac_status=$?
ac1cb8d3
VS
24728 grep -v '^ *+' conftest.er1 >conftest.err
24729 rm -f conftest.er1
24730 cat conftest.err >&5
a848cd7e
SC
24731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732 (exit $ac_status); } &&
9dd0f6c2 24733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24735 (eval $ac_try) 2>&5
24736 ac_status=$?
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); }; } &&
24739 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24741 (eval $ac_try) 2>&5
24742 ac_status=$?
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); }; }; then
24745 echo "*** The test program compiled, but did not run. This usually means"
24746 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24747 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24748 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24749 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24750 echo "*** is required on your system"
24751 echo "***"
24752 echo "*** If you have an old version installed, it is best to remove it, although"
24753 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24754else
24755 echo "$as_me: failed program was:" >&5
24756sed 's/^/| /' conftest.$ac_ext >&5
24757
24758 echo "*** The test program failed to compile or link. See the file config.log for the"
24759 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24760fi
ac1cb8d3
VS
24761rm -f conftest.err conftest.$ac_objext \
24762 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24763 CFLAGS="$ac_save_CFLAGS"
24764 LIBS="$ac_save_LIBS"
24765 fi
24766 fi
24767 GTK_CFLAGS=""
24768 GTK_LIBS=""
24769 :
24770 fi
24771
24772
24773 rm -f conf.gtktest
24774
f597b41c
MW
24775 fi
24776
f34ca037
MW
24777 if test -z "$wx_cv_lib_gtk"; then
24778 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
24779
24780# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24781if test "${with_gtk_prefix+set}" = set; then
24782 withval="$with_gtk_prefix"
24783 gtk_config_prefix="$withval"
24784else
24785 gtk_config_prefix=""
24786fi;
24787
24788# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24789if test "${with_gtk_exec_prefix+set}" = set; then
24790 withval="$with_gtk_exec_prefix"
24791 gtk_config_exec_prefix="$withval"
24792else
24793 gtk_config_exec_prefix=""
24794fi;
24795# Check whether --enable-gtktest or --disable-gtktest was given.
24796if test "${enable_gtktest+set}" = set; then
24797 enableval="$enable_gtktest"
24798
24799else
24800 enable_gtktest=yes
24801fi;
24802
24803 for module in . $GTK_MODULES
24804 do
24805 case "$module" in
24806 gthread)
24807 gtk_config_args="$gtk_config_args gthread"
24808 ;;
24809 esac
24810 done
24811
24812 if test x$gtk_config_exec_prefix != x ; then
24813 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24814 if test x${GTK_CONFIG+set} != xset ; then
24815 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24816 fi
24817 fi
24818 if test x$gtk_config_prefix != x ; then
24819 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24820 if test x${GTK_CONFIG+set} != xset ; then
24821 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24822 fi
24823 fi
24824
24825 # Extract the first word of "gtk-config", so it can be a program name with args.
24826set dummy gtk-config; ac_word=$2
24827echo "$as_me:$LINENO: checking for $ac_word" >&5
24828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24829if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24830 echo $ECHO_N "(cached) $ECHO_C" >&6
24831else
24832 case $GTK_CONFIG in
24833 [\\/]* | ?:[\\/]*)
24834 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24835 ;;
24836 *)
24837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24838for as_dir in $PATH
24839do
24840 IFS=$as_save_IFS
24841 test -z "$as_dir" && as_dir=.
24842 for ac_exec_ext in '' $ac_executable_extensions; do
24843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24844 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24846 break 2
24847 fi
24848done
24849done
24850
24851 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24852 ;;
24853esac
24854fi
24855GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24856
24857if test -n "$GTK_CONFIG"; then
24858 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24859echo "${ECHO_T}$GTK_CONFIG" >&6
24860else
24861 echo "$as_me:$LINENO: result: no" >&5
24862echo "${ECHO_T}no" >&6
24863fi
24864
24865 min_gtk_version=1.2.7
24866 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24867echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24868 no_gtk=""
24869 if test "$GTK_CONFIG" = "no" ; then
24870 no_gtk=yes
24871 else
24872 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24873 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24874 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24875 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24876 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24877 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24878 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24879 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24880 if test "x$enable_gtktest" = "xyes" ; then
24881 ac_save_CFLAGS="$CFLAGS"
24882 ac_save_LIBS="$LIBS"
24883 CFLAGS="$CFLAGS $GTK_CFLAGS"
24884 LIBS="$GTK_LIBS $LIBS"
24885 rm -f conf.gtktest
24886 if test "$cross_compiling" = yes; then
24887 echo $ac_n "cross compiling; assumed OK... $ac_c"
24888else
24889 cat >conftest.$ac_ext <<_ACEOF
24890/* confdefs.h. */
24891_ACEOF
24892cat confdefs.h >>conftest.$ac_ext
24893cat >>conftest.$ac_ext <<_ACEOF
24894/* end confdefs.h. */
24895
24896#include <gtk/gtk.h>
24897#include <stdio.h>
24898#include <stdlib.h>
24899
24900int
24901main ()
24902{
24903 int major, minor, micro;
24904 char *tmp_version;
24905
24906 system ("touch conf.gtktest");
24907
24908 /* HP/UX 9 (%@#!) writes to sscanf strings */
24909 tmp_version = g_strdup("$min_gtk_version");
24910 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24911 printf("%s, bad version string\n", "$min_gtk_version");
24912 exit(1);
24913 }
24914
24915 if ((gtk_major_version != $gtk_config_major_version) ||
24916 (gtk_minor_version != $gtk_config_minor_version) ||
24917 (gtk_micro_version != $gtk_config_micro_version))
24918 {
24919 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24920 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24921 gtk_major_version, gtk_minor_version, gtk_micro_version);
24922 printf ("*** was found! If gtk-config was correct, then it is best\n");
24923 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24924 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24925 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24926 printf("*** required on your system.\n");
24927 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24928 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24929 printf("*** before re-running configure\n");
24930 }
24931#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24932 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24933 (gtk_minor_version != GTK_MINOR_VERSION) ||
24934 (gtk_micro_version != GTK_MICRO_VERSION))
24935 {
24936 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24937 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24938 printf("*** library (version %d.%d.%d)\n",
24939 gtk_major_version, gtk_minor_version, gtk_micro_version);
24940 }
24941#endif /* defined (GTK_MAJOR_VERSION) ... */
24942 else
24943 {
24944 if ((gtk_major_version > major) ||
24945 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24946 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24947 {
24948 return 0;
24949 }
24950 else
24951 {
24952 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24953 gtk_major_version, gtk_minor_version, gtk_micro_version);
24954 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24955 major, minor, micro);
24956 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24957 printf("***\n");
24958 printf("*** If you have already installed a sufficiently new version, this error\n");
24959 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24960 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24961 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24962 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24963 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24964 printf("*** so that the correct libraries are found at run-time))\n");
24965 }
24966 }
24967 return 1;
24968}
24969
24970_ACEOF
24971rm -f conftest$ac_exeext
24972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24973 (eval $ac_link) 2>&5
24974 ac_status=$?
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24978 (eval $ac_try) 2>&5
24979 ac_status=$?
24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); }; }; then
24982 :
24983else
24984 echo "$as_me: program exited with status $ac_status" >&5
24985echo "$as_me: failed program was:" >&5
24986sed 's/^/| /' conftest.$ac_ext >&5
24987
24988( exit $ac_status )
24989no_gtk=yes
24990fi
ac1cb8d3 24991rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24992fi
24993 CFLAGS="$ac_save_CFLAGS"
24994 LIBS="$ac_save_LIBS"
24995 fi
24996 fi
24997 if test "x$no_gtk" = x ; then
24998 echo "$as_me:$LINENO: result: yes" >&5
24999echo "${ECHO_T}yes" >&6
25000 wx_cv_lib_gtk=1.2.7
25001 else
25002 echo "$as_me:$LINENO: result: no" >&5
25003echo "${ECHO_T}no" >&6
25004 if test "$GTK_CONFIG" = "no" ; then
25005 echo "*** The gtk-config script installed by GTK could not be found"
25006 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25007 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25008 echo "*** full path to gtk-config."
25009 else
25010 if test -f conf.gtktest ; then
25011 :
25012 else
25013 echo "*** Could not run GTK test program, checking why..."
25014 CFLAGS="$CFLAGS $GTK_CFLAGS"
25015 LIBS="$LIBS $GTK_LIBS"
25016 cat >conftest.$ac_ext <<_ACEOF
25017/* confdefs.h. */
25018_ACEOF
25019cat confdefs.h >>conftest.$ac_ext
25020cat >>conftest.$ac_ext <<_ACEOF
25021/* end confdefs.h. */
25022
25023#include <gtk/gtk.h>
25024#include <stdio.h>
25025
25026int
25027main ()
25028{
25029 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25030 ;
25031 return 0;
25032}
25033_ACEOF
25034rm -f conftest.$ac_objext conftest$ac_exeext
25035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25036 (eval $ac_link) 2>conftest.er1
a848cd7e 25037 ac_status=$?
ac1cb8d3
VS
25038 grep -v '^ *+' conftest.er1 >conftest.err
25039 rm -f conftest.er1
25040 cat conftest.err >&5
a848cd7e
SC
25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042 (exit $ac_status); } &&
9dd0f6c2 25043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25045 (eval $ac_try) 2>&5
25046 ac_status=$?
25047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); }; } &&
25049 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25051 (eval $ac_try) 2>&5
25052 ac_status=$?
25053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054 (exit $ac_status); }; }; then
25055 echo "*** The test program compiled, but did not run. This usually means"
25056 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25057 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25058 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25059 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25060 echo "*** is required on your system"
25061 echo "***"
25062 echo "*** If you have an old version installed, it is best to remove it, although"
25063 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25064 echo "***"
25065 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25066 echo "*** came with the system with the command"
25067 echo "***"
25068 echo "*** rpm --erase --nodeps gtk gtk-devel"
25069else
25070 echo "$as_me: failed program was:" >&5
25071sed 's/^/| /' conftest.$ac_ext >&5
25072
25073 echo "*** The test program failed to compile or link. See the file config.log for the"
25074 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25075 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25076 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25077fi
ac1cb8d3
VS
25078rm -f conftest.err conftest.$ac_objext \
25079 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25080 CFLAGS="$ac_save_CFLAGS"
25081 LIBS="$ac_save_LIBS"
25082 fi
25083 fi
25084 GTK_CFLAGS=""
25085 GTK_LIBS=""
25086 :
25087 fi
25088
25089
25090 rm -f conf.gtktest
25091
25092
f34ca037 25093 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
25094
25095# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25096if test "${with_gtk_prefix+set}" = set; then
25097 withval="$with_gtk_prefix"
25098 gtk_config_prefix="$withval"
25099else
25100 gtk_config_prefix=""
25101fi;
25102
25103# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25104if test "${with_gtk_exec_prefix+set}" = set; then
25105 withval="$with_gtk_exec_prefix"
25106 gtk_config_exec_prefix="$withval"
25107else
25108 gtk_config_exec_prefix=""
25109fi;
25110# Check whether --enable-gtktest or --disable-gtktest was given.
25111if test "${enable_gtktest+set}" = set; then
25112 enableval="$enable_gtktest"
25113
25114else
25115 enable_gtktest=yes
25116fi;
25117
25118 for module in . $GTK_MODULES
25119 do
25120 case "$module" in
25121 gthread)
25122 gtk_config_args="$gtk_config_args gthread"
25123 ;;
25124 esac
25125 done
25126
25127 if test x$gtk_config_exec_prefix != x ; then
25128 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25129 if test x${GTK_CONFIG+set} != xset ; then
25130 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25131 fi
25132 fi
25133 if test x$gtk_config_prefix != x ; then
25134 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25135 if test x${GTK_CONFIG+set} != xset ; then
25136 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25137 fi
25138 fi
25139
25140 # Extract the first word of "gtk-config", so it can be a program name with args.
25141set dummy gtk-config; ac_word=$2
25142echo "$as_me:$LINENO: checking for $ac_word" >&5
25143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25144if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25145 echo $ECHO_N "(cached) $ECHO_C" >&6
25146else
25147 case $GTK_CONFIG in
25148 [\\/]* | ?:[\\/]*)
25149 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25150 ;;
25151 *)
25152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25153for as_dir in $PATH
25154do
25155 IFS=$as_save_IFS
25156 test -z "$as_dir" && as_dir=.
25157 for ac_exec_ext in '' $ac_executable_extensions; do
25158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25159 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25161 break 2
25162 fi
25163done
25164done
25165
25166 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25167 ;;
25168esac
25169fi
25170GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25171
25172if test -n "$GTK_CONFIG"; then
25173 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25174echo "${ECHO_T}$GTK_CONFIG" >&6
25175else
25176 echo "$as_me:$LINENO: result: no" >&5
25177echo "${ECHO_T}no" >&6
25178fi
25179
25180 min_gtk_version=1.2.3
25181 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25182echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25183 no_gtk=""
25184 if test "$GTK_CONFIG" = "no" ; then
25185 no_gtk=yes
25186 else
25187 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25188 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25189 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25190 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25191 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25192 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25193 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25194 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25195 if test "x$enable_gtktest" = "xyes" ; then
25196 ac_save_CFLAGS="$CFLAGS"
25197 ac_save_LIBS="$LIBS"
25198 CFLAGS="$CFLAGS $GTK_CFLAGS"
25199 LIBS="$GTK_LIBS $LIBS"
25200 rm -f conf.gtktest
25201 if test "$cross_compiling" = yes; then
25202 echo $ac_n "cross compiling; assumed OK... $ac_c"
25203else
25204 cat >conftest.$ac_ext <<_ACEOF
25205/* confdefs.h. */
25206_ACEOF
25207cat confdefs.h >>conftest.$ac_ext
25208cat >>conftest.$ac_ext <<_ACEOF
25209/* end confdefs.h. */
25210
25211#include <gtk/gtk.h>
25212#include <stdio.h>
25213#include <stdlib.h>
25214
25215int
25216main ()
25217{
25218 int major, minor, micro;
25219 char *tmp_version;
25220
25221 system ("touch conf.gtktest");
25222
25223 /* HP/UX 9 (%@#!) writes to sscanf strings */
25224 tmp_version = g_strdup("$min_gtk_version");
25225 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25226 printf("%s, bad version string\n", "$min_gtk_version");
25227 exit(1);
25228 }
25229
25230 if ((gtk_major_version != $gtk_config_major_version) ||
25231 (gtk_minor_version != $gtk_config_minor_version) ||
25232 (gtk_micro_version != $gtk_config_micro_version))
25233 {
25234 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25235 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25236 gtk_major_version, gtk_minor_version, gtk_micro_version);
25237 printf ("*** was found! If gtk-config was correct, then it is best\n");
25238 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25239 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25240 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25241 printf("*** required on your system.\n");
25242 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25243 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25244 printf("*** before re-running configure\n");
25245 }
25246#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25247 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25248 (gtk_minor_version != GTK_MINOR_VERSION) ||
25249 (gtk_micro_version != GTK_MICRO_VERSION))
25250 {
25251 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25252 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25253 printf("*** library (version %d.%d.%d)\n",
25254 gtk_major_version, gtk_minor_version, gtk_micro_version);
25255 }
25256#endif /* defined (GTK_MAJOR_VERSION) ... */
25257 else
25258 {
25259 if ((gtk_major_version > major) ||
25260 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25261 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25262 {
25263 return 0;
25264 }
25265 else
25266 {
25267 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25268 gtk_major_version, gtk_minor_version, gtk_micro_version);
25269 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25270 major, minor, micro);
25271 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25272 printf("***\n");
25273 printf("*** If you have already installed a sufficiently new version, this error\n");
25274 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25275 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25276 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25277 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25278 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25279 printf("*** so that the correct libraries are found at run-time))\n");
25280 }
25281 }
25282 return 1;
25283}
25284
25285_ACEOF
25286rm -f conftest$ac_exeext
25287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25288 (eval $ac_link) 2>&5
25289 ac_status=$?
25290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25293 (eval $ac_try) 2>&5
25294 ac_status=$?
25295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25296 (exit $ac_status); }; }; then
25297 :
25298else
25299 echo "$as_me: program exited with status $ac_status" >&5
25300echo "$as_me: failed program was:" >&5
25301sed 's/^/| /' conftest.$ac_ext >&5
25302
25303( exit $ac_status )
25304no_gtk=yes
25305fi
ac1cb8d3 25306rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25307fi
25308 CFLAGS="$ac_save_CFLAGS"
25309 LIBS="$ac_save_LIBS"
25310 fi
25311 fi
25312 if test "x$no_gtk" = x ; then
25313 echo "$as_me:$LINENO: result: yes" >&5
25314echo "${ECHO_T}yes" >&6
25315 wx_cv_lib_gtk=1.2.3
25316 else
25317 echo "$as_me:$LINENO: result: no" >&5
25318echo "${ECHO_T}no" >&6
25319 if test "$GTK_CONFIG" = "no" ; then
25320 echo "*** The gtk-config script installed by GTK could not be found"
25321 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25322 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25323 echo "*** full path to gtk-config."
25324 else
25325 if test -f conf.gtktest ; then
25326 :
25327 else
25328 echo "*** Could not run GTK test program, checking why..."
25329 CFLAGS="$CFLAGS $GTK_CFLAGS"
25330 LIBS="$LIBS $GTK_LIBS"
25331 cat >conftest.$ac_ext <<_ACEOF
25332/* confdefs.h. */
25333_ACEOF
25334cat confdefs.h >>conftest.$ac_ext
25335cat >>conftest.$ac_ext <<_ACEOF
25336/* end confdefs.h. */
25337
25338#include <gtk/gtk.h>
25339#include <stdio.h>
25340
25341int
25342main ()
25343{
25344 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25345 ;
25346 return 0;
25347}
25348_ACEOF
25349rm -f conftest.$ac_objext conftest$ac_exeext
25350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25351 (eval $ac_link) 2>conftest.er1
a848cd7e 25352 ac_status=$?
ac1cb8d3
VS
25353 grep -v '^ *+' conftest.er1 >conftest.err
25354 rm -f conftest.er1
25355 cat conftest.err >&5
a848cd7e
SC
25356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); } &&
9dd0f6c2 25358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360 (eval $ac_try) 2>&5
25361 ac_status=$?
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); }; } &&
25364 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25366 (eval $ac_try) 2>&5
25367 ac_status=$?
25368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369 (exit $ac_status); }; }; then
25370 echo "*** The test program compiled, but did not run. This usually means"
25371 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25372 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25373 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25374 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25375 echo "*** is required on your system"
25376 echo "***"
25377 echo "*** If you have an old version installed, it is best to remove it, although"
25378 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25379 echo "***"
25380 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25381 echo "*** came with the system with the command"
25382 echo "***"
25383 echo "*** rpm --erase --nodeps gtk gtk-devel"
25384else
25385 echo "$as_me: failed program was:" >&5
25386sed 's/^/| /' conftest.$ac_ext >&5
25387
25388 echo "*** The test program failed to compile or link. See the file config.log for the"
25389 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25390 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25391 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25392fi
ac1cb8d3
VS
25393rm -f conftest.err conftest.$ac_objext \
25394 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25395 CFLAGS="$ac_save_CFLAGS"
25396 LIBS="$ac_save_LIBS"
25397 fi
25398 fi
25399 GTK_CFLAGS=""
25400 GTK_LIBS=""
25401 :
25402 fi
25403
25404
25405 rm -f conf.gtktest
25406
f34ca037 25407 fi
a848cd7e
SC
25408 fi
25409 fi
25410
25411 if test -z "$wx_cv_lib_gtk"; then
25412 wx_cv_lib_gtk=none
25413 else
25414 wx_cv_cflags_gtk=$GTK_CFLAGS
25415 wx_cv_libs_gtk=$GTK_LIBS
25416 fi
25417
25418
25419fi
25420
25421
25422 if test "$gtk_version_cached" = 1; then
25423 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25424echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25425 fi
25426
25427 case "$wx_cv_lib_gtk" in
25428 2.0) WXGTK20=1
25429 TOOLKIT_VERSION=2
25430 ;;
25431 1.2.7) WXGTK127=1
25432 WXGTK12=1
25433 ;;
25434 1.2.3) WXGTK12=1
25435 ;;
25436 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
25437The development files for GTK+ were not found. For GTK+ 2, please
25438ensure that pkg-config is in the path and that gtk+-2.0.pc is
25439installed. For GTK+ 1.2 please check that gtk-config is in the path,
25440and that the version is 1.2.3 or above. Also check that the
25441libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25442--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25443 " >&5
25444echo "$as_me: error:
f597b41c
MW
25445The development files for GTK+ were not found. For GTK+ 2, please
25446ensure that pkg-config is in the path and that gtk+-2.0.pc is
25447installed. For GTK+ 1.2 please check that gtk-config is in the path,
25448and that the version is 1.2.3 or above. Also check that the
25449libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25450--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25451 " >&2;}
25452 { (exit 1); exit 1; }; }
25453 ;;
25454 esac
25455
25456 if test "$WXGTK20" = 1; then
304205f1
VS
25457 save_CFLAGS="$CFLAGS"
25458 save_LIBS="$LIBS"
9d271838
VZ
25459 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
25460 LIBS="$LIBS $wx_cv_lib_gtk"
304205f1 25461
9755e73b 25462
304205f1
VS
25463for ac_func in pango_font_family_is_monospace
25464do
25465as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25466echo "$as_me:$LINENO: checking for $ac_func" >&5
25467echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25468if eval "test \"\${$as_ac_var+set}\" = set"; then
25469 echo $ECHO_N "(cached) $ECHO_C" >&6
25470else
25471 cat >conftest.$ac_ext <<_ACEOF
25472/* confdefs.h. */
25473_ACEOF
25474cat confdefs.h >>conftest.$ac_ext
25475cat >>conftest.$ac_ext <<_ACEOF
25476/* end confdefs.h. */
25477/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25479#define $ac_func innocuous_$ac_func
25480
25481/* System header to define __stub macros and hopefully few prototypes,
25482 which can conflict with char $ac_func (); below.
25483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25484 <limits.h> exists even on freestanding compilers. */
25485
25486#ifdef __STDC__
25487# include <limits.h>
25488#else
25489# include <assert.h>
25490#endif
25491
25492#undef $ac_func
25493
25494/* Override any gcc2 internal prototype to avoid an error. */
25495#ifdef __cplusplus
25496extern "C"
25497{
25498#endif
25499/* We use char because int might match the return type of a gcc2
25500 builtin and then its argument prototype would still apply. */
25501char $ac_func ();
25502/* The GNU C library defines this for functions which it implements
25503 to always fail with ENOSYS. Some functions are actually named
25504 something starting with __ and the normal name is an alias. */
25505#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25506choke me
25507#else
25508char (*f) () = $ac_func;
25509#endif
25510#ifdef __cplusplus
25511}
25512#endif
25513
25514int
25515main ()
25516{
25517return f != $ac_func;
25518 ;
25519 return 0;
25520}
25521_ACEOF
25522rm -f conftest.$ac_objext conftest$ac_exeext
25523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25524 (eval $ac_link) 2>conftest.er1
25525 ac_status=$?
25526 grep -v '^ *+' conftest.er1 >conftest.err
25527 rm -f conftest.er1
25528 cat conftest.err >&5
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); } &&
9dd0f6c2 25531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25533 (eval $ac_try) 2>&5
25534 ac_status=$?
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); }; } &&
25537 { ac_try='test -s conftest$ac_exeext'
25538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25539 (eval $ac_try) 2>&5
25540 ac_status=$?
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); }; }; then
25543 eval "$as_ac_var=yes"
25544else
25545 echo "$as_me: failed program was:" >&5
25546sed 's/^/| /' conftest.$ac_ext >&5
25547
25548eval "$as_ac_var=no"
25549fi
25550rm -f conftest.err conftest.$ac_objext \
25551 conftest$ac_exeext conftest.$ac_ext
25552fi
25553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25554echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25555if test `eval echo '${'$as_ac_var'}'` = yes; then
25556 cat >>confdefs.h <<_ACEOF
25557#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25558_ACEOF
25559
25560fi
25561done
25562
9755e73b
VS
25563
25564 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25565echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25566 cat >conftest.$ac_ext <<_ACEOF
25567/* confdefs.h. */
25568_ACEOF
25569cat confdefs.h >>conftest.$ac_ext
25570cat >>conftest.$ac_ext <<_ACEOF
25571/* end confdefs.h. */
25572
25573 #include <gtk/gtk.h>
25574
25575int
25576main ()
25577{
25578
25579 #if !GTK_CHECK_VERSION(2,4,0)
25580 #error "Not GTK+ 2.4"
25581 #endif
25582
25583 ;
25584 return 0;
25585}
25586_ACEOF
25587rm -f conftest.$ac_objext
25588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25589 (eval $ac_compile) 2>conftest.er1
25590 ac_status=$?
25591 grep -v '^ *+' conftest.er1 >conftest.err
25592 rm -f conftest.er1
25593 cat conftest.err >&5
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); } &&
9dd0f6c2 25596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25598 (eval $ac_try) 2>&5
25599 ac_status=$?
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); }; } &&
25602 { ac_try='test -s conftest.$ac_objext'
25603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25604 (eval $ac_try) 2>&5
25605 ac_status=$?
25606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); }; }; then
25608
25609 cat >>confdefs.h <<\_ACEOF
25610#define __WXGTK24__ 1
25611_ACEOF
25612
25613 echo "$as_me:$LINENO: result: yes" >&5
25614echo "${ECHO_T}yes" >&6
25615
25616else
25617 echo "$as_me: failed program was:" >&5
25618sed 's/^/| /' conftest.$ac_ext >&5
25619
25620
25621 echo "$as_me:$LINENO: result: no" >&5
25622echo "${ECHO_T}no" >&6
25623
25624fi
25625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25626
304205f1
VS
25627 CFLAGS="$save_CFLAGS"
25628 LIBS="$save_LIBS"
a848cd7e
SC
25629 else
25630 if test "$wxUSE_UNICODE" = "yes"; then
25631 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25632echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25633 wxUSE_UNICODE=no
25634 fi
25635 fi
25636
25637 if test "$USE_DARWIN" != 1; then
25638
25639for ac_func in poll
25640do
25641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25642echo "$as_me:$LINENO: checking for $ac_func" >&5
25643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25644if eval "test \"\${$as_ac_var+set}\" = set"; then
25645 echo $ECHO_N "(cached) $ECHO_C" >&6
25646else
25647 cat >conftest.$ac_ext <<_ACEOF
25648/* confdefs.h. */
25649_ACEOF
25650cat confdefs.h >>conftest.$ac_ext
25651cat >>conftest.$ac_ext <<_ACEOF
25652/* end confdefs.h. */
ac1cb8d3
VS
25653/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25655#define $ac_func innocuous_$ac_func
25656
a848cd7e
SC
25657/* System header to define __stub macros and hopefully few prototypes,
25658 which can conflict with char $ac_func (); below.
25659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25660 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25661
a848cd7e
SC
25662#ifdef __STDC__
25663# include <limits.h>
25664#else
25665# include <assert.h>
25666#endif
ac1cb8d3
VS
25667
25668#undef $ac_func
25669
a848cd7e
SC
25670/* Override any gcc2 internal prototype to avoid an error. */
25671#ifdef __cplusplus
25672extern "C"
25673{
25674#endif
25675/* We use char because int might match the return type of a gcc2
25676 builtin and then its argument prototype would still apply. */
25677char $ac_func ();
25678/* The GNU C library defines this for functions which it implements
25679 to always fail with ENOSYS. Some functions are actually named
25680 something starting with __ and the normal name is an alias. */
25681#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25682choke me
25683#else
25684char (*f) () = $ac_func;
25685#endif
25686#ifdef __cplusplus
25687}
25688#endif
25689
25690int
25691main ()
25692{
25693return f != $ac_func;
25694 ;
25695 return 0;
25696}
25697_ACEOF
25698rm -f conftest.$ac_objext conftest$ac_exeext
25699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25700 (eval $ac_link) 2>conftest.er1
a848cd7e 25701 ac_status=$?
ac1cb8d3
VS
25702 grep -v '^ *+' conftest.er1 >conftest.err
25703 rm -f conftest.er1
25704 cat conftest.err >&5
a848cd7e
SC
25705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); } &&
9dd0f6c2 25707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25709 (eval $ac_try) 2>&5
25710 ac_status=$?
25711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); }; } &&
25713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25715 (eval $ac_try) 2>&5
25716 ac_status=$?
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); }; }; then
25719 eval "$as_ac_var=yes"
25720else
25721 echo "$as_me: failed program was:" >&5
25722sed 's/^/| /' conftest.$ac_ext >&5
25723
25724eval "$as_ac_var=no"
25725fi
ac1cb8d3
VS
25726rm -f conftest.err conftest.$ac_objext \
25727 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25728fi
25729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25730echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25731if test `eval echo '${'$as_ac_var'}'` = yes; then
25732 cat >>confdefs.h <<_ACEOF
25733#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25734_ACEOF
25735
25736fi
25737done
25738
25739 fi
25740
25741 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25742 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25743
25744 AFMINSTALL=afminstall
25745 TOOLKIT=GTK
25746 GUIDIST=GTK_DIST
25747
25748 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25749echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25750if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25751 echo $ECHO_N "(cached) $ECHO_C" >&6
25752else
25753 ac_check_lib_save_LIBS=$LIBS
25754LIBS="-lgdk $LIBS"
25755cat >conftest.$ac_ext <<_ACEOF
25756/* confdefs.h. */
25757_ACEOF
25758cat confdefs.h >>conftest.$ac_ext
25759cat >>conftest.$ac_ext <<_ACEOF
25760/* end confdefs.h. */
25761
25762/* Override any gcc2 internal prototype to avoid an error. */
25763#ifdef __cplusplus
25764extern "C"
25765#endif
25766/* We use char because int might match the return type of a gcc2
25767 builtin and then its argument prototype would still apply. */
25768char gdk_im_open ();
25769int
25770main ()
25771{
25772gdk_im_open ();
25773 ;
25774 return 0;
25775}
25776_ACEOF
25777rm -f conftest.$ac_objext conftest$ac_exeext
25778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25779 (eval $ac_link) 2>conftest.er1
a848cd7e 25780 ac_status=$?
ac1cb8d3
VS
25781 grep -v '^ *+' conftest.er1 >conftest.err
25782 rm -f conftest.er1
25783 cat conftest.err >&5
a848cd7e
SC
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); } &&
9dd0f6c2 25786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25788 (eval $ac_try) 2>&5
25789 ac_status=$?
25790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791 (exit $ac_status); }; } &&
25792 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25794 (eval $ac_try) 2>&5
25795 ac_status=$?
25796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797 (exit $ac_status); }; }; then
25798 ac_cv_lib_gdk_gdk_im_open=yes
25799else
25800 echo "$as_me: failed program was:" >&5
25801sed 's/^/| /' conftest.$ac_ext >&5
25802
25803ac_cv_lib_gdk_gdk_im_open=no
25804fi
ac1cb8d3
VS
25805rm -f conftest.err conftest.$ac_objext \
25806 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25807LIBS=$ac_check_lib_save_LIBS
25808fi
25809echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25810echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25811if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25812 cat >>confdefs.h <<\_ACEOF
25813#define HAVE_XIM 1
25814_ACEOF
25815
25816fi
25817
25818
25819
25820 if test "$wxUSE_GPE" = "yes"; then
25821 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25822echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25823
25824ac_find_libraries=
25825for ac_dir in $SEARCH_LIB /usr/lib;
25826 do
25827 for ac_extension in a so sl dylib; do
25828 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25829 ac_find_libraries=$ac_dir
25830 break 2
25831 fi
25832 done
25833 done
25834
25835 if test "$ac_find_libraries" != "" ; then
25836
25837 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25838 result=$?
25839 if test $result = 0; then
25840 ac_path_to_link=""
25841 else
25842 ac_path_to_link=" -L$ac_find_libraries"
25843 fi
25844
25845 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25846 WXGPE=1
25847 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25848echo "${ECHO_T}found at $ac_find_libraries" >&6
25849 else
25850 echo "$as_me:$LINENO: result: not found" >&5
25851echo "${ECHO_T}not found" >&6
25852 fi
25853
25854 fi
25855 fi
25856
25857 if test "$wxUSE_MGL" = 1; then
25858 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25859echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25860 if test "x$MGL_ROOT" = x ; then
25861 echo "$as_me:$LINENO: result: not found" >&5
25862echo "${ECHO_T}not found" >&6
25863 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25864echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25865 { (exit 1); exit 1; }; }
25866 else
25867 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25868echo "${ECHO_T}$MGL_ROOT" >&6
25869 fi
25870
25871 echo "$as_me:$LINENO: checking for libmgl location" >&5
25872echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25873 case "${host}" in
25874 *-*-linux* )
25875 if test "x$wxUSE_SHARED" = xyes ; then
25876 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25877 else
25878 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25879 fi
25880 ;;
25881 *-pc-msdosdjgpp )
25882 mgl_os_candidates="dos32/dj2"
25883 ;;
25884 *)
25885 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25886echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25887 { (exit 1); exit 1; }; }
25888 esac
25889
25890 mgl_lib_type=""
25891 mgl_os=""
25892
25893 for mgl_os_i in $mgl_os_candidates ; do
25894 if test "x$mgl_os" = x ; then
25895 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25896 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25897 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25898 mgl_lib_type=debug
25899 mgl_os=$mgl_os_i
25900 fi
25901 fi
25902 if test "x$mgl_lib_type" = x ; then
25903 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25904 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25905 mgl_lib_type=release
25906 mgl_os=$mgl_os_i
25907 fi
25908 fi
25909 fi
25910 done
25911
25912 if test "x$mgl_os" = x ; then
25913 echo "$as_me:$LINENO: result: not found" >&5
25914echo "${ECHO_T}not found" >&6
25915 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25916echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25917 { (exit 1); exit 1; }; }
25918 fi
25919 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25920echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25921
25922 wxUSE_UNIVERSAL="yes"
25923
25924 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25925 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25926
25927 AFMINSTALL=afminstall
25928 TOOLKIT=MGL
25929 GUIDIST=MGL_DIST
25930 fi
25931
25932 if test "$wxUSE_MICROWIN" = 1; then
25933 echo "$as_me:$LINENO: checking for MicroWindows" >&5
25934echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25935 if test "x$MICROWINDOWS" = x ; then
25936 echo "$as_me:$LINENO: result: not found" >&5
25937echo "${ECHO_T}not found" >&6
25938 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25939echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25940 { (exit 1); exit 1; }; }
25941 else
25942 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25943echo "${ECHO_T}$MICROWINDOWS" >&6
25944 fi
25945
25946 if test -f $MICROWINDOWS/lib/libmwin.a; then
25947 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25948echo "${ECHO_T}MicroWindows' libraries found." >&6
25949 else
25950 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25951echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25952 { (exit 1); exit 1; }; }
25953 fi
25954
25955 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25956 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25957
25958 wxUSE_UNIVERSAL="yes"
25959
25960 AFMINSTALL=afminstall
25961 TOOLKIT=MICROWIN
25962 GUIDIST=MICROWIN_DIST
25963
25964 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25965 fi
25966
74b84332 25967 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
9dd0f6c2
DE
25968
25969if test "x$ac_path_x_has_been_run" != xyes; then
25970 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
25971echo $ECHO_N "checking for X... $ECHO_C" >&6
25972
9dd0f6c2 25973ac_path_x_has_been_run=yes
a848cd7e
SC
25974
25975# Check whether --with-x or --without-x was given.
25976if test "${with_x+set}" = set; then
25977 withval="$with_x"
25978
25979fi;
25980# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25981if test "x$with_x" = xno; then
25982 # The user explicitly disabled X.
25983 have_x=disabled
25984else
25985 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25986 # Both variables are already set.
25987 have_x=yes
25988 else
25989 if test "${ac_cv_have_x+set}" = set; then
25990 echo $ECHO_N "(cached) $ECHO_C" >&6
25991else
25992 # One or both of the vars are not set, and there is no cached value.
25993ac_x_includes=no ac_x_libraries=no
25994rm -fr conftest.dir
25995if mkdir conftest.dir; then
25996 cd conftest.dir
25997 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25998 cat >Imakefile <<'_ACEOF'
25999acfindx:
26000 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
26001_ACEOF
26002 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
26003 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26004 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
26005 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26006 for ac_extension in a so sl; do
26007 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
26008 test -f $ac_im_libdir/libX11.$ac_extension; then
26009 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
26010 fi
26011 done
26012 # Screen out bogus values from the imake configuration. They are
26013 # bogus both because they are the default anyway, and because
26014 # using them would break gcc on systems where it needs fixed includes.
26015 case $ac_im_incroot in
26016 /usr/include) ;;
26017 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26018 esac
26019 case $ac_im_usrlibdir in
26020 /usr/lib | /lib) ;;
26021 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26022 esac
26023 fi
26024 cd ..
26025 rm -fr conftest.dir
26026fi
26027
26028# Standard set of common directories for X headers.
26029# Check X11 before X11Rn because it is often a symlink to the current release.
26030ac_x_header_dirs='
26031/usr/X11/include
26032/usr/X11R6/include
26033/usr/X11R5/include
26034/usr/X11R4/include
26035
26036/usr/include/X11
26037/usr/include/X11R6
26038/usr/include/X11R5
26039/usr/include/X11R4
26040
26041/usr/local/X11/include
26042/usr/local/X11R6/include
26043/usr/local/X11R5/include
26044/usr/local/X11R4/include
26045
26046/usr/local/include/X11
26047/usr/local/include/X11R6
26048/usr/local/include/X11R5
26049/usr/local/include/X11R4
26050
26051/usr/X386/include
26052/usr/x386/include
26053/usr/XFree86/include/X11
26054
26055/usr/include
26056/usr/local/include
26057/usr/unsupported/include
26058/usr/athena/include
26059/usr/local/x11r5/include
26060/usr/lpp/Xamples/include
26061
26062/usr/openwin/include
26063/usr/openwin/share/include'
26064
26065if test "$ac_x_includes" = no; then
9dd0f6c2 26066 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
26067 # First, try using that file with no special directory specified.
26068 cat >conftest.$ac_ext <<_ACEOF
26069/* confdefs.h. */
26070_ACEOF
26071cat confdefs.h >>conftest.$ac_ext
26072cat >>conftest.$ac_ext <<_ACEOF
26073/* end confdefs.h. */
26074#include <X11/Intrinsic.h>
26075_ACEOF
26076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26078 ac_status=$?
26079 grep -v '^ *+' conftest.er1 >conftest.err
26080 rm -f conftest.er1
26081 cat conftest.err >&5
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); } >/dev/null; then
26084 if test -s conftest.err; then
26085 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26087 else
26088 ac_cpp_err=
26089 fi
26090else
26091 ac_cpp_err=yes
26092fi
26093if test -z "$ac_cpp_err"; then
26094 # We can compile using X headers with no special include directory.
26095ac_x_includes=
26096else
26097 echo "$as_me: failed program was:" >&5
26098sed 's/^/| /' conftest.$ac_ext >&5
26099
26100 for ac_dir in $ac_x_header_dirs; do
26101 if test -r "$ac_dir/X11/Intrinsic.h"; then
26102 ac_x_includes=$ac_dir
26103 break
26104 fi
26105done
26106fi
26107rm -f conftest.err conftest.$ac_ext
26108fi # $ac_x_includes = no
26109
26110if test "$ac_x_libraries" = no; then
26111 # Check for the libraries.
26112 # See if we find them without any special options.
26113 # Don't add to $LIBS permanently.
26114 ac_save_LIBS=$LIBS
26115 LIBS="-lXt $LIBS"
26116 cat >conftest.$ac_ext <<_ACEOF
26117/* confdefs.h. */
26118_ACEOF
26119cat confdefs.h >>conftest.$ac_ext
26120cat >>conftest.$ac_ext <<_ACEOF
26121/* end confdefs.h. */
26122#include <X11/Intrinsic.h>
26123int
26124main ()
26125{
26126XtMalloc (0)
26127 ;
26128 return 0;
26129}
26130_ACEOF
26131rm -f conftest.$ac_objext conftest$ac_exeext
26132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26133 (eval $ac_link) 2>conftest.er1
a848cd7e 26134 ac_status=$?
ac1cb8d3
VS
26135 grep -v '^ *+' conftest.er1 >conftest.err
26136 rm -f conftest.er1
26137 cat conftest.err >&5
a848cd7e
SC
26138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139 (exit $ac_status); } &&
9dd0f6c2 26140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26142 (eval $ac_try) 2>&5
26143 ac_status=$?
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); }; } &&
26146 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148 (eval $ac_try) 2>&5
26149 ac_status=$?
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); }; }; then
26152 LIBS=$ac_save_LIBS
26153# We can link X programs with no special library path.
26154ac_x_libraries=
26155else
26156 echo "$as_me: failed program was:" >&5
26157sed 's/^/| /' conftest.$ac_ext >&5
26158
26159LIBS=$ac_save_LIBS
26160for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26161do
26162 # Don't even attempt the hair of trying to link an X program!
26163 for ac_extension in a so sl; do
26164 if test -r $ac_dir/libXt.$ac_extension; then
26165 ac_x_libraries=$ac_dir
26166 break 2
26167 fi
26168 done
26169done
26170fi
ac1cb8d3
VS
26171rm -f conftest.err conftest.$ac_objext \
26172 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26173fi # $ac_x_libraries = no
26174
26175if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26176 # Didn't find X anywhere. Cache the known absence of X.
26177 ac_cv_have_x="have_x=no"
26178else
26179 # Record where we found X for the cache.
26180 ac_cv_have_x="have_x=yes \
ac1cb8d3 26181 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26182fi
26183fi
26184
26185 fi
26186 eval "$ac_cv_have_x"
26187fi # $with_x != no
26188
26189if test "$have_x" != yes; then
26190 echo "$as_me:$LINENO: result: $have_x" >&5
26191echo "${ECHO_T}$have_x" >&6
26192 no_x=yes
26193else
26194 # If each of the values was on the command line, it overrides each guess.
26195 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26196 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26197 # Update the cache value to reflect the command line values.
26198 ac_cv_have_x="have_x=yes \
26199 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9dd0f6c2
DE
26200 # It might be that x_includes is empty (headers are found in the
26201 # standard search path. Then output the corresponding message
26202 ac_out_x_includes=$x_includes
26203 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26204 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26205echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26206fi
26207
9dd0f6c2 26208fi
a848cd7e
SC
26209if test "$no_x" = yes; then
26210 # Not all programs may use this symbol, but it does not hurt to define it.
26211
26212cat >>confdefs.h <<\_ACEOF
26213#define X_DISPLAY_MISSING 1
26214_ACEOF
26215
26216 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26217else
26218 if test -n "$x_includes"; then
26219 X_CFLAGS="$X_CFLAGS -I$x_includes"
26220 fi
26221
26222 # It would also be nice to do this for all -L options, not just this one.
26223 if test -n "$x_libraries"; then
26224 X_LIBS="$X_LIBS -L$x_libraries"
26225 # For Solaris; some versions of Sun CC require a space after -R and
26226 # others require no space. Words are not sufficient . . . .
26227 case `(uname -sr) 2>/dev/null` in
26228 "SunOS 5"*)
26229 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26230echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26231 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26232 cat >conftest.$ac_ext <<_ACEOF
26233/* confdefs.h. */
26234_ACEOF
26235cat confdefs.h >>conftest.$ac_ext
26236cat >>conftest.$ac_ext <<_ACEOF
26237/* end confdefs.h. */
26238
26239int
26240main ()
26241{
26242
26243 ;
26244 return 0;
26245}
26246_ACEOF
26247rm -f conftest.$ac_objext conftest$ac_exeext
26248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26249 (eval $ac_link) 2>conftest.er1
a848cd7e 26250 ac_status=$?
ac1cb8d3
VS
26251 grep -v '^ *+' conftest.er1 >conftest.err
26252 rm -f conftest.er1
26253 cat conftest.err >&5
a848cd7e
SC
26254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255 (exit $ac_status); } &&
9dd0f6c2 26256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
26262 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26264 (eval $ac_try) 2>&5
26265 ac_status=$?
26266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26267 (exit $ac_status); }; }; then
26268 ac_R_nospace=yes
26269else
26270 echo "$as_me: failed program was:" >&5
26271sed 's/^/| /' conftest.$ac_ext >&5
26272
26273ac_R_nospace=no
26274fi
ac1cb8d3
VS
26275rm -f conftest.err conftest.$ac_objext \
26276 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26277 if test $ac_R_nospace = yes; then
26278 echo "$as_me:$LINENO: result: no" >&5
26279echo "${ECHO_T}no" >&6
26280 X_LIBS="$X_LIBS -R$x_libraries"
26281 else
26282 LIBS="$ac_xsave_LIBS -R $x_libraries"
26283 cat >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
26290int
26291main ()
26292{
26293
26294 ;
26295 return 0;
26296}
26297_ACEOF
26298rm -f conftest.$ac_objext conftest$ac_exeext
26299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26300 (eval $ac_link) 2>conftest.er1
a848cd7e 26301 ac_status=$?
ac1cb8d3
VS
26302 grep -v '^ *+' conftest.er1 >conftest.err
26303 rm -f conftest.er1
26304 cat conftest.err >&5
a848cd7e
SC
26305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); } &&
9dd0f6c2 26307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26309 (eval $ac_try) 2>&5
26310 ac_status=$?
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); }; } &&
26313 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26315 (eval $ac_try) 2>&5
26316 ac_status=$?
26317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); }; }; then
26319 ac_R_space=yes
26320else
26321 echo "$as_me: failed program was:" >&5
26322sed 's/^/| /' conftest.$ac_ext >&5
26323
26324ac_R_space=no
26325fi
ac1cb8d3
VS
26326rm -f conftest.err conftest.$ac_objext \
26327 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26328 if test $ac_R_space = yes; then
26329 echo "$as_me:$LINENO: result: yes" >&5
26330echo "${ECHO_T}yes" >&6
26331 X_LIBS="$X_LIBS -R $x_libraries"
26332 else
26333 echo "$as_me:$LINENO: result: neither works" >&5
26334echo "${ECHO_T}neither works" >&6
26335 fi
26336 fi
26337 LIBS=$ac_xsave_LIBS
26338 esac
26339 fi
26340
26341 # Check for system-dependent libraries X programs must link with.
26342 # Do this before checking for the system-independent R6 libraries
26343 # (-lICE), since we may need -lsocket or whatever for X linking.
26344
26345 if test "$ISC" = yes; then
26346 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26347 else
26348 # Martyn Johnson says this is needed for Ultrix, if the X
26349 # libraries were built with DECnet support. And Karl Berry says
26350 # the Alpha needs dnet_stub (dnet does not exist).
26351 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26352 cat >conftest.$ac_ext <<_ACEOF
26353/* confdefs.h. */
26354_ACEOF
26355cat confdefs.h >>conftest.$ac_ext
26356cat >>conftest.$ac_ext <<_ACEOF
26357/* end confdefs.h. */
26358
26359/* Override any gcc2 internal prototype to avoid an error. */
26360#ifdef __cplusplus
26361extern "C"
26362#endif
26363/* We use char because int might match the return type of a gcc2
26364 builtin and then its argument prototype would still apply. */
26365char XOpenDisplay ();
26366int
26367main ()
26368{
26369XOpenDisplay ();
26370 ;
26371 return 0;
26372}
26373_ACEOF
26374rm -f conftest.$ac_objext conftest$ac_exeext
26375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26376 (eval $ac_link) 2>conftest.er1
a848cd7e 26377 ac_status=$?
ac1cb8d3
VS
26378 grep -v '^ *+' conftest.er1 >conftest.err
26379 rm -f conftest.er1
26380 cat conftest.err >&5
a848cd7e
SC
26381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382 (exit $ac_status); } &&
9dd0f6c2 26383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26385 (eval $ac_try) 2>&5
26386 ac_status=$?
26387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388 (exit $ac_status); }; } &&
26389 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26391 (eval $ac_try) 2>&5
26392 ac_status=$?
26393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394 (exit $ac_status); }; }; then
26395 :
26396else
26397 echo "$as_me: failed program was:" >&5
26398sed 's/^/| /' conftest.$ac_ext >&5
26399
26400echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26401echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26402if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26403 echo $ECHO_N "(cached) $ECHO_C" >&6
26404else
26405 ac_check_lib_save_LIBS=$LIBS
26406LIBS="-ldnet $LIBS"
26407cat >conftest.$ac_ext <<_ACEOF
26408/* confdefs.h. */
26409_ACEOF
26410cat confdefs.h >>conftest.$ac_ext
26411cat >>conftest.$ac_ext <<_ACEOF
26412/* end confdefs.h. */
26413
26414/* Override any gcc2 internal prototype to avoid an error. */
26415#ifdef __cplusplus
26416extern "C"
26417#endif
26418/* We use char because int might match the return type of a gcc2
26419 builtin and then its argument prototype would still apply. */
26420char dnet_ntoa ();
26421int
26422main ()
26423{
26424dnet_ntoa ();
26425 ;
26426 return 0;
26427}
26428_ACEOF
26429rm -f conftest.$ac_objext conftest$ac_exeext
26430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26431 (eval $ac_link) 2>conftest.er1
a848cd7e 26432 ac_status=$?
ac1cb8d3
VS
26433 grep -v '^ *+' conftest.er1 >conftest.err
26434 rm -f conftest.er1
26435 cat conftest.err >&5
a848cd7e
SC
26436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437 (exit $ac_status); } &&
9dd0f6c2 26438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26440 (eval $ac_try) 2>&5
26441 ac_status=$?
26442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 (exit $ac_status); }; } &&
26444 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26446 (eval $ac_try) 2>&5
26447 ac_status=$?
26448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26449 (exit $ac_status); }; }; then
26450 ac_cv_lib_dnet_dnet_ntoa=yes
26451else
26452 echo "$as_me: failed program was:" >&5
26453sed 's/^/| /' conftest.$ac_ext >&5
26454
26455ac_cv_lib_dnet_dnet_ntoa=no
26456fi
ac1cb8d3
VS
26457rm -f conftest.err conftest.$ac_objext \
26458 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26459LIBS=$ac_check_lib_save_LIBS
26460fi
26461echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26462echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26463if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26464 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26465fi
26466
26467 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26468 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26469echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26470if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26471 echo $ECHO_N "(cached) $ECHO_C" >&6
26472else
26473 ac_check_lib_save_LIBS=$LIBS
26474LIBS="-ldnet_stub $LIBS"
26475cat >conftest.$ac_ext <<_ACEOF
26476/* confdefs.h. */
26477_ACEOF
26478cat confdefs.h >>conftest.$ac_ext
26479cat >>conftest.$ac_ext <<_ACEOF
26480/* end confdefs.h. */
26481
26482/* Override any gcc2 internal prototype to avoid an error. */
26483#ifdef __cplusplus
26484extern "C"
26485#endif
26486/* We use char because int might match the return type of a gcc2
26487 builtin and then its argument prototype would still apply. */
26488char dnet_ntoa ();
26489int
26490main ()
26491{
26492dnet_ntoa ();
26493 ;
26494 return 0;
26495}
26496_ACEOF
26497rm -f conftest.$ac_objext conftest$ac_exeext
26498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26499 (eval $ac_link) 2>conftest.er1
a848cd7e 26500 ac_status=$?
ac1cb8d3
VS
26501 grep -v '^ *+' conftest.er1 >conftest.err
26502 rm -f conftest.er1
26503 cat conftest.err >&5
a848cd7e
SC
26504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505 (exit $ac_status); } &&
9dd0f6c2 26506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26508 (eval $ac_try) 2>&5
26509 ac_status=$?
26510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511 (exit $ac_status); }; } &&
26512 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26514 (eval $ac_try) 2>&5
26515 ac_status=$?
26516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517 (exit $ac_status); }; }; then
26518 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26519else
26520 echo "$as_me: failed program was:" >&5
26521sed 's/^/| /' conftest.$ac_ext >&5
26522
26523ac_cv_lib_dnet_stub_dnet_ntoa=no
26524fi
ac1cb8d3
VS
26525rm -f conftest.err conftest.$ac_objext \
26526 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26527LIBS=$ac_check_lib_save_LIBS
26528fi
26529echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26530echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26531if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26532 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26533fi
26534
26535 fi
26536fi
ac1cb8d3
VS
26537rm -f conftest.err conftest.$ac_objext \
26538 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26539 LIBS="$ac_xsave_LIBS"
26540
26541 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26542 # to get the SysV transport functions.
26543 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26544 # needs -lnsl.
26545 # The nsl library prevents programs from opening the X display
26546 # on Irix 5.2, according to T.E. Dickey.
26547 # The functions gethostbyname, getservbyname, and inet_addr are
26548 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26549 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26550echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26551if test "${ac_cv_func_gethostbyname+set}" = set; then
26552 echo $ECHO_N "(cached) $ECHO_C" >&6
26553else
26554 cat >conftest.$ac_ext <<_ACEOF
26555/* confdefs.h. */
26556_ACEOF
26557cat confdefs.h >>conftest.$ac_ext
26558cat >>conftest.$ac_ext <<_ACEOF
26559/* end confdefs.h. */
ac1cb8d3
VS
26560/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26562#define gethostbyname innocuous_gethostbyname
26563
a848cd7e
SC
26564/* System header to define __stub macros and hopefully few prototypes,
26565 which can conflict with char gethostbyname (); below.
26566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26567 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26568
a848cd7e
SC
26569#ifdef __STDC__
26570# include <limits.h>
26571#else
26572# include <assert.h>
26573#endif
ac1cb8d3
VS
26574
26575#undef gethostbyname
26576
a848cd7e
SC
26577/* Override any gcc2 internal prototype to avoid an error. */
26578#ifdef __cplusplus
26579extern "C"
26580{
26581#endif
26582/* We use char because int might match the return type of a gcc2
26583 builtin and then its argument prototype would still apply. */
26584char gethostbyname ();
26585/* The GNU C library defines this for functions which it implements
26586 to always fail with ENOSYS. Some functions are actually named
26587 something starting with __ and the normal name is an alias. */
26588#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26589choke me
26590#else
26591char (*f) () = gethostbyname;
26592#endif
26593#ifdef __cplusplus
26594}
26595#endif
26596
26597int
26598main ()
26599{
26600return f != gethostbyname;
26601 ;
26602 return 0;
26603}
26604_ACEOF
26605rm -f conftest.$ac_objext conftest$ac_exeext
26606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26607 (eval $ac_link) 2>conftest.er1
a848cd7e 26608 ac_status=$?
ac1cb8d3
VS
26609 grep -v '^ *+' conftest.er1 >conftest.err
26610 rm -f conftest.er1
26611 cat conftest.err >&5
a848cd7e
SC
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); } &&
9dd0f6c2 26614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616 (eval $ac_try) 2>&5
26617 ac_status=$?
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); }; } &&
26620 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26622 (eval $ac_try) 2>&5
26623 ac_status=$?
26624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); }; }; then
26626 ac_cv_func_gethostbyname=yes
26627else
26628 echo "$as_me: failed program was:" >&5
26629sed 's/^/| /' conftest.$ac_ext >&5
26630
26631ac_cv_func_gethostbyname=no
26632fi
ac1cb8d3
VS
26633rm -f conftest.err conftest.$ac_objext \
26634 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26635fi
26636echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26637echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26638
26639 if test $ac_cv_func_gethostbyname = no; then
26640 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26641echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26642if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26643 echo $ECHO_N "(cached) $ECHO_C" >&6
26644else
26645 ac_check_lib_save_LIBS=$LIBS
26646LIBS="-lnsl $LIBS"
26647cat >conftest.$ac_ext <<_ACEOF
26648/* confdefs.h. */
26649_ACEOF
26650cat confdefs.h >>conftest.$ac_ext
26651cat >>conftest.$ac_ext <<_ACEOF
26652/* end confdefs.h. */
26653
26654/* Override any gcc2 internal prototype to avoid an error. */
26655#ifdef __cplusplus
26656extern "C"
26657#endif
26658/* We use char because int might match the return type of a gcc2
26659 builtin and then its argument prototype would still apply. */
26660char gethostbyname ();
26661int
26662main ()
26663{
26664gethostbyname ();
26665 ;
26666 return 0;
26667}
26668_ACEOF
26669rm -f conftest.$ac_objext conftest$ac_exeext
26670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26671 (eval $ac_link) 2>conftest.er1
26672 ac_status=$?
26673 grep -v '^ *+' conftest.er1 >conftest.err
26674 rm -f conftest.er1
26675 cat conftest.err >&5
26676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677 (exit $ac_status); } &&
9dd0f6c2 26678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680 (eval $ac_try) 2>&5
26681 ac_status=$?
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); }; } &&
26684 { ac_try='test -s conftest$ac_exeext'
26685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686 (eval $ac_try) 2>&5
26687 ac_status=$?
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); }; }; then
26690 ac_cv_lib_nsl_gethostbyname=yes
26691else
26692 echo "$as_me: failed program was:" >&5
26693sed 's/^/| /' conftest.$ac_ext >&5
26694
26695ac_cv_lib_nsl_gethostbyname=no
26696fi
26697rm -f conftest.err conftest.$ac_objext \
26698 conftest$ac_exeext conftest.$ac_ext
26699LIBS=$ac_check_lib_save_LIBS
26700fi
26701echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26702echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26703if test $ac_cv_lib_nsl_gethostbyname = yes; then
26704 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26705fi
26706
26707 if test $ac_cv_lib_nsl_gethostbyname = no; then
26708 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26709echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26710if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26711 echo $ECHO_N "(cached) $ECHO_C" >&6
26712else
26713 ac_check_lib_save_LIBS=$LIBS
26714LIBS="-lbsd $LIBS"
26715cat >conftest.$ac_ext <<_ACEOF
26716/* confdefs.h. */
26717_ACEOF
26718cat confdefs.h >>conftest.$ac_ext
26719cat >>conftest.$ac_ext <<_ACEOF
26720/* end confdefs.h. */
26721
26722/* Override any gcc2 internal prototype to avoid an error. */
26723#ifdef __cplusplus
26724extern "C"
26725#endif
26726/* We use char because int might match the return type of a gcc2
26727 builtin and then its argument prototype would still apply. */
26728char gethostbyname ();
26729int
26730main ()
26731{
26732gethostbyname ();
26733 ;
26734 return 0;
26735}
26736_ACEOF
26737rm -f conftest.$ac_objext conftest$ac_exeext
26738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26739 (eval $ac_link) 2>conftest.er1
a848cd7e 26740 ac_status=$?
ac1cb8d3
VS
26741 grep -v '^ *+' conftest.er1 >conftest.err
26742 rm -f conftest.er1
26743 cat conftest.err >&5
a848cd7e
SC
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); } &&
9dd0f6c2 26746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26748 (eval $ac_try) 2>&5
26749 ac_status=$?
26750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26751 (exit $ac_status); }; } &&
26752 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26754 (eval $ac_try) 2>&5
26755 ac_status=$?
26756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757 (exit $ac_status); }; }; then
26758 ac_cv_lib_bsd_gethostbyname=yes
26759else
26760 echo "$as_me: failed program was:" >&5
26761sed 's/^/| /' conftest.$ac_ext >&5
26762
26763ac_cv_lib_bsd_gethostbyname=no
26764fi
ac1cb8d3
VS
26765rm -f conftest.err conftest.$ac_objext \
26766 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26767LIBS=$ac_check_lib_save_LIBS
26768fi
26769echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26770echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26771if test $ac_cv_lib_bsd_gethostbyname = yes; then
26772 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26773fi
26774
26775 fi
26776 fi
26777
26778 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26779 # socket/setsockopt and other routines are undefined under SCO ODT
26780 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26781 # on later versions), says Simon Leinen: it contains gethostby*
26782 # variants that don't use the name server (or something). -lsocket
26783 # must be given before -lnsl if both are needed. We assume that
26784 # if connect needs -lnsl, so does gethostbyname.
26785 echo "$as_me:$LINENO: checking for connect" >&5
26786echo $ECHO_N "checking for connect... $ECHO_C" >&6
26787if test "${ac_cv_func_connect+set}" = set; then
26788 echo $ECHO_N "(cached) $ECHO_C" >&6
26789else
26790 cat >conftest.$ac_ext <<_ACEOF
26791/* confdefs.h. */
26792_ACEOF
26793cat confdefs.h >>conftest.$ac_ext
26794cat >>conftest.$ac_ext <<_ACEOF
26795/* end confdefs.h. */
ac1cb8d3
VS
26796/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26798#define connect innocuous_connect
26799
a848cd7e
SC
26800/* System header to define __stub macros and hopefully few prototypes,
26801 which can conflict with char connect (); below.
26802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26803 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26804
a848cd7e
SC
26805#ifdef __STDC__
26806# include <limits.h>
26807#else
26808# include <assert.h>
26809#endif
ac1cb8d3
VS
26810
26811#undef connect
26812
a848cd7e
SC
26813/* Override any gcc2 internal prototype to avoid an error. */
26814#ifdef __cplusplus
26815extern "C"
26816{
26817#endif
26818/* We use char because int might match the return type of a gcc2
26819 builtin and then its argument prototype would still apply. */
26820char connect ();
26821/* The GNU C library defines this for functions which it implements
26822 to always fail with ENOSYS. Some functions are actually named
26823 something starting with __ and the normal name is an alias. */
26824#if defined (__stub_connect) || defined (__stub___connect)
26825choke me
26826#else
26827char (*f) () = connect;
26828#endif
26829#ifdef __cplusplus
26830}
26831#endif
26832
26833int
26834main ()
26835{
26836return f != connect;
26837 ;
26838 return 0;
26839}
26840_ACEOF
26841rm -f conftest.$ac_objext conftest$ac_exeext
26842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26843 (eval $ac_link) 2>conftest.er1
a848cd7e 26844 ac_status=$?
ac1cb8d3
VS
26845 grep -v '^ *+' conftest.er1 >conftest.err
26846 rm -f conftest.er1
26847 cat conftest.err >&5
a848cd7e
SC
26848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849 (exit $ac_status); } &&
9dd0f6c2 26850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26852 (eval $ac_try) 2>&5
26853 ac_status=$?
26854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); }; } &&
26856 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26858 (eval $ac_try) 2>&5
26859 ac_status=$?
26860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26861 (exit $ac_status); }; }; then
26862 ac_cv_func_connect=yes
26863else
26864 echo "$as_me: failed program was:" >&5
26865sed 's/^/| /' conftest.$ac_ext >&5
26866
26867ac_cv_func_connect=no
26868fi
ac1cb8d3
VS
26869rm -f conftest.err conftest.$ac_objext \
26870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26871fi
26872echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26873echo "${ECHO_T}$ac_cv_func_connect" >&6
26874
26875 if test $ac_cv_func_connect = no; then
26876 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26877echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26878if test "${ac_cv_lib_socket_connect+set}" = set; then
26879 echo $ECHO_N "(cached) $ECHO_C" >&6
26880else
26881 ac_check_lib_save_LIBS=$LIBS
26882LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26883cat >conftest.$ac_ext <<_ACEOF
26884/* confdefs.h. */
26885_ACEOF
26886cat confdefs.h >>conftest.$ac_ext
26887cat >>conftest.$ac_ext <<_ACEOF
26888/* end confdefs.h. */
26889
26890/* Override any gcc2 internal prototype to avoid an error. */
26891#ifdef __cplusplus
26892extern "C"
26893#endif
26894/* We use char because int might match the return type of a gcc2
26895 builtin and then its argument prototype would still apply. */
26896char connect ();
26897int
26898main ()
26899{
26900connect ();
26901 ;
26902 return 0;
26903}
26904_ACEOF
26905rm -f conftest.$ac_objext conftest$ac_exeext
26906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26907 (eval $ac_link) 2>conftest.er1
a848cd7e 26908 ac_status=$?
ac1cb8d3
VS
26909 grep -v '^ *+' conftest.er1 >conftest.err
26910 rm -f conftest.er1
26911 cat conftest.err >&5
a848cd7e
SC
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); } &&
9dd0f6c2 26914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916 (eval $ac_try) 2>&5
26917 ac_status=$?
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); }; } &&
26920 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26922 (eval $ac_try) 2>&5
26923 ac_status=$?
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); }; }; then
26926 ac_cv_lib_socket_connect=yes
26927else
26928 echo "$as_me: failed program was:" >&5
26929sed 's/^/| /' conftest.$ac_ext >&5
26930
26931ac_cv_lib_socket_connect=no
26932fi
ac1cb8d3
VS
26933rm -f conftest.err conftest.$ac_objext \
26934 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26935LIBS=$ac_check_lib_save_LIBS
26936fi
26937echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26938echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26939if test $ac_cv_lib_socket_connect = yes; then
26940 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26941fi
26942
26943 fi
26944
26945 # Guillermo Gomez says -lposix is necessary on A/UX.
26946 echo "$as_me:$LINENO: checking for remove" >&5
26947echo $ECHO_N "checking for remove... $ECHO_C" >&6
26948if test "${ac_cv_func_remove+set}" = set; then
26949 echo $ECHO_N "(cached) $ECHO_C" >&6
26950else
26951 cat >conftest.$ac_ext <<_ACEOF
26952/* confdefs.h. */
26953_ACEOF
26954cat confdefs.h >>conftest.$ac_ext
26955cat >>conftest.$ac_ext <<_ACEOF
26956/* end confdefs.h. */
ac1cb8d3
VS
26957/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26959#define remove innocuous_remove
26960
a848cd7e
SC
26961/* System header to define __stub macros and hopefully few prototypes,
26962 which can conflict with char remove (); below.
26963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26964 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26965
a848cd7e
SC
26966#ifdef __STDC__
26967# include <limits.h>
26968#else
26969# include <assert.h>
26970#endif
ac1cb8d3
VS
26971
26972#undef remove
26973
a848cd7e
SC
26974/* Override any gcc2 internal prototype to avoid an error. */
26975#ifdef __cplusplus
26976extern "C"
26977{
26978#endif
26979/* We use char because int might match the return type of a gcc2
26980 builtin and then its argument prototype would still apply. */
26981char remove ();
26982/* The GNU C library defines this for functions which it implements
26983 to always fail with ENOSYS. Some functions are actually named
26984 something starting with __ and the normal name is an alias. */
26985#if defined (__stub_remove) || defined (__stub___remove)
26986choke me
26987#else
26988char (*f) () = remove;
26989#endif
26990#ifdef __cplusplus
26991}
26992#endif
26993
26994int
26995main ()
26996{
26997return f != remove;
26998 ;
26999 return 0;
27000}
27001_ACEOF
27002rm -f conftest.$ac_objext conftest$ac_exeext
27003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27004 (eval $ac_link) 2>conftest.er1
a848cd7e 27005 ac_status=$?
ac1cb8d3
VS
27006 grep -v '^ *+' conftest.er1 >conftest.err
27007 rm -f conftest.er1
27008 cat conftest.err >&5
a848cd7e
SC
27009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010 (exit $ac_status); } &&
9dd0f6c2 27011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27013 (eval $ac_try) 2>&5
27014 ac_status=$?
27015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016 (exit $ac_status); }; } &&
27017 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27019 (eval $ac_try) 2>&5
27020 ac_status=$?
27021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022 (exit $ac_status); }; }; then
27023 ac_cv_func_remove=yes
27024else
27025 echo "$as_me: failed program was:" >&5
27026sed 's/^/| /' conftest.$ac_ext >&5
27027
27028ac_cv_func_remove=no
27029fi
ac1cb8d3
VS
27030rm -f conftest.err conftest.$ac_objext \
27031 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27032fi
27033echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27034echo "${ECHO_T}$ac_cv_func_remove" >&6
27035
27036 if test $ac_cv_func_remove = no; then
27037 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27038echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27039if test "${ac_cv_lib_posix_remove+set}" = set; then
27040 echo $ECHO_N "(cached) $ECHO_C" >&6
27041else
27042 ac_check_lib_save_LIBS=$LIBS
27043LIBS="-lposix $LIBS"
27044cat >conftest.$ac_ext <<_ACEOF
27045/* confdefs.h. */
27046_ACEOF
27047cat confdefs.h >>conftest.$ac_ext
27048cat >>conftest.$ac_ext <<_ACEOF
27049/* end confdefs.h. */
27050
27051/* Override any gcc2 internal prototype to avoid an error. */
27052#ifdef __cplusplus
27053extern "C"
27054#endif
27055/* We use char because int might match the return type of a gcc2
27056 builtin and then its argument prototype would still apply. */
27057char remove ();
27058int
27059main ()
27060{
27061remove ();
27062 ;
27063 return 0;
27064}
27065_ACEOF
27066rm -f conftest.$ac_objext conftest$ac_exeext
27067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27068 (eval $ac_link) 2>conftest.er1
a848cd7e 27069 ac_status=$?
ac1cb8d3
VS
27070 grep -v '^ *+' conftest.er1 >conftest.err
27071 rm -f conftest.er1
27072 cat conftest.err >&5
a848cd7e
SC
27073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074 (exit $ac_status); } &&
9dd0f6c2 27075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27077 (eval $ac_try) 2>&5
27078 ac_status=$?
27079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080 (exit $ac_status); }; } &&
27081 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27083 (eval $ac_try) 2>&5
27084 ac_status=$?
27085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 (exit $ac_status); }; }; then
27087 ac_cv_lib_posix_remove=yes
27088else
27089 echo "$as_me: failed program was:" >&5
27090sed 's/^/| /' conftest.$ac_ext >&5
27091
27092ac_cv_lib_posix_remove=no
27093fi
ac1cb8d3
VS
27094rm -f conftest.err conftest.$ac_objext \
27095 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27096LIBS=$ac_check_lib_save_LIBS
27097fi
27098echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27099echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27100if test $ac_cv_lib_posix_remove = yes; then
27101 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27102fi
27103
27104 fi
27105
27106 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27107 echo "$as_me:$LINENO: checking for shmat" >&5
27108echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27109if test "${ac_cv_func_shmat+set}" = set; then
27110 echo $ECHO_N "(cached) $ECHO_C" >&6
27111else
27112 cat >conftest.$ac_ext <<_ACEOF
27113/* confdefs.h. */
27114_ACEOF
27115cat confdefs.h >>conftest.$ac_ext
27116cat >>conftest.$ac_ext <<_ACEOF
27117/* end confdefs.h. */
ac1cb8d3
VS
27118/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27120#define shmat innocuous_shmat
27121
a848cd7e
SC
27122/* System header to define __stub macros and hopefully few prototypes,
27123 which can conflict with char shmat (); below.
27124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27125 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27126
a848cd7e
SC
27127#ifdef __STDC__
27128# include <limits.h>
27129#else
27130# include <assert.h>
27131#endif
ac1cb8d3
VS
27132
27133#undef shmat
27134
a848cd7e
SC
27135/* Override any gcc2 internal prototype to avoid an error. */
27136#ifdef __cplusplus
27137extern "C"
27138{
27139#endif
27140/* We use char because int might match the return type of a gcc2
27141 builtin and then its argument prototype would still apply. */
27142char shmat ();
27143/* The GNU C library defines this for functions which it implements
27144 to always fail with ENOSYS. Some functions are actually named
27145 something starting with __ and the normal name is an alias. */
27146#if defined (__stub_shmat) || defined (__stub___shmat)
27147choke me
27148#else
27149char (*f) () = shmat;
27150#endif
27151#ifdef __cplusplus
27152}
27153#endif
27154
27155int
27156main ()
27157{
27158return f != shmat;
27159 ;
27160 return 0;
27161}
27162_ACEOF
27163rm -f conftest.$ac_objext conftest$ac_exeext
27164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27165 (eval $ac_link) 2>conftest.er1
a848cd7e 27166 ac_status=$?
ac1cb8d3
VS
27167 grep -v '^ *+' conftest.er1 >conftest.err
27168 rm -f conftest.er1
27169 cat conftest.err >&5
a848cd7e
SC
27170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27171 (exit $ac_status); } &&
9dd0f6c2 27172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27174 (eval $ac_try) 2>&5
27175 ac_status=$?
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); }; } &&
27178 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27180 (eval $ac_try) 2>&5
27181 ac_status=$?
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); }; }; then
27184 ac_cv_func_shmat=yes
27185else
27186 echo "$as_me: failed program was:" >&5
27187sed 's/^/| /' conftest.$ac_ext >&5
27188
27189ac_cv_func_shmat=no
27190fi
ac1cb8d3
VS
27191rm -f conftest.err conftest.$ac_objext \
27192 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27193fi
27194echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27195echo "${ECHO_T}$ac_cv_func_shmat" >&6
27196
27197 if test $ac_cv_func_shmat = no; then
27198 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27199echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27200if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27201 echo $ECHO_N "(cached) $ECHO_C" >&6
27202else
27203 ac_check_lib_save_LIBS=$LIBS
27204LIBS="-lipc $LIBS"
27205cat >conftest.$ac_ext <<_ACEOF
27206/* confdefs.h. */
27207_ACEOF
27208cat confdefs.h >>conftest.$ac_ext
27209cat >>conftest.$ac_ext <<_ACEOF
27210/* end confdefs.h. */
27211
27212/* Override any gcc2 internal prototype to avoid an error. */
27213#ifdef __cplusplus
27214extern "C"
27215#endif
27216/* We use char because int might match the return type of a gcc2
27217 builtin and then its argument prototype would still apply. */
27218char shmat ();
27219int
27220main ()
27221{
27222shmat ();
27223 ;
27224 return 0;
27225}
27226_ACEOF
27227rm -f conftest.$ac_objext conftest$ac_exeext
27228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27229 (eval $ac_link) 2>conftest.er1
a848cd7e 27230 ac_status=$?
ac1cb8d3
VS
27231 grep -v '^ *+' conftest.er1 >conftest.err
27232 rm -f conftest.er1
27233 cat conftest.err >&5
a848cd7e
SC
27234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235 (exit $ac_status); } &&
9dd0f6c2 27236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27238 (eval $ac_try) 2>&5
27239 ac_status=$?
27240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241 (exit $ac_status); }; } &&
27242 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27244 (eval $ac_try) 2>&5
27245 ac_status=$?
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; }; then
27248 ac_cv_lib_ipc_shmat=yes
27249else
27250 echo "$as_me: failed program was:" >&5
27251sed 's/^/| /' conftest.$ac_ext >&5
27252
27253ac_cv_lib_ipc_shmat=no
27254fi
ac1cb8d3
VS
27255rm -f conftest.err conftest.$ac_objext \
27256 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27257LIBS=$ac_check_lib_save_LIBS
27258fi
27259echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27260echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27261if test $ac_cv_lib_ipc_shmat = yes; then
27262 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27263fi
27264
27265 fi
27266 fi
27267
27268 # Check for libraries that X11R6 Xt/Xaw programs need.
27269 ac_save_LDFLAGS=$LDFLAGS
27270 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27271 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27272 # check for ICE first), but we must link in the order -lSM -lICE or
27273 # we get undefined symbols. So assume we have SM if we have ICE.
27274 # These have to be linked with before -lX11, unlike the other
27275 # libraries we check for below, so use a different variable.
27276 # John Interrante, Karl Berry
27277 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27278echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27279if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27280 echo $ECHO_N "(cached) $ECHO_C" >&6
27281else
27282 ac_check_lib_save_LIBS=$LIBS
27283LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27284cat >conftest.$ac_ext <<_ACEOF
27285/* confdefs.h. */
27286_ACEOF
27287cat confdefs.h >>conftest.$ac_ext
27288cat >>conftest.$ac_ext <<_ACEOF
27289/* end confdefs.h. */
27290
27291/* Override any gcc2 internal prototype to avoid an error. */
27292#ifdef __cplusplus
27293extern "C"
27294#endif
27295/* We use char because int might match the return type of a gcc2
27296 builtin and then its argument prototype would still apply. */
27297char IceConnectionNumber ();
27298int
27299main ()
27300{
27301IceConnectionNumber ();
27302 ;
27303 return 0;
27304}
27305_ACEOF
27306rm -f conftest.$ac_objext conftest$ac_exeext
27307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27308 (eval $ac_link) 2>conftest.er1
a848cd7e 27309 ac_status=$?
ac1cb8d3
VS
27310 grep -v '^ *+' conftest.er1 >conftest.err
27311 rm -f conftest.er1
27312 cat conftest.err >&5
a848cd7e
SC
27313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27314 (exit $ac_status); } &&
9dd0f6c2 27315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27317 (eval $ac_try) 2>&5
27318 ac_status=$?
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); }; } &&
27321 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27323 (eval $ac_try) 2>&5
27324 ac_status=$?
27325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326 (exit $ac_status); }; }; then
27327 ac_cv_lib_ICE_IceConnectionNumber=yes
27328else
27329 echo "$as_me: failed program was:" >&5
27330sed 's/^/| /' conftest.$ac_ext >&5
27331
27332ac_cv_lib_ICE_IceConnectionNumber=no
27333fi
ac1cb8d3
VS
27334rm -f conftest.err conftest.$ac_objext \
27335 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27336LIBS=$ac_check_lib_save_LIBS
27337fi
27338echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27339echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27340if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27341 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27342fi
27343
27344 LDFLAGS=$ac_save_LDFLAGS
27345
27346fi
27347
27348
27349 if test "$no_x" = "yes"; then
27350 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27351echo "$as_me: error: X11 not found" >&2;}
27352 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27353 fi
27354
74b84332
VS
27355 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27356 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27357 AFMINSTALL=afminstall
27358 COMPILED_X_PROGRAM=0
27359
74b84332
VS
27360 fi
27361
27362 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27363 if test "$wxUSE_NANOX" = "yes"; then
27364 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27365echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27366 if test "x$MICROWIN" = x ; then
27367 echo "$as_me:$LINENO: result: not found" >&5
27368echo "${ECHO_T}not found" >&6
27369 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27370echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27371 { (exit 1); exit 1; }; }
27372 else
27373 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27374echo "${ECHO_T}$MICROWIN" >&6
27375 cat >>confdefs.h <<\_ACEOF
27376#define wxUSE_NANOX 1
27377_ACEOF
27378
27379 fi
27380 fi
27381
27382 if test "$wxUSE_UNICODE" = "yes"; then
27383
27384 succeeded=no
27385
27386 if test -z "$PKG_CONFIG"; then
27387 # Extract the first word of "pkg-config", so it can be a program name with args.
27388set dummy pkg-config; ac_word=$2
27389echo "$as_me:$LINENO: checking for $ac_word" >&5
27390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27391if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27392 echo $ECHO_N "(cached) $ECHO_C" >&6
27393else
27394 case $PKG_CONFIG in
27395 [\\/]* | ?:[\\/]*)
27396 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27397 ;;
27398 *)
27399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27400for as_dir in $PATH
27401do
27402 IFS=$as_save_IFS
27403 test -z "$as_dir" && as_dir=.
27404 for ac_exec_ext in '' $ac_executable_extensions; do
27405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27406 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27408 break 2
27409 fi
27410done
27411done
27412
27413 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27414 ;;
27415esac
27416fi
27417PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27418
27419if test -n "$PKG_CONFIG"; then
27420 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27421echo "${ECHO_T}$PKG_CONFIG" >&6
27422else
27423 echo "$as_me:$LINENO: result: no" >&5
27424echo "${ECHO_T}no" >&6
27425fi
27426
27427 fi
27428
27429 if test "$PKG_CONFIG" = "no" ; then
27430 echo "*** The pkg-config script could not be found. Make sure it is"
27431 echo "*** in your path, or set the PKG_CONFIG environment variable"
27432 echo "*** to the full path to pkg-config."
27433 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27434 else
27435 PKG_CONFIG_MIN_VERSION=0.9.0
27436 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27437 echo "$as_me:$LINENO: checking for pangox" >&5
27438echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27439
27440 if $PKG_CONFIG --exists "pangox" ; then
27441 echo "$as_me:$LINENO: result: yes" >&5
27442echo "${ECHO_T}yes" >&6
27443 succeeded=yes
27444
27445 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27446echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27447 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27448 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27449echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27450
27451 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27452echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27453 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27454 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27455echo "${ECHO_T}$PANGOX_LIBS" >&6
27456 else
27457 PANGOX_CFLAGS=""
27458 PANGOX_LIBS=""
27459 ## If we have a custom action on failure, don't print errors, but
27460 ## do set a variable so people can do so.
27461 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27462
27463 fi
27464
27465
27466
27467 else
27468 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27469 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27470 fi
27471 fi
27472
27473 if test $succeeded = yes; then
27474
27475 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27476 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27477
27478 else
27479
27480 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27481echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27482 { (exit 1); exit 1; }; }
27483
27484
27485 fi
27486
27487
27488 succeeded=no
27489
27490 if test -z "$PKG_CONFIG"; then
27491 # Extract the first word of "pkg-config", so it can be a program name with args.
27492set dummy pkg-config; ac_word=$2
27493echo "$as_me:$LINENO: checking for $ac_word" >&5
27494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27495if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27496 echo $ECHO_N "(cached) $ECHO_C" >&6
27497else
27498 case $PKG_CONFIG in
27499 [\\/]* | ?:[\\/]*)
27500 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27501 ;;
27502 *)
27503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27504for as_dir in $PATH
27505do
27506 IFS=$as_save_IFS
27507 test -z "$as_dir" && as_dir=.
27508 for ac_exec_ext in '' $ac_executable_extensions; do
27509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27510 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27512 break 2
27513 fi
27514done
27515done
27516
27517 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27518 ;;
27519esac
27520fi
27521PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27522
27523if test -n "$PKG_CONFIG"; then
27524 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27525echo "${ECHO_T}$PKG_CONFIG" >&6
27526else
27527 echo "$as_me:$LINENO: result: no" >&5
27528echo "${ECHO_T}no" >&6
27529fi
27530
27531 fi
27532
27533 if test "$PKG_CONFIG" = "no" ; then
27534 echo "*** The pkg-config script could not be found. Make sure it is"
27535 echo "*** in your path, or set the PKG_CONFIG environment variable"
27536 echo "*** to the full path to pkg-config."
27537 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27538 else
27539 PKG_CONFIG_MIN_VERSION=0.9.0
27540 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27541 echo "$as_me:$LINENO: checking for pangoft2" >&5
27542echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27543
27544 if $PKG_CONFIG --exists "pangoft2" ; then
27545 echo "$as_me:$LINENO: result: yes" >&5
27546echo "${ECHO_T}yes" >&6
27547 succeeded=yes
27548
27549 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27550echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27551 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27552 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27553echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27554
27555 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27556echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27557 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27558 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27559echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27560 else
27561 PANGOFT2_CFLAGS=""
27562 PANGOFT2_LIBS=""
27563 ## If we have a custom action on failure, don't print errors, but
27564 ## do set a variable so people can do so.
27565 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27566
27567 fi
27568
27569
27570
27571 else
27572 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27573 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27574 fi
27575 fi
27576
27577 if test $succeeded = yes; then
27578
27579 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27580 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27581
27582 else
27583
27584 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27585echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27586 wxUSE_PRINTING_ARCHITECTURE="no"
27587
27588
27589 fi
27590
27591
27592 succeeded=no
27593
27594 if test -z "$PKG_CONFIG"; then
27595 # Extract the first word of "pkg-config", so it can be a program name with args.
27596set dummy pkg-config; ac_word=$2
27597echo "$as_me:$LINENO: checking for $ac_word" >&5
27598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27599if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27600 echo $ECHO_N "(cached) $ECHO_C" >&6
27601else
27602 case $PKG_CONFIG in
27603 [\\/]* | ?:[\\/]*)
27604 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27605 ;;
27606 *)
27607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27608for as_dir in $PATH
27609do
27610 IFS=$as_save_IFS
27611 test -z "$as_dir" && as_dir=.
27612 for ac_exec_ext in '' $ac_executable_extensions; do
27613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27614 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27616 break 2
27617 fi
27618done
27619done
27620
27621 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27622 ;;
27623esac
27624fi
27625PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27626
27627if test -n "$PKG_CONFIG"; then
27628 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27629echo "${ECHO_T}$PKG_CONFIG" >&6
27630else
27631 echo "$as_me:$LINENO: result: no" >&5
27632echo "${ECHO_T}no" >&6
27633fi
27634
27635 fi
27636
27637 if test "$PKG_CONFIG" = "no" ; then
27638 echo "*** The pkg-config script could not be found. Make sure it is"
27639 echo "*** in your path, or set the PKG_CONFIG environment variable"
27640 echo "*** to the full path to pkg-config."
27641 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27642 else
27643 PKG_CONFIG_MIN_VERSION=0.9.0
27644 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27645 echo "$as_me:$LINENO: checking for pangoxft" >&5
27646echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27647
27648 if $PKG_CONFIG --exists "pangoxft" ; then
27649 echo "$as_me:$LINENO: result: yes" >&5
27650echo "${ECHO_T}yes" >&6
27651 succeeded=yes
27652
27653 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27654echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27655 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27656 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27657echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27658
27659 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27660echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27661 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27662 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27663echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27664 else
27665 PANGOXFT_CFLAGS=""
27666 PANGOXFT_LIBS=""
27667 ## If we have a custom action on failure, don't print errors, but
27668 ## do set a variable so people can do so.
27669 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27670
27671 fi
27672
27673
27674
27675 else
27676 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27677 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27678 fi
27679 fi
27680
27681 if test $succeeded = yes; then
27682
4ae1af05
MB
27683 cat >>confdefs.h <<\_ACEOF
27684#define HAVE_PANGO_XFT 1
27685_ACEOF
27686
a848cd7e
SC
27687 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27688 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27689
27690 else
27691
27692 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27693echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27694
27695
27696 fi
27697
304205f1
VS
27698 save_CFLAGS="$CFLAGS"
27699 save_LIBS="$LIBS"
27700 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27701 LIBS="$LIBS $PANGOX_LIBS"
27702
27703for ac_func in pango_font_family_is_monospace
27704do
27705as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27706echo "$as_me:$LINENO: checking for $ac_func" >&5
27707echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27708if eval "test \"\${$as_ac_var+set}\" = set"; then
27709 echo $ECHO_N "(cached) $ECHO_C" >&6
27710else
27711 cat >conftest.$ac_ext <<_ACEOF
27712/* confdefs.h. */
27713_ACEOF
27714cat confdefs.h >>conftest.$ac_ext
27715cat >>conftest.$ac_ext <<_ACEOF
27716/* end confdefs.h. */
27717/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27719#define $ac_func innocuous_$ac_func
27720
27721/* System header to define __stub macros and hopefully few prototypes,
27722 which can conflict with char $ac_func (); below.
27723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27724 <limits.h> exists even on freestanding compilers. */
27725
27726#ifdef __STDC__
27727# include <limits.h>
27728#else
27729# include <assert.h>
27730#endif
27731
27732#undef $ac_func
27733
27734/* Override any gcc2 internal prototype to avoid an error. */
27735#ifdef __cplusplus
27736extern "C"
27737{
27738#endif
27739/* We use char because int might match the return type of a gcc2
27740 builtin and then its argument prototype would still apply. */
27741char $ac_func ();
27742/* The GNU C library defines this for functions which it implements
27743 to always fail with ENOSYS. Some functions are actually named
27744 something starting with __ and the normal name is an alias. */
27745#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27746choke me
27747#else
27748char (*f) () = $ac_func;
27749#endif
27750#ifdef __cplusplus
27751}
27752#endif
27753
27754int
27755main ()
27756{
27757return f != $ac_func;
27758 ;
27759 return 0;
27760}
27761_ACEOF
27762rm -f conftest.$ac_objext conftest$ac_exeext
27763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27764 (eval $ac_link) 2>conftest.er1
27765 ac_status=$?
27766 grep -v '^ *+' conftest.er1 >conftest.err
27767 rm -f conftest.er1
27768 cat conftest.err >&5
27769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27770 (exit $ac_status); } &&
9dd0f6c2 27771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
27772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27773 (eval $ac_try) 2>&5
27774 ac_status=$?
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); }; } &&
27777 { ac_try='test -s conftest$ac_exeext'
27778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27779 (eval $ac_try) 2>&5
27780 ac_status=$?
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); }; }; then
27783 eval "$as_ac_var=yes"
27784else
27785 echo "$as_me: failed program was:" >&5
27786sed 's/^/| /' conftest.$ac_ext >&5
27787
27788eval "$as_ac_var=no"
27789fi
27790rm -f conftest.err conftest.$ac_objext \
27791 conftest$ac_exeext conftest.$ac_ext
27792fi
27793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27794echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27795if test `eval echo '${'$as_ac_var'}'` = yes; then
27796 cat >>confdefs.h <<_ACEOF
27797#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27798_ACEOF
27799
27800fi
27801done
27802
27803 CFLAGS="$save_CFLAGS"
27804 LIBS="$save_LIBS"
a848cd7e
SC
27805 fi
27806
27807 wxUSE_UNIVERSAL="yes"
27808
27809 if test "$wxUSE_NANOX" = "yes"; then
27810 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27811 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"
27812 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27813 else
27814 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27815 fi
27816
a848cd7e
SC
27817 TOOLKIT=X11
27818 GUIDIST=X11_DIST
27819 fi
27820
27821 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
27822 if test "$wxUSE_UNICODE" = "yes"; then
27823 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
27824echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
27825 { (exit 1); exit 1; }; }
27826 fi
27827
74b84332
VS
27828 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27829echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 27830
74b84332
VS
27831ac_find_includes=
27832for ac_dir in $SEARCH_INCLUDE /usr/include;
27833 do
27834 if test -f "$ac_dir/Xm/Xm.h"; then
27835 ac_find_includes=$ac_dir
27836 break
27837 fi
27838 done
a848cd7e 27839
74b84332
VS
27840 if test "$ac_find_includes" != "" ; then
27841 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27842echo "${ECHO_T}found in $ac_find_includes" >&6
27843
27844 if test "x$ac_find_includes" = "x/usr/include"; then
27845 ac_path_to_include=""
27846 else
27847 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27848 result=$?
27849 if test $result = 0; then
27850 ac_path_to_include=""
27851 else
27852 ac_path_to_include=" -I$ac_find_includes"
27853 fi
a848cd7e
SC
27854 fi
27855
74b84332
VS
27856 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27857 else
27858 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27859/* confdefs.h. */
27860_ACEOF
27861cat confdefs.h >>conftest.$ac_ext
27862cat >>conftest.$ac_ext <<_ACEOF
27863/* end confdefs.h. */
27864
74b84332
VS
27865 #include <Xm/Xm.h>
27866
a848cd7e
SC
27867int
27868main ()
27869{
27870
74b84332
VS
27871 int version;
27872 version = xmUseVersion;
27873
a848cd7e
SC
27874 ;
27875 return 0;
27876}
27877_ACEOF
74b84332
VS
27878rm -f conftest.$ac_objext
27879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27880 (eval $ac_compile) 2>conftest.er1
a848cd7e 27881 ac_status=$?
ac1cb8d3
VS
27882 grep -v '^ *+' conftest.er1 >conftest.err
27883 rm -f conftest.er1
27884 cat conftest.err >&5
a848cd7e
SC
27885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886 (exit $ac_status); } &&
9dd0f6c2 27887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
74b84332 27893 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27895 (eval $ac_try) 2>&5
27896 ac_status=$?
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); }; }; then
74b84332
VS
27899
27900 echo "$as_me:$LINENO: result: found in default search path" >&5
27901echo "${ECHO_T}found in default search path" >&6
27902 COMPILED_X_PROGRAM=1
27903
a848cd7e
SC
27904else
27905 echo "$as_me: failed program was:" >&5
27906sed 's/^/| /' conftest.$ac_ext >&5
27907
a848cd7e 27908
74b84332
VS
27909 echo "$as_me:$LINENO: result: no" >&5
27910echo "${ECHO_T}no" >&6
27911 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27912echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27913 { (exit 1); exit 1; }; }
a848cd7e 27914
a848cd7e 27915
a848cd7e 27916fi
74b84332
VS
27917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27918 fi
27919
27920 if test "$COMPILED_X_PROGRAM" = 0; then
27921 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27922echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27923
27924ac_find_libraries=
27925for ac_dir in $SEARCH_LIB /usr/lib;
27926 do
27927 for ac_extension in a so sl dylib; do
27928 if test -f "$ac_dir/libXm.$ac_extension"; then
27929 ac_find_libraries=$ac_dir
27930 break 2
a848cd7e 27931 fi
74b84332
VS
27932 done
27933 done
a848cd7e 27934
74b84332
VS
27935 if test "$ac_find_libraries" != "" ; then
27936 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27937echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 27938
74b84332
VS
27939
27940 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27941 result=$?
27942 if test $result = 0; then
27943 ac_path_to_link=""
a848cd7e 27944 else
74b84332
VS
27945 ac_path_to_link=" -L$ac_find_libraries"
27946 fi
27947
27948 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27949 else
27950 save_CFLAGS=$CFLAGS
27951 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27952
27953 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27954/* confdefs.h. */
27955_ACEOF
27956cat confdefs.h >>conftest.$ac_ext
27957cat >>conftest.$ac_ext <<_ACEOF
27958/* end confdefs.h. */
27959
74b84332
VS
27960 #include <Xm/Xm.h>
27961
a848cd7e
SC
27962int
27963main ()
27964{
74b84332
VS
27965
27966 int version;
27967 version = xmUseVersion;
27968
a848cd7e
SC
27969 ;
27970 return 0;
27971}
27972_ACEOF
74b84332
VS
27973rm -f conftest.$ac_objext
27974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27975 (eval $ac_compile) 2>conftest.er1
a848cd7e 27976 ac_status=$?
ac1cb8d3
VS
27977 grep -v '^ *+' conftest.er1 >conftest.err
27978 rm -f conftest.er1
27979 cat conftest.err >&5
a848cd7e
SC
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); } &&
9dd0f6c2 27982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27984 (eval $ac_try) 2>&5
27985 ac_status=$?
27986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987 (exit $ac_status); }; } &&
74b84332 27988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27990 (eval $ac_try) 2>&5
27991 ac_status=$?
27992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); }; }; then
74b84332
VS
27994
27995 echo "$as_me:$LINENO: result: found in default search path" >&5
27996echo "${ECHO_T}found in default search path" >&6
27997 COMPILED_X_PROGRAM=1
27998
a848cd7e
SC
27999else
28000 echo "$as_me: failed program was:" >&5
28001sed 's/^/| /' conftest.$ac_ext >&5
28002
74b84332
VS
28003
28004 echo "$as_me:$LINENO: result: no" >&5
28005echo "${ECHO_T}no" >&6
28006 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
28007echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
28008 { (exit 1); exit 1; }; }
28009
28010
28011fi
28012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28013
28014 CFLAGS=$save_CFLAGS
28015 fi
28016 fi
28017
28018 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28019echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28020 libp_link=""
28021 libsm_ice_link=""
28022 libs_found=0
28023 for libp in "" " -lXp"; do
28024 if test "$libs_found" = "0"; then
28025 for libsm_ice in "" " -lSM -lICE"; do
28026 if test "$libs_found" = "0"; then
28027 save_LIBS="$LIBS"
28028 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28029 save_CFLAGS=$CFLAGS
28030 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28031
28032 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28033/* confdefs.h. */
28034_ACEOF
28035cat confdefs.h >>conftest.$ac_ext
28036cat >>conftest.$ac_ext <<_ACEOF
28037/* end confdefs.h. */
28038
74b84332
VS
28039 #include <Xm/Xm.h>
28040 #include <Xm/List.h>
28041
a848cd7e
SC
28042int
28043main ()
28044{
74b84332
VS
28045
28046 XmString string = NULL;
28047 Widget w = NULL;
28048 int position = 0;
28049 XmListAddItem(w, string, position);
28050
a848cd7e
SC
28051 ;
28052 return 0;
28053}
28054_ACEOF
28055rm -f conftest.$ac_objext conftest$ac_exeext
28056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28057 (eval $ac_link) 2>conftest.er1
a848cd7e 28058 ac_status=$?
ac1cb8d3
VS
28059 grep -v '^ *+' conftest.er1 >conftest.err
28060 rm -f conftest.er1
28061 cat conftest.err >&5
a848cd7e
SC
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); } &&
9dd0f6c2 28064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28066 (eval $ac_try) 2>&5
28067 ac_status=$?
28068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069 (exit $ac_status); }; } &&
28070 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28072 (eval $ac_try) 2>&5
28073 ac_status=$?
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; }; then
28076
28077 libp_link="$libp"
28078 libsm_ice_link="$libsm_ice"
28079 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28080echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28081 libs_found=1
28082
28083else
28084 echo "$as_me: failed program was:" >&5
28085sed 's/^/| /' conftest.$ac_ext >&5
28086
28087
28088
28089fi
ac1cb8d3
VS
28090rm -f conftest.err conftest.$ac_objext \
28091 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28092
28093 LIBS="$save_LIBS"
28094 CFLAGS=$save_CFLAGS
28095 fi
28096 done
28097 fi
28098 done
28099
28100 if test "$libs_found" = "0"; then
28101 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28102echo "${ECHO_T}can't find the right libraries" >&6
28103 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28104echo "$as_me: error: can't link a simple motif program" >&2;}
28105 { (exit 1); exit 1; }; }
28106 fi
28107
28108 save_CFLAGS=$CFLAGS
28109 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28110 echo "$as_me:$LINENO: checking for Motif 2" >&5
28111echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
28112 cat >conftest.$ac_ext <<_ACEOF
28113/* confdefs.h. */
28114_ACEOF
28115cat confdefs.h >>conftest.$ac_ext
28116cat >>conftest.$ac_ext <<_ACEOF
28117/* end confdefs.h. */
28118
28119 #include <Xm/Xm.h>
28120
28121int
28122main ()
28123{
28124
28125 #if XmVersion < 2000
28126 #error "Not Motif 2"
28127 #endif
28128
28129 ;
28130 return 0;
28131}
28132_ACEOF
28133rm -f conftest.$ac_objext
28134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28135 (eval $ac_compile) 2>conftest.er1
a848cd7e 28136 ac_status=$?
ac1cb8d3
VS
28137 grep -v '^ *+' conftest.er1 >conftest.err
28138 rm -f conftest.er1
28139 cat conftest.err >&5
a848cd7e
SC
28140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141 (exit $ac_status); } &&
9dd0f6c2 28142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28144 (eval $ac_try) 2>&5
28145 ac_status=$?
28146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147 (exit $ac_status); }; } &&
28148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28150 (eval $ac_try) 2>&5
28151 ac_status=$?
28152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153 (exit $ac_status); }; }; then
28154
28155 cat >>confdefs.h <<\_ACEOF
28156#define __WXMOTIF20__ 1
28157_ACEOF
28158
28159 echo "$as_me:$LINENO: result: found" >&5
28160echo "${ECHO_T}found" >&6
28161
28162else
28163 echo "$as_me: failed program was:" >&5
28164sed 's/^/| /' conftest.$ac_ext >&5
28165
28166
28167 cat >>confdefs.h <<\_ACEOF
28168#define __WXMOTIF20__ 0
28169_ACEOF
28170
28171 echo "$as_me:$LINENO: result: not found" >&5
28172echo "${ECHO_T}not found" >&6
28173
28174fi
ac1cb8d3 28175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28176 CFLAGS=$save_CFLAGS
28177
28178 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
28179 TOOLKIT=MOTIF
28180 GUIDIST=MOTIF_DIST
28181 fi
28182
74b84332 28183 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
28184 if test "$wxUSE_LIBXPM" = "sys"; then
28185 echo "$as_me:$LINENO: checking for Xpm library" >&5
28186echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28187
28188ac_find_libraries=
28189for ac_dir in $SEARCH_LIB /usr/lib;
28190 do
28191 for ac_extension in a so sl dylib; do
28192 if test -f "$ac_dir/libXpm.$ac_extension"; then
28193 ac_find_libraries=$ac_dir
28194 break 2
28195 fi
28196 done
28197 done
28198
28199 if test "$ac_find_libraries" != "" ; then
28200
28201 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28202 result=$?
28203 if test $result = 0; then
28204 ac_path_to_link=""
28205 else
28206 ac_path_to_link=" -L$ac_find_libraries"
28207 fi
28208
28209 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28210 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28211echo "${ECHO_T}found at $ac_find_libraries" >&6
28212
28213 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28214echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28215if test "${wx_cv_x11_xpm_h+set}" = set; then
28216 echo $ECHO_N "(cached) $ECHO_C" >&6
28217else
28218
28219 save_CFLAGS=$CFLAGS
28220 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28221
28222 cat >conftest.$ac_ext <<_ACEOF
28223/* confdefs.h. */
28224_ACEOF
28225cat confdefs.h >>conftest.$ac_ext
28226cat >>conftest.$ac_ext <<_ACEOF
28227/* end confdefs.h. */
28228
28229 #include <X11/xpm.h>
28230
28231int
28232main ()
28233{
28234
28235 int version;
28236 version = XpmLibraryVersion();
28237
28238 ;
28239 return 0;
28240}
28241_ACEOF
28242rm -f conftest.$ac_objext
28243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28244 (eval $ac_compile) 2>conftest.er1
a848cd7e 28245 ac_status=$?
ac1cb8d3
VS
28246 grep -v '^ *+' conftest.er1 >conftest.err
28247 rm -f conftest.er1
28248 cat conftest.err >&5
a848cd7e
SC
28249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250 (exit $ac_status); } &&
9dd0f6c2 28251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28253 (eval $ac_try) 2>&5
28254 ac_status=$?
28255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256 (exit $ac_status); }; } &&
28257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28259 (eval $ac_try) 2>&5
28260 ac_status=$?
28261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); }; }; then
28263 wx_cv_x11_xpm_h=yes
28264else
28265 echo "$as_me: failed program was:" >&5
28266sed 's/^/| /' conftest.$ac_ext >&5
28267
28268wx_cv_x11_xpm_h=no
28269
28270fi
ac1cb8d3 28271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28272
28273 CFLAGS=$save_CFLAGS
28274
28275
28276fi
28277echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28278echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28279
28280 if test $wx_cv_x11_xpm_h = "yes"; then
28281 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28282 cat >>confdefs.h <<\_ACEOF
28283#define wxHAVE_LIB_XPM 1
28284_ACEOF
28285
28286 else
28287 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28288echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28289 fi
28290 fi
28291
28292 fi
28293
28294 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28295echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28296if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28297 echo $ECHO_N "(cached) $ECHO_C" >&6
28298else
28299 ac_check_lib_save_LIBS=$LIBS
28300LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28301cat >conftest.$ac_ext <<_ACEOF
28302/* confdefs.h. */
28303_ACEOF
28304cat confdefs.h >>conftest.$ac_ext
28305cat >>conftest.$ac_ext <<_ACEOF
28306/* end confdefs.h. */
28307
28308/* Override any gcc2 internal prototype to avoid an error. */
28309#ifdef __cplusplus
28310extern "C"
28311#endif
28312/* We use char because int might match the return type of a gcc2
28313 builtin and then its argument prototype would still apply. */
28314char XShapeQueryExtension ();
28315int
28316main ()
28317{
28318XShapeQueryExtension ();
28319 ;
28320 return 0;
28321}
28322_ACEOF
28323rm -f conftest.$ac_objext conftest$ac_exeext
28324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28325 (eval $ac_link) 2>conftest.er1
a848cd7e 28326 ac_status=$?
ac1cb8d3
VS
28327 grep -v '^ *+' conftest.er1 >conftest.err
28328 rm -f conftest.er1
28329 cat conftest.err >&5
a848cd7e
SC
28330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331 (exit $ac_status); } &&
9dd0f6c2 28332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28334 (eval $ac_try) 2>&5
28335 ac_status=$?
28336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28337 (exit $ac_status); }; } &&
28338 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28340 (eval $ac_try) 2>&5
28341 ac_status=$?
28342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343 (exit $ac_status); }; }; then
28344 ac_cv_lib_Xext_XShapeQueryExtension=yes
28345else
28346 echo "$as_me: failed program was:" >&5
28347sed 's/^/| /' conftest.$ac_ext >&5
28348
28349ac_cv_lib_Xext_XShapeQueryExtension=no
28350fi
ac1cb8d3
VS
28351rm -f conftest.err conftest.$ac_objext \
28352 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28353LIBS=$ac_check_lib_save_LIBS
28354fi
28355echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28356echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28357if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28358
28359 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28360 wxHAVE_XEXT_LIB=1
28361
28362fi
28363
28364
28365 if test "$wxHAVE_XEXT_LIB" = 1; then
28366 save_CFLAGS="$CFLAGS"
28367 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28368
28369 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28370echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28371 cat >conftest.$ac_ext <<_ACEOF
28372/* confdefs.h. */
28373_ACEOF
28374cat confdefs.h >>conftest.$ac_ext
28375cat >>conftest.$ac_ext <<_ACEOF
28376/* end confdefs.h. */
28377
28378 #include <X11/Xlib.h>
28379 #include <X11/extensions/shape.h>
28380
28381int
28382main ()
28383{
28384
28385 int dummy1, dummy2;
28386 XShapeQueryExtension((Display*)NULL,
28387 (int*)NULL, (int*)NULL);
28388
28389 ;
28390 return 0;
28391}
28392_ACEOF
28393rm -f conftest.$ac_objext
28394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28395 (eval $ac_compile) 2>conftest.er1
a848cd7e 28396 ac_status=$?
ac1cb8d3
VS
28397 grep -v '^ *+' conftest.er1 >conftest.err
28398 rm -f conftest.er1
28399 cat conftest.err >&5
a848cd7e
SC
28400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401 (exit $ac_status); } &&
9dd0f6c2 28402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28404 (eval $ac_try) 2>&5
28405 ac_status=$?
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); }; } &&
28408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28410 (eval $ac_try) 2>&5
28411 ac_status=$?
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); }; }; then
28414
28415 cat >>confdefs.h <<\_ACEOF
28416#define HAVE_XSHAPE 1
28417_ACEOF
28418
28419 echo "$as_me:$LINENO: result: found" >&5
28420echo "${ECHO_T}found" >&6
28421
28422else
28423 echo "$as_me: failed program was:" >&5
28424sed 's/^/| /' conftest.$ac_ext >&5
28425
28426
28427 echo "$as_me:$LINENO: result: not found" >&5
28428echo "${ECHO_T}not found" >&6
28429
28430fi
ac1cb8d3 28431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28432 CFLAGS="$save_CFLAGS"
28433
28434 fi
28435 fi
28436
28437 if test "$wxUSE_MAC" = 1; then
28438 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28439echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28440 if test "$GCC" = yes; then
28441 echo "$as_me:$LINENO: result: gcc" >&5
28442echo "${ECHO_T}gcc" >&6
28443 CPPFLAGS_PASCAL="-fpascal-strings"
28444 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28445 echo "$as_me:$LINENO: result: xlc" >&5
28446echo "${ECHO_T}xlc" >&6
28447 CPPFLAGS_PASCAL="-qmacpstr"
28448 else
28449 echo "$as_me:$LINENO: result: none" >&5
28450echo "${ECHO_T}none" >&6
28451 fi
28452
1e9e8aba
DE
28453 if test "x$wxUSE_UNIX" = "xyes"; then
28454 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28455 else
28456 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28457 fi
a848cd7e 28458
a848cd7e
SC
28459 TOOLKIT=MAC
28460 GUIDIST=MACX_DIST
dd21ced8 28461 WXBASEPORT="_carbon"
a848cd7e
SC
28462 fi
28463
28464 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28465 TOOLKIT=COCOA
28466 GUIDIST=COCOA_DIST
28467 fi
28468
28469 if test "$wxUSE_PM" = 1; then
28470 TOOLKIT=PM
de59c161
RD
28471 GUIDIST=PM_DIST
28472 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28473echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28474if test "${wx_cv_spbcdata+set}" = set; then
28475 echo $ECHO_N "(cached) $ECHO_C" >&6
28476else
28477
28478 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28479/* confdefs.h. */
28480_ACEOF
28481cat confdefs.h >>conftest.$ac_ext
28482cat >>conftest.$ac_ext <<_ACEOF
28483/* end confdefs.h. */
28484
28485 #define INCL_PM
28486 #include <os2.h>
28487
28488int
28489main ()
28490{
28491
28492 SPBCDATA test;
28493
28494 ;
28495 return 0;
28496}
28497_ACEOF
28498rm -f conftest.$ac_objext
28499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28500 (eval $ac_compile) 2>conftest.er1
de59c161 28501 ac_status=$?
ac1cb8d3
VS
28502 grep -v '^ *+' conftest.er1 >conftest.err
28503 rm -f conftest.er1
28504 cat conftest.err >&5
de59c161
RD
28505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506 (exit $ac_status); } &&
9dd0f6c2 28507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28509 (eval $ac_try) 2>&5
28510 ac_status=$?
28511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28512 (exit $ac_status); }; } &&
28513 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28515 (eval $ac_try) 2>&5
28516 ac_status=$?
28517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518 (exit $ac_status); }; }; then
28519 wx_cv_spbcdata=yes
28520else
28521 echo "$as_me: failed program was:" >&5
28522sed 's/^/| /' conftest.$ac_ext >&5
28523
28524wx_cv_spbcdata=no
28525
28526fi
ac1cb8d3 28527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28528
28529
28530fi
28531echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28532echo "${ECHO_T}$wx_cv_spbcdata" >&6
28533
28534 if test $wx_cv_spbcdata = "yes"; then
28535 cat >>confdefs.h <<\_ACEOF
28536#define HAVE_SPBCDATA 1
28537_ACEOF
28538
28539 fi
a848cd7e
SC
28540 fi
28541
28542 if test "$TOOLKIT" = "PM" ; then
28543 TOOLKIT_DIR="os2"
28544 else
28545 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28546 fi
28547
a848cd7e 28548 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28549 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28550 WIDGET_SET=univ
a848cd7e
SC
28551 fi
28552
28553 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28554 DISTDIR="wx\$(TOOLKIT)"
28555else
28556 USE_GUI=0
28557
28558 TOOLKIT_DIR="base"
28559
28560 if test "$USE_WIN32" = 1 ; then
a848cd7e 28561 TOOLKIT="MSW"
a848cd7e
SC
28562 fi
28563
a848cd7e
SC
28564 GUIDIST="BASE_DIST"
28565 DISTDIR="wxBase"
28566fi
28567
28568
28569
28570
28571IODBC_C_SRC=""
28572
28573
28574if test "$TOOLKIT" != "MSW" ; then
28575
28576 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28577
28578 if test "${ac_cv_header_sql_h+set}" = set; then
28579 echo "$as_me:$LINENO: checking for sql.h" >&5
28580echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28581if test "${ac_cv_header_sql_h+set}" = set; then
28582 echo $ECHO_N "(cached) $ECHO_C" >&6
28583fi
28584echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28585echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28586else
28587 # Is the header compilable?
28588echo "$as_me:$LINENO: checking sql.h usability" >&5
28589echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28590cat >conftest.$ac_ext <<_ACEOF
28591/* confdefs.h. */
28592_ACEOF
28593cat confdefs.h >>conftest.$ac_ext
28594cat >>conftest.$ac_ext <<_ACEOF
28595/* end confdefs.h. */
28596$ac_includes_default
28597#include <sql.h>
28598_ACEOF
28599rm -f conftest.$ac_objext
28600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28601 (eval $ac_compile) 2>conftest.er1
a848cd7e 28602 ac_status=$?
ac1cb8d3
VS
28603 grep -v '^ *+' conftest.er1 >conftest.err
28604 rm -f conftest.er1
28605 cat conftest.err >&5
a848cd7e
SC
28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607 (exit $ac_status); } &&
9dd0f6c2 28608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28610 (eval $ac_try) 2>&5
28611 ac_status=$?
28612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613 (exit $ac_status); }; } &&
28614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28616 (eval $ac_try) 2>&5
28617 ac_status=$?
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); }; }; then
28620 ac_header_compiler=yes
28621else
28622 echo "$as_me: failed program was:" >&5
28623sed 's/^/| /' conftest.$ac_ext >&5
28624
28625ac_header_compiler=no
28626fi
ac1cb8d3 28627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28628echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28629echo "${ECHO_T}$ac_header_compiler" >&6
28630
28631# Is the header present?
28632echo "$as_me:$LINENO: checking sql.h presence" >&5
28633echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28634cat >conftest.$ac_ext <<_ACEOF
28635/* confdefs.h. */
28636_ACEOF
28637cat confdefs.h >>conftest.$ac_ext
28638cat >>conftest.$ac_ext <<_ACEOF
28639/* end confdefs.h. */
28640#include <sql.h>
28641_ACEOF
28642if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28644 ac_status=$?
28645 grep -v '^ *+' conftest.er1 >conftest.err
28646 rm -f conftest.er1
28647 cat conftest.err >&5
28648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); } >/dev/null; then
28650 if test -s conftest.err; then
28651 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28653 else
28654 ac_cpp_err=
28655 fi
28656else
28657 ac_cpp_err=yes
28658fi
28659if test -z "$ac_cpp_err"; then
28660 ac_header_preproc=yes
28661else
28662 echo "$as_me: failed program was:" >&5
28663sed 's/^/| /' conftest.$ac_ext >&5
28664
28665 ac_header_preproc=no
28666fi
28667rm -f conftest.err conftest.$ac_ext
28668echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28669echo "${ECHO_T}$ac_header_preproc" >&6
28670
28671# So? What about this header?
ac1cb8d3
VS
28672case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28673 yes:no: )
a848cd7e
SC
28674 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28675echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28676 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28677echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28678 ac_header_preproc=yes
a848cd7e 28679 ;;
ac1cb8d3 28680 no:yes:* )
a848cd7e
SC
28681 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28682echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28683 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28684echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28685 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28686echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28687 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28688echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28689 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28690echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28691 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28692echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28693 (
28694 cat <<\_ASBOX
ac1cb8d3
VS
28695## ----------------------------------------- ##
28696## Report this to wx-dev@lists.wxwidgets.org ##
28697## ----------------------------------------- ##
a848cd7e
SC
28698_ASBOX
28699 ) |
28700 sed "s/^/$as_me: WARNING: /" >&2
28701 ;;
28702esac
28703echo "$as_me:$LINENO: checking for sql.h" >&5
28704echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28705if test "${ac_cv_header_sql_h+set}" = set; then
28706 echo $ECHO_N "(cached) $ECHO_C" >&6
28707else
28708 ac_cv_header_sql_h=$ac_header_preproc
28709fi
28710echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28711echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28712
28713fi
28714if test $ac_cv_header_sql_h = yes; then
28715 found_sql_h=1
28716fi
28717
28718
28719 if test "x$found_sql_h" = "x1" ; then
28720 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28721echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28722if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28723 echo $ECHO_N "(cached) $ECHO_C" >&6
28724else
28725 ac_check_lib_save_LIBS=$LIBS
28726LIBS="-liodbc $LIBS"
28727cat >conftest.$ac_ext <<_ACEOF
28728/* confdefs.h. */
28729_ACEOF
28730cat confdefs.h >>conftest.$ac_ext
28731cat >>conftest.$ac_ext <<_ACEOF
28732/* end confdefs.h. */
28733
28734/* Override any gcc2 internal prototype to avoid an error. */
28735#ifdef __cplusplus
28736extern "C"
28737#endif
28738/* We use char because int might match the return type of a gcc2
28739 builtin and then its argument prototype would still apply. */
28740char SQLAllocEnv ();
28741int
28742main ()
28743{
28744SQLAllocEnv ();
28745 ;
28746 return 0;
28747}
28748_ACEOF
28749rm -f conftest.$ac_objext conftest$ac_exeext
28750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28751 (eval $ac_link) 2>conftest.er1
a848cd7e 28752 ac_status=$?
ac1cb8d3
VS
28753 grep -v '^ *+' conftest.er1 >conftest.err
28754 rm -f conftest.er1
28755 cat conftest.err >&5
a848cd7e
SC
28756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757 (exit $ac_status); } &&
9dd0f6c2 28758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28760 (eval $ac_try) 2>&5
28761 ac_status=$?
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); }; } &&
28764 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28766 (eval $ac_try) 2>&5
28767 ac_status=$?
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); }; }; then
28770 ac_cv_lib_iodbc_SQLAllocEnv=yes
28771else
28772 echo "$as_me: failed program was:" >&5
28773sed 's/^/| /' conftest.$ac_ext >&5
28774
28775ac_cv_lib_iodbc_SQLAllocEnv=no
28776fi
ac1cb8d3
VS
28777rm -f conftest.err conftest.$ac_objext \
28778 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28779LIBS=$ac_check_lib_save_LIBS
28780fi
28781echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28782echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28783if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28784 ODBC_LINK=" -liodbc"
28785else
28786
28787 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28788echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28789if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28790 echo $ECHO_N "(cached) $ECHO_C" >&6
28791else
28792 ac_check_lib_save_LIBS=$LIBS
28793LIBS="-lunixodbc $LIBS"
28794cat >conftest.$ac_ext <<_ACEOF
28795/* confdefs.h. */
28796_ACEOF
28797cat confdefs.h >>conftest.$ac_ext
28798cat >>conftest.$ac_ext <<_ACEOF
28799/* end confdefs.h. */
28800
28801/* Override any gcc2 internal prototype to avoid an error. */
28802#ifdef __cplusplus
28803extern "C"
28804#endif
28805/* We use char because int might match the return type of a gcc2
28806 builtin and then its argument prototype would still apply. */
28807char SQLAllocEnv ();
28808int
28809main ()
28810{
28811SQLAllocEnv ();
28812 ;
28813 return 0;
28814}
28815_ACEOF
28816rm -f conftest.$ac_objext conftest$ac_exeext
28817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28818 (eval $ac_link) 2>conftest.er1
a848cd7e 28819 ac_status=$?
ac1cb8d3
VS
28820 grep -v '^ *+' conftest.er1 >conftest.err
28821 rm -f conftest.er1
28822 cat conftest.err >&5
a848cd7e
SC
28823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28824 (exit $ac_status); } &&
9dd0f6c2 28825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28827 (eval $ac_try) 2>&5
28828 ac_status=$?
28829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830 (exit $ac_status); }; } &&
28831 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28833 (eval $ac_try) 2>&5
28834 ac_status=$?
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836 (exit $ac_status); }; }; then
28837 ac_cv_lib_unixodbc_SQLAllocEnv=yes
28838else
28839 echo "$as_me: failed program was:" >&5
28840sed 's/^/| /' conftest.$ac_ext >&5
28841
28842ac_cv_lib_unixodbc_SQLAllocEnv=no
28843fi
ac1cb8d3
VS
28844rm -f conftest.err conftest.$ac_objext \
28845 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28846LIBS=$ac_check_lib_save_LIBS
28847fi
28848echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
28849echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
28850if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
28851 ODBC_LINK=" -lunixodbc"
28852else
28853
28854 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
28855echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
28856if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
28857 echo $ECHO_N "(cached) $ECHO_C" >&6
28858else
28859 ac_check_lib_save_LIBS=$LIBS
28860LIBS="-lodbc $LIBS"
28861cat >conftest.$ac_ext <<_ACEOF
28862/* confdefs.h. */
28863_ACEOF
28864cat confdefs.h >>conftest.$ac_ext
28865cat >>conftest.$ac_ext <<_ACEOF
28866/* end confdefs.h. */
28867
28868/* Override any gcc2 internal prototype to avoid an error. */
28869#ifdef __cplusplus
28870extern "C"
28871#endif
28872/* We use char because int might match the return type of a gcc2
28873 builtin and then its argument prototype would still apply. */
28874char SQLAllocEnv ();
28875int
28876main ()
28877{
28878SQLAllocEnv ();
28879 ;
28880 return 0;
28881}
28882_ACEOF
28883rm -f conftest.$ac_objext conftest$ac_exeext
28884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28885 (eval $ac_link) 2>conftest.er1
a848cd7e 28886 ac_status=$?
ac1cb8d3
VS
28887 grep -v '^ *+' conftest.er1 >conftest.err
28888 rm -f conftest.er1
28889 cat conftest.err >&5
a848cd7e
SC
28890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891 (exit $ac_status); } &&
9dd0f6c2 28892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28894 (eval $ac_try) 2>&5
28895 ac_status=$?
28896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897 (exit $ac_status); }; } &&
28898 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28900 (eval $ac_try) 2>&5
28901 ac_status=$?
28902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); }; }; then
28904 ac_cv_lib_odbc_SQLAllocEnv=yes
28905else
28906 echo "$as_me: failed program was:" >&5
28907sed 's/^/| /' conftest.$ac_ext >&5
28908
28909ac_cv_lib_odbc_SQLAllocEnv=no
28910fi
ac1cb8d3
VS
28911rm -f conftest.err conftest.$ac_objext \
28912 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28913LIBS=$ac_check_lib_save_LIBS
28914fi
28915echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28916echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28917if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28918 ODBC_LINK=" -lodbc"
28919fi
28920
28921
28922fi
28923
28924
28925fi
28926
28927 fi
28928 if test "x$ODBC_LINK" = "x" ; then
28929 if test "$wxUSE_ODBC" = "sys" ; then
28930 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28931echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28932 { (exit 1); exit 1; }; }
28933 else
28934 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28935echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28936 wxUSE_ODBC=builtin
28937 fi
28938 else
28939 wxUSE_ODBC=sys
28940 fi
28941 fi
a848cd7e 28942
2da0c077
RD
28943 if test "$wxUSE_ODBC" = "builtin" ; then
28944 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28945#define wxUSE_BUILTIN_IODBC 1
28946_ACEOF
28947
a848cd7e
SC
28948 fi
28949fi
28950
2da0c077
RD
28951if test "$wxUSE_ODBC" != "no" ; then
28952 cat >>confdefs.h <<\_ACEOF
28953#define wxUSE_ODBC 1
28954_ACEOF
28955
28956 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28957
28958 WXODBCFLAG="-D_IODBC_"
28959fi
a848cd7e 28960
01cb68df 28961
a848cd7e 28962if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 28963 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
28964 echo "$as_me:$LINENO: checking for Xinerama" >&5
28965echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28966
28967ac_find_libraries=
28968for ac_dir in $SEARCH_LIB /usr/lib;
28969 do
28970 for ac_extension in a so sl dylib; do
28971 if test -f "$ac_dir/libXinerama.$ac_extension"; then
28972 ac_find_libraries=$ac_dir
28973 break 2
28974 fi
28975 done
28976 done
28977
28978 if test "$ac_find_libraries" != "" ; then
28979
28980 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28981 result=$?
28982 if test $result = 0; then
28983 ac_path_to_link=""
28984 else
28985 ac_path_to_link=" -L$ac_find_libraries"
28986 fi
28987
28988 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28989 LDFLAGS="$LDFLAGS $ac_path_to_link"
28990 fi
28991 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28992 echo "$as_me:$LINENO: result: yes" >&5
28993echo "${ECHO_T}yes" >&6
28994
28995 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28996echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
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/libXxf86vm.$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 echo "$as_me:$LINENO: result: yes" >&5
29011echo "${ECHO_T}yes" >&6
29012
29013for ac_header in X11/extensions/xf86vmode.h
29014do
29015as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29016echo "$as_me:$LINENO: checking for $ac_header" >&5
29017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29018if eval "test \"\${$as_ac_Header+set}\" = set"; then
29019 echo $ECHO_N "(cached) $ECHO_C" >&6
29020else
29021 cat >conftest.$ac_ext <<_ACEOF
29022/* confdefs.h. */
29023_ACEOF
29024cat confdefs.h >>conftest.$ac_ext
29025cat >>conftest.$ac_ext <<_ACEOF
29026/* end confdefs.h. */
29027
29028 #if HAVE_X11_XLIB_H
29029 #include <X11/Xlib.h>
29030 #endif
29031
29032
29033#include <$ac_header>
29034_ACEOF
29035rm -f conftest.$ac_objext
29036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29037 (eval $ac_compile) 2>conftest.er1
a848cd7e 29038 ac_status=$?
ac1cb8d3
VS
29039 grep -v '^ *+' conftest.er1 >conftest.err
29040 rm -f conftest.er1
29041 cat conftest.err >&5
a848cd7e
SC
29042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043 (exit $ac_status); } &&
9dd0f6c2 29044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29046 (eval $ac_try) 2>&5
29047 ac_status=$?
29048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049 (exit $ac_status); }; } &&
29050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29052 (eval $ac_try) 2>&5
29053 ac_status=$?
29054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055 (exit $ac_status); }; }; then
29056 eval "$as_ac_Header=yes"
29057else
29058 echo "$as_me: failed program was:" >&5
29059sed 's/^/| /' conftest.$ac_ext >&5
29060
29061eval "$as_ac_Header=no"
29062fi
ac1cb8d3 29063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29064fi
29065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29066echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29067if test `eval echo '${'$as_ac_Header'}'` = yes; then
29068 cat >>confdefs.h <<_ACEOF
29069#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29070_ACEOF
29071
29072 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
29073
29074fi
29075
29076done
29077
29078 else
29079 echo "$as_me:$LINENO: result: no" >&5
29080echo "${ECHO_T}no" >&6
29081 fi
29082
29083 else
29084 echo "$as_me:$LINENO: result: no" >&5
29085echo "${ECHO_T}no" >&6
dcc1b6ad
VS
29086 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
29087echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
29088 wxUSE_DISPLAY="no"
29089 fi
01cb68df
RG
29090 elif test "$wxUSE_MSW" = 1; then
29091
29092
29093for ac_header in multimon.h ddraw.h
29094do
29095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 29096echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
29097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29098if eval "test \"\${$as_ac_Header+set}\" = set"; then
29099 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 29100else
5294a27e 29101 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
29102/* confdefs.h. */
29103_ACEOF
29104cat confdefs.h >>conftest.$ac_ext
29105cat >>conftest.$ac_ext <<_ACEOF
29106/* end confdefs.h. */
5294a27e
VZ
29107#include <windows.h>
29108
01cb68df
RG
29109#include <$ac_header>
29110_ACEOF
29111rm -f conftest.$ac_objext
29112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29113 (eval $ac_compile) 2>conftest.er1
01cb68df 29114 ac_status=$?
ac1cb8d3
VS
29115 grep -v '^ *+' conftest.er1 >conftest.err
29116 rm -f conftest.er1
29117 cat conftest.err >&5
01cb68df
RG
29118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); } &&
9dd0f6c2 29120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29122 (eval $ac_try) 2>&5
29123 ac_status=$?
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); }; } &&
29126 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
29127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29128 (eval $ac_try) 2>&5
29129 ac_status=$?
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); }; }; then
5294a27e 29132 eval "$as_ac_Header=yes"
01cb68df
RG
29133else
29134 echo "$as_me: failed program was:" >&5
29135sed 's/^/| /' conftest.$ac_ext >&5
29136
5294a27e 29137eval "$as_ac_Header=no"
01cb68df 29138fi
ac1cb8d3 29139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
29140fi
29141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
29143if test `eval echo '${'$as_ac_Header'}'` = yes; then
29144 cat >>confdefs.h <<_ACEOF
29145#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29146_ACEOF
29147
29148else
29149
5294a27e
VZ
29150 wxUSE_DISPLAY="no"
29151 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 29152echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
29153
29154fi
29155
29156done
29157
a848cd7e
SC
29158 fi
29159fi
29160
29161
29162USE_OPENGL=0
29163if test "$wxUSE_OPENGL" = "yes"; then
29164 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
29165 OPENGL_LIBS="-framework OpenGL -framework AGL"
29166 elif test "$wxUSE_MSW" = 1; then
29167 OPENGL_LIBS="-lopengl32 -lglu32"
29168 else
29169
29170
29171ac_find_includes=
29172for ac_dir in $SEARCH_INCLUDE /usr/include;
29173 do
29174 if test -f "$ac_dir/GL/gl.h"; then
29175 ac_find_includes=$ac_dir
29176 break
29177 fi
29178 done
29179
29180 if test "$ac_find_includes" != "" ; then
29181 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29182echo "${ECHO_T}found in $ac_find_includes" >&6
29183
29184 if test "x$ac_find_includes" = "x/usr/include"; then
29185 ac_path_to_include=""
29186 else
29187 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29188 result=$?
29189 if test $result = 0; then
29190 ac_path_to_include=""
29191 else
29192 ac_path_to_include=" -I$ac_find_includes"
29193 fi
29194 fi
29195
29196 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29197 fi
29198
29199 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29200 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29201echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29202if test "${ac_cv_header_GL_gl_h+set}" = set; then
29203 echo $ECHO_N "(cached) $ECHO_C" >&6
29204fi
29205echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29206echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29207else
29208 # Is the header compilable?
29209echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29210echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29211cat >conftest.$ac_ext <<_ACEOF
29212/* confdefs.h. */
29213_ACEOF
29214cat confdefs.h >>conftest.$ac_ext
29215cat >>conftest.$ac_ext <<_ACEOF
29216/* end confdefs.h. */
29217$ac_includes_default
29218#include <GL/gl.h>
29219_ACEOF
29220rm -f conftest.$ac_objext
29221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29222 (eval $ac_compile) 2>conftest.er1
a848cd7e 29223 ac_status=$?
ac1cb8d3
VS
29224 grep -v '^ *+' conftest.er1 >conftest.err
29225 rm -f conftest.er1
29226 cat conftest.err >&5
a848cd7e
SC
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); } &&
9dd0f6c2 29229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29231 (eval $ac_try) 2>&5
29232 ac_status=$?
29233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); }; } &&
29235 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29237 (eval $ac_try) 2>&5
29238 ac_status=$?
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); }; }; then
29241 ac_header_compiler=yes
29242else
29243 echo "$as_me: failed program was:" >&5
29244sed 's/^/| /' conftest.$ac_ext >&5
29245
29246ac_header_compiler=no
29247fi
ac1cb8d3 29248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29249echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29250echo "${ECHO_T}$ac_header_compiler" >&6
29251
29252# Is the header present?
29253echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29254echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29255cat >conftest.$ac_ext <<_ACEOF
29256/* confdefs.h. */
29257_ACEOF
29258cat confdefs.h >>conftest.$ac_ext
29259cat >>conftest.$ac_ext <<_ACEOF
29260/* end confdefs.h. */
29261#include <GL/gl.h>
29262_ACEOF
29263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29265 ac_status=$?
29266 grep -v '^ *+' conftest.er1 >conftest.err
29267 rm -f conftest.er1
29268 cat conftest.err >&5
29269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270 (exit $ac_status); } >/dev/null; then
29271 if test -s conftest.err; then
29272 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29274 else
29275 ac_cpp_err=
29276 fi
29277else
29278 ac_cpp_err=yes
29279fi
29280if test -z "$ac_cpp_err"; then
29281 ac_header_preproc=yes
29282else
29283 echo "$as_me: failed program was:" >&5
29284sed 's/^/| /' conftest.$ac_ext >&5
29285
29286 ac_header_preproc=no
29287fi
29288rm -f conftest.err conftest.$ac_ext
29289echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29290echo "${ECHO_T}$ac_header_preproc" >&6
29291
29292# So? What about this header?
ac1cb8d3
VS
29293case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29294 yes:no: )
a848cd7e
SC
29295 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29296echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29297 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29298echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29299 ac_header_preproc=yes
a848cd7e 29300 ;;
ac1cb8d3 29301 no:yes:* )
a848cd7e
SC
29302 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29303echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29304 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29305echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29306 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29307echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29308 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29309echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29310 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29311echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29312 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29313echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29314 (
29315 cat <<\_ASBOX
ac1cb8d3
VS
29316## ----------------------------------------- ##
29317## Report this to wx-dev@lists.wxwidgets.org ##
29318## ----------------------------------------- ##
a848cd7e
SC
29319_ASBOX
29320 ) |
29321 sed "s/^/$as_me: WARNING: /" >&2
29322 ;;
29323esac
29324echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29325echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29326if test "${ac_cv_header_GL_gl_h+set}" = set; then
29327 echo $ECHO_N "(cached) $ECHO_C" >&6
29328else
29329 ac_cv_header_GL_gl_h=$ac_header_preproc
29330fi
29331echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29332echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29333
29334fi
29335if test $ac_cv_header_GL_gl_h = yes; then
29336
29337 found_gl=0
29338
29339 echo "$as_me:$LINENO: checking for -lGL" >&5
29340echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29341
29342ac_find_libraries=
29343for ac_dir in $SEARCH_LIB /usr/lib;
29344 do
29345 for ac_extension in a so sl dylib; do
29346 if test -f "$ac_dir/libGL.$ac_extension"; then
29347 ac_find_libraries=$ac_dir
29348 break 2
29349 fi
29350 done
29351 done
29352
29353 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29354 echo "$as_me:$LINENO: result: yes" >&5
29355echo "${ECHO_T}yes" >&6
29356
a848cd7e
SC
29357
29358 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29359 result=$?
29360 if test $result = 0; then
29361 ac_path_to_link=""
29362 else
29363 ac_path_to_link=" -L$ac_find_libraries"
29364 fi
29365
29366 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29367 LDFLAGS_GL="$ac_path_to_link"
29368 fi
29369
69120ee4
VZ
29370 echo "$as_me:$LINENO: checking for -lGLU" >&5
29371echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29372
29373ac_find_libraries=
29374for ac_dir in $SEARCH_LIB /usr/lib;
29375 do
29376 for ac_extension in a so sl dylib; do
29377 if test -f "$ac_dir/libGLU.$ac_extension"; then
29378 ac_find_libraries=$ac_dir
29379 break 2
29380 fi
29381 done
29382 done
29383
29384 if test "$ac_find_libraries" != "" ; then
29385
29386 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29387 result=$?
29388 if test $result = 0; then
29389 ac_path_to_link=""
29390 else
29391 ac_path_to_link=" -L$ac_find_libraries"
29392 fi
29393
29394 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29395 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29396 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29397 fi
29398
29399 found_gl=1
29400 OPENGL_LIBS="-lGL -lGLU"
29401 echo "$as_me:$LINENO: result: yes" >&5
29402echo "${ECHO_T}yes" >&6
69120ee4
VZ
29403 else
29404 echo "$as_me:$LINENO: result: no" >&5
29405echo "${ECHO_T}no" >&6
a848cd7e 29406 fi
69120ee4
VZ
29407 else
29408 echo "$as_me:$LINENO: result: no" >&5
29409echo "${ECHO_T}no" >&6
a848cd7e
SC
29410 fi
29411
29412 if test "$found_gl" != 1; then
a848cd7e
SC
29413 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29414echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29415
29416ac_find_libraries=
29417for ac_dir in $SEARCH_LIB /usr/lib;
29418 do
29419 for ac_extension in a so sl dylib; do
29420 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29421 ac_find_libraries=$ac_dir
29422 break 2
29423 fi
29424 done
29425 done
29426
29427 if test "$ac_find_libraries" != "" ; then
29428
29429 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29430 result=$?
29431 if test $result = 0; then
29432 ac_path_to_link=""
29433 else
29434 ac_path_to_link=" -L$ac_find_libraries"
29435 fi
29436
29437 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29438 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29439 echo "$as_me:$LINENO: result: yes" >&5
29440echo "${ECHO_T}yes" >&6
29441 else
29442 echo "$as_me:$LINENO: result: no" >&5
29443echo "${ECHO_T}no" >&6
29444 fi
29445 fi
29446
29447fi
29448
29449
29450
29451 if test "x$OPENGL_LIBS" = "x"; then
29452 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29453echo "$as_me: error: OpenGL libraries not available" >&2;}
29454 { (exit 1); exit 1; }; }
29455 fi
29456 fi
29457
29458 if test "$wxUSE_OPENGL" = "yes"; then
29459 USE_OPENGL=1
29460 cat >>confdefs.h <<\_ACEOF
29461#define wxUSE_OPENGL 1
29462_ACEOF
29463
29464 cat >>confdefs.h <<\_ACEOF
29465#define wxUSE_GLCANVAS 1
29466_ACEOF
29467
29468 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29469 fi
29470fi
29471
a848cd7e
SC
29472
29473if test -n "$TOOLKIT" ; then
29474 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29475fi
29476
a848cd7e
SC
29477
29478
29479if test "$wxUSE_SHARED" = "yes"; then
29480 case "${host}" in
29481 *-pc-msdosdjgpp )
29482 wxUSE_SHARED=no
29483 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29484echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29485 ;;
29486 esac
29487fi
29488
a848cd7e 29489if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29490
29491
29492 found_versioning=no
29493
29494
29495 if test $found_versioning = no ; then
29496 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29497echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29498if test "${wx_cv_version_script+set}" = set; then
29499 echo $ECHO_N "(cached) $ECHO_C" >&6
29500else
29501
29502 echo "VER_1 { *; };" >conftest.sym
29503 echo "int main() { return 0; }" >conftest.cpp
29504
29505 if { ac_try='
29506 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29507 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29509 (eval $ac_try) 2>&5
29510 ac_status=$?
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); }; } ; then
29513 if test -s conftest.stderr ; then
29514 wx_cv_version_script=no
29515 else
29516 wx_cv_version_script=yes
29517 fi
29518 else
29519 wx_cv_version_script=no
29520 fi
e5d4b470
MW
29521
29522 if test $wx_cv_version_script = yes
29523 then
29524 echo "struct B { virtual ~B() { } }; \
29525 struct D : public B { }; \
29526 void F() { D d; }" > conftest.cpp
29527
29528 if { ac_try='
29529 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29530 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
29531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29532 (eval $ac_try) 2>&5
29533 ac_status=$?
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); }; } &&
29536 { ac_try='
29537 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29538 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
29539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29540 (eval $ac_try) 2>&5
29541 ac_status=$?
29542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543 (exit $ac_status); }; }
29544 then
29545 if { ac_try='
29546 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29547 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
29548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29549 (eval $ac_try) 2>&5
29550 ac_status=$?
29551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552 (exit $ac_status); }; }
29553 then
29554 wx_cv_version_script=yes
29555 else
29556 wx_cv_version_script=no
29557 fi
29558 fi
29559 fi
29560
a848cd7e 29561 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 29562 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
29563
29564fi
29565echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29566echo "${ECHO_T}$wx_cv_version_script" >&6
29567 if test $wx_cv_version_script = yes ; then
29568 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29569 fi
29570 fi
29571
29572
29573 case "${host}" in
29574 *-*-linux* | *-*-gnu* )
29575 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29576 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29577 ;;
29578
29579 *-*-solaris2* )
29580 if test "$GCC" = yes ; then
29581 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29582
29583 saveLdflags="$LDFLAGS"
29584 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29585 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29586echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29587 cat >conftest.$ac_ext <<_ACEOF
29588/* confdefs.h. */
29589_ACEOF
29590cat confdefs.h >>conftest.$ac_ext
29591cat >>conftest.$ac_ext <<_ACEOF
29592/* end confdefs.h. */
29593
29594int
29595main ()
29596{
29597
29598 ;
29599 return 0;
29600}
29601_ACEOF
29602rm -f conftest.$ac_objext conftest$ac_exeext
29603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29604 (eval $ac_link) 2>conftest.er1
a848cd7e 29605 ac_status=$?
ac1cb8d3
VS
29606 grep -v '^ *+' conftest.er1 >conftest.err
29607 rm -f conftest.er1
29608 cat conftest.err >&5
a848cd7e
SC
29609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610 (exit $ac_status); } &&
9dd0f6c2 29611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29613 (eval $ac_try) 2>&5
29614 ac_status=$?
29615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616 (exit $ac_status); }; } &&
29617 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29619 (eval $ac_try) 2>&5
29620 ac_status=$?
29621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29622 (exit $ac_status); }; }; then
29623
29624 echo "$as_me:$LINENO: result: yes" >&5
29625echo "${ECHO_T}yes" >&6
29626 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29627 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29628
29629else
29630 echo "$as_me: failed program was:" >&5
29631sed 's/^/| /' conftest.$ac_ext >&5
29632
29633
29634 echo "$as_me:$LINENO: result: no" >&5
29635echo "${ECHO_T}no" >&6
29636 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29637echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29638 LDFLAGS="$saveLdflags -Wl,-R,/"
29639 cat >conftest.$ac_ext <<_ACEOF
29640/* confdefs.h. */
29641_ACEOF
29642cat confdefs.h >>conftest.$ac_ext
29643cat >>conftest.$ac_ext <<_ACEOF
29644/* end confdefs.h. */
29645
29646int
29647main ()
29648{
29649
29650 ;
29651 return 0;
29652}
29653_ACEOF
29654rm -f conftest.$ac_objext conftest$ac_exeext
29655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29656 (eval $ac_link) 2>conftest.er1
a848cd7e 29657 ac_status=$?
ac1cb8d3
VS
29658 grep -v '^ *+' conftest.er1 >conftest.err
29659 rm -f conftest.er1
29660 cat conftest.err >&5
a848cd7e
SC
29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); } &&
9dd0f6c2 29663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29665 (eval $ac_try) 2>&5
29666 ac_status=$?
29667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668 (exit $ac_status); }; } &&
29669 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29671 (eval $ac_try) 2>&5
29672 ac_status=$?
29673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674 (exit $ac_status); }; }; then
29675
ffa0583f 29676 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29677echo "${ECHO_T}yes" >&6
ffa0583f
RL
29678 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29679 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29680
a848cd7e
SC
29681else
29682 echo "$as_me: failed program was:" >&5
29683sed 's/^/| /' conftest.$ac_ext >&5
29684
29685
29686 echo "$as_me:$LINENO: result: no" >&5
29687echo "${ECHO_T}no" >&6
29688
29689fi
ac1cb8d3
VS
29690rm -f conftest.err conftest.$ac_objext \
29691 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29692
29693fi
ac1cb8d3
VS
29694rm -f conftest.err conftest.$ac_objext \
29695 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29696 LDFLAGS="$saveLdflags"
29697 else
a848cd7e 29698 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29699 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29700 fi
29701 ;;
29702
29703 powerpc-*-darwin* )
29704 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29705 cat <<EOF >change-install-names
29706#!/bin/sh
29707libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29708inst_cmd="install_name_tool "
29709for i in \${libnames} ; do
29710 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29711done
29712\${inst_cmd} \${3}
29713EOF
29714 chmod +x change-install-names
29715 ;;
29716
29717 *-*-cygwin* | *-*-mingw32* )
29718 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29719 ;;
29720
81f90336
MW
29721 *-*-hpux* )
29722 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29723 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29724 ;;
29725
a848cd7e 29726 esac
ceec2216 29727
ffa0583f
RL
29728 if test $wxUSE_RPATH = "no"; then
29729 SAMPLES_RPATH_FLAG=''
29730 SAMPLES_RPATH_POSTLINK=''
29731 WXCONFIG_RPATH=''
29732 fi
29733
29734 SHARED=1
29735
29736else
29737
ceec2216
RL
29738 config_linkage_component="-static"
29739 SHARED=0
ffa0583f 29740
ceec2216 29741fi
a848cd7e 29742
a848cd7e 29743
ceec2216
RL
29744UNICODE=0
29745lib_unicode_suffix=
29746WX_CHARTYPE="ansi"
29747if test "$wxUSE_UNICODE" = "yes"; then
29748 lib_unicode_suffix=u
29749 WX_CHARTYPE="unicode"
29750 UNICODE=1
a848cd7e
SC
29751fi
29752
ceec2216
RL
29753lib_debug_suffix=
29754WX_DEBUGTYPE="release"
29755DEBUG_FLAG=0
29756if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29757 lib_debug_suffix=d
29758 WX_DEBUGTYPE="debug"
29759 DEBUG_FLAG=1
29760fi
a848cd7e 29761
ceec2216
RL
29762WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29763WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 29764
ceec2216
RL
29765DEBUG_INFO=0
29766if test "$wxUSE_DEBUG_INFO" = "yes"; then
29767 DEBUG_INFO=1
29768fi
a848cd7e 29769
ceec2216 29770WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 29771
ceec2216 29772TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 29773
ceec2216 29774TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 29775
ceec2216
RL
29776if test "$cross_compiling" = "yes"; then
29777 HOST_SUFFIX="-$host_alias"
29778 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29779 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
29780fi
29781
dd21ced8 29782WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
29783WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29784
29785
29786
1d1af5ea
DE
29787if test "$wxUSE_COCOA" = 1; then
29788
29789
29790 ac_ext=c
29791ac_cpp='$CPP $CPPFLAGS'
29792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29794ac_compiler_gnu=$ac_cv_c_compiler_gnu
29795
29796ac_ext=m
29797
29798 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
29799echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
29800 cat >conftest.$ac_ext <<_ACEOF
29801/* confdefs.h. */
29802_ACEOF
29803cat confdefs.h >>conftest.$ac_ext
29804cat >>conftest.$ac_ext <<_ACEOF
29805/* end confdefs.h. */
29806#include <AppKit/NSEvent.h>
29807#include <CoreFoundation/CoreFoundation.h>
29808
29809int
29810main ()
29811{
29812
29813 ;
29814 return 0;
29815}
29816_ACEOF
29817rm -f conftest.$ac_objext
29818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29819 (eval $ac_compile) 2>conftest.er1
29820 ac_status=$?
29821 grep -v '^ *+' conftest.er1 >conftest.err
29822 rm -f conftest.er1
29823 cat conftest.err >&5
29824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825 (exit $ac_status); } &&
9dd0f6c2 29826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
29827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29828 (eval $ac_try) 2>&5
29829 ac_status=$?
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); }; } &&
29832 { ac_try='test -s conftest.$ac_objext'
29833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29834 (eval $ac_try) 2>&5
29835 ac_status=$?
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); }; }; then
29838 echo "$as_me:$LINENO: result: no" >&5
29839echo "${ECHO_T}no" >&6
29840else
29841 echo "$as_me: failed program was:" >&5
29842sed 's/^/| /' conftest.$ac_ext >&5
29843
29844echo "$as_me:$LINENO: result: yes" >&5
29845echo "${ECHO_T}yes" >&6
29846 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
29847echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
29848 cat >conftest.$ac_ext <<_ACEOF
29849/* confdefs.h. */
29850_ACEOF
29851cat confdefs.h >>conftest.$ac_ext
29852cat >>conftest.$ac_ext <<_ACEOF
29853/* end confdefs.h. */
29854#define __Point__ 1
29855#include <AppKit/NSEvent.h>
29856#include <CoreFoundation/CoreFoundation.h>
29857
29858int
29859main ()
29860{
29861
29862 ;
29863 return 0;
29864}
29865_ACEOF
29866rm -f conftest.$ac_objext
29867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29868 (eval $ac_compile) 2>conftest.er1
29869 ac_status=$?
29870 grep -v '^ *+' conftest.er1 >conftest.err
29871 rm -f conftest.er1
29872 cat conftest.err >&5
29873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874 (exit $ac_status); } &&
9dd0f6c2 29875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
29876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29877 (eval $ac_try) 2>&5
29878 ac_status=$?
29879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880 (exit $ac_status); }; } &&
29881 { ac_try='test -s conftest.$ac_objext'
29882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29883 (eval $ac_try) 2>&5
29884 ac_status=$?
29885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886 (exit $ac_status); }; }; then
29887 echo "$as_me:$LINENO: result: yes" >&5
29888echo "${ECHO_T}yes" >&6
29889 cat >>confdefs.h <<\_ACEOF
29890#define __Point__ 1
29891_ACEOF
29892
29893
29894else
29895 echo "$as_me: failed program was:" >&5
29896sed 's/^/| /' conftest.$ac_ext >&5
29897
29898{ { echo "$as_me:$LINENO: error: no
29899See \`config.log' for more details." >&5
29900echo "$as_me: error: no
29901See \`config.log' for more details." >&2;}
29902 { (exit 1); exit 1; }; }
29903
29904fi
29905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29906
29907fi
29908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29909 ac_ext=c
29910ac_cpp='$CPP $CPPFLAGS'
29911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29913ac_compiler_gnu=$ac_cv_c_compiler_gnu
29914
29915fi
29916
a848cd7e 29917if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
29918 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
29919 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 29920
a848cd7e 29921 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
29922
29923 # Extract the first word of "Rez", so it can be a program name with args.
29924set dummy Rez; ac_word=$2
29925echo "$as_me:$LINENO: checking for $ac_word" >&5
29926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29927if test "${ac_cv_prog_RESCOMP+set}" = set; then
29928 echo $ECHO_N "(cached) $ECHO_C" >&6
29929else
29930 if test -n "$RESCOMP"; then
29931 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
29932else
29933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29934for as_dir in $PATH
29935do
29936 IFS=$as_save_IFS
29937 test -z "$as_dir" && as_dir=.
29938 for ac_exec_ext in '' $ac_executable_extensions; do
29939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29940 ac_cv_prog_RESCOMP="Rez"
29941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29942 break 2
29943 fi
29944done
29945done
29946
29947 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29948fi
29949fi
29950RESCOMP=$ac_cv_prog_RESCOMP
29951if test -n "$RESCOMP"; then
29952 echo "$as_me:$LINENO: result: $RESCOMP" >&5
29953echo "${ECHO_T}$RESCOMP" >&6
29954else
29955 echo "$as_me:$LINENO: result: no" >&5
29956echo "${ECHO_T}no" >&6
29957fi
29958
29959 # Extract the first word of "DeRez", so it can be a program name with args.
29960set dummy DeRez; ac_word=$2
29961echo "$as_me:$LINENO: checking for $ac_word" >&5
29962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29963if test "${ac_cv_prog_DEREZ+set}" = set; then
29964 echo $ECHO_N "(cached) $ECHO_C" >&6
29965else
29966 if test -n "$DEREZ"; then
29967 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29968else
29969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29970for as_dir in $PATH
29971do
29972 IFS=$as_save_IFS
29973 test -z "$as_dir" && as_dir=.
29974 for ac_exec_ext in '' $ac_executable_extensions; do
29975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29976 ac_cv_prog_DEREZ="DeRez"
29977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29978 break 2
29979 fi
29980done
29981done
29982
29983 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29984fi
29985fi
29986DEREZ=$ac_cv_prog_DEREZ
29987if test -n "$DEREZ"; then
29988 echo "$as_me:$LINENO: result: $DEREZ" >&5
29989echo "${ECHO_T}$DEREZ" >&6
29990else
29991 echo "$as_me:$LINENO: result: no" >&5
29992echo "${ECHO_T}no" >&6
29993fi
29994
29995 # Extract the first word of "SetFile", so it can be a program name with args.
29996set dummy SetFile; ac_word=$2
29997echo "$as_me:$LINENO: checking for $ac_word" >&5
29998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29999if test "${ac_cv_prog_SETFILE+set}" = set; then
30000 echo $ECHO_N "(cached) $ECHO_C" >&6
30001else
30002 if test -n "$SETFILE"; then
30003 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
30004else
30005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30006for as_dir in $PATH
30007do
30008 IFS=$as_save_IFS
30009 test -z "$as_dir" && as_dir=.
30010 for ac_exec_ext in '' $ac_executable_extensions; do
30011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30012 ac_cv_prog_SETFILE="SetFile"
30013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30014 break 2
30015 fi
30016done
30017done
30018
30019 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
30020fi
30021fi
30022SETFILE=$ac_cv_prog_SETFILE
30023if test -n "$SETFILE"; then
30024 echo "$as_me:$LINENO: result: $SETFILE" >&5
30025echo "${ECHO_T}$SETFILE" >&6
30026else
30027 echo "$as_me:$LINENO: result: no" >&5
30028echo "${ECHO_T}no" >&6
30029fi
30030
30031
30032 MACSETFILE="\$(SETFILE)"
30033
30034 if test "$wxUSE_MAC" = 1; then
1a79f136 30035 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 30036
1a79f136 30037 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
30038 else
30039 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
30040 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
30041 fi
30042else
ffa0583f
RL
30043 MACSETFILE="@true"
30044 MACRESWXCONFIG="@true"
a848cd7e
SC
30045
30046 if test "$wxUSE_PM" = 1; then
30047 MACRESCOMP="emxbind -ep"
30048 else
ffa0583f 30049 MACRESCOMP="@true"
a848cd7e
SC
30050 fi
30051fi
30052
30053
30054
30055echo "$as_me:$LINENO: checking for mode_t" >&5
30056echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
30057if test "${ac_cv_type_mode_t+set}" = set; then
30058 echo $ECHO_N "(cached) $ECHO_C" >&6
30059else
30060 cat >conftest.$ac_ext <<_ACEOF
30061/* confdefs.h. */
30062_ACEOF
30063cat confdefs.h >>conftest.$ac_ext
30064cat >>conftest.$ac_ext <<_ACEOF
30065/* end confdefs.h. */
30066$ac_includes_default
30067int
30068main ()
30069{
30070if ((mode_t *) 0)
30071 return 0;
30072if (sizeof (mode_t))
30073 return 0;
30074 ;
30075 return 0;
30076}
30077_ACEOF
30078rm -f conftest.$ac_objext
30079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30080 (eval $ac_compile) 2>conftest.er1
a848cd7e 30081 ac_status=$?
ac1cb8d3
VS
30082 grep -v '^ *+' conftest.er1 >conftest.err
30083 rm -f conftest.er1
30084 cat conftest.err >&5
a848cd7e
SC
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); } &&
9dd0f6c2 30087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30089 (eval $ac_try) 2>&5
30090 ac_status=$?
30091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092 (exit $ac_status); }; } &&
30093 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30095 (eval $ac_try) 2>&5
30096 ac_status=$?
30097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098 (exit $ac_status); }; }; then
30099 ac_cv_type_mode_t=yes
30100else
30101 echo "$as_me: failed program was:" >&5
30102sed 's/^/| /' conftest.$ac_ext >&5
30103
30104ac_cv_type_mode_t=no
30105fi
ac1cb8d3 30106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30107fi
30108echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
30109echo "${ECHO_T}$ac_cv_type_mode_t" >&6
30110if test $ac_cv_type_mode_t = yes; then
30111 :
30112else
30113
30114cat >>confdefs.h <<_ACEOF
30115#define mode_t int
30116_ACEOF
30117
30118fi
30119
30120echo "$as_me:$LINENO: checking for off_t" >&5
30121echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30122if test "${ac_cv_type_off_t+set}" = set; then
30123 echo $ECHO_N "(cached) $ECHO_C" >&6
30124else
30125 cat >conftest.$ac_ext <<_ACEOF
30126/* confdefs.h. */
30127_ACEOF
30128cat confdefs.h >>conftest.$ac_ext
30129cat >>conftest.$ac_ext <<_ACEOF
30130/* end confdefs.h. */
30131$ac_includes_default
30132int
30133main ()
30134{
30135if ((off_t *) 0)
30136 return 0;
30137if (sizeof (off_t))
30138 return 0;
30139 ;
30140 return 0;
30141}
30142_ACEOF
30143rm -f conftest.$ac_objext
30144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30145 (eval $ac_compile) 2>conftest.er1
a848cd7e 30146 ac_status=$?
ac1cb8d3
VS
30147 grep -v '^ *+' conftest.er1 >conftest.err
30148 rm -f conftest.er1
30149 cat conftest.err >&5
a848cd7e
SC
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); } &&
9dd0f6c2 30152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30154 (eval $ac_try) 2>&5
30155 ac_status=$?
30156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157 (exit $ac_status); }; } &&
30158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30160 (eval $ac_try) 2>&5
30161 ac_status=$?
30162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30163 (exit $ac_status); }; }; then
30164 ac_cv_type_off_t=yes
30165else
30166 echo "$as_me: failed program was:" >&5
30167sed 's/^/| /' conftest.$ac_ext >&5
30168
30169ac_cv_type_off_t=no
30170fi
ac1cb8d3 30171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30172fi
30173echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30174echo "${ECHO_T}$ac_cv_type_off_t" >&6
30175if test $ac_cv_type_off_t = yes; then
30176 :
30177else
30178
30179cat >>confdefs.h <<_ACEOF
30180#define off_t long
30181_ACEOF
30182
30183fi
30184
30185echo "$as_me:$LINENO: checking for pid_t" >&5
30186echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30187if test "${ac_cv_type_pid_t+set}" = set; then
30188 echo $ECHO_N "(cached) $ECHO_C" >&6
30189else
30190 cat >conftest.$ac_ext <<_ACEOF
30191/* confdefs.h. */
30192_ACEOF
30193cat confdefs.h >>conftest.$ac_ext
30194cat >>conftest.$ac_ext <<_ACEOF
30195/* end confdefs.h. */
30196$ac_includes_default
30197int
30198main ()
30199{
30200if ((pid_t *) 0)
30201 return 0;
30202if (sizeof (pid_t))
30203 return 0;
30204 ;
30205 return 0;
30206}
30207_ACEOF
30208rm -f conftest.$ac_objext
30209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30210 (eval $ac_compile) 2>conftest.er1
a848cd7e 30211 ac_status=$?
ac1cb8d3
VS
30212 grep -v '^ *+' conftest.er1 >conftest.err
30213 rm -f conftest.er1
30214 cat conftest.err >&5
a848cd7e
SC
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); } &&
9dd0f6c2 30217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30219 (eval $ac_try) 2>&5
30220 ac_status=$?
30221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); }; } &&
30223 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30225 (eval $ac_try) 2>&5
30226 ac_status=$?
30227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228 (exit $ac_status); }; }; then
30229 ac_cv_type_pid_t=yes
30230else
30231 echo "$as_me: failed program was:" >&5
30232sed 's/^/| /' conftest.$ac_ext >&5
30233
30234ac_cv_type_pid_t=no
30235fi
ac1cb8d3 30236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30237fi
30238echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30239echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30240if test $ac_cv_type_pid_t = yes; then
30241 :
30242else
30243
30244cat >>confdefs.h <<_ACEOF
30245#define pid_t int
30246_ACEOF
30247
30248fi
30249
30250echo "$as_me:$LINENO: checking for size_t" >&5
30251echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30252if test "${ac_cv_type_size_t+set}" = set; then
30253 echo $ECHO_N "(cached) $ECHO_C" >&6
30254else
30255 cat >conftest.$ac_ext <<_ACEOF
30256/* confdefs.h. */
30257_ACEOF
30258cat confdefs.h >>conftest.$ac_ext
30259cat >>conftest.$ac_ext <<_ACEOF
30260/* end confdefs.h. */
30261$ac_includes_default
30262int
30263main ()
30264{
30265if ((size_t *) 0)
30266 return 0;
30267if (sizeof (size_t))
30268 return 0;
30269 ;
30270 return 0;
30271}
30272_ACEOF
30273rm -f conftest.$ac_objext
30274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30275 (eval $ac_compile) 2>conftest.er1
a848cd7e 30276 ac_status=$?
ac1cb8d3
VS
30277 grep -v '^ *+' conftest.er1 >conftest.err
30278 rm -f conftest.er1
30279 cat conftest.err >&5
a848cd7e
SC
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); } &&
9dd0f6c2 30282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30284 (eval $ac_try) 2>&5
30285 ac_status=$?
30286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); }; } &&
30288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30290 (eval $ac_try) 2>&5
30291 ac_status=$?
30292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293 (exit $ac_status); }; }; then
30294 ac_cv_type_size_t=yes
30295else
30296 echo "$as_me: failed program was:" >&5
30297sed 's/^/| /' conftest.$ac_ext >&5
30298
30299ac_cv_type_size_t=no
30300fi
ac1cb8d3 30301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30302fi
30303echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30304echo "${ECHO_T}$ac_cv_type_size_t" >&6
30305if test $ac_cv_type_size_t = yes; then
30306 :
30307else
30308
30309cat >>confdefs.h <<_ACEOF
30310#define size_t unsigned
30311_ACEOF
30312
30313fi
30314
30315echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30316echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30317if test "${ac_cv_type_uid_t+set}" = set; then
30318 echo $ECHO_N "(cached) $ECHO_C" >&6
30319else
30320 cat >conftest.$ac_ext <<_ACEOF
30321/* confdefs.h. */
30322_ACEOF
30323cat confdefs.h >>conftest.$ac_ext
30324cat >>conftest.$ac_ext <<_ACEOF
30325/* end confdefs.h. */
30326#include <sys/types.h>
30327
30328_ACEOF
30329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30330 $EGREP "uid_t" >/dev/null 2>&1; then
30331 ac_cv_type_uid_t=yes
30332else
30333 ac_cv_type_uid_t=no
30334fi
30335rm -f conftest*
30336
30337fi
30338echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30339echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30340if test $ac_cv_type_uid_t = no; then
30341
30342cat >>confdefs.h <<\_ACEOF
30343#define uid_t int
30344_ACEOF
30345
30346
30347cat >>confdefs.h <<\_ACEOF
30348#define gid_t int
30349_ACEOF
30350
30351fi
30352
30353
d51253e8
RL
30354echo "$as_me:$LINENO: checking for ssize_t" >&5
30355echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30356if test "${ac_cv_type_ssize_t+set}" = set; then
30357 echo $ECHO_N "(cached) $ECHO_C" >&6
30358else
30359 cat >conftest.$ac_ext <<_ACEOF
30360/* confdefs.h. */
30361_ACEOF
30362cat confdefs.h >>conftest.$ac_ext
30363cat >>conftest.$ac_ext <<_ACEOF
30364/* end confdefs.h. */
30365$ac_includes_default
30366int
30367main ()
30368{
30369if ((ssize_t *) 0)
30370 return 0;
30371if (sizeof (ssize_t))
30372 return 0;
30373 ;
30374 return 0;
30375}
30376_ACEOF
30377rm -f conftest.$ac_objext
30378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30379 (eval $ac_compile) 2>conftest.er1
30380 ac_status=$?
30381 grep -v '^ *+' conftest.er1 >conftest.err
30382 rm -f conftest.er1
30383 cat conftest.err >&5
30384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385 (exit $ac_status); } &&
9dd0f6c2 30386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
30387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30388 (eval $ac_try) 2>&5
30389 ac_status=$?
30390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391 (exit $ac_status); }; } &&
30392 { ac_try='test -s conftest.$ac_objext'
30393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30394 (eval $ac_try) 2>&5
30395 ac_status=$?
30396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397 (exit $ac_status); }; }; then
30398 ac_cv_type_ssize_t=yes
30399else
30400 echo "$as_me: failed program was:" >&5
30401sed 's/^/| /' conftest.$ac_ext >&5
30402
30403ac_cv_type_ssize_t=no
30404fi
30405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30406fi
30407echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30408echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30409if test $ac_cv_type_ssize_t = yes; then
30410
30411cat >>confdefs.h <<_ACEOF
30412#define HAVE_SSIZE_T 1
30413_ACEOF
30414
30415
30416fi
30417
30418
a848cd7e
SC
30419
30420
30421ac_ext=cc
30422ac_cpp='$CXXCPP $CPPFLAGS'
30423ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30424ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30425ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30426
30427echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30428echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30429if test "${wx_cv_size_t_is_uint+set}" = set; then
30430 echo $ECHO_N "(cached) $ECHO_C" >&6
30431else
30432
30433 cat >conftest.$ac_ext <<_ACEOF
30434/* confdefs.h. */
30435_ACEOF
30436cat confdefs.h >>conftest.$ac_ext
30437cat >>conftest.$ac_ext <<_ACEOF
30438/* end confdefs.h. */
30439#include <stddef.h>
30440int
30441main ()
30442{
30443
30444 return 0; }
30445
30446 struct Foo { void foo(size_t); void foo(unsigned int); };
30447
30448 int bar() {
30449
30450 ;
30451 return 0;
30452}
30453_ACEOF
30454rm -f conftest.$ac_objext
30455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30456 (eval $ac_compile) 2>conftest.er1
a848cd7e 30457 ac_status=$?
ac1cb8d3
VS
30458 grep -v '^ *+' conftest.er1 >conftest.err
30459 rm -f conftest.er1
30460 cat conftest.err >&5
a848cd7e
SC
30461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462 (exit $ac_status); } &&
9dd0f6c2 30463 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30465 (eval $ac_try) 2>&5
30466 ac_status=$?
30467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468 (exit $ac_status); }; } &&
30469 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30471 (eval $ac_try) 2>&5
30472 ac_status=$?
30473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474 (exit $ac_status); }; }; then
30475 wx_cv_size_t_is_uint=no
30476else
30477 echo "$as_me: failed program was:" >&5
30478sed 's/^/| /' conftest.$ac_ext >&5
30479
30480wx_cv_size_t_is_uint=yes
30481
30482fi
ac1cb8d3 30483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30484
30485
30486fi
30487echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30488echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30489
30490if test "$wx_cv_size_t_is_uint" = "yes"; then
30491 cat >>confdefs.h <<\_ACEOF
30492#define wxSIZE_T_IS_UINT 1
30493_ACEOF
30494
30495else
30496 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30497echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30498if test "${wx_cv_size_t_is_ulong+set}" = set; then
30499 echo $ECHO_N "(cached) $ECHO_C" >&6
30500else
30501 cat >conftest.$ac_ext <<_ACEOF
30502/* confdefs.h. */
30503_ACEOF
30504cat confdefs.h >>conftest.$ac_ext
30505cat >>conftest.$ac_ext <<_ACEOF
30506/* end confdefs.h. */
30507#include <stddef.h>
30508int
30509main ()
30510{
30511
30512 return 0; }
30513
30514 struct Foo { void foo(size_t); void foo(unsigned long); };
30515
30516 int bar() {
30517
30518 ;
30519 return 0;
30520}
30521_ACEOF
30522rm -f conftest.$ac_objext
30523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30524 (eval $ac_compile) 2>conftest.er1
a848cd7e 30525 ac_status=$?
ac1cb8d3
VS
30526 grep -v '^ *+' conftest.er1 >conftest.err
30527 rm -f conftest.er1
30528 cat conftest.err >&5
a848cd7e
SC
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); } &&
9dd0f6c2 30531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30533 (eval $ac_try) 2>&5
30534 ac_status=$?
30535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536 (exit $ac_status); }; } &&
30537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30539 (eval $ac_try) 2>&5
30540 ac_status=$?
30541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542 (exit $ac_status); }; }; then
30543 wx_cv_size_t_is_ulong=no
30544else
30545 echo "$as_me: failed program was:" >&5
30546sed 's/^/| /' conftest.$ac_ext >&5
30547
30548wx_cv_size_t_is_ulong=yes
30549
30550fi
ac1cb8d3 30551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30552
30553fi
30554echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30555echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30556
30557 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30558 cat >>confdefs.h <<\_ACEOF
30559#define wxSIZE_T_IS_ULONG 1
30560_ACEOF
30561
30562 fi
30563fi
30564
30565ac_ext=c
30566ac_cpp='$CPP $CPPFLAGS'
30567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30569ac_compiler_gnu=$ac_cv_c_compiler_gnu
30570
30571
30572
30573echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30574echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30575if test "${wx_cv_struct_pw_gecos+set}" = set; then
30576 echo $ECHO_N "(cached) $ECHO_C" >&6
30577else
30578
30579 cat >conftest.$ac_ext <<_ACEOF
30580/* confdefs.h. */
30581_ACEOF
30582cat confdefs.h >>conftest.$ac_ext
30583cat >>conftest.$ac_ext <<_ACEOF
30584/* end confdefs.h. */
30585#include <pwd.h>
30586int
30587main ()
30588{
30589
30590 char *p;
30591 struct passwd *pw;
30592 p = pw->pw_gecos;
30593
30594 ;
30595 return 0;
30596}
30597_ACEOF
30598rm -f conftest.$ac_objext
30599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30600 (eval $ac_compile) 2>conftest.er1
a848cd7e 30601 ac_status=$?
ac1cb8d3
VS
30602 grep -v '^ *+' conftest.er1 >conftest.err
30603 rm -f conftest.er1
30604 cat conftest.err >&5
a848cd7e
SC
30605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606 (exit $ac_status); } &&
9dd0f6c2 30607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30609 (eval $ac_try) 2>&5
30610 ac_status=$?
30611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612 (exit $ac_status); }; } &&
30613 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30615 (eval $ac_try) 2>&5
30616 ac_status=$?
30617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618 (exit $ac_status); }; }; then
30619
30620 wx_cv_struct_pw_gecos=yes
30621
30622else
30623 echo "$as_me: failed program was:" >&5
30624sed 's/^/| /' conftest.$ac_ext >&5
30625
30626
30627 wx_cv_struct_pw_gecos=no
30628
30629
30630fi
ac1cb8d3 30631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30632
30633
30634fi
30635echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30636echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30637
30638if test "$wx_cv_struct_pw_gecos" = "yes"; then
30639 cat >>confdefs.h <<\_ACEOF
30640#define HAVE_PW_GECOS 1
30641_ACEOF
30642
30643fi
30644
30645
47a7e797 30646if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
30647 cat >>confdefs.h <<\_ACEOF
30648#define wxUSE_WCHAR_T 1
30649_ACEOF
30650
30651
30652 WCSLEN_FOUND=0
30653 WCHAR_LINK=
30654
30655for ac_func in wcslen
30656do
30657as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30658echo "$as_me:$LINENO: checking for $ac_func" >&5
30659echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30660if eval "test \"\${$as_ac_var+set}\" = set"; then
30661 echo $ECHO_N "(cached) $ECHO_C" >&6
30662else
30663 cat >conftest.$ac_ext <<_ACEOF
30664/* confdefs.h. */
30665_ACEOF
30666cat confdefs.h >>conftest.$ac_ext
30667cat >>conftest.$ac_ext <<_ACEOF
30668/* end confdefs.h. */
ac1cb8d3
VS
30669/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30671#define $ac_func innocuous_$ac_func
30672
a848cd7e
SC
30673/* System header to define __stub macros and hopefully few prototypes,
30674 which can conflict with char $ac_func (); below.
30675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30676 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30677
a848cd7e
SC
30678#ifdef __STDC__
30679# include <limits.h>
30680#else
30681# include <assert.h>
30682#endif
ac1cb8d3
VS
30683
30684#undef $ac_func
30685
a848cd7e
SC
30686/* Override any gcc2 internal prototype to avoid an error. */
30687#ifdef __cplusplus
30688extern "C"
30689{
30690#endif
30691/* We use char because int might match the return type of a gcc2
30692 builtin and then its argument prototype would still apply. */
30693char $ac_func ();
30694/* The GNU C library defines this for functions which it implements
30695 to always fail with ENOSYS. Some functions are actually named
30696 something starting with __ and the normal name is an alias. */
30697#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30698choke me
30699#else
30700char (*f) () = $ac_func;
30701#endif
30702#ifdef __cplusplus
30703}
30704#endif
30705
30706int
30707main ()
30708{
30709return f != $ac_func;
30710 ;
30711 return 0;
30712}
30713_ACEOF
30714rm -f conftest.$ac_objext conftest$ac_exeext
30715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30716 (eval $ac_link) 2>conftest.er1
a848cd7e 30717 ac_status=$?
ac1cb8d3
VS
30718 grep -v '^ *+' conftest.er1 >conftest.err
30719 rm -f conftest.er1
30720 cat conftest.err >&5
a848cd7e
SC
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); } &&
9dd0f6c2 30723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30725 (eval $ac_try) 2>&5
30726 ac_status=$?
30727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728 (exit $ac_status); }; } &&
30729 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30731 (eval $ac_try) 2>&5
30732 ac_status=$?
30733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); }; }; then
30735 eval "$as_ac_var=yes"
30736else
30737 echo "$as_me: failed program was:" >&5
30738sed 's/^/| /' conftest.$ac_ext >&5
30739
30740eval "$as_ac_var=no"
30741fi
ac1cb8d3
VS
30742rm -f conftest.err conftest.$ac_objext \
30743 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30744fi
30745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30746echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30747if test `eval echo '${'$as_ac_var'}'` = yes; then
30748 cat >>confdefs.h <<_ACEOF
30749#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30750_ACEOF
30751 WCSLEN_FOUND=1
30752fi
30753done
30754
30755
30756 if test "$WCSLEN_FOUND" = 0; then
30757 if test "$TOOLKIT" = "MSW"; then
30758 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30759echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30760if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30761 echo $ECHO_N "(cached) $ECHO_C" >&6
30762else
30763 ac_check_lib_save_LIBS=$LIBS
30764LIBS="-lmsvcrt $LIBS"
30765cat >conftest.$ac_ext <<_ACEOF
30766/* confdefs.h. */
30767_ACEOF
30768cat confdefs.h >>conftest.$ac_ext
30769cat >>conftest.$ac_ext <<_ACEOF
30770/* end confdefs.h. */
30771
30772/* Override any gcc2 internal prototype to avoid an error. */
30773#ifdef __cplusplus
30774extern "C"
30775#endif
30776/* We use char because int might match the return type of a gcc2
30777 builtin and then its argument prototype would still apply. */
30778char wcslen ();
30779int
30780main ()
30781{
30782wcslen ();
30783 ;
30784 return 0;
30785}
30786_ACEOF
30787rm -f conftest.$ac_objext conftest$ac_exeext
30788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30789 (eval $ac_link) 2>conftest.er1
a848cd7e 30790 ac_status=$?
ac1cb8d3
VS
30791 grep -v '^ *+' conftest.er1 >conftest.err
30792 rm -f conftest.er1
30793 cat conftest.err >&5
a848cd7e
SC
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); } &&
9dd0f6c2 30796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30798 (eval $ac_try) 2>&5
30799 ac_status=$?
30800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801 (exit $ac_status); }; } &&
30802 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30804 (eval $ac_try) 2>&5
30805 ac_status=$?
30806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807 (exit $ac_status); }; }; then
30808 ac_cv_lib_msvcrt_wcslen=yes
30809else
30810 echo "$as_me: failed program was:" >&5
30811sed 's/^/| /' conftest.$ac_ext >&5
30812
30813ac_cv_lib_msvcrt_wcslen=no
30814fi
ac1cb8d3
VS
30815rm -f conftest.err conftest.$ac_objext \
30816 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30817LIBS=$ac_check_lib_save_LIBS
30818fi
30819echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
30820echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
30821if test $ac_cv_lib_msvcrt_wcslen = yes; then
30822 WCHAR_OK=1
30823fi
30824
30825 else
30826 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
30827echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
30828if test "${ac_cv_lib_w_wcslen+set}" = set; then
30829 echo $ECHO_N "(cached) $ECHO_C" >&6
30830else
30831 ac_check_lib_save_LIBS=$LIBS
30832LIBS="-lw $LIBS"
30833cat >conftest.$ac_ext <<_ACEOF
30834/* confdefs.h. */
30835_ACEOF
30836cat confdefs.h >>conftest.$ac_ext
30837cat >>conftest.$ac_ext <<_ACEOF
30838/* end confdefs.h. */
30839
30840/* Override any gcc2 internal prototype to avoid an error. */
30841#ifdef __cplusplus
30842extern "C"
30843#endif
30844/* We use char because int might match the return type of a gcc2
30845 builtin and then its argument prototype would still apply. */
30846char wcslen ();
30847int
30848main ()
30849{
30850wcslen ();
30851 ;
30852 return 0;
30853}
30854_ACEOF
30855rm -f conftest.$ac_objext conftest$ac_exeext
30856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30857 (eval $ac_link) 2>conftest.er1
a848cd7e 30858 ac_status=$?
ac1cb8d3
VS
30859 grep -v '^ *+' conftest.er1 >conftest.err
30860 rm -f conftest.er1
30861 cat conftest.err >&5
a848cd7e
SC
30862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863 (exit $ac_status); } &&
9dd0f6c2 30864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30866 (eval $ac_try) 2>&5
30867 ac_status=$?
30868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869 (exit $ac_status); }; } &&
30870 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30872 (eval $ac_try) 2>&5
30873 ac_status=$?
30874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30875 (exit $ac_status); }; }; then
30876 ac_cv_lib_w_wcslen=yes
30877else
30878 echo "$as_me: failed program was:" >&5
30879sed 's/^/| /' conftest.$ac_ext >&5
30880
30881ac_cv_lib_w_wcslen=no
30882fi
ac1cb8d3
VS
30883rm -f conftest.err conftest.$ac_objext \
30884 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30885LIBS=$ac_check_lib_save_LIBS
30886fi
30887echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
30888echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
30889if test $ac_cv_lib_w_wcslen = yes; then
30890
30891 WCHAR_LINK=" -lw"
30892 WCSLEN_FOUND=1
30893
30894fi
30895
30896 fi
30897 fi
30898
30899 if test "$WCSLEN_FOUND" = 1; then
30900 cat >>confdefs.h <<\_ACEOF
30901#define HAVE_WCSLEN 1
30902_ACEOF
30903
30904 fi
30905
81f90336 30906 if test "$USE_HPUX" = 1; then
473276a9
VS
30907 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
30908 fi
30909
a848cd7e
SC
30910
30911for ac_func in wcsrtombs
30912do
30913as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30914echo "$as_me:$LINENO: checking for $ac_func" >&5
30915echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30916if eval "test \"\${$as_ac_var+set}\" = set"; then
30917 echo $ECHO_N "(cached) $ECHO_C" >&6
30918else
30919 cat >conftest.$ac_ext <<_ACEOF
30920/* confdefs.h. */
30921_ACEOF
30922cat confdefs.h >>conftest.$ac_ext
30923cat >>conftest.$ac_ext <<_ACEOF
30924/* end confdefs.h. */
ac1cb8d3
VS
30925/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30927#define $ac_func innocuous_$ac_func
30928
a848cd7e
SC
30929/* System header to define __stub macros and hopefully few prototypes,
30930 which can conflict with char $ac_func (); below.
30931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30932 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30933
a848cd7e
SC
30934#ifdef __STDC__
30935# include <limits.h>
30936#else
30937# include <assert.h>
30938#endif
ac1cb8d3
VS
30939
30940#undef $ac_func
30941
a848cd7e
SC
30942/* Override any gcc2 internal prototype to avoid an error. */
30943#ifdef __cplusplus
30944extern "C"
30945{
30946#endif
30947/* We use char because int might match the return type of a gcc2
30948 builtin and then its argument prototype would still apply. */
30949char $ac_func ();
30950/* The GNU C library defines this for functions which it implements
30951 to always fail with ENOSYS. Some functions are actually named
30952 something starting with __ and the normal name is an alias. */
30953#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30954choke me
30955#else
30956char (*f) () = $ac_func;
30957#endif
30958#ifdef __cplusplus
30959}
30960#endif
30961
30962int
30963main ()
30964{
30965return f != $ac_func;
30966 ;
30967 return 0;
30968}
30969_ACEOF
30970rm -f conftest.$ac_objext conftest$ac_exeext
30971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30972 (eval $ac_link) 2>conftest.er1
a848cd7e 30973 ac_status=$?
ac1cb8d3
VS
30974 grep -v '^ *+' conftest.er1 >conftest.err
30975 rm -f conftest.er1
30976 cat conftest.err >&5
a848cd7e
SC
30977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978 (exit $ac_status); } &&
9dd0f6c2 30979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30981 (eval $ac_try) 2>&5
30982 ac_status=$?
30983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984 (exit $ac_status); }; } &&
30985 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30987 (eval $ac_try) 2>&5
30988 ac_status=$?
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); }; }; then
30991 eval "$as_ac_var=yes"
30992else
30993 echo "$as_me: failed program was:" >&5
30994sed 's/^/| /' conftest.$ac_ext >&5
30995
30996eval "$as_ac_var=no"
30997fi
ac1cb8d3
VS
30998rm -f conftest.err conftest.$ac_objext \
30999 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31000fi
31001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31002echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31003if test `eval echo '${'$as_ac_var'}'` = yes; then
31004 cat >>confdefs.h <<_ACEOF
31005#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31006_ACEOF
31007
31008fi
31009done
31010
31011else
31012 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
31013echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
31014fi
31015
31016
31017
31018ac_ext=cc
31019ac_cpp='$CXXCPP $CPPFLAGS'
31020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31023
31024
31025
31026for ac_func in vsnprintf
31027do
31028as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31029echo "$as_me:$LINENO: checking for $ac_func" >&5
31030echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31031if eval "test \"\${$as_ac_var+set}\" = set"; then
31032 echo $ECHO_N "(cached) $ECHO_C" >&6
31033else
31034 cat >conftest.$ac_ext <<_ACEOF
31035/* confdefs.h. */
31036_ACEOF
31037cat confdefs.h >>conftest.$ac_ext
31038cat >>conftest.$ac_ext <<_ACEOF
31039/* end confdefs.h. */
ac1cb8d3
VS
31040/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31042#define $ac_func innocuous_$ac_func
31043
a848cd7e
SC
31044/* System header to define __stub macros and hopefully few prototypes,
31045 which can conflict with char $ac_func (); below.
31046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31047 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31048
a848cd7e
SC
31049#ifdef __STDC__
31050# include <limits.h>
31051#else
31052# include <assert.h>
31053#endif
ac1cb8d3
VS
31054
31055#undef $ac_func
31056
a848cd7e
SC
31057/* Override any gcc2 internal prototype to avoid an error. */
31058#ifdef __cplusplus
31059extern "C"
31060{
31061#endif
31062/* We use char because int might match the return type of a gcc2
31063 builtin and then its argument prototype would still apply. */
31064char $ac_func ();
31065/* The GNU C library defines this for functions which it implements
31066 to always fail with ENOSYS. Some functions are actually named
31067 something starting with __ and the normal name is an alias. */
31068#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31069choke me
31070#else
31071char (*f) () = $ac_func;
31072#endif
31073#ifdef __cplusplus
31074}
31075#endif
31076
31077int
31078main ()
31079{
31080return f != $ac_func;
31081 ;
31082 return 0;
31083}
31084_ACEOF
31085rm -f conftest.$ac_objext conftest$ac_exeext
31086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31087 (eval $ac_link) 2>conftest.er1
a848cd7e 31088 ac_status=$?
ac1cb8d3
VS
31089 grep -v '^ *+' conftest.er1 >conftest.err
31090 rm -f conftest.er1
31091 cat conftest.err >&5
a848cd7e
SC
31092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31093 (exit $ac_status); } &&
9dd0f6c2 31094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31096 (eval $ac_try) 2>&5
31097 ac_status=$?
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); }; } &&
31100 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31102 (eval $ac_try) 2>&5
31103 ac_status=$?
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); }; }; then
31106 eval "$as_ac_var=yes"
31107else
31108 echo "$as_me: failed program was:" >&5
31109sed 's/^/| /' conftest.$ac_ext >&5
31110
31111eval "$as_ac_var=no"
31112fi
ac1cb8d3
VS
31113rm -f conftest.err conftest.$ac_objext \
31114 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31115fi
31116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31117echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31118if test `eval echo '${'$as_ac_var'}'` = yes; then
31119 cat >>confdefs.h <<_ACEOF
31120#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31121_ACEOF
31122
31123fi
31124done
31125
31126
31127if test "$ac_cv_func_vsnprintf" = "yes"; then
31128 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
31129echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
31130if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
31131 echo $ECHO_N "(cached) $ECHO_C" >&6
31132else
31133
31134 cat >conftest.$ac_ext <<_ACEOF
31135/* confdefs.h. */
31136_ACEOF
31137cat confdefs.h >>conftest.$ac_ext
31138cat >>conftest.$ac_ext <<_ACEOF
31139/* end confdefs.h. */
31140
31141 #include <stdio.h>
31142 #include <stdarg.h>
31143
31144int
31145main ()
31146{
31147
31148 char *buf;
31149 va_list ap;
31150 vsnprintf(buf, 10u, "%s", ap);
31151
31152 ;
31153 return 0;
31154}
31155_ACEOF
31156rm -f conftest.$ac_objext
31157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31158 (eval $ac_compile) 2>conftest.er1
a848cd7e 31159 ac_status=$?
ac1cb8d3
VS
31160 grep -v '^ *+' conftest.er1 >conftest.err
31161 rm -f conftest.er1
31162 cat conftest.err >&5
a848cd7e
SC
31163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164 (exit $ac_status); } &&
9dd0f6c2 31165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31167 (eval $ac_try) 2>&5
31168 ac_status=$?
31169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170 (exit $ac_status); }; } &&
31171 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31173 (eval $ac_try) 2>&5
31174 ac_status=$?
31175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31176 (exit $ac_status); }; }; then
31177 wx_cv_func_vsnprintf_decl=yes
31178else
31179 echo "$as_me: failed program was:" >&5
31180sed 's/^/| /' conftest.$ac_ext >&5
31181
c122b164
DE
31182
31183 cat >conftest.$ac_ext <<_ACEOF
31184/* confdefs.h. */
31185_ACEOF
31186cat confdefs.h >>conftest.$ac_ext
31187cat >>conftest.$ac_ext <<_ACEOF
31188/* end confdefs.h. */
31189
31190 #include <stdio.h>
31191 #include <stdarg.h>
31192 using namespace std;
31193
31194int
31195main ()
31196{
31197
31198 char *buf;
31199 va_list ap;
31200 vsnprintf(buf, 10u, "%s", ap);
31201
31202 ;
31203 return 0;
31204}
31205_ACEOF
31206rm -f conftest.$ac_objext
31207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31208 (eval $ac_compile) 2>conftest.er1
31209 ac_status=$?
31210 grep -v '^ *+' conftest.er1 >conftest.err
31211 rm -f conftest.er1
31212 cat conftest.err >&5
31213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31214 (exit $ac_status); } &&
9dd0f6c2 31215 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
31216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31217 (eval $ac_try) 2>&5
31218 ac_status=$?
31219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220 (exit $ac_status); }; } &&
31221 { ac_try='test -s conftest.$ac_objext'
31222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31223 (eval $ac_try) 2>&5
31224 ac_status=$?
31225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31226 (exit $ac_status); }; }; then
31227 wx_cv_func_vsnprintf_decl=yes
31228else
31229 echo "$as_me: failed program was:" >&5
31230sed 's/^/| /' conftest.$ac_ext >&5
31231
a848cd7e
SC
31232wx_cv_func_vsnprintf_decl=no
31233
31234fi
ac1cb8d3 31235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31236
31237
c122b164
DE
31238fi
31239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31240
31241
a848cd7e
SC
31242fi
31243echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31244echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31245
31246 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31247 cat >>confdefs.h <<\_ACEOF
31248#define HAVE_VSNPRINTF_DECL 1
31249_ACEOF
31250
31251 fi
31252fi
31253
31254if test "$wxUSE_UNICODE" = yes; then
31255
31256
31257
fbe47c7b
VS
31258
31259
31260
31261for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31262do
31263as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31264echo "$as_me:$LINENO: checking for $ac_func" >&5
31265echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31266if eval "test \"\${$as_ac_var+set}\" = set"; then
31267 echo $ECHO_N "(cached) $ECHO_C" >&6
31268else
31269 cat >conftest.$ac_ext <<_ACEOF
31270/* confdefs.h. */
31271_ACEOF
31272cat confdefs.h >>conftest.$ac_ext
31273cat >>conftest.$ac_ext <<_ACEOF
31274/* end confdefs.h. */
ac1cb8d3
VS
31275/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31277#define $ac_func innocuous_$ac_func
31278
a848cd7e
SC
31279/* System header to define __stub macros and hopefully few prototypes,
31280 which can conflict with char $ac_func (); below.
31281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31282 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31283
a848cd7e
SC
31284#ifdef __STDC__
31285# include <limits.h>
31286#else
31287# include <assert.h>
31288#endif
ac1cb8d3
VS
31289
31290#undef $ac_func
31291
a848cd7e
SC
31292/* Override any gcc2 internal prototype to avoid an error. */
31293#ifdef __cplusplus
31294extern "C"
31295{
31296#endif
31297/* We use char because int might match the return type of a gcc2
31298 builtin and then its argument prototype would still apply. */
31299char $ac_func ();
31300/* The GNU C library defines this for functions which it implements
31301 to always fail with ENOSYS. Some functions are actually named
31302 something starting with __ and the normal name is an alias. */
31303#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31304choke me
31305#else
31306char (*f) () = $ac_func;
31307#endif
31308#ifdef __cplusplus
31309}
31310#endif
31311
31312int
31313main ()
31314{
31315return f != $ac_func;
31316 ;
31317 return 0;
31318}
31319_ACEOF
31320rm -f conftest.$ac_objext conftest$ac_exeext
31321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31322 (eval $ac_link) 2>conftest.er1
a848cd7e 31323 ac_status=$?
ac1cb8d3
VS
31324 grep -v '^ *+' conftest.er1 >conftest.err
31325 rm -f conftest.er1
31326 cat conftest.err >&5
a848cd7e
SC
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328 (exit $ac_status); } &&
9dd0f6c2 31329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31331 (eval $ac_try) 2>&5
31332 ac_status=$?
31333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31334 (exit $ac_status); }; } &&
31335 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31337 (eval $ac_try) 2>&5
31338 ac_status=$?
31339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31340 (exit $ac_status); }; }; then
31341 eval "$as_ac_var=yes"
31342else
31343 echo "$as_me: failed program was:" >&5
31344sed 's/^/| /' conftest.$ac_ext >&5
31345
31346eval "$as_ac_var=no"
31347fi
ac1cb8d3
VS
31348rm -f conftest.err conftest.$ac_objext \
31349 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31350fi
31351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31352echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31353if test `eval echo '${'$as_ac_var'}'` = yes; then
31354 cat >>confdefs.h <<_ACEOF
31355#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31356_ACEOF
31357
31358fi
31359done
31360
31361
31362 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31363echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31364 cat >conftest.$ac_ext <<_ACEOF
31365/* confdefs.h. */
31366_ACEOF
31367cat confdefs.h >>conftest.$ac_ext
31368cat >>conftest.$ac_ext <<_ACEOF
31369/* end confdefs.h. */
31370#include <wchar.h>
31371int
31372main ()
31373{
31374&_vsnwprintf;
31375 ;
31376 return 0;
31377}
31378_ACEOF
31379rm -f conftest.$ac_objext
31380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31381 (eval $ac_compile) 2>conftest.er1
a848cd7e 31382 ac_status=$?
ac1cb8d3
VS
31383 grep -v '^ *+' conftest.er1 >conftest.err
31384 rm -f conftest.er1
31385 cat conftest.err >&5
a848cd7e
SC
31386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387 (exit $ac_status); } &&
9dd0f6c2 31388 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31390 (eval $ac_try) 2>&5
31391 ac_status=$?
31392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); }; } &&
31394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
31400 echo "$as_me:$LINENO: result: yes" >&5
31401echo "${ECHO_T}yes" >&6
31402 cat >>confdefs.h <<\_ACEOF
31403#define HAVE__VSNWPRINTF 1
31404_ACEOF
31405
31406else
31407 echo "$as_me: failed program was:" >&5
31408sed 's/^/| /' conftest.$ac_ext >&5
31409
31410echo "$as_me:$LINENO: result: no" >&5
31411echo "${ECHO_T}no" >&6
31412fi
ac1cb8d3 31413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31414fi
31415
31416ac_ext=c
31417ac_cpp='$CPP $CPPFLAGS'
31418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31420ac_compiler_gnu=$ac_cv_c_compiler_gnu
31421
31422
31423
31424
31425if test "$TOOLKIT" != "MSW"; then
31426
31427
31428
31429
31430ac_ext=cc
31431ac_cpp='$CXXCPP $CPPFLAGS'
31432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31435
31436
31437
31438
31439# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31440if test "${with_libiconv_prefix+set}" = set; then
31441 withval="$with_libiconv_prefix"
31442
31443 for dir in `echo "$withval" | tr : ' '`; do
31444 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31445 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31446 done
31447
31448fi;
31449
31450 echo "$as_me:$LINENO: checking for iconv" >&5
31451echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31452if test "${am_cv_func_iconv+set}" = set; then
31453 echo $ECHO_N "(cached) $ECHO_C" >&6
31454else
31455
31456 am_cv_func_iconv="no, consider installing GNU libiconv"
31457 am_cv_lib_iconv=no
31458 cat >conftest.$ac_ext <<_ACEOF
31459/* confdefs.h. */
31460_ACEOF
31461cat confdefs.h >>conftest.$ac_ext
31462cat >>conftest.$ac_ext <<_ACEOF
31463/* end confdefs.h. */
31464#include <stdlib.h>
31465#include <iconv.h>
31466int
31467main ()
31468{
31469iconv_t cd = iconv_open("","");
31470 iconv(cd,NULL,NULL,NULL,NULL);
31471 iconv_close(cd);
31472 ;
31473 return 0;
31474}
31475_ACEOF
31476rm -f conftest.$ac_objext conftest$ac_exeext
31477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31478 (eval $ac_link) 2>conftest.er1
a848cd7e 31479 ac_status=$?
ac1cb8d3
VS
31480 grep -v '^ *+' conftest.er1 >conftest.err
31481 rm -f conftest.er1
31482 cat conftest.err >&5
a848cd7e
SC
31483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484 (exit $ac_status); } &&
9dd0f6c2 31485 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31487 (eval $ac_try) 2>&5
31488 ac_status=$?
31489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490 (exit $ac_status); }; } &&
31491 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31493 (eval $ac_try) 2>&5
31494 ac_status=$?
31495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496 (exit $ac_status); }; }; then
31497 am_cv_func_iconv=yes
31498else
31499 echo "$as_me: failed program was:" >&5
31500sed 's/^/| /' conftest.$ac_ext >&5
31501
31502fi
ac1cb8d3
VS
31503rm -f conftest.err conftest.$ac_objext \
31504 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31505 if test "$am_cv_func_iconv" != yes; then
31506 am_save_LIBS="$LIBS"
31507 LIBS="$LIBS -liconv"
31508 cat >conftest.$ac_ext <<_ACEOF
31509/* confdefs.h. */
31510_ACEOF
31511cat confdefs.h >>conftest.$ac_ext
31512cat >>conftest.$ac_ext <<_ACEOF
31513/* end confdefs.h. */
31514#include <stdlib.h>
31515#include <iconv.h>
31516int
31517main ()
31518{
31519iconv_t cd = iconv_open("","");
31520 iconv(cd,NULL,NULL,NULL,NULL);
31521 iconv_close(cd);
31522 ;
31523 return 0;
31524}
31525_ACEOF
31526rm -f conftest.$ac_objext conftest$ac_exeext
31527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31528 (eval $ac_link) 2>conftest.er1
a848cd7e 31529 ac_status=$?
ac1cb8d3
VS
31530 grep -v '^ *+' conftest.er1 >conftest.err
31531 rm -f conftest.er1
31532 cat conftest.err >&5
a848cd7e
SC
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); } &&
9dd0f6c2 31535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31537 (eval $ac_try) 2>&5
31538 ac_status=$?
31539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540 (exit $ac_status); }; } &&
31541 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31543 (eval $ac_try) 2>&5
31544 ac_status=$?
31545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31546 (exit $ac_status); }; }; then
31547 am_cv_lib_iconv=yes
31548 am_cv_func_iconv=yes
31549else
31550 echo "$as_me: failed program was:" >&5
31551sed 's/^/| /' conftest.$ac_ext >&5
31552
31553fi
ac1cb8d3
VS
31554rm -f conftest.err conftest.$ac_objext \
31555 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31556 LIBS="$am_save_LIBS"
31557 fi
31558
31559fi
31560echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31561echo "${ECHO_T}$am_cv_func_iconv" >&6
31562 if test "$am_cv_func_iconv" = yes; then
31563
31564cat >>confdefs.h <<\_ACEOF
31565#define HAVE_ICONV 1
31566_ACEOF
31567
31568 echo "$as_me:$LINENO: checking if iconv needs const" >&5
31569echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31570if test "${wx_cv_func_iconv_const+set}" = set; then
31571 echo $ECHO_N "(cached) $ECHO_C" >&6
31572else
31573 cat >conftest.$ac_ext <<_ACEOF
31574/* confdefs.h. */
31575_ACEOF
31576cat confdefs.h >>conftest.$ac_ext
31577cat >>conftest.$ac_ext <<_ACEOF
31578/* end confdefs.h. */
31579
31580#include <stdlib.h>
31581#include <iconv.h>
31582extern
31583#ifdef __cplusplus
31584"C"
31585#endif
31586#if defined(__STDC__) || defined(__cplusplus)
31587size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31588#else
31589size_t iconv();
31590#endif
31591
31592int
31593main ()
31594{
31595
31596 ;
31597 return 0;
31598}
31599_ACEOF
31600rm -f conftest.$ac_objext
31601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31602 (eval $ac_compile) 2>conftest.er1
a848cd7e 31603 ac_status=$?
ac1cb8d3
VS
31604 grep -v '^ *+' conftest.er1 >conftest.err
31605 rm -f conftest.er1
31606 cat conftest.err >&5
a848cd7e
SC
31607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608 (exit $ac_status); } &&
9dd0f6c2 31609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31611 (eval $ac_try) 2>&5
31612 ac_status=$?
31613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614 (exit $ac_status); }; } &&
31615 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31617 (eval $ac_try) 2>&5
31618 ac_status=$?
31619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31620 (exit $ac_status); }; }; then
31621 wx_cv_func_iconv_const="no"
31622else
31623 echo "$as_me: failed program was:" >&5
31624sed 's/^/| /' conftest.$ac_ext >&5
31625
31626wx_cv_func_iconv_const="yes"
31627
31628fi
ac1cb8d3 31629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31630
31631fi
31632echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31633echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31634
31635 iconv_const=
31636 if test "x$wx_cv_func_iconv_const" = "xyes"; then
31637 iconv_const="const"
31638 fi
31639
31640
31641cat >>confdefs.h <<_ACEOF
31642#define ICONV_CONST $iconv_const
31643_ACEOF
31644
31645 fi
31646 LIBICONV=
31647 if test "$am_cv_lib_iconv" = yes; then
31648 LIBICONV="-liconv"
31649 fi
31650
31651
31652LIBS="$LIBICONV $LIBS"
31653ac_ext=c
31654ac_cpp='$CPP $CPPFLAGS'
31655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31657ac_compiler_gnu=$ac_cv_c_compiler_gnu
31658
31659
31660if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31661
31662for ac_func in sigaction
31663do
31664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31665echo "$as_me:$LINENO: checking for $ac_func" >&5
31666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31667if eval "test \"\${$as_ac_var+set}\" = set"; then
31668 echo $ECHO_N "(cached) $ECHO_C" >&6
31669else
31670 cat >conftest.$ac_ext <<_ACEOF
31671/* confdefs.h. */
31672_ACEOF
31673cat confdefs.h >>conftest.$ac_ext
31674cat >>conftest.$ac_ext <<_ACEOF
31675/* end confdefs.h. */
ac1cb8d3
VS
31676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31678#define $ac_func innocuous_$ac_func
31679
a848cd7e
SC
31680/* System header to define __stub macros and hopefully few prototypes,
31681 which can conflict with char $ac_func (); below.
31682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31683 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31684
a848cd7e
SC
31685#ifdef __STDC__
31686# include <limits.h>
31687#else
31688# include <assert.h>
31689#endif
ac1cb8d3
VS
31690
31691#undef $ac_func
31692
a848cd7e
SC
31693/* Override any gcc2 internal prototype to avoid an error. */
31694#ifdef __cplusplus
31695extern "C"
31696{
31697#endif
31698/* We use char because int might match the return type of a gcc2
31699 builtin and then its argument prototype would still apply. */
31700char $ac_func ();
31701/* The GNU C library defines this for functions which it implements
31702 to always fail with ENOSYS. Some functions are actually named
31703 something starting with __ and the normal name is an alias. */
31704#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31705choke me
31706#else
31707char (*f) () = $ac_func;
31708#endif
31709#ifdef __cplusplus
31710}
31711#endif
31712
31713int
31714main ()
31715{
31716return f != $ac_func;
31717 ;
31718 return 0;
31719}
31720_ACEOF
31721rm -f conftest.$ac_objext conftest$ac_exeext
31722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31723 (eval $ac_link) 2>conftest.er1
a848cd7e 31724 ac_status=$?
ac1cb8d3
VS
31725 grep -v '^ *+' conftest.er1 >conftest.err
31726 rm -f conftest.er1
31727 cat conftest.err >&5
a848cd7e
SC
31728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729 (exit $ac_status); } &&
9dd0f6c2 31730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31732 (eval $ac_try) 2>&5
31733 ac_status=$?
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); }; } &&
31736 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31738 (eval $ac_try) 2>&5
31739 ac_status=$?
31740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741 (exit $ac_status); }; }; then
31742 eval "$as_ac_var=yes"
31743else
31744 echo "$as_me: failed program was:" >&5
31745sed 's/^/| /' conftest.$ac_ext >&5
31746
31747eval "$as_ac_var=no"
31748fi
ac1cb8d3
VS
31749rm -f conftest.err conftest.$ac_objext \
31750 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31751fi
31752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31753echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31754if test `eval echo '${'$as_ac_var'}'` = yes; then
31755 cat >>confdefs.h <<_ACEOF
31756#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31757_ACEOF
31758
31759fi
31760done
31761
31762
31763 if test "$ac_cv_func_sigaction" = "no"; then
31764 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31765echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31766 wxUSE_ON_FATAL_EXCEPTION=no
31767 fi
31768
31769 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31770
31771
31772 ac_ext=cc
31773ac_cpp='$CXXCPP $CPPFLAGS'
31774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31777
31778
31779 echo "$as_me:$LINENO: checking for sa_handler type" >&5
31780echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
31781if test "${wx_cv_type_sa_handler+set}" = set; then
31782 echo $ECHO_N "(cached) $ECHO_C" >&6
31783else
31784
31785 cat >conftest.$ac_ext <<_ACEOF
31786/* confdefs.h. */
31787_ACEOF
31788cat confdefs.h >>conftest.$ac_ext
31789cat >>conftest.$ac_ext <<_ACEOF
31790/* end confdefs.h. */
31791#include <signal.h>
31792int
31793main ()
31794{
31795
31796 extern void testSigHandler(int);
31797
31798 struct sigaction sa;
31799 sa.sa_handler = testSigHandler;
31800
31801 ;
31802 return 0;
31803}
31804_ACEOF
31805rm -f conftest.$ac_objext
31806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31807 (eval $ac_compile) 2>conftest.er1
a848cd7e 31808 ac_status=$?
ac1cb8d3
VS
31809 grep -v '^ *+' conftest.er1 >conftest.err
31810 rm -f conftest.er1
31811 cat conftest.err >&5
a848cd7e
SC
31812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813 (exit $ac_status); } &&
9dd0f6c2 31814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31816 (eval $ac_try) 2>&5
31817 ac_status=$?
31818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819 (exit $ac_status); }; } &&
31820 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31822 (eval $ac_try) 2>&5
31823 ac_status=$?
31824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31825 (exit $ac_status); }; }; then
31826
31827 wx_cv_type_sa_handler=int
31828
31829else
31830 echo "$as_me: failed program was:" >&5
31831sed 's/^/| /' conftest.$ac_ext >&5
31832
31833
31834 wx_cv_type_sa_handler=void
31835
31836fi
ac1cb8d3 31837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31838
31839fi
31840echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
31841echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
31842
31843 ac_ext=c
31844ac_cpp='$CPP $CPPFLAGS'
31845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31847ac_compiler_gnu=$ac_cv_c_compiler_gnu
31848
31849
31850 cat >>confdefs.h <<_ACEOF
31851#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
31852_ACEOF
31853
31854 fi
31855fi
31856
eaff0f0d
VZ
31857if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31858
31859
31860 ac_ext=cc
31861ac_cpp='$CXXCPP $CPPFLAGS'
31862ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31863ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31864ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31865
31866
31867 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
31868echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
31869if test "${wx_cv_func_backtrace+set}" = set; then
31870 echo $ECHO_N "(cached) $ECHO_C" >&6
31871else
31872
31873 cat >conftest.$ac_ext <<_ACEOF
31874/* confdefs.h. */
31875_ACEOF
31876cat confdefs.h >>conftest.$ac_ext
31877cat >>conftest.$ac_ext <<_ACEOF
31878/* end confdefs.h. */
31879#include <execinfo.h>
31880int
31881main ()
31882{
31883
31884 void *trace[1];
31885 char **messages;
31886
31887 backtrace(trace, 1);
31888 messages = backtrace_symbols(trace, 1);
31889
31890 ;
31891 return 0;
31892}
31893_ACEOF
31894rm -f conftest.$ac_objext
31895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31896 (eval $ac_compile) 2>conftest.er1
31897 ac_status=$?
31898 grep -v '^ *+' conftest.er1 >conftest.err
31899 rm -f conftest.er1
31900 cat conftest.err >&5
31901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31902 (exit $ac_status); } &&
9dd0f6c2 31903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31905 (eval $ac_try) 2>&5
31906 ac_status=$?
31907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908 (exit $ac_status); }; } &&
31909 { ac_try='test -s conftest.$ac_objext'
31910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31911 (eval $ac_try) 2>&5
31912 ac_status=$?
31913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31914 (exit $ac_status); }; }; then
31915 wx_cv_func_backtrace=yes
31916else
31917 echo "$as_me: failed program was:" >&5
31918sed 's/^/| /' conftest.$ac_ext >&5
31919
31920wx_cv_func_backtrace=no
31921
31922fi
31923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31924
31925
31926fi
31927echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
31928echo "${ECHO_T}$wx_cv_func_backtrace" >&6
31929
31930
31931 if test "$wx_cv_func_backtrace" = "no"; then
31932 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
31933echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
31934 wxUSE_STACKWALKER=no
31935 else
31936 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
31937echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
31938if test "${wx_cv_func_cxa_demangle+set}" = set; then
31939 echo $ECHO_N "(cached) $ECHO_C" >&6
31940else
31941
31942 cat >conftest.$ac_ext <<_ACEOF
31943/* confdefs.h. */
31944_ACEOF
31945cat confdefs.h >>conftest.$ac_ext
31946cat >>conftest.$ac_ext <<_ACEOF
31947/* end confdefs.h. */
31948#include <cxxabi.h>
31949int
31950main ()
31951{
31952
31953 int rc;
31954 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
31955
31956 ;
31957 return 0;
31958}
31959_ACEOF
dfe0c803
JS
31960rm -f conftest.$ac_objext conftest$ac_exeext
31961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31962 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
31963 ac_status=$?
31964 grep -v '^ *+' conftest.er1 >conftest.err
31965 rm -f conftest.er1
31966 cat conftest.err >&5
31967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968 (exit $ac_status); } &&
9dd0f6c2 31969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31971 (eval $ac_try) 2>&5
31972 ac_status=$?
31973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31974 (exit $ac_status); }; } &&
dfe0c803 31975 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
31976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31977 (eval $ac_try) 2>&5
31978 ac_status=$?
31979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31980 (exit $ac_status); }; }; then
31981 wx_cv_func_cxa_demangle=yes
31982else
31983 echo "$as_me: failed program was:" >&5
31984sed 's/^/| /' conftest.$ac_ext >&5
31985
31986wx_cv_func_cxa_demangle=no
31987
31988fi
dfe0c803
JS
31989rm -f conftest.err conftest.$ac_objext \
31990 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
31991
31992
31993fi
31994echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
31995echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
31996
31997 if test "$wx_cv_func_cxa_demangle" = "yes"; then
31998 cat >>confdefs.h <<\_ACEOF
31999#define HAVE_CXA_DEMANGLE 1
32000_ACEOF
32001
32002 fi
32003 fi
32004
32005 ac_ext=c
32006ac_cpp='$CPP $CPPFLAGS'
32007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32009ac_compiler_gnu=$ac_cv_c_compiler_gnu
32010
32011fi
32012
898beab1
DE
32013if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
32014 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
32015echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
32016 wxUSE_STACKWALKER=no
32017fi
32018
32019
a848cd7e
SC
32020
32021
32022for ac_func in mkstemp mktemp
32023do
32024as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32025echo "$as_me:$LINENO: checking for $ac_func" >&5
32026echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32027if eval "test \"\${$as_ac_var+set}\" = set"; then
32028 echo $ECHO_N "(cached) $ECHO_C" >&6
32029else
32030 cat >conftest.$ac_ext <<_ACEOF
32031/* confdefs.h. */
32032_ACEOF
32033cat confdefs.h >>conftest.$ac_ext
32034cat >>conftest.$ac_ext <<_ACEOF
32035/* end confdefs.h. */
ac1cb8d3
VS
32036/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32038#define $ac_func innocuous_$ac_func
32039
a848cd7e
SC
32040/* System header to define __stub macros and hopefully few prototypes,
32041 which can conflict with char $ac_func (); below.
32042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32043 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32044
a848cd7e
SC
32045#ifdef __STDC__
32046# include <limits.h>
32047#else
32048# include <assert.h>
32049#endif
ac1cb8d3
VS
32050
32051#undef $ac_func
32052
a848cd7e
SC
32053/* Override any gcc2 internal prototype to avoid an error. */
32054#ifdef __cplusplus
32055extern "C"
32056{
32057#endif
32058/* We use char because int might match the return type of a gcc2
32059 builtin and then its argument prototype would still apply. */
32060char $ac_func ();
32061/* The GNU C library defines this for functions which it implements
32062 to always fail with ENOSYS. Some functions are actually named
32063 something starting with __ and the normal name is an alias. */
32064#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32065choke me
32066#else
32067char (*f) () = $ac_func;
32068#endif
32069#ifdef __cplusplus
32070}
32071#endif
32072
32073int
32074main ()
32075{
32076return f != $ac_func;
32077 ;
32078 return 0;
32079}
32080_ACEOF
32081rm -f conftest.$ac_objext conftest$ac_exeext
32082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32083 (eval $ac_link) 2>conftest.er1
a848cd7e 32084 ac_status=$?
ac1cb8d3
VS
32085 grep -v '^ *+' conftest.er1 >conftest.err
32086 rm -f conftest.er1
32087 cat conftest.err >&5
a848cd7e
SC
32088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089 (exit $ac_status); } &&
9dd0f6c2 32090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32092 (eval $ac_try) 2>&5
32093 ac_status=$?
32094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32095 (exit $ac_status); }; } &&
32096 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32098 (eval $ac_try) 2>&5
32099 ac_status=$?
32100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101 (exit $ac_status); }; }; then
32102 eval "$as_ac_var=yes"
32103else
32104 echo "$as_me: failed program was:" >&5
32105sed 's/^/| /' conftest.$ac_ext >&5
32106
32107eval "$as_ac_var=no"
32108fi
ac1cb8d3
VS
32109rm -f conftest.err conftest.$ac_objext \
32110 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32111fi
32112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32113echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32114if test `eval echo '${'$as_ac_var'}'` = yes; then
32115 cat >>confdefs.h <<_ACEOF
32116#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32117_ACEOF
32118 break
32119fi
32120done
32121
32122
32123echo "$as_me:$LINENO: checking for statfs" >&5
32124echo $ECHO_N "checking for statfs... $ECHO_C" >&6
32125if test "${wx_cv_func_statfs+set}" = set; then
32126 echo $ECHO_N "(cached) $ECHO_C" >&6
32127else
32128 cat >conftest.$ac_ext <<_ACEOF
32129/* confdefs.h. */
32130_ACEOF
32131cat confdefs.h >>conftest.$ac_ext
32132cat >>conftest.$ac_ext <<_ACEOF
32133/* end confdefs.h. */
32134
32135 #if defined(__BSD__)
32136 #include <sys/param.h>
32137 #include <sys/mount.h>
32138 #else
32139 #include <sys/vfs.h>
32140 #endif
32141
32142int
32143main ()
32144{
32145
32146 long l;
32147 struct statfs fs;
32148 statfs("/", &fs);
32149 l = fs.f_bsize;
32150 l += fs.f_blocks;
32151 l += fs.f_bavail;
32152
32153 ;
32154 return 0;
32155}
32156_ACEOF
32157rm -f conftest.$ac_objext
32158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32159 (eval $ac_compile) 2>conftest.er1
a848cd7e 32160 ac_status=$?
ac1cb8d3
VS
32161 grep -v '^ *+' conftest.er1 >conftest.err
32162 rm -f conftest.er1
32163 cat conftest.err >&5
a848cd7e
SC
32164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165 (exit $ac_status); } &&
9dd0f6c2 32166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32168 (eval $ac_try) 2>&5
32169 ac_status=$?
32170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32171 (exit $ac_status); }; } &&
32172 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
32178
32179 wx_cv_func_statfs=yes
32180
32181else
32182 echo "$as_me: failed program was:" >&5
32183sed 's/^/| /' conftest.$ac_ext >&5
32184
32185
32186 wx_cv_func_statfs=no
32187
32188
32189fi
ac1cb8d3 32190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32191
32192fi
32193echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
32194echo "${ECHO_T}$wx_cv_func_statfs" >&6
32195
32196if test "$wx_cv_func_statfs" = "yes"; then
32197 wx_cv_type_statvfs_t="struct statfs"
32198 cat >>confdefs.h <<\_ACEOF
32199#define HAVE_STATFS 1
32200_ACEOF
32201
32202else
32203 echo "$as_me:$LINENO: checking for statvfs" >&5
32204echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
32205if test "${wx_cv_func_statvfs+set}" = set; then
32206 echo $ECHO_N "(cached) $ECHO_C" >&6
32207else
32208 cat >conftest.$ac_ext <<_ACEOF
32209/* confdefs.h. */
32210_ACEOF
32211cat confdefs.h >>conftest.$ac_ext
32212cat >>conftest.$ac_ext <<_ACEOF
32213/* end confdefs.h. */
32214
32215 #include <stddef.h>
32216 #include <sys/statvfs.h>
32217
32218int
32219main ()
32220{
32221
32222 statvfs("/", NULL);
32223
32224 ;
32225 return 0;
32226}
32227_ACEOF
32228rm -f conftest.$ac_objext
32229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32230 (eval $ac_compile) 2>conftest.er1
a848cd7e 32231 ac_status=$?
ac1cb8d3
VS
32232 grep -v '^ *+' conftest.er1 >conftest.err
32233 rm -f conftest.er1
32234 cat conftest.err >&5
a848cd7e
SC
32235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236 (exit $ac_status); } &&
9dd0f6c2 32237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32239 (eval $ac_try) 2>&5
32240 ac_status=$?
32241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32242 (exit $ac_status); }; } &&
32243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32245 (eval $ac_try) 2>&5
32246 ac_status=$?
32247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32248 (exit $ac_status); }; }; then
32249 wx_cv_func_statvfs=yes
32250else
32251 echo "$as_me: failed program was:" >&5
32252sed 's/^/| /' conftest.$ac_ext >&5
32253
32254wx_cv_func_statvfs=no
32255
32256fi
ac1cb8d3 32257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32258
32259fi
32260echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
32261echo "${ECHO_T}$wx_cv_func_statvfs" >&6
32262
32263 if test "$wx_cv_func_statvfs" = "yes"; then
32264
32265
32266 ac_ext=cc
32267ac_cpp='$CXXCPP $CPPFLAGS'
32268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32271
32272
32273 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
32274echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
32275if test "${wx_cv_type_statvfs_t+set}" = set; then
32276 echo $ECHO_N "(cached) $ECHO_C" >&6
32277else
32278 cat >conftest.$ac_ext <<_ACEOF
32279/* confdefs.h. */
32280_ACEOF
32281cat confdefs.h >>conftest.$ac_ext
32282cat >>conftest.$ac_ext <<_ACEOF
32283/* end confdefs.h. */
32284
32285 #include <sys/statvfs.h>
32286
32287int
32288main ()
32289{
32290
32291 long l;
32292 statvfs_t fs;
32293 statvfs("/", &fs);
32294 l = fs.f_bsize;
32295 l += fs.f_blocks;
32296 l += fs.f_bavail;
32297
32298 ;
32299 return 0;
32300}
32301_ACEOF
32302rm -f conftest.$ac_objext
32303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32304 (eval $ac_compile) 2>conftest.er1
a848cd7e 32305 ac_status=$?
ac1cb8d3
VS
32306 grep -v '^ *+' conftest.er1 >conftest.err
32307 rm -f conftest.er1
32308 cat conftest.err >&5
a848cd7e
SC
32309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32310 (exit $ac_status); } &&
9dd0f6c2 32311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32313 (eval $ac_try) 2>&5
32314 ac_status=$?
32315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316 (exit $ac_status); }; } &&
32317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32319 (eval $ac_try) 2>&5
32320 ac_status=$?
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); }; }; then
32323 wx_cv_type_statvfs_t=statvfs_t
32324else
32325 echo "$as_me: failed program was:" >&5
32326sed 's/^/| /' conftest.$ac_ext >&5
32327
32328
32329 cat >conftest.$ac_ext <<_ACEOF
32330/* confdefs.h. */
32331_ACEOF
32332cat confdefs.h >>conftest.$ac_ext
32333cat >>conftest.$ac_ext <<_ACEOF
32334/* end confdefs.h. */
32335
32336 #include <sys/statvfs.h>
32337
32338int
32339main ()
32340{
32341
32342 long l;
32343 struct statvfs fs;
32344 statvfs("/", &fs);
32345 l = fs.f_bsize;
32346 l += fs.f_blocks;
32347 l += fs.f_bavail;
32348
32349 ;
32350 return 0;
32351}
32352_ACEOF
32353rm -f conftest.$ac_objext
32354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32355 (eval $ac_compile) 2>conftest.er1
a848cd7e 32356 ac_status=$?
ac1cb8d3
VS
32357 grep -v '^ *+' conftest.er1 >conftest.err
32358 rm -f conftest.er1
32359 cat conftest.err >&5
a848cd7e
SC
32360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32361 (exit $ac_status); } &&
9dd0f6c2 32362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32364 (eval $ac_try) 2>&5
32365 ac_status=$?
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); }; } &&
32368 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32370 (eval $ac_try) 2>&5
32371 ac_status=$?
32372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32373 (exit $ac_status); }; }; then
32374 wx_cv_type_statvfs_t="struct statvfs"
32375else
32376 echo "$as_me: failed program was:" >&5
32377sed 's/^/| /' conftest.$ac_ext >&5
32378
32379wx_cv_type_statvfs_t="unknown"
32380
32381fi
ac1cb8d3 32382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32383
32384
32385fi
ac1cb8d3 32386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32387
32388fi
32389echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32390echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32391
32392 ac_ext=c
32393ac_cpp='$CPP $CPPFLAGS'
32394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32396ac_compiler_gnu=$ac_cv_c_compiler_gnu
32397
32398
32399 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32400 cat >>confdefs.h <<\_ACEOF
32401#define HAVE_STATVFS 1
32402_ACEOF
32403
32404 fi
32405 else
32406 wx_cv_type_statvfs_t="unknown"
32407 fi
32408fi
32409
32410if test "$wx_cv_type_statvfs_t" != "unknown"; then
32411 cat >>confdefs.h <<_ACEOF
32412#define WX_STATFS_T $wx_cv_type_statvfs_t
32413_ACEOF
32414
32415else
32416 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32417echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32418fi
32419
32420if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32421
32422
32423for ac_func in fcntl flock
32424do
32425as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32426echo "$as_me:$LINENO: checking for $ac_func" >&5
32427echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32428if eval "test \"\${$as_ac_var+set}\" = set"; then
32429 echo $ECHO_N "(cached) $ECHO_C" >&6
32430else
32431 cat >conftest.$ac_ext <<_ACEOF
32432/* confdefs.h. */
32433_ACEOF
32434cat confdefs.h >>conftest.$ac_ext
32435cat >>conftest.$ac_ext <<_ACEOF
32436/* end confdefs.h. */
ac1cb8d3
VS
32437/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32439#define $ac_func innocuous_$ac_func
32440
a848cd7e
SC
32441/* System header to define __stub macros and hopefully few prototypes,
32442 which can conflict with char $ac_func (); below.
32443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32444 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32445
a848cd7e
SC
32446#ifdef __STDC__
32447# include <limits.h>
32448#else
32449# include <assert.h>
32450#endif
ac1cb8d3
VS
32451
32452#undef $ac_func
32453
a848cd7e
SC
32454/* Override any gcc2 internal prototype to avoid an error. */
32455#ifdef __cplusplus
32456extern "C"
32457{
32458#endif
32459/* We use char because int might match the return type of a gcc2
32460 builtin and then its argument prototype would still apply. */
32461char $ac_func ();
32462/* The GNU C library defines this for functions which it implements
32463 to always fail with ENOSYS. Some functions are actually named
32464 something starting with __ and the normal name is an alias. */
32465#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32466choke me
32467#else
32468char (*f) () = $ac_func;
32469#endif
32470#ifdef __cplusplus
32471}
32472#endif
32473
32474int
32475main ()
32476{
32477return f != $ac_func;
32478 ;
32479 return 0;
32480}
32481_ACEOF
32482rm -f conftest.$ac_objext conftest$ac_exeext
32483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32484 (eval $ac_link) 2>conftest.er1
a848cd7e 32485 ac_status=$?
ac1cb8d3
VS
32486 grep -v '^ *+' conftest.er1 >conftest.err
32487 rm -f conftest.er1
32488 cat conftest.err >&5
a848cd7e
SC
32489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32490 (exit $ac_status); } &&
9dd0f6c2 32491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32493 (eval $ac_try) 2>&5
32494 ac_status=$?
32495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496 (exit $ac_status); }; } &&
32497 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32499 (eval $ac_try) 2>&5
32500 ac_status=$?
32501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502 (exit $ac_status); }; }; then
32503 eval "$as_ac_var=yes"
32504else
32505 echo "$as_me: failed program was:" >&5
32506sed 's/^/| /' conftest.$ac_ext >&5
32507
32508eval "$as_ac_var=no"
32509fi
ac1cb8d3
VS
32510rm -f conftest.err conftest.$ac_objext \
32511 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32512fi
32513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32514echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32515if test `eval echo '${'$as_ac_var'}'` = yes; then
32516 cat >>confdefs.h <<_ACEOF
32517#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32518_ACEOF
32519 break
32520fi
32521done
32522
32523
32524 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32525 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32526echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32527 wxUSE_SNGLINST_CHECKER=no
32528 fi
32529fi
32530
32531
32532for ac_func in timegm
32533do
32534as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32535echo "$as_me:$LINENO: checking for $ac_func" >&5
32536echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32537if eval "test \"\${$as_ac_var+set}\" = set"; then
32538 echo $ECHO_N "(cached) $ECHO_C" >&6
32539else
32540 cat >conftest.$ac_ext <<_ACEOF
32541/* confdefs.h. */
32542_ACEOF
32543cat confdefs.h >>conftest.$ac_ext
32544cat >>conftest.$ac_ext <<_ACEOF
32545/* end confdefs.h. */
ac1cb8d3
VS
32546/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32548#define $ac_func innocuous_$ac_func
32549
a848cd7e
SC
32550/* System header to define __stub macros and hopefully few prototypes,
32551 which can conflict with char $ac_func (); below.
32552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32553 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32554
a848cd7e
SC
32555#ifdef __STDC__
32556# include <limits.h>
32557#else
32558# include <assert.h>
32559#endif
ac1cb8d3
VS
32560
32561#undef $ac_func
32562
a848cd7e
SC
32563/* Override any gcc2 internal prototype to avoid an error. */
32564#ifdef __cplusplus
32565extern "C"
32566{
32567#endif
32568/* We use char because int might match the return type of a gcc2
32569 builtin and then its argument prototype would still apply. */
32570char $ac_func ();
32571/* The GNU C library defines this for functions which it implements
32572 to always fail with ENOSYS. Some functions are actually named
32573 something starting with __ and the normal name is an alias. */
32574#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32575choke me
32576#else
32577char (*f) () = $ac_func;
32578#endif
32579#ifdef __cplusplus
32580}
32581#endif
32582
32583int
32584main ()
32585{
32586return f != $ac_func;
32587 ;
32588 return 0;
32589}
32590_ACEOF
32591rm -f conftest.$ac_objext conftest$ac_exeext
32592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32593 (eval $ac_link) 2>conftest.er1
a848cd7e 32594 ac_status=$?
ac1cb8d3
VS
32595 grep -v '^ *+' conftest.er1 >conftest.err
32596 rm -f conftest.er1
32597 cat conftest.err >&5
a848cd7e
SC
32598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32599 (exit $ac_status); } &&
9dd0f6c2 32600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32602 (eval $ac_try) 2>&5
32603 ac_status=$?
32604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605 (exit $ac_status); }; } &&
32606 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32608 (eval $ac_try) 2>&5
32609 ac_status=$?
32610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32611 (exit $ac_status); }; }; then
32612 eval "$as_ac_var=yes"
32613else
32614 echo "$as_me: failed program was:" >&5
32615sed 's/^/| /' conftest.$ac_ext >&5
32616
32617eval "$as_ac_var=no"
32618fi
ac1cb8d3
VS
32619rm -f conftest.err conftest.$ac_objext \
32620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32621fi
32622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32623echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32624if test `eval echo '${'$as_ac_var'}'` = yes; then
32625 cat >>confdefs.h <<_ACEOF
32626#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32627_ACEOF
32628
32629fi
32630done
32631
32632
32633
32634
32635for ac_func in putenv setenv
32636do
32637as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32638echo "$as_me:$LINENO: checking for $ac_func" >&5
32639echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32640if eval "test \"\${$as_ac_var+set}\" = set"; then
32641 echo $ECHO_N "(cached) $ECHO_C" >&6
32642else
32643 cat >conftest.$ac_ext <<_ACEOF
32644/* confdefs.h. */
32645_ACEOF
32646cat confdefs.h >>conftest.$ac_ext
32647cat >>conftest.$ac_ext <<_ACEOF
32648/* end confdefs.h. */
ac1cb8d3
VS
32649/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32651#define $ac_func innocuous_$ac_func
32652
a848cd7e
SC
32653/* System header to define __stub macros and hopefully few prototypes,
32654 which can conflict with char $ac_func (); below.
32655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32656 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32657
a848cd7e
SC
32658#ifdef __STDC__
32659# include <limits.h>
32660#else
32661# include <assert.h>
32662#endif
ac1cb8d3
VS
32663
32664#undef $ac_func
32665
a848cd7e
SC
32666/* Override any gcc2 internal prototype to avoid an error. */
32667#ifdef __cplusplus
32668extern "C"
32669{
32670#endif
32671/* We use char because int might match the return type of a gcc2
32672 builtin and then its argument prototype would still apply. */
32673char $ac_func ();
32674/* The GNU C library defines this for functions which it implements
32675 to always fail with ENOSYS. Some functions are actually named
32676 something starting with __ and the normal name is an alias. */
32677#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32678choke me
32679#else
32680char (*f) () = $ac_func;
32681#endif
32682#ifdef __cplusplus
32683}
32684#endif
32685
32686int
32687main ()
32688{
32689return f != $ac_func;
32690 ;
32691 return 0;
32692}
32693_ACEOF
32694rm -f conftest.$ac_objext conftest$ac_exeext
32695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32696 (eval $ac_link) 2>conftest.er1
a848cd7e 32697 ac_status=$?
ac1cb8d3
VS
32698 grep -v '^ *+' conftest.er1 >conftest.err
32699 rm -f conftest.er1
32700 cat conftest.err >&5
a848cd7e
SC
32701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32702 (exit $ac_status); } &&
9dd0f6c2 32703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32705 (eval $ac_try) 2>&5
32706 ac_status=$?
32707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708 (exit $ac_status); }; } &&
32709 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32711 (eval $ac_try) 2>&5
32712 ac_status=$?
32713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32714 (exit $ac_status); }; }; then
32715 eval "$as_ac_var=yes"
32716else
32717 echo "$as_me: failed program was:" >&5
32718sed 's/^/| /' conftest.$ac_ext >&5
32719
32720eval "$as_ac_var=no"
32721fi
ac1cb8d3
VS
32722rm -f conftest.err conftest.$ac_objext \
32723 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32724fi
32725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32726echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32727if test `eval echo '${'$as_ac_var'}'` = yes; then
32728 cat >>confdefs.h <<_ACEOF
32729#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32730_ACEOF
32731 break
32732fi
32733done
32734
32735
32736HAVE_SOME_SLEEP_FUNC=0
32737if test "$USE_BEOS" = 1; then
32738 cat >>confdefs.h <<\_ACEOF
32739#define HAVE_SLEEP 1
32740_ACEOF
32741
32742 HAVE_SOME_SLEEP_FUNC=1
32743fi
32744
32745if test "$USE_DARWIN" = 1; then
32746 cat >>confdefs.h <<\_ACEOF
32747#define HAVE_USLEEP 1
32748_ACEOF
32749
32750 HAVE_SOME_SLEEP_FUNC=1
32751fi
32752
32753if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32754 POSIX4_LINK=
32755
32756for ac_func in nanosleep
32757do
32758as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32759echo "$as_me:$LINENO: checking for $ac_func" >&5
32760echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32761if eval "test \"\${$as_ac_var+set}\" = set"; then
32762 echo $ECHO_N "(cached) $ECHO_C" >&6
32763else
32764 cat >conftest.$ac_ext <<_ACEOF
32765/* confdefs.h. */
32766_ACEOF
32767cat confdefs.h >>conftest.$ac_ext
32768cat >>conftest.$ac_ext <<_ACEOF
32769/* end confdefs.h. */
ac1cb8d3
VS
32770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32772#define $ac_func innocuous_$ac_func
32773
a848cd7e
SC
32774/* System header to define __stub macros and hopefully few prototypes,
32775 which can conflict with char $ac_func (); below.
32776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32777 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32778
a848cd7e
SC
32779#ifdef __STDC__
32780# include <limits.h>
32781#else
32782# include <assert.h>
32783#endif
ac1cb8d3
VS
32784
32785#undef $ac_func
32786
a848cd7e
SC
32787/* Override any gcc2 internal prototype to avoid an error. */
32788#ifdef __cplusplus
32789extern "C"
32790{
32791#endif
32792/* We use char because int might match the return type of a gcc2
32793 builtin and then its argument prototype would still apply. */
32794char $ac_func ();
32795/* The GNU C library defines this for functions which it implements
32796 to always fail with ENOSYS. Some functions are actually named
32797 something starting with __ and the normal name is an alias. */
32798#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32799choke me
32800#else
32801char (*f) () = $ac_func;
32802#endif
32803#ifdef __cplusplus
32804}
32805#endif
32806
32807int
32808main ()
32809{
32810return f != $ac_func;
32811 ;
32812 return 0;
32813}
32814_ACEOF
32815rm -f conftest.$ac_objext conftest$ac_exeext
32816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32817 (eval $ac_link) 2>conftest.er1
a848cd7e 32818 ac_status=$?
ac1cb8d3
VS
32819 grep -v '^ *+' conftest.er1 >conftest.err
32820 rm -f conftest.er1
32821 cat conftest.err >&5
a848cd7e
SC
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); } &&
9dd0f6c2 32824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32826 (eval $ac_try) 2>&5
32827 ac_status=$?
32828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32829 (exit $ac_status); }; } &&
32830 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32832 (eval $ac_try) 2>&5
32833 ac_status=$?
32834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32835 (exit $ac_status); }; }; then
32836 eval "$as_ac_var=yes"
32837else
32838 echo "$as_me: failed program was:" >&5
32839sed 's/^/| /' conftest.$ac_ext >&5
32840
32841eval "$as_ac_var=no"
32842fi
ac1cb8d3
VS
32843rm -f conftest.err conftest.$ac_objext \
32844 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32845fi
32846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32847echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32848if test `eval echo '${'$as_ac_var'}'` = yes; then
32849 cat >>confdefs.h <<_ACEOF
32850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32851_ACEOF
32852 cat >>confdefs.h <<\_ACEOF
32853#define HAVE_NANOSLEEP 1
32854_ACEOF
32855
32856else
32857
32858 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
32859echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
32860if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
32861 echo $ECHO_N "(cached) $ECHO_C" >&6
32862else
32863 ac_check_lib_save_LIBS=$LIBS
32864LIBS="-lposix4 $LIBS"
32865cat >conftest.$ac_ext <<_ACEOF
32866/* confdefs.h. */
32867_ACEOF
32868cat confdefs.h >>conftest.$ac_ext
32869cat >>conftest.$ac_ext <<_ACEOF
32870/* end confdefs.h. */
32871
32872/* Override any gcc2 internal prototype to avoid an error. */
32873#ifdef __cplusplus
32874extern "C"
32875#endif
32876/* We use char because int might match the return type of a gcc2
32877 builtin and then its argument prototype would still apply. */
32878char nanosleep ();
32879int
32880main ()
32881{
32882nanosleep ();
32883 ;
32884 return 0;
32885}
32886_ACEOF
32887rm -f conftest.$ac_objext conftest$ac_exeext
32888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32889 (eval $ac_link) 2>conftest.er1
a848cd7e 32890 ac_status=$?
ac1cb8d3
VS
32891 grep -v '^ *+' conftest.er1 >conftest.err
32892 rm -f conftest.er1
32893 cat conftest.err >&5
a848cd7e
SC
32894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32895 (exit $ac_status); } &&
9dd0f6c2 32896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32898 (eval $ac_try) 2>&5
32899 ac_status=$?
32900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901 (exit $ac_status); }; } &&
32902 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32904 (eval $ac_try) 2>&5
32905 ac_status=$?
32906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32907 (exit $ac_status); }; }; then
32908 ac_cv_lib_posix4_nanosleep=yes
32909else
32910 echo "$as_me: failed program was:" >&5
32911sed 's/^/| /' conftest.$ac_ext >&5
32912
32913ac_cv_lib_posix4_nanosleep=no
32914fi
ac1cb8d3
VS
32915rm -f conftest.err conftest.$ac_objext \
32916 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32917LIBS=$ac_check_lib_save_LIBS
32918fi
32919echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
32920echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
32921if test $ac_cv_lib_posix4_nanosleep = yes; then
32922
32923 cat >>confdefs.h <<\_ACEOF
32924#define HAVE_NANOSLEEP 1
32925_ACEOF
32926
32927 POSIX4_LINK=" -lposix4"
32928
32929else
32930
32931
32932for ac_func in usleep
32933do
32934as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32935echo "$as_me:$LINENO: checking for $ac_func" >&5
32936echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32937if eval "test \"\${$as_ac_var+set}\" = set"; then
32938 echo $ECHO_N "(cached) $ECHO_C" >&6
32939else
32940 cat >conftest.$ac_ext <<_ACEOF
32941/* confdefs.h. */
32942_ACEOF
32943cat confdefs.h >>conftest.$ac_ext
32944cat >>conftest.$ac_ext <<_ACEOF
32945/* end confdefs.h. */
ac1cb8d3
VS
32946/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32948#define $ac_func innocuous_$ac_func
32949
a848cd7e
SC
32950/* System header to define __stub macros and hopefully few prototypes,
32951 which can conflict with char $ac_func (); below.
32952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32953 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32954
a848cd7e
SC
32955#ifdef __STDC__
32956# include <limits.h>
32957#else
32958# include <assert.h>
32959#endif
ac1cb8d3
VS
32960
32961#undef $ac_func
32962
a848cd7e
SC
32963/* Override any gcc2 internal prototype to avoid an error. */
32964#ifdef __cplusplus
32965extern "C"
32966{
32967#endif
32968/* We use char because int might match the return type of a gcc2
32969 builtin and then its argument prototype would still apply. */
32970char $ac_func ();
32971/* The GNU C library defines this for functions which it implements
32972 to always fail with ENOSYS. Some functions are actually named
32973 something starting with __ and the normal name is an alias. */
32974#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32975choke me
32976#else
32977char (*f) () = $ac_func;
32978#endif
32979#ifdef __cplusplus
32980}
32981#endif
32982
32983int
32984main ()
32985{
32986return f != $ac_func;
32987 ;
32988 return 0;
32989}
32990_ACEOF
32991rm -f conftest.$ac_objext conftest$ac_exeext
32992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32993 (eval $ac_link) 2>conftest.er1
a848cd7e 32994 ac_status=$?
ac1cb8d3
VS
32995 grep -v '^ *+' conftest.er1 >conftest.err
32996 rm -f conftest.er1
32997 cat conftest.err >&5
a848cd7e
SC
32998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999 (exit $ac_status); } &&
9dd0f6c2 33000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33002 (eval $ac_try) 2>&5
33003 ac_status=$?
33004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33005 (exit $ac_status); }; } &&
33006 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33008 (eval $ac_try) 2>&5
33009 ac_status=$?
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); }; }; then
33012 eval "$as_ac_var=yes"
33013else
33014 echo "$as_me: failed program was:" >&5
33015sed 's/^/| /' conftest.$ac_ext >&5
33016
33017eval "$as_ac_var=no"
33018fi
ac1cb8d3
VS
33019rm -f conftest.err conftest.$ac_objext \
33020 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33021fi
33022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33023echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33024if test `eval echo '${'$as_ac_var'}'` = yes; then
33025 cat >>confdefs.h <<_ACEOF
33026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33027_ACEOF
33028 cat >>confdefs.h <<\_ACEOF
33029#define HAVE_USLEEP 1
33030_ACEOF
33031
33032else
33033 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
33034echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
33035
33036fi
33037done
33038
33039
33040
33041fi
33042
33043
33044
33045fi
33046done
33047
33048fi
33049
33050
33051
33052for ac_func in uname gethostname
33053do
33054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33055echo "$as_me:$LINENO: checking for $ac_func" >&5
33056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33057if eval "test \"\${$as_ac_var+set}\" = set"; then
33058 echo $ECHO_N "(cached) $ECHO_C" >&6
33059else
33060 cat >conftest.$ac_ext <<_ACEOF
33061/* confdefs.h. */
33062_ACEOF
33063cat confdefs.h >>conftest.$ac_ext
33064cat >>conftest.$ac_ext <<_ACEOF
33065/* end confdefs.h. */
ac1cb8d3
VS
33066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33068#define $ac_func innocuous_$ac_func
33069
a848cd7e
SC
33070/* System header to define __stub macros and hopefully few prototypes,
33071 which can conflict with char $ac_func (); below.
33072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33073 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33074
a848cd7e
SC
33075#ifdef __STDC__
33076# include <limits.h>
33077#else
33078# include <assert.h>
33079#endif
ac1cb8d3
VS
33080
33081#undef $ac_func
33082
a848cd7e
SC
33083/* Override any gcc2 internal prototype to avoid an error. */
33084#ifdef __cplusplus
33085extern "C"
33086{
33087#endif
33088/* We use char because int might match the return type of a gcc2
33089 builtin and then its argument prototype would still apply. */
33090char $ac_func ();
33091/* The GNU C library defines this for functions which it implements
33092 to always fail with ENOSYS. Some functions are actually named
33093 something starting with __ and the normal name is an alias. */
33094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33095choke me
33096#else
33097char (*f) () = $ac_func;
33098#endif
33099#ifdef __cplusplus
33100}
33101#endif
33102
33103int
33104main ()
33105{
33106return f != $ac_func;
33107 ;
33108 return 0;
33109}
33110_ACEOF
33111rm -f conftest.$ac_objext conftest$ac_exeext
33112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33113 (eval $ac_link) 2>conftest.er1
a848cd7e 33114 ac_status=$?
ac1cb8d3
VS
33115 grep -v '^ *+' conftest.er1 >conftest.err
33116 rm -f conftest.er1
33117 cat conftest.err >&5
a848cd7e
SC
33118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119 (exit $ac_status); } &&
9dd0f6c2 33120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33122 (eval $ac_try) 2>&5
33123 ac_status=$?
33124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); }; } &&
33126 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33128 (eval $ac_try) 2>&5
33129 ac_status=$?
33130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131 (exit $ac_status); }; }; then
33132 eval "$as_ac_var=yes"
33133else
33134 echo "$as_me: failed program was:" >&5
33135sed 's/^/| /' conftest.$ac_ext >&5
33136
33137eval "$as_ac_var=no"
33138fi
ac1cb8d3
VS
33139rm -f conftest.err conftest.$ac_objext \
33140 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33141fi
33142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33143echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33144if test `eval echo '${'$as_ac_var'}'` = yes; then
33145 cat >>confdefs.h <<_ACEOF
33146#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33147_ACEOF
33148 break
33149fi
33150done
33151
33152
33153
33154
33155ac_ext=cc
33156ac_cpp='$CXXCPP $CPPFLAGS'
33157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33160
33161
33162
33163for ac_func in strtok_r
33164do
33165as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33166echo "$as_me:$LINENO: checking for $ac_func" >&5
33167echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33168if eval "test \"\${$as_ac_var+set}\" = set"; then
33169 echo $ECHO_N "(cached) $ECHO_C" >&6
33170else
33171 cat >conftest.$ac_ext <<_ACEOF
33172/* confdefs.h. */
33173_ACEOF
33174cat confdefs.h >>conftest.$ac_ext
33175cat >>conftest.$ac_ext <<_ACEOF
33176/* end confdefs.h. */
ac1cb8d3
VS
33177/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33179#define $ac_func innocuous_$ac_func
33180
a848cd7e
SC
33181/* System header to define __stub macros and hopefully few prototypes,
33182 which can conflict with char $ac_func (); below.
33183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33184 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33185
a848cd7e
SC
33186#ifdef __STDC__
33187# include <limits.h>
33188#else
33189# include <assert.h>
33190#endif
ac1cb8d3
VS
33191
33192#undef $ac_func
33193
a848cd7e
SC
33194/* Override any gcc2 internal prototype to avoid an error. */
33195#ifdef __cplusplus
33196extern "C"
33197{
33198#endif
33199/* We use char because int might match the return type of a gcc2
33200 builtin and then its argument prototype would still apply. */
33201char $ac_func ();
33202/* The GNU C library defines this for functions which it implements
33203 to always fail with ENOSYS. Some functions are actually named
33204 something starting with __ and the normal name is an alias. */
33205#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33206choke me
33207#else
33208char (*f) () = $ac_func;
33209#endif
33210#ifdef __cplusplus
33211}
33212#endif
33213
33214int
33215main ()
33216{
33217return f != $ac_func;
33218 ;
33219 return 0;
33220}
33221_ACEOF
33222rm -f conftest.$ac_objext conftest$ac_exeext
33223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33224 (eval $ac_link) 2>conftest.er1
a848cd7e 33225 ac_status=$?
ac1cb8d3
VS
33226 grep -v '^ *+' conftest.er1 >conftest.err
33227 rm -f conftest.er1
33228 cat conftest.err >&5
a848cd7e
SC
33229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230 (exit $ac_status); } &&
9dd0f6c2 33231 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33233 (eval $ac_try) 2>&5
33234 ac_status=$?
33235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33236 (exit $ac_status); }; } &&
33237 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33239 (eval $ac_try) 2>&5
33240 ac_status=$?
33241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33242 (exit $ac_status); }; }; then
33243 eval "$as_ac_var=yes"
33244else
33245 echo "$as_me: failed program was:" >&5
33246sed 's/^/| /' conftest.$ac_ext >&5
33247
33248eval "$as_ac_var=no"
33249fi
ac1cb8d3
VS
33250rm -f conftest.err conftest.$ac_objext \
33251 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33252fi
33253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33254echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33255if test `eval echo '${'$as_ac_var'}'` = yes; then
33256 cat >>confdefs.h <<_ACEOF
33257#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33258_ACEOF
33259
33260fi
33261done
33262
33263
33264ac_ext=c
33265ac_cpp='$CPP $CPPFLAGS'
33266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33268ac_compiler_gnu=$ac_cv_c_compiler_gnu
33269
33270
33271INET_LINK=
33272
33273for ac_func in inet_addr
33274do
33275as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33276echo "$as_me:$LINENO: checking for $ac_func" >&5
33277echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33278if eval "test \"\${$as_ac_var+set}\" = set"; then
33279 echo $ECHO_N "(cached) $ECHO_C" >&6
33280else
33281 cat >conftest.$ac_ext <<_ACEOF
33282/* confdefs.h. */
33283_ACEOF
33284cat confdefs.h >>conftest.$ac_ext
33285cat >>conftest.$ac_ext <<_ACEOF
33286/* end confdefs.h. */
ac1cb8d3
VS
33287/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33289#define $ac_func innocuous_$ac_func
33290
a848cd7e
SC
33291/* System header to define __stub macros and hopefully few prototypes,
33292 which can conflict with char $ac_func (); below.
33293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33294 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33295
a848cd7e
SC
33296#ifdef __STDC__
33297# include <limits.h>
33298#else
33299# include <assert.h>
33300#endif
ac1cb8d3
VS
33301
33302#undef $ac_func
33303
a848cd7e
SC
33304/* Override any gcc2 internal prototype to avoid an error. */
33305#ifdef __cplusplus
33306extern "C"
33307{
33308#endif
33309/* We use char because int might match the return type of a gcc2
33310 builtin and then its argument prototype would still apply. */
33311char $ac_func ();
33312/* The GNU C library defines this for functions which it implements
33313 to always fail with ENOSYS. Some functions are actually named
33314 something starting with __ and the normal name is an alias. */
33315#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33316choke me
33317#else
33318char (*f) () = $ac_func;
33319#endif
33320#ifdef __cplusplus
33321}
33322#endif
33323
33324int
33325main ()
33326{
33327return f != $ac_func;
33328 ;
33329 return 0;
33330}
33331_ACEOF
33332rm -f conftest.$ac_objext conftest$ac_exeext
33333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33334 (eval $ac_link) 2>conftest.er1
a848cd7e 33335 ac_status=$?
ac1cb8d3
VS
33336 grep -v '^ *+' conftest.er1 >conftest.err
33337 rm -f conftest.er1
33338 cat conftest.err >&5
a848cd7e
SC
33339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340 (exit $ac_status); } &&
9dd0f6c2 33341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33343 (eval $ac_try) 2>&5
33344 ac_status=$?
33345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346 (exit $ac_status); }; } &&
33347 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33349 (eval $ac_try) 2>&5
33350 ac_status=$?
33351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33352 (exit $ac_status); }; }; then
33353 eval "$as_ac_var=yes"
33354else
33355 echo "$as_me: failed program was:" >&5
33356sed 's/^/| /' conftest.$ac_ext >&5
33357
33358eval "$as_ac_var=no"
33359fi
ac1cb8d3
VS
33360rm -f conftest.err conftest.$ac_objext \
33361 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33362fi
33363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33364echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33365if test `eval echo '${'$as_ac_var'}'` = yes; then
33366 cat >>confdefs.h <<_ACEOF
33367#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33368_ACEOF
33369 cat >>confdefs.h <<\_ACEOF
33370#define HAVE_INET_ADDR 1
33371_ACEOF
33372
33373else
33374
33375 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33376echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33377if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33378 echo $ECHO_N "(cached) $ECHO_C" >&6
33379else
33380 ac_check_lib_save_LIBS=$LIBS
33381LIBS="-lnsl $LIBS"
33382cat >conftest.$ac_ext <<_ACEOF
33383/* confdefs.h. */
33384_ACEOF
33385cat confdefs.h >>conftest.$ac_ext
33386cat >>conftest.$ac_ext <<_ACEOF
33387/* end confdefs.h. */
33388
33389/* Override any gcc2 internal prototype to avoid an error. */
33390#ifdef __cplusplus
33391extern "C"
33392#endif
33393/* We use char because int might match the return type of a gcc2
33394 builtin and then its argument prototype would still apply. */
33395char inet_addr ();
33396int
33397main ()
33398{
33399inet_addr ();
33400 ;
33401 return 0;
33402}
33403_ACEOF
33404rm -f conftest.$ac_objext conftest$ac_exeext
33405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33406 (eval $ac_link) 2>conftest.er1
a848cd7e 33407 ac_status=$?
ac1cb8d3
VS
33408 grep -v '^ *+' conftest.er1 >conftest.err
33409 rm -f conftest.er1
33410 cat conftest.err >&5
a848cd7e
SC
33411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33412 (exit $ac_status); } &&
9dd0f6c2 33413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33415 (eval $ac_try) 2>&5
33416 ac_status=$?
33417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33418 (exit $ac_status); }; } &&
33419 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33421 (eval $ac_try) 2>&5
33422 ac_status=$?
33423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33424 (exit $ac_status); }; }; then
33425 ac_cv_lib_nsl_inet_addr=yes
33426else
33427 echo "$as_me: failed program was:" >&5
33428sed 's/^/| /' conftest.$ac_ext >&5
33429
33430ac_cv_lib_nsl_inet_addr=no
33431fi
ac1cb8d3
VS
33432rm -f conftest.err conftest.$ac_objext \
33433 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33434LIBS=$ac_check_lib_save_LIBS
33435fi
33436echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33437echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33438if test $ac_cv_lib_nsl_inet_addr = yes; then
33439 INET_LINK="nsl"
33440else
33441
33442 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33443echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33444if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33445 echo $ECHO_N "(cached) $ECHO_C" >&6
33446else
33447 ac_check_lib_save_LIBS=$LIBS
33448LIBS="-lresolv $LIBS"
33449cat >conftest.$ac_ext <<_ACEOF
33450/* confdefs.h. */
33451_ACEOF
33452cat confdefs.h >>conftest.$ac_ext
33453cat >>conftest.$ac_ext <<_ACEOF
33454/* end confdefs.h. */
33455
33456/* Override any gcc2 internal prototype to avoid an error. */
33457#ifdef __cplusplus
33458extern "C"
33459#endif
33460/* We use char because int might match the return type of a gcc2
33461 builtin and then its argument prototype would still apply. */
33462char inet_addr ();
33463int
33464main ()
33465{
33466inet_addr ();
33467 ;
33468 return 0;
33469}
33470_ACEOF
33471rm -f conftest.$ac_objext conftest$ac_exeext
33472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33473 (eval $ac_link) 2>conftest.er1
a848cd7e 33474 ac_status=$?
ac1cb8d3
VS
33475 grep -v '^ *+' conftest.er1 >conftest.err
33476 rm -f conftest.er1
33477 cat conftest.err >&5
a848cd7e
SC
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); } &&
9dd0f6c2 33480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33482 (eval $ac_try) 2>&5
33483 ac_status=$?
33484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33485 (exit $ac_status); }; } &&
33486 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33488 (eval $ac_try) 2>&5
33489 ac_status=$?
33490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491 (exit $ac_status); }; }; then
33492 ac_cv_lib_resolv_inet_addr=yes
33493else
33494 echo "$as_me: failed program was:" >&5
33495sed 's/^/| /' conftest.$ac_ext >&5
33496
33497ac_cv_lib_resolv_inet_addr=no
33498fi
ac1cb8d3
VS
33499rm -f conftest.err conftest.$ac_objext \
33500 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33501LIBS=$ac_check_lib_save_LIBS
33502fi
33503echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33504echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33505if test $ac_cv_lib_resolv_inet_addr = yes; then
33506 INET_LINK="resolv"
33507else
33508
33509 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33510echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33511if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33512 echo $ECHO_N "(cached) $ECHO_C" >&6
33513else
33514 ac_check_lib_save_LIBS=$LIBS
33515LIBS="-lsocket $LIBS"
33516cat >conftest.$ac_ext <<_ACEOF
33517/* confdefs.h. */
33518_ACEOF
33519cat confdefs.h >>conftest.$ac_ext
33520cat >>conftest.$ac_ext <<_ACEOF
33521/* end confdefs.h. */
33522
33523/* Override any gcc2 internal prototype to avoid an error. */
33524#ifdef __cplusplus
33525extern "C"
33526#endif
33527/* We use char because int might match the return type of a gcc2
33528 builtin and then its argument prototype would still apply. */
33529char inet_addr ();
33530int
33531main ()
33532{
33533inet_addr ();
33534 ;
33535 return 0;
33536}
33537_ACEOF
33538rm -f conftest.$ac_objext conftest$ac_exeext
33539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33540 (eval $ac_link) 2>conftest.er1
a848cd7e 33541 ac_status=$?
ac1cb8d3
VS
33542 grep -v '^ *+' conftest.er1 >conftest.err
33543 rm -f conftest.er1
33544 cat conftest.err >&5
a848cd7e
SC
33545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546 (exit $ac_status); } &&
9dd0f6c2 33547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33549 (eval $ac_try) 2>&5
33550 ac_status=$?
33551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33552 (exit $ac_status); }; } &&
33553 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33555 (eval $ac_try) 2>&5
33556 ac_status=$?
33557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33558 (exit $ac_status); }; }; then
33559 ac_cv_lib_socket_inet_addr=yes
33560else
33561 echo "$as_me: failed program was:" >&5
33562sed 's/^/| /' conftest.$ac_ext >&5
33563
33564ac_cv_lib_socket_inet_addr=no
33565fi
ac1cb8d3
VS
33566rm -f conftest.err conftest.$ac_objext \
33567 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33568LIBS=$ac_check_lib_save_LIBS
33569fi
33570echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33571echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33572if test $ac_cv_lib_socket_inet_addr = yes; then
33573 INET_LINK="socket"
33574
33575fi
33576
33577
33578
33579fi
33580
33581
33582
33583fi
33584
33585
33586
33587fi
33588done
33589
33590
33591
33592for ac_func in inet_aton
33593do
33594as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33595echo "$as_me:$LINENO: checking for $ac_func" >&5
33596echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33597if eval "test \"\${$as_ac_var+set}\" = set"; then
33598 echo $ECHO_N "(cached) $ECHO_C" >&6
33599else
33600 cat >conftest.$ac_ext <<_ACEOF
33601/* confdefs.h. */
33602_ACEOF
33603cat confdefs.h >>conftest.$ac_ext
33604cat >>conftest.$ac_ext <<_ACEOF
33605/* end confdefs.h. */
ac1cb8d3
VS
33606/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33608#define $ac_func innocuous_$ac_func
33609
a848cd7e
SC
33610/* System header to define __stub macros and hopefully few prototypes,
33611 which can conflict with char $ac_func (); below.
33612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33613 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33614
a848cd7e
SC
33615#ifdef __STDC__
33616# include <limits.h>
33617#else
33618# include <assert.h>
33619#endif
ac1cb8d3
VS
33620
33621#undef $ac_func
33622
a848cd7e
SC
33623/* Override any gcc2 internal prototype to avoid an error. */
33624#ifdef __cplusplus
33625extern "C"
33626{
33627#endif
33628/* We use char because int might match the return type of a gcc2
33629 builtin and then its argument prototype would still apply. */
33630char $ac_func ();
33631/* The GNU C library defines this for functions which it implements
33632 to always fail with ENOSYS. Some functions are actually named
33633 something starting with __ and the normal name is an alias. */
33634#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33635choke me
33636#else
33637char (*f) () = $ac_func;
33638#endif
33639#ifdef __cplusplus
33640}
33641#endif
33642
33643int
33644main ()
33645{
33646return f != $ac_func;
33647 ;
33648 return 0;
33649}
33650_ACEOF
33651rm -f conftest.$ac_objext conftest$ac_exeext
33652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33653 (eval $ac_link) 2>conftest.er1
a848cd7e 33654 ac_status=$?
ac1cb8d3
VS
33655 grep -v '^ *+' conftest.er1 >conftest.err
33656 rm -f conftest.er1
33657 cat conftest.err >&5
a848cd7e
SC
33658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659 (exit $ac_status); } &&
9dd0f6c2 33660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33662 (eval $ac_try) 2>&5
33663 ac_status=$?
33664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33665 (exit $ac_status); }; } &&
33666 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33668 (eval $ac_try) 2>&5
33669 ac_status=$?
33670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671 (exit $ac_status); }; }; then
33672 eval "$as_ac_var=yes"
33673else
33674 echo "$as_me: failed program was:" >&5
33675sed 's/^/| /' conftest.$ac_ext >&5
33676
33677eval "$as_ac_var=no"
33678fi
ac1cb8d3
VS
33679rm -f conftest.err conftest.$ac_objext \
33680 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33681fi
33682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33683echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33684if test `eval echo '${'$as_ac_var'}'` = yes; then
33685 cat >>confdefs.h <<_ACEOF
33686#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33687_ACEOF
33688 cat >>confdefs.h <<\_ACEOF
33689#define HAVE_INET_ATON 1
33690_ACEOF
33691
33692else
33693
33694 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33695echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33696echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33697if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33698 echo $ECHO_N "(cached) $ECHO_C" >&6
33699else
33700 ac_check_lib_save_LIBS=$LIBS
33701LIBS="-l$INET_LINK $LIBS"
33702cat >conftest.$ac_ext <<_ACEOF
33703/* confdefs.h. */
33704_ACEOF
33705cat confdefs.h >>conftest.$ac_ext
33706cat >>conftest.$ac_ext <<_ACEOF
33707/* end confdefs.h. */
33708
33709/* Override any gcc2 internal prototype to avoid an error. */
33710#ifdef __cplusplus
33711extern "C"
33712#endif
33713/* We use char because int might match the return type of a gcc2
33714 builtin and then its argument prototype would still apply. */
33715char inet_aton ();
33716int
33717main ()
33718{
33719inet_aton ();
33720 ;
33721 return 0;
33722}
33723_ACEOF
33724rm -f conftest.$ac_objext conftest$ac_exeext
33725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33726 (eval $ac_link) 2>conftest.er1
a848cd7e 33727 ac_status=$?
ac1cb8d3
VS
33728 grep -v '^ *+' conftest.er1 >conftest.err
33729 rm -f conftest.er1
33730 cat conftest.err >&5
a848cd7e
SC
33731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33732 (exit $ac_status); } &&
9dd0f6c2 33733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33735 (eval $ac_try) 2>&5
33736 ac_status=$?
33737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33738 (exit $ac_status); }; } &&
33739 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33741 (eval $ac_try) 2>&5
33742 ac_status=$?
33743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744 (exit $ac_status); }; }; then
33745 eval "$as_ac_Lib=yes"
33746else
33747 echo "$as_me: failed program was:" >&5
33748sed 's/^/| /' conftest.$ac_ext >&5
33749
33750eval "$as_ac_Lib=no"
33751fi
ac1cb8d3
VS
33752rm -f conftest.err conftest.$ac_objext \
33753 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33754LIBS=$ac_check_lib_save_LIBS
33755fi
33756echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33757echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33758if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33759 cat >>confdefs.h <<\_ACEOF
33760#define HAVE_INET_ATON 1
33761_ACEOF
33762
33763fi
33764
33765
33766fi
33767done
33768
33769
33770if test "x$INET_LINK" != "x"; then
33771 cat >>confdefs.h <<\_ACEOF
33772#define HAVE_INET_ADDR 1
33773_ACEOF
33774
33775 INET_LINK=" -l$INET_LINK"
33776fi
33777
33778fi
33779
33780
33781
33782EXTRALIBS_ESD=
33783echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
33784echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
33785if test "${ac_cv_lib_esd_esd_close+set}" = set; then
33786 echo $ECHO_N "(cached) $ECHO_C" >&6
33787else
33788 ac_check_lib_save_LIBS=$LIBS
33789LIBS="-lesd $LIBS"
33790cat >conftest.$ac_ext <<_ACEOF
33791/* confdefs.h. */
33792_ACEOF
33793cat confdefs.h >>conftest.$ac_ext
33794cat >>conftest.$ac_ext <<_ACEOF
33795/* end confdefs.h. */
33796
33797/* Override any gcc2 internal prototype to avoid an error. */
33798#ifdef __cplusplus
33799extern "C"
33800#endif
33801/* We use char because int might match the return type of a gcc2
33802 builtin and then its argument prototype would still apply. */
33803char esd_close ();
33804int
33805main ()
33806{
33807esd_close ();
33808 ;
33809 return 0;
33810}
33811_ACEOF
33812rm -f conftest.$ac_objext conftest$ac_exeext
33813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33814 (eval $ac_link) 2>conftest.er1
a848cd7e 33815 ac_status=$?
ac1cb8d3
VS
33816 grep -v '^ *+' conftest.er1 >conftest.err
33817 rm -f conftest.er1
33818 cat conftest.err >&5
a848cd7e
SC
33819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33820 (exit $ac_status); } &&
9dd0f6c2 33821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33823 (eval $ac_try) 2>&5
33824 ac_status=$?
33825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33826 (exit $ac_status); }; } &&
33827 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33829 (eval $ac_try) 2>&5
33830 ac_status=$?
33831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33832 (exit $ac_status); }; }; then
33833 ac_cv_lib_esd_esd_close=yes
33834else
33835 echo "$as_me: failed program was:" >&5
33836sed 's/^/| /' conftest.$ac_ext >&5
33837
33838ac_cv_lib_esd_esd_close=no
33839fi
ac1cb8d3
VS
33840rm -f conftest.err conftest.$ac_objext \
33841 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33842LIBS=$ac_check_lib_save_LIBS
33843fi
33844echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
33845echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
33846if test $ac_cv_lib_esd_esd_close = yes; then
33847
33848
33849for ac_header in esd.h
33850do
33851as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33852if eval "test \"\${$as_ac_Header+set}\" = set"; then
33853 echo "$as_me:$LINENO: checking for $ac_header" >&5
33854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33855if eval "test \"\${$as_ac_Header+set}\" = set"; then
33856 echo $ECHO_N "(cached) $ECHO_C" >&6
33857fi
33858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33859echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33860else
33861 # Is the header compilable?
33862echo "$as_me:$LINENO: checking $ac_header usability" >&5
33863echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33864cat >conftest.$ac_ext <<_ACEOF
33865/* confdefs.h. */
33866_ACEOF
33867cat confdefs.h >>conftest.$ac_ext
33868cat >>conftest.$ac_ext <<_ACEOF
33869/* end confdefs.h. */
33870$ac_includes_default
33871#include <$ac_header>
33872_ACEOF
33873rm -f conftest.$ac_objext
33874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33875 (eval $ac_compile) 2>conftest.er1
a848cd7e 33876 ac_status=$?
ac1cb8d3
VS
33877 grep -v '^ *+' conftest.er1 >conftest.err
33878 rm -f conftest.er1
33879 cat conftest.err >&5
a848cd7e
SC
33880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881 (exit $ac_status); } &&
9dd0f6c2 33882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33884 (eval $ac_try) 2>&5
33885 ac_status=$?
33886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33887 (exit $ac_status); }; } &&
33888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33890 (eval $ac_try) 2>&5
33891 ac_status=$?
33892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33893 (exit $ac_status); }; }; then
33894 ac_header_compiler=yes
33895else
33896 echo "$as_me: failed program was:" >&5
33897sed 's/^/| /' conftest.$ac_ext >&5
33898
33899ac_header_compiler=no
33900fi
ac1cb8d3 33901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33902echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33903echo "${ECHO_T}$ac_header_compiler" >&6
33904
33905# Is the header present?
33906echo "$as_me:$LINENO: checking $ac_header presence" >&5
33907echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33908cat >conftest.$ac_ext <<_ACEOF
33909/* confdefs.h. */
33910_ACEOF
33911cat confdefs.h >>conftest.$ac_ext
33912cat >>conftest.$ac_ext <<_ACEOF
33913/* end confdefs.h. */
33914#include <$ac_header>
33915_ACEOF
33916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33918 ac_status=$?
33919 grep -v '^ *+' conftest.er1 >conftest.err
33920 rm -f conftest.er1
33921 cat conftest.err >&5
33922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33923 (exit $ac_status); } >/dev/null; then
33924 if test -s conftest.err; then
33925 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33927 else
33928 ac_cpp_err=
33929 fi
33930else
33931 ac_cpp_err=yes
33932fi
33933if test -z "$ac_cpp_err"; then
33934 ac_header_preproc=yes
33935else
33936 echo "$as_me: failed program was:" >&5
33937sed 's/^/| /' conftest.$ac_ext >&5
33938
33939 ac_header_preproc=no
33940fi
33941rm -f conftest.err conftest.$ac_ext
33942echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33943echo "${ECHO_T}$ac_header_preproc" >&6
33944
33945# So? What about this header?
ac1cb8d3
VS
33946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33947 yes:no: )
a848cd7e
SC
33948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33949echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33951echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33952 ac_header_preproc=yes
a848cd7e 33953 ;;
ac1cb8d3 33954 no:yes:* )
a848cd7e
SC
33955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33956echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33958echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33960echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33962echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33966echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33967 (
33968 cat <<\_ASBOX
ac1cb8d3
VS
33969## ----------------------------------------- ##
33970## Report this to wx-dev@lists.wxwidgets.org ##
33971## ----------------------------------------- ##
a848cd7e
SC
33972_ASBOX
33973 ) |
33974 sed "s/^/$as_me: WARNING: /" >&2
33975 ;;
33976esac
33977echo "$as_me:$LINENO: checking for $ac_header" >&5
33978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33979if eval "test \"\${$as_ac_Header+set}\" = set"; then
33980 echo $ECHO_N "(cached) $ECHO_C" >&6
33981else
ac1cb8d3 33982 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33983fi
33984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33985echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33986
33987fi
33988if test `eval echo '${'$as_ac_Header'}'` = yes; then
33989 cat >>confdefs.h <<_ACEOF
33990#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33991_ACEOF
33992
33993 EXTRALIBS_ESD="-lesd"
33994
33995fi
33996
33997done
33998
33999
34000fi
34001
34002
34003
34004echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
34005echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
34006cat >conftest.$ac_ext <<_ACEOF
34007/* confdefs.h. */
34008_ACEOF
34009cat confdefs.h >>conftest.$ac_ext
34010cat >>conftest.$ac_ext <<_ACEOF
34011/* end confdefs.h. */
34012#ifdef __linux__
34013 #include <linux/cdrom.h>
34014 #else
34015 /* For Solaris */
34016 #include <sys/cdio.h>
34017 #endif
34018
34019int
34020main ()
34021{
34022struct cdrom_tocentry entry, old_entry;
34023 ;
34024 return 0;
34025}
34026_ACEOF
34027rm -f conftest.$ac_objext
34028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34029 (eval $ac_compile) 2>conftest.er1
a848cd7e 34030 ac_status=$?
ac1cb8d3
VS
34031 grep -v '^ *+' conftest.er1 >conftest.err
34032 rm -f conftest.er1
34033 cat conftest.err >&5
a848cd7e
SC
34034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035 (exit $ac_status); } &&
9dd0f6c2 34036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34038 (eval $ac_try) 2>&5
34039 ac_status=$?
34040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34041 (exit $ac_status); }; } &&
34042 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34044 (eval $ac_try) 2>&5
34045 ac_status=$?
34046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34047 (exit $ac_status); }; }; then
34048 echo "$as_me:$LINENO: result: yes" >&5
34049echo "${ECHO_T}yes" >&6
34050 cat >>confdefs.h <<\_ACEOF
34051#define HAVE_KNOWN_CDROM_INTERFACE 1
34052_ACEOF
34053
34054else
34055 echo "$as_me: failed program was:" >&5
34056sed 's/^/| /' conftest.$ac_ext >&5
34057
34058echo "$as_me:$LINENO: result: no" >&5
34059echo "${ECHO_T}no" >&6
34060fi
ac1cb8d3 34061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34062
34063
34064cat >confcache <<\_ACEOF
34065# This file is a shell script that caches the results of configure
34066# tests run on this system so they can be shared between configure
34067# scripts and configure runs, see configure's option --config-cache.
34068# It is not useful on other systems. If it contains results you don't
34069# want to keep, you may remove or edit it.
34070#
34071# config.status only pays attention to the cache file if you give it
34072# the --recheck option to rerun configure.
34073#
34074# `ac_cv_env_foo' variables (set or unset) will be overridden when
34075# loading this file, other *unset* `ac_cv_foo' will be assigned the
34076# following values.
34077
34078_ACEOF
34079
34080# The following way of writing the cache mishandles newlines in values,
34081# but we know of no workaround that is simple, portable, and efficient.
34082# So, don't put newlines in cache variables' values.
34083# Ultrix sh set writes to stderr and can't be redirected directly,
34084# and sets the high bit in the cache file unless we assign to the vars.
34085{
34086 (set) 2>&1 |
34087 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34088 *ac_space=\ *)
34089 # `set' does not quote correctly, so add quotes (double-quote
34090 # substitution turns \\\\ into \\, and sed turns \\ into \).
34091 sed -n \
ac1cb8d3
VS
34092 "s/'/'\\\\''/g;
34093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
34094 ;;
34095 *)
34096 # `set' quotes correctly as required by POSIX, so do not add quotes.
34097 sed -n \
ac1cb8d3 34098 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
34099 ;;
34100 esac;
34101} |
34102 sed '
34103 t clear
34104 : clear
34105 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34106 t end
34107 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34108 : end' >>confcache
34109if diff $cache_file confcache >/dev/null 2>&1; then :; else
34110 if test -w $cache_file; then
34111 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34112 cat confcache >$cache_file
34113 else
34114 echo "not updating unwritable cache $cache_file"
34115 fi
34116fi
34117rm -f confcache
34118
34119
34120CPP_MT_FLAG=
34121if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34122
34123
34124 THREADS_LINK=
34125 THREADS_CFLAGS=
34126
34127 if test "$wxUSE_THREADS" = "yes" ; then
34128 if test "$USE_BEOS" = 1; then
34129 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
34130echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
34131 wxUSE_THREADS="no"
34132 fi
34133 fi
34134
34135 if test "$wxUSE_THREADS" = "yes" ; then
34136
34137
34138 THREAD_OPTS="-pthread"
34139 case "${host}" in
34140 *-*-solaris2* | *-*-sunos4* )
34141 if test "x$GCC" = "xyes"; then
34142 THREAD_OPTS="-pthreads $THREAD_OPTS"
34143 else
34144 THREAD_OPTS="-mt $THREAD_OPTS"
34145 fi
34146 ;;
34147 *-*-freebsd*)
34148 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
34149 ;;
34150 *-*-darwin* | *-*-cygwin* )
34151 THREAD_OPTS=""
34152 ;;
34153 *-*-aix*)
34154 THREAD_OPTS="pthreads"
34155 ;;
34156 *-hp-hpux* )
34157 if test "x$GCC" != "xyes"; then
34158 THREAD_OPTS=""
34159 fi
34160 ;;
34161
34162 *-*-irix* )
34163 if test "x$GCC" = "xyes"; then
34164 THREAD_OPTS=""
34165 fi
34166 ;;
34167
34168 *-*-*UnixWare*)
34169 if test "x$GCC" != "xyes"; then
34170 THREAD_OPTS="-Ethread"
34171 fi
34172 ;;
34173 esac
34174
34175 THREAD_OPTS="$THREAD_OPTS pthread none"
34176
34177 THREADS_OK=no
34178 for flag in $THREAD_OPTS; do
34179 case $flag in
34180 none)
34181 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
34182echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
34183 ;;
34184
34185 -*)
34186 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
34187echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
34188 THREADS_CFLAGS="$flag"
34189 ;;
34190
34191 *)
34192 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
34193echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
34194 THREADS_LINK="-l$flag"
34195 ;;
34196 esac
34197
34198 save_LIBS="$LIBS"
34199 save_CFLAGS="$CFLAGS"
34200 LIBS="$THREADS_LINK $LIBS"
34201 CFLAGS="$THREADS_CFLAGS $CFLAGS"
34202
34203 cat >conftest.$ac_ext <<_ACEOF
34204/* confdefs.h. */
34205_ACEOF
34206cat confdefs.h >>conftest.$ac_ext
34207cat >>conftest.$ac_ext <<_ACEOF
34208/* end confdefs.h. */
34209#include <pthread.h>
34210int
34211main ()
34212{
34213pthread_create(0,0,0,0);
34214 ;
34215 return 0;
34216}
34217_ACEOF
34218rm -f conftest.$ac_objext conftest$ac_exeext
34219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34220 (eval $ac_link) 2>conftest.er1
a848cd7e 34221 ac_status=$?
ac1cb8d3
VS
34222 grep -v '^ *+' conftest.er1 >conftest.err
34223 rm -f conftest.er1
34224 cat conftest.err >&5
a848cd7e
SC
34225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34226 (exit $ac_status); } &&
9dd0f6c2 34227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34229 (eval $ac_try) 2>&5
34230 ac_status=$?
34231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34232 (exit $ac_status); }; } &&
34233 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34235 (eval $ac_try) 2>&5
34236 ac_status=$?
34237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34238 (exit $ac_status); }; }; then
34239 THREADS_OK=yes
34240else
34241 echo "$as_me: failed program was:" >&5
34242sed 's/^/| /' conftest.$ac_ext >&5
34243
34244fi
ac1cb8d3
VS
34245rm -f conftest.err conftest.$ac_objext \
34246 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34247
34248 LIBS="$save_LIBS"
34249 CFLAGS="$save_CFLAGS"
34250
34251 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
34252echo "${ECHO_T}$THREADS_OK" >&6
34253 if test "x$THREADS_OK" = "xyes"; then
34254 break;
34255 fi
34256
34257 THREADS_LINK=""
34258 THREADS_CFLAGS=""
34259 done
34260
34261 if test "x$THREADS_OK" != "xyes"; then
34262 wxUSE_THREADS=no
34263 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
34264echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
34265 else
34266 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
34267 LIBS="$THREADS_LINK $LIBS"
34268
34269 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
34270echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
34271 flag=no
34272 case "${host}" in
34273 *-aix*)
34274 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
34275 flag="-D_THREAD_SAFE"
34276 ;;
34277 *-freebsd*)
34278 flag="-D_THREAD_SAFE"
34279 ;;
34280 *-hp-hpux* )
34281 flag="-D_REENTRANT"
34282 if test "x$GCC" != "xyes"; then
34283 flag="$flag -D_RWSTD_MULTI_THREAD"
34284 fi
34285 ;;
34286 *solaris* | alpha*-osf*)
34287 flag="-D_REENTRANT"
34288 ;;
34289 esac
34290 echo "$as_me:$LINENO: result: ${flag}" >&5
34291echo "${ECHO_T}${flag}" >&6
34292 if test "x$flag" != xno; then
34293 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
34294 fi
34295
34296 if test "x$THREADS_CFLAGS" != "x"; then
34297 CFLAGS="$CFLAGS $THREADS_CFLAGS"
34298 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
34299 fi
34300 fi
34301 fi
34302
34303 if test "$wxUSE_THREADS" = "yes" ; then
34304
34305for ac_func in thr_setconcurrency
34306do
34307as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34308echo "$as_me:$LINENO: checking for $ac_func" >&5
34309echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34310if eval "test \"\${$as_ac_var+set}\" = set"; then
34311 echo $ECHO_N "(cached) $ECHO_C" >&6
34312else
34313 cat >conftest.$ac_ext <<_ACEOF
34314/* confdefs.h. */
34315_ACEOF
34316cat confdefs.h >>conftest.$ac_ext
34317cat >>conftest.$ac_ext <<_ACEOF
34318/* end confdefs.h. */
ac1cb8d3
VS
34319/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34321#define $ac_func innocuous_$ac_func
34322
a848cd7e
SC
34323/* System header to define __stub macros and hopefully few prototypes,
34324 which can conflict with char $ac_func (); below.
34325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34326 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34327
a848cd7e
SC
34328#ifdef __STDC__
34329# include <limits.h>
34330#else
34331# include <assert.h>
34332#endif
ac1cb8d3
VS
34333
34334#undef $ac_func
34335
a848cd7e
SC
34336/* Override any gcc2 internal prototype to avoid an error. */
34337#ifdef __cplusplus
34338extern "C"
34339{
34340#endif
34341/* We use char because int might match the return type of a gcc2
34342 builtin and then its argument prototype would still apply. */
34343char $ac_func ();
34344/* The GNU C library defines this for functions which it implements
34345 to always fail with ENOSYS. Some functions are actually named
34346 something starting with __ and the normal name is an alias. */
34347#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34348choke me
34349#else
34350char (*f) () = $ac_func;
34351#endif
34352#ifdef __cplusplus
34353}
34354#endif
34355
34356int
34357main ()
34358{
34359return f != $ac_func;
34360 ;
34361 return 0;
34362}
34363_ACEOF
34364rm -f conftest.$ac_objext conftest$ac_exeext
34365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34366 (eval $ac_link) 2>conftest.er1
a848cd7e 34367 ac_status=$?
ac1cb8d3
VS
34368 grep -v '^ *+' conftest.er1 >conftest.err
34369 rm -f conftest.er1
34370 cat conftest.err >&5
a848cd7e
SC
34371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34372 (exit $ac_status); } &&
9dd0f6c2 34373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34375 (eval $ac_try) 2>&5
34376 ac_status=$?
34377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378 (exit $ac_status); }; } &&
34379 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34381 (eval $ac_try) 2>&5
34382 ac_status=$?
34383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384 (exit $ac_status); }; }; then
34385 eval "$as_ac_var=yes"
34386else
34387 echo "$as_me: failed program was:" >&5
34388sed 's/^/| /' conftest.$ac_ext >&5
34389
34390eval "$as_ac_var=no"
34391fi
ac1cb8d3
VS
34392rm -f conftest.err conftest.$ac_objext \
34393 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34394fi
34395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34396echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34397if test `eval echo '${'$as_ac_var'}'` = yes; then
34398 cat >>confdefs.h <<_ACEOF
34399#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34400_ACEOF
34401
34402fi
34403done
34404
34405
34406
34407for ac_header in sched.h
34408do
34409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34410if eval "test \"\${$as_ac_Header+set}\" = set"; then
34411 echo "$as_me:$LINENO: checking for $ac_header" >&5
34412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34413if eval "test \"\${$as_ac_Header+set}\" = set"; then
34414 echo $ECHO_N "(cached) $ECHO_C" >&6
34415fi
34416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34418else
34419 # Is the header compilable?
34420echo "$as_me:$LINENO: checking $ac_header usability" >&5
34421echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34422cat >conftest.$ac_ext <<_ACEOF
34423/* confdefs.h. */
34424_ACEOF
34425cat confdefs.h >>conftest.$ac_ext
34426cat >>conftest.$ac_ext <<_ACEOF
34427/* end confdefs.h. */
34428$ac_includes_default
34429#include <$ac_header>
34430_ACEOF
34431rm -f conftest.$ac_objext
34432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34433 (eval $ac_compile) 2>conftest.er1
a848cd7e 34434 ac_status=$?
ac1cb8d3
VS
34435 grep -v '^ *+' conftest.er1 >conftest.err
34436 rm -f conftest.er1
34437 cat conftest.err >&5
a848cd7e
SC
34438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439 (exit $ac_status); } &&
9dd0f6c2 34440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34442 (eval $ac_try) 2>&5
34443 ac_status=$?
34444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34445 (exit $ac_status); }; } &&
34446 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34448 (eval $ac_try) 2>&5
34449 ac_status=$?
34450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34451 (exit $ac_status); }; }; then
34452 ac_header_compiler=yes
34453else
34454 echo "$as_me: failed program was:" >&5
34455sed 's/^/| /' conftest.$ac_ext >&5
34456
34457ac_header_compiler=no
34458fi
ac1cb8d3 34459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34460echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34461echo "${ECHO_T}$ac_header_compiler" >&6
34462
34463# Is the header present?
34464echo "$as_me:$LINENO: checking $ac_header presence" >&5
34465echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34466cat >conftest.$ac_ext <<_ACEOF
34467/* confdefs.h. */
34468_ACEOF
34469cat confdefs.h >>conftest.$ac_ext
34470cat >>conftest.$ac_ext <<_ACEOF
34471/* end confdefs.h. */
34472#include <$ac_header>
34473_ACEOF
34474if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34476 ac_status=$?
34477 grep -v '^ *+' conftest.er1 >conftest.err
34478 rm -f conftest.er1
34479 cat conftest.err >&5
34480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34481 (exit $ac_status); } >/dev/null; then
34482 if test -s conftest.err; then
34483 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34485 else
34486 ac_cpp_err=
34487 fi
34488else
34489 ac_cpp_err=yes
34490fi
34491if test -z "$ac_cpp_err"; then
34492 ac_header_preproc=yes
34493else
34494 echo "$as_me: failed program was:" >&5
34495sed 's/^/| /' conftest.$ac_ext >&5
34496
34497 ac_header_preproc=no
34498fi
34499rm -f conftest.err conftest.$ac_ext
34500echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34501echo "${ECHO_T}$ac_header_preproc" >&6
34502
34503# So? What about this header?
ac1cb8d3
VS
34504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34505 yes:no: )
a848cd7e
SC
34506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34507echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34509echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34510 ac_header_preproc=yes
a848cd7e 34511 ;;
ac1cb8d3 34512 no:yes:* )
a848cd7e
SC
34513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34514echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34516echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34518echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34520echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34522echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34524echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34525 (
34526 cat <<\_ASBOX
ac1cb8d3
VS
34527## ----------------------------------------- ##
34528## Report this to wx-dev@lists.wxwidgets.org ##
34529## ----------------------------------------- ##
a848cd7e
SC
34530_ASBOX
34531 ) |
34532 sed "s/^/$as_me: WARNING: /" >&2
34533 ;;
34534esac
34535echo "$as_me:$LINENO: checking for $ac_header" >&5
34536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34537if eval "test \"\${$as_ac_Header+set}\" = set"; then
34538 echo $ECHO_N "(cached) $ECHO_C" >&6
34539else
ac1cb8d3 34540 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34541fi
34542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34544
34545fi
34546if test `eval echo '${'$as_ac_Header'}'` = yes; then
34547 cat >>confdefs.h <<_ACEOF
34548#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34549_ACEOF
34550
34551fi
34552
34553done
34554
34555 if test "$ac_cv_header_sched_h" = "yes"; then
34556 echo "$as_me:$LINENO: checking for sched_yield" >&5
34557echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34558if test "${ac_cv_func_sched_yield+set}" = set; then
34559 echo $ECHO_N "(cached) $ECHO_C" >&6
34560else
34561 cat >conftest.$ac_ext <<_ACEOF
34562/* confdefs.h. */
34563_ACEOF
34564cat confdefs.h >>conftest.$ac_ext
34565cat >>conftest.$ac_ext <<_ACEOF
34566/* end confdefs.h. */
ac1cb8d3
VS
34567/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34569#define sched_yield innocuous_sched_yield
34570
a848cd7e
SC
34571/* System header to define __stub macros and hopefully few prototypes,
34572 which can conflict with char sched_yield (); below.
34573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34574 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34575
a848cd7e
SC
34576#ifdef __STDC__
34577# include <limits.h>
34578#else
34579# include <assert.h>
34580#endif
ac1cb8d3
VS
34581
34582#undef sched_yield
34583
a848cd7e
SC
34584/* Override any gcc2 internal prototype to avoid an error. */
34585#ifdef __cplusplus
34586extern "C"
34587{
34588#endif
34589/* We use char because int might match the return type of a gcc2
34590 builtin and then its argument prototype would still apply. */
34591char sched_yield ();
34592/* The GNU C library defines this for functions which it implements
34593 to always fail with ENOSYS. Some functions are actually named
34594 something starting with __ and the normal name is an alias. */
34595#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34596choke me
34597#else
34598char (*f) () = sched_yield;
34599#endif
34600#ifdef __cplusplus
34601}
34602#endif
34603
34604int
34605main ()
34606{
34607return f != sched_yield;
34608 ;
34609 return 0;
34610}
34611_ACEOF
34612rm -f conftest.$ac_objext conftest$ac_exeext
34613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34614 (eval $ac_link) 2>conftest.er1
a848cd7e 34615 ac_status=$?
ac1cb8d3
VS
34616 grep -v '^ *+' conftest.er1 >conftest.err
34617 rm -f conftest.er1
34618 cat conftest.err >&5
a848cd7e
SC
34619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34620 (exit $ac_status); } &&
9dd0f6c2 34621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
34627 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34629 (eval $ac_try) 2>&5
34630 ac_status=$?
34631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34632 (exit $ac_status); }; }; then
34633 ac_cv_func_sched_yield=yes
34634else
34635 echo "$as_me: failed program was:" >&5
34636sed 's/^/| /' conftest.$ac_ext >&5
34637
34638ac_cv_func_sched_yield=no
34639fi
ac1cb8d3
VS
34640rm -f conftest.err conftest.$ac_objext \
34641 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34642fi
34643echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34644echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34645if test $ac_cv_func_sched_yield = yes; then
34646 cat >>confdefs.h <<\_ACEOF
34647#define HAVE_SCHED_YIELD 1
34648_ACEOF
34649
34650else
34651
34652 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34653echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34654if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34655 echo $ECHO_N "(cached) $ECHO_C" >&6
34656else
34657 ac_check_lib_save_LIBS=$LIBS
34658LIBS="-lposix4 $LIBS"
34659cat >conftest.$ac_ext <<_ACEOF
34660/* confdefs.h. */
34661_ACEOF
34662cat confdefs.h >>conftest.$ac_ext
34663cat >>conftest.$ac_ext <<_ACEOF
34664/* end confdefs.h. */
34665
34666/* Override any gcc2 internal prototype to avoid an error. */
34667#ifdef __cplusplus
34668extern "C"
34669#endif
34670/* We use char because int might match the return type of a gcc2
34671 builtin and then its argument prototype would still apply. */
34672char sched_yield ();
34673int
34674main ()
34675{
34676sched_yield ();
34677 ;
34678 return 0;
34679}
34680_ACEOF
34681rm -f conftest.$ac_objext conftest$ac_exeext
34682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34683 (eval $ac_link) 2>conftest.er1
a848cd7e 34684 ac_status=$?
ac1cb8d3
VS
34685 grep -v '^ *+' conftest.er1 >conftest.err
34686 rm -f conftest.er1
34687 cat conftest.err >&5
a848cd7e
SC
34688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689 (exit $ac_status); } &&
9dd0f6c2 34690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34692 (eval $ac_try) 2>&5
34693 ac_status=$?
34694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34695 (exit $ac_status); }; } &&
34696 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34698 (eval $ac_try) 2>&5
34699 ac_status=$?
34700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34701 (exit $ac_status); }; }; then
34702 ac_cv_lib_posix4_sched_yield=yes
34703else
34704 echo "$as_me: failed program was:" >&5
34705sed 's/^/| /' conftest.$ac_ext >&5
34706
34707ac_cv_lib_posix4_sched_yield=no
34708fi
ac1cb8d3
VS
34709rm -f conftest.err conftest.$ac_objext \
34710 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34711LIBS=$ac_check_lib_save_LIBS
34712fi
34713echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34714echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34715if test $ac_cv_lib_posix4_sched_yield = yes; then
34716 cat >>confdefs.h <<\_ACEOF
34717#define HAVE_SCHED_YIELD 1
34718_ACEOF
34719 POSIX4_LINK=" -lposix4"
34720else
34721 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34722echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34723
34724fi
34725
34726
34727
34728fi
34729
34730 fi
34731
34732 HAVE_PRIOR_FUNCS=0
34733 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34734echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34735if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34736 echo $ECHO_N "(cached) $ECHO_C" >&6
34737else
34738 cat >conftest.$ac_ext <<_ACEOF
34739/* confdefs.h. */
34740_ACEOF
34741cat confdefs.h >>conftest.$ac_ext
34742cat >>conftest.$ac_ext <<_ACEOF
34743/* end confdefs.h. */
ac1cb8d3
VS
34744/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34746#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34747
a848cd7e
SC
34748/* System header to define __stub macros and hopefully few prototypes,
34749 which can conflict with char pthread_attr_getschedpolicy (); below.
34750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34751 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34752
a848cd7e
SC
34753#ifdef __STDC__
34754# include <limits.h>
34755#else
34756# include <assert.h>
34757#endif
ac1cb8d3
VS
34758
34759#undef pthread_attr_getschedpolicy
34760
a848cd7e
SC
34761/* Override any gcc2 internal prototype to avoid an error. */
34762#ifdef __cplusplus
34763extern "C"
34764{
34765#endif
34766/* We use char because int might match the return type of a gcc2
34767 builtin and then its argument prototype would still apply. */
34768char pthread_attr_getschedpolicy ();
34769/* The GNU C library defines this for functions which it implements
34770 to always fail with ENOSYS. Some functions are actually named
34771 something starting with __ and the normal name is an alias. */
34772#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
34773choke me
34774#else
34775char (*f) () = pthread_attr_getschedpolicy;
34776#endif
34777#ifdef __cplusplus
34778}
34779#endif
34780
34781int
34782main ()
34783{
34784return f != pthread_attr_getschedpolicy;
34785 ;
34786 return 0;
34787}
34788_ACEOF
34789rm -f conftest.$ac_objext conftest$ac_exeext
34790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34791 (eval $ac_link) 2>conftest.er1
a848cd7e 34792 ac_status=$?
ac1cb8d3
VS
34793 grep -v '^ *+' conftest.er1 >conftest.err
34794 rm -f conftest.er1
34795 cat conftest.err >&5
a848cd7e
SC
34796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34797 (exit $ac_status); } &&
9dd0f6c2 34798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34800 (eval $ac_try) 2>&5
34801 ac_status=$?
34802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34803 (exit $ac_status); }; } &&
34804 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34806 (eval $ac_try) 2>&5
34807 ac_status=$?
34808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34809 (exit $ac_status); }; }; then
34810 ac_cv_func_pthread_attr_getschedpolicy=yes
34811else
34812 echo "$as_me: failed program was:" >&5
34813sed 's/^/| /' conftest.$ac_ext >&5
34814
34815ac_cv_func_pthread_attr_getschedpolicy=no
34816fi
ac1cb8d3
VS
34817rm -f conftest.err conftest.$ac_objext \
34818 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34819fi
34820echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
34821echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
34822if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
34823 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
34824echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
34825if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
34826 echo $ECHO_N "(cached) $ECHO_C" >&6
34827else
34828 cat >conftest.$ac_ext <<_ACEOF
34829/* confdefs.h. */
34830_ACEOF
34831cat confdefs.h >>conftest.$ac_ext
34832cat >>conftest.$ac_ext <<_ACEOF
34833/* end confdefs.h. */
ac1cb8d3
VS
34834/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
34835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34836#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
34837
a848cd7e
SC
34838/* System header to define __stub macros and hopefully few prototypes,
34839 which can conflict with char pthread_attr_setschedparam (); below.
34840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34841 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34842
a848cd7e
SC
34843#ifdef __STDC__
34844# include <limits.h>
34845#else
34846# include <assert.h>
34847#endif
ac1cb8d3
VS
34848
34849#undef pthread_attr_setschedparam
34850
a848cd7e
SC
34851/* Override any gcc2 internal prototype to avoid an error. */
34852#ifdef __cplusplus
34853extern "C"
34854{
34855#endif
34856/* We use char because int might match the return type of a gcc2
34857 builtin and then its argument prototype would still apply. */
34858char pthread_attr_setschedparam ();
34859/* The GNU C library defines this for functions which it implements
34860 to always fail with ENOSYS. Some functions are actually named
34861 something starting with __ and the normal name is an alias. */
34862#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
34863choke me
34864#else
34865char (*f) () = pthread_attr_setschedparam;
34866#endif
34867#ifdef __cplusplus
34868}
34869#endif
34870
34871int
34872main ()
34873{
34874return f != pthread_attr_setschedparam;
34875 ;
34876 return 0;
34877}
34878_ACEOF
34879rm -f conftest.$ac_objext conftest$ac_exeext
34880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34881 (eval $ac_link) 2>conftest.er1
a848cd7e 34882 ac_status=$?
ac1cb8d3
VS
34883 grep -v '^ *+' conftest.er1 >conftest.err
34884 rm -f conftest.er1
34885 cat conftest.err >&5
a848cd7e
SC
34886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34887 (exit $ac_status); } &&
9dd0f6c2 34888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34890 (eval $ac_try) 2>&5
34891 ac_status=$?
34892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34893 (exit $ac_status); }; } &&
34894 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34896 (eval $ac_try) 2>&5
34897 ac_status=$?
34898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34899 (exit $ac_status); }; }; then
34900 ac_cv_func_pthread_attr_setschedparam=yes
34901else
34902 echo "$as_me: failed program was:" >&5
34903sed 's/^/| /' conftest.$ac_ext >&5
34904
34905ac_cv_func_pthread_attr_setschedparam=no
34906fi
ac1cb8d3
VS
34907rm -f conftest.err conftest.$ac_objext \
34908 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34909fi
34910echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
34911echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
34912if test $ac_cv_func_pthread_attr_setschedparam = yes; then
34913 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
34914echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
34915if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
34916 echo $ECHO_N "(cached) $ECHO_C" >&6
34917else
34918 cat >conftest.$ac_ext <<_ACEOF
34919/* confdefs.h. */
34920_ACEOF
34921cat confdefs.h >>conftest.$ac_ext
34922cat >>conftest.$ac_ext <<_ACEOF
34923/* end confdefs.h. */
ac1cb8d3
VS
34924/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
34925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34926#define sched_get_priority_max innocuous_sched_get_priority_max
34927
a848cd7e
SC
34928/* System header to define __stub macros and hopefully few prototypes,
34929 which can conflict with char sched_get_priority_max (); below.
34930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34931 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34932
a848cd7e
SC
34933#ifdef __STDC__
34934# include <limits.h>
34935#else
34936# include <assert.h>
34937#endif
ac1cb8d3
VS
34938
34939#undef sched_get_priority_max
34940
a848cd7e
SC
34941/* Override any gcc2 internal prototype to avoid an error. */
34942#ifdef __cplusplus
34943extern "C"
34944{
34945#endif
34946/* We use char because int might match the return type of a gcc2
34947 builtin and then its argument prototype would still apply. */
34948char sched_get_priority_max ();
34949/* The GNU C library defines this for functions which it implements
34950 to always fail with ENOSYS. Some functions are actually named
34951 something starting with __ and the normal name is an alias. */
34952#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
34953choke me
34954#else
34955char (*f) () = sched_get_priority_max;
34956#endif
34957#ifdef __cplusplus
34958}
34959#endif
34960
34961int
34962main ()
34963{
34964return f != sched_get_priority_max;
34965 ;
34966 return 0;
34967}
34968_ACEOF
34969rm -f conftest.$ac_objext conftest$ac_exeext
34970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34971 (eval $ac_link) 2>conftest.er1
a848cd7e 34972 ac_status=$?
ac1cb8d3
VS
34973 grep -v '^ *+' conftest.er1 >conftest.err
34974 rm -f conftest.er1
34975 cat conftest.err >&5
a848cd7e
SC
34976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34977 (exit $ac_status); } &&
9dd0f6c2 34978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34980 (eval $ac_try) 2>&5
34981 ac_status=$?
34982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34983 (exit $ac_status); }; } &&
34984 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34986 (eval $ac_try) 2>&5
34987 ac_status=$?
34988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34989 (exit $ac_status); }; }; then
34990 ac_cv_func_sched_get_priority_max=yes
34991else
34992 echo "$as_me: failed program was:" >&5
34993sed 's/^/| /' conftest.$ac_ext >&5
34994
34995ac_cv_func_sched_get_priority_max=no
34996fi
ac1cb8d3
VS
34997rm -f conftest.err conftest.$ac_objext \
34998 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34999fi
35000echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
35001echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
35002if test $ac_cv_func_sched_get_priority_max = yes; then
35003 HAVE_PRIOR_FUNCS=1
35004else
35005 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
35006echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
35007if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
35008 echo $ECHO_N "(cached) $ECHO_C" >&6
35009else
35010 ac_check_lib_save_LIBS=$LIBS
35011LIBS="-lposix4 $LIBS"
35012cat >conftest.$ac_ext <<_ACEOF
35013/* confdefs.h. */
35014_ACEOF
35015cat confdefs.h >>conftest.$ac_ext
35016cat >>conftest.$ac_ext <<_ACEOF
35017/* end confdefs.h. */
35018
35019/* Override any gcc2 internal prototype to avoid an error. */
35020#ifdef __cplusplus
35021extern "C"
35022#endif
35023/* We use char because int might match the return type of a gcc2
35024 builtin and then its argument prototype would still apply. */
35025char sched_get_priority_max ();
35026int
35027main ()
35028{
35029sched_get_priority_max ();
35030 ;
35031 return 0;
35032}
35033_ACEOF
35034rm -f conftest.$ac_objext conftest$ac_exeext
35035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35036 (eval $ac_link) 2>conftest.er1
a848cd7e 35037 ac_status=$?
ac1cb8d3
VS
35038 grep -v '^ *+' conftest.er1 >conftest.err
35039 rm -f conftest.er1
35040 cat conftest.err >&5
a848cd7e
SC
35041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35042 (exit $ac_status); } &&
9dd0f6c2 35043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35045 (eval $ac_try) 2>&5
35046 ac_status=$?
35047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35048 (exit $ac_status); }; } &&
35049 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35051 (eval $ac_try) 2>&5
35052 ac_status=$?
35053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35054 (exit $ac_status); }; }; then
35055 ac_cv_lib_posix4_sched_get_priority_max=yes
35056else
35057 echo "$as_me: failed program was:" >&5
35058sed 's/^/| /' conftest.$ac_ext >&5
35059
35060ac_cv_lib_posix4_sched_get_priority_max=no
35061fi
ac1cb8d3
VS
35062rm -f conftest.err conftest.$ac_objext \
35063 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35064LIBS=$ac_check_lib_save_LIBS
35065fi
35066echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
35067echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
35068if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
35069
35070 HAVE_PRIOR_FUNCS=1
35071 POSIX4_LINK=" -lposix4"
35072
35073fi
35074
35075
35076fi
35077
35078
35079fi
35080
35081
35082fi
35083
35084
35085 if test "$HAVE_PRIOR_FUNCS" = 1; then
35086 cat >>confdefs.h <<\_ACEOF
35087#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
35088_ACEOF
35089
35090 else
35091 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
35092echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
35093 fi
35094
35095 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
35096echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
35097if test "${ac_cv_func_pthread_cancel+set}" = set; then
35098 echo $ECHO_N "(cached) $ECHO_C" >&6
35099else
35100 cat >conftest.$ac_ext <<_ACEOF
35101/* confdefs.h. */
35102_ACEOF
35103cat confdefs.h >>conftest.$ac_ext
35104cat >>conftest.$ac_ext <<_ACEOF
35105/* end confdefs.h. */
ac1cb8d3
VS
35106/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
35107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35108#define pthread_cancel innocuous_pthread_cancel
35109
a848cd7e
SC
35110/* System header to define __stub macros and hopefully few prototypes,
35111 which can conflict with char pthread_cancel (); below.
35112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35113 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35114
a848cd7e
SC
35115#ifdef __STDC__
35116# include <limits.h>
35117#else
35118# include <assert.h>
35119#endif
ac1cb8d3
VS
35120
35121#undef pthread_cancel
35122
a848cd7e
SC
35123/* Override any gcc2 internal prototype to avoid an error. */
35124#ifdef __cplusplus
35125extern "C"
35126{
35127#endif
35128/* We use char because int might match the return type of a gcc2
35129 builtin and then its argument prototype would still apply. */
35130char pthread_cancel ();
35131/* The GNU C library defines this for functions which it implements
35132 to always fail with ENOSYS. Some functions are actually named
35133 something starting with __ and the normal name is an alias. */
35134#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
35135choke me
35136#else
35137char (*f) () = pthread_cancel;
35138#endif
35139#ifdef __cplusplus
35140}
35141#endif
35142
35143int
35144main ()
35145{
35146return f != pthread_cancel;
35147 ;
35148 return 0;
35149}
35150_ACEOF
35151rm -f conftest.$ac_objext conftest$ac_exeext
35152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35153 (eval $ac_link) 2>conftest.er1
a848cd7e 35154 ac_status=$?
ac1cb8d3
VS
35155 grep -v '^ *+' conftest.er1 >conftest.err
35156 rm -f conftest.er1
35157 cat conftest.err >&5
a848cd7e
SC
35158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35159 (exit $ac_status); } &&
9dd0f6c2 35160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35162 (eval $ac_try) 2>&5
35163 ac_status=$?
35164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35165 (exit $ac_status); }; } &&
35166 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35168 (eval $ac_try) 2>&5
35169 ac_status=$?
35170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35171 (exit $ac_status); }; }; then
35172 ac_cv_func_pthread_cancel=yes
35173else
35174 echo "$as_me: failed program was:" >&5
35175sed 's/^/| /' conftest.$ac_ext >&5
35176
35177ac_cv_func_pthread_cancel=no
35178fi
ac1cb8d3
VS
35179rm -f conftest.err conftest.$ac_objext \
35180 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35181fi
35182echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
35183echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
35184if test $ac_cv_func_pthread_cancel = yes; then
35185 cat >>confdefs.h <<\_ACEOF
35186#define HAVE_PTHREAD_CANCEL 1
35187_ACEOF
35188
35189else
35190 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
35191echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
35192fi
35193
35194
35195
35196
35197 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
35198echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
35199if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
35200 echo $ECHO_N "(cached) $ECHO_C" >&6
35201else
35202
35203 cat >conftest.$ac_ext <<_ACEOF
35204/* confdefs.h. */
35205_ACEOF
35206cat confdefs.h >>conftest.$ac_ext
35207cat >>conftest.$ac_ext <<_ACEOF
35208/* end confdefs.h. */
35209#include <pthread.h>
35210int
35211main ()
35212{
35213
35214 pthread_mutexattr_t attr;
35215 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
35216
35217 ;
35218 return 0;
35219}
35220_ACEOF
35221rm -f conftest.$ac_objext
35222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35223 (eval $ac_compile) 2>conftest.er1
a848cd7e 35224 ac_status=$?
ac1cb8d3
VS
35225 grep -v '^ *+' conftest.er1 >conftest.err
35226 rm -f conftest.er1
35227 cat conftest.err >&5
a848cd7e
SC
35228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35229 (exit $ac_status); } &&
9dd0f6c2 35230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35232 (eval $ac_try) 2>&5
35233 ac_status=$?
35234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35235 (exit $ac_status); }; } &&
35236 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35238 (eval $ac_try) 2>&5
35239 ac_status=$?
35240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35241 (exit $ac_status); }; }; then
35242
35243 wx_cv_type_pthread_mutexattr_t=yes
35244
35245else
35246 echo "$as_me: failed program was:" >&5
35247sed 's/^/| /' conftest.$ac_ext >&5
35248
35249
35250 wx_cv_type_pthread_mutexattr_t=no
35251
35252
35253fi
ac1cb8d3 35254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35255
35256fi
35257echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
35258echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
35259
35260 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
35261 cat >>confdefs.h <<\_ACEOF
35262#define HAVE_PTHREAD_MUTEXATTR_T 1
35263_ACEOF
35264
35265 else
35266 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
35267echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
35268if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
35269 echo $ECHO_N "(cached) $ECHO_C" >&6
35270else
35271
35272 cat >conftest.$ac_ext <<_ACEOF
35273/* confdefs.h. */
35274_ACEOF
35275cat confdefs.h >>conftest.$ac_ext
35276cat >>conftest.$ac_ext <<_ACEOF
35277/* end confdefs.h. */
35278#include <pthread.h>
35279int
35280main ()
35281{
35282
35283 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
35284
35285 ;
35286 return 0;
35287}
35288_ACEOF
35289rm -f conftest.$ac_objext
35290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35291 (eval $ac_compile) 2>conftest.er1
a848cd7e 35292 ac_status=$?
ac1cb8d3
VS
35293 grep -v '^ *+' conftest.er1 >conftest.err
35294 rm -f conftest.er1
35295 cat conftest.err >&5
a848cd7e
SC
35296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35297 (exit $ac_status); } &&
9dd0f6c2 35298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35300 (eval $ac_try) 2>&5
35301 ac_status=$?
35302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35303 (exit $ac_status); }; } &&
35304 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35306 (eval $ac_try) 2>&5
35307 ac_status=$?
35308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35309 (exit $ac_status); }; }; then
35310
35311 wx_cv_type_pthread_rec_mutex_init=yes
35312
35313else
35314 echo "$as_me: failed program was:" >&5
35315sed 's/^/| /' conftest.$ac_ext >&5
35316
35317
35318 wx_cv_type_pthread_rec_mutex_init=no
35319
35320
35321fi
ac1cb8d3 35322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35323
35324fi
35325echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
35326echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
35327 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
35328 cat >>confdefs.h <<\_ACEOF
35329#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
35330_ACEOF
35331
35332 else
35333 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
35334echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
35335 fi
35336 fi
35337 fi
35338
35339else
35340 if test "$wxUSE_THREADS" = "yes" ; then
35341 case "${host}" in
35342 *-*-mingw32* )
35343 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
35344echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
35345if test "${wx_cv_cflags_mthread+set}" = set; then
35346 echo $ECHO_N "(cached) $ECHO_C" >&6
35347else
35348
35349 CFLAGS_OLD="$CFLAGS"
35350 CFLAGS="$CFLAGS -mthreads"
35351 cat >conftest.$ac_ext <<_ACEOF
35352/* confdefs.h. */
35353_ACEOF
35354cat confdefs.h >>conftest.$ac_ext
35355cat >>conftest.$ac_ext <<_ACEOF
35356/* end confdefs.h. */
35357
35358int
35359main ()
35360{
35361
35362 ;
35363 return 0;
35364}
35365_ACEOF
35366rm -f conftest.$ac_objext
35367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35368 (eval $ac_compile) 2>conftest.er1
a848cd7e 35369 ac_status=$?
ac1cb8d3
VS
35370 grep -v '^ *+' conftest.er1 >conftest.err
35371 rm -f conftest.er1
35372 cat conftest.err >&5
a848cd7e
SC
35373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35374 (exit $ac_status); } &&
9dd0f6c2 35375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35377 (eval $ac_try) 2>&5
35378 ac_status=$?
35379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35380 (exit $ac_status); }; } &&
35381 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35383 (eval $ac_try) 2>&5
35384 ac_status=$?
35385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35386 (exit $ac_status); }; }; then
35387 wx_cv_cflags_mthread=yes
35388else
35389 echo "$as_me: failed program was:" >&5
35390sed 's/^/| /' conftest.$ac_ext >&5
35391
35392wx_cv_cflags_mthread=no
35393
35394fi
ac1cb8d3 35395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35396
35397
35398fi
35399echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
35400echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
35401
35402 if test "$wx_cv_cflags_mthread" = "yes"; then
35403 CXXFLAGS="$CXXFLAGS -mthreads"
35404 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
35405 LDFLAGS="$LDFLAGS -mthreads"
35406 else
35407 CFLAGS="$CFLAGS_OLD"
35408 fi
35409 ;;
35410 *-pc-os2*emx )
35411 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
35412 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
35413 LDFLAGS="$LDFLAGS -Zmt"
35414 ;;
35415 esac
35416 fi
35417fi
35418
35419if test "$wxUSE_THREADS" = "yes"; then
35420 cat >>confdefs.h <<\_ACEOF
35421#define wxUSE_THREADS 1
35422_ACEOF
35423
35424
35425 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
35426else
35427 if test "$ac_cv_func_strtok_r" = "yes"; then
35428 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
35429echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
35430 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
35431 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35432 echo "$as_me:$LINENO: result: yes" >&5
35433echo "${ECHO_T}yes" >&6
35434 else
35435 echo "$as_me:$LINENO: result: no" >&5
35436echo "${ECHO_T}no" >&6
35437 fi
35438 fi
35439fi
35440
35441if test "$WXGTK20" = 1 ; then
35442 cat >>confdefs.h <<_ACEOF
35443#define __WXGTK20__ $WXGTK20
35444_ACEOF
35445
35446 WXGTK12=1
35447fi
35448
35449if test "$WXGTK12" = 1 ; then
35450 cat >>confdefs.h <<_ACEOF
35451#define __WXGTK12__ $WXGTK12
35452_ACEOF
35453
35454fi
35455
35456if test "$WXGTK127" = 1 ; then
35457 cat >>confdefs.h <<_ACEOF
35458#define __WXGTK127__ $WXGTK127
35459_ACEOF
35460
35461fi
35462
35463if test "$WXGPE" = 1 ; then
35464 cat >>confdefs.h <<_ACEOF
35465#define __WXGPE__ $WXGPE
35466_ACEOF
35467
35468fi
35469
35470WXDEBUG=
35471
35472if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35473 WXDEBUG="-g"
35474 wxUSE_OPTIMISE=no
35475fi
35476
35477if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35478 wxUSE_DEBUG_INFO=yes
35479 WXDEBUG="-ggdb"
35480fi
35481
35482if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35483 cat >>confdefs.h <<\_ACEOF
35484#define WXDEBUG 1
35485_ACEOF
35486
35487 WXDEBUG_DEFINE="-D__WXDEBUG__"
35488else
35489 if test "$wxUSE_GTK" = 1 ; then
35490 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35491 fi
35492fi
35493
35494if test "$wxUSE_MEM_TRACING" = "yes" ; then
35495 cat >>confdefs.h <<\_ACEOF
35496#define wxUSE_MEMORY_TRACING 1
35497_ACEOF
35498
35499 cat >>confdefs.h <<\_ACEOF
35500#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35501_ACEOF
35502
35503 cat >>confdefs.h <<\_ACEOF
35504#define wxUSE_DEBUG_NEW_ALWAYS 1
35505_ACEOF
35506
35507 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35508fi
35509
35510if test "$wxUSE_DMALLOC" = "yes" ; then
35511 DMALLOC_LIBS="-ldmalloc"
35512fi
35513
35514PROFILE=
35515if test "$wxUSE_PROFILE" = "yes" ; then
35516 PROFILE=" -pg"
35517fi
35518
35519CODE_GEN_FLAGS=
35520CODE_GEN_FLAGS_CXX=
35521if test "$GCC" = "yes" ; then
35522 if test "$wxUSE_NO_RTTI" = "yes" ; then
35523 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35524 fi
35525 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35526 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35527 fi
35528 if test "$wxUSE_PERMISSIVE" = "yes" ; then
35529 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35530 fi
35531
35532 case "${host}" in
35533 powerpc*-*-aix* )
35534 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35535 ;;
35536 *-hppa* )
35537 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35538 ;;
35539 esac
35540fi
35541
35542OPTIMISE=
35543if test "$wxUSE_OPTIMISE" = "no" ; then
35544 if test "$GCC" = yes ; then
35545 OPTIMISE="-O0"
35546 fi
35547else
35548 if test "$GCC" = yes ; then
35549 OPTIMISE="-O2"
35550
35551 case "${host}" in
35552 i586-*-*|i686-*-* )
35553 OPTIMISE="${OPTIMISE} "
35554 ;;
35555 esac
35556 else
35557 OPTIMISE="-O"
35558 fi
35559fi
35560
35561
35562if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35563 cat >>confdefs.h <<\_ACEOF
35564#define WXWIN_COMPATIBILITY_2_2 1
35565_ACEOF
35566
35567
35568 WXWIN_COMPATIBILITY_2_4="yes"
35569fi
35570
35571if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35572 cat >>confdefs.h <<\_ACEOF
35573#define WXWIN_COMPATIBILITY_2_4 1
35574_ACEOF
35575
35576fi
35577
35578
35579if test "$wxUSE_GUI" = "yes"; then
881bfcd6 35580 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35581#define wxUSE_GUI 1
35582_ACEOF
35583
35584
370fd4c2 35585 fi
a848cd7e
SC
35586
35587
35588if test "$wxUSE_UNIX" = "yes"; then
35589 cat >>confdefs.h <<\_ACEOF
35590#define wxUSE_UNIX 1
35591_ACEOF
35592
35593fi
35594
35595
35596if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35597
35598 HAVE_DL_FUNCS=0
35599 HAVE_SHL_FUNCS=0
35600 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35601 if test "$USE_DARWIN" = 1; then
35602 HAVE_DL_FUNCS=1
47a7e797
MW
35603 elif test "$USE_DOS" = 1; then
35604 HAVE_DL_FUNCS=0
a848cd7e
SC
35605 else
35606
35607for ac_func in dlopen
35608do
35609as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35610echo "$as_me:$LINENO: checking for $ac_func" >&5
35611echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35612if eval "test \"\${$as_ac_var+set}\" = set"; then
35613 echo $ECHO_N "(cached) $ECHO_C" >&6
35614else
35615 cat >conftest.$ac_ext <<_ACEOF
35616/* confdefs.h. */
35617_ACEOF
35618cat confdefs.h >>conftest.$ac_ext
35619cat >>conftest.$ac_ext <<_ACEOF
35620/* end confdefs.h. */
ac1cb8d3
VS
35621/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35623#define $ac_func innocuous_$ac_func
35624
a848cd7e
SC
35625/* System header to define __stub macros and hopefully few prototypes,
35626 which can conflict with char $ac_func (); below.
35627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35628 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35629
a848cd7e
SC
35630#ifdef __STDC__
35631# include <limits.h>
35632#else
35633# include <assert.h>
35634#endif
ac1cb8d3
VS
35635
35636#undef $ac_func
35637
a848cd7e
SC
35638/* Override any gcc2 internal prototype to avoid an error. */
35639#ifdef __cplusplus
35640extern "C"
35641{
35642#endif
35643/* We use char because int might match the return type of a gcc2
35644 builtin and then its argument prototype would still apply. */
35645char $ac_func ();
35646/* The GNU C library defines this for functions which it implements
35647 to always fail with ENOSYS. Some functions are actually named
35648 something starting with __ and the normal name is an alias. */
35649#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35650choke me
35651#else
35652char (*f) () = $ac_func;
35653#endif
35654#ifdef __cplusplus
35655}
35656#endif
35657
35658int
35659main ()
35660{
35661return f != $ac_func;
35662 ;
35663 return 0;
35664}
35665_ACEOF
35666rm -f conftest.$ac_objext conftest$ac_exeext
35667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35668 (eval $ac_link) 2>conftest.er1
a848cd7e 35669 ac_status=$?
ac1cb8d3
VS
35670 grep -v '^ *+' conftest.er1 >conftest.err
35671 rm -f conftest.er1
35672 cat conftest.err >&5
a848cd7e
SC
35673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35674 (exit $ac_status); } &&
9dd0f6c2 35675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35677 (eval $ac_try) 2>&5
35678 ac_status=$?
35679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680 (exit $ac_status); }; } &&
35681 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35683 (eval $ac_try) 2>&5
35684 ac_status=$?
35685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686 (exit $ac_status); }; }; then
35687 eval "$as_ac_var=yes"
35688else
35689 echo "$as_me: failed program was:" >&5
35690sed 's/^/| /' conftest.$ac_ext >&5
35691
35692eval "$as_ac_var=no"
35693fi
ac1cb8d3
VS
35694rm -f conftest.err conftest.$ac_objext \
35695 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35696fi
35697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35698echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35699if test `eval echo '${'$as_ac_var'}'` = yes; then
35700 cat >>confdefs.h <<_ACEOF
35701#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35702_ACEOF
35703
35704 cat >>confdefs.h <<\_ACEOF
35705#define HAVE_DLOPEN 1
35706_ACEOF
35707
35708 HAVE_DL_FUNCS=1
35709
35710else
35711
35712 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35713echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35714if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35715 echo $ECHO_N "(cached) $ECHO_C" >&6
35716else
35717 ac_check_lib_save_LIBS=$LIBS
35718LIBS="-ldl $LIBS"
35719cat >conftest.$ac_ext <<_ACEOF
35720/* confdefs.h. */
35721_ACEOF
35722cat confdefs.h >>conftest.$ac_ext
35723cat >>conftest.$ac_ext <<_ACEOF
35724/* end confdefs.h. */
35725
35726/* Override any gcc2 internal prototype to avoid an error. */
35727#ifdef __cplusplus
35728extern "C"
35729#endif
35730/* We use char because int might match the return type of a gcc2
35731 builtin and then its argument prototype would still apply. */
35732char dlopen ();
35733int
35734main ()
35735{
35736dlopen ();
35737 ;
35738 return 0;
35739}
35740_ACEOF
35741rm -f conftest.$ac_objext conftest$ac_exeext
35742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35743 (eval $ac_link) 2>conftest.er1
a848cd7e 35744 ac_status=$?
ac1cb8d3
VS
35745 grep -v '^ *+' conftest.er1 >conftest.err
35746 rm -f conftest.er1
35747 cat conftest.err >&5
a848cd7e
SC
35748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35749 (exit $ac_status); } &&
9dd0f6c2 35750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35752 (eval $ac_try) 2>&5
35753 ac_status=$?
35754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35755 (exit $ac_status); }; } &&
35756 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35758 (eval $ac_try) 2>&5
35759 ac_status=$?
35760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35761 (exit $ac_status); }; }; then
35762 ac_cv_lib_dl_dlopen=yes
35763else
35764 echo "$as_me: failed program was:" >&5
35765sed 's/^/| /' conftest.$ac_ext >&5
35766
35767ac_cv_lib_dl_dlopen=no
35768fi
ac1cb8d3
VS
35769rm -f conftest.err conftest.$ac_objext \
35770 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35771LIBS=$ac_check_lib_save_LIBS
35772fi
35773echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
35774echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
35775if test $ac_cv_lib_dl_dlopen = yes; then
35776
35777 cat >>confdefs.h <<\_ACEOF
35778#define HAVE_DLOPEN 1
35779_ACEOF
35780
35781 HAVE_DL_FUNCS=1
35782 DL_LINK=" -ldl$DL_LINK"
35783
35784else
35785
35786
35787for ac_func in shl_load
35788do
35789as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35790echo "$as_me:$LINENO: checking for $ac_func" >&5
35791echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35792if eval "test \"\${$as_ac_var+set}\" = set"; then
35793 echo $ECHO_N "(cached) $ECHO_C" >&6
35794else
35795 cat >conftest.$ac_ext <<_ACEOF
35796/* confdefs.h. */
35797_ACEOF
35798cat confdefs.h >>conftest.$ac_ext
35799cat >>conftest.$ac_ext <<_ACEOF
35800/* end confdefs.h. */
ac1cb8d3
VS
35801/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35803#define $ac_func innocuous_$ac_func
35804
a848cd7e
SC
35805/* System header to define __stub macros and hopefully few prototypes,
35806 which can conflict with char $ac_func (); below.
35807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35808 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35809
a848cd7e
SC
35810#ifdef __STDC__
35811# include <limits.h>
35812#else
35813# include <assert.h>
35814#endif
ac1cb8d3
VS
35815
35816#undef $ac_func
35817
a848cd7e
SC
35818/* Override any gcc2 internal prototype to avoid an error. */
35819#ifdef __cplusplus
35820extern "C"
35821{
35822#endif
35823/* We use char because int might match the return type of a gcc2
35824 builtin and then its argument prototype would still apply. */
35825char $ac_func ();
35826/* The GNU C library defines this for functions which it implements
35827 to always fail with ENOSYS. Some functions are actually named
35828 something starting with __ and the normal name is an alias. */
35829#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35830choke me
35831#else
35832char (*f) () = $ac_func;
35833#endif
35834#ifdef __cplusplus
35835}
35836#endif
35837
35838int
35839main ()
35840{
35841return f != $ac_func;
35842 ;
35843 return 0;
35844}
35845_ACEOF
35846rm -f conftest.$ac_objext conftest$ac_exeext
35847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35848 (eval $ac_link) 2>conftest.er1
a848cd7e 35849 ac_status=$?
ac1cb8d3
VS
35850 grep -v '^ *+' conftest.er1 >conftest.err
35851 rm -f conftest.er1
35852 cat conftest.err >&5
a848cd7e
SC
35853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35854 (exit $ac_status); } &&
9dd0f6c2 35855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35857 (eval $ac_try) 2>&5
35858 ac_status=$?
35859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35860 (exit $ac_status); }; } &&
35861 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35863 (eval $ac_try) 2>&5
35864 ac_status=$?
35865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35866 (exit $ac_status); }; }; then
35867 eval "$as_ac_var=yes"
35868else
35869 echo "$as_me: failed program was:" >&5
35870sed 's/^/| /' conftest.$ac_ext >&5
35871
35872eval "$as_ac_var=no"
35873fi
ac1cb8d3
VS
35874rm -f conftest.err conftest.$ac_objext \
35875 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35876fi
35877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35878echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35879if test `eval echo '${'$as_ac_var'}'` = yes; then
35880 cat >>confdefs.h <<_ACEOF
35881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35882_ACEOF
35883
35884 cat >>confdefs.h <<\_ACEOF
35885#define HAVE_SHL_LOAD 1
35886_ACEOF
35887
35888 HAVE_SHL_FUNCS=1
35889
35890else
35891
35892 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
35893echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
35894if test "${ac_cv_lib_shl_load_dld+set}" = set; then
35895 echo $ECHO_N "(cached) $ECHO_C" >&6
35896else
35897 ac_check_lib_save_LIBS=$LIBS
35898LIBS="-lshl_load $LIBS"
35899cat >conftest.$ac_ext <<_ACEOF
35900/* confdefs.h. */
35901_ACEOF
35902cat confdefs.h >>conftest.$ac_ext
35903cat >>conftest.$ac_ext <<_ACEOF
35904/* end confdefs.h. */
35905
35906/* Override any gcc2 internal prototype to avoid an error. */
35907#ifdef __cplusplus
35908extern "C"
35909#endif
35910/* We use char because int might match the return type of a gcc2
35911 builtin and then its argument prototype would still apply. */
35912char dld ();
35913int
35914main ()
35915{
35916dld ();
35917 ;
35918 return 0;
35919}
35920_ACEOF
35921rm -f conftest.$ac_objext conftest$ac_exeext
35922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35923 (eval $ac_link) 2>conftest.er1
a848cd7e 35924 ac_status=$?
ac1cb8d3
VS
35925 grep -v '^ *+' conftest.er1 >conftest.err
35926 rm -f conftest.er1
35927 cat conftest.err >&5
a848cd7e
SC
35928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35929 (exit $ac_status); } &&
9dd0f6c2 35930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35932 (eval $ac_try) 2>&5
35933 ac_status=$?
35934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35935 (exit $ac_status); }; } &&
35936 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35938 (eval $ac_try) 2>&5
35939 ac_status=$?
35940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35941 (exit $ac_status); }; }; then
35942 ac_cv_lib_shl_load_dld=yes
35943else
35944 echo "$as_me: failed program was:" >&5
35945sed 's/^/| /' conftest.$ac_ext >&5
35946
35947ac_cv_lib_shl_load_dld=no
35948fi
ac1cb8d3
VS
35949rm -f conftest.err conftest.$ac_objext \
35950 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35951LIBS=$ac_check_lib_save_LIBS
35952fi
35953echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
35954echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
35955if test $ac_cv_lib_shl_load_dld = yes; then
35956
35957 HAVE_SHL_FUNCS=1
35958 DL_LINK=" -ldld$DL_LINK"
35959
35960fi
35961
35962
35963fi
35964done
35965
35966
35967fi
35968
35969
35970fi
35971done
35972
35973
35974 if test "$HAVE_DL_FUNCS" = 1; then
35975
35976for ac_func in dlerror
35977do
35978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35979echo "$as_me:$LINENO: checking for $ac_func" >&5
35980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35981if eval "test \"\${$as_ac_var+set}\" = set"; then
35982 echo $ECHO_N "(cached) $ECHO_C" >&6
35983else
35984 cat >conftest.$ac_ext <<_ACEOF
35985/* confdefs.h. */
35986_ACEOF
35987cat confdefs.h >>conftest.$ac_ext
35988cat >>conftest.$ac_ext <<_ACEOF
35989/* end confdefs.h. */
ac1cb8d3
VS
35990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35992#define $ac_func innocuous_$ac_func
35993
a848cd7e
SC
35994/* System header to define __stub macros and hopefully few prototypes,
35995 which can conflict with char $ac_func (); below.
35996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35997 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35998
a848cd7e
SC
35999#ifdef __STDC__
36000# include <limits.h>
36001#else
36002# include <assert.h>
36003#endif
ac1cb8d3
VS
36004
36005#undef $ac_func
36006
a848cd7e
SC
36007/* Override any gcc2 internal prototype to avoid an error. */
36008#ifdef __cplusplus
36009extern "C"
36010{
36011#endif
36012/* We use char because int might match the return type of a gcc2
36013 builtin and then its argument prototype would still apply. */
36014char $ac_func ();
36015/* The GNU C library defines this for functions which it implements
36016 to always fail with ENOSYS. Some functions are actually named
36017 something starting with __ and the normal name is an alias. */
36018#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36019choke me
36020#else
36021char (*f) () = $ac_func;
36022#endif
36023#ifdef __cplusplus
36024}
36025#endif
36026
36027int
36028main ()
36029{
36030return f != $ac_func;
36031 ;
36032 return 0;
36033}
36034_ACEOF
36035rm -f conftest.$ac_objext conftest$ac_exeext
36036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36037 (eval $ac_link) 2>conftest.er1
a848cd7e 36038 ac_status=$?
ac1cb8d3
VS
36039 grep -v '^ *+' conftest.er1 >conftest.err
36040 rm -f conftest.er1
36041 cat conftest.err >&5
a848cd7e
SC
36042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36043 (exit $ac_status); } &&
9dd0f6c2 36044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36046 (eval $ac_try) 2>&5
36047 ac_status=$?
36048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36049 (exit $ac_status); }; } &&
36050 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36052 (eval $ac_try) 2>&5
36053 ac_status=$?
36054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36055 (exit $ac_status); }; }; then
36056 eval "$as_ac_var=yes"
36057else
36058 echo "$as_me: failed program was:" >&5
36059sed 's/^/| /' conftest.$ac_ext >&5
36060
36061eval "$as_ac_var=no"
36062fi
ac1cb8d3
VS
36063rm -f conftest.err conftest.$ac_objext \
36064 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36065fi
36066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36067echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36068if test `eval echo '${'$as_ac_var'}'` = yes; then
36069 cat >>confdefs.h <<_ACEOF
36070#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36071_ACEOF
36072 cat >>confdefs.h <<\_ACEOF
36073#define HAVE_DLERROR 1
36074_ACEOF
36075
36076else
36077
36078 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
36079echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
36080if test "${ac_cv_lib_dl_dlerror+set}" = set; then
36081 echo $ECHO_N "(cached) $ECHO_C" >&6
36082else
36083 ac_check_lib_save_LIBS=$LIBS
36084LIBS="-ldl $LIBS"
36085cat >conftest.$ac_ext <<_ACEOF
36086/* confdefs.h. */
36087_ACEOF
36088cat confdefs.h >>conftest.$ac_ext
36089cat >>conftest.$ac_ext <<_ACEOF
36090/* end confdefs.h. */
36091
36092/* Override any gcc2 internal prototype to avoid an error. */
36093#ifdef __cplusplus
36094extern "C"
36095#endif
36096/* We use char because int might match the return type of a gcc2
36097 builtin and then its argument prototype would still apply. */
36098char dlerror ();
36099int
36100main ()
36101{
36102dlerror ();
36103 ;
36104 return 0;
36105}
36106_ACEOF
36107rm -f conftest.$ac_objext conftest$ac_exeext
36108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36109 (eval $ac_link) 2>conftest.er1
a848cd7e 36110 ac_status=$?
ac1cb8d3
VS
36111 grep -v '^ *+' conftest.er1 >conftest.err
36112 rm -f conftest.er1
36113 cat conftest.err >&5
a848cd7e
SC
36114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36115 (exit $ac_status); } &&
9dd0f6c2 36116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36118 (eval $ac_try) 2>&5
36119 ac_status=$?
36120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36121 (exit $ac_status); }; } &&
36122 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36124 (eval $ac_try) 2>&5
36125 ac_status=$?
36126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36127 (exit $ac_status); }; }; then
36128 ac_cv_lib_dl_dlerror=yes
36129else
36130 echo "$as_me: failed program was:" >&5
36131sed 's/^/| /' conftest.$ac_ext >&5
36132
36133ac_cv_lib_dl_dlerror=no
36134fi
ac1cb8d3
VS
36135rm -f conftest.err conftest.$ac_objext \
36136 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36137LIBS=$ac_check_lib_save_LIBS
36138fi
36139echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
36140echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
36141if test $ac_cv_lib_dl_dlerror = yes; then
36142 cat >>confdefs.h <<\_ACEOF
36143#define HAVE_DLERROR 1
36144_ACEOF
36145
36146fi
36147
36148
36149
36150fi
36151done
36152
36153 fi
36154 fi
36155
36156 if test "$HAVE_DL_FUNCS" = 0; then
36157 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 36158 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
36159 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
36160echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
36161 wxUSE_DYNAMIC_LOADER=no
36162 wxUSE_DYNLIB_CLASS=no
36163 else
36164 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
36165echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
36166 fi
36167 fi
36168 fi
36169 fi
36170fi
36171
36172if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
36173 cat >>confdefs.h <<\_ACEOF
36174#define wxUSE_DYNAMIC_LOADER 1
36175_ACEOF
36176
36177fi
36178if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36179 cat >>confdefs.h <<\_ACEOF
36180#define wxUSE_DYNLIB_CLASS 1
36181_ACEOF
36182
36183fi
36184
36185
36186
36187if test "$wxUSE_PLUGINS" = "yes" ; then
36188 if test "$wxUSE_SHARED" = "no" ; then
36189 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
36190echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
36191 wxUSE_PLUGINS=no
36192 fi
36193 if test "$wxUSE_MONOLITHIC" = "yes" ; then
36194 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
36195echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
36196 wxUSE_PLUGINS=no
36197 fi
36198 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
36199 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
36200echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
36201 wxUSE_PLUGINS=no
36202 fi
36203 if test "$wxUSE_PLUGINS" = "yes" ; then
36204 cat >>confdefs.h <<\_ACEOF
36205#define wxUSE_PLUGINS 1
36206_ACEOF
36207
36208 fi
36209fi
36210
36211
36212if test "$wxUSE_STL" = "yes"; then
36213 cat >>confdefs.h <<\_ACEOF
36214#define wxUSE_STL 1
36215_ACEOF
36216
36217fi
36218
36219if test "$wxUSE_APPLE_IEEE" = "yes"; then
36220 cat >>confdefs.h <<\_ACEOF
36221#define wxUSE_APPLE_IEEE 1
36222_ACEOF
36223
36224fi
36225
36226if test "$wxUSE_TIMER" = "yes"; then
36227 cat >>confdefs.h <<\_ACEOF
36228#define wxUSE_TIMER 1
36229_ACEOF
36230
36231fi
36232
9c112555 36233if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
36234
36235for ac_header in sys/soundcard.h
36236do
36237as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36238if eval "test \"\${$as_ac_Header+set}\" = set"; then
36239 echo "$as_me:$LINENO: checking for $ac_header" >&5
36240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36241if eval "test \"\${$as_ac_Header+set}\" = set"; then
36242 echo $ECHO_N "(cached) $ECHO_C" >&6
36243fi
36244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36245echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36246else
36247 # Is the header compilable?
36248echo "$as_me:$LINENO: checking $ac_header usability" >&5
36249echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36250cat >conftest.$ac_ext <<_ACEOF
36251/* confdefs.h. */
36252_ACEOF
36253cat confdefs.h >>conftest.$ac_ext
36254cat >>conftest.$ac_ext <<_ACEOF
36255/* end confdefs.h. */
36256$ac_includes_default
36257#include <$ac_header>
36258_ACEOF
36259rm -f conftest.$ac_objext
36260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36261 (eval $ac_compile) 2>conftest.er1
a848cd7e 36262 ac_status=$?
ac1cb8d3
VS
36263 grep -v '^ *+' conftest.er1 >conftest.err
36264 rm -f conftest.er1
36265 cat conftest.err >&5
a848cd7e
SC
36266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36267 (exit $ac_status); } &&
9dd0f6c2 36268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36270 (eval $ac_try) 2>&5
36271 ac_status=$?
36272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36273 (exit $ac_status); }; } &&
36274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36276 (eval $ac_try) 2>&5
36277 ac_status=$?
36278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36279 (exit $ac_status); }; }; then
36280 ac_header_compiler=yes
36281else
36282 echo "$as_me: failed program was:" >&5
36283sed 's/^/| /' conftest.$ac_ext >&5
36284
36285ac_header_compiler=no
36286fi
ac1cb8d3 36287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36288echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36289echo "${ECHO_T}$ac_header_compiler" >&6
36290
36291# Is the header present?
36292echo "$as_me:$LINENO: checking $ac_header presence" >&5
36293echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36294cat >conftest.$ac_ext <<_ACEOF
36295/* confdefs.h. */
36296_ACEOF
36297cat confdefs.h >>conftest.$ac_ext
36298cat >>conftest.$ac_ext <<_ACEOF
36299/* end confdefs.h. */
36300#include <$ac_header>
36301_ACEOF
36302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36304 ac_status=$?
36305 grep -v '^ *+' conftest.er1 >conftest.err
36306 rm -f conftest.er1
36307 cat conftest.err >&5
36308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36309 (exit $ac_status); } >/dev/null; then
36310 if test -s conftest.err; then
36311 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36313 else
36314 ac_cpp_err=
36315 fi
36316else
36317 ac_cpp_err=yes
36318fi
36319if test -z "$ac_cpp_err"; then
36320 ac_header_preproc=yes
36321else
36322 echo "$as_me: failed program was:" >&5
36323sed 's/^/| /' conftest.$ac_ext >&5
36324
36325 ac_header_preproc=no
36326fi
36327rm -f conftest.err conftest.$ac_ext
36328echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36329echo "${ECHO_T}$ac_header_preproc" >&6
36330
36331# So? What about this header?
ac1cb8d3
VS
36332case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36333 yes:no: )
a848cd7e
SC
36334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36335echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36337echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36338 ac_header_preproc=yes
a848cd7e 36339 ;;
ac1cb8d3 36340 no:yes:* )
a848cd7e
SC
36341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36342echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36344echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36346echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36348echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36350echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36352echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36353 (
36354 cat <<\_ASBOX
ac1cb8d3
VS
36355## ----------------------------------------- ##
36356## Report this to wx-dev@lists.wxwidgets.org ##
36357## ----------------------------------------- ##
a848cd7e
SC
36358_ASBOX
36359 ) |
36360 sed "s/^/$as_me: WARNING: /" >&2
36361 ;;
36362esac
36363echo "$as_me:$LINENO: checking for $ac_header" >&5
36364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36365if eval "test \"\${$as_ac_Header+set}\" = set"; then
36366 echo $ECHO_N "(cached) $ECHO_C" >&6
36367else
ac1cb8d3 36368 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36369fi
36370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36372
36373fi
36374if test `eval echo '${'$as_ac_Header'}'` = yes; then
36375 cat >>confdefs.h <<_ACEOF
36376#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36377_ACEOF
36378
9c112555
MW
36379else
36380 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
a848cd7e
SC
36381fi
36382
36383done
36384
9c112555
MW
36385fi
36386WITH_PLUGIN_SDL=0
36387if test "$wxUSE_SOUND" = "yes"; then
36388 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
36389 if test "$wxUSE_LIBSDL" != "no"; then
36390
36391# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
36392if test "${with_sdl_prefix+set}" = set; then
36393 withval="$with_sdl_prefix"
36394 sdl_prefix="$withval"
36395else
36396 sdl_prefix=""
36397fi;
36398
36399# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
36400if test "${with_sdl_exec_prefix+set}" = set; then
36401 withval="$with_sdl_exec_prefix"
36402 sdl_exec_prefix="$withval"
36403else
36404 sdl_exec_prefix=""
36405fi;
36406# Check whether --enable-sdltest or --disable-sdltest was given.
36407if test "${enable_sdltest+set}" = set; then
36408 enableval="$enable_sdltest"
36409
36410else
36411 enable_sdltest=yes
36412fi;
36413
36414 if test x$sdl_exec_prefix != x ; then
36415 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
36416 if test x${SDL_CONFIG+set} != xset ; then
36417 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
36418 fi
36419 fi
36420 if test x$sdl_prefix != x ; then
36421 sdl_args="$sdl_args --prefix=$sdl_prefix"
36422 if test x${SDL_CONFIG+set} != xset ; then
36423 SDL_CONFIG=$sdl_prefix/bin/sdl-config
36424 fi
36425 fi
36426
36427
36428 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
36429 # Extract the first word of "sdl-config", so it can be a program name with args.
36430set dummy sdl-config; ac_word=$2
36431echo "$as_me:$LINENO: checking for $ac_word" >&5
36432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36433if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
36434 echo $ECHO_N "(cached) $ECHO_C" >&6
36435else
36436 case $SDL_CONFIG in
36437 [\\/]* | ?:[\\/]*)
36438 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36439 ;;
36440 *)
36441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36442for as_dir in $PATH
36443do
36444 IFS=$as_save_IFS
36445 test -z "$as_dir" && as_dir=.
36446 for ac_exec_ext in '' $ac_executable_extensions; do
36447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36448 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36450 break 2
36451 fi
36452done
36453done
36454
36455 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36456 ;;
36457esac
36458fi
36459SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36460
36461if test -n "$SDL_CONFIG"; then
36462 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36463echo "${ECHO_T}$SDL_CONFIG" >&6
36464else
36465 echo "$as_me:$LINENO: result: no" >&5
36466echo "${ECHO_T}no" >&6
36467fi
36468
36469 min_sdl_version=1.2.0
36470 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36471echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36472 no_sdl=""
36473 if test "$SDL_CONFIG" = "no" ; then
36474 no_sdl=yes
36475 else
36476 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36477 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36478
36479 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36480 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36481 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36482 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36483 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36484 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36485 if test "x$enable_sdltest" = "xyes" ; then
36486 ac_save_CFLAGS="$CFLAGS"
94acd38e 36487 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
36488 ac_save_LIBS="$LIBS"
36489 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36490 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36491 LIBS="$LIBS $SDL_LIBS"
36492 rm -f conf.sdltest
36493 if test "$cross_compiling" = yes; then
36494 echo $ac_n "cross compiling; assumed OK... $ac_c"
36495else
36496 cat >conftest.$ac_ext <<_ACEOF
36497/* confdefs.h. */
36498_ACEOF
36499cat confdefs.h >>conftest.$ac_ext
36500cat >>conftest.$ac_ext <<_ACEOF
36501/* end confdefs.h. */
36502
36503#include <stdio.h>
36504#include <stdlib.h>
36505#include <string.h>
36506#include "SDL.h"
36507
36508char*
36509my_strdup (char *str)
36510{
36511 char *new_str;
36512
36513 if (str)
36514 {
36515 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36516 strcpy (new_str, str);
36517 }
36518 else
36519 new_str = NULL;
36520
36521 return new_str;
36522}
36523
36524int main (int argc, char *argv[])
36525{
36526 int major, minor, micro;
36527 char *tmp_version;
36528
36529 /* This hangs on some systems (?)
36530 system ("touch conf.sdltest");
36531 */
36532 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36533
36534 /* HP/UX 9 (%@#!) writes to sscanf strings */
36535 tmp_version = my_strdup("$min_sdl_version");
36536 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36537 printf("%s, bad version string\n", "$min_sdl_version");
36538 exit(1);
36539 }
36540
36541 if (($sdl_major_version > major) ||
36542 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36543 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36544 {
36545 return 0;
36546 }
36547 else
36548 {
36549 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36550 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36551 printf("*** best to upgrade to the required version.\n");
36552 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36553 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36554 printf("*** config.cache before re-running configure\n");
36555 return 1;
36556 }
36557}
36558
36559
36560_ACEOF
36561rm -f conftest$ac_exeext
36562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36563 (eval $ac_link) 2>&5
36564 ac_status=$?
36565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36568 (eval $ac_try) 2>&5
36569 ac_status=$?
36570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36571 (exit $ac_status); }; }; then
36572 :
36573else
36574 echo "$as_me: program exited with status $ac_status" >&5
36575echo "$as_me: failed program was:" >&5
36576sed 's/^/| /' conftest.$ac_ext >&5
36577
36578( exit $ac_status )
36579no_sdl=yes
36580fi
ac1cb8d3 36581rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36582fi
36583 CFLAGS="$ac_save_CFLAGS"
94acd38e 36584 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36585 LIBS="$ac_save_LIBS"
36586 fi
36587 fi
36588 if test "x$no_sdl" = x ; then
36589 echo "$as_me:$LINENO: result: yes" >&5
36590echo "${ECHO_T}yes" >&6
36591
36592 EXTRALIBS_SDL="$SDL_LIBS"
36593 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36594 cat >>confdefs.h <<\_ACEOF
36595#define wxUSE_LIBSDL 1
36596_ACEOF
36597
36598
36599 else
36600 echo "$as_me:$LINENO: result: no" >&5
36601echo "${ECHO_T}no" >&6
36602 if test "$SDL_CONFIG" = "no" ; then
36603 echo "*** The sdl-config script installed by SDL could not be found"
36604 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36605 echo "*** your path, or set the SDL_CONFIG environment variable to the"
36606 echo "*** full path to sdl-config."
36607 else
36608 if test -f conf.sdltest ; then
36609 :
36610 else
36611 echo "*** Could not run SDL test program, checking why..."
36612 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36613 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36614 LIBS="$LIBS $SDL_LIBS"
36615 cat >conftest.$ac_ext <<_ACEOF
36616/* confdefs.h. */
36617_ACEOF
36618cat confdefs.h >>conftest.$ac_ext
36619cat >>conftest.$ac_ext <<_ACEOF
36620/* end confdefs.h. */
36621
36622#include <stdio.h>
36623#include "SDL.h"
36624
36625int main(int argc, char *argv[])
36626{ return 0; }
36627#undef main
36628#define main K_and_R_C_main
36629
36630int
36631main ()
36632{
36633 return 0;
36634 ;
36635 return 0;
36636}
36637_ACEOF
36638rm -f conftest.$ac_objext conftest$ac_exeext
36639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36640 (eval $ac_link) 2>conftest.er1
a848cd7e 36641 ac_status=$?
ac1cb8d3
VS
36642 grep -v '^ *+' conftest.er1 >conftest.err
36643 rm -f conftest.er1
36644 cat conftest.err >&5
a848cd7e
SC
36645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646 (exit $ac_status); } &&
9dd0f6c2 36647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36649 (eval $ac_try) 2>&5
36650 ac_status=$?
36651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36652 (exit $ac_status); }; } &&
36653 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36655 (eval $ac_try) 2>&5
36656 ac_status=$?
36657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36658 (exit $ac_status); }; }; then
36659 echo "*** The test program compiled, but did not run. This usually means"
36660 echo "*** that the run-time linker is not finding SDL or finding the wrong"
36661 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36662 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36663 echo "*** to the installed location Also, make sure you have run ldconfig if that"
36664 echo "*** is required on your system"
36665 echo "***"
36666 echo "*** If you have an old version installed, it is best to remove it, although"
36667 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36668else
36669 echo "$as_me: failed program was:" >&5
36670sed 's/^/| /' conftest.$ac_ext >&5
36671
36672 echo "*** The test program failed to compile or link. See the file config.log for the"
36673 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36674 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36675 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36676fi
ac1cb8d3
VS
36677rm -f conftest.err conftest.$ac_objext \
36678 conftest$ac_exeext conftest.$ac_ext
a848cd7e 36679 CFLAGS="$ac_save_CFLAGS"
94acd38e 36680 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36681 LIBS="$ac_save_LIBS"
36682 fi
36683 fi
36684 SDL_CFLAGS=""
36685 SDL_LIBS=""
36686 wxUSE_LIBSDL="no"
36687 fi
36688
36689
36690 rm -f conf.sdltest
36691
36692 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36693 WITH_PLUGIN_SDL=1
36694 fi
36695 fi
36696 fi
36697
36698 cat >>confdefs.h <<\_ACEOF
36699#define wxUSE_SOUND 1
36700_ACEOF
36701
36702 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36703fi
36704
d1c38808
VZ
36705if test "$WXGTK20" = 1; then
36706 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36707 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36708
36709
36710 succeeded=no
36711
36712 if test -z "$PKG_CONFIG"; then
36713 # Extract the first word of "pkg-config", so it can be a program name with args.
36714set dummy pkg-config; ac_word=$2
36715echo "$as_me:$LINENO: checking for $ac_word" >&5
36716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36717if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36718 echo $ECHO_N "(cached) $ECHO_C" >&6
36719else
36720 case $PKG_CONFIG in
36721 [\\/]* | ?:[\\/]*)
36722 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36723 ;;
36724 *)
36725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36726for as_dir in $PATH
36727do
36728 IFS=$as_save_IFS
36729 test -z "$as_dir" && as_dir=.
36730 for ac_exec_ext in '' $ac_executable_extensions; do
36731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36732 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36734 break 2
36735 fi
36736done
36737done
36738
36739 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
36740 ;;
36741esac
36742fi
36743PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36744
36745if test -n "$PKG_CONFIG"; then
36746 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36747echo "${ECHO_T}$PKG_CONFIG" >&6
36748else
36749 echo "$as_me:$LINENO: result: no" >&5
36750echo "${ECHO_T}no" >&6
36751fi
36752
36753 fi
36754
36755 if test "$PKG_CONFIG" = "no" ; then
36756 echo "*** The pkg-config script could not be found. Make sure it is"
36757 echo "*** in your path, or set the PKG_CONFIG environment variable"
36758 echo "*** to the full path to pkg-config."
36759 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
36760 else
36761 PKG_CONFIG_MIN_VERSION=0.9.0
36762 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
36763 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
36764echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 36765
ffa762ff 36766 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
36767 echo "$as_me:$LINENO: result: yes" >&5
36768echo "${ECHO_T}yes" >&6
36769 succeeded=yes
36770
36771 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
36772echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 36773 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36774 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
36775echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
36776
36777 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
36778echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 36779 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36780 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
36781echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
36782 else
36783 LIBGNOMEPRINTUI_CFLAGS=""
36784 LIBGNOMEPRINTUI_LIBS=""
36785 ## If we have a custom action on failure, don't print errors, but
36786 ## do set a variable so people can do so.
ffa762ff 36787 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36788
36789 fi
36790
36791
36792
36793 else
36794 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
36795 echo "*** See http://www.freedesktop.org/software/pkgconfig"
36796 fi
36797 fi
36798
36799 if test $succeeded = yes; then
36800
d1c38808
VZ
36801 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
36802 cat >>confdefs.h <<\_ACEOF
36803#define wxUSE_LIBGNOMEPRINT 1
36804_ACEOF
36805
36806
36807 else
36808
36809 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
36810echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
36811 wxUSE_LIBGNOMEPRINT="no"
36812
36813
36814 fi
36815
36816 fi
36817 fi
36818fi
36819
36820
a848cd7e
SC
36821if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
36822 cat >>confdefs.h <<\_ACEOF
36823#define wxUSE_CMDLINE_PARSER 1
36824_ACEOF
36825
36826fi
36827
36828if test "$wxUSE_STOPWATCH" = "yes"; then
36829 cat >>confdefs.h <<\_ACEOF
36830#define wxUSE_STOPWATCH 1
36831_ACEOF
36832
36833fi
36834
36835if test "$wxUSE_DATETIME" = "yes"; then
36836 cat >>confdefs.h <<\_ACEOF
36837#define wxUSE_DATETIME 1
36838_ACEOF
36839
36840fi
36841
36842if test "$wxUSE_FILE" = "yes"; then
36843 cat >>confdefs.h <<\_ACEOF
36844#define wxUSE_FILE 1
36845_ACEOF
36846
36847fi
36848
36849if test "$wxUSE_FFILE" = "yes"; then
36850 cat >>confdefs.h <<\_ACEOF
36851#define wxUSE_FFILE 1
36852_ACEOF
36853
36854fi
36855
36856if test "$wxUSE_FILESYSTEM" = "yes"; then
36857 cat >>confdefs.h <<\_ACEOF
36858#define wxUSE_FILESYSTEM 1
36859_ACEOF
36860
36861fi
36862
36863if test "$wxUSE_FS_ZIP" = "yes"; then
36864 cat >>confdefs.h <<\_ACEOF
36865#define wxUSE_FS_ZIP 1
36866_ACEOF
36867
36868fi
36869
9e8e867f 36870if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 36871 cat >>confdefs.h <<\_ACEOF
9e8e867f 36872#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
36873_ACEOF
36874
36875fi
36876
36877if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 36878 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
36879 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
36880echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
36881 elif test "$wxUSE_ZLIB" = "no"; then
36882 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
36883echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
36884 else
36885 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36886#define wxUSE_ZIPSTREAM 1
36887_ACEOF
36888
81f90336 36889 fi
a848cd7e
SC
36890fi
36891
a848cd7e
SC
36892if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36893 cat >>confdefs.h <<\_ACEOF
36894#define wxUSE_ON_FATAL_EXCEPTION 1
36895_ACEOF
36896
36897fi
36898
eaff0f0d
VZ
36899if test "$wxUSE_STACKWALKER" = "yes"; then
36900 cat >>confdefs.h <<\_ACEOF
36901#define wxUSE_STACKWALKER 1
36902_ACEOF
36903
36904fi
36905
36b6448c 36906if test "$wxUSE_DEBUGREPORT" = "yes"; then
dfe0c803
JS
36907 if test "$USE_OS2" = "1"; then
36908 { echo "$as_me:$LINENO: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&5
36909echo "$as_me: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&2;}
36910 wxUSE_DEBUGREPORT=no
36911 else
36912 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
36913#define wxUSE_DEBUGREPORT 1
36914_ACEOF
36915
21dfc162
MW
36916 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
36918 fi
dfe0c803 36919 fi
36b6448c
VZ
36920fi
36921
a848cd7e
SC
36922if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36923 cat >>confdefs.h <<\_ACEOF
36924#define wxUSE_SNGLINST_CHECKER 1
36925_ACEOF
36926
36927fi
36928
36929if test "$wxUSE_BUSYINFO" = "yes"; then
36930 cat >>confdefs.h <<\_ACEOF
36931#define wxUSE_BUSYINFO 1
36932_ACEOF
36933
36934fi
36935
36936if test "$wxUSE_STD_IOSTREAM" = "yes"; then
36937 cat >>confdefs.h <<\_ACEOF
36938#define wxUSE_STD_IOSTREAM 1
36939_ACEOF
36940
36941fi
36942
59746b65
MW
36943if test "$wxUSE_STD_STRING" = "yes"; then
36944 cat >>confdefs.h <<\_ACEOF
36945#define wxUSE_STD_STRING 1
36946_ACEOF
36947
36948fi
36949
07158944
VZ
36950if test "$wxUSE_STDPATHS" = "yes"; then
36951 cat >>confdefs.h <<\_ACEOF
36952#define wxUSE_STDPATHS 1
36953_ACEOF
36954
36955fi
36956
a848cd7e
SC
36957if test "$wxUSE_TEXTBUFFER" = "yes"; then
36958 cat >>confdefs.h <<\_ACEOF
36959#define wxUSE_TEXTBUFFER 1
36960_ACEOF
36961
36962fi
36963
36964if test "$wxUSE_TEXTFILE" = "yes"; then
36965 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
36966 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
36967echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
36968 else
36969 cat >>confdefs.h <<\_ACEOF
36970#define wxUSE_TEXTFILE 1
36971_ACEOF
36972
36973 fi
36974fi
36975
36976if test "$wxUSE_CONFIG" = "yes" ; then
36977 if test "$wxUSE_TEXTFILE" != "yes"; then
36978 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
36979echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
36980 else
36981 cat >>confdefs.h <<\_ACEOF
36982#define wxUSE_CONFIG 1
89be85c2
VS
36983_ACEOF
36984
36985 cat >>confdefs.h <<\_ACEOF
36986#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
36987_ACEOF
36988
36989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
36990 fi
36991fi
36992
36993if test "$wxUSE_INTL" = "yes" ; then
36994 if test "$wxUSE_FILE" != "yes"; then
36995 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
36996echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
36997 else
36998 cat >>confdefs.h <<\_ACEOF
36999#define wxUSE_INTL 1
37000_ACEOF
37001
37002 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
37003 GUIDIST="$GUIDIST INTL_DIST"
37004 fi
37005fi
37006
37007if test "$wxUSE_LOG" = "yes"; then
37008 cat >>confdefs.h <<\_ACEOF
37009#define wxUSE_LOG 1
37010_ACEOF
37011
37012
37013 if test "$wxUSE_LOGGUI" = "yes"; then
37014 cat >>confdefs.h <<\_ACEOF
37015#define wxUSE_LOGGUI 1
37016_ACEOF
37017
37018 fi
37019
37020 if test "$wxUSE_LOGWINDOW" = "yes"; then
37021 cat >>confdefs.h <<\_ACEOF
37022#define wxUSE_LOGWINDOW 1
37023_ACEOF
37024
37025 fi
37026
37027 if test "$wxUSE_LOGDIALOG" = "yes"; then
37028 cat >>confdefs.h <<\_ACEOF
37029#define wxUSE_LOG_DIALOG 1
37030_ACEOF
37031
37032 fi
0b78747f
MW
37033
37034 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
37035fi
37036
37037if test "$wxUSE_LONGLONG" = "yes"; then
37038 cat >>confdefs.h <<\_ACEOF
37039#define wxUSE_LONGLONG 1
37040_ACEOF
37041
37042fi
37043
37044if test "$wxUSE_GEOMETRY" = "yes"; then
37045 cat >>confdefs.h <<\_ACEOF
37046#define wxUSE_GEOMETRY 1
37047_ACEOF
37048
37049fi
37050
a848cd7e
SC
37051if test "$wxUSE_STREAMS" = "yes" ; then
37052 cat >>confdefs.h <<\_ACEOF
37053#define wxUSE_STREAMS 1
37054_ACEOF
37055
37056fi
37057
37058
37059if test "$wxUSE_DATETIME" = "yes"; then
37060
37061for ac_func in strptime
37062do
37063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37064echo "$as_me:$LINENO: checking for $ac_func" >&5
37065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37066if eval "test \"\${$as_ac_var+set}\" = set"; then
37067 echo $ECHO_N "(cached) $ECHO_C" >&6
37068else
37069 cat >conftest.$ac_ext <<_ACEOF
37070/* confdefs.h. */
37071_ACEOF
37072cat confdefs.h >>conftest.$ac_ext
37073cat >>conftest.$ac_ext <<_ACEOF
37074/* end confdefs.h. */
ac1cb8d3
VS
37075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37077#define $ac_func innocuous_$ac_func
37078
a848cd7e
SC
37079/* System header to define __stub macros and hopefully few prototypes,
37080 which can conflict with char $ac_func (); below.
37081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37082 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37083
a848cd7e
SC
37084#ifdef __STDC__
37085# include <limits.h>
37086#else
37087# include <assert.h>
37088#endif
ac1cb8d3
VS
37089
37090#undef $ac_func
37091
a848cd7e
SC
37092/* Override any gcc2 internal prototype to avoid an error. */
37093#ifdef __cplusplus
37094extern "C"
37095{
37096#endif
37097/* We use char because int might match the return type of a gcc2
37098 builtin and then its argument prototype would still apply. */
37099char $ac_func ();
37100/* The GNU C library defines this for functions which it implements
37101 to always fail with ENOSYS. Some functions are actually named
37102 something starting with __ and the normal name is an alias. */
37103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37104choke me
37105#else
37106char (*f) () = $ac_func;
37107#endif
37108#ifdef __cplusplus
37109}
37110#endif
37111
37112int
37113main ()
37114{
37115return f != $ac_func;
37116 ;
37117 return 0;
37118}
37119_ACEOF
37120rm -f conftest.$ac_objext conftest$ac_exeext
37121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37122 (eval $ac_link) 2>conftest.er1
a848cd7e 37123 ac_status=$?
ac1cb8d3
VS
37124 grep -v '^ *+' conftest.er1 >conftest.err
37125 rm -f conftest.er1
37126 cat conftest.err >&5
a848cd7e
SC
37127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37128 (exit $ac_status); } &&
9dd0f6c2 37129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37131 (eval $ac_try) 2>&5
37132 ac_status=$?
37133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37134 (exit $ac_status); }; } &&
37135 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37137 (eval $ac_try) 2>&5
37138 ac_status=$?
37139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37140 (exit $ac_status); }; }; then
37141 eval "$as_ac_var=yes"
37142else
37143 echo "$as_me: failed program was:" >&5
37144sed 's/^/| /' conftest.$ac_ext >&5
37145
37146eval "$as_ac_var=no"
37147fi
ac1cb8d3
VS
37148rm -f conftest.err conftest.$ac_objext \
37149 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37150fi
37151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37152echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37153if test `eval echo '${'$as_ac_var'}'` = yes; then
37154 cat >>confdefs.h <<_ACEOF
37155#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37156_ACEOF
37157
37158fi
37159done
37160
37161
37162 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
37163echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
37164if test "${wx_cv_var_timezone+set}" = set; then
37165 echo $ECHO_N "(cached) $ECHO_C" >&6
37166else
37167
37168 cat >conftest.$ac_ext <<_ACEOF
37169/* confdefs.h. */
37170_ACEOF
37171cat confdefs.h >>conftest.$ac_ext
37172cat >>conftest.$ac_ext <<_ACEOF
37173/* end confdefs.h. */
37174
37175 #include <time.h>
37176
37177int
37178main ()
37179{
37180
37181 int tz;
37182 tz = timezone;
37183
37184 ;
37185 return 0;
37186}
37187_ACEOF
37188rm -f conftest.$ac_objext
37189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37190 (eval $ac_compile) 2>conftest.er1
a848cd7e 37191 ac_status=$?
ac1cb8d3
VS
37192 grep -v '^ *+' conftest.er1 >conftest.err
37193 rm -f conftest.er1
37194 cat conftest.err >&5
a848cd7e
SC
37195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37196 (exit $ac_status); } &&
9dd0f6c2 37197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37199 (eval $ac_try) 2>&5
37200 ac_status=$?
37201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37202 (exit $ac_status); }; } &&
37203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37205 (eval $ac_try) 2>&5
37206 ac_status=$?
37207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37208 (exit $ac_status); }; }; then
37209
37210 wx_cv_var_timezone=timezone
37211
37212else
37213 echo "$as_me: failed program was:" >&5
37214sed 's/^/| /' conftest.$ac_ext >&5
37215
37216
37217 cat >conftest.$ac_ext <<_ACEOF
37218/* confdefs.h. */
37219_ACEOF
37220cat confdefs.h >>conftest.$ac_ext
37221cat >>conftest.$ac_ext <<_ACEOF
37222/* end confdefs.h. */
37223
37224 #include <time.h>
37225
37226int
37227main ()
37228{
37229
37230 int tz;
37231 tz = _timezone;
37232
37233 ;
37234 return 0;
37235}
37236_ACEOF
37237rm -f conftest.$ac_objext
37238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37239 (eval $ac_compile) 2>conftest.er1
a848cd7e 37240 ac_status=$?
ac1cb8d3
VS
37241 grep -v '^ *+' conftest.er1 >conftest.err
37242 rm -f conftest.er1
37243 cat conftest.err >&5
a848cd7e
SC
37244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37245 (exit $ac_status); } &&
9dd0f6c2 37246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37248 (eval $ac_try) 2>&5
37249 ac_status=$?
37250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37251 (exit $ac_status); }; } &&
37252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37254 (eval $ac_try) 2>&5
37255 ac_status=$?
37256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37257 (exit $ac_status); }; }; then
37258
37259 wx_cv_var_timezone=_timezone
37260
37261else
37262 echo "$as_me: failed program was:" >&5
37263sed 's/^/| /' conftest.$ac_ext >&5
37264
37265
37266 cat >conftest.$ac_ext <<_ACEOF
37267/* confdefs.h. */
37268_ACEOF
37269cat confdefs.h >>conftest.$ac_ext
37270cat >>conftest.$ac_ext <<_ACEOF
37271/* end confdefs.h. */
37272
37273 #include <time.h>
37274
37275int
37276main ()
37277{
37278
37279 int tz;
37280 tz = __timezone;
37281
37282 ;
37283 return 0;
37284}
37285_ACEOF
37286rm -f conftest.$ac_objext
37287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37288 (eval $ac_compile) 2>conftest.er1
a848cd7e 37289 ac_status=$?
ac1cb8d3
VS
37290 grep -v '^ *+' conftest.er1 >conftest.err
37291 rm -f conftest.er1
37292 cat conftest.err >&5
a848cd7e
SC
37293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37294 (exit $ac_status); } &&
9dd0f6c2 37295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37297 (eval $ac_try) 2>&5
37298 ac_status=$?
37299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37300 (exit $ac_status); }; } &&
37301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37303 (eval $ac_try) 2>&5
37304 ac_status=$?
37305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37306 (exit $ac_status); }; }; then
37307
37308 wx_cv_var_timezone=__timezone
37309
37310else
37311 echo "$as_me: failed program was:" >&5
37312sed 's/^/| /' conftest.$ac_ext >&5
37313
37314
37315 if test "$USE_DOS" = 0 ; then
37316 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
37317echo "$as_me: WARNING: no timezone variable" >&2;}
37318 fi
37319
37320
37321fi
ac1cb8d3 37322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37323
37324
37325fi
ac1cb8d3 37326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37327
37328
37329fi
ac1cb8d3 37330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37331
37332
37333fi
37334echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
37335echo "${ECHO_T}$wx_cv_var_timezone" >&6
37336
37337 if test "x$wx_cv_var_timezone" != x ; then
37338 cat >>confdefs.h <<_ACEOF
37339#define WX_TIMEZONE $wx_cv_var_timezone
37340_ACEOF
37341
37342 fi
37343
37344
37345for ac_func in localtime
37346do
37347as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37348echo "$as_me:$LINENO: checking for $ac_func" >&5
37349echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37350if eval "test \"\${$as_ac_var+set}\" = set"; then
37351 echo $ECHO_N "(cached) $ECHO_C" >&6
37352else
37353 cat >conftest.$ac_ext <<_ACEOF
37354/* confdefs.h. */
37355_ACEOF
37356cat confdefs.h >>conftest.$ac_ext
37357cat >>conftest.$ac_ext <<_ACEOF
37358/* end confdefs.h. */
ac1cb8d3
VS
37359/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37361#define $ac_func innocuous_$ac_func
37362
a848cd7e
SC
37363/* System header to define __stub macros and hopefully few prototypes,
37364 which can conflict with char $ac_func (); below.
37365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37366 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37367
a848cd7e
SC
37368#ifdef __STDC__
37369# include <limits.h>
37370#else
37371# include <assert.h>
37372#endif
ac1cb8d3
VS
37373
37374#undef $ac_func
37375
a848cd7e
SC
37376/* Override any gcc2 internal prototype to avoid an error. */
37377#ifdef __cplusplus
37378extern "C"
37379{
37380#endif
37381/* We use char because int might match the return type of a gcc2
37382 builtin and then its argument prototype would still apply. */
37383char $ac_func ();
37384/* The GNU C library defines this for functions which it implements
37385 to always fail with ENOSYS. Some functions are actually named
37386 something starting with __ and the normal name is an alias. */
37387#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37388choke me
37389#else
37390char (*f) () = $ac_func;
37391#endif
37392#ifdef __cplusplus
37393}
37394#endif
37395
37396int
37397main ()
37398{
37399return f != $ac_func;
37400 ;
37401 return 0;
37402}
37403_ACEOF
37404rm -f conftest.$ac_objext conftest$ac_exeext
37405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37406 (eval $ac_link) 2>conftest.er1
a848cd7e 37407 ac_status=$?
ac1cb8d3
VS
37408 grep -v '^ *+' conftest.er1 >conftest.err
37409 rm -f conftest.er1
37410 cat conftest.err >&5
a848cd7e
SC
37411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37412 (exit $ac_status); } &&
9dd0f6c2 37413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37415 (eval $ac_try) 2>&5
37416 ac_status=$?
37417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37418 (exit $ac_status); }; } &&
37419 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37421 (eval $ac_try) 2>&5
37422 ac_status=$?
37423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424 (exit $ac_status); }; }; then
37425 eval "$as_ac_var=yes"
37426else
37427 echo "$as_me: failed program was:" >&5
37428sed 's/^/| /' conftest.$ac_ext >&5
37429
37430eval "$as_ac_var=no"
37431fi
ac1cb8d3
VS
37432rm -f conftest.err conftest.$ac_objext \
37433 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37434fi
37435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37436echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37437if test `eval echo '${'$as_ac_var'}'` = yes; then
37438 cat >>confdefs.h <<_ACEOF
37439#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37440_ACEOF
37441
37442fi
37443done
37444
37445
37446 if test "$ac_cv_func_localtime" = "yes"; then
37447 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
37448echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
37449if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
37450 echo $ECHO_N "(cached) $ECHO_C" >&6
37451else
37452
37453 cat >conftest.$ac_ext <<_ACEOF
37454/* confdefs.h. */
37455_ACEOF
37456cat confdefs.h >>conftest.$ac_ext
37457cat >>conftest.$ac_ext <<_ACEOF
37458/* end confdefs.h. */
37459
37460 #include <time.h>
37461
37462int
37463main ()
37464{
37465
37466 struct tm tm;
37467 tm.tm_gmtoff++;
37468
37469 ;
37470 return 0;
37471}
37472_ACEOF
37473rm -f conftest.$ac_objext
37474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37475 (eval $ac_compile) 2>conftest.er1
a848cd7e 37476 ac_status=$?
ac1cb8d3
VS
37477 grep -v '^ *+' conftest.er1 >conftest.err
37478 rm -f conftest.er1
37479 cat conftest.err >&5
a848cd7e
SC
37480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37481 (exit $ac_status); } &&
9dd0f6c2 37482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37484 (eval $ac_try) 2>&5
37485 ac_status=$?
37486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37487 (exit $ac_status); }; } &&
37488 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37490 (eval $ac_try) 2>&5
37491 ac_status=$?
37492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37493 (exit $ac_status); }; }; then
37494
37495 wx_cv_struct_tm_has_gmtoff=yes
37496
37497else
37498 echo "$as_me: failed program was:" >&5
37499sed 's/^/| /' conftest.$ac_ext >&5
37500
37501wx_cv_struct_tm_has_gmtoff=no
37502
37503fi
ac1cb8d3 37504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37505
37506fi
37507echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37508echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37509 fi
37510
37511 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37512 cat >>confdefs.h <<\_ACEOF
37513#define WX_GMTOFF_IN_TM 1
37514_ACEOF
37515
37516 fi
37517
37518
37519
37520for ac_func in gettimeofday ftime
37521do
37522as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37523echo "$as_me:$LINENO: checking for $ac_func" >&5
37524echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37525if eval "test \"\${$as_ac_var+set}\" = set"; then
37526 echo $ECHO_N "(cached) $ECHO_C" >&6
37527else
37528 cat >conftest.$ac_ext <<_ACEOF
37529/* confdefs.h. */
37530_ACEOF
37531cat confdefs.h >>conftest.$ac_ext
37532cat >>conftest.$ac_ext <<_ACEOF
37533/* end confdefs.h. */
ac1cb8d3
VS
37534/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37536#define $ac_func innocuous_$ac_func
37537
a848cd7e
SC
37538/* System header to define __stub macros and hopefully few prototypes,
37539 which can conflict with char $ac_func (); below.
37540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37541 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37542
a848cd7e
SC
37543#ifdef __STDC__
37544# include <limits.h>
37545#else
37546# include <assert.h>
37547#endif
ac1cb8d3
VS
37548
37549#undef $ac_func
37550
a848cd7e
SC
37551/* Override any gcc2 internal prototype to avoid an error. */
37552#ifdef __cplusplus
37553extern "C"
37554{
37555#endif
37556/* We use char because int might match the return type of a gcc2
37557 builtin and then its argument prototype would still apply. */
37558char $ac_func ();
37559/* The GNU C library defines this for functions which it implements
37560 to always fail with ENOSYS. Some functions are actually named
37561 something starting with __ and the normal name is an alias. */
37562#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37563choke me
37564#else
37565char (*f) () = $ac_func;
37566#endif
37567#ifdef __cplusplus
37568}
37569#endif
37570
37571int
37572main ()
37573{
37574return f != $ac_func;
37575 ;
37576 return 0;
37577}
37578_ACEOF
37579rm -f conftest.$ac_objext conftest$ac_exeext
37580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37581 (eval $ac_link) 2>conftest.er1
a848cd7e 37582 ac_status=$?
ac1cb8d3
VS
37583 grep -v '^ *+' conftest.er1 >conftest.err
37584 rm -f conftest.er1
37585 cat conftest.err >&5
a848cd7e
SC
37586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37587 (exit $ac_status); } &&
9dd0f6c2 37588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37590 (eval $ac_try) 2>&5
37591 ac_status=$?
37592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37593 (exit $ac_status); }; } &&
37594 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37596 (eval $ac_try) 2>&5
37597 ac_status=$?
37598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37599 (exit $ac_status); }; }; then
37600 eval "$as_ac_var=yes"
37601else
37602 echo "$as_me: failed program was:" >&5
37603sed 's/^/| /' conftest.$ac_ext >&5
37604
37605eval "$as_ac_var=no"
37606fi
ac1cb8d3
VS
37607rm -f conftest.err conftest.$ac_objext \
37608 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37609fi
37610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37611echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37612if test `eval echo '${'$as_ac_var'}'` = yes; then
37613 cat >>confdefs.h <<_ACEOF
37614#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37615_ACEOF
37616 break
37617fi
37618done
37619
37620
37621 if test "$ac_cv_func_gettimeofday" = "yes"; then
37622 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37623echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37624if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37625 echo $ECHO_N "(cached) $ECHO_C" >&6
37626else
37627
37628
37629
37630 ac_ext=cc
37631ac_cpp='$CXXCPP $CPPFLAGS'
37632ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37633ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37634ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37635
37636
37637 cat >conftest.$ac_ext <<_ACEOF
37638/* confdefs.h. */
37639_ACEOF
37640cat confdefs.h >>conftest.$ac_ext
37641cat >>conftest.$ac_ext <<_ACEOF
37642/* end confdefs.h. */
37643
37644 #include <sys/time.h>
37645 #include <unistd.h>
37646
37647int
37648main ()
37649{
37650
37651 struct timeval tv;
37652 gettimeofday(&tv, NULL);
37653
37654 ;
37655 return 0;
37656}
37657_ACEOF
37658rm -f conftest.$ac_objext
37659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37660 (eval $ac_compile) 2>conftest.er1
a848cd7e 37661 ac_status=$?
ac1cb8d3
VS
37662 grep -v '^ *+' conftest.er1 >conftest.err
37663 rm -f conftest.er1
37664 cat conftest.err >&5
a848cd7e
SC
37665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37666 (exit $ac_status); } &&
9dd0f6c2 37667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37669 (eval $ac_try) 2>&5
37670 ac_status=$?
37671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37672 (exit $ac_status); }; } &&
37673 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37675 (eval $ac_try) 2>&5
37676 ac_status=$?
37677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37678 (exit $ac_status); }; }; then
37679 wx_cv_func_gettimeofday_has_2_args=yes
37680else
37681 echo "$as_me: failed program was:" >&5
37682sed 's/^/| /' conftest.$ac_ext >&5
37683
37684cat >conftest.$ac_ext <<_ACEOF
37685/* confdefs.h. */
37686_ACEOF
37687cat confdefs.h >>conftest.$ac_ext
37688cat >>conftest.$ac_ext <<_ACEOF
37689/* end confdefs.h. */
37690
37691 #include <sys/time.h>
37692 #include <unistd.h>
37693
37694int
37695main ()
37696{
37697
37698 struct timeval tv;
37699 gettimeofday(&tv);
37700
37701 ;
37702 return 0;
37703}
37704_ACEOF
37705rm -f conftest.$ac_objext
37706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37707 (eval $ac_compile) 2>conftest.er1
a848cd7e 37708 ac_status=$?
ac1cb8d3
VS
37709 grep -v '^ *+' conftest.er1 >conftest.err
37710 rm -f conftest.er1
37711 cat conftest.err >&5
a848cd7e
SC
37712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37713 (exit $ac_status); } &&
9dd0f6c2 37714 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37716 (eval $ac_try) 2>&5
37717 ac_status=$?
37718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37719 (exit $ac_status); }; } &&
37720 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37722 (eval $ac_try) 2>&5
37723 ac_status=$?
37724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37725 (exit $ac_status); }; }; then
37726 wx_cv_func_gettimeofday_has_2_args=no
37727else
37728 echo "$as_me: failed program was:" >&5
37729sed 's/^/| /' conftest.$ac_ext >&5
37730
37731
37732 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
37733echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
37734 wx_cv_func_gettimeofday_has_2_args=unknown
37735
37736
37737fi
ac1cb8d3 37738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37739
37740fi
ac1cb8d3 37741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37742 ac_ext=c
37743ac_cpp='$CPP $CPPFLAGS'
37744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37746ac_compiler_gnu=$ac_cv_c_compiler_gnu
37747
37748
37749fi
37750echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
37751echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
37752
37753 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
37754 cat >>confdefs.h <<\_ACEOF
37755#define WX_GETTIMEOFDAY_NO_TZ 1
37756_ACEOF
37757
37758 fi
37759 fi
37760
37761 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
37762fi
37763
37764
37765if test "$wxUSE_SOCKETS" = "yes"; then
37766 if test "$wxUSE_MGL" = "1"; then
37767 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
37768echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
37769 wxUSE_SOCKETS="no"
37770 fi
37771fi
37772
37773if test "$wxUSE_SOCKETS" = "yes"; then
37774 if test "$TOOLKIT" != "MSW"; then
37775 echo "$as_me:$LINENO: checking for socket" >&5
37776echo $ECHO_N "checking for socket... $ECHO_C" >&6
37777if test "${ac_cv_func_socket+set}" = set; then
37778 echo $ECHO_N "(cached) $ECHO_C" >&6
37779else
37780 cat >conftest.$ac_ext <<_ACEOF
37781/* confdefs.h. */
37782_ACEOF
37783cat confdefs.h >>conftest.$ac_ext
37784cat >>conftest.$ac_ext <<_ACEOF
37785/* end confdefs.h. */
ac1cb8d3
VS
37786/* Define socket to an innocuous variant, in case <limits.h> declares socket.
37787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37788#define socket innocuous_socket
37789
a848cd7e
SC
37790/* System header to define __stub macros and hopefully few prototypes,
37791 which can conflict with char socket (); below.
37792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37793 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37794
a848cd7e
SC
37795#ifdef __STDC__
37796# include <limits.h>
37797#else
37798# include <assert.h>
37799#endif
ac1cb8d3
VS
37800
37801#undef socket
37802
a848cd7e
SC
37803/* Override any gcc2 internal prototype to avoid an error. */
37804#ifdef __cplusplus
37805extern "C"
37806{
37807#endif
37808/* We use char because int might match the return type of a gcc2
37809 builtin and then its argument prototype would still apply. */
37810char socket ();
37811/* The GNU C library defines this for functions which it implements
37812 to always fail with ENOSYS. Some functions are actually named
37813 something starting with __ and the normal name is an alias. */
37814#if defined (__stub_socket) || defined (__stub___socket)
37815choke me
37816#else
37817char (*f) () = socket;
37818#endif
37819#ifdef __cplusplus
37820}
37821#endif
37822
37823int
37824main ()
37825{
37826return f != socket;
37827 ;
37828 return 0;
37829}
37830_ACEOF
37831rm -f conftest.$ac_objext conftest$ac_exeext
37832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37833 (eval $ac_link) 2>conftest.er1
a848cd7e 37834 ac_status=$?
ac1cb8d3
VS
37835 grep -v '^ *+' conftest.er1 >conftest.err
37836 rm -f conftest.er1
37837 cat conftest.err >&5
a848cd7e
SC
37838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37839 (exit $ac_status); } &&
9dd0f6c2 37840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37842 (eval $ac_try) 2>&5
37843 ac_status=$?
37844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37845 (exit $ac_status); }; } &&
37846 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37848 (eval $ac_try) 2>&5
37849 ac_status=$?
37850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37851 (exit $ac_status); }; }; then
37852 ac_cv_func_socket=yes
37853else
37854 echo "$as_me: failed program was:" >&5
37855sed 's/^/| /' conftest.$ac_ext >&5
37856
37857ac_cv_func_socket=no
37858fi
ac1cb8d3
VS
37859rm -f conftest.err conftest.$ac_objext \
37860 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37861fi
37862echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
37863echo "${ECHO_T}$ac_cv_func_socket" >&6
37864if test $ac_cv_func_socket = yes; then
37865 :
37866else
37867
37868 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
37869echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
37870if test "${ac_cv_lib_socket_socket+set}" = set; then
37871 echo $ECHO_N "(cached) $ECHO_C" >&6
37872else
37873 ac_check_lib_save_LIBS=$LIBS
37874LIBS="-lsocket $LIBS"
37875cat >conftest.$ac_ext <<_ACEOF
37876/* confdefs.h. */
37877_ACEOF
37878cat confdefs.h >>conftest.$ac_ext
37879cat >>conftest.$ac_ext <<_ACEOF
37880/* end confdefs.h. */
37881
37882/* Override any gcc2 internal prototype to avoid an error. */
37883#ifdef __cplusplus
37884extern "C"
37885#endif
37886/* We use char because int might match the return type of a gcc2
37887 builtin and then its argument prototype would still apply. */
37888char socket ();
37889int
37890main ()
37891{
37892socket ();
37893 ;
37894 return 0;
37895}
37896_ACEOF
37897rm -f conftest.$ac_objext conftest$ac_exeext
37898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37899 (eval $ac_link) 2>conftest.er1
a848cd7e 37900 ac_status=$?
ac1cb8d3
VS
37901 grep -v '^ *+' conftest.er1 >conftest.err
37902 rm -f conftest.er1
37903 cat conftest.err >&5
a848cd7e
SC
37904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37905 (exit $ac_status); } &&
9dd0f6c2 37906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37908 (eval $ac_try) 2>&5
37909 ac_status=$?
37910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37911 (exit $ac_status); }; } &&
37912 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37914 (eval $ac_try) 2>&5
37915 ac_status=$?
37916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37917 (exit $ac_status); }; }; then
37918 ac_cv_lib_socket_socket=yes
37919else
37920 echo "$as_me: failed program was:" >&5
37921sed 's/^/| /' conftest.$ac_ext >&5
37922
37923ac_cv_lib_socket_socket=no
37924fi
ac1cb8d3
VS
37925rm -f conftest.err conftest.$ac_objext \
37926 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37927LIBS=$ac_check_lib_save_LIBS
37928fi
37929echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
37930echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
37931if test $ac_cv_lib_socket_socket = yes; then
37932 if test "$INET_LINK" != " -lsocket"; then
37933 INET_LINK="$INET_LINK -lsocket"
37934 fi
37935else
37936
37937 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
37938echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
37939 wxUSE_SOCKETS=no
37940
37941
37942fi
37943
37944
37945
37946fi
37947
37948 fi
37949fi
37950
37951if test "$wxUSE_SOCKETS" = "yes" ; then
37952 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
37953 ac_ext=cc
37954ac_cpp='$CXXCPP $CPPFLAGS'
37955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37958
37959 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
37960echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
37961if test "${wx_cv_type_getsockname3+set}" = set; then
37962 echo $ECHO_N "(cached) $ECHO_C" >&6
37963else
37964
37965 cat >conftest.$ac_ext <<_ACEOF
37966/* confdefs.h. */
37967_ACEOF
37968cat confdefs.h >>conftest.$ac_ext
37969cat >>conftest.$ac_ext <<_ACEOF
37970/* end confdefs.h. */
37971
37972 #include <sys/types.h>
37973 #include <sys/socket.h>
37974
37975int
37976main ()
37977{
37978
37979 socklen_t len;
37980 getsockname(0, 0, &len);
37981
37982 ;
37983 return 0;
37984}
37985_ACEOF
37986rm -f conftest.$ac_objext
37987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37988 (eval $ac_compile) 2>conftest.er1
a848cd7e 37989 ac_status=$?
ac1cb8d3
VS
37990 grep -v '^ *+' conftest.er1 >conftest.err
37991 rm -f conftest.er1
37992 cat conftest.err >&5
a848cd7e
SC
37993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37994 (exit $ac_status); } &&
9dd0f6c2 37995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37997 (eval $ac_try) 2>&5
37998 ac_status=$?
37999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38000 (exit $ac_status); }; } &&
38001 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38003 (eval $ac_try) 2>&5
38004 ac_status=$?
38005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38006 (exit $ac_status); }; }; then
38007 wx_cv_type_getsockname3=socklen_t
38008else
38009 echo "$as_me: failed program was:" >&5
38010sed 's/^/| /' conftest.$ac_ext >&5
38011
38012
38013 CFLAGS_OLD="$CFLAGS"
38014 if test "$GCC" = yes ; then
38015 CFLAGS="$CFLAGS -Werror"
38016 fi
38017
38018 cat >conftest.$ac_ext <<_ACEOF
38019/* confdefs.h. */
38020_ACEOF
38021cat confdefs.h >>conftest.$ac_ext
38022cat >>conftest.$ac_ext <<_ACEOF
38023/* end confdefs.h. */
38024
38025 #include <sys/types.h>
38026 #include <sys/socket.h>
38027
38028int
38029main ()
38030{
38031
38032 size_t len;
38033 getsockname(0, 0, &len);
38034
38035 ;
38036 return 0;
38037}
38038_ACEOF
38039rm -f conftest.$ac_objext
38040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38041 (eval $ac_compile) 2>conftest.er1
a848cd7e 38042 ac_status=$?
ac1cb8d3
VS
38043 grep -v '^ *+' conftest.er1 >conftest.err
38044 rm -f conftest.er1
38045 cat conftest.err >&5
a848cd7e
SC
38046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38047 (exit $ac_status); } &&
9dd0f6c2 38048 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38050 (eval $ac_try) 2>&5
38051 ac_status=$?
38052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38053 (exit $ac_status); }; } &&
38054 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38056 (eval $ac_try) 2>&5
38057 ac_status=$?
38058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38059 (exit $ac_status); }; }; then
38060 wx_cv_type_getsockname3=size_t
38061else
38062 echo "$as_me: failed program was:" >&5
38063sed 's/^/| /' conftest.$ac_ext >&5
38064
38065cat >conftest.$ac_ext <<_ACEOF
38066/* confdefs.h. */
38067_ACEOF
38068cat confdefs.h >>conftest.$ac_ext
38069cat >>conftest.$ac_ext <<_ACEOF
38070/* end confdefs.h. */
38071
38072 #include <sys/types.h>
38073 #include <sys/socket.h>
38074
38075int
38076main ()
38077{
38078
38079 int len;
38080 getsockname(0, 0, &len);
38081
38082 ;
38083 return 0;
38084}
38085_ACEOF
38086rm -f conftest.$ac_objext
38087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38088 (eval $ac_compile) 2>conftest.er1
a848cd7e 38089 ac_status=$?
ac1cb8d3
VS
38090 grep -v '^ *+' conftest.er1 >conftest.err
38091 rm -f conftest.er1
38092 cat conftest.err >&5
a848cd7e
SC
38093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38094 (exit $ac_status); } &&
9dd0f6c2 38095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38097 (eval $ac_try) 2>&5
38098 ac_status=$?
38099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38100 (exit $ac_status); }; } &&
38101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38103 (eval $ac_try) 2>&5
38104 ac_status=$?
38105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38106 (exit $ac_status); }; }; then
38107 wx_cv_type_getsockname3=int
38108else
38109 echo "$as_me: failed program was:" >&5
38110sed 's/^/| /' conftest.$ac_ext >&5
38111
38112wx_cv_type_getsockname3=unknown
38113
38114fi
ac1cb8d3 38115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38116
38117fi
ac1cb8d3 38118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38119
38120 CFLAGS="$CFLAGS_OLD"
38121
38122
38123fi
ac1cb8d3 38124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38125
38126fi
38127echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
38128echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
38129
38130 if test "$wx_cv_type_getsockname3" = "unknown"; then
38131 wxUSE_SOCKETS=no
38132 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38133echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38134 else
38135 cat >>confdefs.h <<_ACEOF
38136#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
38137_ACEOF
38138
38139 fi
38140 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
38141echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
38142if test "${wx_cv_type_getsockopt5+set}" = set; then
38143 echo $ECHO_N "(cached) $ECHO_C" >&6
38144else
38145
38146 cat >conftest.$ac_ext <<_ACEOF
38147/* confdefs.h. */
38148_ACEOF
38149cat confdefs.h >>conftest.$ac_ext
38150cat >>conftest.$ac_ext <<_ACEOF
38151/* end confdefs.h. */
38152
38153 #include <sys/types.h>
38154 #include <sys/socket.h>
38155
38156int
38157main ()
38158{
38159
38160 socklen_t len;
38161 getsockopt(0, 0, 0, 0, &len);
38162
38163 ;
38164 return 0;
38165}
38166_ACEOF
38167rm -f conftest.$ac_objext
38168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38169 (eval $ac_compile) 2>conftest.er1
38170 ac_status=$?
38171 grep -v '^ *+' conftest.er1 >conftest.err
38172 rm -f conftest.er1
38173 cat conftest.err >&5
38174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38175 (exit $ac_status); } &&
9dd0f6c2 38176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38178 (eval $ac_try) 2>&5
38179 ac_status=$?
38180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38181 (exit $ac_status); }; } &&
38182 { ac_try='test -s conftest.$ac_objext'
38183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38184 (eval $ac_try) 2>&5
38185 ac_status=$?
38186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38187 (exit $ac_status); }; }; then
38188 wx_cv_type_getsockopt5=socklen_t
38189else
38190 echo "$as_me: failed program was:" >&5
38191sed 's/^/| /' conftest.$ac_ext >&5
38192
38193
38194 CFLAGS_OLD="$CFLAGS"
38195 if test "$GCC" = yes ; then
38196 CFLAGS="$CFLAGS -Werror"
38197 fi
38198
38199 cat >conftest.$ac_ext <<_ACEOF
38200/* confdefs.h. */
38201_ACEOF
38202cat confdefs.h >>conftest.$ac_ext
38203cat >>conftest.$ac_ext <<_ACEOF
38204/* end confdefs.h. */
38205
38206 #include <sys/types.h>
38207 #include <sys/socket.h>
38208
38209int
38210main ()
38211{
38212
38213 size_t len;
38214 getsockopt(0, 0, 0, 0, &len);
38215
38216 ;
38217 return 0;
38218}
38219_ACEOF
38220rm -f conftest.$ac_objext
38221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38222 (eval $ac_compile) 2>conftest.er1
38223 ac_status=$?
38224 grep -v '^ *+' conftest.er1 >conftest.err
38225 rm -f conftest.er1
38226 cat conftest.err >&5
38227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38228 (exit $ac_status); } &&
9dd0f6c2 38229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38231 (eval $ac_try) 2>&5
38232 ac_status=$?
38233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38234 (exit $ac_status); }; } &&
38235 { ac_try='test -s conftest.$ac_objext'
38236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38237 (eval $ac_try) 2>&5
38238 ac_status=$?
38239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38240 (exit $ac_status); }; }; then
38241 wx_cv_type_getsockopt5=size_t
38242else
38243 echo "$as_me: failed program was:" >&5
38244sed 's/^/| /' conftest.$ac_ext >&5
38245
38246cat >conftest.$ac_ext <<_ACEOF
38247/* confdefs.h. */
38248_ACEOF
38249cat confdefs.h >>conftest.$ac_ext
38250cat >>conftest.$ac_ext <<_ACEOF
38251/* end confdefs.h. */
38252
38253 #include <sys/types.h>
38254 #include <sys/socket.h>
38255
38256int
38257main ()
38258{
38259
38260 int len;
38261 getsockopt(0, 0, 0, 0, &len);
38262
38263 ;
38264 return 0;
38265}
38266_ACEOF
38267rm -f conftest.$ac_objext
38268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38269 (eval $ac_compile) 2>conftest.er1
38270 ac_status=$?
38271 grep -v '^ *+' conftest.er1 >conftest.err
38272 rm -f conftest.er1
38273 cat conftest.err >&5
38274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38275 (exit $ac_status); } &&
9dd0f6c2 38276 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38278 (eval $ac_try) 2>&5
38279 ac_status=$?
38280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38281 (exit $ac_status); }; } &&
38282 { ac_try='test -s conftest.$ac_objext'
38283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38284 (eval $ac_try) 2>&5
38285 ac_status=$?
38286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38287 (exit $ac_status); }; }; then
38288 wx_cv_type_getsockopt5=int
38289else
38290 echo "$as_me: failed program was:" >&5
38291sed 's/^/| /' conftest.$ac_ext >&5
38292
38293wx_cv_type_getsockopt5=unknown
38294
38295fi
38296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38297
38298fi
38299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38300
38301 CFLAGS="$CFLAGS_OLD"
38302
38303
38304fi
38305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38306
38307fi
38308echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
38309echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
38310
38311 if test "$wx_cv_type_getsockopt5" = "unknown"; then
38312 wxUSE_SOCKETS=no
38313 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38314echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38315 else
38316 cat >>confdefs.h <<_ACEOF
38317#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
38318_ACEOF
38319
38320 fi
4d4ff94c
VZ
38321 ac_ext=c
38322ac_cpp='$CPP $CPPFLAGS'
38323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38325ac_compiler_gnu=$ac_cv_c_compiler_gnu
38326
a848cd7e
SC
38327 fi
38328fi
38329
38330if test "$wxUSE_SOCKETS" = "yes" ; then
38331 cat >>confdefs.h <<\_ACEOF
38332#define wxUSE_SOCKETS 1
38333_ACEOF
38334
38335 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
38336fi
38337
38338if test "$wxUSE_PROTOCOL" = "yes"; then
38339 if test "$wxUSE_SOCKETS" != "yes"; then
38340 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
38341echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
38342 wxUSE_PROTOCOL=no
38343 fi
38344fi
38345
38346if test "$wxUSE_PROTOCOL" = "yes"; then
38347 cat >>confdefs.h <<\_ACEOF
38348#define wxUSE_PROTOCOL 1
38349_ACEOF
38350
38351
38352 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
38353 cat >>confdefs.h <<\_ACEOF
38354#define wxUSE_PROTOCOL_HTTP 1
38355_ACEOF
38356
38357 fi
38358 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
38359 cat >>confdefs.h <<\_ACEOF
38360#define wxUSE_PROTOCOL_FTP 1
38361_ACEOF
38362
38363 fi
38364 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
38365 cat >>confdefs.h <<\_ACEOF
38366#define wxUSE_PROTOCOL_FILE 1
38367_ACEOF
38368
38369 fi
38370else
38371 if test "$wxUSE_FS_INET" = "yes"; then
38372 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
38373echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
38374 wxUSE_FS_INET="no"
38375 fi
38376fi
38377
38378if test "$wxUSE_URL" = "yes"; then
38379 if test "$wxUSE_PROTOCOL" != "yes"; then
38380 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
38381echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
38382 wxUSE_URL=no
38383 fi
38384 if test "$wxUSE_URL" = "yes"; then
38385 cat >>confdefs.h <<\_ACEOF
38386#define wxUSE_URL 1
38387_ACEOF
38388
38389 fi
38390fi
38391
38392if test "$wxUSE_FS_INET" = "yes"; then
38393 cat >>confdefs.h <<\_ACEOF
38394#define wxUSE_FS_INET 1
38395_ACEOF
38396
38397fi
38398
38399
38400if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 38401 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 38402
4cb1d3da 38403 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
38404
38405for ac_header in linux/joystick.h
38406do
38407as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38408if eval "test \"\${$as_ac_Header+set}\" = set"; then
38409 echo "$as_me:$LINENO: checking for $ac_header" >&5
38410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38411if eval "test \"\${$as_ac_Header+set}\" = set"; then
38412 echo $ECHO_N "(cached) $ECHO_C" >&6
38413fi
38414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38416else
38417 # Is the header compilable?
38418echo "$as_me:$LINENO: checking $ac_header usability" >&5
38419echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38420cat >conftest.$ac_ext <<_ACEOF
38421/* confdefs.h. */
38422_ACEOF
38423cat confdefs.h >>conftest.$ac_ext
38424cat >>conftest.$ac_ext <<_ACEOF
38425/* end confdefs.h. */
38426$ac_includes_default
38427#include <$ac_header>
38428_ACEOF
38429rm -f conftest.$ac_objext
38430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38431 (eval $ac_compile) 2>conftest.er1
a848cd7e 38432 ac_status=$?
ac1cb8d3
VS
38433 grep -v '^ *+' conftest.er1 >conftest.err
38434 rm -f conftest.er1
38435 cat conftest.err >&5
a848cd7e
SC
38436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38437 (exit $ac_status); } &&
9dd0f6c2 38438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38440 (eval $ac_try) 2>&5
38441 ac_status=$?
38442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38443 (exit $ac_status); }; } &&
38444 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38446 (eval $ac_try) 2>&5
38447 ac_status=$?
38448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38449 (exit $ac_status); }; }; then
38450 ac_header_compiler=yes
38451else
38452 echo "$as_me: failed program was:" >&5
38453sed 's/^/| /' conftest.$ac_ext >&5
38454
38455ac_header_compiler=no
38456fi
ac1cb8d3 38457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38458echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38459echo "${ECHO_T}$ac_header_compiler" >&6
38460
38461# Is the header present?
38462echo "$as_me:$LINENO: checking $ac_header presence" >&5
38463echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38464cat >conftest.$ac_ext <<_ACEOF
38465/* confdefs.h. */
38466_ACEOF
38467cat confdefs.h >>conftest.$ac_ext
38468cat >>conftest.$ac_ext <<_ACEOF
38469/* end confdefs.h. */
38470#include <$ac_header>
38471_ACEOF
38472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38474 ac_status=$?
38475 grep -v '^ *+' conftest.er1 >conftest.err
38476 rm -f conftest.er1
38477 cat conftest.err >&5
38478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38479 (exit $ac_status); } >/dev/null; then
38480 if test -s conftest.err; then
38481 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38483 else
38484 ac_cpp_err=
38485 fi
38486else
38487 ac_cpp_err=yes
38488fi
38489if test -z "$ac_cpp_err"; then
38490 ac_header_preproc=yes
38491else
38492 echo "$as_me: failed program was:" >&5
38493sed 's/^/| /' conftest.$ac_ext >&5
38494
38495 ac_header_preproc=no
38496fi
38497rm -f conftest.err conftest.$ac_ext
38498echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38499echo "${ECHO_T}$ac_header_preproc" >&6
38500
38501# So? What about this header?
ac1cb8d3
VS
38502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38503 yes:no: )
a848cd7e
SC
38504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38505echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38507echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38508 ac_header_preproc=yes
a848cd7e 38509 ;;
ac1cb8d3 38510 no:yes:* )
a848cd7e
SC
38511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38512echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38514echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38516echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38518echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38522echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38523 (
38524 cat <<\_ASBOX
ac1cb8d3
VS
38525## ----------------------------------------- ##
38526## Report this to wx-dev@lists.wxwidgets.org ##
38527## ----------------------------------------- ##
a848cd7e
SC
38528_ASBOX
38529 ) |
38530 sed "s/^/$as_me: WARNING: /" >&2
38531 ;;
38532esac
38533echo "$as_me:$LINENO: checking for $ac_header" >&5
38534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38535if eval "test \"\${$as_ac_Header+set}\" = set"; then
38536 echo $ECHO_N "(cached) $ECHO_C" >&6
38537else
ac1cb8d3 38538 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38539fi
38540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38542
38543fi
38544if test `eval echo '${'$as_ac_Header'}'` = yes; then
38545 cat >>confdefs.h <<_ACEOF
38546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38547_ACEOF
38548
38549fi
38550
38551done
38552
38553 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
38554 wxUSE_JOYSTICK=no
38555 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38556echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38557 fi
4cb1d3da
RN
38558 else
38559 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
38560 wxUSE_JOYSTICK=no
38561 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38562echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38563 fi
a848cd7e 38564 fi
a848cd7e 38565
4cb1d3da
RN
38566
38567 if test "$wxUSE_JOYSTICK" = "yes"; then
38568 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38569#define wxUSE_JOYSTICK 1
38570_ACEOF
38571
4cb1d3da
RN
38572 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38573 fi
a848cd7e
SC
38574 fi
38575fi
38576
38577
38578
38579if test "$wxUSE_FONTMAP" = "yes" ; then
38580 cat >>confdefs.h <<\_ACEOF
38581#define wxUSE_FONTMAP 1
38582_ACEOF
38583
38584fi
38585
38586if test "$wxUSE_UNICODE" = "yes" ; then
38587 cat >>confdefs.h <<\_ACEOF
38588#define wxUSE_UNICODE 1
38589_ACEOF
38590
38591
38592 if test "$USE_WIN32" != 1; then
38593 wxUSE_UNICODE_MSLU=no
38594 fi
38595
38596 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38597 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38598echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38599if test "${ac_cv_lib_unicows_main+set}" = set; then
38600 echo $ECHO_N "(cached) $ECHO_C" >&6
38601else
38602 ac_check_lib_save_LIBS=$LIBS
38603LIBS="-lunicows $LIBS"
38604cat >conftest.$ac_ext <<_ACEOF
38605/* confdefs.h. */
38606_ACEOF
38607cat confdefs.h >>conftest.$ac_ext
38608cat >>conftest.$ac_ext <<_ACEOF
38609/* end confdefs.h. */
38610
38611
38612int
38613main ()
38614{
38615main ();
38616 ;
38617 return 0;
38618}
38619_ACEOF
38620rm -f conftest.$ac_objext conftest$ac_exeext
38621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38622 (eval $ac_link) 2>conftest.er1
a848cd7e 38623 ac_status=$?
ac1cb8d3
VS
38624 grep -v '^ *+' conftest.er1 >conftest.err
38625 rm -f conftest.er1
38626 cat conftest.err >&5
a848cd7e
SC
38627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38628 (exit $ac_status); } &&
9dd0f6c2 38629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38631 (eval $ac_try) 2>&5
38632 ac_status=$?
38633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38634 (exit $ac_status); }; } &&
38635 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38637 (eval $ac_try) 2>&5
38638 ac_status=$?
38639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38640 (exit $ac_status); }; }; then
38641 ac_cv_lib_unicows_main=yes
38642else
38643 echo "$as_me: failed program was:" >&5
38644sed 's/^/| /' conftest.$ac_ext >&5
38645
38646ac_cv_lib_unicows_main=no
38647fi
ac1cb8d3
VS
38648rm -f conftest.err conftest.$ac_objext \
38649 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38650LIBS=$ac_check_lib_save_LIBS
38651fi
38652echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38653echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38654if test $ac_cv_lib_unicows_main = yes; then
38655
38656 cat >>confdefs.h <<\_ACEOF
38657#define wxUSE_UNICODE_MSLU 1
38658_ACEOF
38659
38660
38661else
38662
38663 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38664 Applications will only run on Windows NT/2000/XP!" >&5
38665echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38666 Applications will only run on Windows NT/2000/XP!" >&2;}
38667 wxUSE_UNICODE_MSLU=no
38668
38669fi
38670
38671 fi
38672fi
38673
38674if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38675 cat >>confdefs.h <<\_ACEOF
38676#define wxUSE_EXPERIMENTAL_PRINTF 1
38677_ACEOF
38678
38679fi
38680
38681
38682if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38683 cat >>confdefs.h <<\_ACEOF
38684#define wxUSE_POSTSCRIPT 1
38685_ACEOF
38686
38687fi
38688
38689cat >>confdefs.h <<\_ACEOF
38690#define wxUSE_AFM_FOR_POSTSCRIPT 1
38691_ACEOF
38692
38693
38694cat >>confdefs.h <<\_ACEOF
38695#define wxUSE_NORMALIZED_PS_FONTS 1
38696_ACEOF
38697
38698
38699
38700if test "$wxUSE_CONSTRAINTS" = "yes"; then
38701 cat >>confdefs.h <<\_ACEOF
38702#define wxUSE_CONSTRAINTS 1
38703_ACEOF
38704
38705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
38706fi
38707
8a7b1113
VZ
38708if test "$wxUSE_MDI" = "yes"; then
38709 cat >>confdefs.h <<\_ACEOF
38710#define wxUSE_MDI 1
38711_ACEOF
38712
38713
38714 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38715 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38716#define wxUSE_MDI_ARCHITECTURE 1
38717_ACEOF
38718
8a7b1113
VZ
38719 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
38720 fi
a848cd7e
SC
38721fi
38722
38723if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
38724 cat >>confdefs.h <<\_ACEOF
38725#define wxUSE_DOC_VIEW_ARCHITECTURE 1
38726_ACEOF
38727
38728 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
38729 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38730 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
38731 fi
38732fi
38733
38734if test "$wxUSE_HELP" = "yes"; then
38735 cat >>confdefs.h <<\_ACEOF
38736#define wxUSE_HELP 1
38737_ACEOF
38738
38739 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
38740
38741 if test "$wxUSE_MSW" = 1; then
38742 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
38743 cat >>confdefs.h <<\_ACEOF
38744#define wxUSE_MS_HTML_HELP 1
38745_ACEOF
38746
38747 fi
38748 fi
38749
38750 if test "$wxUSE_WXHTML_HELP" = "yes"; then
38751 if test "$wxUSE_HTML" = "yes"; then
38752 cat >>confdefs.h <<\_ACEOF
38753#define wxUSE_WXHTML_HELP 1
38754_ACEOF
38755
38756 else
38757 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
38758echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
38759 wxUSE_WXHTML_HELP=no
38760 fi
38761 fi
38762fi
38763
38764if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38765 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38766 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
38767echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
38768 else
38769 cat >>confdefs.h <<\_ACEOF
38770#define wxUSE_PRINTING_ARCHITECTURE 1
38771_ACEOF
38772
38773 fi
38774 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
38775fi
38776
38777if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
38778 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
38779echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
38780 { (exit 1); exit 1; }; }
38781fi
38782
38783
38784if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
38785 -o "$wxUSE_CLIPBOARD" = "yes" \
38786 -o "$wxUSE_OLE" = "yes" \
38787 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
38788
38789for ac_header in ole2.h
38790do
38791as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38792if eval "test \"\${$as_ac_Header+set}\" = set"; then
38793 echo "$as_me:$LINENO: checking for $ac_header" >&5
38794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38795if eval "test \"\${$as_ac_Header+set}\" = set"; then
38796 echo $ECHO_N "(cached) $ECHO_C" >&6
38797fi
38798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38800else
38801 # Is the header compilable?
38802echo "$as_me:$LINENO: checking $ac_header usability" >&5
38803echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38804cat >conftest.$ac_ext <<_ACEOF
38805/* confdefs.h. */
38806_ACEOF
38807cat confdefs.h >>conftest.$ac_ext
38808cat >>conftest.$ac_ext <<_ACEOF
38809/* end confdefs.h. */
38810$ac_includes_default
38811#include <$ac_header>
38812_ACEOF
38813rm -f conftest.$ac_objext
38814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38815 (eval $ac_compile) 2>conftest.er1
a848cd7e 38816 ac_status=$?
ac1cb8d3
VS
38817 grep -v '^ *+' conftest.er1 >conftest.err
38818 rm -f conftest.er1
38819 cat conftest.err >&5
a848cd7e
SC
38820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38821 (exit $ac_status); } &&
9dd0f6c2 38822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38824 (eval $ac_try) 2>&5
38825 ac_status=$?
38826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38827 (exit $ac_status); }; } &&
38828 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38830 (eval $ac_try) 2>&5
38831 ac_status=$?
38832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38833 (exit $ac_status); }; }; then
38834 ac_header_compiler=yes
38835else
38836 echo "$as_me: failed program was:" >&5
38837sed 's/^/| /' conftest.$ac_ext >&5
38838
38839ac_header_compiler=no
38840fi
ac1cb8d3 38841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38842echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38843echo "${ECHO_T}$ac_header_compiler" >&6
38844
38845# Is the header present?
38846echo "$as_me:$LINENO: checking $ac_header presence" >&5
38847echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38848cat >conftest.$ac_ext <<_ACEOF
38849/* confdefs.h. */
38850_ACEOF
38851cat confdefs.h >>conftest.$ac_ext
38852cat >>conftest.$ac_ext <<_ACEOF
38853/* end confdefs.h. */
38854#include <$ac_header>
38855_ACEOF
38856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38858 ac_status=$?
38859 grep -v '^ *+' conftest.er1 >conftest.err
38860 rm -f conftest.er1
38861 cat conftest.err >&5
38862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38863 (exit $ac_status); } >/dev/null; then
38864 if test -s conftest.err; then
38865 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38867 else
38868 ac_cpp_err=
38869 fi
38870else
38871 ac_cpp_err=yes
38872fi
38873if test -z "$ac_cpp_err"; then
38874 ac_header_preproc=yes
38875else
38876 echo "$as_me: failed program was:" >&5
38877sed 's/^/| /' conftest.$ac_ext >&5
38878
38879 ac_header_preproc=no
38880fi
38881rm -f conftest.err conftest.$ac_ext
38882echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38883echo "${ECHO_T}$ac_header_preproc" >&6
38884
38885# So? What about this header?
ac1cb8d3
VS
38886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38887 yes:no: )
a848cd7e
SC
38888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38889echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38891echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38892 ac_header_preproc=yes
a848cd7e 38893 ;;
ac1cb8d3 38894 no:yes:* )
a848cd7e
SC
38895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38896echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38898echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38900echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38902echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38904echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38906echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38907 (
38908 cat <<\_ASBOX
ac1cb8d3
VS
38909## ----------------------------------------- ##
38910## Report this to wx-dev@lists.wxwidgets.org ##
38911## ----------------------------------------- ##
a848cd7e
SC
38912_ASBOX
38913 ) |
38914 sed "s/^/$as_me: WARNING: /" >&2
38915 ;;
38916esac
38917echo "$as_me:$LINENO: checking for $ac_header" >&5
38918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38919if eval "test \"\${$as_ac_Header+set}\" = set"; then
38920 echo $ECHO_N "(cached) $ECHO_C" >&6
38921else
ac1cb8d3 38922 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38923fi
38924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38926
38927fi
38928if test `eval echo '${'$as_ac_Header'}'` = yes; then
38929 cat >>confdefs.h <<_ACEOF
38930#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38931_ACEOF
38932
38933fi
38934
38935done
38936
38937
38938 if test "$ac_cv_header_ole2_h" = "yes" ; then
38939 if test "$GCC" = yes ; then
38940
38941
38942 ac_ext=cc
38943ac_cpp='$CXXCPP $CPPFLAGS'
38944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38947
38948
38949 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
38950echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
38951 cat >conftest.$ac_ext <<_ACEOF
38952/* confdefs.h. */
38953_ACEOF
38954cat confdefs.h >>conftest.$ac_ext
38955cat >>conftest.$ac_ext <<_ACEOF
38956/* end confdefs.h. */
38957#include <windows.h>
38958 #include <ole2.h>
38959int
38960main ()
38961{
38962
38963 ;
38964 return 0;
38965}
38966_ACEOF
38967rm -f conftest.$ac_objext
38968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38969 (eval $ac_compile) 2>conftest.er1
a848cd7e 38970 ac_status=$?
ac1cb8d3
VS
38971 grep -v '^ *+' conftest.er1 >conftest.err
38972 rm -f conftest.er1
38973 cat conftest.err >&5
a848cd7e
SC
38974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38975 (exit $ac_status); } &&
9dd0f6c2 38976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38978 (eval $ac_try) 2>&5
38979 ac_status=$?
38980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38981 (exit $ac_status); }; } &&
38982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38984 (eval $ac_try) 2>&5
38985 ac_status=$?
38986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38987 (exit $ac_status); }; }; then
38988 echo "$as_me:$LINENO: result: no" >&5
38989echo "${ECHO_T}no" >&6
38990else
38991 echo "$as_me: failed program was:" >&5
38992sed 's/^/| /' conftest.$ac_ext >&5
38993
38994echo "$as_me:$LINENO: result: yes" >&5
38995echo "${ECHO_T}yes" >&6
38996 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
38997fi
ac1cb8d3 38998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38999 ac_ext=c
39000ac_cpp='$CPP $CPPFLAGS'
39001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39003ac_compiler_gnu=$ac_cv_c_compiler_gnu
39004
a848cd7e
SC
39005 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
39006 if test "$wxUSE_OLE" = "yes" ; then
39007 cat >>confdefs.h <<\_ACEOF
39008#define wxUSE_OLE 1
39009_ACEOF
39010
0b78747f 39011 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
39012 fi
39013 fi
39014
39015 if test "$wxUSE_DATAOBJ" = "yes" ; then
39016 cat >>confdefs.h <<\_ACEOF
39017#define wxUSE_DATAOBJ 1
39018_ACEOF
39019
39020 fi
39021 else
39022 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
39023echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
39024
39025 wxUSE_CLIPBOARD=no
39026 wxUSE_DRAG_AND_DROP=no
39027 wxUSE_DATAOBJ=no
39028 wxUSE_OLE=no
39029 fi
39030
39031 if test "$wxUSE_METAFILE" = "yes"; then
39032 cat >>confdefs.h <<\_ACEOF
39033#define wxUSE_METAFILE 1
39034_ACEOF
39035
39036
39037 cat >>confdefs.h <<\_ACEOF
39038#define wxUSE_ENH_METAFILE 1
39039_ACEOF
39040
39041 fi
39042fi
39043
39044if test "$wxUSE_IPC" = "yes"; then
0b78747f 39045 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
39046 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
39047echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 39048 wxUSE_IPC=no
a848cd7e
SC
39049 fi
39050
0b78747f
MW
39051 if test "$wxUSE_IPC" = "yes"; then
39052 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39053#define wxUSE_IPC 1
39054_ACEOF
39055
0b78747f
MW
39056 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
39057 fi
a848cd7e
SC
39058fi
39059
39060if test "$wxUSE_CLIPBOARD" = "yes"; then
39061 if test "$wxUSE_MGL" = 1; then
39062 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
39063echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
39064 wxUSE_CLIPBOARD=no
39065 fi
39066
39067 if test "$wxUSE_CLIPBOARD" = "yes"; then
39068 cat >>confdefs.h <<\_ACEOF
39069#define wxUSE_CLIPBOARD 1
39070_ACEOF
39071
39072
39073 cat >>confdefs.h <<\_ACEOF
39074#define wxUSE_DATAOBJ 1
39075_ACEOF
39076
39077 fi
39078fi
39079
39080if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
39081 if test "$wxUSE_GTK" = 1; then
39082 if test "$WXGTK12" != 1; then
39083 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
39084echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
39085 wxUSE_DRAG_AND_DROP=no
39086 fi
39087 fi
39088
39089 if test "$wxUSE_MOTIF" = 1; then
39090 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
39091echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
39092 wxUSE_DRAG_AND_DROP=no
39093 fi
39094
39095 if test "$wxUSE_X11" = 1; then
39096 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
39097echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
39098 wxUSE_DRAG_AND_DROP=no
39099 fi
39100
39101 if test "$wxUSE_MGL" = 1; then
39102 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
39103echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
39104 wxUSE_DRAG_AND_DROP=no
39105 fi
39106
39107 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
39108 cat >>confdefs.h <<\_ACEOF
39109#define wxUSE_DRAG_AND_DROP 1
39110_ACEOF
39111
39112 fi
39113
39114fi
39115
39116if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
39117 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
39118fi
39119
39120if test "$wxUSE_SPLINES" = "yes" ; then
39121 cat >>confdefs.h <<\_ACEOF
39122#define wxUSE_SPLINES 1
39123_ACEOF
39124
39125fi
39126
fbe2ca43
SN
39127if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
39128 cat >>confdefs.h <<\_ACEOF
39129#define wxUSE_MOUSEWHEEL 1
39130_ACEOF
39131
39132fi
39133
a848cd7e
SC
39134
39135USES_CONTROLS=0
39136if test "$wxUSE_CONTROLS" = "yes"; then
39137 USES_CONTROLS=1
39138fi
39139
39140if test "$wxUSE_ACCEL" = "yes"; then
39141 cat >>confdefs.h <<\_ACEOF
39142#define wxUSE_ACCEL 1
39143_ACEOF
39144
39145 USES_CONTROLS=1
39146fi
39147
39148if test "$wxUSE_BUTTON" = "yes"; then
39149 cat >>confdefs.h <<\_ACEOF
39150#define wxUSE_BUTTON 1
39151_ACEOF
39152
39153 USES_CONTROLS=1
39154fi
39155
39156if test "$wxUSE_BMPBUTTON" = "yes"; then
39157 cat >>confdefs.h <<\_ACEOF
39158#define wxUSE_BMPBUTTON 1
39159_ACEOF
39160
39161 USES_CONTROLS=1
39162fi
39163
39164if test "$wxUSE_CALCTRL" = "yes"; then
39165 cat >>confdefs.h <<\_ACEOF
39166#define wxUSE_CALENDARCTRL 1
39167_ACEOF
39168
39169 USES_CONTROLS=1
39170 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
39171fi
39172
39173if test "$wxUSE_CARET" = "yes"; then
39174 cat >>confdefs.h <<\_ACEOF
39175#define wxUSE_CARET 1
39176_ACEOF
39177
39178 USES_CONTROLS=1
39179 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
39180fi
39181
39182if test "$wxUSE_COMBOBOX" = "yes"; then
39183 cat >>confdefs.h <<\_ACEOF
39184#define wxUSE_COMBOBOX 1
39185_ACEOF
39186
39187 USES_CONTROLS=1
39188fi
39189
39190if test "$wxUSE_CHOICE" = "yes"; then
39191 cat >>confdefs.h <<\_ACEOF
39192#define wxUSE_CHOICE 1
39193_ACEOF
39194
39195 USES_CONTROLS=1
39196fi
39197
92bbdbcd
WS
39198if test "$wxUSE_CHOICEBOOK" = "yes"; then
39199 cat >>confdefs.h <<\_ACEOF
39200#define wxUSE_CHOICEBOOK 1
39201_ACEOF
39202
39203 USES_CONTROLS=1
39204fi
39205
a848cd7e
SC
39206if test "$wxUSE_CHECKBOX" = "yes"; then
39207 cat >>confdefs.h <<\_ACEOF
39208#define wxUSE_CHECKBOX 1
39209_ACEOF
39210
39211 USES_CONTROLS=1
39212fi
39213
39214if test "$wxUSE_CHECKLST" = "yes"; then
39215 cat >>confdefs.h <<\_ACEOF
39216#define wxUSE_CHECKLISTBOX 1
39217_ACEOF
39218
39219 USES_CONTROLS=1
39220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
39221fi
39222
da98e9be
VZ
39223if test "$wxUSE_DATEPICKCTRL" = "yes"; then
39224 cat >>confdefs.h <<\_ACEOF
39225#define wxUSE_DATEPICKCTRL 1
39226_ACEOF
39227
39228 USES_CONTROLS=1
39229fi
39230
a848cd7e
SC
39231if test "$wxUSE_DISPLAY" = "yes"; then
39232 cat >>confdefs.h <<\_ACEOF
39233#define wxUSE_DISPLAY 1
39234_ACEOF
39235
0b78747f 39236 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
39237fi
39238
39239if test "$wxUSE_GAUGE" = "yes"; then
39240 cat >>confdefs.h <<\_ACEOF
39241#define wxUSE_GAUGE 1
39242_ACEOF
39243
39244 USES_CONTROLS=1
39245fi
39246
39247if test "$wxUSE_GRID" = "yes"; then
39248 cat >>confdefs.h <<\_ACEOF
39249#define wxUSE_GRID 1
39250_ACEOF
39251
39252 USES_CONTROLS=1
39253 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
39254fi
39255
39256if test "$wxUSE_IMAGLIST" = "yes"; then
39257 cat >>confdefs.h <<\_ACEOF
39258#define wxUSE_IMAGLIST 1
39259_ACEOF
39260
39261fi
39262
39263if test "$wxUSE_LISTBOOK" = "yes"; then
39264 cat >>confdefs.h <<\_ACEOF
39265#define wxUSE_LISTBOOK 1
39266_ACEOF
39267
39268 USES_CONTROLS=1
39269fi
39270
39271if test "$wxUSE_LISTBOX" = "yes"; then
39272 cat >>confdefs.h <<\_ACEOF
39273#define wxUSE_LISTBOX 1
39274_ACEOF
39275
39276 USES_CONTROLS=1
0b78747f 39277 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
39278fi
39279
39280if test "$wxUSE_LISTCTRL" = "yes"; then
39281 if test "$wxUSE_IMAGLIST" = "yes"; then
39282 cat >>confdefs.h <<\_ACEOF
39283#define wxUSE_LISTCTRL 1
39284_ACEOF
39285
39286 USES_CONTROLS=1
39287 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
39288 else
39289 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
39290echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
39291 fi
39292fi
39293
39294if test "$wxUSE_NOTEBOOK" = "yes"; then
39295 cat >>confdefs.h <<\_ACEOF
39296#define wxUSE_NOTEBOOK 1
39297_ACEOF
39298
39299 USES_CONTROLS=1
39300 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
39301fi
39302
39303
39304if test "$wxUSE_RADIOBOX" = "yes"; then
39305 cat >>confdefs.h <<\_ACEOF
39306#define wxUSE_RADIOBOX 1
39307_ACEOF
39308
39309 USES_CONTROLS=1
39310fi
39311
39312if test "$wxUSE_RADIOBTN" = "yes"; then
39313 cat >>confdefs.h <<\_ACEOF
39314#define wxUSE_RADIOBTN 1
39315_ACEOF
39316
39317 USES_CONTROLS=1
39318fi
39319
39320if test "$wxUSE_SASH" = "yes"; then
39321 cat >>confdefs.h <<\_ACEOF
39322#define wxUSE_SASH 1
39323_ACEOF
39324
39325 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
39326fi
39327
39328if test "$wxUSE_SCROLLBAR" = "yes"; then
39329 cat >>confdefs.h <<\_ACEOF
39330#define wxUSE_SCROLLBAR 1
39331_ACEOF
39332
39333 USES_CONTROLS=1
39334 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
39335fi
39336
39337if test "$wxUSE_SLIDER" = "yes"; then
39338 cat >>confdefs.h <<\_ACEOF
39339#define wxUSE_SLIDER 1
39340_ACEOF
39341
39342 USES_CONTROLS=1
39343fi
39344
39345if test "$wxUSE_SPINBTN" = "yes"; then
39346 cat >>confdefs.h <<\_ACEOF
39347#define wxUSE_SPINBTN 1
39348_ACEOF
39349
39350 USES_CONTROLS=1
39351fi
39352
39353if test "$wxUSE_SPINCTRL" = "yes"; then
39354 cat >>confdefs.h <<\_ACEOF
39355#define wxUSE_SPINCTRL 1
39356_ACEOF
39357
39358 USES_CONTROLS=1
39359fi
39360
39361if test "$wxUSE_SPLITTER" = "yes"; then
39362 cat >>confdefs.h <<\_ACEOF
39363#define wxUSE_SPLITTER 1
39364_ACEOF
39365
39366 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
39367fi
39368
39369if test "$wxUSE_STATBMP" = "yes"; then
39370 cat >>confdefs.h <<\_ACEOF
39371#define wxUSE_STATBMP 1
39372_ACEOF
39373
39374 USES_CONTROLS=1
39375fi
39376
39377if test "$wxUSE_STATBOX" = "yes"; then
39378 cat >>confdefs.h <<\_ACEOF
39379#define wxUSE_STATBOX 1
39380_ACEOF
39381
39382 USES_CONTROLS=1
39383fi
39384
39385if test "$wxUSE_STATTEXT" = "yes"; then
39386 cat >>confdefs.h <<\_ACEOF
39387#define wxUSE_STATTEXT 1
39388_ACEOF
39389
39390 USES_CONTROLS=1
39391fi
39392
39393if test "$wxUSE_STATLINE" = "yes"; then
39394 cat >>confdefs.h <<\_ACEOF
39395#define wxUSE_STATLINE 1
39396_ACEOF
39397
39398 USES_CONTROLS=1
39399fi
39400
39401if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
39402 cat >>confdefs.h <<\_ACEOF
39403#define wxUSE_NATIVE_STATUSBAR 1
39404_ACEOF
39405
a848cd7e
SC
39406 cat >>confdefs.h <<\_ACEOF
39407#define wxUSE_STATUSBAR 1
39408_ACEOF
39409
39410 USES_CONTROLS=1
39411
39412 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
39413fi
39414
39415if test "$wxUSE_TABDIALOG" = "yes"; then
39416 cat >>confdefs.h <<\_ACEOF
39417#define wxUSE_TAB_DIALOG 1
39418_ACEOF
39419
a848cd7e
SC
39420fi
39421
39422if test "$wxUSE_TEXTCTRL" = "yes"; then
39423 cat >>confdefs.h <<\_ACEOF
39424#define wxUSE_TEXTCTRL 1
39425_ACEOF
39426
39427 USES_CONTROLS=1
39428 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
39429fi
39430
39431if test "$wxUSE_TOGGLEBTN" = "yes"; then
39432 if test "$wxUSE_COCOA" = 1 ; then
39433 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
39434echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
39435 wxUSE_TOGGLEBTN=no
39436 fi
39437 if test "$wxUSE_UNIVERSAL" = "yes"; then
39438 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
39439echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
39440 wxUSE_TOGGLEBTN=no
39441 fi
39442
39443 if test "$wxUSE_TOGGLEBTN" = "yes"; then
39444 cat >>confdefs.h <<\_ACEOF
39445#define wxUSE_TOGGLEBTN 1
39446_ACEOF
39447
39448 USES_CONTROLS=1
39449 fi
39450fi
39451
39452if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
39453 cat >>confdefs.h <<\_ACEOF
39454#define wxUSE_TOOLBAR_SIMPLE 1
39455_ACEOF
39456
39457 wxUSE_TOOLBAR="yes"
39458 USES_CONTROLS=1
39459fi
39460
39461if test "$wxUSE_TOOLBAR" = "yes"; then
39462 cat >>confdefs.h <<\_ACEOF
39463#define wxUSE_TOOLBAR 1
39464_ACEOF
39465
39466 USES_CONTROLS=1
39467
39468 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39469 wxUSE_TOOLBAR_NATIVE="yes"
39470 fi
39471
39472 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39473 cat >>confdefs.h <<\_ACEOF
39474#define wxUSE_TOOLBAR_NATIVE 1
39475_ACEOF
39476
39477 USES_CONTROLS=1
39478 fi
39479
39480 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39481fi
39482
39483if test "$wxUSE_TOOLTIPS" = "yes"; then
39484 if test "$wxUSE_MOTIF" = 1; then
39485 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39486echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39487 else
39488 if test "$wxUSE_UNIVERSAL" = "yes"; then
39489 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39490echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39491 else
39492 cat >>confdefs.h <<\_ACEOF
39493#define wxUSE_TOOLTIPS 1
39494_ACEOF
39495
39496 fi
39497 fi
39498fi
39499
39500if test "$wxUSE_TREECTRL" = "yes"; then
39501 if test "$wxUSE_IMAGLIST" = "yes"; then
39502 cat >>confdefs.h <<\_ACEOF
39503#define wxUSE_TREECTRL 1
39504_ACEOF
39505
39506 USES_CONTROLS=1
39507 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39508 else
39509 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39510echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39511 fi
39512fi
39513
39514if test "$wxUSE_POPUPWIN" = "yes"; then
39515 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39516 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39517echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39518 else
39519 if test "$wxUSE_PM" = 1; then
39520 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39521echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39522 else
39523 cat >>confdefs.h <<\_ACEOF
39524#define wxUSE_POPUPWIN 1
39525_ACEOF
39526
0b78747f 39527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
39528
39529 USES_CONTROLS=1
39530 fi
39531 fi
39532fi
39533
0dcd06dd 39534if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
39535 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39536 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39537echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39538 else
39539 cat >>confdefs.h <<\_ACEOF
39540#define wxUSE_DIALUP_MANAGER 1
39541_ACEOF
39542
39543 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39544 fi
39545fi
39546
a848cd7e
SC
39547if test "$wxUSE_TIPWINDOW" = "yes"; then
39548 if test "$wxUSE_PM" = 1; then
39549 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39550echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39551 else
39552 cat >>confdefs.h <<\_ACEOF
39553#define wxUSE_TIPWINDOW 1
39554_ACEOF
39555
39556 fi
39557fi
39558
39559if test "$USES_CONTROLS" = 1; then
39560 cat >>confdefs.h <<\_ACEOF
39561#define wxUSE_CONTROLS 1
39562_ACEOF
39563
39564fi
39565
39566
39567if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39568 cat >>confdefs.h <<\_ACEOF
39569#define wxUSE_ACCESSIBILITY 1
39570_ACEOF
39571
39572 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39573fi
39574
39575if test "$wxUSE_DRAGIMAGE" = "yes"; then
39576 cat >>confdefs.h <<\_ACEOF
39577#define wxUSE_DRAGIMAGE 1
39578_ACEOF
39579
39580 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39581fi
39582
39583if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
39584 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39585 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39586echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39587 else
39588 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39589#define wxUSE_EXCEPTIONS 1
39590_ACEOF
39591
07bea8f0
VS
39592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39593 fi
a848cd7e
SC
39594fi
39595
39596USE_HTML=0
39597if test "$wxUSE_HTML" = "yes"; then
39598 cat >>confdefs.h <<\_ACEOF
39599#define wxUSE_HTML 1
39600_ACEOF
39601
39602 USE_HTML=1
39603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
39604 if test "$wxUSE_MAC" = 1; then
39605 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
39606 fi
a848cd7e 39607fi
646b6ec1 39608if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 39609 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
39610 old_CPPFLAGS="$CPPFLAGS"
39611 CPPFLAGS="$CPPFLAGS -x objective-c++"
39612 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
39613echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
39614if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
39615 echo $ECHO_N "(cached) $ECHO_C" >&6
39616else
39617 cat >conftest.$ac_ext <<_ACEOF
39618/* confdefs.h. */
39619_ACEOF
39620cat confdefs.h >>conftest.$ac_ext
39621cat >>conftest.$ac_ext <<_ACEOF
39622/* end confdefs.h. */
39623#include <Carbon/Carbon.h>
39624
39625#include <WebKit/HIWebView.h>
39626_ACEOF
39627rm -f conftest.$ac_objext
39628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39629 (eval $ac_compile) 2>conftest.er1
39630 ac_status=$?
39631 grep -v '^ *+' conftest.er1 >conftest.err
39632 rm -f conftest.er1
39633 cat conftest.err >&5
39634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39635 (exit $ac_status); } &&
9dd0f6c2 39636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
39637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39638 (eval $ac_try) 2>&5
39639 ac_status=$?
39640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39641 (exit $ac_status); }; } &&
39642 { ac_try='test -s conftest.$ac_objext'
39643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39644 (eval $ac_try) 2>&5
39645 ac_status=$?
39646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39647 (exit $ac_status); }; }; then
39648 ac_cv_header_WebKit_HIWebView_h=yes
39649else
39650 echo "$as_me: failed program was:" >&5
39651sed 's/^/| /' conftest.$ac_ext >&5
39652
39653ac_cv_header_WebKit_HIWebView_h=no
39654fi
39655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39656fi
39657echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39658echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39659if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39660
39661 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
39662#define wxUSE_WEBKIT 1
39663_ACEOF
39664
07bea8f0
VS
39665 WEBKIT_LINK="-framework WebKit"
39666
39667else
39668
39669 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39670echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39671 wxUSE_WEBKIT=no
39672
646b6ec1
VS
39673fi
39674
07bea8f0
VS
39675
39676 CPPFLAGS="$old_CPPFLAGS"
39677 elif test "$wxUSE_COCOA" = 1; then
39678 cat >>confdefs.h <<\_ACEOF
39679#define wxUSE_WEBKIT 1
39680_ACEOF
39681
39682 else
39683 wxUSE_WEBKIT=no
39684 fi
39685fi
39686
9a8f0513
VS
39687USE_XRC=0
39688if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
39689 if test "$wxUSE_XML" != "yes"; then
39690 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39691echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39692 wxUSE_XRC=no
39693 else
39694 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
39695#define wxUSE_XRC 1
39696_ACEOF
39697
d2ebf0b7
VS
39698 USE_XRC=1
39699 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
39700 fi
9a8f0513 39701fi
07bea8f0 39702
a848cd7e
SC
39703if test "$wxUSE_MENUS" = "yes"; then
39704 cat >>confdefs.h <<\_ACEOF
39705#define wxUSE_MENUS 1
39706_ACEOF
39707
39708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
39709fi
39710
39711if test "$wxUSE_METAFILE" = "yes"; then
39712 cat >>confdefs.h <<\_ACEOF
39713#define wxUSE_METAFILE 1
39714_ACEOF
39715
39716fi
39717
39718if test "$wxUSE_MIMETYPE" = "yes"; then
39719 cat >>confdefs.h <<\_ACEOF
39720#define wxUSE_MIMETYPE 1
39721_ACEOF
39722
39723fi
39724
39725if test "$wxUSE_MINIFRAME" = "yes"; then
39726 cat >>confdefs.h <<\_ACEOF
39727#define wxUSE_MINIFRAME 1
39728_ACEOF
39729
39730 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
39731fi
39732
39733if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
39734 cat >>confdefs.h <<\_ACEOF
39735#define wxUSE_SYSTEM_OPTIONS 1
39736_ACEOF
39737
39738 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 39739 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
39740 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
39741 fi
39742fi
39743
39744
39745if test "$wxUSE_VALIDATORS" = "yes"; then
39746 cat >>confdefs.h <<\_ACEOF
39747#define wxUSE_VALIDATORS 1
39748_ACEOF
39749
39750 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
39751fi
39752
39753if test "$wxUSE_PALETTE" = "yes" ; then
39754 cat >>confdefs.h <<\_ACEOF
39755#define wxUSE_PALETTE 1
39756_ACEOF
39757
39758fi
39759
39760if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
39761 LIBS=" -lunicows $LIBS"
39762fi
39763
39764
39765if test "$wxUSE_IMAGE" = "yes" ; then
39766 cat >>confdefs.h <<\_ACEOF
39767#define wxUSE_IMAGE 1
39768_ACEOF
39769
39770
39771 if test "$wxUSE_GIF" = "yes" ; then
39772 cat >>confdefs.h <<\_ACEOF
39773#define wxUSE_GIF 1
39774_ACEOF
39775
39776 fi
39777
39778 if test "$wxUSE_PCX" = "yes" ; then
39779 cat >>confdefs.h <<\_ACEOF
39780#define wxUSE_PCX 1
39781_ACEOF
39782
39783 fi
39784
39785 if test "$wxUSE_IFF" = "yes" ; then
39786 cat >>confdefs.h <<\_ACEOF
39787#define wxUSE_IFF 1
39788_ACEOF
39789
39790 fi
39791
39792 if test "$wxUSE_PNM" = "yes" ; then
39793 cat >>confdefs.h <<\_ACEOF
39794#define wxUSE_PNM 1
39795_ACEOF
39796
39797 fi
39798
39799 if test "$wxUSE_XPM" = "yes" ; then
39800 cat >>confdefs.h <<\_ACEOF
39801#define wxUSE_XPM 1
39802_ACEOF
39803
39804 fi
39805
39806 if test "$wxUSE_ICO_CUR" = "yes" ; then
39807 cat >>confdefs.h <<\_ACEOF
39808#define wxUSE_ICO_CUR 1
39809_ACEOF
39810
39811 fi
39812fi
39813
39814
39815if test "$wxUSE_CHOICEDLG" = "yes"; then
39816 cat >>confdefs.h <<\_ACEOF
39817#define wxUSE_CHOICEDLG 1
39818_ACEOF
39819
39820fi
39821
39822if test "$wxUSE_COLOURDLG" = "yes"; then
39823 cat >>confdefs.h <<\_ACEOF
39824#define wxUSE_COLOURDLG 1
39825_ACEOF
39826
39827fi
39828
39829if test "$wxUSE_FILEDLG" = "yes"; then
39830 cat >>confdefs.h <<\_ACEOF
39831#define wxUSE_FILEDLG 1
39832_ACEOF
39833
39834fi
39835
39836if test "$wxUSE_FINDREPLDLG" = "yes"; then
39837 cat >>confdefs.h <<\_ACEOF
39838#define wxUSE_FINDREPLDLG 1
39839_ACEOF
39840
39841fi
39842
39843if test "$wxUSE_FONTDLG" = "yes"; then
39844 cat >>confdefs.h <<\_ACEOF
39845#define wxUSE_FONTDLG 1
39846_ACEOF
39847
39848fi
39849
39850if test "$wxUSE_DIRDLG" = "yes"; then
39851 if test "$wxUSE_TREECTRL" != "yes"; then
39852 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
39853echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
39854 else
39855 cat >>confdefs.h <<\_ACEOF
39856#define wxUSE_DIRDLG 1
39857_ACEOF
39858
39859 fi
39860fi
39861
39862if test "$wxUSE_MSGDLG" = "yes"; then
39863 cat >>confdefs.h <<\_ACEOF
39864#define wxUSE_MSGDLG 1
39865_ACEOF
39866
39867fi
39868
39869if test "$wxUSE_NUMBERDLG" = "yes"; then
39870 cat >>confdefs.h <<\_ACEOF
39871#define wxUSE_NUMBERDLG 1
39872_ACEOF
39873
39874fi
39875
39876if test "$wxUSE_PROGRESSDLG" = "yes"; then
39877 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39878 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
39879echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
39880 else
39881 cat >>confdefs.h <<\_ACEOF
39882#define wxUSE_PROGRESSDLG 1
39883_ACEOF
39884
39885 fi
39886fi
39887
39888if test "$wxUSE_SPLASH" = "yes"; then
39889 cat >>confdefs.h <<\_ACEOF
39890#define wxUSE_SPLASH 1
39891_ACEOF
39892
2057db16 39893 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
39894fi
39895
39896if test "$wxUSE_STARTUP_TIPS" = "yes"; then
39897 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39898 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
39899echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
39900 else
39901 cat >>confdefs.h <<\_ACEOF
39902#define wxUSE_STARTUP_TIPS 1
39903_ACEOF
39904
39905 fi
39906fi
39907
39908if test "$wxUSE_TEXTDLG" = "yes"; then
39909 cat >>confdefs.h <<\_ACEOF
39910#define wxUSE_TEXTDLG 1
39911_ACEOF
39912
39913fi
39914
39915if test "$wxUSE_WIZARDDLG" = "yes"; then
39916 cat >>confdefs.h <<\_ACEOF
39917#define wxUSE_WIZARDDLG 1
39918_ACEOF
39919
39920 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
39921fi
39922
39923
ce756cb0
RN
39924if test "$wxUSE_MEDIACTRL" = "yes"; then
39925 if test "$wxUSE_MSW" = 1; then
39926 wxUSE_DIRECTSHOW="yes"
39927
39928for ac_header in dshow.h
39929do
39930as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39931echo "$as_me:$LINENO: checking for $ac_header" >&5
39932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39933if eval "test \"\${$as_ac_Header+set}\" = set"; then
39934 echo $ECHO_N "(cached) $ECHO_C" >&6
39935else
39936 cat >conftest.$ac_ext <<_ACEOF
39937/* confdefs.h. */
39938_ACEOF
39939cat confdefs.h >>conftest.$ac_ext
39940cat >>conftest.$ac_ext <<_ACEOF
39941/* end confdefs.h. */
39942#include <windows.h>
39943
39944#include <$ac_header>
39945_ACEOF
39946rm -f conftest.$ac_objext
39947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39948 (eval $ac_compile) 2>conftest.er1
39949 ac_status=$?
39950 grep -v '^ *+' conftest.er1 >conftest.err
39951 rm -f conftest.er1
39952 cat conftest.err >&5
39953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39954 (exit $ac_status); } &&
9dd0f6c2 39955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39957 (eval $ac_try) 2>&5
39958 ac_status=$?
39959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39960 (exit $ac_status); }; } &&
39961 { ac_try='test -s conftest.$ac_objext'
39962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39963 (eval $ac_try) 2>&5
39964 ac_status=$?
39965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39966 (exit $ac_status); }; }; then
39967 eval "$as_ac_Header=yes"
39968else
39969 echo "$as_me: failed program was:" >&5
39970sed 's/^/| /' conftest.$ac_ext >&5
39971
39972eval "$as_ac_Header=no"
39973fi
39974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39975fi
39976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39977echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39978if test `eval echo '${'$as_ac_Header'}'` = yes; then
39979 cat >>confdefs.h <<_ACEOF
39980#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39981_ACEOF
39982
39983else
39984
39985 wxUSE_DIRECTSHOW="no"
39986 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
39987echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
39988
39989fi
39990
39991done
39992
39993
39994 if test "$wxUSE_DIRECTSHOW" = "yes"; then
39995 cat >>confdefs.h <<\_ACEOF
39996#define wxUSE_DIRECTSHOW 1
39997_ACEOF
39998
39999 LIBS="$LIBS -lstrmiids"
40000 fi
40001 fi
40002
40003 if test "$wxUSE_GTK" = 1; then
40004 wxUSE_GSTREAMER="yes"
40005
ce756cb0 40006
dae87f93 40007 succeeded=no
ce756cb0 40008
dae87f93
RN
40009 if test -z "$PKG_CONFIG"; then
40010 # Extract the first word of "pkg-config", so it can be a program name with args.
40011set dummy pkg-config; ac_word=$2
40012echo "$as_me:$LINENO: checking for $ac_word" >&5
40013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40014if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40015 echo $ECHO_N "(cached) $ECHO_C" >&6
40016else
40017 case $PKG_CONFIG in
40018 [\\/]* | ?:[\\/]*)
40019 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40020 ;;
40021 *)
40022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40023for as_dir in $PATH
40024do
40025 IFS=$as_save_IFS
40026 test -z "$as_dir" && as_dir=.
40027 for ac_exec_ext in '' $ac_executable_extensions; do
40028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40029 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40031 break 2
40032 fi
40033done
40034done
40035
40036 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40037 ;;
40038esac
40039fi
40040PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40041
40042if test -n "$PKG_CONFIG"; then
40043 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40044echo "${ECHO_T}$PKG_CONFIG" >&6
40045else
40046 echo "$as_me:$LINENO: result: no" >&5
40047echo "${ECHO_T}no" >&6
40048fi
40049
40050 fi
40051
40052 if test "$PKG_CONFIG" = "no" ; then
40053 echo "*** The pkg-config script could not be found. Make sure it is"
40054 echo "*** in your path, or set the PKG_CONFIG environment variable"
40055 echo "*** to the full path to pkg-config."
40056 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40057 else
40058 PKG_CONFIG_MIN_VERSION=0.9.0
40059 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40060 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
40061echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
40062
40063 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
40064 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40065echo "${ECHO_T}yes" >&6
dae87f93 40066 succeeded=yes
ce756cb0 40067
dae87f93
RN
40068 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
40069echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
40070 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
40071 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
40072echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
40073
40074 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
40075echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
40076 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
40077 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
40078echo "${ECHO_T}$GSTREAMER_LIBS" >&6
40079 else
40080 GSTREAMER_CFLAGS=""
40081 GSTREAMER_LIBS=""
40082 ## If we have a custom action on failure, don't print errors, but
40083 ## do set a variable so people can do so.
40084 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 40085
dae87f93
RN
40086 fi
40087
40088
40089
40090 else
40091 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40092 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40093 fi
40094 fi
40095
40096 if test $succeeded = yes; then
40097
40098 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
40099 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 40100
ce756cb0 40101 else
dae87f93
RN
40102
40103 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
40104echo "$as_me: WARNING: GStreamer installation not found" >&2;}
40105 wxUSE_GSTREAMER="no"
40106
40107 fi
40108
40109
40110
40111
40112
40113 if test "x$GST_INSPECT" == "x"; then
40114 # Extract the first word of "gst-inspect", so it can be a program name with args.
40115set dummy gst-inspect; ac_word=$2
40116echo "$as_me:$LINENO: checking for $ac_word" >&5
40117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40118if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
40119 echo $ECHO_N "(cached) $ECHO_C" >&6
40120else
40121 if test -n "$GST_INSPECT"; then
40122 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
40123else
40124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40125for as_dir in $PATH
40126do
40127 IFS=$as_save_IFS
40128 test -z "$as_dir" && as_dir=.
40129 for ac_exec_ext in '' $ac_executable_extensions; do
40130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40131 ac_cv_prog_GST_INSPECT="gst-inspect"
40132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40133 break 2
ce756cb0 40134 fi
dae87f93
RN
40135done
40136done
40137
40138fi
40139fi
40140GST_INSPECT=$ac_cv_prog_GST_INSPECT
40141if test -n "$GST_INSPECT"; then
40142 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
40143echo "${ECHO_T}$GST_INSPECT" >&6
40144else
40145 echo "$as_me:$LINENO: result: no" >&5
40146echo "${ECHO_T}no" >&6
40147fi
40148
40149 fi
40150
40151 if test "x$GST_INSPECT" != "x"; then
40152 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
40153echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
40154 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
40155 echo "$as_me:$LINENO: result: found." >&5
40156echo "${ECHO_T}found." >&6
ce756cb0 40157
ce756cb0 40158 else
dae87f93
RN
40159 echo "$as_me:$LINENO: result: not found." >&5
40160echo "${ECHO_T}not found." >&6
40161
40162 wxUSE_GSTREAMER="no"
40163 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
40164echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
40165
40166 fi
40167 fi
40168
40169
40170 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
40171echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
40172if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
40173 echo $ECHO_N "(cached) $ECHO_C" >&6
40174else
40175 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
40176/* confdefs.h. */
40177_ACEOF
40178cat confdefs.h >>conftest.$ac_ext
40179cat >>conftest.$ac_ext <<_ACEOF
40180/* end confdefs.h. */
dae87f93 40181#include <gst/gst.h>
ce756cb0 40182
dae87f93 40183#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
40184_ACEOF
40185rm -f conftest.$ac_objext
40186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40187 (eval $ac_compile) 2>conftest.er1
40188 ac_status=$?
40189 grep -v '^ *+' conftest.er1 >conftest.err
40190 rm -f conftest.er1
40191 cat conftest.err >&5
40192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40193 (exit $ac_status); } &&
9dd0f6c2 40194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
40195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40196 (eval $ac_try) 2>&5
40197 ac_status=$?
40198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40199 (exit $ac_status); }; } &&
40200 { ac_try='test -s conftest.$ac_objext'
40201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40202 (eval $ac_try) 2>&5
40203 ac_status=$?
40204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40205 (exit $ac_status); }; }; then
dae87f93 40206 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
40207else
40208 echo "$as_me: failed program was:" >&5
40209sed 's/^/| /' conftest.$ac_ext >&5
40210
dae87f93 40211ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
40212fi
40213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
40214fi
40215echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
40216echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
40217if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
40218 :
40219else
ce756cb0 40220
dae87f93
RN
40221 wxUSE_GSTREAMER="no"
40222 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
40223echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 40224
dae87f93 40225fi
ce756cb0 40226
dae87f93
RN
40227
40228
40229 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
40230echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
40231
40232ac_find_libraries=
40233for ac_dir in $SEARCH_LIB /usr/lib;
40234 do
40235 for ac_extension in a so sl dylib; do
40236 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
40237 ac_find_libraries=$ac_dir
40238 break 2
40239 fi
40240 done
40241 done
40242
ce756cb0 40243
dae87f93
RN
40244 if test "$ac_find_libraries" = "" ; then
40245 echo "$as_me:$LINENO: result: no" >&5
40246echo "${ECHO_T}no" >&6
40247 wxUSE_GSTREAMER="no"
40248 else
40249 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40250echo "${ECHO_T}yes" >&6
dae87f93 40251 fi
ce756cb0 40252
dae87f93
RN
40253 if test "$wxUSE_GSTREAMER" = "yes"; then
40254 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
40255#define wxUSE_GSTREAMER 1
40256_ACEOF
40257
dae87f93
RN
40258 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
40259echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
40260 fi
40261 fi
40262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
40263 cat >>confdefs.h <<\_ACEOF
40264#define wxUSE_MEDIACTRL 1
40265_ACEOF
40266
40267fi
40268
40269
a848cd7e
SC
40270if test "$cross_compiling" = "yes"; then
40271 OSINFO="\"$host\""
40272else
40273 OSINFO=`uname -s -r -m`
40274 OSINFO="\"$OSINFO\""
40275fi
40276
40277cat >>confdefs.h <<_ACEOF
40278#define WXWIN_OS_DESCRIPTION $OSINFO
40279_ACEOF
40280
40281
40282
40283if test "x$prefix" != "xNONE"; then
40284 wxPREFIX=$prefix
40285else
40286 wxPREFIX=$ac_default_prefix
40287fi
40288
40289cat >>confdefs.h <<_ACEOF
40290#define wxINSTALL_PREFIX "$wxPREFIX"
40291_ACEOF
40292
40293
a848cd7e
SC
40294
40295
40296CORE_BASE_LIBS="net base"
40297CORE_GUI_LIBS="adv core"
40298
40299if test "$wxUSE_XML" = "yes" ; then
40300 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
40301fi
40302if test "$wxUSE_ODBC" != "no" ; then
40303 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
40304 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
40305fi
40306if test "$wxUSE_HTML" = "yes" ; then
40307 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
40308fi
61639efb
VZ
40309if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40310 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
40311fi
9a8f0513
VS
40312if test "$wxUSE_XRC" = "yes" ; then
40313 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
40314fi
a848cd7e
SC
40315
40316if test "$wxUSE_GUI" != "yes"; then
40317 CORE_GUI_LIBS=""
40318fi
40319
40320
40321
40322
40323
40324
40325
40326
40327if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 40328 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
40329 if test "$USE_DARWIN" = 1; then
40330 LDFLAGS="$LDFLAGS -framework QuickTime"
40331 else
40332 LDFLAGS="$LDFLAGS -lQuickTimeLib"
40333 fi
07bea8f0 40334 fi
5dcf30a0 40335 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
40336 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
40337 else
40338 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 40339 fi
59746b65
MW
40340elif test "$USE_DARWIN" = 1; then
40341 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System"
a848cd7e
SC
40342fi
40343if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 40344 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
40345 if test "$wxUSE_MEDIACTRL" = "yes"; then
40346 LDFLAGS="$LDFLAGS -framework QuickTime"
40347 fi
a848cd7e
SC
40348fi
40349
40350
40351LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
40352
40353have_cos=0
40354have_floor=0
40355
40356for ac_func in cos
40357do
40358as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40359echo "$as_me:$LINENO: checking for $ac_func" >&5
40360echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40361if eval "test \"\${$as_ac_var+set}\" = set"; then
40362 echo $ECHO_N "(cached) $ECHO_C" >&6
40363else
40364 cat >conftest.$ac_ext <<_ACEOF
40365/* confdefs.h. */
40366_ACEOF
40367cat confdefs.h >>conftest.$ac_ext
40368cat >>conftest.$ac_ext <<_ACEOF
40369/* end confdefs.h. */
ac1cb8d3
VS
40370/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40372#define $ac_func innocuous_$ac_func
40373
a848cd7e
SC
40374/* System header to define __stub macros and hopefully few prototypes,
40375 which can conflict with char $ac_func (); below.
40376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40377 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40378
a848cd7e
SC
40379#ifdef __STDC__
40380# include <limits.h>
40381#else
40382# include <assert.h>
40383#endif
ac1cb8d3
VS
40384
40385#undef $ac_func
40386
a848cd7e
SC
40387/* Override any gcc2 internal prototype to avoid an error. */
40388#ifdef __cplusplus
40389extern "C"
40390{
40391#endif
40392/* We use char because int might match the return type of a gcc2
40393 builtin and then its argument prototype would still apply. */
40394char $ac_func ();
40395/* The GNU C library defines this for functions which it implements
40396 to always fail with ENOSYS. Some functions are actually named
40397 something starting with __ and the normal name is an alias. */
40398#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40399choke me
40400#else
40401char (*f) () = $ac_func;
40402#endif
40403#ifdef __cplusplus
40404}
40405#endif
40406
40407int
40408main ()
40409{
40410return f != $ac_func;
40411 ;
40412 return 0;
40413}
40414_ACEOF
40415rm -f conftest.$ac_objext conftest$ac_exeext
40416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40417 (eval $ac_link) 2>conftest.er1
a848cd7e 40418 ac_status=$?
ac1cb8d3
VS
40419 grep -v '^ *+' conftest.er1 >conftest.err
40420 rm -f conftest.er1
40421 cat conftest.err >&5
a848cd7e
SC
40422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40423 (exit $ac_status); } &&
9dd0f6c2 40424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40426 (eval $ac_try) 2>&5
40427 ac_status=$?
40428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40429 (exit $ac_status); }; } &&
40430 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40432 (eval $ac_try) 2>&5
40433 ac_status=$?
40434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40435 (exit $ac_status); }; }; then
40436 eval "$as_ac_var=yes"
40437else
40438 echo "$as_me: failed program was:" >&5
40439sed 's/^/| /' conftest.$ac_ext >&5
40440
40441eval "$as_ac_var=no"
40442fi
ac1cb8d3
VS
40443rm -f conftest.err conftest.$ac_objext \
40444 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40445fi
40446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40447echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40448if test `eval echo '${'$as_ac_var'}'` = yes; then
40449 cat >>confdefs.h <<_ACEOF
40450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40451_ACEOF
40452 have_cos=1
40453fi
40454done
40455
40456
40457for ac_func in floor
40458do
40459as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40460echo "$as_me:$LINENO: checking for $ac_func" >&5
40461echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40462if eval "test \"\${$as_ac_var+set}\" = set"; then
40463 echo $ECHO_N "(cached) $ECHO_C" >&6
40464else
40465 cat >conftest.$ac_ext <<_ACEOF
40466/* confdefs.h. */
40467_ACEOF
40468cat confdefs.h >>conftest.$ac_ext
40469cat >>conftest.$ac_ext <<_ACEOF
40470/* end confdefs.h. */
ac1cb8d3
VS
40471/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40473#define $ac_func innocuous_$ac_func
40474
a848cd7e
SC
40475/* System header to define __stub macros and hopefully few prototypes,
40476 which can conflict with char $ac_func (); below.
40477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40478 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40479
a848cd7e
SC
40480#ifdef __STDC__
40481# include <limits.h>
40482#else
40483# include <assert.h>
40484#endif
ac1cb8d3
VS
40485
40486#undef $ac_func
40487
a848cd7e
SC
40488/* Override any gcc2 internal prototype to avoid an error. */
40489#ifdef __cplusplus
40490extern "C"
40491{
40492#endif
40493/* We use char because int might match the return type of a gcc2
40494 builtin and then its argument prototype would still apply. */
40495char $ac_func ();
40496/* The GNU C library defines this for functions which it implements
40497 to always fail with ENOSYS. Some functions are actually named
40498 something starting with __ and the normal name is an alias. */
40499#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40500choke me
40501#else
40502char (*f) () = $ac_func;
40503#endif
40504#ifdef __cplusplus
40505}
40506#endif
40507
40508int
40509main ()
40510{
40511return f != $ac_func;
40512 ;
40513 return 0;
40514}
40515_ACEOF
40516rm -f conftest.$ac_objext conftest$ac_exeext
40517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40518 (eval $ac_link) 2>conftest.er1
a848cd7e 40519 ac_status=$?
ac1cb8d3
VS
40520 grep -v '^ *+' conftest.er1 >conftest.err
40521 rm -f conftest.er1
40522 cat conftest.err >&5
a848cd7e
SC
40523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40524 (exit $ac_status); } &&
9dd0f6c2 40525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40527 (eval $ac_try) 2>&5
40528 ac_status=$?
40529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40530 (exit $ac_status); }; } &&
40531 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40533 (eval $ac_try) 2>&5
40534 ac_status=$?
40535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40536 (exit $ac_status); }; }; then
40537 eval "$as_ac_var=yes"
40538else
40539 echo "$as_me: failed program was:" >&5
40540sed 's/^/| /' conftest.$ac_ext >&5
40541
40542eval "$as_ac_var=no"
40543fi
ac1cb8d3
VS
40544rm -f conftest.err conftest.$ac_objext \
40545 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40546fi
40547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40548echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40549if test `eval echo '${'$as_ac_var'}'` = yes; then
40550 cat >>confdefs.h <<_ACEOF
40551#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40552_ACEOF
40553 have_floor=1
40554fi
40555done
40556
40557echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40558echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40559if test "$have_cos" = 1 -a "$have_floor" = 1; then
40560 echo "$as_me:$LINENO: result: yes" >&5
40561echo "${ECHO_T}yes" >&6
40562else
40563 echo "$as_me:$LINENO: result: no" >&5
40564echo "${ECHO_T}no" >&6
40565 LIBS="$LIBS -lm"
40566 # use different functions to avoid configure caching
40567 have_sin=0
40568 have_ceil=0
40569
40570for ac_func in sin
40571do
40572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40573echo "$as_me:$LINENO: checking for $ac_func" >&5
40574echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40575if eval "test \"\${$as_ac_var+set}\" = set"; then
40576 echo $ECHO_N "(cached) $ECHO_C" >&6
40577else
40578 cat >conftest.$ac_ext <<_ACEOF
40579/* confdefs.h. */
40580_ACEOF
40581cat confdefs.h >>conftest.$ac_ext
40582cat >>conftest.$ac_ext <<_ACEOF
40583/* end confdefs.h. */
ac1cb8d3
VS
40584/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40586#define $ac_func innocuous_$ac_func
40587
a848cd7e
SC
40588/* System header to define __stub macros and hopefully few prototypes,
40589 which can conflict with char $ac_func (); below.
40590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40591 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40592
a848cd7e
SC
40593#ifdef __STDC__
40594# include <limits.h>
40595#else
40596# include <assert.h>
40597#endif
ac1cb8d3
VS
40598
40599#undef $ac_func
40600
a848cd7e
SC
40601/* Override any gcc2 internal prototype to avoid an error. */
40602#ifdef __cplusplus
40603extern "C"
40604{
40605#endif
40606/* We use char because int might match the return type of a gcc2
40607 builtin and then its argument prototype would still apply. */
40608char $ac_func ();
40609/* The GNU C library defines this for functions which it implements
40610 to always fail with ENOSYS. Some functions are actually named
40611 something starting with __ and the normal name is an alias. */
40612#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40613choke me
40614#else
40615char (*f) () = $ac_func;
40616#endif
40617#ifdef __cplusplus
40618}
40619#endif
40620
40621int
40622main ()
40623{
40624return f != $ac_func;
40625 ;
40626 return 0;
40627}
40628_ACEOF
40629rm -f conftest.$ac_objext conftest$ac_exeext
40630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40631 (eval $ac_link) 2>conftest.er1
a848cd7e 40632 ac_status=$?
ac1cb8d3
VS
40633 grep -v '^ *+' conftest.er1 >conftest.err
40634 rm -f conftest.er1
40635 cat conftest.err >&5
a848cd7e
SC
40636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40637 (exit $ac_status); } &&
9dd0f6c2 40638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40640 (eval $ac_try) 2>&5
40641 ac_status=$?
40642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40643 (exit $ac_status); }; } &&
40644 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40646 (eval $ac_try) 2>&5
40647 ac_status=$?
40648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40649 (exit $ac_status); }; }; then
40650 eval "$as_ac_var=yes"
40651else
40652 echo "$as_me: failed program was:" >&5
40653sed 's/^/| /' conftest.$ac_ext >&5
40654
40655eval "$as_ac_var=no"
40656fi
ac1cb8d3
VS
40657rm -f conftest.err conftest.$ac_objext \
40658 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40659fi
40660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40661echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40662if test `eval echo '${'$as_ac_var'}'` = yes; then
40663 cat >>confdefs.h <<_ACEOF
40664#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40665_ACEOF
40666 have_sin=1
40667fi
40668done
40669
40670
40671for ac_func in ceil
40672do
40673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40674echo "$as_me:$LINENO: checking for $ac_func" >&5
40675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40676if eval "test \"\${$as_ac_var+set}\" = set"; then
40677 echo $ECHO_N "(cached) $ECHO_C" >&6
40678else
40679 cat >conftest.$ac_ext <<_ACEOF
40680/* confdefs.h. */
40681_ACEOF
40682cat confdefs.h >>conftest.$ac_ext
40683cat >>conftest.$ac_ext <<_ACEOF
40684/* end confdefs.h. */
ac1cb8d3
VS
40685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40687#define $ac_func innocuous_$ac_func
40688
a848cd7e
SC
40689/* System header to define __stub macros and hopefully few prototypes,
40690 which can conflict with char $ac_func (); below.
40691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40692 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40693
a848cd7e
SC
40694#ifdef __STDC__
40695# include <limits.h>
40696#else
40697# include <assert.h>
40698#endif
ac1cb8d3
VS
40699
40700#undef $ac_func
40701
a848cd7e
SC
40702/* Override any gcc2 internal prototype to avoid an error. */
40703#ifdef __cplusplus
40704extern "C"
40705{
40706#endif
40707/* We use char because int might match the return type of a gcc2
40708 builtin and then its argument prototype would still apply. */
40709char $ac_func ();
40710/* The GNU C library defines this for functions which it implements
40711 to always fail with ENOSYS. Some functions are actually named
40712 something starting with __ and the normal name is an alias. */
40713#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40714choke me
40715#else
40716char (*f) () = $ac_func;
40717#endif
40718#ifdef __cplusplus
40719}
40720#endif
40721
40722int
40723main ()
40724{
40725return f != $ac_func;
40726 ;
40727 return 0;
40728}
40729_ACEOF
40730rm -f conftest.$ac_objext conftest$ac_exeext
40731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40732 (eval $ac_link) 2>conftest.er1
a848cd7e 40733 ac_status=$?
ac1cb8d3
VS
40734 grep -v '^ *+' conftest.er1 >conftest.err
40735 rm -f conftest.er1
40736 cat conftest.err >&5
a848cd7e
SC
40737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40738 (exit $ac_status); } &&
9dd0f6c2 40739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40741 (eval $ac_try) 2>&5
40742 ac_status=$?
40743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40744 (exit $ac_status); }; } &&
40745 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40747 (eval $ac_try) 2>&5
40748 ac_status=$?
40749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40750 (exit $ac_status); }; }; then
40751 eval "$as_ac_var=yes"
40752else
40753 echo "$as_me: failed program was:" >&5
40754sed 's/^/| /' conftest.$ac_ext >&5
40755
40756eval "$as_ac_var=no"
40757fi
ac1cb8d3
VS
40758rm -f conftest.err conftest.$ac_objext \
40759 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40760fi
40761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40762echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40763if test `eval echo '${'$as_ac_var'}'` = yes; then
40764 cat >>confdefs.h <<_ACEOF
40765#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40766_ACEOF
40767 have_ceil=1
40768fi
40769done
40770
40771 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
40772echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
40773 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
40774 echo "$as_me:$LINENO: result: yes" >&5
40775echo "${ECHO_T}yes" >&6
40776 else
40777 echo "$as_me:$LINENO: result: no" >&5
40778echo "${ECHO_T}no" >&6
40779 # not sure we should warn the user, crash, etc.
40780 fi
40781fi
40782
40783if test "$wxUSE_GUI" = "yes"; then
40784
40785
8bce5cda
MW
40786 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
40787 dynamic erase event exec font image minimal mobile \
40788 mobile/wxedit mobile/styles propsize render \
40789 richedit rotate shaped vscroll widgets"
a848cd7e
SC
40790
40791 if test "$wxUSE_MONOLITHIC" != "yes"; then
40792 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
40793 fi
0b78747f 40794 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
40795 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
40796 if test "$wxUSE_UNIVERSAL" != "yes"; then
40797 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
40798 fi
40799 fi
40800 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
40801 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 40802 fi
a848cd7e
SC
40803else
40804 SAMPLES_SUBDIRS="console"
40805fi
40806
40807
ceec2216 40808INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
40809-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
40810
40811if test "$GXX" = yes ; then
5294a27e
VZ
40812 CWARNINGS="-Wall"
40813 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
40814 fi
40815
40816EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
40817
0c3c69fc 40818CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 40819CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 40820CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 40821
95986553
DE
40822if test "x$MWCC" = "xyes"; then
40823
40824 CC="$CC -cwd source -I-"
40825 CXX="$CXX -cwd source -I-"
40826fi
40827
a848cd7e 40828
0c3c69fc 40829LIBS=`echo $LIBS`
a848cd7e
SC
40830EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
40831EXTRALIBS_XML="$EXPAT_LINK"
40832EXTRALIBS_HTML="$MSPACK_LINK"
40833EXTRALIBS_ODBC="$ODBC_LINK"
40834if test "$wxUSE_GUI" = "yes"; then
2e350179 40835 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
40836fi
40837if test "$wxUSE_OPENGL" = "yes"; then
40838 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
40839fi
40840
40841LDFLAGS="$LDFLAGS $PROFILE"
40842
40843if test "$wxUSE_GTK" = 1; then
40844 WXCONFIG_INCLUDE=
40845else
40846 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
40847fi
40848
40849WXCONFIG_EXTRALIBS="$LIBS"
40850
40851if test "$wxUSE_REGEX" = "builtin" ; then
74802184 40852 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
40853fi
40854if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 40855 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
40856fi
40857if test "$wxUSE_ODBC" = "builtin" ; then
74802184 40858 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
40859fi
40860if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 40861 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
40862fi
40863if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 40864 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
40865fi
40866if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 40867 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
40868fi
40869if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 40870 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
40871fi
40872
40873for i in $wxconfig_3rdparty ; do
74802184 40874 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
40875done
40876
40877
40878if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
40879 WXUNIV=1
40880else
40881 WXUNIV=0
40882fi
40883
40884
40885
40886
40887
40888
40889
40890
40891
40892if test $wxUSE_MONOLITHIC = "yes" ; then
40893 MONOLITHIC=1
40894else
40895 MONOLITHIC=0
40896fi
40897
40898if test $wxUSE_PLUGINS = "yes" ; then
40899 USE_PLUGINS=1
40900else
40901 USE_PLUGINS=0
40902fi
40903
40904if test $wxUSE_ODBC != "no" ; then
40905 USE_ODBC=1
40906else
40907 USE_ODBC=0
40908fi
40909
16358932
VZ
40910if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40911 USE_QA=1
40912else
40913 USE_QA=0
40914fi
40915
a848cd7e
SC
40916if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
40917 OFFICIAL_BUILD=1
40918else
40919 OFFICIAL_BUILD=0
40920fi
40921
40922
40923
40924
40925
40926
40927
40928
40929
40930
40931
40932
40933
40934
40935
40936
40937
40938
40939
ceec2216 40940
d1c38808 40941
a848cd7e
SC
40942
40943
40944TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
40945
40946
40947
40948
40949
40950
40951
40952
4d4ff94c
VZ
40953case "$TOOLKIT" in
40954 GTK)
40955 TOOLKIT_USER="GTK+"
40956 if test "$WXGTK20" = 1; then
40957 TOOLKIT_USER="$TOOLKIT_USER 2"
40958 fi
9a8f0513 40959 ;;
4d4ff94c
VZ
40960
40961 *)
40962 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 40963 ;;
4d4ff94c 40964esac
a848cd7e 40965
9a8f0513 40966
1e9e8aba
DE
40967
40968
a848cd7e
SC
40969 if test "x$BAKEFILE_HOST" = "x"; then
40970 BAKEFILE_HOST="${host}"
40971 fi
40972
40973 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
40974
40975 if test -n "$ac_tool_prefix"; then
40976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
40977set dummy ${ac_tool_prefix}ranlib; ac_word=$2
40978echo "$as_me:$LINENO: checking for $ac_word" >&5
40979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40980if test "${ac_cv_prog_RANLIB+set}" = set; then
40981 echo $ECHO_N "(cached) $ECHO_C" >&6
40982else
40983 if test -n "$RANLIB"; then
40984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
40985else
40986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40987for as_dir in $PATH
40988do
40989 IFS=$as_save_IFS
40990 test -z "$as_dir" && as_dir=.
40991 for ac_exec_ext in '' $ac_executable_extensions; do
40992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40993 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
40994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40995 break 2
40996 fi
40997done
40998done
40999
41000fi
41001fi
41002RANLIB=$ac_cv_prog_RANLIB
41003if test -n "$RANLIB"; then
41004 echo "$as_me:$LINENO: result: $RANLIB" >&5
41005echo "${ECHO_T}$RANLIB" >&6
41006else
41007 echo "$as_me:$LINENO: result: no" >&5
41008echo "${ECHO_T}no" >&6
41009fi
41010
41011fi
41012if test -z "$ac_cv_prog_RANLIB"; then
41013 ac_ct_RANLIB=$RANLIB
41014 # Extract the first word of "ranlib", so it can be a program name with args.
41015set dummy ranlib; ac_word=$2
41016echo "$as_me:$LINENO: checking for $ac_word" >&5
41017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41018if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
41019 echo $ECHO_N "(cached) $ECHO_C" >&6
41020else
41021 if test -n "$ac_ct_RANLIB"; then
41022 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
41023else
41024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41025for as_dir in $PATH
41026do
41027 IFS=$as_save_IFS
41028 test -z "$as_dir" && as_dir=.
41029 for ac_exec_ext in '' $ac_executable_extensions; do
41030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41031 ac_cv_prog_ac_ct_RANLIB="ranlib"
41032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41033 break 2
41034 fi
41035done
41036done
41037
41038 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
41039fi
41040fi
41041ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
41042if test -n "$ac_ct_RANLIB"; then
41043 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
41044echo "${ECHO_T}$ac_ct_RANLIB" >&6
41045else
41046 echo "$as_me:$LINENO: result: no" >&5
41047echo "${ECHO_T}no" >&6
41048fi
41049
41050 RANLIB=$ac_ct_RANLIB
41051else
41052 RANLIB="$ac_cv_prog_RANLIB"
41053fi
41054
41055 # Find a good install program. We prefer a C program (faster),
41056# so one script is as good as another. But avoid the broken or
41057# incompatible versions:
41058# SysV /etc/install, /usr/sbin/install
41059# SunOS /usr/etc/install
41060# IRIX /sbin/install
41061# AIX /bin/install
41062# AmigaOS /C/install, which installs bootblocks on floppy discs
41063# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
41064# AFS /usr/afsws/bin/install, which mishandles nonexistent args
41065# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 41066# OS/2's system install, which has a completely different semantic
a848cd7e
SC
41067# ./install, which can be erroneously created by make from ./install.sh.
41068echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
41069echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
41070if test -z "$INSTALL"; then
41071if test "${ac_cv_path_install+set}" = set; then
41072 echo $ECHO_N "(cached) $ECHO_C" >&6
41073else
41074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41075for as_dir in $PATH
41076do
41077 IFS=$as_save_IFS
41078 test -z "$as_dir" && as_dir=.
41079 # Account for people who put trailing slashes in PATH elements.
41080case $as_dir/ in
41081 ./ | .// | /cC/* | \
41082 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 41083 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
41084 /usr/ucb/* ) ;;
41085 *)
41086 # OSF1 and SCO ODT 3.0 have their own names for install.
41087 # Don't use installbsd from OSF since it installs stuff as root
41088 # by default.
41089 for ac_prog in ginstall scoinst install; do
41090 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
41091 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
41092 if test $ac_prog = install &&
41093 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41094 # AIX install. It has an incompatible calling convention.
41095 :
41096 elif test $ac_prog = install &&
41097 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41098 # program-specific install script used by HP pwplus--don't use.
41099 :
41100 else
41101 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
41102 break 3
41103 fi
41104 fi
a848cd7e
SC
41105 done
41106 done
41107 ;;
41108esac
41109done
41110
41111
41112fi
41113 if test "${ac_cv_path_install+set}" = set; then
41114 INSTALL=$ac_cv_path_install
41115 else
41116 # As a last resort, use the slow shell script. We don't cache a
41117 # path for INSTALL within a source directory, because that will
41118 # break other packages using the cache if that directory is
41119 # removed, or if the path is relative.
41120 INSTALL=$ac_install_sh
41121 fi
41122fi
41123echo "$as_me:$LINENO: result: $INSTALL" >&5
41124echo "${ECHO_T}$INSTALL" >&6
41125
41126# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
41127# It thinks the first close brace ends the variable substitution.
41128test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
41129
41130test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
41131
41132test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
41133
41134 echo "$as_me:$LINENO: checking whether ln -s works" >&5
41135echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
41136LN_S=$as_ln_s
41137if test "$LN_S" = "ln -s"; then
41138 echo "$as_me:$LINENO: result: yes" >&5
41139echo "${ECHO_T}yes" >&6
41140else
41141 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
41142echo "${ECHO_T}no, using $LN_S" >&6
41143fi
41144
41145
41146 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41147echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41148set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41149if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41150 echo $ECHO_N "(cached) $ECHO_C" >&6
41151else
41152 cat >conftest.make <<\_ACEOF
41153all:
41154 @echo 'ac_maketemp="$(MAKE)"'
41155_ACEOF
41156# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41157eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41158if test -n "$ac_maketemp"; then
41159 eval ac_cv_prog_make_${ac_make}_set=yes
41160else
41161 eval ac_cv_prog_make_${ac_make}_set=no
41162fi
41163rm -f conftest.make
41164fi
41165if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41166 echo "$as_me:$LINENO: result: yes" >&5
41167echo "${ECHO_T}yes" >&6
41168 SET_MAKE=
41169else
41170 echo "$as_me:$LINENO: result: no" >&5
41171echo "${ECHO_T}no" >&6
41172 SET_MAKE="MAKE=${MAKE-make}"
41173fi
41174
41175
41176
41177 if test -n "$ac_tool_prefix"; then
41178 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
41179set dummy ${ac_tool_prefix}ar; ac_word=$2
41180echo "$as_me:$LINENO: checking for $ac_word" >&5
41181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41182if test "${ac_cv_prog_AR+set}" = set; then
41183 echo $ECHO_N "(cached) $ECHO_C" >&6
41184else
41185 if test -n "$AR"; then
41186 ac_cv_prog_AR="$AR" # Let the user override the test.
41187else
41188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41189for as_dir in $PATH
41190do
41191 IFS=$as_save_IFS
41192 test -z "$as_dir" && as_dir=.
41193 for ac_exec_ext in '' $ac_executable_extensions; do
41194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41195 ac_cv_prog_AR="${ac_tool_prefix}ar"
41196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41197 break 2
41198 fi
41199done
41200done
41201
41202fi
41203fi
41204AR=$ac_cv_prog_AR
41205if test -n "$AR"; then
41206 echo "$as_me:$LINENO: result: $AR" >&5
41207echo "${ECHO_T}$AR" >&6
41208else
41209 echo "$as_me:$LINENO: result: no" >&5
41210echo "${ECHO_T}no" >&6
41211fi
41212
41213fi
41214if test -z "$ac_cv_prog_AR"; then
41215 ac_ct_AR=$AR
41216 # Extract the first word of "ar", so it can be a program name with args.
41217set dummy ar; ac_word=$2
41218echo "$as_me:$LINENO: checking for $ac_word" >&5
41219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41220if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
41221 echo $ECHO_N "(cached) $ECHO_C" >&6
41222else
41223 if test -n "$ac_ct_AR"; then
41224 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
41225else
41226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41227for as_dir in $PATH
41228do
41229 IFS=$as_save_IFS
41230 test -z "$as_dir" && as_dir=.
41231 for ac_exec_ext in '' $ac_executable_extensions; do
41232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41233 ac_cv_prog_ac_ct_AR="ar"
41234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41235 break 2
41236 fi
41237done
41238done
41239
41240 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
41241fi
41242fi
41243ac_ct_AR=$ac_cv_prog_ac_ct_AR
41244if test -n "$ac_ct_AR"; then
41245 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
41246echo "${ECHO_T}$ac_ct_AR" >&6
41247else
41248 echo "$as_me:$LINENO: result: no" >&5
41249echo "${ECHO_T}no" >&6
41250fi
41251
41252 AR=$ac_ct_AR
41253else
41254 AR="$ac_cv_prog_AR"
41255fi
41256
41257 if test -n "$ac_tool_prefix"; then
41258 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
41259set dummy ${ac_tool_prefix}strip; ac_word=$2
41260echo "$as_me:$LINENO: checking for $ac_word" >&5
41261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41262if test "${ac_cv_prog_STRIP+set}" = set; then
41263 echo $ECHO_N "(cached) $ECHO_C" >&6
41264else
41265 if test -n "$STRIP"; then
41266 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
41267else
41268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41269for as_dir in $PATH
41270do
41271 IFS=$as_save_IFS
41272 test -z "$as_dir" && as_dir=.
41273 for ac_exec_ext in '' $ac_executable_extensions; do
41274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41275 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
41276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41277 break 2
41278 fi
41279done
41280done
41281
41282fi
41283fi
41284STRIP=$ac_cv_prog_STRIP
41285if test -n "$STRIP"; then
41286 echo "$as_me:$LINENO: result: $STRIP" >&5
41287echo "${ECHO_T}$STRIP" >&6
41288else
41289 echo "$as_me:$LINENO: result: no" >&5
41290echo "${ECHO_T}no" >&6
41291fi
41292
41293fi
41294if test -z "$ac_cv_prog_STRIP"; then
41295 ac_ct_STRIP=$STRIP
41296 # Extract the first word of "strip", so it can be a program name with args.
41297set dummy strip; ac_word=$2
41298echo "$as_me:$LINENO: checking for $ac_word" >&5
41299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41300if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
41301 echo $ECHO_N "(cached) $ECHO_C" >&6
41302else
41303 if test -n "$ac_ct_STRIP"; then
41304 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
41305else
41306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41307for as_dir in $PATH
41308do
41309 IFS=$as_save_IFS
41310 test -z "$as_dir" && as_dir=.
41311 for ac_exec_ext in '' $ac_executable_extensions; do
41312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41313 ac_cv_prog_ac_ct_STRIP="strip"
41314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41315 break 2
41316 fi
41317done
41318done
41319
41320 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
41321fi
41322fi
41323ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
41324if test -n "$ac_ct_STRIP"; then
41325 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
41326echo "${ECHO_T}$ac_ct_STRIP" >&6
41327else
41328 echo "$as_me:$LINENO: result: no" >&5
41329echo "${ECHO_T}no" >&6
41330fi
41331
41332 STRIP=$ac_ct_STRIP
41333else
41334 STRIP="$ac_cv_prog_STRIP"
41335fi
41336
41337 if test -n "$ac_tool_prefix"; then
41338 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
41339set dummy ${ac_tool_prefix}nm; ac_word=$2
41340echo "$as_me:$LINENO: checking for $ac_word" >&5
41341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41342if test "${ac_cv_prog_NM+set}" = set; then
41343 echo $ECHO_N "(cached) $ECHO_C" >&6
41344else
41345 if test -n "$NM"; then
41346 ac_cv_prog_NM="$NM" # Let the user override the test.
41347else
41348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41349for as_dir in $PATH
41350do
41351 IFS=$as_save_IFS
41352 test -z "$as_dir" && as_dir=.
41353 for ac_exec_ext in '' $ac_executable_extensions; do
41354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41355 ac_cv_prog_NM="${ac_tool_prefix}nm"
41356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41357 break 2
41358 fi
41359done
41360done
41361
41362fi
41363fi
41364NM=$ac_cv_prog_NM
41365if test -n "$NM"; then
41366 echo "$as_me:$LINENO: result: $NM" >&5
41367echo "${ECHO_T}$NM" >&6
41368else
41369 echo "$as_me:$LINENO: result: no" >&5
41370echo "${ECHO_T}no" >&6
41371fi
41372
41373fi
41374if test -z "$ac_cv_prog_NM"; then
41375 ac_ct_NM=$NM
41376 # Extract the first word of "nm", so it can be a program name with args.
41377set dummy nm; ac_word=$2
41378echo "$as_me:$LINENO: checking for $ac_word" >&5
41379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41380if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
41381 echo $ECHO_N "(cached) $ECHO_C" >&6
41382else
41383 if test -n "$ac_ct_NM"; then
41384 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
41385else
41386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41387for as_dir in $PATH
41388do
41389 IFS=$as_save_IFS
41390 test -z "$as_dir" && as_dir=.
41391 for ac_exec_ext in '' $ac_executable_extensions; do
41392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41393 ac_cv_prog_ac_ct_NM="nm"
41394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41395 break 2
41396 fi
41397done
41398done
41399
41400 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
41401fi
41402fi
41403ac_ct_NM=$ac_cv_prog_ac_ct_NM
41404if test -n "$ac_ct_NM"; then
41405 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
41406echo "${ECHO_T}$ac_ct_NM" >&6
41407else
41408 echo "$as_me:$LINENO: result: no" >&5
41409echo "${ECHO_T}no" >&6
41410fi
41411
41412 NM=$ac_ct_NM
41413else
41414 NM="$ac_cv_prog_NM"
41415fi
41416
41417
41418 case ${BAKEFILE_HOST} in
41419 *-hp-hpux* )
1e9e8aba 41420 INSTALL_DIR="mkdir -p"
a848cd7e
SC
41421 ;;
41422 *) INSTALL_DIR="$INSTALL -d"
41423 ;;
41424 esac
41425
41426
41427 LDFLAGS_GUI=
41428 case ${BAKEFILE_HOST} in
41429 *-*-cygwin* | *-*-mingw32* )
41430 LDFLAGS_GUI="-mwindows"
41431 esac
41432
41433
41434 fi
41435
41436 echo "$as_me:$LINENO: checking if make is GNU make" >&5
41437echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
41438if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
41439 echo $ECHO_N "(cached) $ECHO_C" >&6
41440else
41441
41442 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
41443 egrep -s GNU > /dev/null); then
41444 bakefile_cv_prog_makeisgnu="yes"
41445 else
41446 bakefile_cv_prog_makeisgnu="no"
41447 fi
41448
41449fi
41450echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
41451echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
41452
41453 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
41454 IF_GNU_MAKE=""
41455 else
41456 IF_GNU_MAKE="#"
41457 fi
41458
41459
41460
41461 PLATFORM_UNIX=0
41462 PLATFORM_WIN32=0
41463 PLATFORM_MSDOS=0
41464 PLATFORM_MAC=0
1e9e8aba 41465 PLATFORM_MACOS=0
a848cd7e
SC
41466 PLATFORM_MACOSX=0
41467 PLATFORM_OS2=0
1e9e8aba 41468 PLATFORM_BEOS=0
a848cd7e
SC
41469
41470 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41471 case "${BAKEFILE_HOST}" in
41472 *-*-cygwin* | *-*-mingw32* )
41473 PLATFORM_WIN32=1
41474 ;;
41475 *-pc-msdosdjgpp )
41476 PLATFORM_MSDOS=1
41477 ;;
41478 *-pc-os2_emx | *-pc-os2-emx )
41479 PLATFORM_OS2=1
41480 ;;
41481 powerpc-*-darwin* )
41482 PLATFORM_MAC=1
41483 PLATFORM_MACOSX=1
41484 ;;
1e9e8aba
DE
41485 *-*-beos* )
41486 PLATFORM_BEOS=1
41487 ;;
41488 powerpc-apple-macos* )
41489 PLATFORM_MAC=1
41490 PLATFORM_MACOS=1
41491 ;;
a848cd7e
SC
41492 * )
41493 PLATFORM_UNIX=1
41494 ;;
41495 esac
41496 else
41497 case "$BAKEFILE_FORCE_PLATFORM" in
41498 win32 )
41499 PLATFORM_WIN32=1
41500 ;;
41501 msdos )
41502 PLATFORM_MSDOS=1
41503 ;;
41504 os2 )
41505 PLATFORM_OS2=1
41506 ;;
41507 darwin )
41508 PLATFORM_MAC=1
41509 PLATFORM_MACOSX=1
41510 ;;
41511 unix )
41512 PLATFORM_UNIX=1
41513 ;;
1e9e8aba
DE
41514 beos )
41515 PLATFORM_BEOS=1
41516 ;;
a848cd7e
SC
41517 * )
41518 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41519echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41520 { (exit 1); exit 1; }; }
41521 ;;
41522 esac
41523 fi
41524
41525
41526
41527
41528
41529
41530
41531
41532
1e9e8aba
DE
41533
41534
a848cd7e
SC
41535 # Check whether --enable-omf or --disable-omf was given.
41536if test "${enable_omf+set}" = set; then
41537 enableval="$enable_omf"
41538 bk_os2_use_omf="$enableval"
41539fi;
41540
41541 case "${BAKEFILE_HOST}" in
41542 *-*-darwin* )
41543 CFLAGS="$CFLAGS -fno-common"
41544 CXXFLAGS="$CXXFLAGS -fno-common"
41545 ;;
41546
41547 *-pc-os2_emx | *-pc-os2-emx )
41548 if test "x$bk_os2_use_omf" = "xyes" ; then
41549 AR=emxomfar
41550 RANLIB=:
41551 LDFLAGS="-Zomf $LDFLAGS"
41552 CFLAGS="-Zomf $CFLAGS"
41553 CXXFLAGS="-Zomf $CXXFLAGS"
41554 OS2_LIBEXT="lib"
41555 else
41556 OS2_LIBEXT="a"
41557 fi
41558 ;;
1e9e8aba
DE
41559
41560 i*86-*-beos* )
41561 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41562 ;;
a848cd7e
SC
41563 esac
41564
41565
41566 SO_SUFFIX="so"
41567 SO_SUFFIX_MODULE="so"
41568 EXEEXT=""
41569 LIBPREFIX="lib"
41570 LIBEXT=".a"
41571 DLLPREFIX="lib"
41572 DLLPREFIX_MODULE=""
41573 DLLIMP_SUFFIX=""
41574
41575 case "${BAKEFILE_HOST}" in
41576 *-hp-hpux* )
41577 SO_SUFFIX="sl"
41578 SO_SUFFIX_MODULE="sl"
41579 ;;
41580 *-*-aix* )
41581 SO_SUFFIX="a"
41582 SO_SUFFIX_MODULE="a"
41583 ;;
41584 *-*-cygwin* | *-*-mingw32* )
41585 SO_SUFFIX="dll"
41586 SO_SUFFIX_MODULE="dll"
41587 DLLIMP_SUFFIX="dll.a"
41588 EXEEXT=".exe"
41589 DLLPREFIX=""
41590 ;;
41591 *-pc-msdosdjgpp )
41592 EXEEXT=".exe"
41593 DLLPREFIX=""
41594 ;;
41595 *-pc-os2_emx | *-pc-os2-emx )
41596 SO_SUFFIX="dll"
41597 SO_SUFFIX_MODULE="dll"
41598 DLLIMP_SUFFIX=$OS2_LIBEXT
41599 EXEEXT=".exe"
41600 DLLPREFIX=""
41601 LIBPREFIX=""
41602 LIBEXT=".$OS2_LIBEXT"
41603 ;;
41604 powerpc-*-darwin* )
41605 SO_SUFFIX="dylib"
41606 SO_SUFFIX_MODULE="bundle"
41607 ;;
41608 esac
41609
41610 if test "x$DLLIMP_SUFFIX" = "x" ; then
41611 DLLIMP_SUFFIX="$SO_SUFFIX"
41612 fi
41613
41614
41615
41616
41617
41618
41619
41620
41621
41622
41623
1e9e8aba
DE
41624 PIC_FLAG=""
41625 if test "x$GCC" = "xyes"; then
a848cd7e
SC
41626 PIC_FLAG="-fPIC"
41627 fi
41628
1e9e8aba
DE
41629 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41630 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41631
a848cd7e
SC
41632 case "${BAKEFILE_HOST}" in
41633 *-hp-hpux* )
1e9e8aba 41634 if test "x$GCC" != "xyes"; then
a848cd7e
SC
41635 LDFLAGS="$LDFLAGS -L/usr/lib"
41636
41637 SHARED_LD_CC="${CC} -b -o"
41638 SHARED_LD_CXX="${CXX} -b -o"
41639 PIC_FLAG="+Z"
41640 fi
41641 ;;
41642
41643 *-*-linux* )
41644 if test "x$GCC" != "xyes"; then
41645 echo "$as_me:$LINENO: checking for Intel compiler" >&5
41646echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41647if test "${bakefile_cv_prog_icc+set}" = set; then
41648 echo $ECHO_N "(cached) $ECHO_C" >&6
41649else
41650
41651 cat >conftest.$ac_ext <<_ACEOF
41652/* confdefs.h. */
41653_ACEOF
41654cat confdefs.h >>conftest.$ac_ext
41655cat >>conftest.$ac_ext <<_ACEOF
41656/* end confdefs.h. */
41657
41658int
41659main ()
41660{
41661
41662 #ifndef __INTEL_COMPILER
41663 #error Not icc
41664 #endif
41665
41666 ;
41667 return 0;
41668}
41669_ACEOF
41670rm -f conftest.$ac_objext
41671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41672 (eval $ac_compile) 2>conftest.er1
a848cd7e 41673 ac_status=$?
ac1cb8d3
VS
41674 grep -v '^ *+' conftest.er1 >conftest.err
41675 rm -f conftest.er1
41676 cat conftest.err >&5
a848cd7e
SC
41677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41678 (exit $ac_status); } &&
9dd0f6c2 41679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41681 (eval $ac_try) 2>&5
41682 ac_status=$?
41683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41684 (exit $ac_status); }; } &&
41685 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41687 (eval $ac_try) 2>&5
41688 ac_status=$?
41689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41690 (exit $ac_status); }; }; then
41691 bakefile_cv_prog_icc=yes
41692else
41693 echo "$as_me: failed program was:" >&5
41694sed 's/^/| /' conftest.$ac_ext >&5
41695
41696bakefile_cv_prog_icc=no
41697
41698fi
ac1cb8d3 41699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41700
41701fi
41702echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
41703echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
41704 if test "$bakefile_cv_prog_icc" = "yes"; then
41705 PIC_FLAG="-KPIC"
41706 fi
41707 fi
41708 ;;
41709
41710 *-*-solaris2* )
41711 if test "x$GCC" != xyes ; then
41712 SHARED_LD_CC="${CC} -G -o"
41713 SHARED_LD_CXX="${CXX} -G -o"
41714 PIC_FLAG="-KPIC"
41715 fi
41716 ;;
41717
41718 *-*-darwin* )
41719
41720 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
41721echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
41722if test "${wx_cv_gcc31+set}" = set; then
41723 echo $ECHO_N "(cached) $ECHO_C" >&6
41724else
41725
41726 cat >conftest.$ac_ext <<_ACEOF
41727/* confdefs.h. */
41728_ACEOF
41729cat confdefs.h >>conftest.$ac_ext
41730cat >>conftest.$ac_ext <<_ACEOF
41731/* end confdefs.h. */
41732
41733int
41734main ()
41735{
41736
41737 #if (__GNUC__ < 3) || \
41738 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
41739 #error old gcc
41740 #endif
41741
41742 ;
41743 return 0;
41744}
41745_ACEOF
41746rm -f conftest.$ac_objext
41747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41748 (eval $ac_compile) 2>conftest.er1
a848cd7e 41749 ac_status=$?
ac1cb8d3
VS
41750 grep -v '^ *+' conftest.er1 >conftest.err
41751 rm -f conftest.er1
41752 cat conftest.err >&5
a848cd7e
SC
41753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41754 (exit $ac_status); } &&
9dd0f6c2 41755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41757 (eval $ac_try) 2>&5
41758 ac_status=$?
41759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41760 (exit $ac_status); }; } &&
41761 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41763 (eval $ac_try) 2>&5
41764 ac_status=$?
41765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41766 (exit $ac_status); }; }; then
41767
41768 wx_cv_gcc31=yes
41769
41770else
41771 echo "$as_me: failed program was:" >&5
41772sed 's/^/| /' conftest.$ac_ext >&5
41773
41774
41775 wx_cv_gcc31=no
41776
41777
41778fi
ac1cb8d3 41779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41780
41781fi
41782echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
41783echo "${ECHO_T}$wx_cv_gcc31" >&6
41784 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
41785
41786D='$'
41787cat <<EOF >shared-ld-sh
a848cd7e
SC
41788#!/bin/sh
41789#-----------------------------------------------------------------------------
41790#-- Name: distrib/mac/shared-ld-sh
41791#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
41792#-- Author: Gilles Depeyrot
41793#-- Copyright: (c) 2002 Gilles Depeyrot
41794#-- Licence: any use permitted
41795#-----------------------------------------------------------------------------
41796
41797verbose=0
41798args=""
41799objects=""
41800linking_flag="-dynamiclib"
41801
473276a9
VS
41802while test ${D}# -gt 0; do
41803 case ${D}1 in
a848cd7e
SC
41804
41805 -v)
41806 verbose=1
41807 ;;
41808
41809 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
41810 # collect these options and values
473276a9 41811 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
41812 shift
41813 ;;
41814
41815 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
41816 # collect these options
473276a9 41817 args="${D}{args} ${D}1"
a848cd7e
SC
41818 ;;
41819
41820 -dynamiclib|-bundle)
473276a9 41821 linking_flag="${D}1"
a848cd7e
SC
41822 ;;
41823
41824 -*)
473276a9 41825 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
41826 exit 1
41827 ;;
41828
41829 *.o | *.a | *.dylib)
41830 # collect object files
473276a9 41831 objects="${D}{objects} ${D}1"
a848cd7e
SC
41832 ;;
41833
41834 *)
473276a9 41835 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
41836 exit 1
41837 ;;
41838
41839 esac
41840 shift
41841done
41842
41843#
41844# Link one module containing all the others
41845#
473276a9
VS
41846if test ${D}{verbose} = 1; then
41847 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 41848fi
473276a9
VS
41849c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
41850status=${D}?
41851if test ${D}{status} != 0; then
41852 exit ${D}{status}
a848cd7e
SC
41853fi
41854
41855#
41856# Link the shared library from the single module created
41857#
473276a9
VS
41858if test ${D}{verbose} = 1; then
41859 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 41860fi
473276a9
VS
41861c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
41862status=${D}?
41863if test ${D}{status} != 0; then
41864 exit ${D}{status}
a848cd7e
SC
41865fi
41866
41867#
41868# Remove intermediate module
41869#
473276a9 41870rm -f master.${D}${D}.o
a848cd7e
SC
41871
41872exit 0
41873EOF
473276a9 41874
a848cd7e
SC
41875 chmod +x shared-ld-sh
41876
41877 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
41878 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
41879 SHARED_LD_CXX="$SHARED_LD_CC"
41880 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
41881 else
41882 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
41883 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
41884 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
41885 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
41886 fi
41887
41888 PIC_FLAG="-dynamic -fPIC"
41889 ;;
41890
41891 *-*-aix* )
41892 if test "x$GCC" != "xyes"; then
41893 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
41894set dummy makeC++SharedLib; ac_word=$2
41895echo "$as_me:$LINENO: checking for $ac_word" >&5
41896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41897if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
41898 echo $ECHO_N "(cached) $ECHO_C" >&6
41899else
41900 if test -n "$AIX_CXX_LD"; then
41901 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
41902else
41903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41904for as_dir in $PATH
41905do
41906 IFS=$as_save_IFS
41907 test -z "$as_dir" && as_dir=.
41908 for ac_exec_ext in '' $ac_executable_extensions; do
41909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41910 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
41911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41912 break 2
41913 fi
41914done
41915done
41916
41917 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
41918fi
41919fi
41920AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
41921if test -n "$AIX_CXX_LD"; then
41922 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
41923echo "${ECHO_T}$AIX_CXX_LD" >&6
41924else
41925 echo "$as_me:$LINENO: result: no" >&5
41926echo "${ECHO_T}no" >&6
41927fi
41928
41929 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
41930 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
41931 fi
41932 ;;
41933
41934 *-*-beos* )
1e9e8aba
DE
41935 SHARED_LD_CC="${LD} -nostart -o"
41936 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
41937 ;;
41938
41939 *-*-irix* )
41940 if test "x$GCC" != "xyes"; then
41941 PIC_FLAG="-KPIC"
41942 fi
41943 ;;
41944
41945 *-*-cygwin* | *-*-mingw32* )
41946 PIC_FLAG=""
1e9e8aba
DE
41947 SHARED_LD_CC="\$(CC) -shared -o"
41948 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
41949 ;;
41950
41951 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
41952 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41953 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 41954 PIC_FLAG=""
473276a9
VS
41955
41956D='$'
41957cat <<EOF >dllar.sh
41958#!/bin/sh
41959#
41960# dllar - a tool to build both a .dll and an .a file
41961# from a set of object (.o) files for EMX/OS2.
41962#
41963# Written by Andrew Zabolotny, bit@freya.etu.ru
41964# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
41965#
41966# This script will accept a set of files on the command line.
41967# All the public symbols from the .o files will be exported into
41968# a .DEF file, then linker will be run (through gcc) against them to
41969# build a shared library consisting of all given .o files. All libraries
41970# (.a) will be first decompressed into component .o files then act as
41971# described above. You can optionally give a description (-d "description")
41972# which will be put into .DLL. To see the list of accepted options (as well
41973# as command-line format) simply run this program without options. The .DLL
41974# is built to be imported by name (there is no guarantee that new versions
41975# of the library you build will have same ordinals for same symbols).
41976#
41977# dllar is free software; you can redistribute it and/or modify
41978# it under the terms of the GNU General Public License as published by
41979# the Free Software Foundation; either version 2, or (at your option)
41980# any later version.
41981#
41982# dllar is distributed in the hope that it will be useful,
41983# but WITHOUT ANY WARRANTY; without even the implied warranty of
41984# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41985# GNU General Public License for more details.
41986#
41987# You should have received a copy of the GNU General Public License
41988# along with dllar; see the file COPYING. If not, write to the Free
41989# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41990# 02111-1307, USA.
41991
41992# To successfuly run this program you will need:
41993# - Current drive should have LFN support (HPFS, ext2, network, etc)
41994# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
41995# - gcc
41996# (used to build the .dll)
41997# - emxexp
41998# (used to create .def file from .o files)
41999# - emximp
42000# (used to create .a file from .def file)
42001# - GNU text utilites (cat, sort, uniq)
42002# used to process emxexp output
42003# - GNU file utilities (mv, rm)
42004# - GNU sed
42005# - lxlite (optional, see flag below)
42006# (used for general .dll cleanup)
42007#
42008
42009flag_USE_LXLITE=1;
42010
42011#
42012# helper functions
42013# basnam, variant of basename, which does _not_ remove the path, _iff_
42014# second argument (suffix to remove) is given
42015basnam(){
42016 case ${D}# in
42017 1)
1e9e8aba 42018 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
42019 ;;
42020 2)
42021 echo ${D}1 | sed 's/'${D}2'${D}//'
42022 ;;
42023 *)
42024 echo "error in basnam ${D}*"
42025 exit 8
42026 ;;
42027 esac
42028}
42029
42030# Cleanup temporary files and output
42031CleanUp() {
42032 cd ${D}curDir
42033 for i in ${D}inputFiles ; do
42034 case ${D}i in
42035 *!)
42036 rm -rf \`basnam ${D}i !\`
42037 ;;
42038 *)
42039 ;;
42040 esac
42041 done
42042
42043 # Kill result in case of failure as there is just to many stupid make/nmake
42044 # things out there which doesn't do this.
1e9e8aba 42045 if [ ${D}# -eq 0 ]; then
473276a9
VS
42046 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
42047 fi
42048}
42049
42050# Print usage and exit script with rc=1.
42051PrintHelp() {
b1d22ded
DE
42052 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
42053 echo ' [-name-mangler-script script.sh]'
42054 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
42055 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
42056 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 42057 echo ' [*.o] [*.a]'
473276a9
VS
42058 echo '*> "output_file" should have no extension.'
42059 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
42060 echo ' The import library name is derived from this and is set to "name".a,'
42061 echo ' unless overridden by -import'
42062 echo '*> "importlib_name" should have no extension.'
42063 echo ' If it has the .o, or .a extension, it is automatically removed.'
42064 echo ' This name is used as the import library name and may be longer and'
42065 echo ' more descriptive than the DLL name which has to follow the old '
42066 echo ' 8.3 convention of FAT.'
b1d22ded
DE
42067 echo '*> "script.sh may be given to override the output_file name by a'
42068 echo ' different name. It is mainly useful if the regular make process'
42069 echo ' of some package does not take into account OS/2 restriction of'
42070 echo ' DLL name lengths. It takes the importlib name as input and is'
42071 echo ' supposed to procude a shorter name as output. The script should'
42072 echo ' expect to get importlib_name without extension and should produce'
42073 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
42074 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
42075 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
42076 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
42077 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
42078 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
42079 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
42080 echo ' If the last character of a symbol is "*", all symbols beginning'
42081 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 42082 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 42083 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 42084 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 42085 echo ' C runtime DLLs.'
b1d22ded 42086 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
42087 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
42088 echo ' unchanged to GCC at the end of command line.'
42089 echo '*> If you create a DLL from a library and you do not specify -o,'
42090 echo ' the basename for DLL and import library will be set to library name,'
42091 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
42092 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
42093 echo ' library will be renamed into gcc_s.a.'
42094 echo '--------'
42095 echo 'Example:'
42096 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
42097 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
42098 CleanUp
42099 exit 1
42100}
42101
42102# Execute a command.
42103# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
42104# @Uses Whatever CleanUp() uses.
42105doCommand() {
42106 echo "${D}*"
42107 eval ${D}*
42108 rcCmd=${D}?
42109
1e9e8aba 42110 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
42111 echo "command failed, exit code="${D}rcCmd
42112 CleanUp
42113 exit ${D}rcCmd
42114 fi
42115}
42116
42117# main routine
42118# setup globals
42119cmdLine=${D}*
42120outFile=""
42121outimpFile=""
42122inputFiles=""
b1d22ded 42123renameScript=""
473276a9
VS
42124description=""
42125CC=gcc.exe
42126CFLAGS="-s -Zcrtdll"
42127EXTRA_CFLAGS=""
42128EXPORT_BY_ORDINALS=0
42129exclude_symbols=""
42130library_flags=""
42131curDir=\`pwd\`
42132curDirS=curDir
42133case ${D}curDirS in
42134*/)
42135 ;;
42136*)
42137 curDirS=${D}{curDirS}"/"
42138 ;;
42139esac
42140# Parse commandline
42141libsToLink=0
b1d22ded 42142omfLinking=0
1e9e8aba 42143while [ ${D}1 ]; do
473276a9
VS
42144 case ${D}1 in
42145 -ord*)
42146 EXPORT_BY_ORDINALS=1;
42147 ;;
42148 -o*)
42149 shift
42150 outFile=${D}1
42151 ;;
42152 -i*)
42153 shift
42154 outimpFile=${D}1
42155 ;;
b1d22ded
DE
42156 -name-mangler-script)
42157 shift
42158 renameScript=${D}1
42159 ;;
473276a9
VS
42160 -d*)
42161 shift
42162 description=${D}1
42163 ;;
42164 -f*)
42165 shift
42166 CFLAGS=${D}1
42167 ;;
42168 -c*)
42169 shift
42170 CC=${D}1
42171 ;;
42172 -h*)
42173 PrintHelp
42174 ;;
42175 -ex*)
42176 shift
42177 exclude_symbols=${D}{exclude_symbols}${D}1" "
42178 ;;
42179 -libf*)
42180 shift
42181 library_flags=${D}{library_flags}${D}1" "
42182 ;;
42183 -nocrt*)
42184 CFLAGS="-s"
42185 ;;
42186 -nolxl*)
42187 flag_USE_LXLITE=0
42188 ;;
42189 -* | /*)
42190 case ${D}1 in
42191 -L* | -l*)
42192 libsToLink=1
42193 ;;
b1d22ded
DE
42194 -Zomf)
42195 omfLinking=1
42196 ;;
473276a9
VS
42197 *)
42198 ;;
42199 esac
42200 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42201 ;;
b1d22ded
DE
42202 *.dll)
42203 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
42204 if [ ${D}omfLinking -eq 1 ]; then
42205 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
42206 else
42207 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
42208 fi
42209 ;;
473276a9
VS
42210 *)
42211 found=0;
1e9e8aba 42212 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
42213 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42214 else
42215 for file in ${D}1 ; do
1e9e8aba 42216 if [ -f ${D}file ]; then
473276a9
VS
42217 inputFiles="${D}{inputFiles} ${D}file"
42218 found=1
42219 fi
42220 done
1e9e8aba 42221 if [ ${D}found -eq 0 ]; then
473276a9
VS
42222 echo "ERROR: No file(s) found: "${D}1
42223 exit 8
42224 fi
42225 fi
42226 ;;
42227 esac
42228 shift
42229done # iterate cmdline words
42230
42231#
1e9e8aba 42232if [ -z "${D}inputFiles" ]; then
473276a9
VS
42233 echo "dllar: no input files"
42234 PrintHelp
42235fi
42236
42237# Now extract all .o files from .a files
42238newInputFiles=""
42239for file in ${D}inputFiles ; do
42240 case ${D}file in
42241 *.a | *.lib)
42242 case ${D}file in
42243 *.a)
42244 suffix=".a"
42245 AR="ar"
42246 ;;
42247 *.lib)
42248 suffix=".lib"
42249 AR="emxomfar"
42250 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
42251 ;;
42252 *)
42253 ;;
42254 esac
42255 dirname=\`basnam ${D}file ${D}suffix\`"_%"
42256 mkdir ${D}dirname
1e9e8aba 42257 if [ ${D}? -ne 0 ]; then
473276a9
VS
42258 echo "Failed to create subdirectory ./${D}dirname"
42259 CleanUp
42260 exit 8;
42261 fi
42262 # Append '!' to indicate archive
42263 newInputFiles="${D}newInputFiles ${D}{dirname}!"
42264 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
42265 cd ${D}curDir
42266 found=0;
42267 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 42268 if [ -f ${D}subfile ]; then
473276a9 42269 found=1
1e9e8aba 42270 if [ -s ${D}subfile ]; then
473276a9
VS
42271 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
42272 newInputFiles="${D}newInputFiles ${D}subfile"
42273 fi
42274 fi
42275 done
1e9e8aba
DE
42276 if [ ${D}found -eq 0 ]; then
42277 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
42278 fi
42279 ;;
42280 *)
42281 newInputFiles="${D}{newInputFiles} ${D}file"
42282 ;;
42283 esac
42284done
42285inputFiles="${D}newInputFiles"
42286
42287# Output filename(s).
42288do_backup=0;
1e9e8aba 42289if [ -z ${D}outFile ]; then
473276a9
VS
42290 do_backup=1;
42291 set outFile ${D}inputFiles; outFile=${D}2
42292fi
42293
42294# If it is an archive, remove the '!' and the '_%' suffixes
42295case ${D}outFile in
42296*_%!)
42297 outFile=\`basnam ${D}outFile _%!\`
42298 ;;
42299*)
42300 ;;
42301esac
42302case ${D}outFile in
42303*.dll)
42304 outFile=\`basnam ${D}outFile .dll\`
42305 ;;
42306*.DLL)
42307 outFile=\`basnam ${D}outFile .DLL\`
42308 ;;
42309*.o)
42310 outFile=\`basnam ${D}outFile .o\`
42311 ;;
42312*.obj)
42313 outFile=\`basnam ${D}outFile .obj\`
42314 ;;
42315*.a)
42316 outFile=\`basnam ${D}outFile .a\`
42317 ;;
42318*.lib)
42319 outFile=\`basnam ${D}outFile .lib\`
42320 ;;
42321*)
42322 ;;
42323esac
42324case ${D}outimpFile in
42325*.a)
42326 outimpFile=\`basnam ${D}outimpFile .a\`
42327 ;;
42328*.lib)
42329 outimpFile=\`basnam ${D}outimpFile .lib\`
42330 ;;
42331*)
42332 ;;
42333esac
1e9e8aba 42334if [ -z ${D}outimpFile ]; then
473276a9
VS
42335 outimpFile=${D}outFile
42336fi
42337defFile="${D}{outFile}.def"
42338arcFile="${D}{outimpFile}.a"
42339arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
42340
42341#create ${D}dllFile as something matching 8.3 restrictions,
42342if [ -z ${D}renameScript ] ; then
42343 dllFile="${D}outFile"
42344else
42345 dllFile=\`${D}renameScript ${D}outimpFile\`
42346fi
473276a9 42347
1e9e8aba
DE
42348if [ ${D}do_backup -ne 0 ] ; then
42349 if [ -f ${D}arcFile ] ; then
473276a9
VS
42350 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
42351 fi
1e9e8aba 42352 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
42353 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
42354 fi
42355fi
42356
42357# Extract public symbols from all the object files.
42358tmpdefFile=${D}{defFile}_%
42359rm -f ${D}tmpdefFile
42360for file in ${D}inputFiles ; do
42361 case ${D}file in
42362 *!)
42363 ;;
42364 *)
42365 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
42366 ;;
42367 esac
42368done
42369
42370# Create the def file.
42371rm -f ${D}defFile
42372echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
42373dllFile="${D}{dllFile}.dll"
42374if [ ! -z ${D}description ]; then
1e9e8aba 42375 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
42376fi
42377echo "EXPORTS" >> ${D}defFile
42378
42379doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
42380grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
42381
42382# Checks if the export is ok or not.
42383for word in ${D}exclude_symbols; do
42384 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
42385 mv ${D}{tmpdefFile}% ${D}tmpdefFile
42386done
42387
42388
1e9e8aba
DE
42389if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
42390 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
42391 sed '
42392 N
42393 : loop
1e9e8aba 42394 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
42395 t loop
42396 ' > ${D}{tmpdefFile}%
42397 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
42398else
42399 rm -f ${D}{tmpdefFile}%
42400fi
42401cat ${D}tmpdefFile >> ${D}defFile
42402rm -f ${D}tmpdefFile
42403
42404# Do linking, create implib, and apply lxlite.
42405gccCmdl="";
42406for file in ${D}inputFiles ; do
42407 case ${D}file in
42408 *!)
42409 ;;
42410 *)
42411 gccCmdl="${D}gccCmdl ${D}file"
42412 ;;
42413 esac
42414done
42415doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
42416touch "${D}{outFile}.dll"
42417
42418doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 42419if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 42420 add_flags="";
1e9e8aba 42421 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
42422 add_flags="-ynd"
42423 fi
42424 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
42425fi
42426doCommand "emxomf -s -l ${D}arcFile"
42427
42428# Successful exit.
42429CleanUp 1
42430exit 0
42431EOF
42432
42433 chmod +x dllar.sh
a848cd7e
SC
42434 ;;
42435
1e9e8aba 42436 powerpc-apple-macos* | \
a848cd7e
SC
42437 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
42438 *-*-sunos4* | \
42439 *-*-osf* | \
42440 *-*-dgux5* | \
47a7e797
MW
42441 *-*-sysv5* | \
42442 *-pc-msdosdjgpp )
a848cd7e
SC
42443 ;;
42444
42445 *)
42446 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
42447echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
42448 { (exit 1); exit 1; }; }
42449 esac
42450
2057db16
VS
42451 if test "x$PIC_FLAG" != "x" ; then
42452 PIC_FLAG="$PIC_FLAG -DPIC"
42453 fi
42454
a848cd7e
SC
42455 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
42456 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
42457 fi
42458 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
42459 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
42460 fi
42461
42462
42463
42464
42465
42466
42467
42468
42469 USE_SOVERSION=0
42470 USE_SOVERLINUX=0
42471 USE_SOVERSOLARIS=0
42472 USE_SOSYMLINKS=0
42473 USE_MACVERSION=0
42474 SONAME_FLAG=
42475
42476 case "${BAKEFILE_HOST}" in
b1d22ded 42477 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
42478 SONAME_FLAG="-Wl,-soname,"
42479 USE_SOVERSION=1
42480 USE_SOVERLINUX=1
42481 USE_SOSYMLINKS=1
42482 ;;
42483
a848cd7e
SC
42484 *-*-solaris2* )
42485 SONAME_FLAG="-h "
42486 USE_SOVERSION=1
42487 USE_SOVERSOLARIS=1
42488 USE_SOSYMLINKS=1
42489 ;;
42490
42491 *-*-darwin* )
42492 USE_MACVERSION=1
42493 USE_SOVERSION=1
42494 USE_SOSYMLINKS=1
42495 ;;
42496 esac
42497
42498
42499
42500
42501
42502
42503
42504
42505
42506 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42507echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42508 DEPS_TRACKING=0
42509
42510 if test "x$GCC" = "xyes"; then
42511 DEPSMODE=gcc
42512 DEPS_TRACKING=1
42513 case "${BAKEFILE_HOST}" in
42514 powerpc-*-darwin* )
42515 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42516 ;;
42517 * )
42518 DEPSFLAG_GCC="-MMD"
42519 ;;
42520 esac
42521 echo "$as_me:$LINENO: result: gcc" >&5
42522echo "${ECHO_T}gcc" >&6
b1d22ded 42523 elif test "x$MWCC" = "xyes"; then
81f90336 42524 DEPSMODE=mwcc
b1d22ded 42525 DEPS_TRACKING=1
81f90336 42526 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
42527 echo "$as_me:$LINENO: result: mwcc" >&5
42528echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
42529 else
42530 echo "$as_me:$LINENO: result: none" >&5
42531echo "${ECHO_T}none" >&6
42532 fi
42533
42534 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
42535
42536D='$'
42537cat <<EOF >bk-deps
a848cd7e
SC
42538#!/bin/sh
42539
42540# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42541# script. It is used to track C/C++ files dependencies in portable way.
42542#
42543# Permission is given to use this file in any way.
42544
473276a9 42545DEPSMODE=${DEPSMODE}
a848cd7e 42546DEPSDIR=.deps
473276a9 42547DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 42548DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 42549
473276a9 42550mkdir -p ${D}DEPSDIR
a848cd7e 42551
473276a9
VS
42552if test ${D}DEPSMODE = gcc ; then
42553 ${D}* ${D}{DEPSFLAG_GCC}
42554 status=${D}?
42555 if test ${D}{status} != 0 ; then
42556 exit ${D}{status}
a848cd7e
SC
42557 fi
42558 # move created file to the location we want it in:
473276a9
VS
42559 while test ${D}# -gt 0; do
42560 case "${D}1" in
a848cd7e
SC
42561 -o )
42562 shift
473276a9 42563 objfile=${D}1
a848cd7e
SC
42564 ;;
42565 -* )
42566 ;;
42567 * )
473276a9 42568 srcfile=${D}1
a848cd7e
SC
42569 ;;
42570 esac
42571 shift
42572 done
1e9e8aba
DE
42573 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42574 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
42575 if test -f ${D}depfile ; then
42576 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42577 rm -f ${D}depfile
a848cd7e 42578 else
1e9e8aba 42579 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
42580 if test -f ${D}depfile ; then
42581 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42582 rm -f ${D}depfile
a848cd7e
SC
42583 fi
42584 fi
42585 exit 0
81f90336
MW
42586elif test ${D}DEPSMODE = mwcc ; then
42587 ${D}*
42588 status=${D}?
42589 if test ${D}{status} != 0 ; then
42590 exit ${D}{status}
42591 fi
42592 # Run mwcc again with -MM and redirect into the dep file we want
42593 # NOTE: We can't use shift here because we need ${D}* to be valid
42594 prevarg=
42595 for arg in ${D}* ; do
42596 if test "${D}prevarg" = "-o"; then
42597 objfile=${D}arg
42598 else
42599 case "${D}arg" in
42600 -* )
42601 ;;
42602 * )
42603 srcfile=${D}arg
42604 ;;
42605 esac
42606 fi
42607 prevarg="${D}arg"
42608 done
42609 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42610 exit 0
a848cd7e 42611else
473276a9
VS
42612 ${D}*
42613 exit ${D}?
a848cd7e
SC
42614fi
42615EOF
473276a9 42616
a848cd7e
SC
42617 chmod +x bk-deps
42618 fi
42619
42620
42621
42622
42623 RESCOMP=
42624 SETFILE=
42625
42626 case ${BAKEFILE_HOST} in
42627 *-*-cygwin* | *-*-mingw32* )
42628 if test "$build" != "$host" ; then
42629 RESCOMP=$host_alias-windres
42630 else
42631 # Extract the first word of "windres", so it can be a program name with args.
42632set dummy windres; ac_word=$2
42633echo "$as_me:$LINENO: checking for $ac_word" >&5
42634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42635if test "${ac_cv_prog_RESCOMP+set}" = set; then
42636 echo $ECHO_N "(cached) $ECHO_C" >&6
42637else
42638 if test -n "$RESCOMP"; then
42639 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42640else
42641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42642for as_dir in $PATH
42643do
42644 IFS=$as_save_IFS
42645 test -z "$as_dir" && as_dir=.
42646 for ac_exec_ext in '' $ac_executable_extensions; do
42647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42648 ac_cv_prog_RESCOMP="windres"
42649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42650 break 2
42651 fi
42652done
42653done
42654
42655 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42656fi
42657fi
42658RESCOMP=$ac_cv_prog_RESCOMP
42659if test -n "$RESCOMP"; then
42660 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42661echo "${ECHO_T}$RESCOMP" >&6
42662else
42663 echo "$as_me:$LINENO: result: no" >&5
42664echo "${ECHO_T}no" >&6
42665fi
42666
42667 fi
42668 ;;
42669
1e9e8aba 42670 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
42671 # Extract the first word of "Rez", so it can be a program name with args.
42672set dummy Rez; ac_word=$2
42673echo "$as_me:$LINENO: checking for $ac_word" >&5
42674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42675if test "${ac_cv_prog_RESCOMP+set}" = set; then
42676 echo $ECHO_N "(cached) $ECHO_C" >&6
42677else
42678 if test -n "$RESCOMP"; then
42679 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42680else
42681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42682for as_dir in $PATH
42683do
42684 IFS=$as_save_IFS
42685 test -z "$as_dir" && as_dir=.
42686 for ac_exec_ext in '' $ac_executable_extensions; do
42687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42688 ac_cv_prog_RESCOMP="Rez"
42689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42690 break 2
42691 fi
42692done
42693done
42694
42695 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
42696fi
42697fi
42698RESCOMP=$ac_cv_prog_RESCOMP
42699if test -n "$RESCOMP"; then
42700 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42701echo "${ECHO_T}$RESCOMP" >&6
42702else
42703 echo "$as_me:$LINENO: result: no" >&5
42704echo "${ECHO_T}no" >&6
42705fi
42706
42707 # Extract the first word of "SetFile", so it can be a program name with args.
42708set dummy SetFile; ac_word=$2
42709echo "$as_me:$LINENO: checking for $ac_word" >&5
42710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42711if test "${ac_cv_prog_SETFILE+set}" = set; then
42712 echo $ECHO_N "(cached) $ECHO_C" >&6
42713else
42714 if test -n "$SETFILE"; then
42715 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
42716else
42717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42718for as_dir in $PATH
42719do
42720 IFS=$as_save_IFS
42721 test -z "$as_dir" && as_dir=.
42722 for ac_exec_ext in '' $ac_executable_extensions; do
42723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42724 ac_cv_prog_SETFILE="SetFile"
42725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42726 break 2
42727 fi
42728done
42729done
42730
42731 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
42732fi
42733fi
42734SETFILE=$ac_cv_prog_SETFILE
42735if test -n "$SETFILE"; then
42736 echo "$as_me:$LINENO: result: $SETFILE" >&5
42737echo "${ECHO_T}$SETFILE" >&6
42738else
42739 echo "$as_me:$LINENO: result: no" >&5
42740echo "${ECHO_T}no" >&6
42741fi
42742
42743 ;;
42744 esac
42745
42746
42747
42748
42749
fbb7dfff 42750 BAKEFILE_BAKEFILE_M4_VERSION="0.1.8"
a848cd7e 42751
dcc1b6ad 42752
fbb7dfff 42753BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8"
a848cd7e 42754
646b6ec1 42755
74b84332 42756
a848cd7e
SC
42757 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
42758if test "${enable_precomp_headers+set}" = set; then
42759 enableval="$enable_precomp_headers"
42760 bk_use_pch="$enableval"
42761fi;
42762
42763 GCC_PCH=0
42764
42765 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
42766 if test "x$GCC" = "xyes"; then
42767 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
42768echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
42769 cat >conftest.$ac_ext <<_ACEOF
42770/* confdefs.h. */
42771_ACEOF
42772cat confdefs.h >>conftest.$ac_ext
42773cat >>conftest.$ac_ext <<_ACEOF
42774/* end confdefs.h. */
42775
42776int
42777main ()
42778{
42779
42780 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
42781 #error "no pch support"
42782 #endif
42783 #if (__GNUC__ < 3)
42784 #error "no pch support"
42785 #endif
42786 #if (__GNUC__ == 3) && \
42787 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
42788 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
42789 #error "no pch support"
42790 #endif
42791
42792 ;
42793 return 0;
42794}
42795_ACEOF
42796rm -f conftest.$ac_objext
42797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42798 (eval $ac_compile) 2>conftest.er1
a848cd7e 42799 ac_status=$?
ac1cb8d3
VS
42800 grep -v '^ *+' conftest.er1 >conftest.err
42801 rm -f conftest.er1
42802 cat conftest.err >&5
a848cd7e
SC
42803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42804 (exit $ac_status); } &&
9dd0f6c2 42805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42807 (eval $ac_try) 2>&5
42808 ac_status=$?
42809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42810 (exit $ac_status); }; } &&
42811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42813 (eval $ac_try) 2>&5
42814 ac_status=$?
42815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42816 (exit $ac_status); }; }; then
42817
42818 echo "$as_me:$LINENO: result: yes" >&5
42819echo "${ECHO_T}yes" >&6
a848cd7e
SC
42820 GCC_PCH=1
42821
42822else
42823 echo "$as_me: failed program was:" >&5
42824sed 's/^/| /' conftest.$ac_ext >&5
42825
42826
42827 echo "$as_me:$LINENO: result: no" >&5
42828echo "${ECHO_T}no" >&6
42829
42830fi
ac1cb8d3 42831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42832 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
42833
42834D='$'
42835cat <<EOF >bk-make-pch
a848cd7e
SC
42836#!/bin/sh
42837
42838# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42839# script. It is used to generated precompiled headers.
42840#
42841# Permission is given to use this file in any way.
42842
1e9e8aba
DE
42843outfile="${D}{1}"
42844header="${D}{2}"
a848cd7e
SC
42845shift
42846shift
42847
42848compiler=
42849headerfile=
1e9e8aba
DE
42850while test ${D}{#} -gt 0; do
42851 case "${D}{1}" in
a848cd7e 42852 -I* )
1e9e8aba
DE
42853 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
42854 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
42855 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
42856 fi
42857 ;;
42858 esac
1e9e8aba 42859 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
42860 shift
42861done
42862
1e9e8aba
DE
42863if test "x${D}{headerfile}" = "x" ; then
42864 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 42865else
1e9e8aba
DE
42866 if test -f ${D}{outfile} ; then
42867 rm -f ${D}{outfile}
a848cd7e 42868 else
1e9e8aba 42869 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 42870 fi
1e9e8aba 42871 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
42872 mkdir -p .deps
42873 # can do this because gcc is >= 3.4:
1e9e8aba
DE
42874 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
42875 exit ${D}{?}
a848cd7e
SC
42876fi
42877EOF
1e9e8aba 42878
a848cd7e
SC
42879 chmod +x bk-make-pch
42880 fi
42881 fi
42882 fi
42883
42884
42885
a848cd7e
SC
42886 COND_BUILD_DEBUG="#"
42887 if test "x$BUILD" = "xdebug" ; then
42888 COND_BUILD_DEBUG=""
42889 fi
42890
42891 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
42892 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
42893 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
42894 fi
42895
42896 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
42897 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
42898 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
42899 fi
42900
42901 COND_BUILD_DEBUG_UNICODE_0="#"
42902 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
42903 COND_BUILD_DEBUG_UNICODE_0=""
42904 fi
42905
42906 COND_BUILD_DEBUG_UNICODE_1="#"
42907 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
42908 COND_BUILD_DEBUG_UNICODE_1=""
42909 fi
42910
42911 COND_BUILD_RELEASE="#"
42912 if test "x$BUILD" = "xrelease" ; then
42913 COND_BUILD_RELEASE=""
42914 fi
42915
42916 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
42917 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
42918 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
42919 fi
42920
42921 COND_BUILD_RELEASE_UNICODE_0="#"
42922 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
42923 COND_BUILD_RELEASE_UNICODE_0=""
42924 fi
42925
42926 COND_BUILD_RELEASE_UNICODE_1="#"
42927 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
42928 COND_BUILD_RELEASE_UNICODE_1=""
42929 fi
42930
42931 COND_DEBUG_FLAG_1="#"
42932 if test "x$DEBUG_FLAG" = "x1" ; then
42933 COND_DEBUG_FLAG_1=""
42934 fi
42935
42936 COND_DEBUG_INFO_0="#"
42937 if test "x$DEBUG_INFO" = "x0" ; then
42938 COND_DEBUG_INFO_0=""
42939 fi
42940
42941 COND_DEBUG_INFO_1="#"
42942 if test "x$DEBUG_INFO" = "x1" ; then
42943 COND_DEBUG_INFO_1=""
42944 fi
42945
42946 COND_DEPS_TRACKING_0="#"
42947 if test "x$DEPS_TRACKING" = "x0" ; then
42948 COND_DEPS_TRACKING_0=""
42949 fi
42950
42951 COND_DEPS_TRACKING_1="#"
42952 if test "x$DEPS_TRACKING" = "x1" ; then
42953 COND_DEPS_TRACKING_1=""
42954 fi
42955
42956 COND_GCC_PCH_1="#"
42957 if test "x$GCC_PCH" = "x1" ; then
42958 COND_GCC_PCH_1=""
42959 fi
42960
42961 COND_MONOLITHIC_0="#"
42962 if test "x$MONOLITHIC" = "x0" ; then
42963 COND_MONOLITHIC_0=""
42964 fi
42965
42966 COND_MONOLITHIC_0_SHARED_0="#"
42967 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
42968 COND_MONOLITHIC_0_SHARED_0=""
42969 fi
42970
42971 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
42972 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
42973 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
42974 fi
42975
90970d69
DE
42976 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
42977 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42978 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
42979 fi
42980
a848cd7e
SC
42981 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
42982 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42983 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
42984 fi
42985
6671c68b
VZ
42986 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
42987 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42988 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
42989 fi
42990
a848cd7e
SC
42991 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
42992 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
42993 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
42994 fi
42995
ceec2216
RL
42996 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
42997 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42998 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
42999 fi
43000
a848cd7e
SC
43001 COND_MONOLITHIC_0_SHARED_1="#"
43002 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
43003 COND_MONOLITHIC_0_SHARED_1=""
43004 fi
43005
43006 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
43007 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
43008 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
43009 fi
43010
90970d69
DE
43011 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
43012 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43013 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
43014 fi
43015
a848cd7e
SC
43016 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
43017 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43018 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
43019 fi
43020
6671c68b
VZ
43021 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
43022 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43023 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
43024 fi
43025
a848cd7e
SC
43026 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
43027 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
43028 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
43029 fi
43030
ceec2216
RL
43031 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
43032 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43033 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
43034 fi
43035
a848cd7e
SC
43036 COND_MONOLITHIC_0_USE_ODBC_1="#"
43037 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
43038 COND_MONOLITHIC_0_USE_ODBC_1=""
43039 fi
43040
43041 COND_MONOLITHIC_1="#"
43042 if test "x$MONOLITHIC" = "x1" ; then
43043 COND_MONOLITHIC_1=""
43044 fi
43045
43046 COND_MONOLITHIC_1_SHARED_0="#"
43047 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
43048 COND_MONOLITHIC_1_SHARED_0=""
43049 fi
43050
43051 COND_MONOLITHIC_1_SHARED_1="#"
43052 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
43053 COND_MONOLITHIC_1_SHARED_1=""
43054 fi
43055
43056 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
43057 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
43058 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
43059 fi
43060
43061 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
43062 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
43063 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
43064 fi
43065
43066 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
43067 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
43068 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
43069 fi
43070
43071 COND_PLATFORM_MACOSX_1="#"
43072 if test "x$PLATFORM_MACOSX" = "x1" ; then
43073 COND_PLATFORM_MACOSX_1=""
43074 fi
43075
a30f955f
VS
43076 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
43077 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
43078 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
43079 fi
43080
a848cd7e
SC
43081 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
43082 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
43083 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
43084 fi
43085
43086 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
43087 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
43088 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
43089 fi
43090
43091 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
43092 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
43093 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
43094 fi
43095
fc480dc1
DE
43096 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
43097 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43098 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
43099 fi
43100
1e9e8aba
DE
43101 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43102 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43103 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43104 fi
43105
ebee3cd0
VS
43106 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
43107 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
43108 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
43109 fi
43110
43111 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
43112 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
43113 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
43114 fi
43115
a848cd7e
SC
43116 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
43117 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
43118 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
43119 fi
43120
43121 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
43122 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
43123 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
43124 fi
43125
b48a2016
DE
43126 COND_PLATFORM_MACOS_1="#"
43127 if test "x$PLATFORM_MACOS" = "x1" ; then
43128 COND_PLATFORM_MACOS_1=""
43129 fi
43130
a848cd7e
SC
43131 COND_PLATFORM_MAC_1="#"
43132 if test "x$PLATFORM_MAC" = "x1" ; then
43133 COND_PLATFORM_MAC_1=""
43134 fi
43135
83d8eb47
MW
43136 COND_PLATFORM_MSDOS_1="#"
43137 if test "x$PLATFORM_MSDOS" = "x1" ; then
43138 COND_PLATFORM_MSDOS_1=""
43139 fi
43140
a848cd7e
SC
43141 COND_PLATFORM_OS2_1="#"
43142 if test "x$PLATFORM_OS2" = "x1" ; then
43143 COND_PLATFORM_OS2_1=""
43144 fi
43145
43146 COND_PLATFORM_UNIX_0="#"
43147 if test "x$PLATFORM_UNIX" = "x0" ; then
43148 COND_PLATFORM_UNIX_0=""
43149 fi
43150
43151 COND_PLATFORM_UNIX_1="#"
43152 if test "x$PLATFORM_UNIX" = "x1" ; then
43153 COND_PLATFORM_UNIX_1=""
43154 fi
43155
43156 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
43157 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
43158 COND_PLATFORM_UNIX_1_USE_GUI_1=""
43159 fi
43160
43161 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
43162 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
43163 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
43164 fi
43165
43166 COND_PLATFORM_WIN32_0="#"
43167 if test "x$PLATFORM_WIN32" = "x0" ; then
43168 COND_PLATFORM_WIN32_0=""
43169 fi
43170
43171 COND_PLATFORM_WIN32_1="#"
43172 if test "x$PLATFORM_WIN32" = "x1" ; then
43173 COND_PLATFORM_WIN32_1=""
43174 fi
43175
43176 COND_SHARED_0="#"
43177 if test "x$SHARED" = "x0" ; then
43178 COND_SHARED_0=""
43179 fi
43180
ceec2216
RL
43181 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
43182 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
43183 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
43184 fi
43185
43186 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
43187 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
43188 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
43189 fi
43190
43191 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
43192 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
43193 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
43194 fi
43195
a848cd7e
SC
43196 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
43197 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43198 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
43199 fi
43200
43201 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43202 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43203 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43204 fi
43205
43206 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43207 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43208 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43209 fi
43210
43211 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43212 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43213 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43214 fi
43215
52ada004
RL
43216 COND_SHARED_0_USE_XRC_1="#"
43217 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43218 COND_SHARED_0_USE_XRC_1=""
43219 fi
43220
a848cd7e
SC
43221 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
43222 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
43223 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
43224 fi
43225
43226 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
43227 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
43228 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
43229 fi
43230
43231 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
43232 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
43233 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
43234 fi
43235
43236 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
43237 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
43238 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
43239 fi
43240
43241 COND_SHARED_1="#"
43242 if test "x$SHARED" = "x1" ; then
43243 COND_SHARED_1=""
43244 fi
43245
43246 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
43247 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43248 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
43249 fi
43250
52ada004
RL
43251 COND_SHARED_1_USE_XRC_1="#"
43252 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43253 COND_SHARED_1_USE_XRC_1=""
43254 fi
43255
a30f955f
VS
43256 COND_TOOLKIT_="#"
43257 if test "x$TOOLKIT" = "x" ; then
43258 COND_TOOLKIT_=""
43259 fi
43260
a848cd7e
SC
43261 COND_TOOLKIT_COCOA="#"
43262 if test "x$TOOLKIT" = "xCOCOA" ; then
43263 COND_TOOLKIT_COCOA=""
43264 fi
43265
a49baeab
DE
43266 COND_TOOLKIT_COCOA_USE_GUI_1="#"
43267 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
43268 COND_TOOLKIT_COCOA_USE_GUI_1=""
43269 fi
43270
a848cd7e
SC
43271 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
43272 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43273 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
43274 fi
43275
43276 COND_TOOLKIT_GTK="#"
43277 if test "x$TOOLKIT" = "xGTK" ; then
43278 COND_TOOLKIT_GTK=""
43279 fi
43280
43281 COND_TOOLKIT_GTK_USE_GUI_1="#"
43282 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
43283 COND_TOOLKIT_GTK_USE_GUI_1=""
43284 fi
43285
43286 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
43287 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43288 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
43289 fi
43290
43291 COND_TOOLKIT_MAC="#"
43292 if test "x$TOOLKIT" = "xMAC" ; then
43293 COND_TOOLKIT_MAC=""
43294 fi
43295
43296 COND_TOOLKIT_MAC_USE_GUI_1="#"
43297 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43298 COND_TOOLKIT_MAC_USE_GUI_1=""
43299 fi
43300
43301 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43302 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43303 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43304 fi
43305
43306 COND_TOOLKIT_MGL="#"
43307 if test "x$TOOLKIT" = "xMGL" ; then
43308 COND_TOOLKIT_MGL=""
43309 fi
43310
43311 COND_TOOLKIT_MGL_USE_GUI_1="#"
43312 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
43313 COND_TOOLKIT_MGL_USE_GUI_1=""
43314 fi
43315
43316 COND_TOOLKIT_MOTIF="#"
43317 if test "x$TOOLKIT" = "xMOTIF" ; then
43318 COND_TOOLKIT_MOTIF=""
43319 fi
43320
43321 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
43322 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
43323 COND_TOOLKIT_MOTIF_USE_GUI_1=""
43324 fi
43325
43326 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
43327 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43328 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
43329 fi
43330
43331 COND_TOOLKIT_MSW="#"
43332 if test "x$TOOLKIT" = "xMSW" ; then
43333 COND_TOOLKIT_MSW=""
43334 fi
43335
43336 COND_TOOLKIT_MSW_USE_GUI_1="#"
43337 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
43338 COND_TOOLKIT_MSW_USE_GUI_1=""
43339 fi
43340
43341 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
43342 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43343 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
43344 fi
43345
43346 COND_TOOLKIT_PM="#"
43347 if test "x$TOOLKIT" = "xPM" ; then
43348 COND_TOOLKIT_PM=""
43349 fi
43350
43351 COND_TOOLKIT_PM_USE_GUI_1="#"
43352 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
43353 COND_TOOLKIT_PM_USE_GUI_1=""
43354 fi
43355
43356 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
43357 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43358 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
43359 fi
43360
3fd9c298
DE
43361 COND_TOOLKIT_WINCE="#"
43362 if test "x$TOOLKIT" = "xWINCE" ; then
43363 COND_TOOLKIT_WINCE=""
43364 fi
43365
43366 COND_TOOLKIT_WINCE_USE_GUI_1="#"
43367 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
43368 COND_TOOLKIT_WINCE_USE_GUI_1=""
43369 fi
43370
43371 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
43372 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43373 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
43374 fi
43375
a848cd7e
SC
43376 COND_TOOLKIT_X11="#"
43377 if test "x$TOOLKIT" = "xX11" ; then
43378 COND_TOOLKIT_X11=""
43379 fi
43380
43381 COND_TOOLKIT_X11_USE_GUI_1="#"
43382 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
43383 COND_TOOLKIT_X11_USE_GUI_1=""
43384 fi
43385
43386 COND_UNICODE_1="#"
43387 if test "x$UNICODE" = "x1" ; then
43388 COND_UNICODE_1=""
43389 fi
43390
43391 COND_USE_EXCEPTIONS_0="#"
43392 if test "x$USE_EXCEPTIONS" = "x0" ; then
43393 COND_USE_EXCEPTIONS_0=""
43394 fi
43395
43396 COND_USE_EXCEPTIONS_1="#"
43397 if test "x$USE_EXCEPTIONS" = "x1" ; then
43398 COND_USE_EXCEPTIONS_1=""
43399 fi
43400
43401 COND_USE_GUI_0="#"
43402 if test "x$USE_GUI" = "x0" ; then
43403 COND_USE_GUI_0=""
43404 fi
43405
43406 COND_USE_GUI_1="#"
43407 if test "x$USE_GUI" = "x1" ; then
43408 COND_USE_GUI_1=""
43409 fi
43410
43411 COND_USE_GUI_1_WXUNIV_0="#"
43412 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43413 COND_USE_GUI_1_WXUNIV_0=""
43414 fi
43415
43416 COND_USE_GUI_1_WXUNIV_1="#"
43417 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
43418 COND_USE_GUI_1_WXUNIV_1=""
43419 fi
43420
43421 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43422 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43423 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43424 fi
43425
43426 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43427 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43428 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43429 fi
43430
43431 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43432 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43433 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43434 fi
43435
ceec2216
RL
43436 COND_USE_ODBC_1="#"
43437 if test "x$USE_ODBC" = "x1" ; then
43438 COND_USE_ODBC_1=""
43439 fi
43440
ffa0583f
RL
43441 COND_USE_OPENGL_1="#"
43442 if test "x$USE_OPENGL" = "x1" ; then
43443 COND_USE_OPENGL_1=""
43444 fi
43445
a848cd7e
SC
43446 COND_USE_PLUGINS_0="#"
43447 if test "x$USE_PLUGINS" = "x0" ; then
43448 COND_USE_PLUGINS_0=""
43449 fi
43450
0b78747f
MW
43451 COND_USE_RTTI_0="#"
43452 if test "x$USE_RTTI" = "x0" ; then
43453 COND_USE_RTTI_0=""
43454 fi
43455
43456 COND_USE_RTTI_1="#"
43457 if test "x$USE_RTTI" = "x1" ; then
43458 COND_USE_RTTI_1=""
43459 fi
43460
a848cd7e
SC
43461 COND_USE_SOSYMLINKS_1="#"
43462 if test "x$USE_SOSYMLINKS" = "x1" ; then
43463 COND_USE_SOSYMLINKS_1=""
43464 fi
43465
43466 COND_USE_SOVERLINUX_1="#"
43467 if test "x$USE_SOVERLINUX" = "x1" ; then
43468 COND_USE_SOVERLINUX_1=""
43469 fi
43470
43471 COND_USE_SOVERSION_0="#"
43472 if test "x$USE_SOVERSION" = "x0" ; then
43473 COND_USE_SOVERSION_0=""
43474 fi
43475
43476 COND_USE_SOVERSOLARIS_1="#"
43477 if test "x$USE_SOVERSOLARIS" = "x1" ; then
43478 COND_USE_SOVERSOLARIS_1=""
43479 fi
43480
0b78747f
MW
43481 COND_USE_THREADS_0="#"
43482 if test "x$USE_THREADS" = "x0" ; then
43483 COND_USE_THREADS_0=""
43484 fi
43485
43486 COND_USE_THREADS_1="#"
43487 if test "x$USE_THREADS" = "x1" ; then
43488 COND_USE_THREADS_1=""
43489 fi
43490
a13a7f89
RL
43491 COND_USE_XRC_1="#"
43492 if test "x$USE_XRC" = "x1" ; then
43493 COND_USE_XRC_1=""
43494 fi
43495
a848cd7e
SC
43496 COND_WITH_PLUGIN_SDL_1="#"
43497 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43498 COND_WITH_PLUGIN_SDL_1=""
43499 fi
43500
1e6eb025
VZ
43501 COND_WXUNIV_0="#"
43502 if test "x$WXUNIV" = "x0" ; then
43503 COND_WXUNIV_0=""
43504 fi
43505
a848cd7e
SC
43506 COND_WXUNIV_1="#"
43507 if test "x$WXUNIV" = "x1" ; then
43508 COND_WXUNIV_1=""
43509 fi
43510
43511 COND_WXUSE_EXPAT_BUILTIN="#"
43512 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43513 COND_WXUSE_EXPAT_BUILTIN=""
43514 fi
43515
43516 COND_WXUSE_LIBJPEG_BUILTIN="#"
43517 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43518 COND_WXUSE_LIBJPEG_BUILTIN=""
43519 fi
43520
43521 COND_WXUSE_LIBPNG_BUILTIN="#"
43522 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43523 COND_WXUSE_LIBPNG_BUILTIN=""
43524 fi
43525
43526 COND_WXUSE_LIBTIFF_BUILTIN="#"
43527 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43528 COND_WXUSE_LIBTIFF_BUILTIN=""
43529 fi
43530
43531 COND_WXUSE_ODBC_BUILTIN="#"
43532 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43533 COND_WXUSE_ODBC_BUILTIN=""
43534 fi
43535
43536 COND_WXUSE_REGEX_BUILTIN="#"
43537 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43538 COND_WXUSE_REGEX_BUILTIN=""
43539 fi
43540
43541 COND_WXUSE_ZLIB_BUILTIN="#"
43542 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43543 COND_WXUSE_ZLIB_BUILTIN=""
43544 fi
43545
43546
43547
2057db16
VS
43548 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43549 { { 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
43550echo "$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;}
43551 { (exit 1); exit 1; }; }
43552 fi
43553
a848cd7e 43554
ceec2216
RL
43555if test "$wxUSE_SHARED" = "yes"; then
43556
43557 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43558 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43559
5b674b9d
DE
43560 case "${host}" in
43561 *-pc-os2_emx | *-pc-os2-emx )
43562 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43563 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43564 cp -p ${srcdir}/src/os2/dllnames.sh .
43565 cp -p ${srcdir}/src/os2/dllar.sh .
43566 ;;
43567 esac
ceec2216
RL
43568else
43569
43570 EXE_LINKER="$CXX -o"
43571
43572fi
69120ee4
VZ
43573if test "$wxUSE_OMF" = "yes"; then
43574 case "${host}" in
43575 *-pc-os2_emx | *-pc-os2-emx )
43576 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
43577 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43578 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43579 ;;
43580 esac
43581fi
a848cd7e 43582
74b84332 43583GCC_PRAGMA_FLAGS=""
c08ebc62
DE
43584PCH_FLAGS=""
43585if test $GCC_PCH = 1 ; then
43586 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43587 PCH_FLAGS="-DWX_PRECOMP"
43588else
a848cd7e
SC
43589 case "${host}" in
43590 powerpc-*-darwin* )
74b84332 43591 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 43592 ;;
bea8e651 43593 *-*-mingw32* )
1f344abf
VS
43594 if test "$wxUSE_STL" = "yes" -o \
43595 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
43596 "$wxUSE_NO_RTTI" != "yes"; then
43597 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
43598echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
43599 cat >conftest.$ac_ext <<_ACEOF
43600/* confdefs.h. */
43601_ACEOF
43602cat confdefs.h >>conftest.$ac_ext
43603cat >>conftest.$ac_ext <<_ACEOF
43604/* end confdefs.h. */
43605
3314e67b
RR
43606int
43607main ()
43608{
43609#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43610 #error "Not GCC 3.2 or greater"
43611 #endif
43612
43613 ;
43614 return 0;
43615}
43616_ACEOF
43617rm -f conftest.$ac_objext
43618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43619 (eval $ac_compile) 2>conftest.er1
43620 ac_status=$?
43621 grep -v '^ *+' conftest.er1 >conftest.err
43622 rm -f conftest.er1
43623 cat conftest.err >&5
43624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43625 (exit $ac_status); } &&
9dd0f6c2 43626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314e67b
RR
43627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43628 (eval $ac_try) 2>&5
43629 ac_status=$?
43630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43631 (exit $ac_status); }; } &&
43632 { ac_try='test -s conftest.$ac_objext'
43633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43634 (eval $ac_try) 2>&5
43635 ac_status=$?
43636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43637 (exit $ac_status); }; }; then
43638 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43639 echo "$as_me:$LINENO: result: yes" >&5
43640echo "${ECHO_T}yes" >&6
43641else
43642 echo "$as_me: failed program was:" >&5
43643sed 's/^/| /' conftest.$ac_ext >&5
43644
43645echo "$as_me:$LINENO: result: no" >&5
43646echo "${ECHO_T}no" >&6
43647fi
43648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43649 fi
43650 ;;
43651 *-pc-os2_emx | *-pc-os2-emx )
43652 if test "$wxUSE_STL" = "yes"; then
43653 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
43654echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43655 cat >conftest.$ac_ext <<_ACEOF
43656/* confdefs.h. */
43657_ACEOF
43658cat confdefs.h >>conftest.$ac_ext
43659cat >>conftest.$ac_ext <<_ACEOF
43660/* end confdefs.h. */
43661
bea8e651
MB
43662int
43663main ()
43664{
1f344abf 43665#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
43666 #error "Not GCC 3.2 or greater"
43667 #endif
43668
43669 ;
43670 return 0;
43671}
43672_ACEOF
43673rm -f conftest.$ac_objext
43674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43675 (eval $ac_compile) 2>conftest.er1
bea8e651 43676 ac_status=$?
ac1cb8d3
VS
43677 grep -v '^ *+' conftest.er1 >conftest.err
43678 rm -f conftest.er1
43679 cat conftest.err >&5
bea8e651
MB
43680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43681 (exit $ac_status); } &&
9dd0f6c2 43682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43684 (eval $ac_try) 2>&5
43685 ac_status=$?
43686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43687 (exit $ac_status); }; } &&
43688 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
43689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43690 (eval $ac_try) 2>&5
43691 ac_status=$?
43692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43693 (exit $ac_status); }; }; then
74b84332 43694 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
43695 echo "$as_me:$LINENO: result: yes" >&5
43696echo "${ECHO_T}yes" >&6
43697else
43698 echo "$as_me: failed program was:" >&5
43699sed 's/^/| /' conftest.$ac_ext >&5
43700
43701echo "$as_me:$LINENO: result: no" >&5
43702echo "${ECHO_T}no" >&6
43703fi
ac1cb8d3 43704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
43705 fi
43706 ;;
a848cd7e
SC
43707 esac
43708fi
d2083416 43709CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
43710
43711
43712SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43713
43714
43715
43716
43717
43718
43719
43720
43721
43722
43723
43724
43725
43726
43727
43728
43729
43730
43731
43732
43733
43734
43735
43736
43737
43738
43739
43740
43741
43742
43743
43744
43745
43746
43747
43748
43749
43750
43751
43752
43753
43754
a848cd7e
SC
43755
43756
43757
43758
43759
43760
43761
43762
43763
43764
43765
43766
43767
43768
43769
43770
43771
43772
74b84332 43773
a848cd7e
SC
43774
43775
43776echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43777echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43778set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43779if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43780 echo $ECHO_N "(cached) $ECHO_C" >&6
43781else
43782 cat >conftest.make <<\_ACEOF
43783all:
43784 @echo 'ac_maketemp="$(MAKE)"'
43785_ACEOF
43786# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43787eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43788if test -n "$ac_maketemp"; then
43789 eval ac_cv_prog_make_${ac_make}_set=yes
43790else
43791 eval ac_cv_prog_make_${ac_make}_set=no
43792fi
43793rm -f conftest.make
43794fi
43795if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43796 echo "$as_me:$LINENO: result: yes" >&5
43797echo "${ECHO_T}yes" >&6
43798 SET_MAKE=
43799else
43800 echo "$as_me:$LINENO: result: no" >&5
43801echo "${ECHO_T}no" >&6
43802 SET_MAKE="MAKE=${MAKE-make}"
43803fi
43804
43805
a848cd7e 43806
ceec2216
RL
43807 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
43808
a848cd7e 43809
ceec2216 43810 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 43811
a848cd7e 43812
ceec2216 43813 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 43814
ceec2216
RL
43815
43816 ac_config_files="$ac_config_files version-script Makefile"
43817
43818
43819 ac_config_commands="$ac_config_commands wx-config
43820 "
a848cd7e
SC
43821
43822
9103d280
RL
43823
43824
a848cd7e
SC
43825if test "$wxUSE_GUI" = "yes"; then
43826 SUBDIRS="samples demos utils contrib"
43827else SUBDIRS="samples utils"
43828fi
43829
43830
43831
43832# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
43833if test "${with_cppunit_prefix+set}" = set; then
43834 withval="$with_cppunit_prefix"
43835 cppunit_config_prefix="$withval"
43836else
43837 cppunit_config_prefix=""
43838fi;
43839
43840# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
43841if test "${with_cppunit_exec_prefix+set}" = set; then
43842 withval="$with_cppunit_exec_prefix"
43843 cppunit_config_exec_prefix="$withval"
43844else
43845 cppunit_config_exec_prefix=""
43846fi;
43847
43848 if test x$cppunit_config_exec_prefix != x ; then
43849 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
43850 if test x${CPPUNIT_CONFIG+set} != xset ; then
43851 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
43852 fi
43853 fi
43854 if test x$cppunit_config_prefix != x ; then
43855 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
43856 if test x${CPPUNIT_CONFIG+set} != xset ; then
43857 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
43858 fi
43859 fi
43860
43861 # Extract the first word of "cppunit-config", so it can be a program name with args.
43862set dummy cppunit-config; ac_word=$2
43863echo "$as_me:$LINENO: checking for $ac_word" >&5
43864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43865if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
43866 echo $ECHO_N "(cached) $ECHO_C" >&6
43867else
43868 case $CPPUNIT_CONFIG in
43869 [\\/]* | ?:[\\/]*)
43870 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
43871 ;;
43872 *)
43873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43874for as_dir in $PATH
43875do
43876 IFS=$as_save_IFS
43877 test -z "$as_dir" && as_dir=.
43878 for ac_exec_ext in '' $ac_executable_extensions; do
43879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43880 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43882 break 2
43883 fi
43884done
43885done
43886
43887 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
43888 ;;
43889esac
43890fi
43891CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
43892
43893if test -n "$CPPUNIT_CONFIG"; then
43894 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
43895echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
43896else
43897 echo "$as_me:$LINENO: result: no" >&5
43898echo "${ECHO_T}no" >&6
43899fi
43900
43901 cppunit_version_min=1.8.0
43902
43903 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
43904echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
43905 no_cppunit=""
43906 if test "$CPPUNIT_CONFIG" = "no" ; then
43907 no_cppunit=yes
43908 else
43909 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
43910 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
43911 cppunit_version=`$CPPUNIT_CONFIG --version`
43912
43913 cppunit_major_version=`echo $cppunit_version | \
43914 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43915 cppunit_minor_version=`echo $cppunit_version | \
43916 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43917 cppunit_micro_version=`echo $cppunit_version | \
43918 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43919
43920 cppunit_major_min=`echo $cppunit_version_min | \
43921 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43922 cppunit_minor_min=`echo $cppunit_version_min | \
43923 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43924 cppunit_micro_min=`echo $cppunit_version_min | \
43925 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43926
43927 cppunit_version_proper=`expr \
43928 $cppunit_major_version \> $cppunit_major_min \| \
43929 $cppunit_major_version \= $cppunit_major_min \& \
43930 $cppunit_minor_version \> $cppunit_minor_min \| \
43931 $cppunit_major_version \= $cppunit_major_min \& \
43932 $cppunit_minor_version \= $cppunit_minor_min \& \
43933 $cppunit_micro_version \>= $cppunit_micro_min `
43934
43935 if test "$cppunit_version_proper" = "1" ; then
43936 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
43937echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
43938 else
43939 echo "$as_me:$LINENO: result: no" >&5
43940echo "${ECHO_T}no" >&6
43941 no_cppunit=yes
43942 fi
43943 fi
43944
43945 if test "x$no_cppunit" = x ; then
c2218763 43946 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
43947 else
43948 CPPUNIT_CFLAGS=""
43949 CPPUNIT_LIBS=""
c2218763 43950 :
a848cd7e
SC
43951 fi
43952
43953
43954
43955
43956
43957for subdir in `echo $SUBDIRS`; do
43958 if test -d ${srcdir}/${subdir} ; then
43959 if test "$wxUSE_GUI" = "yes"; then
43960 if test ${subdir} = "samples"; then
43961 makefiles="samples/Makefile.in $makefiles"
43962 for sample in `echo $SAMPLES_SUBDIRS`; do
43963 if test -d $srcdir/samples/$sample; then
43964 makefiles="samples/$sample/Makefile.in $makefiles"
43965 fi
43966 done
9c112555
MW
43967 else
43968 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
43969 eval "disabled=\$$disabled_var"
43970 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
43971 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
43972 fi
43973 else if test ${subdir} = "samples"; then
43974 makefiles="samples/Makefile.in samples/console/Makefile.in"
43975 elif test ${subdir} = "utils"; then
6537ccf8
VS
43976 makefiles=""
43977 for util in HelpGen tex2rtf ; do
43978 if test -d $srcdir/utils/$util ; then
43979 makefiles="utils/$util/Makefile.in \
43980 utils/$util/src/Makefile.in \
43981 $makefiles"
43982 fi
43983 done
a848cd7e
SC
43984 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43985 fi
43986 fi
43987
43988 for mkin in $makefiles ; do
43989 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
43990 ac_config_files="$ac_config_files $mk"
43991
43992 done
43993 fi
43994done
43995
43996
43997cat >confcache <<\_ACEOF
43998# This file is a shell script that caches the results of configure
43999# tests run on this system so they can be shared between configure
44000# scripts and configure runs, see configure's option --config-cache.
44001# It is not useful on other systems. If it contains results you don't
44002# want to keep, you may remove or edit it.
44003#
44004# config.status only pays attention to the cache file if you give it
44005# the --recheck option to rerun configure.
44006#
44007# `ac_cv_env_foo' variables (set or unset) will be overridden when
44008# loading this file, other *unset* `ac_cv_foo' will be assigned the
44009# following values.
44010
44011_ACEOF
44012
44013# The following way of writing the cache mishandles newlines in values,
44014# but we know of no workaround that is simple, portable, and efficient.
44015# So, don't put newlines in cache variables' values.
44016# Ultrix sh set writes to stderr and can't be redirected directly,
44017# and sets the high bit in the cache file unless we assign to the vars.
44018{
44019 (set) 2>&1 |
44020 case `(ac_space=' '; set | grep ac_space) 2>&1` in
44021 *ac_space=\ *)
44022 # `set' does not quote correctly, so add quotes (double-quote
44023 # substitution turns \\\\ into \\, and sed turns \\ into \).
44024 sed -n \
ac1cb8d3
VS
44025 "s/'/'\\\\''/g;
44026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
44027 ;;
44028 *)
44029 # `set' quotes correctly as required by POSIX, so do not add quotes.
44030 sed -n \
ac1cb8d3 44031 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
44032 ;;
44033 esac;
44034} |
44035 sed '
44036 t clear
44037 : clear
44038 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44039 t end
44040 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44041 : end' >>confcache
44042if diff $cache_file confcache >/dev/null 2>&1; then :; else
44043 if test -w $cache_file; then
44044 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
44045 cat confcache >$cache_file
44046 else
44047 echo "not updating unwritable cache $cache_file"
44048 fi
44049fi
44050rm -f confcache
44051
44052test "x$prefix" = xNONE && prefix=$ac_default_prefix
44053# Let make expand exec_prefix.
44054test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44055
44056# VPATH may cause trouble with some makes, so we remove $(srcdir),
44057# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44058# trailing colons and then remove the whole line if VPATH becomes empty
44059# (actually we leave an empty line to preserve line numbers).
44060if test "x$srcdir" = x.; then
ac1cb8d3 44061 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
44062s/:*\$(srcdir):*/:/;
44063s/:*\${srcdir}:*/:/;
44064s/:*@srcdir@:*/:/;
ac1cb8d3 44065s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 44066s/:*$//;
ac1cb8d3 44067s/^[^=]*=[ ]*$//;
a848cd7e
SC
44068}'
44069fi
44070
44071DEFS=-DHAVE_CONFIG_H
44072
44073ac_libobjs=
44074ac_ltlibobjs=
44075for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44076 # 1. Remove the extension, and $U if already installed.
44077 ac_i=`echo "$ac_i" |
ac1cb8d3 44078 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
44079 # 2. Add them.
44080 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44081 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44082done
44083LIBOBJS=$ac_libobjs
44084
44085LTLIBOBJS=$ac_ltlibobjs
44086
44087
44088
44089: ${CONFIG_STATUS=./config.status}
44090ac_clean_files_save=$ac_clean_files
44091ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44092{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44093echo "$as_me: creating $CONFIG_STATUS" >&6;}
44094cat >$CONFIG_STATUS <<_ACEOF
44095#! $SHELL
44096# Generated by $as_me.
44097# Run this file to recreate the current configuration.
44098# Compiler output produced by configure, useful for debugging
44099# configure, is in config.log if it exists.
44100
44101debug=false
44102ac_cs_recheck=false
44103ac_cs_silent=false
44104SHELL=\${CONFIG_SHELL-$SHELL}
44105_ACEOF
44106
44107cat >>$CONFIG_STATUS <<\_ACEOF
44108## --------------------- ##
44109## M4sh Initialization. ##
44110## --------------------- ##
44111
44112# Be Bourne compatible
44113if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44114 emulate sh
44115 NULLCMD=:
44116 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44117 # is contrary to our usage. Disable this feature.
44118 alias -g '${1+"$@"}'='"$@"'
44119elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44120 set -o posix
44121fi
ac1cb8d3 44122DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
44123
44124# Support unset when possible.
ac1cb8d3 44125if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
44126 as_unset=unset
44127else
44128 as_unset=false
44129fi
44130
44131
44132# Work around bugs in pre-3.0 UWIN ksh.
44133$as_unset ENV MAIL MAILPATH
44134PS1='$ '
44135PS2='> '
44136PS4='+ '
44137
44138# NLS nuisances.
44139for as_var in \
44140 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44141 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44142 LC_TELEPHONE LC_TIME
44143do
ac1cb8d3 44144 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
44145 eval $as_var=C; export $as_var
44146 else
44147 $as_unset $as_var
44148 fi
44149done
44150
44151# Required to use basename.
44152if expr a : '\(a\)' >/dev/null 2>&1; then
44153 as_expr=expr
44154else
44155 as_expr=false
44156fi
44157
44158if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44159 as_basename=basename
44160else
44161 as_basename=false
44162fi
44163
44164
44165# Name of the executable.
44166as_me=`$as_basename "$0" ||
44167$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44168 X"$0" : 'X\(//\)$' \| \
44169 X"$0" : 'X\(/\)$' \| \
44170 . : '\(.\)' 2>/dev/null ||
44171echo X/"$0" |
44172 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44173 /^X\/\(\/\/\)$/{ s//\1/; q; }
44174 /^X\/\(\/\).*/{ s//\1/; q; }
44175 s/.*/./; q'`
44176
44177
44178# PATH needs CR, and LINENO needs CR and PATH.
44179# Avoid depending upon Character Ranges.
44180as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44181as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44182as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44183as_cr_digits='0123456789'
44184as_cr_alnum=$as_cr_Letters$as_cr_digits
44185
44186# The user is always right.
44187if test "${PATH_SEPARATOR+set}" != set; then
44188 echo "#! /bin/sh" >conf$$.sh
44189 echo "exit 0" >>conf$$.sh
44190 chmod +x conf$$.sh
44191 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44192 PATH_SEPARATOR=';'
44193 else
44194 PATH_SEPARATOR=:
44195 fi
44196 rm -f conf$$.sh
44197fi
44198
44199
44200 as_lineno_1=$LINENO
44201 as_lineno_2=$LINENO
44202 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44203 test "x$as_lineno_1" != "x$as_lineno_2" &&
44204 test "x$as_lineno_3" = "x$as_lineno_2" || {
44205 # Find who we are. Look in the path if we contain no path at all
44206 # relative or not.
44207 case $0 in
44208 *[\\/]* ) as_myself=$0 ;;
44209 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44210for as_dir in $PATH
44211do
44212 IFS=$as_save_IFS
44213 test -z "$as_dir" && as_dir=.
44214 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44215done
44216
44217 ;;
44218 esac
44219 # We did not find ourselves, most probably we were run as `sh COMMAND'
44220 # in which case we are not to be found in the path.
44221 if test "x$as_myself" = x; then
44222 as_myself=$0
44223 fi
44224 if test ! -f "$as_myself"; then
44225 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
44226echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
44227 { (exit 1); exit 1; }; }
44228 fi
44229 case $CONFIG_SHELL in
44230 '')
44231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44232for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44233do
44234 IFS=$as_save_IFS
44235 test -z "$as_dir" && as_dir=.
44236 for as_base in sh bash ksh sh5; do
44237 case $as_dir in
44238 /*)
44239 if ("$as_dir/$as_base" -c '
44240 as_lineno_1=$LINENO
44241 as_lineno_2=$LINENO
44242 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44243 test "x$as_lineno_1" != "x$as_lineno_2" &&
44244 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
44245 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
44246 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
44247 CONFIG_SHELL=$as_dir/$as_base
44248 export CONFIG_SHELL
44249 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
44250 fi;;
44251 esac
44252 done
44253done
44254;;
44255 esac
44256
44257 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44258 # uniformly replaced by the line number. The first 'sed' inserts a
44259 # line-number line before each line; the second 'sed' does the real
44260 # work. The second script uses 'N' to pair each line-number line
44261 # with the numbered line, and appends trailing '-' during
44262 # substitution so that $LINENO is not a special case at line end.
44263 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44264 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
44265 sed '=' <$as_myself |
44266 sed '
44267 N
44268 s,$,-,
44269 : loop
44270 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
44271 t loop
44272 s,-$,,
44273 s,^['$as_cr_digits']*\n,,
44274 ' >$as_me.lineno &&
44275 chmod +x $as_me.lineno ||
44276 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
44277echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
44278 { (exit 1); exit 1; }; }
44279
44280 # Don't try to exec as it changes $[0], causing all sort of problems
44281 # (the dirname of $[0] is not the place where we might find the
44282 # original and so on. Autoconf is especially sensible to this).
44283 . ./$as_me.lineno
44284 # Exit status is that of the last command.
44285 exit
44286}
44287
44288
44289case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
44290 *c*,-n*) ECHO_N= ECHO_C='
44291' ECHO_T=' ' ;;
44292 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
44293 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
44294esac
44295
44296if expr a : '\(a\)' >/dev/null 2>&1; then
44297 as_expr=expr
44298else
44299 as_expr=false
44300fi
44301
44302rm -f conf$$ conf$$.exe conf$$.file
44303echo >conf$$.file
44304if ln -s conf$$.file conf$$ 2>/dev/null; then
44305 # We could just check for DJGPP; but this test a) works b) is more generic
44306 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
44307 if test -f conf$$.exe; then
44308 # Don't use ln at all; we don't have any links
44309 as_ln_s='cp -p'
44310 else
44311 as_ln_s='ln -s'
44312 fi
44313elif ln conf$$.file conf$$ 2>/dev/null; then
44314 as_ln_s=ln
44315else
44316 as_ln_s='cp -p'
44317fi
44318rm -f conf$$ conf$$.exe conf$$.file
44319
44320if mkdir -p . 2>/dev/null; then
44321 as_mkdir_p=:
44322else
ac1cb8d3 44323 test -d ./-p && rmdir ./-p
a848cd7e
SC
44324 as_mkdir_p=false
44325fi
44326
44327as_executable_p="test -f"
44328
44329# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 44330as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44331
44332# Sed expression to map a string onto a valid variable name.
ac1cb8d3 44333as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44334
44335
44336# IFS
44337# We need space, tab and new line, in precisely that order.
44338as_nl='
44339'
44340IFS=" $as_nl"
44341
44342# CDPATH.
44343$as_unset CDPATH
44344
44345exec 6>&1
44346
44347# Open the log real soon, to keep \$[0] and so on meaningful, and to
44348# report actual input values of CONFIG_FILES etc. instead of their
44349# values after options handling. Logging --version etc. is OK.
44350exec 5>>config.log
44351{
44352 echo
44353 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44354## Running $as_me. ##
44355_ASBOX
44356} >&5
44357cat >&5 <<_CSEOF
44358
e0d84535 44359This file was extended by wxWidgets $as_me 2.6.0, which was
ac1cb8d3 44360generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
44361
44362 CONFIG_FILES = $CONFIG_FILES
44363 CONFIG_HEADERS = $CONFIG_HEADERS
44364 CONFIG_LINKS = $CONFIG_LINKS
44365 CONFIG_COMMANDS = $CONFIG_COMMANDS
44366 $ $0 $@
44367
44368_CSEOF
44369echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
44370echo >&5
44371_ACEOF
44372
44373# Files that config.status was made for.
44374if test -n "$ac_config_files"; then
44375 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
44376fi
44377
44378if test -n "$ac_config_headers"; then
44379 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
44380fi
44381
44382if test -n "$ac_config_links"; then
44383 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
44384fi
44385
44386if test -n "$ac_config_commands"; then
44387 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
44388fi
44389
44390cat >>$CONFIG_STATUS <<\_ACEOF
44391
44392ac_cs_usage="\
44393\`$as_me' instantiates files from templates according to the
44394current configuration.
44395
44396Usage: $0 [OPTIONS] [FILE]...
44397
44398 -h, --help print this help, then exit
44399 -V, --version print version number, then exit
44400 -q, --quiet do not print progress messages
44401 -d, --debug don't remove temporary files
44402 --recheck update $as_me by reconfiguring in the same conditions
44403 --file=FILE[:TEMPLATE]
ac1cb8d3 44404 instantiate the configuration file FILE
a848cd7e 44405 --header=FILE[:TEMPLATE]
ac1cb8d3 44406 instantiate the configuration header FILE
a848cd7e
SC
44407
44408Configuration files:
44409$config_files
44410
44411Configuration headers:
44412$config_headers
44413
44414Configuration commands:
44415$config_commands
44416
44417Report bugs to <bug-autoconf@gnu.org>."
44418_ACEOF
44419
44420cat >>$CONFIG_STATUS <<_ACEOF
44421ac_cs_version="\\
e0d84535 44422wxWidgets config.status 2.6.0
ac1cb8d3 44423configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
44424 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
44425
ac1cb8d3 44426Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
44427This config.status script is free software; the Free Software Foundation
44428gives unlimited permission to copy, distribute and modify it."
44429srcdir=$srcdir
44430INSTALL="$INSTALL"
44431_ACEOF
44432
44433cat >>$CONFIG_STATUS <<\_ACEOF
44434# If no file are specified by the user, then we need to provide default
44435# value. By we need to know if files were specified by the user.
44436ac_need_defaults=:
44437while test $# != 0
44438do
44439 case $1 in
44440 --*=*)
44441 ac_option=`expr "x$1" : 'x\([^=]*\)='`
44442 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
44443 ac_shift=:
44444 ;;
44445 -*)
44446 ac_option=$1
44447 ac_optarg=$2
44448 ac_shift=shift
44449 ;;
44450 *) # This is not an option, so the user has probably given explicit
44451 # arguments.
44452 ac_option=$1
44453 ac_need_defaults=false;;
44454 esac
44455
44456 case $ac_option in
44457 # Handling of the options.
44458_ACEOF
44459cat >>$CONFIG_STATUS <<\_ACEOF
44460 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44461 ac_cs_recheck=: ;;
44462 --version | --vers* | -V )
44463 echo "$ac_cs_version"; exit 0 ;;
44464 --he | --h)
44465 # Conflict between --help and --header
44466 { { echo "$as_me:$LINENO: error: ambiguous option: $1
44467Try \`$0 --help' for more information." >&5
44468echo "$as_me: error: ambiguous option: $1
44469Try \`$0 --help' for more information." >&2;}
44470 { (exit 1); exit 1; }; };;
44471 --help | --hel | -h )
44472 echo "$ac_cs_usage"; exit 0 ;;
44473 --debug | --d* | -d )
44474 debug=: ;;
44475 --file | --fil | --fi | --f )
44476 $ac_shift
44477 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44478 ac_need_defaults=false;;
44479 --header | --heade | --head | --hea )
44480 $ac_shift
44481 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44482 ac_need_defaults=false;;
44483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44484 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44485 ac_cs_silent=: ;;
44486
44487 # This is an error.
44488 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44489Try \`$0 --help' for more information." >&5
44490echo "$as_me: error: unrecognized option: $1
44491Try \`$0 --help' for more information." >&2;}
44492 { (exit 1); exit 1; }; } ;;
44493
44494 *) ac_config_targets="$ac_config_targets $1" ;;
44495
44496 esac
44497 shift
44498done
44499
44500ac_configure_extra_args=
44501
44502if $ac_cs_silent; then
44503 exec 6>/dev/null
44504 ac_configure_extra_args="$ac_configure_extra_args --silent"
44505fi
44506
44507_ACEOF
44508cat >>$CONFIG_STATUS <<_ACEOF
44509if \$ac_cs_recheck; then
44510 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44511 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44512fi
44513
44514_ACEOF
44515
44516cat >>$CONFIG_STATUS <<_ACEOF
44517#
44518# INIT-COMMANDS section.
44519#
44520
ceec2216
RL
44521 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44522 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44523 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44524 LN_S="${LN_S}"
a848cd7e
SC
44525
44526
44527_ACEOF
44528
44529
44530
44531cat >>$CONFIG_STATUS <<\_ACEOF
44532for ac_config_target in $ac_config_targets
44533do
44534 case "$ac_config_target" in
44535 # Handling of arguments.
ceec2216
RL
44536 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44537 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
44538 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44539 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44540 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
44541 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44542 "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
44543 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44544echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44545 { (exit 1); exit 1; }; };;
44546 esac
44547done
44548
44549# If the user did not use the arguments to specify the items to instantiate,
44550# then the envvar interface is used. Set only those that are not.
44551# We use the long form for the default assignment because of an extremely
44552# bizarre bug on SunOS 4.1.3.
44553if $ac_need_defaults; then
44554 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44555 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44556 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44557fi
44558
44559# Have a temporary directory for convenience. Make it in the build tree
44560# simply because there is no reason to put it here, and in addition,
44561# creating and moving files from /tmp can sometimes cause problems.
44562# Create a temporary directory, and hook for its removal unless debugging.
44563$debug ||
44564{
44565 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44566 trap '{ (exit 1); exit 1; }' 1 2 13 15
44567}
44568
44569# Create a (secure) tmp directory for tmp files.
44570
44571{
44572 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44573 test -n "$tmp" && test -d "$tmp"
44574} ||
44575{
44576 tmp=./confstat$$-$RANDOM
44577 (umask 077 && mkdir $tmp)
44578} ||
44579{
44580 echo "$me: cannot create a temporary directory in ." >&2
44581 { (exit 1); exit 1; }
44582}
44583
44584_ACEOF
44585
44586cat >>$CONFIG_STATUS <<_ACEOF
44587
44588#
44589# CONFIG_FILES section.
44590#
44591
44592# No need to generate the scripts if there are no CONFIG_FILES.
44593# This happens for instance when ./config.status config.h
44594if test -n "\$CONFIG_FILES"; then
44595 # Protect against being on the right side of a sed subst in config.status.
44596 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44597 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44598s,@SHELL@,$SHELL,;t t
44599s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44600s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44601s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44602s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44603s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44604s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44605s,@exec_prefix@,$exec_prefix,;t t
44606s,@prefix@,$prefix,;t t
44607s,@program_transform_name@,$program_transform_name,;t t
44608s,@bindir@,$bindir,;t t
44609s,@sbindir@,$sbindir,;t t
44610s,@libexecdir@,$libexecdir,;t t
44611s,@datadir@,$datadir,;t t
44612s,@sysconfdir@,$sysconfdir,;t t
44613s,@sharedstatedir@,$sharedstatedir,;t t
44614s,@localstatedir@,$localstatedir,;t t
44615s,@libdir@,$libdir,;t t
44616s,@includedir@,$includedir,;t t
44617s,@oldincludedir@,$oldincludedir,;t t
44618s,@infodir@,$infodir,;t t
44619s,@mandir@,$mandir,;t t
44620s,@build_alias@,$build_alias,;t t
44621s,@host_alias@,$host_alias,;t t
44622s,@target_alias@,$target_alias,;t t
44623s,@DEFS@,$DEFS,;t t
44624s,@ECHO_C@,$ECHO_C,;t t
44625s,@ECHO_N@,$ECHO_N,;t t
44626s,@ECHO_T@,$ECHO_T,;t t
44627s,@LIBS@,$LIBS,;t t
44628s,@build@,$build,;t t
44629s,@build_cpu@,$build_cpu,;t t
44630s,@build_vendor@,$build_vendor,;t t
44631s,@build_os@,$build_os,;t t
44632s,@host@,$host,;t t
44633s,@host_cpu@,$host_cpu,;t t
44634s,@host_vendor@,$host_vendor,;t t
44635s,@host_os@,$host_os,;t t
44636s,@target@,$target,;t t
44637s,@target_cpu@,$target_cpu,;t t
44638s,@target_vendor@,$target_vendor,;t t
44639s,@target_os@,$target_os,;t t
44640s,@CC@,$CC,;t t
44641s,@CFLAGS@,$CFLAGS,;t t
44642s,@LDFLAGS@,$LDFLAGS,;t t
44643s,@CPPFLAGS@,$CPPFLAGS,;t t
44644s,@ac_ct_CC@,$ac_ct_CC,;t t
44645s,@EXEEXT@,$EXEEXT,;t t
44646s,@OBJEXT@,$OBJEXT,;t t
44647s,@CPP@,$CPP,;t t
44648s,@EGREP@,$EGREP,;t t
44649s,@CXX@,$CXX,;t t
44650s,@CXXFLAGS@,$CXXFLAGS,;t t
44651s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44652s,@RANLIB@,$RANLIB,;t t
44653s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44654s,@AR@,$AR,;t t
44655s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44656s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44657s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44658s,@STRIP@,$STRIP,;t t
44659s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44660s,@LN_S@,$LN_S,;t t
44661s,@CXXCPP@,$CXXCPP,;t t
44662s,@subdirs@,$subdirs,;t t
44663s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44664s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44665s,@GTK_LIBS@,$GTK_LIBS,;t t
44666s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
44667s,@X_CFLAGS@,$X_CFLAGS,;t t
44668s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44669s,@X_LIBS@,$X_LIBS,;t t
44670s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44671s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44672s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
44673s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44674s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
44675s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44676s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44677s,@RESCOMP@,$RESCOMP,;t t
44678s,@DEREZ@,$DEREZ,;t t
44679s,@SETFILE@,$SETFILE,;t t
44680s,@LIBICONV@,$LIBICONV,;t t
44681s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44682s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44683s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44684s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
44685s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44686s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
44687s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44688s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44689s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
44690s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44691s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44692s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44693s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44694s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44695s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44696s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44697s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44698s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44699s,@VENDOR@,$VENDOR,;t t
44700s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
44701s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44702s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
44703s,@WXUNIV@,$WXUNIV,;t t
44704s,@MONOLITHIC@,$MONOLITHIC,;t t
44705s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44706s,@EXTRALIBS@,$EXTRALIBS,;t t
44707s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44708s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44709s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44710s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44711s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44712s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44713s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 44714s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
44715s,@UNICODE@,$UNICODE,;t t
44716s,@BUILD@,$BUILD,;t t
44717s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44718s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
44719s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44720s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44721s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44722s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44723s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44724s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44725s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44726s,@SET_MAKE@,$SET_MAKE,;t t
44727s,@MAKE_SET@,$MAKE_SET,;t t
44728s,@ac_ct_AR@,$ac_ct_AR,;t t
44729s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44730s,@NM@,$NM,;t t
44731s,@ac_ct_NM@,$ac_ct_NM,;t t
44732s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44733s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44734s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44735s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44736s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44737s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 44738s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
44739s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44740s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 44741s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
44742s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44743s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44744s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44745s,@LIBPREFIX@,$LIBPREFIX,;t t
44746s,@LIBEXT@,$LIBEXT,;t t
44747s,@DLLPREFIX@,$DLLPREFIX,;t t
44748s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44749s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44750s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44751s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44752s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44753s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44754s,@PIC_FLAG@,$PIC_FLAG,;t t
44755s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44756s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44757s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44758s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44759s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44760s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44761s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44762s,@GCC_PCH@,$GCC_PCH,;t t
44763s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
44764s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
44765s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
44766s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
44767s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
44768s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
44769s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
44770s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
44771s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
44772s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
44773s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
44774s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
44775s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
44776s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
44777s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
44778s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
44779s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
44780s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 44781s,@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 44782s,@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 44783s,@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 44784s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 44785s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44786s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
44787s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 44788s,@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 44789s,@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 44790s,@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 44791s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 44792s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
44793s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
44794s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
44795s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
44796s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
44797s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
44798s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
44799s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
44800s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 44801s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
44802s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
44803s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
44804s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 44805s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 44806s,@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
44807s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
44808s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
44809s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
44810s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 44811s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e 44812s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 44813s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
44814s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
44815s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
44816s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
44817s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
44818s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
44819s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
44820s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
44821s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
44822s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
44823s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
44824s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
44825s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
44826s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44827s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44828s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
52ada004 44829s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44830s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
44831s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
44832s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
44833s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
44834s,@COND_SHARED_1@,$COND_SHARED_1,;t t
44835s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
52ada004 44836s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 44837s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 44838s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 44839s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
44840s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
44841s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
44842s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
44843s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
44844s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
44845s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
44846s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
44847s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
44848s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
44849s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
44850s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
44851s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
44852s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
44853s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
44854s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
44855s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
44856s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
44857s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
44858s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
44859s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
44860s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
44861s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
44862s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
44863s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
44864s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
44865s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
44866s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
44867s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
44868s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
44869s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
44870s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44871s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44872s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 44873s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 44874s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 44875s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
44876s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
44877s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e
SC
44878s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
44879s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
44880s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
44881s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
44882s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
44883s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 44884s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 44885s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 44886s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
44887s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
44888s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
44889s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
44890s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
44891s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
44892s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
44893s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
44894s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 44895s,@SHARED@,$SHARED,;t t
a848cd7e
SC
44896s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
44897s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
44898s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
44899s,@USE_GUI@,$USE_GUI,;t t
44900s,@AFMINSTALL@,$AFMINSTALL,;t t
44901s,@WIN32INSTALL@,$WIN32INSTALL,;t t
44902s,@TOOLKIT@,$TOOLKIT,;t t
44903s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 44904s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 44905s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
44906s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
44907s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 44908s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
44909s,@WIDGET_SET@,$WIDGET_SET,;t t
44910s,@WX_RELEASE@,$WX_RELEASE,;t t
44911s,@WX_VERSION@,$WX_VERSION,;t t
44912s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
44913s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
44914s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 44915s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
44916s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
44917s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
44918s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
44919s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 44920s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
44921s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
44922s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 44923s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 44924s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
44925s,@DISTDIR@,$DISTDIR,;t t
44926s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
44927s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
44928s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
44929s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
44930s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
44931s,@RESFLAGS@,$RESFLAGS,;t t
44932s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
44933s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
44934s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
44935s,@LIBWXMACRES@,$LIBWXMACRES,;t t
44936s,@MACRESCOMP@,$MACRESCOMP,;t t
44937s,@MACSETFILE@,$MACSETFILE,;t t
44938s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
44939s,@GCC@,$GCC,;t t
a848cd7e 44940s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
44941s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
44942s,@LIBOBJS@,$LIBOBJS,;t t
44943s,@LTLIBOBJS@,$LTLIBOBJS,;t t
44944CEOF
44945
44946_ACEOF
44947
44948 cat >>$CONFIG_STATUS <<\_ACEOF
44949 # Split the substitutions into bite-sized pieces for seds with
44950 # small command number limits, like on Digital OSF/1 and HP-UX.
44951 ac_max_sed_lines=48
44952 ac_sed_frag=1 # Number of current file.
44953 ac_beg=1 # First line for current file.
44954 ac_end=$ac_max_sed_lines # Line after last line for current file.
44955 ac_more_lines=:
44956 ac_sed_cmds=
44957 while $ac_more_lines; do
44958 if test $ac_beg -gt 1; then
44959 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44960 else
44961 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44962 fi
44963 if test ! -s $tmp/subs.frag; then
44964 ac_more_lines=false
44965 else
44966 # The purpose of the label and of the branching condition is to
44967 # speed up the sed processing (if there are no `@' at all, there
44968 # is no need to browse any of the substitutions).
44969 # These are the two extra sed commands mentioned above.
44970 (echo ':t
44971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44972 if test -z "$ac_sed_cmds"; then
ac1cb8d3 44973 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 44974 else
ac1cb8d3 44975 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
44976 fi
44977 ac_sed_frag=`expr $ac_sed_frag + 1`
44978 ac_beg=$ac_end
44979 ac_end=`expr $ac_end + $ac_max_sed_lines`
44980 fi
44981 done
44982 if test -z "$ac_sed_cmds"; then
44983 ac_sed_cmds=cat
44984 fi
44985fi # test -n "$CONFIG_FILES"
44986
44987_ACEOF
44988cat >>$CONFIG_STATUS <<\_ACEOF
44989for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
44990 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44991 case $ac_file in
44992 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44993 cat >$tmp/stdin
44994 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44995 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44996 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44997 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44998 * ) ac_file_in=$ac_file.in ;;
44999 esac
45000
45001 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45002 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45003$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45004 X"$ac_file" : 'X\(//\)[^/]' \| \
45005 X"$ac_file" : 'X\(//\)$' \| \
45006 X"$ac_file" : 'X\(/\)' \| \
45007 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45008echo X"$ac_file" |
45009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45010 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45011 /^X\(\/\/\)$/{ s//\1/; q; }
45012 /^X\(\/\).*/{ s//\1/; q; }
45013 s/.*/./; q'`
45014 { if $as_mkdir_p; then
45015 mkdir -p "$ac_dir"
45016 else
45017 as_dir="$ac_dir"
45018 as_dirs=
45019 while test ! -d "$as_dir"; do
45020 as_dirs="$as_dir $as_dirs"
45021 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45022$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45023 X"$as_dir" : 'X\(//\)[^/]' \| \
45024 X"$as_dir" : 'X\(//\)$' \| \
45025 X"$as_dir" : 'X\(/\)' \| \
45026 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45027echo X"$as_dir" |
45028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45029 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45030 /^X\(\/\/\)$/{ s//\1/; q; }
45031 /^X\(\/\).*/{ s//\1/; q; }
45032 s/.*/./; q'`
45033 done
45034 test ! -n "$as_dirs" || mkdir $as_dirs
45035 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45036echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45037 { (exit 1); exit 1; }; }; }
45038
45039 ac_builddir=.
45040
45041if test "$ac_dir" != .; then
45042 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45043 # A "../" for each directory in $ac_dir_suffix.
45044 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45045else
45046 ac_dir_suffix= ac_top_builddir=
45047fi
45048
45049case $srcdir in
45050 .) # No --srcdir option. We are building in place.
45051 ac_srcdir=.
45052 if test -z "$ac_top_builddir"; then
45053 ac_top_srcdir=.
45054 else
45055 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45056 fi ;;
45057 [\\/]* | ?:[\\/]* ) # Absolute path.
45058 ac_srcdir=$srcdir$ac_dir_suffix;
45059 ac_top_srcdir=$srcdir ;;
45060 *) # Relative path.
45061 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45062 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45063esac
ac1cb8d3
VS
45064
45065# Do not use `cd foo && pwd` to compute absolute paths, because
45066# the directories may not exist.
45067case `pwd` in
45068.) ac_abs_builddir="$ac_dir";;
45069*)
45070 case "$ac_dir" in
45071 .) ac_abs_builddir=`pwd`;;
45072 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45073 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45074 esac;;
45075esac
45076case $ac_abs_builddir in
45077.) ac_abs_top_builddir=${ac_top_builddir}.;;
45078*)
45079 case ${ac_top_builddir}. in
45080 .) ac_abs_top_builddir=$ac_abs_builddir;;
45081 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45082 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45083 esac;;
45084esac
45085case $ac_abs_builddir in
45086.) ac_abs_srcdir=$ac_srcdir;;
45087*)
45088 case $ac_srcdir in
45089 .) ac_abs_srcdir=$ac_abs_builddir;;
45090 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45091 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45092 esac;;
45093esac
45094case $ac_abs_builddir in
45095.) ac_abs_top_srcdir=$ac_top_srcdir;;
45096*)
45097 case $ac_top_srcdir in
45098 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45099 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45100 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45101 esac;;
45102esac
a848cd7e
SC
45103
45104
45105 case $INSTALL in
45106 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45107 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45108 esac
45109
a848cd7e
SC
45110 # Let's still pretend it is `configure' which instantiates (i.e., don't
45111 # use $as_me), people would be surprised to read:
45112 # /* config.h. Generated by config.status. */
45113 if test x"$ac_file" = x-; then
45114 configure_input=
45115 else
45116 configure_input="$ac_file. "
45117 fi
45118 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 45119 sed 's,.*/,,'` by configure."
a848cd7e
SC
45120
45121 # First look for the input files in the build tree, otherwise in the
45122 # src tree.
45123 ac_file_inputs=`IFS=:
45124 for f in $ac_file_in; do
45125 case $f in
45126 -) echo $tmp/stdin ;;
45127 [\\/$]*)
ac1cb8d3
VS
45128 # Absolute (can't be DOS-style, as IFS=:)
45129 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45130echo "$as_me: error: cannot find input file: $f" >&2;}
45131 { (exit 1); exit 1; }; }
ac1cb8d3 45132 echo "$f";;
a848cd7e 45133 *) # Relative
ac1cb8d3
VS
45134 if test -f "$f"; then
45135 # Build tree
45136 echo "$f"
45137 elif test -f "$srcdir/$f"; then
45138 # Source tree
45139 echo "$srcdir/$f"
45140 else
45141 # /dev/null tree
45142 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45143echo "$as_me: error: cannot find input file: $f" >&2;}
45144 { (exit 1); exit 1; }; }
ac1cb8d3 45145 fi;;
a848cd7e
SC
45146 esac
45147 done` || { (exit 1); exit 1; }
9dd0f6c2
DE
45148
45149 if test x"$ac_file" != x-; then
45150 { echo "$as_me:$LINENO: creating $ac_file" >&5
45151echo "$as_me: creating $ac_file" >&6;}
45152 rm -f "$ac_file"
45153 fi
a848cd7e
SC
45154_ACEOF
45155cat >>$CONFIG_STATUS <<_ACEOF
45156 sed "$ac_vpsub
45157$extrasub
45158_ACEOF
45159cat >>$CONFIG_STATUS <<\_ACEOF
45160:t
45161/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45162s,@configure_input@,$configure_input,;t t
45163s,@srcdir@,$ac_srcdir,;t t
45164s,@abs_srcdir@,$ac_abs_srcdir,;t t
45165s,@top_srcdir@,$ac_top_srcdir,;t t
45166s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45167s,@builddir@,$ac_builddir,;t t
45168s,@abs_builddir@,$ac_abs_builddir,;t t
45169s,@top_builddir@,$ac_top_builddir,;t t
45170s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45171s,@INSTALL@,$ac_INSTALL,;t t
45172" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45173 rm -f $tmp/stdin
45174 if test x"$ac_file" != x-; then
45175 mv $tmp/out $ac_file
45176 else
45177 cat $tmp/out
45178 rm -f $tmp/out
45179 fi
45180
ceec2216
RL
45181 # Run the commands associated with the file.
45182 case $ac_file in
45183 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
45184 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
45185 esac
a848cd7e
SC
45186done
45187_ACEOF
45188cat >>$CONFIG_STATUS <<\_ACEOF
45189
45190#
45191# CONFIG_HEADER section.
45192#
45193
45194# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45195# NAME is the cpp macro being defined and VALUE is the value it is being given.
45196#
45197# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
45198ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45199ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
45200ac_dC=' '
45201ac_dD=',;t'
45202# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 45203ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
45204ac_uB='$,\1#\2define\3'
45205ac_uC=' '
45206ac_uD=',;t'
45207
45208for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45209 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45210 case $ac_file in
45211 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45212 cat >$tmp/stdin
45213 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45214 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45215 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45216 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45217 * ) ac_file_in=$ac_file.in ;;
45218 esac
45219
45220 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45221echo "$as_me: creating $ac_file" >&6;}
45222
45223 # First look for the input files in the build tree, otherwise in the
45224 # src tree.
45225 ac_file_inputs=`IFS=:
45226 for f in $ac_file_in; do
45227 case $f in
45228 -) echo $tmp/stdin ;;
45229 [\\/$]*)
ac1cb8d3
VS
45230 # Absolute (can't be DOS-style, as IFS=:)
45231 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45232echo "$as_me: error: cannot find input file: $f" >&2;}
45233 { (exit 1); exit 1; }; }
ac1cb8d3
VS
45234 # Do quote $f, to prevent DOS paths from being IFS'd.
45235 echo "$f";;
a848cd7e 45236 *) # Relative
ac1cb8d3
VS
45237 if test -f "$f"; then
45238 # Build tree
45239 echo "$f"
45240 elif test -f "$srcdir/$f"; then
45241 # Source tree
45242 echo "$srcdir/$f"
45243 else
45244 # /dev/null tree
45245 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45246echo "$as_me: error: cannot find input file: $f" >&2;}
45247 { (exit 1); exit 1; }; }
ac1cb8d3 45248 fi;;
a848cd7e
SC
45249 esac
45250 done` || { (exit 1); exit 1; }
45251 # Remove the trailing spaces.
ac1cb8d3 45252 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
45253
45254_ACEOF
45255
45256# Transform confdefs.h into two sed scripts, `conftest.defines' and
45257# `conftest.undefs', that substitutes the proper values into
45258# config.h.in to produce config.h. The first handles `#define'
45259# templates, and the second `#undef' templates.
45260# And first: Protect against being on the right side of a sed subst in
45261# config.status. Protect against being in an unquoted here document
45262# in config.status.
45263rm -f conftest.defines conftest.undefs
45264# Using a here document instead of a string reduces the quoting nightmare.
45265# Putting comments in sed scripts is not portable.
45266#
45267# `end' is used to avoid that the second main sed command (meant for
45268# 0-ary CPP macros) applies to n-ary macro definitions.
45269# See the Autoconf documentation for `clear'.
45270cat >confdef2sed.sed <<\_ACEOF
45271s/[\\&,]/\\&/g
45272s,[\\$`],\\&,g
45273t clear
45274: clear
ac1cb8d3 45275s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 45276t end
ac1cb8d3 45277s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
45278: end
45279_ACEOF
45280# If some macros were called several times there might be several times
45281# the same #defines, which is useless. Nevertheless, we may not want to
45282# sort them, since we want the *last* AC-DEFINE to be honored.
45283uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45284sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45285rm -f confdef2sed.sed
45286
45287# This sed command replaces #undef with comments. This is necessary, for
45288# example, in the case of _POSIX_SOURCE, which is predefined and required
45289# on some systems where configure will not decide to define it.
45290cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 45291s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
45292_ACEOF
45293
45294# Break up conftest.defines because some shells have a limit on the size
45295# of here documents, and old seds have small limits too (100 cmds).
45296echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 45297echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
45298echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45299echo ' :' >>$CONFIG_STATUS
45300rm -f conftest.tail
45301while grep . conftest.defines >/dev/null
45302do
45303 # Write a limited-size here document to $tmp/defines.sed.
45304 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45305 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 45306 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
45307 # Work around the forget-to-reset-the-flag bug.
45308 echo 't clr' >>$CONFIG_STATUS
45309 echo ': clr' >>$CONFIG_STATUS
45310 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45311 echo 'CEOF
45312 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45313 rm -f $tmp/in
45314 mv $tmp/out $tmp/in
45315' >>$CONFIG_STATUS
45316 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45317 rm -f conftest.defines
45318 mv conftest.tail conftest.defines
45319done
45320rm -f conftest.defines
45321echo ' fi # grep' >>$CONFIG_STATUS
45322echo >>$CONFIG_STATUS
45323
45324# Break up conftest.undefs because some shells have a limit on the size
45325# of here documents, and old seds have small limits too (100 cmds).
45326echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
45327rm -f conftest.tail
45328while grep . conftest.undefs >/dev/null
45329do
45330 # Write a limited-size here document to $tmp/undefs.sed.
45331 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45332 # Speed up: don't consider the non `#undef'
ac1cb8d3 45333 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
45334 # Work around the forget-to-reset-the-flag bug.
45335 echo 't clr' >>$CONFIG_STATUS
45336 echo ': clr' >>$CONFIG_STATUS
45337 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45338 echo 'CEOF
45339 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45340 rm -f $tmp/in
45341 mv $tmp/out $tmp/in
45342' >>$CONFIG_STATUS
45343 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45344 rm -f conftest.undefs
45345 mv conftest.tail conftest.undefs
45346done
45347rm -f conftest.undefs
45348
45349cat >>$CONFIG_STATUS <<\_ACEOF
45350 # Let's still pretend it is `configure' which instantiates (i.e., don't
45351 # use $as_me), people would be surprised to read:
45352 # /* config.h. Generated by config.status. */
45353 if test x"$ac_file" = x-; then
45354 echo "/* Generated by configure. */" >$tmp/config.h
45355 else
45356 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
45357 fi
45358 cat $tmp/in >>$tmp/config.h
45359 rm -f $tmp/in
45360 if test x"$ac_file" != x-; then
45361 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45362 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45363echo "$as_me: $ac_file is unchanged" >&6;}
45364 else
45365 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45366$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45367 X"$ac_file" : 'X\(//\)[^/]' \| \
45368 X"$ac_file" : 'X\(//\)$' \| \
45369 X"$ac_file" : 'X\(/\)' \| \
45370 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45371echo X"$ac_file" |
45372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45373 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45374 /^X\(\/\/\)$/{ s//\1/; q; }
45375 /^X\(\/\).*/{ s//\1/; q; }
45376 s/.*/./; q'`
45377 { if $as_mkdir_p; then
45378 mkdir -p "$ac_dir"
45379 else
45380 as_dir="$ac_dir"
45381 as_dirs=
45382 while test ! -d "$as_dir"; do
45383 as_dirs="$as_dir $as_dirs"
45384 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45385$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45386 X"$as_dir" : 'X\(//\)[^/]' \| \
45387 X"$as_dir" : 'X\(//\)$' \| \
45388 X"$as_dir" : 'X\(/\)' \| \
45389 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45390echo X"$as_dir" |
45391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45392 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45393 /^X\(\/\/\)$/{ s//\1/; q; }
45394 /^X\(\/\).*/{ s//\1/; q; }
45395 s/.*/./; q'`
45396 done
45397 test ! -n "$as_dirs" || mkdir $as_dirs
45398 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45399echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45400 { (exit 1); exit 1; }; }; }
45401
45402 rm -f $ac_file
45403 mv $tmp/config.h $ac_file
45404 fi
45405 else
45406 cat $tmp/config.h
45407 rm -f $tmp/config.h
45408 fi
45409done
45410_ACEOF
45411cat >>$CONFIG_STATUS <<\_ACEOF
45412
45413#
45414# CONFIG_COMMANDS section.
45415#
45416for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
45417 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
45418 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
45419 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
45420$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45421 X"$ac_dest" : 'X\(//\)[^/]' \| \
45422 X"$ac_dest" : 'X\(//\)$' \| \
45423 X"$ac_dest" : 'X\(/\)' \| \
45424 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45425echo X"$ac_dest" |
45426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45427 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45428 /^X\(\/\/\)$/{ s//\1/; q; }
45429 /^X\(\/\).*/{ s//\1/; q; }
45430 s/.*/./; q'`
ac1cb8d3
VS
45431 { if $as_mkdir_p; then
45432 mkdir -p "$ac_dir"
45433 else
45434 as_dir="$ac_dir"
45435 as_dirs=
45436 while test ! -d "$as_dir"; do
45437 as_dirs="$as_dir $as_dirs"
45438 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45439$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45440 X"$as_dir" : 'X\(//\)[^/]' \| \
45441 X"$as_dir" : 'X\(//\)$' \| \
45442 X"$as_dir" : 'X\(/\)' \| \
45443 . : '\(.\)' 2>/dev/null ||
45444echo X"$as_dir" |
45445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45446 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45447 /^X\(\/\/\)$/{ s//\1/; q; }
45448 /^X\(\/\).*/{ s//\1/; q; }
45449 s/.*/./; q'`
45450 done
45451 test ! -n "$as_dirs" || mkdir $as_dirs
45452 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45453echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45454 { (exit 1); exit 1; }; }; }
45455
a848cd7e
SC
45456 ac_builddir=.
45457
45458if test "$ac_dir" != .; then
45459 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45460 # A "../" for each directory in $ac_dir_suffix.
45461 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45462else
45463 ac_dir_suffix= ac_top_builddir=
45464fi
45465
45466case $srcdir in
45467 .) # No --srcdir option. We are building in place.
45468 ac_srcdir=.
45469 if test -z "$ac_top_builddir"; then
45470 ac_top_srcdir=.
45471 else
45472 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45473 fi ;;
45474 [\\/]* | ?:[\\/]* ) # Absolute path.
45475 ac_srcdir=$srcdir$ac_dir_suffix;
45476 ac_top_srcdir=$srcdir ;;
45477 *) # Relative path.
45478 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45479 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45480esac
ac1cb8d3
VS
45481
45482# Do not use `cd foo && pwd` to compute absolute paths, because
45483# the directories may not exist.
45484case `pwd` in
45485.) ac_abs_builddir="$ac_dir";;
45486*)
45487 case "$ac_dir" in
45488 .) ac_abs_builddir=`pwd`;;
45489 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45490 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45491 esac;;
45492esac
45493case $ac_abs_builddir in
45494.) ac_abs_top_builddir=${ac_top_builddir}.;;
45495*)
45496 case ${ac_top_builddir}. in
45497 .) ac_abs_top_builddir=$ac_abs_builddir;;
45498 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45499 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45500 esac;;
45501esac
45502case $ac_abs_builddir in
45503.) ac_abs_srcdir=$ac_srcdir;;
45504*)
45505 case $ac_srcdir in
45506 .) ac_abs_srcdir=$ac_abs_builddir;;
45507 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45508 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45509 esac;;
45510esac
45511case $ac_abs_builddir in
45512.) ac_abs_top_srcdir=$ac_top_srcdir;;
45513*)
45514 case $ac_top_srcdir in
45515 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45516 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45517 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45518 esac;;
45519esac
a848cd7e
SC
45520
45521
45522 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45523echo "$as_me: executing $ac_dest commands" >&6;}
45524 case $ac_dest in
ceec2216
RL
45525 wx-config ) rm -f wx-config
45526 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45527 ;;
a848cd7e
SC
45528 esac
45529done
45530_ACEOF
45531
45532cat >>$CONFIG_STATUS <<\_ACEOF
45533
45534{ (exit 0); exit 0; }
45535_ACEOF
45536chmod +x $CONFIG_STATUS
45537ac_clean_files=$ac_clean_files_save
45538
45539
45540# configure is writing to config.log, and then calls config.status.
45541# config.status does its own redirection, appending to config.log.
45542# Unfortunately, on DOS this fails, as config.log is still kept open
45543# by configure, so config.status won't be able to write to it; its
45544# output is simply discarded. So we exec the FD to /dev/null,
45545# effectively closing config.log, so it can be properly (re)opened and
45546# appended to by config.status. When coming back to configure, we
45547# need to make the FD available again.
45548if test "$no_create" != yes; then
45549 ac_cs_success=:
45550 ac_config_status_args=
45551 test "$silent" = yes &&
45552 ac_config_status_args="$ac_config_status_args --quiet"
45553 exec 5>/dev/null
45554 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45555 exec 5>>config.log
45556 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45557 # would make configure fail if this is the last instruction.
45558 $ac_cs_success || { (exit 1); exit 1; }
45559fi
45560
45561#
45562# CONFIG_SUBDIRS section.
45563#
45564if test "$no_recursion" != yes; then
45565
45566 # Remove --cache-file and --srcdir arguments so they do not pile up.
45567 ac_sub_configure_args=
45568 ac_prev=
45569 for ac_arg in $ac_configure_args; do
45570 if test -n "$ac_prev"; then
45571 ac_prev=
45572 continue
45573 fi
45574 case $ac_arg in
45575 -cache-file | --cache-file | --cache-fil | --cache-fi \
45576 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45577 ac_prev=cache_file ;;
45578 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45579 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45580 | --c=*)
45581 ;;
45582 --config-cache | -C)
45583 ;;
45584 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45585 ac_prev=srcdir ;;
45586 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45587 ;;
45588 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45589 ac_prev=prefix ;;
45590 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45591 ;;
45592 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45593 esac
45594 done
45595
45596 # Always prepend --prefix to ensure using the same prefix
45597 # in subdir configurations.
45598 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45599
45600 ac_popdir=`pwd`
45601 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45602
45603 # Do not complain, so a configure script can configure whichever
45604 # parts of a large source tree are present.
45605 test -d $srcdir/$ac_dir || continue
45606
45607 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45608echo "$as_me: configuring in $ac_dir" >&6;}
45609 { if $as_mkdir_p; then
45610 mkdir -p "$ac_dir"
45611 else
45612 as_dir="$ac_dir"
45613 as_dirs=
45614 while test ! -d "$as_dir"; do
45615 as_dirs="$as_dir $as_dirs"
45616 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45617$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45618 X"$as_dir" : 'X\(//\)[^/]' \| \
45619 X"$as_dir" : 'X\(//\)$' \| \
45620 X"$as_dir" : 'X\(/\)' \| \
45621 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45622echo X"$as_dir" |
45623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45624 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45625 /^X\(\/\/\)$/{ s//\1/; q; }
45626 /^X\(\/\).*/{ s//\1/; q; }
45627 s/.*/./; q'`
45628 done
45629 test ! -n "$as_dirs" || mkdir $as_dirs
45630 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45631echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45632 { (exit 1); exit 1; }; }; }
45633
45634 ac_builddir=.
45635
45636if test "$ac_dir" != .; then
45637 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45638 # A "../" for each directory in $ac_dir_suffix.
45639 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45640else
45641 ac_dir_suffix= ac_top_builddir=
45642fi
45643
45644case $srcdir in
45645 .) # No --srcdir option. We are building in place.
45646 ac_srcdir=.
45647 if test -z "$ac_top_builddir"; then
45648 ac_top_srcdir=.
45649 else
45650 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45651 fi ;;
45652 [\\/]* | ?:[\\/]* ) # Absolute path.
45653 ac_srcdir=$srcdir$ac_dir_suffix;
45654 ac_top_srcdir=$srcdir ;;
45655 *) # Relative path.
45656 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45657 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45658esac
ac1cb8d3
VS
45659
45660# Do not use `cd foo && pwd` to compute absolute paths, because
45661# the directories may not exist.
45662case `pwd` in
45663.) ac_abs_builddir="$ac_dir";;
45664*)
45665 case "$ac_dir" in
45666 .) ac_abs_builddir=`pwd`;;
45667 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45668 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45669 esac;;
45670esac
45671case $ac_abs_builddir in
45672.) ac_abs_top_builddir=${ac_top_builddir}.;;
45673*)
45674 case ${ac_top_builddir}. in
45675 .) ac_abs_top_builddir=$ac_abs_builddir;;
45676 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45677 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45678 esac;;
45679esac
45680case $ac_abs_builddir in
45681.) ac_abs_srcdir=$ac_srcdir;;
45682*)
45683 case $ac_srcdir in
45684 .) ac_abs_srcdir=$ac_abs_builddir;;
45685 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45686 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45687 esac;;
45688esac
45689case $ac_abs_builddir in
45690.) ac_abs_top_srcdir=$ac_top_srcdir;;
45691*)
45692 case $ac_top_srcdir in
45693 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45694 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45695 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45696 esac;;
45697esac
a848cd7e
SC
45698
45699
45700 cd $ac_dir
45701
45702 # Check for guested configure; otherwise get Cygnus style configure.
45703 if test -f $ac_srcdir/configure.gnu; then
45704 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45705 elif test -f $ac_srcdir/configure; then
45706 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45707 elif test -f $ac_srcdir/configure.in; then
45708 ac_sub_configure=$ac_configure
45709 else
45710 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45711echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45712 ac_sub_configure=
45713 fi
45714
45715 # The recursion is here.
45716 if test -n "$ac_sub_configure"; then
45717 # Make the cache file name correct relative to the subdirectory.
45718 case $cache_file in
45719 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45720 *) # Relative path.
ac1cb8d3 45721 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
45722 esac
45723
45724 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45725echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45726 # The eval makes quoting arguments work.
45727 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
45728 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45729 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
45730echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45731 { (exit 1); exit 1; }; }
45732 fi
45733
9dd0f6c2 45734 cd "$ac_popdir"
a848cd7e
SC
45735 done
45736fi
45737
45738
45739echo
77ffb593 45740echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 45741echo ""
4d4ff94c 45742echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 45743echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 45744
77ffb593
JS
45745echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
45746echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
45747echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 45748
77ffb593
JS
45749echo " What level of wxWidgets compatibility should be enabled?"
45750echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
45751echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 45752
77ffb593 45753echo " Which libraries should wxWidgets use?"
a848cd7e
SC
45754echo " jpeg ${wxUSE_LIBJPEG-none}"
45755echo " png ${wxUSE_LIBPNG-none}"
45756echo " regex ${wxUSE_REGEX}"
45757echo " tiff ${wxUSE_LIBTIFF-none}"
45758if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45759echo " xpm ${wxUSE_LIBXPM-none}"
45760fi
45761echo " zlib ${wxUSE_ZLIB}"
45762echo " odbc ${wxUSE_ODBC}"
45763echo " expat ${wxUSE_EXPAT}"
45764echo " libmspack ${wxUSE_LIBMSPACK}"
45765echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 45766echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
45767
45768echo ""
45769