]> git.saurik.com Git - wxWidgets.git/blame - configure
fix for drawing correct gridlines even on scrolled positions (wxMac)
[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"
52ada004 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_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
1666wx_subrelease_number=0
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
1946 LIBS="$LIBS -lstdc++"
1947 ;;
1948
1949 *-pc-os2_emx | *-pc-os2-emx )
1950 cat >>confdefs.h <<\_ACEOF
1951#define __EMX__ 1
1952_ACEOF
1953
1954 USE_OS2=1
1955 cat >>confdefs.h <<\_ACEOF
1956#define __OS2__ 1
1957_ACEOF
1958
1959 PROGRAM_EXT=".exe"
1960 DEFAULT_DEFAULT_wxUSE_PM=1
1961 CXX=gcc
1962 LDFLAGS="$LDFLAGS -Zcrtdll"
1963 ac_executable_extensions=".exe"
1964 export ac_executable_extensions
1965 ac_save_IFS="$IFS"
1966 IFS='\\'
1967 ac_TEMP_PATH=
1968 for ac_dir in $PATH; do
1969 IFS=$ac_save_IFS
1970 if test -z "$ac_TEMP_PATH"; then
1971 ac_TEMP_PATH="$ac_dir"
1972 else
1973 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1974 fi
1975 done
1976 export PATH="$ac_TEMP_PATH"
1977 unset ac_TEMP_PATH
a03b8b04 1978 DEFAULT_STD_FLAG=no
a848cd7e
SC
1979 ;;
1980
1981 powerpc-*-darwin* )
1982 USE_BSD=1
1983 USE_DARWIN=1
1984 SO_SUFFIX=dylib
1985 cat >>confdefs.h <<\_ACEOF
1986#define __BSD__ 1
1987_ACEOF
1988
1989 cat >>confdefs.h <<\_ACEOF
1990#define __DARWIN__ 1
a848cd7e
SC
1991_ACEOF
1992
1993 cat >>confdefs.h <<\_ACEOF
1994#define TARGET_CARBON 1
1995_ACEOF
1996
1997 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1998 DEFAULT_STD_FLAG=no
a848cd7e 1999 ;;
1e9e8aba
DE
2000 powerpc-apple-macos* )
2001 USE_UNIX=0
2002 ac_cv_c_bigendian=yes
2003 SO_SUFFIX=shlib
2004 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2005 DEFAULT_STD_FLAG=no
1e9e8aba 2006 ;;
a848cd7e
SC
2007
2008 *-*-beos* )
2009 USE_BEOS=1
2010 cat >>confdefs.h <<\_ACEOF
2011#define __BEOS__ 1
2012_ACEOF
2013
2014 ;;
2015
2016 *)
2017 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2018echo "$as_me: error: unknown system type ${host}." >&2;}
2019 { (exit 1); exit 1; }; }
2020esac
2021
2022
2023
2024
2025 wx_arg_cache_file="configarg.cache"
2026 echo "loading argument cache $wx_arg_cache_file"
2027 rm -f ${wx_arg_cache_file}.tmp
2028 touch ${wx_arg_cache_file}.tmp
2029 touch ${wx_arg_cache_file}
2030
2031
2032DEBUG_CONFIGURE=0
2033if test $DEBUG_CONFIGURE = 1; then
2034 DEFAULT_wxUSE_UNIVERSAL=no
2035 DEFAULT_wxUSE_STL=no
2036
2037 DEFAULT_wxUSE_NANOX=no
2038
2039 DEFAULT_wxUSE_THREADS=yes
2040
2041 DEFAULT_wxUSE_SHARED=yes
2042 DEFAULT_wxUSE_OPTIMISE=no
2043 DEFAULT_wxUSE_PROFILE=no
2044 DEFAULT_wxUSE_NO_DEPS=no
2045 DEFAULT_wxUSE_NO_RTTI=no
2046 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2047 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2048 DEFAULT_wxUSE_PERMISSIVE=no
2049 DEFAULT_wxUSE_DEBUG_FLAG=yes
2050 DEFAULT_wxUSE_DEBUG_INFO=yes
2051 DEFAULT_wxUSE_DEBUG_GDB=yes
2052 DEFAULT_wxUSE_MEM_TRACING=no
2053 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2054 DEFAULT_wxUSE_DMALLOC=no
2055 DEFAULT_wxUSE_APPLE_IEEE=no
2056
2057 DEFAULT_wxUSE_EXCEPTIONS=no
2058 DEFAULT_wxUSE_LOG=yes
2059 DEFAULT_wxUSE_LOGWINDOW=no
2060 DEFAULT_wxUSE_LOGGUI=no
2061 DEFAULT_wxUSE_LOGDIALOG=no
2062
2063 DEFAULT_wxUSE_GUI=yes
2064 DEFAULT_wxUSE_CONTROLS=no
2065
2066 DEFAULT_wxUSE_REGEX=no
2067 DEFAULT_wxUSE_XML=no
2068 DEFAULT_wxUSE_EXPAT=no
2069 DEFAULT_wxUSE_ZLIB=no
2070 DEFAULT_wxUSE_LIBPNG=no
2071 DEFAULT_wxUSE_LIBJPEG=no
2072 DEFAULT_wxUSE_LIBTIFF=no
2073 DEFAULT_wxUSE_LIBXPM=no
2074 DEFAULT_wxUSE_LIBMSPACK=no
2075 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2076 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2077 DEFAULT_wxUSE_ODBC=no
2078 DEFAULT_wxUSE_OPENGL=no
2079
2080 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2081 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2082 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2083 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2084 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2085 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2086 DEFAULT_wxUSE_CMDLINE_PARSER=no
2087 DEFAULT_wxUSE_DATETIME=no
2088 DEFAULT_wxUSE_TIMER=no
2089 DEFAULT_wxUSE_STOPWATCH=no
2090 DEFAULT_wxUSE_FILE=no
2091 DEFAULT_wxUSE_FFILE=no
07158944 2092 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2093 DEFAULT_wxUSE_TEXTBUFFER=no
2094 DEFAULT_wxUSE_TEXTFILE=no
2095 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2096 DEFAULT_wxUSE_MEDIACTRL=no
2097 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2098 DEFAULT_wxUSE_INTL=no
2099 DEFAULT_wxUSE_CONFIG=no
2100 DEFAULT_wxUSE_FONTMAP=no
2101 DEFAULT_wxUSE_STREAMS=no
2102 DEFAULT_wxUSE_SOCKETS=no
2103 DEFAULT_wxUSE_OLE=no
2104 DEFAULT_wxUSE_DATAOBJ=no
2105 DEFAULT_wxUSE_DIALUP_MANAGER=no
2106 DEFAULT_wxUSE_JOYSTICK=no
2107 DEFAULT_wxUSE_DYNLIB_CLASS=no
2108 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2109 DEFAULT_wxUSE_LONGLONG=no
2110 DEFAULT_wxUSE_GEOMETRY=no
2111
2112 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2113 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2114 DEFAULT_wxUSE_POSTSCRIPT=no
2115
2116 DEFAULT_wxUSE_CLIPBOARD=no
2117 DEFAULT_wxUSE_TOOLTIPS=no
2118 DEFAULT_wxUSE_DRAG_AND_DROP=no
2119 DEFAULT_wxUSE_DRAGIMAGE=no
2120 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2121 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2122
8a7b1113 2123 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2124 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2125 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2126 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2127
2128 DEFAULT_wxUSE_RESOURCES=no
2129 DEFAULT_wxUSE_CONSTRAINTS=no
2130 DEFAULT_wxUSE_IPC=no
2131 DEFAULT_wxUSE_HELP=no
2132 DEFAULT_wxUSE_MS_HTML_HELP=no
2133 DEFAULT_wxUSE_WXHTML_HELP=no
2134 DEFAULT_wxUSE_TREELAYOUT=no
2135 DEFAULT_wxUSE_METAFILE=no
2136 DEFAULT_wxUSE_MIMETYPE=no
2137 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2138 DEFAULT_wxUSE_PROTOCOL=no
2139 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2140 DEFAULT_wxUSE_PROTOCOL_FTP=no
2141 DEFAULT_wxUSE_PROTOCOL_FILE=no
2142 DEFAULT_wxUSE_URL=no
2143
2144 DEFAULT_wxUSE_COMMONDLGS=no
2145 DEFAULT_wxUSE_CHOICEDLG=no
2146 DEFAULT_wxUSE_COLOURDLG=no
2147 DEFAULT_wxUSE_DIRDLG=no
2148 DEFAULT_wxUSE_FILEDLG=no
2149 DEFAULT_wxUSE_FINDREPLDLG=no
2150 DEFAULT_wxUSE_FONTDLG=no
2151 DEFAULT_wxUSE_MSGDLG=no
2152 DEFAULT_wxUSE_NUMBERDLG=no
2153 DEFAULT_wxUSE_TEXTDLG=no
2154 DEFAULT_wxUSE_SPLASH=no
2155 DEFAULT_wxUSE_STARTUP_TIPS=no
2156 DEFAULT_wxUSE_PROGRESSDLG=no
2157 DEFAULT_wxUSE_WIZARDDLG=no
2158
2159 DEFAULT_wxUSE_MENUS=no
2160 DEFAULT_wxUSE_MINIFRAME=no
2161 DEFAULT_wxUSE_HTML=no
9a8f0513 2162 DEFAULT_wxUSE_XRC=no
646b6ec1 2163 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2164 DEFAULT_wxUSE_FILESYSTEM=no
2165 DEFAULT_wxUSE_FS_INET=no
2166 DEFAULT_wxUSE_FS_ZIP=no
2167 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2168 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2169 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2170 DEFAULT_wxUSE_VALIDATORS=no
2171
2172 DEFAULT_wxUSE_ACCEL=no
2173 DEFAULT_wxUSE_BUTTON=no
2174 DEFAULT_wxUSE_BMPBUTTON=no
2175 DEFAULT_wxUSE_CALCTRL=no
2176 DEFAULT_wxUSE_CARET=no
2177 DEFAULT_wxUSE_CHECKBOX=no
2178 DEFAULT_wxUSE_CHECKLST=no
2179 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2180 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2181 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2182 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2183 DEFAULT_wxUSE_DISPLAY=no
2184 DEFAULT_wxUSE_GAUGE=no
2185 DEFAULT_wxUSE_GRID=no
2186 DEFAULT_wxUSE_IMAGLIST=no
2187 DEFAULT_wxUSE_LISTBOOK=no
2188 DEFAULT_wxUSE_LISTBOX=no
2189 DEFAULT_wxUSE_LISTCTRL=no
2190 DEFAULT_wxUSE_NOTEBOOK=no
2191 DEFAULT_wxUSE_RADIOBOX=no
2192 DEFAULT_wxUSE_RADIOBTN=no
2193 DEFAULT_wxUSE_SASH=no
2194 DEFAULT_wxUSE_SCROLLBAR=no
2195 DEFAULT_wxUSE_SLIDER=no
2196 DEFAULT_wxUSE_SPINBTN=no
2197 DEFAULT_wxUSE_SPINCTRL=no
2198 DEFAULT_wxUSE_SPLITTER=no
2199 DEFAULT_wxUSE_STATBMP=no
2200 DEFAULT_wxUSE_STATBOX=no
2201 DEFAULT_wxUSE_STATLINE=no
2202 DEFAULT_wxUSE_STATTEXT=no
2203 DEFAULT_wxUSE_STATUSBAR=yes
2204 DEFAULT_wxUSE_TABDIALOG=no
2205 DEFAULT_wxUSE_TEXTCTRL=no
2206 DEFAULT_wxUSE_TOGGLEBTN=no
2207 DEFAULT_wxUSE_TOOLBAR=no
2208 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2209 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2210 DEFAULT_wxUSE_TREECTRL=no
2211 DEFAULT_wxUSE_POPUPWIN=no
2212 DEFAULT_wxUSE_TIPWINDOW=no
2213
2214 DEFAULT_wxUSE_UNICODE=no
2215 DEFAULT_wxUSE_UNICODE_MSLU=no
2216 DEFAULT_wxUSE_WCSRTOMBS=no
2217
2218 DEFAULT_wxUSE_PALETTE=no
2219 DEFAULT_wxUSE_IMAGE=no
2220 DEFAULT_wxUSE_GIF=no
2221 DEFAULT_wxUSE_PCX=no
2222 DEFAULT_wxUSE_PNM=no
2223 DEFAULT_wxUSE_IFF=no
2224 DEFAULT_wxUSE_XPM=no
2225 DEFAULT_wxUSE_ICO_CUR=no
2226 DEFAULT_wxUSE_ACCESSIBILITY=no
2227
2228 DEFAULT_wxUSE_MONOLITHIC=no
2229 DEFAULT_wxUSE_PLUGINS=no
2230 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2231else
2232 DEFAULT_wxUSE_UNIVERSAL=no
2233 DEFAULT_wxUSE_STL=no
2234
2235 DEFAULT_wxUSE_NANOX=no
2236
2237 DEFAULT_wxUSE_THREADS=yes
2238
2239 DEFAULT_wxUSE_SHARED=yes
2240 DEFAULT_wxUSE_OPTIMISE=yes
2241 DEFAULT_wxUSE_PROFILE=no
2242 DEFAULT_wxUSE_NO_DEPS=no
2243 DEFAULT_wxUSE_NO_RTTI=no
2244 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2245 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2246 DEFAULT_wxUSE_PERMISSIVE=no
2247 DEFAULT_wxUSE_DEBUG_FLAG=no
2248 DEFAULT_wxUSE_DEBUG_INFO=no
2249 DEFAULT_wxUSE_DEBUG_GDB=no
2250 DEFAULT_wxUSE_MEM_TRACING=no
2251 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2252 DEFAULT_wxUSE_DMALLOC=no
2253 DEFAULT_wxUSE_APPLE_IEEE=yes
2254
2255 DEFAULT_wxUSE_EXCEPTIONS=yes
2256 DEFAULT_wxUSE_LOG=yes
2257 DEFAULT_wxUSE_LOGWINDOW=yes
2258 DEFAULT_wxUSE_LOGGUI=yes
2259 DEFAULT_wxUSE_LOGDIALOG=yes
2260
2261 DEFAULT_wxUSE_GUI=yes
2262
2263 DEFAULT_wxUSE_REGEX=yes
2264 DEFAULT_wxUSE_XML=yes
2265 DEFAULT_wxUSE_EXPAT=yes
2266 DEFAULT_wxUSE_ZLIB=yes
2267 DEFAULT_wxUSE_LIBPNG=yes
2268 DEFAULT_wxUSE_LIBJPEG=yes
2269 DEFAULT_wxUSE_LIBTIFF=yes
2270 DEFAULT_wxUSE_LIBXPM=yes
2271 DEFAULT_wxUSE_LIBMSPACK=yes
2272 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2273 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2274 DEFAULT_wxUSE_ODBC=no
52cb607e 2275 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2276
2277 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2278 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2279 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2280 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2281 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2282 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2283 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2284 DEFAULT_wxUSE_DATETIME=yes
2285 DEFAULT_wxUSE_TIMER=yes
2286 DEFAULT_wxUSE_STOPWATCH=yes
2287 DEFAULT_wxUSE_FILE=yes
2288 DEFAULT_wxUSE_FFILE=yes
07158944 2289 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2290 DEFAULT_wxUSE_TEXTBUFFER=yes
2291 DEFAULT_wxUSE_TEXTFILE=yes
2292 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2293 DEFAULT_wxUSE_MEDIACTRL=no
2294 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2295 DEFAULT_wxUSE_INTL=yes
2296 DEFAULT_wxUSE_CONFIG=yes
2297 DEFAULT_wxUSE_FONTMAP=yes
2298 DEFAULT_wxUSE_STREAMS=yes
2299 DEFAULT_wxUSE_SOCKETS=yes
2300 DEFAULT_wxUSE_OLE=yes
2301 DEFAULT_wxUSE_DATAOBJ=yes
2302 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2303 DEFAULT_wxUSE_JOYSTICK=yes
2304 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2305 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2306 DEFAULT_wxUSE_LONGLONG=yes
2307 DEFAULT_wxUSE_GEOMETRY=yes
2308
2309 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2310 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2311 DEFAULT_wxUSE_POSTSCRIPT=yes
2312
2313 DEFAULT_wxUSE_CLIPBOARD=yes
2314 DEFAULT_wxUSE_TOOLTIPS=yes
2315 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2316 DEFAULT_wxUSE_DRAGIMAGE=yes
2317 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2318 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2319
8a7b1113 2320 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2321 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2322 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2323 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2324
2325 DEFAULT_wxUSE_RESOURCES=no
2326 DEFAULT_wxUSE_CONSTRAINTS=yes
2327 DEFAULT_wxUSE_IPC=yes
2328 DEFAULT_wxUSE_HELP=yes
2329 DEFAULT_wxUSE_MS_HTML_HELP=yes
2330 DEFAULT_wxUSE_WXHTML_HELP=yes
2331 DEFAULT_wxUSE_TREELAYOUT=yes
2332 DEFAULT_wxUSE_METAFILE=yes
2333 DEFAULT_wxUSE_MIMETYPE=yes
2334 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2335 DEFAULT_wxUSE_PROTOCOL=yes
2336 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2337 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2338 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2339 DEFAULT_wxUSE_URL=yes
2340
2341 DEFAULT_wxUSE_COMMONDLGS=yes
2342 DEFAULT_wxUSE_CHOICEDLG=yes
2343 DEFAULT_wxUSE_COLOURDLG=yes
2344 DEFAULT_wxUSE_DIRDLG=yes
2345 DEFAULT_wxUSE_FILEDLG=yes
2346 DEFAULT_wxUSE_FINDREPLDLG=yes
2347 DEFAULT_wxUSE_FONTDLG=yes
2348 DEFAULT_wxUSE_MSGDLG=yes
2349 DEFAULT_wxUSE_NUMBERDLG=yes
2350 DEFAULT_wxUSE_TEXTDLG=yes
2351 DEFAULT_wxUSE_SPLASH=yes
2352 DEFAULT_wxUSE_STARTUP_TIPS=yes
2353 DEFAULT_wxUSE_PROGRESSDLG=yes
2354 DEFAULT_wxUSE_WIZARDDLG=yes
2355
2356 DEFAULT_wxUSE_MENUS=yes
2357 DEFAULT_wxUSE_MINIFRAME=yes
2358 DEFAULT_wxUSE_HTML=yes
9a8f0513 2359 DEFAULT_wxUSE_XRC=yes
646b6ec1 2360 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2361 DEFAULT_wxUSE_FILESYSTEM=yes
2362 DEFAULT_wxUSE_FS_INET=yes
2363 DEFAULT_wxUSE_FS_ZIP=yes
2364 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2365 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2366 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2367 DEFAULT_wxUSE_VALIDATORS=yes
2368
2369 DEFAULT_wxUSE_ACCEL=yes
2370 DEFAULT_wxUSE_BUTTON=yes
2371 DEFAULT_wxUSE_BMPBUTTON=yes
2372 DEFAULT_wxUSE_CALCTRL=yes
2373 DEFAULT_wxUSE_CARET=yes
2374 DEFAULT_wxUSE_CHECKBOX=yes
2375 DEFAULT_wxUSE_CHECKLST=yes
2376 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2377 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2378 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2379 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2380 DEFAULT_wxUSE_DISPLAY=yes
2381 DEFAULT_wxUSE_GAUGE=yes
2382 DEFAULT_wxUSE_GRID=yes
2383 DEFAULT_wxUSE_IMAGLIST=yes
2384 DEFAULT_wxUSE_LISTBOOK=yes
2385 DEFAULT_wxUSE_LISTBOX=yes
2386 DEFAULT_wxUSE_LISTCTRL=yes
2387 DEFAULT_wxUSE_NOTEBOOK=yes
2388 DEFAULT_wxUSE_RADIOBOX=yes
2389 DEFAULT_wxUSE_RADIOBTN=yes
2390 DEFAULT_wxUSE_SASH=yes
2391 DEFAULT_wxUSE_SCROLLBAR=yes
2392 DEFAULT_wxUSE_SLIDER=yes
2393 DEFAULT_wxUSE_SPINBTN=yes
2394 DEFAULT_wxUSE_SPINCTRL=yes
2395 DEFAULT_wxUSE_SPLITTER=yes
2396 DEFAULT_wxUSE_STATBMP=yes
2397 DEFAULT_wxUSE_STATBOX=yes
2398 DEFAULT_wxUSE_STATLINE=yes
2399 DEFAULT_wxUSE_STATTEXT=yes
2400 DEFAULT_wxUSE_STATUSBAR=yes
2401 DEFAULT_wxUSE_TABDIALOG=no
2402 DEFAULT_wxUSE_TEXTCTRL=yes
2403 DEFAULT_wxUSE_TOGGLEBTN=yes
2404 DEFAULT_wxUSE_TOOLBAR=yes
2405 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2406 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2407 DEFAULT_wxUSE_TREECTRL=yes
2408 DEFAULT_wxUSE_POPUPWIN=yes
2409 DEFAULT_wxUSE_TIPWINDOW=yes
2410
78de529b 2411 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2412 DEFAULT_wxUSE_UNICODE_MSLU=yes
2413 DEFAULT_wxUSE_WCSRTOMBS=no
2414
2415 DEFAULT_wxUSE_PALETTE=yes
2416 DEFAULT_wxUSE_IMAGE=yes
2417 DEFAULT_wxUSE_GIF=yes
2418 DEFAULT_wxUSE_PCX=yes
2419 DEFAULT_wxUSE_IFF=no
2420 DEFAULT_wxUSE_PNM=yes
2421 DEFAULT_wxUSE_XPM=yes
2422 DEFAULT_wxUSE_ICO_CUR=yes
2423 DEFAULT_wxUSE_ACCESSIBILITY=no
2424
2425 DEFAULT_wxUSE_MONOLITHIC=no
2426 DEFAULT_wxUSE_PLUGINS=no
2427 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2428
f34ca037 2429 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2430fi
2431
2432
2433
f34ca037 2434
a848cd7e
SC
2435for toolkit in `echo $ALL_TOOLKITS`; do
2436 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2437 if test "x$LINE" != "x" ; then
2438 has_toolkit_in_cache=1
2439 eval "DEFAULT_$LINE"
2440 eval "CACHE_$toolkit=1"
f34ca037
MW
2441
2442 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2443 if test "x$LINE" != "x" ; then
2444 eval "DEFAULT_$LINE"
2445 fi
a848cd7e
SC
2446 fi
2447done
2448
2449
2450
2451 enablestring=
2452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2453echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2454 no_cache=0
2455 # Check whether --enable-gui or --disable-gui was given.
2456if test "${enable_gui+set}" = set; then
2457 enableval="$enable_gui"
2458
2459 if test "$enableval" = yes; then
2460 ac_cv_use_gui='wxUSE_GUI=yes'
2461 else
2462 ac_cv_use_gui='wxUSE_GUI=no'
2463 fi
2464
2465else
2466
2467 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2468 if test "x$LINE" != x ; then
2469 eval "DEFAULT_$LINE"
2470 else
2471 no_cache=1
2472 fi
2473
2474 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2475
2476fi;
2477
2478 eval "$ac_cv_use_gui"
2479 if test "$no_cache" != 1; then
2480 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2481 fi
2482
2483 if test "$wxUSE_GUI" = yes; then
2484 echo "$as_me:$LINENO: result: yes" >&5
2485echo "${ECHO_T}yes" >&6
2486 else
2487 echo "$as_me:$LINENO: result: no" >&5
2488echo "${ECHO_T}no" >&6
2489 fi
2490
2491
2492 enablestring=
2493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2494echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2495 no_cache=0
2496 # Check whether --enable-monolithic or --disable-monolithic was given.
2497if test "${enable_monolithic+set}" = set; then
2498 enableval="$enable_monolithic"
2499
2500 if test "$enableval" = yes; then
2501 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2502 else
2503 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2504 fi
2505
2506else
2507
2508 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2509 if test "x$LINE" != x ; then
2510 eval "DEFAULT_$LINE"
2511 else
2512 no_cache=1
2513 fi
2514
2515 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2516
2517fi;
2518
2519 eval "$ac_cv_use_monolithic"
2520 if test "$no_cache" != 1; then
2521 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2522 fi
2523
2524 if test "$wxUSE_MONOLITHIC" = yes; then
2525 echo "$as_me:$LINENO: result: yes" >&5
2526echo "${ECHO_T}yes" >&6
2527 else
2528 echo "$as_me:$LINENO: result: no" >&5
2529echo "${ECHO_T}no" >&6
2530 fi
2531
2532
2533 enablestring=
2534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2535echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2536 no_cache=0
2537 # Check whether --enable-plugins or --disable-plugins was given.
2538if test "${enable_plugins+set}" = set; then
2539 enableval="$enable_plugins"
2540
2541 if test "$enableval" = yes; then
2542 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2543 else
2544 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2545 fi
2546
2547else
2548
2549 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2550 if test "x$LINE" != x ; then
2551 eval "DEFAULT_$LINE"
2552 else
2553 no_cache=1
2554 fi
2555
2556 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2557
2558fi;
2559
2560 eval "$ac_cv_use_plugins"
2561 if test "$no_cache" != 1; then
2562 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2563 fi
2564
2565 if test "$wxUSE_PLUGINS" = yes; then
2566 echo "$as_me:$LINENO: result: yes" >&5
2567echo "${ECHO_T}yes" >&6
2568 else
2569 echo "$as_me:$LINENO: result: no" >&5
2570echo "${ECHO_T}no" >&6
2571 fi
2572
2573
2574if test "$wxUSE_GUI" = "yes"; then
2575
2576
2577 enablestring=
2578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2579echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2580 no_cache=0
2581 # Check whether --enable-universal or --disable-universal was given.
2582if test "${enable_universal+set}" = set; then
2583 enableval="$enable_universal"
2584
2585 if test "$enableval" = yes; then
2586 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2587 else
2588 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2589 fi
2590
2591else
2592
2593 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2594 if test "x$LINE" != x ; then
2595 eval "DEFAULT_$LINE"
2596 else
2597 no_cache=1
2598 fi
2599
2600 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2601
2602fi;
2603
2604 eval "$ac_cv_use_universal"
2605 if test "$no_cache" != 1; then
2606 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2607 fi
2608
2609 if test "$wxUSE_UNIVERSAL" = yes; then
2610 echo "$as_me:$LINENO: result: yes" >&5
2611echo "${ECHO_T}yes" >&6
2612 else
2613 echo "$as_me:$LINENO: result: no" >&5
2614echo "${ECHO_T}no" >&6
2615 fi
2616
2617
2618# Check whether --with-gtk or --without-gtk was given.
2619if test "${with_gtk+set}" = set; then
2620 withval="$with_gtk"
2621 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2622fi;
2623
2624# Check whether --with-motif or --without-motif was given.
2625if test "${with_motif+set}" = set; then
2626 withval="$with_motif"
2627 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2628fi;
2629
2630# Check whether --with-mac or --without-mac was given.
2631if test "${with_mac+set}" = set; then
2632 withval="$with_mac"
c228d3a4 2633 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2634fi;
2635
2636# Check whether --with-cocoa or --without-cocoa was given.
2637if test "${with_cocoa+set}" = set; then
2638 withval="$with_cocoa"
c228d3a4 2639 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2640fi;
2641
2642# Check whether --with-wine or --without-wine was given.
2643if test "${with_wine+set}" = set; then
2644 withval="$with_wine"
2645 wxUSE_WINE="$withval" CACHE_WINE=1
2646fi;
2647
2648# Check whether --with-msw or --without-msw was given.
2649if test "${with_msw+set}" = set; then
2650 withval="$with_msw"
2651 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2652fi;
2653
2654# Check whether --with-pm or --without-pm was given.
2655if test "${with_pm+set}" = set; then
2656 withval="$with_pm"
2657 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2658fi;
2659
2660# Check whether --with-mgl or --without-mgl was given.
2661if test "${with_mgl+set}" = set; then
2662 withval="$with_mgl"
2663 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2664fi;
2665
2666# Check whether --with-microwin or --without-microwin was given.
2667if test "${with_microwin+set}" = set; then
2668 withval="$with_microwin"
2669 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2670fi;
2671
2672# Check whether --with-x11 or --without-x11 was given.
2673if test "${with_x11+set}" = set; then
2674 withval="$with_x11"
2675 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2676fi;
2677
2678 enablestring=
2679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2680echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2681 no_cache=0
2682 # Check whether --enable-nanox or --disable-nanox was given.
2683if test "${enable_nanox+set}" = set; then
2684 enableval="$enable_nanox"
2685
2686 if test "$enableval" = yes; then
2687 ac_cv_use_nanox='wxUSE_NANOX=yes'
2688 else
2689 ac_cv_use_nanox='wxUSE_NANOX=no'
2690 fi
2691
2692else
2693
2694 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2695 if test "x$LINE" != x ; then
2696 eval "DEFAULT_$LINE"
2697 else
2698 no_cache=1
2699 fi
2700
2701 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2702
2703fi;
2704
2705 eval "$ac_cv_use_nanox"
2706 if test "$no_cache" != 1; then
2707 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2708 fi
2709
2710 if test "$wxUSE_NANOX" = yes; then
2711 echo "$as_me:$LINENO: result: yes" >&5
2712echo "${ECHO_T}yes" >&6
2713 else
2714 echo "$as_me:$LINENO: result: no" >&5
2715echo "${ECHO_T}no" >&6
2716 fi
2717
2718
f34ca037
MW
2719# Check whether --enable-gtk2 or --disable-gtk2 was given.
2720if test "${enable_gtk2+set}" = set; then
2721 enableval="$enable_gtk2"
2722 wxUSE_GTK2="$enableval"
2723fi;
a848cd7e 2724
a848cd7e
SC
2725 enablestring=
2726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2727echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2728 no_cache=0
2729 # Check whether --enable-gpe or --disable-gpe was given.
2730if test "${enable_gpe+set}" = set; then
2731 enableval="$enable_gpe"
2732
2733 if test "$enableval" = yes; then
2734 ac_cv_use_gpe='wxUSE_GPE=yes'
2735 else
2736 ac_cv_use_gpe='wxUSE_GPE=no'
2737 fi
2738
2739else
2740
2741 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2742 if test "x$LINE" != x ; then
2743 eval "DEFAULT_$LINE"
2744 else
2745 no_cache=1
2746 fi
2747
2748 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2749
2750fi;
2751
2752 eval "$ac_cv_use_gpe"
2753 if test "$no_cache" != 1; then
2754 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2755 fi
2756
2757 if test "$wxUSE_GPE" = yes; then
2758 echo "$as_me:$LINENO: result: yes" >&5
2759echo "${ECHO_T}yes" >&6
2760 else
2761 echo "$as_me:$LINENO: result: no" >&5
2762echo "${ECHO_T}no" >&6
2763 fi
2764
2765
2766
2767 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2768echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2769 no_cache=0
2770
2771# Check whether --with-libpng or --without-libpng was given.
2772if test "${with_libpng+set}" = set; then
2773 withval="$with_libpng"
2774
2775 if test "$withval" = yes; then
2776 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2777 elif test "$withval" = no; then
2778 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2779 elif test "$withval" = sys; then
2780 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2781 elif test "$withval" = builtin; then
2782 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2783 else
2784 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2785echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2786 { (exit 1); exit 1; }; }
2787 fi
2788
2789else
2790
2791 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2792 if test "x$LINE" != x ; then
2793 eval "DEFAULT_$LINE"
2794 else
2795 no_cache=1
2796 fi
2797
2798 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2799
2800fi;
2801
2802 eval "$ac_cv_use_libpng"
2803 if test "$no_cache" != 1; then
2804 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2805 fi
2806
2807 if test "$wxUSE_LIBPNG" = yes; then
2808 echo "$as_me:$LINENO: result: yes" >&5
2809echo "${ECHO_T}yes" >&6
2810 elif test "$wxUSE_LIBPNG" = no; then
2811 echo "$as_me:$LINENO: result: no" >&5
2812echo "${ECHO_T}no" >&6
2813 elif test "$wxUSE_LIBPNG" = sys; then
2814 echo "$as_me:$LINENO: result: system version" >&5
2815echo "${ECHO_T}system version" >&6
2816 elif test "$wxUSE_LIBPNG" = builtin; then
2817 echo "$as_me:$LINENO: result: builtin version" >&5
2818echo "${ECHO_T}builtin version" >&6
2819 else
2820 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2821echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2822 { (exit 1); exit 1; }; }
2823 fi
2824
2825
2826 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2827echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2828 no_cache=0
2829
2830# Check whether --with-libjpeg or --without-libjpeg was given.
2831if test "${with_libjpeg+set}" = set; then
2832 withval="$with_libjpeg"
2833
2834 if test "$withval" = yes; then
2835 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2836 elif test "$withval" = no; then
2837 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2838 elif test "$withval" = sys; then
2839 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2840 elif test "$withval" = builtin; then
2841 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2842 else
2843 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2844echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2845 { (exit 1); exit 1; }; }
2846 fi
2847
2848else
2849
2850 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2851 if test "x$LINE" != x ; then
2852 eval "DEFAULT_$LINE"
2853 else
2854 no_cache=1
2855 fi
2856
2857 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2858
2859fi;
2860
2861 eval "$ac_cv_use_libjpeg"
2862 if test "$no_cache" != 1; then
2863 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2864 fi
2865
2866 if test "$wxUSE_LIBJPEG" = yes; then
2867 echo "$as_me:$LINENO: result: yes" >&5
2868echo "${ECHO_T}yes" >&6
2869 elif test "$wxUSE_LIBJPEG" = no; then
2870 echo "$as_me:$LINENO: result: no" >&5
2871echo "${ECHO_T}no" >&6
2872 elif test "$wxUSE_LIBJPEG" = sys; then
2873 echo "$as_me:$LINENO: result: system version" >&5
2874echo "${ECHO_T}system version" >&6
2875 elif test "$wxUSE_LIBJPEG" = builtin; then
2876 echo "$as_me:$LINENO: result: builtin version" >&5
2877echo "${ECHO_T}builtin version" >&6
2878 else
2879 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2880echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2881 { (exit 1); exit 1; }; }
2882 fi
2883
2884
2885 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2886echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2887 no_cache=0
2888
2889# Check whether --with-libtiff or --without-libtiff was given.
2890if test "${with_libtiff+set}" = set; then
2891 withval="$with_libtiff"
2892
2893 if test "$withval" = yes; then
2894 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2895 elif test "$withval" = no; then
2896 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2897 elif test "$withval" = sys; then
2898 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2899 elif test "$withval" = builtin; then
2900 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2901 else
2902 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2903echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2904 { (exit 1); exit 1; }; }
2905 fi
2906
2907else
2908
2909 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2910 if test "x$LINE" != x ; then
2911 eval "DEFAULT_$LINE"
2912 else
2913 no_cache=1
2914 fi
2915
2916 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2917
2918fi;
2919
2920 eval "$ac_cv_use_libtiff"
2921 if test "$no_cache" != 1; then
2922 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2923 fi
2924
2925 if test "$wxUSE_LIBTIFF" = yes; then
2926 echo "$as_me:$LINENO: result: yes" >&5
2927echo "${ECHO_T}yes" >&6
2928 elif test "$wxUSE_LIBTIFF" = no; then
2929 echo "$as_me:$LINENO: result: no" >&5
2930echo "${ECHO_T}no" >&6
2931 elif test "$wxUSE_LIBTIFF" = sys; then
2932 echo "$as_me:$LINENO: result: system version" >&5
2933echo "${ECHO_T}system version" >&6
2934 elif test "$wxUSE_LIBTIFF" = builtin; then
2935 echo "$as_me:$LINENO: result: builtin version" >&5
2936echo "${ECHO_T}builtin version" >&6
2937 else
2938 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2939echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2940 { (exit 1); exit 1; }; }
2941 fi
2942
2943
2944 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2945echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2946 no_cache=0
2947
2948# Check whether --with-libxpm or --without-libxpm was given.
2949if test "${with_libxpm+set}" = set; then
2950 withval="$with_libxpm"
2951
2952 if test "$withval" = yes; then
2953 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2954 elif test "$withval" = no; then
2955 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2956 elif test "$withval" = sys; then
2957 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2958 elif test "$withval" = builtin; then
2959 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2960 else
2961 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2962echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2963 { (exit 1); exit 1; }; }
2964 fi
2965
2966else
2967
2968 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2969 if test "x$LINE" != x ; then
2970 eval "DEFAULT_$LINE"
2971 else
2972 no_cache=1
2973 fi
2974
2975 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2976
2977fi;
2978
2979 eval "$ac_cv_use_libxpm"
2980 if test "$no_cache" != 1; then
2981 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2982 fi
2983
2984 if test "$wxUSE_LIBXPM" = yes; then
2985 echo "$as_me:$LINENO: result: yes" >&5
2986echo "${ECHO_T}yes" >&6
2987 elif test "$wxUSE_LIBXPM" = no; then
2988 echo "$as_me:$LINENO: result: no" >&5
2989echo "${ECHO_T}no" >&6
2990 elif test "$wxUSE_LIBXPM" = sys; then
2991 echo "$as_me:$LINENO: result: system version" >&5
2992echo "${ECHO_T}system version" >&6
2993 elif test "$wxUSE_LIBXPM" = builtin; then
2994 echo "$as_me:$LINENO: result: builtin version" >&5
2995echo "${ECHO_T}builtin version" >&6
2996 else
2997 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2998echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2999 { (exit 1); exit 1; }; }
3000 fi
3001
3002
3003 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3004echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3005 no_cache=0
3006
3007# Check whether --with-libmspack or --without-libmspack was given.
3008if test "${with_libmspack+set}" = set; then
3009 withval="$with_libmspack"
3010
3011 if test "$withval" = yes; then
3012 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3013 else
3014 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3015 fi
3016
3017else
3018
3019 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3020 if test "x$LINE" != x ; then
3021 eval "DEFAULT_$LINE"
3022 else
3023 no_cache=1
3024 fi
3025
3026 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3027
3028fi;
3029
3030 eval "$ac_cv_use_libmspack"
3031 if test "$no_cache" != 1; then
3032 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3033 fi
3034
3035 if test "$wxUSE_LIBMSPACK" = yes; then
3036 echo "$as_me:$LINENO: result: yes" >&5
3037echo "${ECHO_T}yes" >&6
3038 else
3039 echo "$as_me:$LINENO: result: no" >&5
3040echo "${ECHO_T}no" >&6
3041 fi
3042
3043
3044 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3045echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3046 no_cache=0
3047
3048# Check whether --with-sdl or --without-sdl was given.
3049if test "${with_sdl+set}" = set; then
3050 withval="$with_sdl"
3051
3052 if test "$withval" = yes; then
3053 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3054 else
3055 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3056 fi
3057
3058else
3059
3060 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3061 if test "x$LINE" != x ; then
3062 eval "DEFAULT_$LINE"
3063 else
3064 no_cache=1
3065 fi
3066
3067 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3068
3069fi;
3070
3071 eval "$ac_cv_use_sdl"
3072 if test "$no_cache" != 1; then
3073 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3074 fi
3075
3076 if test "$wxUSE_LIBSDL" = yes; then
3077 echo "$as_me:$LINENO: result: yes" >&5
3078echo "${ECHO_T}yes" >&6
3079 else
3080 echo "$as_me:$LINENO: result: no" >&5
3081echo "${ECHO_T}no" >&6
3082 fi
3083
3084
d1c38808
VZ
3085 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3086echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3087 no_cache=0
3088
3089# Check whether --with-gnomeprint or --without-gnomeprint was given.
3090if test "${with_gnomeprint+set}" = set; then
3091 withval="$with_gnomeprint"
3092
3093 if test "$withval" = yes; then
3094 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3095 else
3096 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3097 fi
3098
3099else
3100
3101 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3102 if test "x$LINE" != x ; then
3103 eval "DEFAULT_$LINE"
3104 else
3105 no_cache=1
3106 fi
3107
3108 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3109
3110fi;
3111
3112 eval "$ac_cv_use_gnomeprint"
3113 if test "$no_cache" != 1; then
3114 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3115 fi
3116
3117 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3118 echo "$as_me:$LINENO: result: yes" >&5
3119echo "${ECHO_T}yes" >&6
3120 else
3121 echo "$as_me:$LINENO: result: no" >&5
3122echo "${ECHO_T}no" >&6
3123 fi
3124
3125
a848cd7e
SC
3126 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3127echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3128 no_cache=0
3129
3130# Check whether --with-opengl or --without-opengl was given.
3131if test "${with_opengl+set}" = set; then
3132 withval="$with_opengl"
3133
3134 if test "$withval" = yes; then
3135 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3136 else
3137 ac_cv_use_opengl='wxUSE_OPENGL=no'
3138 fi
3139
3140else
3141
3142 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3143 if test "x$LINE" != x ; then
3144 eval "DEFAULT_$LINE"
3145 else
3146 no_cache=1
3147 fi
3148
3149 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3150
3151fi;
3152
3153 eval "$ac_cv_use_opengl"
3154 if test "$no_cache" != 1; then
3155 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3156 fi
3157
3158 if test "$wxUSE_OPENGL" = yes; then
3159 echo "$as_me:$LINENO: result: yes" >&5
3160echo "${ECHO_T}yes" >&6
3161 else
3162 echo "$as_me:$LINENO: result: no" >&5
3163echo "${ECHO_T}no" >&6
3164 fi
3165
3166
3167fi
3168
3169
3170 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3171echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3172 no_cache=0
3173
3174# Check whether --with-dmalloc or --without-dmalloc was given.
3175if test "${with_dmalloc+set}" = set; then
3176 withval="$with_dmalloc"
3177
3178 if test "$withval" = yes; then
3179 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3180 else
3181 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3182 fi
3183
3184else
3185
3186 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3187 if test "x$LINE" != x ; then
3188 eval "DEFAULT_$LINE"
3189 else
3190 no_cache=1
3191 fi
3192
3193 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3194
3195fi;
3196
3197 eval "$ac_cv_use_dmalloc"
3198 if test "$no_cache" != 1; then
3199 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3200 fi
3201
3202 if test "$wxUSE_DMALLOC" = yes; then
3203 echo "$as_me:$LINENO: result: yes" >&5
3204echo "${ECHO_T}yes" >&6
3205 else
3206 echo "$as_me:$LINENO: result: no" >&5
3207echo "${ECHO_T}no" >&6
3208 fi
3209
3210
3211 echo "$as_me:$LINENO: checking for --with-regex" >&5
3212echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3213 no_cache=0
3214
3215# Check whether --with-regex or --without-regex was given.
3216if test "${with_regex+set}" = set; then
3217 withval="$with_regex"
3218
3219 if test "$withval" = yes; then
3220 ac_cv_use_regex='wxUSE_REGEX=yes'
3221 elif test "$withval" = no; then
3222 ac_cv_use_regex='wxUSE_REGEX=no'
3223 elif test "$withval" = sys; then
3224 ac_cv_use_regex='wxUSE_REGEX=sys'
3225 elif test "$withval" = builtin; then
3226 ac_cv_use_regex='wxUSE_REGEX=builtin'
3227 else
3228 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3229echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3230 { (exit 1); exit 1; }; }
3231 fi
3232
3233else
3234
3235 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3236 if test "x$LINE" != x ; then
3237 eval "DEFAULT_$LINE"
3238 else
3239 no_cache=1
3240 fi
3241
3242 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3243
3244fi;
3245
3246 eval "$ac_cv_use_regex"
3247 if test "$no_cache" != 1; then
3248 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3249 fi
3250
3251 if test "$wxUSE_REGEX" = yes; then
3252 echo "$as_me:$LINENO: result: yes" >&5
3253echo "${ECHO_T}yes" >&6
3254 elif test "$wxUSE_REGEX" = no; then
3255 echo "$as_me:$LINENO: result: no" >&5
3256echo "${ECHO_T}no" >&6
3257 elif test "$wxUSE_REGEX" = sys; then
3258 echo "$as_me:$LINENO: result: system version" >&5
3259echo "${ECHO_T}system version" >&6
3260 elif test "$wxUSE_REGEX" = builtin; then
3261 echo "$as_me:$LINENO: result: builtin version" >&5
3262echo "${ECHO_T}builtin version" >&6
3263 else
3264 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3265echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3266 { (exit 1); exit 1; }; }
3267 fi
3268
3269
3270 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3271echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3272 no_cache=0
3273
3274# Check whether --with-zlib or --without-zlib was given.
3275if test "${with_zlib+set}" = set; then
3276 withval="$with_zlib"
3277
3278 if test "$withval" = yes; then
3279 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3280 elif test "$withval" = no; then
3281 ac_cv_use_zlib='wxUSE_ZLIB=no'
3282 elif test "$withval" = sys; then
3283 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3284 elif test "$withval" = builtin; then
3285 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3286 else
3287 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3288echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3289 { (exit 1); exit 1; }; }
3290 fi
3291
3292else
3293
3294 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3295 if test "x$LINE" != x ; then
3296 eval "DEFAULT_$LINE"
3297 else
3298 no_cache=1
3299 fi
3300
3301 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3302
3303fi;
3304
3305 eval "$ac_cv_use_zlib"
3306 if test "$no_cache" != 1; then
3307 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3308 fi
3309
3310 if test "$wxUSE_ZLIB" = yes; then
3311 echo "$as_me:$LINENO: result: yes" >&5
3312echo "${ECHO_T}yes" >&6
3313 elif test "$wxUSE_ZLIB" = no; then
3314 echo "$as_me:$LINENO: result: no" >&5
3315echo "${ECHO_T}no" >&6
3316 elif test "$wxUSE_ZLIB" = sys; then
3317 echo "$as_me:$LINENO: result: system version" >&5
3318echo "${ECHO_T}system version" >&6
3319 elif test "$wxUSE_ZLIB" = builtin; then
3320 echo "$as_me:$LINENO: result: builtin version" >&5
3321echo "${ECHO_T}builtin version" >&6
3322 else
3323 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3324echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3325 { (exit 1); exit 1; }; }
3326 fi
3327
3328
3329 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3330echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3331 no_cache=0
3332
3333# Check whether --with-odbc or --without-odbc was given.
3334if test "${with_odbc+set}" = set; then
3335 withval="$with_odbc"
3336
3337 if test "$withval" = yes; then
3338 ac_cv_use_odbc='wxUSE_ODBC=yes'
3339 elif test "$withval" = no; then
3340 ac_cv_use_odbc='wxUSE_ODBC=no'
3341 elif test "$withval" = sys; then
3342 ac_cv_use_odbc='wxUSE_ODBC=sys'
3343 elif test "$withval" = builtin; then
3344 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3345 else
3346 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3347echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3348 { (exit 1); exit 1; }; }
3349 fi
3350
3351else
3352
3353 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3354 if test "x$LINE" != x ; then
3355 eval "DEFAULT_$LINE"
3356 else
3357 no_cache=1
3358 fi
3359
3360 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3361
3362fi;
3363
3364 eval "$ac_cv_use_odbc"
3365 if test "$no_cache" != 1; then
3366 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3367 fi
3368
3369 if test "$wxUSE_ODBC" = yes; then
3370 echo "$as_me:$LINENO: result: yes" >&5
3371echo "${ECHO_T}yes" >&6
3372 elif test "$wxUSE_ODBC" = no; then
3373 echo "$as_me:$LINENO: result: no" >&5
3374echo "${ECHO_T}no" >&6
3375 elif test "$wxUSE_ODBC" = sys; then
3376 echo "$as_me:$LINENO: result: system version" >&5
3377echo "${ECHO_T}system version" >&6
3378 elif test "$wxUSE_ODBC" = builtin; then
3379 echo "$as_me:$LINENO: result: builtin version" >&5
3380echo "${ECHO_T}builtin version" >&6
3381 else
3382 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3383echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3384 { (exit 1); exit 1; }; }
3385 fi
3386
3387
3388 echo "$as_me:$LINENO: checking for --with-expat" >&5
3389echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3390 no_cache=0
3391
3392# Check whether --with-expat or --without-expat was given.
3393if test "${with_expat+set}" = set; then
3394 withval="$with_expat"
3395
3396 if test "$withval" = yes; then
3397 ac_cv_use_expat='wxUSE_EXPAT=yes'
3398 elif test "$withval" = no; then
3399 ac_cv_use_expat='wxUSE_EXPAT=no'
3400 elif test "$withval" = sys; then
3401 ac_cv_use_expat='wxUSE_EXPAT=sys'
3402 elif test "$withval" = builtin; then
3403 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3404 else
3405 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3406echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3407 { (exit 1); exit 1; }; }
3408 fi
3409
3410else
3411
3412 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3413 if test "x$LINE" != x ; then
3414 eval "DEFAULT_$LINE"
3415 else
3416 no_cache=1
3417 fi
3418
3419 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3420
3421fi;
3422
3423 eval "$ac_cv_use_expat"
3424 if test "$no_cache" != 1; then
3425 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3426 fi
3427
3428 if test "$wxUSE_EXPAT" = yes; then
3429 echo "$as_me:$LINENO: result: yes" >&5
3430echo "${ECHO_T}yes" >&6
3431 elif test "$wxUSE_EXPAT" = no; then
3432 echo "$as_me:$LINENO: result: no" >&5
3433echo "${ECHO_T}no" >&6
3434 elif test "$wxUSE_EXPAT" = sys; then
3435 echo "$as_me:$LINENO: result: system version" >&5
3436echo "${ECHO_T}system version" >&6
3437 elif test "$wxUSE_EXPAT" = builtin; then
3438 echo "$as_me:$LINENO: result: builtin version" >&5
3439echo "${ECHO_T}builtin version" >&6
3440 else
3441 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3442echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3443 { (exit 1); exit 1; }; }
3444 fi
3445
3446
3447
3448
3449 enablestring=
3450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3451echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3452 no_cache=0
3453 # Check whether --enable-shared or --disable-shared was given.
3454if test "${enable_shared+set}" = set; then
3455 enableval="$enable_shared"
3456
3457 if test "$enableval" = yes; then
3458 ac_cv_use_shared='wxUSE_SHARED=yes'
3459 else
3460 ac_cv_use_shared='wxUSE_SHARED=no'
3461 fi
3462
3463else
3464
3465 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3466 if test "x$LINE" != x ; then
3467 eval "DEFAULT_$LINE"
3468 else
3469 no_cache=1
3470 fi
3471
3472 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3473
3474fi;
3475
3476 eval "$ac_cv_use_shared"
3477 if test "$no_cache" != 1; then
3478 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3479 fi
3480
3481 if test "$wxUSE_SHARED" = yes; then
3482 echo "$as_me:$LINENO: result: yes" >&5
3483echo "${ECHO_T}yes" >&6
3484 else
3485 echo "$as_me:$LINENO: result: no" >&5
3486echo "${ECHO_T}no" >&6
3487 fi
3488
3489
3490 enablestring=
3491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3492echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3493 no_cache=0
3494 # Check whether --enable-optimise or --disable-optimise was given.
3495if test "${enable_optimise+set}" = set; then
3496 enableval="$enable_optimise"
3497
3498 if test "$enableval" = yes; then
3499 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3500 else
3501 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3502 fi
3503
3504else
3505
3506 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3507 if test "x$LINE" != x ; then
3508 eval "DEFAULT_$LINE"
3509 else
3510 no_cache=1
3511 fi
3512
3513 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3514
3515fi;
3516
3517 eval "$ac_cv_use_optimise"
3518 if test "$no_cache" != 1; then
3519 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3520 fi
3521
3522 if test "$wxUSE_OPTIMISE" = yes; then
3523 echo "$as_me:$LINENO: result: yes" >&5
3524echo "${ECHO_T}yes" >&6
3525 else
3526 echo "$as_me:$LINENO: result: no" >&5
3527echo "${ECHO_T}no" >&6
3528 fi
3529
3530
3531 enablestring=
3532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3533echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3534 no_cache=0
3535 # Check whether --enable-debug or --disable-debug was given.
3536if test "${enable_debug+set}" = set; then
3537 enableval="$enable_debug"
3538
3539 if test "$enableval" = yes; then
3540 ac_cv_use_debug='wxUSE_DEBUG=yes'
3541 else
3542 ac_cv_use_debug='wxUSE_DEBUG=no'
3543 fi
3544
3545else
3546
3547 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3548 if test "x$LINE" != x ; then
3549 eval "DEFAULT_$LINE"
3550 else
3551 no_cache=1
3552 fi
3553
3554 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3555
3556fi;
3557
3558 eval "$ac_cv_use_debug"
3559 if test "$no_cache" != 1; then
3560 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3561 fi
3562
3563 if test "$wxUSE_DEBUG" = yes; then
3564 echo "$as_me:$LINENO: result: yes" >&5
3565echo "${ECHO_T}yes" >&6
3566 else
3567 echo "$as_me:$LINENO: result: no" >&5
3568echo "${ECHO_T}no" >&6
3569 fi
3570
3571
3572 enablestring=
3573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3574echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3575 no_cache=0
3576 # Check whether --enable-stl or --disable-stl was given.
3577if test "${enable_stl+set}" = set; then
3578 enableval="$enable_stl"
3579
3580 if test "$enableval" = yes; then
3581 ac_cv_use_stl='wxUSE_STL=yes'
3582 else
3583 ac_cv_use_stl='wxUSE_STL=no'
3584 fi
3585
3586else
3587
3588 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3589 if test "x$LINE" != x ; then
3590 eval "DEFAULT_$LINE"
3591 else
3592 no_cache=1
3593 fi
3594
3595 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3596
3597fi;
3598
3599 eval "$ac_cv_use_stl"
3600 if test "$no_cache" != 1; then
3601 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3602 fi
3603
3604 if test "$wxUSE_STL" = yes; then
3605 echo "$as_me:$LINENO: result: yes" >&5
3606echo "${ECHO_T}yes" >&6
3607 else
3608 echo "$as_me:$LINENO: result: no" >&5
3609echo "${ECHO_T}no" >&6
3610 fi
3611
3612if test "$USE_OS2" = "1"; then
69120ee4 3613 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3614
3615 enablestring=
3616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3617echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3618 no_cache=0
3619 # Check whether --enable-omf or --disable-omf was given.
3620if test "${enable_omf+set}" = set; then
3621 enableval="$enable_omf"
3622
3623 if test "$enableval" = yes; then
3624 ac_cv_use_omf='wxUSE_OMF=yes'
3625 else
3626 ac_cv_use_omf='wxUSE_OMF=no'
3627 fi
3628
3629else
3630
3631 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3632 if test "x$LINE" != x ; then
3633 eval "DEFAULT_$LINE"
3634 else
3635 no_cache=1
3636 fi
3637
3638 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3639
3640fi;
3641
3642 eval "$ac_cv_use_omf"
3643 if test "$no_cache" != 1; then
3644 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3645 fi
3646
3647 if test "$wxUSE_OMF" = yes; then
3648 echo "$as_me:$LINENO: result: yes" >&5
3649echo "${ECHO_T}yes" >&6
3650 else
3651 echo "$as_me:$LINENO: result: no" >&5
3652echo "${ECHO_T}no" >&6
3653 fi
3654
3655fi
3656
3657if test "$wxUSE_DEBUG" = "yes"; then
3658 DEFAULT_wxUSE_DEBUG_FLAG=yes
3659 DEFAULT_wxUSE_DEBUG_INFO=yes
3660 BUILD=debug
3661elif test "$wxUSE_DEBUG" = "no"; then
3662 DEFAULT_wxUSE_DEBUG_FLAG=no
3663 DEFAULT_wxUSE_DEBUG_INFO=no
3664 BUILD=release
3665fi
3666
3667
3668 enablestring=
3669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3670echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3671 no_cache=0
3672 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3673if test "${enable_debug_flag+set}" = set; then
3674 enableval="$enable_debug_flag"
3675
3676 if test "$enableval" = yes; then
3677 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3678 else
3679 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3680 fi
3681
3682else
3683
3684 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3685 if test "x$LINE" != x ; then
3686 eval "DEFAULT_$LINE"
3687 else
3688 no_cache=1
3689 fi
3690
3691 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3692
3693fi;
3694
3695 eval "$ac_cv_use_debug_flag"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_DEBUG_FLAG" = yes; then
3701 echo "$as_me:$LINENO: result: yes" >&5
3702echo "${ECHO_T}yes" >&6
3703 else
3704 echo "$as_me:$LINENO: result: no" >&5
3705echo "${ECHO_T}no" >&6
3706 fi
3707
3708
3709 enablestring=
3710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3711echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3712 no_cache=0
3713 # Check whether --enable-debug_info or --disable-debug_info was given.
3714if test "${enable_debug_info+set}" = set; then
3715 enableval="$enable_debug_info"
3716
3717 if test "$enableval" = yes; then
3718 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3719 else
3720 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3721 fi
3722
3723else
3724
3725 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3726 if test "x$LINE" != x ; then
3727 eval "DEFAULT_$LINE"
3728 else
3729 no_cache=1
3730 fi
3731
3732 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3733
3734fi;
3735
3736 eval "$ac_cv_use_debug_info"
3737 if test "$no_cache" != 1; then
3738 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3739 fi
3740
3741 if test "$wxUSE_DEBUG_INFO" = yes; then
3742 echo "$as_me:$LINENO: result: yes" >&5
3743echo "${ECHO_T}yes" >&6
3744 else
3745 echo "$as_me:$LINENO: result: no" >&5
3746echo "${ECHO_T}no" >&6
3747 fi
3748
3749
3750 enablestring=
3751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3752echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3753 no_cache=0
3754 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3755if test "${enable_debug_gdb+set}" = set; then
3756 enableval="$enable_debug_gdb"
3757
3758 if test "$enableval" = yes; then
3759 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3760 else
3761 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3762 fi
3763
3764else
3765
3766 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3767 if test "x$LINE" != x ; then
3768 eval "DEFAULT_$LINE"
3769 else
3770 no_cache=1
3771 fi
3772
3773 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3774
3775fi;
3776
3777 eval "$ac_cv_use_debug_gdb"
3778 if test "$no_cache" != 1; then
3779 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3780 fi
3781
3782 if test "$wxUSE_DEBUG_GDB" = yes; then
3783 echo "$as_me:$LINENO: result: yes" >&5
3784echo "${ECHO_T}yes" >&6
3785 else
3786 echo "$as_me:$LINENO: result: no" >&5
3787echo "${ECHO_T}no" >&6
3788 fi
3789
3790
3791 enablestring=
3792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3793echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3794 no_cache=0
3795 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3796if test "${enable_debug_cntxt+set}" = set; then
3797 enableval="$enable_debug_cntxt"
3798
3799 if test "$enableval" = yes; then
3800 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3801 else
3802 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3803 fi
3804
3805else
3806
3807 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3808 if test "x$LINE" != x ; then
3809 eval "DEFAULT_$LINE"
3810 else
3811 no_cache=1
3812 fi
3813
3814 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3815
3816fi;
3817
3818 eval "$ac_cv_use_debug_cntxt"
3819 if test "$no_cache" != 1; then
3820 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3821 fi
3822
3823 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3824 echo "$as_me:$LINENO: result: yes" >&5
3825echo "${ECHO_T}yes" >&6
3826 else
3827 echo "$as_me:$LINENO: result: no" >&5
3828echo "${ECHO_T}no" >&6
3829 fi
3830
3831
3832 enablestring=
3833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3834echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3835 no_cache=0
3836 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3837if test "${enable_mem_tracing+set}" = set; then
3838 enableval="$enable_mem_tracing"
3839
3840 if test "$enableval" = yes; then
3841 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3842 else
3843 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3844 fi
3845
3846else
3847
3848 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3849 if test "x$LINE" != x ; then
3850 eval "DEFAULT_$LINE"
3851 else
3852 no_cache=1
3853 fi
3854
3855 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3856
3857fi;
3858
3859 eval "$ac_cv_use_mem_tracing"
3860 if test "$no_cache" != 1; then
3861 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3862 fi
3863
3864 if test "$wxUSE_MEM_TRACING" = yes; then
3865 echo "$as_me:$LINENO: result: yes" >&5
3866echo "${ECHO_T}yes" >&6
3867 else
3868 echo "$as_me:$LINENO: result: no" >&5
3869echo "${ECHO_T}no" >&6
3870 fi
3871
3872
3873 enablestring=
3874 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3875echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3876 no_cache=0
3877 # Check whether --enable-profile or --disable-profile was given.
3878if test "${enable_profile+set}" = set; then
3879 enableval="$enable_profile"
3880
3881 if test "$enableval" = yes; then
3882 ac_cv_use_profile='wxUSE_PROFILE=yes'
3883 else
3884 ac_cv_use_profile='wxUSE_PROFILE=no'
3885 fi
3886
3887else
3888
3889 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3890 if test "x$LINE" != x ; then
3891 eval "DEFAULT_$LINE"
3892 else
3893 no_cache=1
3894 fi
3895
3896 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3897
3898fi;
3899
3900 eval "$ac_cv_use_profile"
3901 if test "$no_cache" != 1; then
3902 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3903 fi
3904
3905 if test "$wxUSE_PROFILE" = yes; then
3906 echo "$as_me:$LINENO: result: yes" >&5
3907echo "${ECHO_T}yes" >&6
3908 else
3909 echo "$as_me:$LINENO: result: no" >&5
3910echo "${ECHO_T}no" >&6
3911 fi
3912
3913
3914 enablestring=
3915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3916echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3917 no_cache=0
3918 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3919if test "${enable_no_rtti+set}" = set; then
3920 enableval="$enable_no_rtti"
3921
3922 if test "$enableval" = yes; then
3923 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3924 else
3925 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3926 fi
3927
3928else
3929
3930 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3931 if test "x$LINE" != x ; then
3932 eval "DEFAULT_$LINE"
3933 else
3934 no_cache=1
3935 fi
3936
3937 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3938
3939fi;
3940
3941 eval "$ac_cv_use_no_rtti"
3942 if test "$no_cache" != 1; then
3943 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3944 fi
3945
3946 if test "$wxUSE_NO_RTTI" = yes; then
3947 echo "$as_me:$LINENO: result: yes" >&5
3948echo "${ECHO_T}yes" >&6
3949 else
3950 echo "$as_me:$LINENO: result: no" >&5
3951echo "${ECHO_T}no" >&6
3952 fi
3953
3954
3955 enablestring=
3956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3957echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3958 no_cache=0
3959 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3960if test "${enable_no_exceptions+set}" = set; then
3961 enableval="$enable_no_exceptions"
3962
3963 if test "$enableval" = yes; then
3964 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3965 else
3966 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3967 fi
3968
3969else
3970
3971 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3972 if test "x$LINE" != x ; then
3973 eval "DEFAULT_$LINE"
3974 else
3975 no_cache=1
3976 fi
3977
3978 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3979
3980fi;
3981
3982 eval "$ac_cv_use_no_exceptions"
3983 if test "$no_cache" != 1; then
3984 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3985 fi
3986
3987 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3988 echo "$as_me:$LINENO: result: yes" >&5
3989echo "${ECHO_T}yes" >&6
3990 else
3991 echo "$as_me:$LINENO: result: no" >&5
3992echo "${ECHO_T}no" >&6
3993 fi
3994
3995
3996 enablestring=
3997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3998echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3999 no_cache=0
4000 # Check whether --enable-permissive or --disable-permissive was given.
4001if test "${enable_permissive+set}" = set; then
4002 enableval="$enable_permissive"
4003
4004 if test "$enableval" = yes; then
4005 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4006 else
4007 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4008 fi
4009
4010else
4011
4012 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4013 if test "x$LINE" != x ; then
4014 eval "DEFAULT_$LINE"
4015 else
4016 no_cache=1
4017 fi
4018
4019 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4020
4021fi;
4022
4023 eval "$ac_cv_use_permissive"
4024 if test "$no_cache" != 1; then
4025 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4026 fi
4027
4028 if test "$wxUSE_PERMISSIVE" = yes; then
4029 echo "$as_me:$LINENO: result: yes" >&5
4030echo "${ECHO_T}yes" >&6
4031 else
4032 echo "$as_me:$LINENO: result: no" >&5
4033echo "${ECHO_T}no" >&6
4034 fi
4035
4036
4037 enablestring=
4038 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4039echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4040 no_cache=0
4041 # Check whether --enable-no_deps or --disable-no_deps was given.
4042if test "${enable_no_deps+set}" = set; then
4043 enableval="$enable_no_deps"
4044
4045 if test "$enableval" = yes; then
4046 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4047 else
4048 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4049 fi
4050
4051else
4052
4053 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4054 if test "x$LINE" != x ; then
4055 eval "DEFAULT_$LINE"
4056 else
4057 no_cache=1
4058 fi
4059
4060 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4061
4062fi;
4063
4064 eval "$ac_cv_use_no_deps"
4065 if test "$no_cache" != 1; then
4066 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4067 fi
4068
4069 if test "$wxUSE_NO_DEPS" = yes; then
4070 echo "$as_me:$LINENO: result: yes" >&5
4071echo "${ECHO_T}yes" >&6
4072 else
4073 echo "$as_me:$LINENO: result: no" >&5
4074echo "${ECHO_T}no" >&6
4075 fi
4076
4077
4078
4079 enablestring=
4080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4081echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4082 no_cache=0
4083 # Check whether --enable-compat22 or --disable-compat22 was given.
4084if test "${enable_compat22+set}" = set; then
4085 enableval="$enable_compat22"
4086
4087 if test "$enableval" = yes; then
4088 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4089 else
4090 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4091 fi
4092
4093else
4094
4095 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4096 if test "x$LINE" != x ; then
4097 eval "DEFAULT_$LINE"
4098 else
4099 no_cache=1
4100 fi
4101
4102 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4103
4104fi;
4105
4106 eval "$ac_cv_use_compat22"
4107 if test "$no_cache" != 1; then
4108 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4109 fi
4110
4111 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4112 echo "$as_me:$LINENO: result: yes" >&5
4113echo "${ECHO_T}yes" >&6
4114 else
4115 echo "$as_me:$LINENO: result: no" >&5
4116echo "${ECHO_T}no" >&6
4117 fi
4118
4119
4120 enablestring=disable
4121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4122echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4123 no_cache=0
4124 # Check whether --enable-compat24 or --disable-compat24 was given.
4125if test "${enable_compat24+set}" = set; then
4126 enableval="$enable_compat24"
4127
4128 if test "$enableval" = yes; then
4129 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4130 else
4131 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4132 fi
4133
4134else
4135
4136 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4137 if test "x$LINE" != x ; then
4138 eval "DEFAULT_$LINE"
4139 else
4140 no_cache=1
4141 fi
4142
4143 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4144
4145fi;
4146
4147 eval "$ac_cv_use_compat24"
4148 if test "$no_cache" != 1; then
4149 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4150 fi
4151
4152 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4153 echo "$as_me:$LINENO: result: yes" >&5
4154echo "${ECHO_T}yes" >&6
4155 else
4156 echo "$as_me:$LINENO: result: no" >&5
4157echo "${ECHO_T}no" >&6
4158 fi
4159
4160
ffa0583f
RL
4161
4162 enablestring=
4163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4164echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4165 no_cache=0
4166 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4167if test "${enable_rpath+set}" = set; then
4168 enableval="$enable_rpath"
ffa0583f
RL
4169
4170 if test "$enableval" = yes; then
4171 ac_cv_use_rpath='wxUSE_RPATH=yes'
4172 else
4173 ac_cv_use_rpath='wxUSE_RPATH=no'
4174 fi
4175
4176else
4177
4178 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4179 if test "x$LINE" != x ; then
4180 eval "DEFAULT_$LINE"
4181 else
4182 no_cache=1
4183 fi
4184
4185 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4186
a848cd7e
SC
4187fi;
4188
ffa0583f
RL
4189 eval "$ac_cv_use_rpath"
4190 if test "$no_cache" != 1; then
4191 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4192 fi
4193
4194 if test "$wxUSE_RPATH" = yes; then
4195 echo "$as_me:$LINENO: result: yes" >&5
4196echo "${ECHO_T}yes" >&6
4197 else
4198 echo "$as_me:$LINENO: result: no" >&5
4199echo "${ECHO_T}no" >&6
4200 fi
4201
a848cd7e
SC
4202
4203
4204
4205
4206 enablestring=
4207 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4208echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4209 no_cache=0
4210 # Check whether --enable-intl or --disable-intl was given.
4211if test "${enable_intl+set}" = set; then
4212 enableval="$enable_intl"
4213
4214 if test "$enableval" = yes; then
4215 ac_cv_use_intl='wxUSE_INTL=yes'
4216 else
4217 ac_cv_use_intl='wxUSE_INTL=no'
4218 fi
4219
4220else
4221
4222 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4223 if test "x$LINE" != x ; then
4224 eval "DEFAULT_$LINE"
4225 else
4226 no_cache=1
4227 fi
4228
4229 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4230
4231fi;
4232
4233 eval "$ac_cv_use_intl"
4234 if test "$no_cache" != 1; then
4235 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4236 fi
4237
4238 if test "$wxUSE_INTL" = yes; then
4239 echo "$as_me:$LINENO: result: yes" >&5
4240echo "${ECHO_T}yes" >&6
4241 else
4242 echo "$as_me:$LINENO: result: no" >&5
4243echo "${ECHO_T}no" >&6
4244 fi
4245
4246
4247 enablestring=
4248 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4249echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4250 no_cache=0
4251 # Check whether --enable-config or --disable-config was given.
4252if test "${enable_config+set}" = set; then
4253 enableval="$enable_config"
4254
4255 if test "$enableval" = yes; then
4256 ac_cv_use_config='wxUSE_CONFIG=yes'
4257 else
4258 ac_cv_use_config='wxUSE_CONFIG=no'
4259 fi
4260
4261else
4262
4263 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4264 if test "x$LINE" != x ; then
4265 eval "DEFAULT_$LINE"
4266 else
4267 no_cache=1
4268 fi
4269
4270 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4271
4272fi;
4273
4274 eval "$ac_cv_use_config"
4275 if test "$no_cache" != 1; then
4276 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4277 fi
4278
4279 if test "$wxUSE_CONFIG" = yes; then
4280 echo "$as_me:$LINENO: result: yes" >&5
4281echo "${ECHO_T}yes" >&6
4282 else
4283 echo "$as_me:$LINENO: result: no" >&5
4284echo "${ECHO_T}no" >&6
4285 fi
4286
4287
4288
4289 enablestring=
4290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4291echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4292 no_cache=0
4293 # Check whether --enable-protocols or --disable-protocols was given.
4294if test "${enable_protocols+set}" = set; then
4295 enableval="$enable_protocols"
4296
4297 if test "$enableval" = yes; then
4298 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4299 else
4300 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4301 fi
4302
4303else
4304
4305 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4306 if test "x$LINE" != x ; then
4307 eval "DEFAULT_$LINE"
4308 else
4309 no_cache=1
4310 fi
4311
4312 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4313
4314fi;
4315
4316 eval "$ac_cv_use_protocols"
4317 if test "$no_cache" != 1; then
4318 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4319 fi
4320
4321 if test "$wxUSE_PROTOCOL" = yes; then
4322 echo "$as_me:$LINENO: result: yes" >&5
4323echo "${ECHO_T}yes" >&6
4324 else
4325 echo "$as_me:$LINENO: result: no" >&5
4326echo "${ECHO_T}no" >&6
4327 fi
4328
4329
4330 enablestring=
4331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4332echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4333 no_cache=0
4334 # Check whether --enable-ftp or --disable-ftp was given.
4335if test "${enable_ftp+set}" = set; then
4336 enableval="$enable_ftp"
4337
4338 if test "$enableval" = yes; then
4339 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4340 else
4341 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4342 fi
4343
4344else
4345
4346 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4347 if test "x$LINE" != x ; then
4348 eval "DEFAULT_$LINE"
4349 else
4350 no_cache=1
4351 fi
4352
4353 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4354
4355fi;
4356
4357 eval "$ac_cv_use_ftp"
4358 if test "$no_cache" != 1; then
4359 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4360 fi
4361
4362 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4363 echo "$as_me:$LINENO: result: yes" >&5
4364echo "${ECHO_T}yes" >&6
4365 else
4366 echo "$as_me:$LINENO: result: no" >&5
4367echo "${ECHO_T}no" >&6
4368 fi
4369
4370
4371 enablestring=
4372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4373echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4374 no_cache=0
4375 # Check whether --enable-http or --disable-http was given.
4376if test "${enable_http+set}" = set; then
4377 enableval="$enable_http"
4378
4379 if test "$enableval" = yes; then
4380 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4381 else
4382 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4383 fi
4384
4385else
4386
4387 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4388 if test "x$LINE" != x ; then
4389 eval "DEFAULT_$LINE"
4390 else
4391 no_cache=1
4392 fi
4393
4394 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4395
4396fi;
4397
4398 eval "$ac_cv_use_http"
4399 if test "$no_cache" != 1; then
4400 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4401 fi
4402
4403 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4404 echo "$as_me:$LINENO: result: yes" >&5
4405echo "${ECHO_T}yes" >&6
4406 else
4407 echo "$as_me:$LINENO: result: no" >&5
4408echo "${ECHO_T}no" >&6
4409 fi
4410
4411
4412 enablestring=
4413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4414echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4415 no_cache=0
4416 # Check whether --enable-fileproto or --disable-fileproto was given.
4417if test "${enable_fileproto+set}" = set; then
4418 enableval="$enable_fileproto"
4419
4420 if test "$enableval" = yes; then
4421 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4422 else
4423 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4424 fi
4425
4426else
4427
4428 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4429 if test "x$LINE" != x ; then
4430 eval "DEFAULT_$LINE"
4431 else
4432 no_cache=1
4433 fi
4434
4435 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4436
4437fi;
4438
4439 eval "$ac_cv_use_fileproto"
4440 if test "$no_cache" != 1; then
4441 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4442 fi
4443
4444 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4445 echo "$as_me:$LINENO: result: yes" >&5
4446echo "${ECHO_T}yes" >&6
4447 else
4448 echo "$as_me:$LINENO: result: no" >&5
4449echo "${ECHO_T}no" >&6
4450 fi
4451
4452
4453 enablestring=
4454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4455echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4456 no_cache=0
4457 # Check whether --enable-sockets or --disable-sockets was given.
4458if test "${enable_sockets+set}" = set; then
4459 enableval="$enable_sockets"
4460
4461 if test "$enableval" = yes; then
4462 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4463 else
4464 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4465 fi
4466
4467else
4468
4469 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4470 if test "x$LINE" != x ; then
4471 eval "DEFAULT_$LINE"
4472 else
4473 no_cache=1
4474 fi
4475
4476 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4477
4478fi;
4479
4480 eval "$ac_cv_use_sockets"
4481 if test "$no_cache" != 1; then
4482 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4483 fi
4484
4485 if test "$wxUSE_SOCKETS" = yes; then
4486 echo "$as_me:$LINENO: result: yes" >&5
4487echo "${ECHO_T}yes" >&6
4488 else
4489 echo "$as_me:$LINENO: result: no" >&5
4490echo "${ECHO_T}no" >&6
4491 fi
4492
4493
4494 enablestring=
4495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4496echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4497 no_cache=0
4498 # Check whether --enable-ole or --disable-ole was given.
4499if test "${enable_ole+set}" = set; then
4500 enableval="$enable_ole"
4501
4502 if test "$enableval" = yes; then
4503 ac_cv_use_ole='wxUSE_OLE=yes'
4504 else
4505 ac_cv_use_ole='wxUSE_OLE=no'
4506 fi
4507
4508else
4509
4510 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4511 if test "x$LINE" != x ; then
4512 eval "DEFAULT_$LINE"
4513 else
4514 no_cache=1
4515 fi
4516
4517 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4518
4519fi;
4520
4521 eval "$ac_cv_use_ole"
4522 if test "$no_cache" != 1; then
4523 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4524 fi
4525
4526 if test "$wxUSE_OLE" = yes; then
4527 echo "$as_me:$LINENO: result: yes" >&5
4528echo "${ECHO_T}yes" >&6
4529 else
4530 echo "$as_me:$LINENO: result: no" >&5
4531echo "${ECHO_T}no" >&6
4532 fi
4533
4534
4535 enablestring=
4536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4537echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4538 no_cache=0
4539 # Check whether --enable-dataobj or --disable-dataobj was given.
4540if test "${enable_dataobj+set}" = set; then
4541 enableval="$enable_dataobj"
4542
4543 if test "$enableval" = yes; then
4544 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4545 else
4546 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4547 fi
4548
4549else
4550
4551 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4552 if test "x$LINE" != x ; then
4553 eval "DEFAULT_$LINE"
4554 else
4555 no_cache=1
4556 fi
4557
4558 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4559
4560fi;
4561
4562 eval "$ac_cv_use_dataobj"
4563 if test "$no_cache" != 1; then
4564 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4565 fi
4566
4567 if test "$wxUSE_DATAOBJ" = yes; then
4568 echo "$as_me:$LINENO: result: yes" >&5
4569echo "${ECHO_T}yes" >&6
4570 else
4571 echo "$as_me:$LINENO: result: no" >&5
4572echo "${ECHO_T}no" >&6
4573 fi
4574
4575
4576
4577 enablestring=
4578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4579echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4580 no_cache=0
4581 # Check whether --enable-ipc or --disable-ipc was given.
4582if test "${enable_ipc+set}" = set; then
4583 enableval="$enable_ipc"
4584
4585 if test "$enableval" = yes; then
4586 ac_cv_use_ipc='wxUSE_IPC=yes'
4587 else
4588 ac_cv_use_ipc='wxUSE_IPC=no'
4589 fi
4590
4591else
4592
4593 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4594 if test "x$LINE" != x ; then
4595 eval "DEFAULT_$LINE"
4596 else
4597 no_cache=1
4598 fi
4599
4600 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4601
4602fi;
4603
4604 eval "$ac_cv_use_ipc"
4605 if test "$no_cache" != 1; then
4606 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4607 fi
4608
4609 if test "$wxUSE_IPC" = yes; then
4610 echo "$as_me:$LINENO: result: yes" >&5
4611echo "${ECHO_T}yes" >&6
4612 else
4613 echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
4615 fi
4616
4617
4618
4619 enablestring=
4620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4621echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4622 no_cache=0
4623 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4624if test "${enable_apple_ieee+set}" = set; then
4625 enableval="$enable_apple_ieee"
4626
4627 if test "$enableval" = yes; then
4628 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4629 else
4630 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4631 fi
4632
4633else
4634
4635 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4636 if test "x$LINE" != x ; then
4637 eval "DEFAULT_$LINE"
4638 else
4639 no_cache=1
4640 fi
4641
4642 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4643
4644fi;
4645
4646 eval "$ac_cv_use_apple_ieee"
4647 if test "$no_cache" != 1; then
4648 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4649 fi
4650
4651 if test "$wxUSE_APPLE_IEEE" = yes; then
4652 echo "$as_me:$LINENO: result: yes" >&5
4653echo "${ECHO_T}yes" >&6
4654 else
4655 echo "$as_me:$LINENO: result: no" >&5
4656echo "${ECHO_T}no" >&6
4657 fi
4658
4659
81f90336
MW
4660 enablestring=
4661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4662echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4663 no_cache=0
4664 # Check whether --enable-arcstream or --disable-arcstream was given.
4665if test "${enable_arcstream+set}" = set; then
4666 enableval="$enable_arcstream"
4667
4668 if test "$enableval" = yes; then
9e8e867f 4669 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4670 else
9e8e867f 4671 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4672 fi
4673
4674else
4675
9e8e867f 4676 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4677 if test "x$LINE" != x ; then
4678 eval "DEFAULT_$LINE"
4679 else
4680 no_cache=1
4681 fi
4682
9e8e867f 4683 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4684
4685fi;
4686
4687 eval "$ac_cv_use_arcstream"
4688 if test "$no_cache" != 1; then
4689 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4690 fi
4691
9e8e867f 4692 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4693 echo "$as_me:$LINENO: result: yes" >&5
4694echo "${ECHO_T}yes" >&6
4695 else
4696 echo "$as_me:$LINENO: result: no" >&5
4697echo "${ECHO_T}no" >&6
4698 fi
4699
4700
a848cd7e 4701 enablestring=
36b6448c
VZ
4702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4703echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4704 no_cache=0
36b6448c
VZ
4705 # Check whether --enable-backtrace or --disable-backtrace was given.
4706if test "${enable_backtrace+set}" = set; then
4707 enableval="$enable_backtrace"
a848cd7e
SC
4708
4709 if test "$enableval" = yes; then
36b6448c 4710 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4711 else
36b6448c 4712 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4713 fi
4714
4715else
4716
36b6448c 4717 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4718 if test "x$LINE" != x ; then
4719 eval "DEFAULT_$LINE"
4720 else
4721 no_cache=1
4722 fi
4723
36b6448c 4724 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4725
4726fi;
4727
36b6448c 4728 eval "$ac_cv_use_backtrace"
a848cd7e 4729 if test "$no_cache" != 1; then
36b6448c 4730 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4731 fi
4732
36b6448c 4733 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4734 echo "$as_me:$LINENO: result: yes" >&5
4735echo "${ECHO_T}yes" >&6
4736 else
4737 echo "$as_me:$LINENO: result: no" >&5
4738echo "${ECHO_T}no" >&6
4739 fi
4740
4741
eaff0f0d 4742 enablestring=
36b6448c
VZ
4743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4744echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4745 no_cache=0
36b6448c
VZ
4746 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4747if test "${enable_catch_segvs+set}" = set; then
4748 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4749
4750 if test "$enableval" = yes; then
36b6448c 4751 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4752 else
36b6448c 4753 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4754 fi
4755
4756else
4757
36b6448c 4758 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4759 if test "x$LINE" != x ; then
4760 eval "DEFAULT_$LINE"
4761 else
4762 no_cache=1
4763 fi
4764
36b6448c 4765 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4766
4767fi;
4768
36b6448c 4769 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4770 if test "$no_cache" != 1; then
36b6448c 4771 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4772 fi
4773
36b6448c 4774 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4775 echo "$as_me:$LINENO: result: yes" >&5
4776echo "${ECHO_T}yes" >&6
4777 else
4778 echo "$as_me:$LINENO: result: no" >&5
4779echo "${ECHO_T}no" >&6
4780 fi
4781
4782
a848cd7e
SC
4783 enablestring=
4784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4785echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4786 no_cache=0
4787 # Check whether --enable-cmdline or --disable-cmdline was given.
4788if test "${enable_cmdline+set}" = set; then
4789 enableval="$enable_cmdline"
4790
4791 if test "$enableval" = yes; then
4792 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4793 else
4794 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4795 fi
4796
4797else
4798
4799 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4800 if test "x$LINE" != x ; then
4801 eval "DEFAULT_$LINE"
4802 else
4803 no_cache=1
4804 fi
4805
4806 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4807
4808fi;
4809
4810 eval "$ac_cv_use_cmdline"
4811 if test "$no_cache" != 1; then
4812 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4813 fi
4814
4815 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4816 echo "$as_me:$LINENO: result: yes" >&5
4817echo "${ECHO_T}yes" >&6
4818 else
4819 echo "$as_me:$LINENO: result: no" >&5
4820echo "${ECHO_T}no" >&6
4821 fi
4822
4823
4824 enablestring=
4825 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4826echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4827 no_cache=0
4828 # Check whether --enable-datetime or --disable-datetime was given.
4829if test "${enable_datetime+set}" = set; then
4830 enableval="$enable_datetime"
4831
4832 if test "$enableval" = yes; then
4833 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4834 else
4835 ac_cv_use_datetime='wxUSE_DATETIME=no'
4836 fi
4837
4838else
4839
4840 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4841 if test "x$LINE" != x ; then
4842 eval "DEFAULT_$LINE"
4843 else
4844 no_cache=1
4845 fi
4846
4847 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4848
4849fi;
4850
4851 eval "$ac_cv_use_datetime"
4852 if test "$no_cache" != 1; then
4853 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4854 fi
4855
4856 if test "$wxUSE_DATETIME" = yes; then
4857 echo "$as_me:$LINENO: result: yes" >&5
4858echo "${ECHO_T}yes" >&6
4859 else
4860 echo "$as_me:$LINENO: result: no" >&5
4861echo "${ECHO_T}no" >&6
4862 fi
4863
4864
36b6448c
VZ
4865 enablestring=
4866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4867echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4868 no_cache=0
4869 # Check whether --enable-debugreport or --disable-debugreport was given.
4870if test "${enable_debugreport+set}" = set; then
4871 enableval="$enable_debugreport"
4872
4873 if test "$enableval" = yes; then
4874 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4875 else
4876 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4877 fi
4878
4879else
4880
4881 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4882 if test "x$LINE" != x ; then
4883 eval "DEFAULT_$LINE"
4884 else
4885 no_cache=1
4886 fi
4887
4888 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4889
4890fi;
4891
4892 eval "$ac_cv_use_debugreport"
4893 if test "$no_cache" != 1; then
4894 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4895 fi
4896
4897 if test "$wxUSE_DEBUGREPORT" = yes; then
4898 echo "$as_me:$LINENO: result: yes" >&5
4899echo "${ECHO_T}yes" >&6
4900 else
4901 echo "$as_me:$LINENO: result: no" >&5
4902echo "${ECHO_T}no" >&6
4903 fi
4904
4905
a848cd7e
SC
4906 enablestring=
4907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4908echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4909 no_cache=0
4910 # Check whether --enable-dialupman or --disable-dialupman was given.
4911if test "${enable_dialupman+set}" = set; then
4912 enableval="$enable_dialupman"
4913
4914 if test "$enableval" = yes; then
4915 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4916 else
4917 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4918 fi
4919
4920else
4921
4922 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4923 if test "x$LINE" != x ; then
4924 eval "DEFAULT_$LINE"
4925 else
4926 no_cache=1
4927 fi
4928
4929 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4930
4931fi;
4932
4933 eval "$ac_cv_use_dialupman"
4934 if test "$no_cache" != 1; then
4935 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4936 fi
4937
4938 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4939 echo "$as_me:$LINENO: result: yes" >&5
4940echo "${ECHO_T}yes" >&6
4941 else
4942 echo "$as_me:$LINENO: result: no" >&5
4943echo "${ECHO_T}no" >&6
4944 fi
4945
4946
4947 enablestring=
4948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4949echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4950 no_cache=0
4951 # Check whether --enable-dynlib or --disable-dynlib was given.
4952if test "${enable_dynlib+set}" = set; then
4953 enableval="$enable_dynlib"
4954
4955 if test "$enableval" = yes; then
4956 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4957 else
4958 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4959 fi
4960
4961else
4962
4963 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4964 if test "x$LINE" != x ; then
4965 eval "DEFAULT_$LINE"
4966 else
4967 no_cache=1
4968 fi
4969
4970 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4971
4972fi;
4973
4974 eval "$ac_cv_use_dynlib"
4975 if test "$no_cache" != 1; then
4976 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4977 fi
4978
4979 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4980 echo "$as_me:$LINENO: result: yes" >&5
4981echo "${ECHO_T}yes" >&6
4982 else
4983 echo "$as_me:$LINENO: result: no" >&5
4984echo "${ECHO_T}no" >&6
4985 fi
4986
4987
4988 enablestring=
4989 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4990echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4991 no_cache=0
4992 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4993if test "${enable_dynamicloader+set}" = set; then
4994 enableval="$enable_dynamicloader"
4995
4996 if test "$enableval" = yes; then
4997 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4998 else
4999 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5000 fi
5001
5002else
5003
5004 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5005 if test "x$LINE" != x ; then
5006 eval "DEFAULT_$LINE"
5007 else
5008 no_cache=1
5009 fi
5010
5011 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5012
5013fi;
5014
5015 eval "$ac_cv_use_dynamicloader"
5016 if test "$no_cache" != 1; then
5017 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5018 fi
5019
5020 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5021 echo "$as_me:$LINENO: result: yes" >&5
5022echo "${ECHO_T}yes" >&6
5023 else
5024 echo "$as_me:$LINENO: result: no" >&5
5025echo "${ECHO_T}no" >&6
5026 fi
5027
5028
5029 enablestring=
5030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5031echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5032 no_cache=0
5033 # Check whether --enable-exceptions or --disable-exceptions was given.
5034if test "${enable_exceptions+set}" = set; then
5035 enableval="$enable_exceptions"
5036
5037 if test "$enableval" = yes; then
5038 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5039 else
5040 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5041 fi
5042
5043else
5044
5045 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5046 if test "x$LINE" != x ; then
5047 eval "DEFAULT_$LINE"
5048 else
5049 no_cache=1
5050 fi
5051
5052 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5053
5054fi;
5055
5056 eval "$ac_cv_use_exceptions"
5057 if test "$no_cache" != 1; then
5058 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5059 fi
5060
5061 if test "$wxUSE_EXCEPTIONS" = yes; then
5062 echo "$as_me:$LINENO: result: yes" >&5
5063echo "${ECHO_T}yes" >&6
5064 else
5065 echo "$as_me:$LINENO: result: no" >&5
5066echo "${ECHO_T}no" >&6
5067 fi
5068
5069
5070 enablestring=
5071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5072echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5073 no_cache=0
5074 # Check whether --enable-ffile or --disable-ffile was given.
5075if test "${enable_ffile+set}" = set; then
5076 enableval="$enable_ffile"
5077
5078 if test "$enableval" = yes; then
5079 ac_cv_use_ffile='wxUSE_FFILE=yes'
5080 else
5081 ac_cv_use_ffile='wxUSE_FFILE=no'
5082 fi
5083
5084else
5085
5086 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5087 if test "x$LINE" != x ; then
5088 eval "DEFAULT_$LINE"
5089 else
5090 no_cache=1
5091 fi
5092
5093 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5094
5095fi;
5096
5097 eval "$ac_cv_use_ffile"
5098 if test "$no_cache" != 1; then
5099 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5100 fi
5101
5102 if test "$wxUSE_FFILE" = yes; then
5103 echo "$as_me:$LINENO: result: yes" >&5
5104echo "${ECHO_T}yes" >&6
5105 else
5106 echo "$as_me:$LINENO: result: no" >&5
5107echo "${ECHO_T}no" >&6
5108 fi
5109
5110
5111 enablestring=
5112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5113echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5114 no_cache=0
5115 # Check whether --enable-file or --disable-file was given.
5116if test "${enable_file+set}" = set; then
5117 enableval="$enable_file"
5118
5119 if test "$enableval" = yes; then
5120 ac_cv_use_file='wxUSE_FILE=yes'
5121 else
5122 ac_cv_use_file='wxUSE_FILE=no'
5123 fi
5124
5125else
5126
5127 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5128 if test "x$LINE" != x ; then
5129 eval "DEFAULT_$LINE"
5130 else
5131 no_cache=1
5132 fi
5133
5134 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5135
5136fi;
5137
5138 eval "$ac_cv_use_file"
5139 if test "$no_cache" != 1; then
5140 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5141 fi
5142
5143 if test "$wxUSE_FILE" = yes; then
5144 echo "$as_me:$LINENO: result: yes" >&5
5145echo "${ECHO_T}yes" >&6
5146 else
5147 echo "$as_me:$LINENO: result: no" >&5
5148echo "${ECHO_T}no" >&6
5149 fi
5150
5151
5152 enablestring=
5153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5154echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5155 no_cache=0
5156 # Check whether --enable-filesystem or --disable-filesystem was given.
5157if test "${enable_filesystem+set}" = set; then
5158 enableval="$enable_filesystem"
5159
5160 if test "$enableval" = yes; then
5161 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5162 else
5163 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5164 fi
5165
5166else
5167
5168 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5169 if test "x$LINE" != x ; then
5170 eval "DEFAULT_$LINE"
5171 else
5172 no_cache=1
5173 fi
5174
5175 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5176
5177fi;
5178
5179 eval "$ac_cv_use_filesystem"
5180 if test "$no_cache" != 1; then
5181 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5182 fi
5183
5184 if test "$wxUSE_FILESYSTEM" = yes; then
5185 echo "$as_me:$LINENO: result: yes" >&5
5186echo "${ECHO_T}yes" >&6
5187 else
5188 echo "$as_me:$LINENO: result: no" >&5
5189echo "${ECHO_T}no" >&6
5190 fi
5191
5192
5193 enablestring=
5194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5195echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5196 no_cache=0
5197 # Check whether --enable-fontmap or --disable-fontmap was given.
5198if test "${enable_fontmap+set}" = set; then
5199 enableval="$enable_fontmap"
5200
5201 if test "$enableval" = yes; then
5202 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5203 else
5204 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5205 fi
5206
5207else
5208
5209 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5210 if test "x$LINE" != x ; then
5211 eval "DEFAULT_$LINE"
5212 else
5213 no_cache=1
5214 fi
5215
5216 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5217
5218fi;
5219
5220 eval "$ac_cv_use_fontmap"
5221 if test "$no_cache" != 1; then
5222 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5223 fi
5224
5225 if test "$wxUSE_FONTMAP" = yes; then
5226 echo "$as_me:$LINENO: result: yes" >&5
5227echo "${ECHO_T}yes" >&6
5228 else
5229 echo "$as_me:$LINENO: result: no" >&5
5230echo "${ECHO_T}no" >&6
5231 fi
5232
5233
5234 enablestring=
5235 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5236echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5237 no_cache=0
5238 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5239if test "${enable_fs_inet+set}" = set; then
5240 enableval="$enable_fs_inet"
5241
5242 if test "$enableval" = yes; then
5243 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5244 else
5245 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5246 fi
5247
5248else
5249
5250 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5251 if test "x$LINE" != x ; then
5252 eval "DEFAULT_$LINE"
5253 else
5254 no_cache=1
5255 fi
5256
5257 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5258
5259fi;
5260
5261 eval "$ac_cv_use_fs_inet"
5262 if test "$no_cache" != 1; then
5263 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5264 fi
5265
5266 if test "$wxUSE_FS_INET" = yes; then
5267 echo "$as_me:$LINENO: result: yes" >&5
5268echo "${ECHO_T}yes" >&6
5269 else
5270 echo "$as_me:$LINENO: result: no" >&5
5271echo "${ECHO_T}no" >&6
5272 fi
5273
5274
5275 enablestring=
5276 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5277echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5278 no_cache=0
5279 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5280if test "${enable_fs_zip+set}" = set; then
5281 enableval="$enable_fs_zip"
5282
5283 if test "$enableval" = yes; then
5284 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5285 else
5286 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5287 fi
5288
5289else
5290
5291 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5292 if test "x$LINE" != x ; then
5293 eval "DEFAULT_$LINE"
5294 else
5295 no_cache=1
5296 fi
5297
5298 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5299
5300fi;
5301
5302 eval "$ac_cv_use_fs_zip"
5303 if test "$no_cache" != 1; then
5304 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5305 fi
5306
5307 if test "$wxUSE_FS_ZIP" = yes; then
5308 echo "$as_me:$LINENO: result: yes" >&5
5309echo "${ECHO_T}yes" >&6
5310 else
5311 echo "$as_me:$LINENO: result: no" >&5
5312echo "${ECHO_T}no" >&6
5313 fi
5314
5315
5316 enablestring=
5317 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5318echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5319 no_cache=0
5320 # Check whether --enable-geometry or --disable-geometry was given.
5321if test "${enable_geometry+set}" = set; then
5322 enableval="$enable_geometry"
5323
5324 if test "$enableval" = yes; then
5325 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5326 else
5327 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5328 fi
5329
5330else
5331
5332 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5333 if test "x$LINE" != x ; then
5334 eval "DEFAULT_$LINE"
5335 else
5336 no_cache=1
5337 fi
5338
5339 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5340
5341fi;
5342
5343 eval "$ac_cv_use_geometry"
5344 if test "$no_cache" != 1; then
5345 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5346 fi
5347
5348 if test "$wxUSE_GEOMETRY" = yes; then
5349 echo "$as_me:$LINENO: result: yes" >&5
5350echo "${ECHO_T}yes" >&6
5351 else
5352 echo "$as_me:$LINENO: result: no" >&5
5353echo "${ECHO_T}no" >&6
5354 fi
5355
5356
5357 enablestring=
5358 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5359echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5360 no_cache=0
5361 # Check whether --enable-log or --disable-log was given.
5362if test "${enable_log+set}" = set; then
5363 enableval="$enable_log"
5364
5365 if test "$enableval" = yes; then
5366 ac_cv_use_log='wxUSE_LOG=yes'
5367 else
5368 ac_cv_use_log='wxUSE_LOG=no'
5369 fi
5370
5371else
5372
5373 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5374 if test "x$LINE" != x ; then
5375 eval "DEFAULT_$LINE"
5376 else
5377 no_cache=1
5378 fi
5379
5380 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5381
5382fi;
5383
5384 eval "$ac_cv_use_log"
5385 if test "$no_cache" != 1; then
5386 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5387 fi
5388
5389 if test "$wxUSE_LOG" = yes; then
5390 echo "$as_me:$LINENO: result: yes" >&5
5391echo "${ECHO_T}yes" >&6
5392 else
5393 echo "$as_me:$LINENO: result: no" >&5
5394echo "${ECHO_T}no" >&6
5395 fi
5396
5397
5398 enablestring=
5399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5400echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5401 no_cache=0
5402 # Check whether --enable-longlong or --disable-longlong was given.
5403if test "${enable_longlong+set}" = set; then
5404 enableval="$enable_longlong"
5405
5406 if test "$enableval" = yes; then
5407 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5408 else
5409 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5410 fi
5411
5412else
5413
5414 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5415 if test "x$LINE" != x ; then
5416 eval "DEFAULT_$LINE"
5417 else
5418 no_cache=1
5419 fi
5420
5421 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5422
5423fi;
5424
5425 eval "$ac_cv_use_longlong"
5426 if test "$no_cache" != 1; then
5427 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5428 fi
5429
5430 if test "$wxUSE_LONGLONG" = yes; then
5431 echo "$as_me:$LINENO: result: yes" >&5
5432echo "${ECHO_T}yes" >&6
5433 else
5434 echo "$as_me:$LINENO: result: no" >&5
5435echo "${ECHO_T}no" >&6
5436 fi
5437
5438
5439 enablestring=
5440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5441echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5442 no_cache=0
5443 # Check whether --enable-mimetype or --disable-mimetype was given.
5444if test "${enable_mimetype+set}" = set; then
5445 enableval="$enable_mimetype"
5446
5447 if test "$enableval" = yes; then
5448 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5449 else
5450 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5451 fi
5452
5453else
5454
5455 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5456 if test "x$LINE" != x ; then
5457 eval "DEFAULT_$LINE"
5458 else
5459 no_cache=1
5460 fi
5461
5462 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5463
5464fi;
5465
5466 eval "$ac_cv_use_mimetype"
5467 if test "$no_cache" != 1; then
5468 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5469 fi
5470
5471 if test "$wxUSE_MIMETYPE" = yes; then
5472 echo "$as_me:$LINENO: result: yes" >&5
5473echo "${ECHO_T}yes" >&6
5474 else
5475 echo "$as_me:$LINENO: result: no" >&5
5476echo "${ECHO_T}no" >&6
5477 fi
5478
5479
5480 enablestring=
5481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5482echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5483 no_cache=0
5484 # Check whether --enable-mslu or --disable-mslu was given.
5485if test "${enable_mslu+set}" = set; then
5486 enableval="$enable_mslu"
5487
5488 if test "$enableval" = yes; then
5489 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5490 else
5491 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5492 fi
5493
5494else
5495
5496 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5497 if test "x$LINE" != x ; then
5498 eval "DEFAULT_$LINE"
5499 else
5500 no_cache=1
5501 fi
5502
5503 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5504
5505fi;
5506
5507 eval "$ac_cv_use_mslu"
5508 if test "$no_cache" != 1; then
5509 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5510 fi
5511
5512 if test "$wxUSE_UNICODE_MSLU" = yes; then
5513 echo "$as_me:$LINENO: result: yes" >&5
5514echo "${ECHO_T}yes" >&6
5515 else
5516 echo "$as_me:$LINENO: result: no" >&5
5517echo "${ECHO_T}no" >&6
5518 fi
5519
5520
5521 enablestring=
5522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5523echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5524 no_cache=0
5525 # Check whether --enable-snglinst or --disable-snglinst was given.
5526if test "${enable_snglinst+set}" = set; then
5527 enableval="$enable_snglinst"
5528
5529 if test "$enableval" = yes; then
5530 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5531 else
5532 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5533 fi
5534
5535else
5536
5537 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5538 if test "x$LINE" != x ; then
5539 eval "DEFAULT_$LINE"
5540 else
5541 no_cache=1
5542 fi
5543
5544 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5545
5546fi;
5547
5548 eval "$ac_cv_use_snglinst"
5549 if test "$no_cache" != 1; then
5550 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5551 fi
5552
5553 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5554 echo "$as_me:$LINENO: result: yes" >&5
5555echo "${ECHO_T}yes" >&6
5556 else
5557 echo "$as_me:$LINENO: result: no" >&5
5558echo "${ECHO_T}no" >&6
5559 fi
5560
5561
5562 enablestring=
07158944
VZ
5563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5564echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5565 no_cache=0
07158944
VZ
5566 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5567if test "${enable_std_iostreams+set}" = set; then
5568 enableval="$enable_std_iostreams"
a848cd7e
SC
5569
5570 if test "$enableval" = yes; then
07158944 5571 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5572 else
07158944 5573 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5574 fi
5575
5576else
5577
07158944 5578 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5579 if test "x$LINE" != x ; then
5580 eval "DEFAULT_$LINE"
5581 else
5582 no_cache=1
5583 fi
5584
07158944 5585 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5586
5587fi;
5588
07158944 5589 eval "$ac_cv_use_std_iostreams"
a848cd7e 5590 if test "$no_cache" != 1; then
07158944 5591 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5592 fi
5593
07158944 5594 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5595 echo "$as_me:$LINENO: result: yes" >&5
5596echo "${ECHO_T}yes" >&6
5597 else
5598 echo "$as_me:$LINENO: result: no" >&5
5599echo "${ECHO_T}no" >&6
5600 fi
5601
5602
59746b65
MW
5603 enablestring=
5604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5605echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5606 no_cache=0
5607 # Check whether --enable-std_string or --disable-std_string was given.
5608if test "${enable_std_string+set}" = set; then
5609 enableval="$enable_std_string"
5610
5611 if test "$enableval" = yes; then
5612 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5613 else
5614 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5615 fi
5616
5617else
5618
5619 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5620 if test "x$LINE" != x ; then
5621 eval "DEFAULT_$LINE"
5622 else
5623 no_cache=1
5624 fi
5625
5626 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5627
5628fi;
5629
5630 eval "$ac_cv_use_std_string"
5631 if test "$no_cache" != 1; then
5632 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5633 fi
5634
5635 if test "$wxUSE_STD_STRING" = yes; then
5636 echo "$as_me:$LINENO: result: yes" >&5
5637echo "${ECHO_T}yes" >&6
5638 else
5639 echo "$as_me:$LINENO: result: no" >&5
5640echo "${ECHO_T}no" >&6
5641 fi
5642
5643
a848cd7e 5644 enablestring=
07158944
VZ
5645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5646echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5647 no_cache=0
07158944
VZ
5648 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5649if test "${enable_stdpaths+set}" = set; then
5650 enableval="$enable_stdpaths"
a848cd7e
SC
5651
5652 if test "$enableval" = yes; then
07158944 5653 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5654 else
07158944 5655 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5656 fi
5657
5658else
5659
07158944 5660 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5661 if test "x$LINE" != x ; then
5662 eval "DEFAULT_$LINE"
5663 else
5664 no_cache=1
5665 fi
5666
07158944 5667 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5668
5669fi;
5670
07158944 5671 eval "$ac_cv_use_stdpaths"
a848cd7e 5672 if test "$no_cache" != 1; then
07158944 5673 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5674 fi
5675
07158944 5676 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5677 echo "$as_me:$LINENO: result: yes" >&5
5678echo "${ECHO_T}yes" >&6
5679 else
5680 echo "$as_me:$LINENO: result: no" >&5
5681echo "${ECHO_T}no" >&6
5682 fi
5683
5684
5685 enablestring=
5686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5687echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5688 no_cache=0
5689 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5690if test "${enable_stopwatch+set}" = set; then
5691 enableval="$enable_stopwatch"
5692
5693 if test "$enableval" = yes; then
5694 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5695 else
5696 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5697 fi
5698
5699else
5700
5701 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5702 if test "x$LINE" != x ; then
5703 eval "DEFAULT_$LINE"
5704 else
5705 no_cache=1
5706 fi
5707
5708 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5709
5710fi;
5711
5712 eval "$ac_cv_use_stopwatch"
5713 if test "$no_cache" != 1; then
5714 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5715 fi
5716
5717 if test "$wxUSE_STOPWATCH" = yes; then
5718 echo "$as_me:$LINENO: result: yes" >&5
5719echo "${ECHO_T}yes" >&6
5720 else
5721 echo "$as_me:$LINENO: result: no" >&5
5722echo "${ECHO_T}no" >&6
5723 fi
5724
5725
07158944
VZ
5726 enablestring=
5727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5728echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5729 no_cache=0
5730 # Check whether --enable-streams or --disable-streams was given.
5731if test "${enable_streams+set}" = set; then
5732 enableval="$enable_streams"
5733
5734 if test "$enableval" = yes; then
5735 ac_cv_use_streams='wxUSE_STREAMS=yes'
5736 else
5737 ac_cv_use_streams='wxUSE_STREAMS=no'
5738 fi
5739
5740else
5741
5742 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5743 if test "x$LINE" != x ; then
5744 eval "DEFAULT_$LINE"
5745 else
5746 no_cache=1
5747 fi
5748
5749 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5750
5751fi;
5752
5753 eval "$ac_cv_use_streams"
5754 if test "$no_cache" != 1; then
5755 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5756 fi
5757
5758 if test "$wxUSE_STREAMS" = yes; then
5759 echo "$as_me:$LINENO: result: yes" >&5
5760echo "${ECHO_T}yes" >&6
5761 else
5762 echo "$as_me:$LINENO: result: no" >&5
5763echo "${ECHO_T}no" >&6
5764 fi
5765
5766
a848cd7e
SC
5767 enablestring=
5768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5769echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5770 no_cache=0
5771 # Check whether --enable-system_options or --disable-system_options was given.
5772if test "${enable_system_options+set}" = set; then
5773 enableval="$enable_system_options"
5774
5775 if test "$enableval" = yes; then
5776 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5777 else
5778 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5779 fi
5780
5781else
5782
5783 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5784 if test "x$LINE" != x ; then
5785 eval "DEFAULT_$LINE"
5786 else
5787 no_cache=1
5788 fi
5789
5790 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5791
5792fi;
5793
5794 eval "$ac_cv_use_system_options"
5795 if test "$no_cache" != 1; then
5796 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5797 fi
5798
5799 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5800 echo "$as_me:$LINENO: result: yes" >&5
5801echo "${ECHO_T}yes" >&6
5802 else
5803 echo "$as_me:$LINENO: result: no" >&5
5804echo "${ECHO_T}no" >&6
5805 fi
5806
5807
5808 enablestring=
5809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5810echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5811 no_cache=0
5812 # Check whether --enable-textbuf or --disable-textbuf was given.
5813if test "${enable_textbuf+set}" = set; then
5814 enableval="$enable_textbuf"
5815
5816 if test "$enableval" = yes; then
5817 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5818 else
5819 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5820 fi
5821
5822else
5823
5824 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5825 if test "x$LINE" != x ; then
5826 eval "DEFAULT_$LINE"
5827 else
5828 no_cache=1
5829 fi
5830
5831 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5832
5833fi;
5834
5835 eval "$ac_cv_use_textbuf"
5836 if test "$no_cache" != 1; then
5837 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5838 fi
5839
5840 if test "$wxUSE_TEXTBUFFER" = yes; then
5841 echo "$as_me:$LINENO: result: yes" >&5
5842echo "${ECHO_T}yes" >&6
5843 else
5844 echo "$as_me:$LINENO: result: no" >&5
5845echo "${ECHO_T}no" >&6
5846 fi
5847
5848
5849 enablestring=
5850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5851echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5852 no_cache=0
5853 # Check whether --enable-textfile or --disable-textfile was given.
5854if test "${enable_textfile+set}" = set; then
5855 enableval="$enable_textfile"
5856
5857 if test "$enableval" = yes; then
5858 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5859 else
5860 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5861 fi
5862
5863else
5864
5865 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5866 if test "x$LINE" != x ; then
5867 eval "DEFAULT_$LINE"
5868 else
5869 no_cache=1
5870 fi
5871
5872 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5873
5874fi;
5875
5876 eval "$ac_cv_use_textfile"
5877 if test "$no_cache" != 1; then
5878 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5879 fi
5880
5881 if test "$wxUSE_TEXTFILE" = yes; then
5882 echo "$as_me:$LINENO: result: yes" >&5
5883echo "${ECHO_T}yes" >&6
5884 else
5885 echo "$as_me:$LINENO: result: no" >&5
5886echo "${ECHO_T}no" >&6
5887 fi
5888
5889
5890 enablestring=
5891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5892echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5893 no_cache=0
5894 # Check whether --enable-timer or --disable-timer was given.
5895if test "${enable_timer+set}" = set; then
5896 enableval="$enable_timer"
5897
5898 if test "$enableval" = yes; then
5899 ac_cv_use_timer='wxUSE_TIMER=yes'
5900 else
5901 ac_cv_use_timer='wxUSE_TIMER=no'
5902 fi
5903
5904else
5905
5906 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5907 if test "x$LINE" != x ; then
5908 eval "DEFAULT_$LINE"
5909 else
5910 no_cache=1
5911 fi
5912
5913 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5914
5915fi;
5916
5917 eval "$ac_cv_use_timer"
5918 if test "$no_cache" != 1; then
5919 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5920 fi
5921
5922 if test "$wxUSE_TIMER" = yes; then
5923 echo "$as_me:$LINENO: result: yes" >&5
5924echo "${ECHO_T}yes" >&6
5925 else
5926 echo "$as_me:$LINENO: result: no" >&5
5927echo "${ECHO_T}no" >&6
5928 fi
5929
5930
5931 enablestring=
5932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5933echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5934 no_cache=0
5935 # Check whether --enable-unicode or --disable-unicode was given.
5936if test "${enable_unicode+set}" = set; then
5937 enableval="$enable_unicode"
5938
5939 if test "$enableval" = yes; then
5940 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5941 else
5942 ac_cv_use_unicode='wxUSE_UNICODE=no'
5943 fi
5944
5945else
5946
5947 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5948 if test "x$LINE" != x ; then
5949 eval "DEFAULT_$LINE"
5950 else
5951 no_cache=1
5952 fi
5953
5954 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5955
5956fi;
5957
5958 eval "$ac_cv_use_unicode"
5959 if test "$no_cache" != 1; then
5960 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5961 fi
5962
5963 if test "$wxUSE_UNICODE" = yes; then
5964 echo "$as_me:$LINENO: result: yes" >&5
5965echo "${ECHO_T}yes" >&6
5966 else
5967 echo "$as_me:$LINENO: result: no" >&5
5968echo "${ECHO_T}no" >&6
5969 fi
5970
5971
5972 enablestring=
5973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5974echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5975 no_cache=0
5976 # Check whether --enable-sound or --disable-sound was given.
5977if test "${enable_sound+set}" = set; then
5978 enableval="$enable_sound"
5979
5980 if test "$enableval" = yes; then
5981 ac_cv_use_sound='wxUSE_SOUND=yes'
5982 else
5983 ac_cv_use_sound='wxUSE_SOUND=no'
5984 fi
5985
5986else
5987
5988 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5989 if test "x$LINE" != x ; then
5990 eval "DEFAULT_$LINE"
5991 else
5992 no_cache=1
5993 fi
5994
5995 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5996
5997fi;
5998
5999 eval "$ac_cv_use_sound"
6000 if test "$no_cache" != 1; then
6001 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6002 fi
6003
6004 if test "$wxUSE_SOUND" = yes; then
6005 echo "$as_me:$LINENO: result: yes" >&5
6006echo "${ECHO_T}yes" >&6
6007 else
6008 echo "$as_me:$LINENO: result: no" >&5
6009echo "${ECHO_T}no" >&6
6010 fi
6011
6012
3b57de8b
RL
6013 enablestring=
6014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6015echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6016 no_cache=0
6017 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6018if test "${enable_mediactrl+set}" = set; then
6019 enableval="$enable_mediactrl"
6020
6021 if test "$enableval" = yes; then
6022 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6023 else
6024 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6025 fi
6026
6027else
6028
6029 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6030 if test "x$LINE" != x ; then
6031 eval "DEFAULT_$LINE"
6032 else
6033 no_cache=1
6034 fi
6035
6036 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6037
6038fi;
6039
6040 eval "$ac_cv_use_mediactrl"
6041 if test "$no_cache" != 1; then
6042 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6043 fi
6044
6045 if test "$wxUSE_MEDIACTRL" = yes; then
6046 echo "$as_me:$LINENO: result: yes" >&5
6047echo "${ECHO_T}yes" >&6
6048 else
6049 echo "$as_me:$LINENO: result: no" >&5
6050echo "${ECHO_T}no" >&6
6051 fi
6052
6053
a848cd7e
SC
6054 enablestring=
6055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6056echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6057 no_cache=0
6058 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6059if test "${enable_wxprintfv+set}" = set; then
6060 enableval="$enable_wxprintfv"
6061
6062 if test "$enableval" = yes; then
6063 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6064 else
6065 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6066 fi
6067
6068else
6069
6070 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6071 if test "x$LINE" != x ; then
6072 eval "DEFAULT_$LINE"
6073 else
6074 no_cache=1
6075 fi
6076
6077 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6078
6079fi;
6080
6081 eval "$ac_cv_use_wxprintfv"
6082 if test "$no_cache" != 1; then
6083 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6084 fi
6085
6086 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6087 echo "$as_me:$LINENO: result: yes" >&5
6088echo "${ECHO_T}yes" >&6
6089 else
6090 echo "$as_me:$LINENO: result: no" >&5
6091echo "${ECHO_T}no" >&6
6092 fi
6093
6094
6095 enablestring=
6096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6097echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6098 no_cache=0
6099 # Check whether --enable-zipstream or --disable-zipstream was given.
6100if test "${enable_zipstream+set}" = set; then
6101 enableval="$enable_zipstream"
6102
6103 if test "$enableval" = yes; then
6104 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6105 else
6106 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6107 fi
6108
6109else
6110
6111 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6112 if test "x$LINE" != x ; then
6113 eval "DEFAULT_$LINE"
6114 else
6115 no_cache=1
6116 fi
6117
6118 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6119
6120fi;
6121
6122 eval "$ac_cv_use_zipstream"
6123 if test "$no_cache" != 1; then
6124 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6125 fi
6126
6127 if test "$wxUSE_ZIPSTREAM" = yes; then
6128 echo "$as_me:$LINENO: result: yes" >&5
6129echo "${ECHO_T}yes" >&6
6130 else
6131 echo "$as_me:$LINENO: result: no" >&5
6132echo "${ECHO_T}no" >&6
6133 fi
6134
6135
a848cd7e
SC
6136
6137 enablestring=
6138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6139echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6140 no_cache=0
6141 # Check whether --enable-url or --disable-url was given.
6142if test "${enable_url+set}" = set; then
6143 enableval="$enable_url"
6144
6145 if test "$enableval" = yes; then
6146 ac_cv_use_url='wxUSE_URL=yes'
6147 else
6148 ac_cv_use_url='wxUSE_URL=no'
6149 fi
6150
6151else
6152
6153 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6154 if test "x$LINE" != x ; then
6155 eval "DEFAULT_$LINE"
6156 else
6157 no_cache=1
6158 fi
6159
6160 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6161
6162fi;
6163
6164 eval "$ac_cv_use_url"
6165 if test "$no_cache" != 1; then
6166 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6167 fi
6168
6169 if test "$wxUSE_URL" = yes; then
6170 echo "$as_me:$LINENO: result: yes" >&5
6171echo "${ECHO_T}yes" >&6
6172 else
6173 echo "$as_me:$LINENO: result: no" >&5
6174echo "${ECHO_T}no" >&6
6175 fi
6176
6177
6178 enablestring=
6179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6180echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6181 no_cache=0
6182 # Check whether --enable-protocol or --disable-protocol was given.
6183if test "${enable_protocol+set}" = set; then
6184 enableval="$enable_protocol"
6185
6186 if test "$enableval" = yes; then
6187 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6188 else
6189 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6190 fi
6191
6192else
6193
6194 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6195 if test "x$LINE" != x ; then
6196 eval "DEFAULT_$LINE"
6197 else
6198 no_cache=1
6199 fi
6200
6201 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6202
6203fi;
6204
6205 eval "$ac_cv_use_protocol"
6206 if test "$no_cache" != 1; then
6207 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6208 fi
6209
6210 if test "$wxUSE_PROTOCOL" = yes; then
6211 echo "$as_me:$LINENO: result: yes" >&5
6212echo "${ECHO_T}yes" >&6
6213 else
6214 echo "$as_me:$LINENO: result: no" >&5
6215echo "${ECHO_T}no" >&6
6216 fi
6217
6218
6219 enablestring=
6220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6221echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6222 no_cache=0
6223 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6224if test "${enable_protocol_http+set}" = set; then
6225 enableval="$enable_protocol_http"
6226
6227 if test "$enableval" = yes; then
6228 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6229 else
6230 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6231 fi
6232
6233else
6234
6235 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6236 if test "x$LINE" != x ; then
6237 eval "DEFAULT_$LINE"
6238 else
6239 no_cache=1
6240 fi
6241
6242 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6243
6244fi;
6245
6246 eval "$ac_cv_use_protocol_http"
6247 if test "$no_cache" != 1; then
6248 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6249 fi
6250
6251 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6252 echo "$as_me:$LINENO: result: yes" >&5
6253echo "${ECHO_T}yes" >&6
6254 else
6255 echo "$as_me:$LINENO: result: no" >&5
6256echo "${ECHO_T}no" >&6
6257 fi
6258
6259
6260 enablestring=
6261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6262echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6263 no_cache=0
6264 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6265if test "${enable_protocol_ftp+set}" = set; then
6266 enableval="$enable_protocol_ftp"
6267
6268 if test "$enableval" = yes; then
6269 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6270 else
6271 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6272 fi
6273
6274else
6275
6276 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6277 if test "x$LINE" != x ; then
6278 eval "DEFAULT_$LINE"
6279 else
6280 no_cache=1
6281 fi
6282
6283 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6284
6285fi;
6286
6287 eval "$ac_cv_use_protocol_ftp"
6288 if test "$no_cache" != 1; then
6289 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6290 fi
6291
6292 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6293 echo "$as_me:$LINENO: result: yes" >&5
6294echo "${ECHO_T}yes" >&6
6295 else
6296 echo "$as_me:$LINENO: result: no" >&5
6297echo "${ECHO_T}no" >&6
6298 fi
6299
6300
6301 enablestring=
6302 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6303echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6304 no_cache=0
6305 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6306if test "${enable_protocol_file+set}" = set; then
6307 enableval="$enable_protocol_file"
6308
6309 if test "$enableval" = yes; then
6310 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6311 else
6312 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6313 fi
6314
6315else
6316
6317 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6318 if test "x$LINE" != x ; then
6319 eval "DEFAULT_$LINE"
6320 else
6321 no_cache=1
6322 fi
6323
6324 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6325
6326fi;
6327
6328 eval "$ac_cv_use_protocol_file"
6329 if test "$no_cache" != 1; then
6330 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6331 fi
6332
6333 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6334 echo "$as_me:$LINENO: result: yes" >&5
6335echo "${ECHO_T}yes" >&6
6336 else
6337 echo "$as_me:$LINENO: result: no" >&5
6338echo "${ECHO_T}no" >&6
6339 fi
6340
6341
6342
6343
6344
6345 enablestring=
6346 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6347echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6348 no_cache=0
6349 # Check whether --enable-threads or --disable-threads was given.
6350if test "${enable_threads+set}" = set; then
6351 enableval="$enable_threads"
6352
6353 if test "$enableval" = yes; then
6354 ac_cv_use_threads='wxUSE_THREADS=yes'
6355 else
6356 ac_cv_use_threads='wxUSE_THREADS=no'
6357 fi
6358
6359else
6360
6361 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6362 if test "x$LINE" != x ; then
6363 eval "DEFAULT_$LINE"
6364 else
6365 no_cache=1
6366 fi
6367
6368 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6369
6370fi;
6371
6372 eval "$ac_cv_use_threads"
6373 if test "$no_cache" != 1; then
6374 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6375 fi
6376
6377 if test "$wxUSE_THREADS" = yes; then
6378 echo "$as_me:$LINENO: result: yes" >&5
6379echo "${ECHO_T}yes" >&6
6380 else
6381 echo "$as_me:$LINENO: result: no" >&5
6382echo "${ECHO_T}no" >&6
6383 fi
6384
6385
6386if test "$wxUSE_GUI" = "yes"; then
6387
6388
6389
6390 enablestring=
6391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6392echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6393 no_cache=0
6394 # Check whether --enable-docview or --disable-docview was given.
6395if test "${enable_docview+set}" = set; then
6396 enableval="$enable_docview"
6397
6398 if test "$enableval" = yes; then
6399 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6400 else
6401 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6402 fi
6403
6404else
6405
6406 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6407 if test "x$LINE" != x ; then
6408 eval "DEFAULT_$LINE"
6409 else
6410 no_cache=1
6411 fi
6412
6413 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6414
6415fi;
6416
6417 eval "$ac_cv_use_docview"
6418 if test "$no_cache" != 1; then
6419 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6420 fi
6421
6422 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6423 echo "$as_me:$LINENO: result: yes" >&5
6424echo "${ECHO_T}yes" >&6
6425 else
6426 echo "$as_me:$LINENO: result: no" >&5
6427echo "${ECHO_T}no" >&6
6428 fi
6429
6430
6431 enablestring=
6432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6433echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6434 no_cache=0
6435 # Check whether --enable-help or --disable-help was given.
6436if test "${enable_help+set}" = set; then
6437 enableval="$enable_help"
6438
6439 if test "$enableval" = yes; then
6440 ac_cv_use_help='wxUSE_HELP=yes'
6441 else
6442 ac_cv_use_help='wxUSE_HELP=no'
6443 fi
6444
6445else
6446
6447 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6448 if test "x$LINE" != x ; then
6449 eval "DEFAULT_$LINE"
6450 else
6451 no_cache=1
6452 fi
6453
6454 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6455
6456fi;
6457
6458 eval "$ac_cv_use_help"
6459 if test "$no_cache" != 1; then
6460 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6461 fi
6462
6463 if test "$wxUSE_HELP" = yes; then
6464 echo "$as_me:$LINENO: result: yes" >&5
6465echo "${ECHO_T}yes" >&6
6466 else
6467 echo "$as_me:$LINENO: result: no" >&5
6468echo "${ECHO_T}no" >&6
6469 fi
6470
6471
6472 enablestring=
6473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6474echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6475 no_cache=0
6476 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6477if test "${enable_mshtmlhelp+set}" = set; then
6478 enableval="$enable_mshtmlhelp"
6479
6480 if test "$enableval" = yes; then
6481 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6482 else
6483 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6484 fi
6485
6486else
6487
6488 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6489 if test "x$LINE" != x ; then
6490 eval "DEFAULT_$LINE"
6491 else
6492 no_cache=1
6493 fi
6494
6495 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6496
6497fi;
6498
6499 eval "$ac_cv_use_mshtmlhelp"
6500 if test "$no_cache" != 1; then
6501 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6502 fi
6503
6504 if test "$wxUSE_MS_HTML_HELP" = yes; then
6505 echo "$as_me:$LINENO: result: yes" >&5
6506echo "${ECHO_T}yes" >&6
6507 else
6508 echo "$as_me:$LINENO: result: no" >&5
6509echo "${ECHO_T}no" >&6
6510 fi
6511
6512
6513 enablestring=
6514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6515echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6516 no_cache=0
6517 # Check whether --enable-html or --disable-html was given.
6518if test "${enable_html+set}" = set; then
6519 enableval="$enable_html"
6520
6521 if test "$enableval" = yes; then
6522 ac_cv_use_html='wxUSE_HTML=yes'
6523 else
6524 ac_cv_use_html='wxUSE_HTML=no'
6525 fi
6526
6527else
6528
6529 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6530 if test "x$LINE" != x ; then
6531 eval "DEFAULT_$LINE"
6532 else
6533 no_cache=1
6534 fi
6535
6536 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6537
6538fi;
6539
6540 eval "$ac_cv_use_html"
6541 if test "$no_cache" != 1; then
6542 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6543 fi
6544
6545 if test "$wxUSE_HTML" = yes; then
6546 echo "$as_me:$LINENO: result: yes" >&5
6547echo "${ECHO_T}yes" >&6
6548 else
6549 echo "$as_me:$LINENO: result: no" >&5
6550echo "${ECHO_T}no" >&6
6551 fi
6552
6553
6554 enablestring=
6555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6556echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6557 no_cache=0
6558 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6559if test "${enable_htmlhelp+set}" = set; then
6560 enableval="$enable_htmlhelp"
6561
6562 if test "$enableval" = yes; then
6563 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6564 else
6565 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6566 fi
6567
6568else
6569
6570 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6571 if test "x$LINE" != x ; then
6572 eval "DEFAULT_$LINE"
6573 else
6574 no_cache=1
6575 fi
6576
6577 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6578
6579fi;
6580
6581 eval "$ac_cv_use_htmlhelp"
6582 if test "$no_cache" != 1; then
6583 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6584 fi
6585
6586 if test "$wxUSE_WXHTML_HELP" = yes; then
6587 echo "$as_me:$LINENO: result: yes" >&5
6588echo "${ECHO_T}yes" >&6
6589 else
6590 echo "$as_me:$LINENO: result: no" >&5
6591echo "${ECHO_T}no" >&6
6592 fi
6593
6594
9a8f0513
VS
6595 enablestring=
6596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6597echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6598 no_cache=0
6599 # Check whether --enable-xrc or --disable-xrc was given.
6600if test "${enable_xrc+set}" = set; then
6601 enableval="$enable_xrc"
6602
6603 if test "$enableval" = yes; then
6604 ac_cv_use_xrc='wxUSE_XRC=yes'
6605 else
6606 ac_cv_use_xrc='wxUSE_XRC=no'
6607 fi
6608
6609else
6610
6611 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6612 if test "x$LINE" != x ; then
6613 eval "DEFAULT_$LINE"
6614 else
6615 no_cache=1
6616 fi
6617
6618 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6619
6620fi;
6621
6622 eval "$ac_cv_use_xrc"
6623 if test "$no_cache" != 1; then
6624 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6625 fi
6626
6627 if test "$wxUSE_XRC" = yes; then
6628 echo "$as_me:$LINENO: result: yes" >&5
6629echo "${ECHO_T}yes" >&6
6630 else
6631 echo "$as_me:$LINENO: result: no" >&5
6632echo "${ECHO_T}no" >&6
6633 fi
6634
6635
a848cd7e
SC
6636 enablestring=
6637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6638echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6639 no_cache=0
6640 # Check whether --enable-constraints or --disable-constraints was given.
6641if test "${enable_constraints+set}" = set; then
6642 enableval="$enable_constraints"
6643
6644 if test "$enableval" = yes; then
6645 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6646 else
6647 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6648 fi
6649
6650else
6651
6652 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6653 if test "x$LINE" != x ; then
6654 eval "DEFAULT_$LINE"
6655 else
6656 no_cache=1
6657 fi
6658
6659 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6660
6661fi;
6662
6663 eval "$ac_cv_use_constraints"
6664 if test "$no_cache" != 1; then
6665 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6666 fi
6667
6668 if test "$wxUSE_CONSTRAINTS" = yes; then
6669 echo "$as_me:$LINENO: result: yes" >&5
6670echo "${ECHO_T}yes" >&6
6671 else
6672 echo "$as_me:$LINENO: result: no" >&5
6673echo "${ECHO_T}no" >&6
6674 fi
6675
6676
6677 enablestring=
6678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6679echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6680 no_cache=0
6681 # Check whether --enable-printarch or --disable-printarch was given.
6682if test "${enable_printarch+set}" = set; then
6683 enableval="$enable_printarch"
6684
6685 if test "$enableval" = yes; then
6686 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6687 else
6688 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6689 fi
6690
6691else
6692
6693 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6694 if test "x$LINE" != x ; then
6695 eval "DEFAULT_$LINE"
6696 else
6697 no_cache=1
6698 fi
6699
6700 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6701
6702fi;
6703
6704 eval "$ac_cv_use_printarch"
6705 if test "$no_cache" != 1; then
6706 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6707 fi
6708
6709 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6710 echo "$as_me:$LINENO: result: yes" >&5
6711echo "${ECHO_T}yes" >&6
6712 else
6713 echo "$as_me:$LINENO: result: no" >&5
6714echo "${ECHO_T}no" >&6
6715 fi
6716
6717
6718 enablestring=
6719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6720echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6721 no_cache=0
6722 # Check whether --enable-mdi or --disable-mdi was given.
6723if test "${enable_mdi+set}" = set; then
6724 enableval="$enable_mdi"
6725
6726 if test "$enableval" = yes; then
8a7b1113 6727 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6728 else
8a7b1113 6729 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6730 fi
6731
6732else
6733
8a7b1113 6734 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6735 if test "x$LINE" != x ; then
6736 eval "DEFAULT_$LINE"
6737 else
6738 no_cache=1
6739 fi
6740
8a7b1113 6741 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6742
6743fi;
6744
6745 eval "$ac_cv_use_mdi"
6746 if test "$no_cache" != 1; then
6747 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6748 fi
6749
8a7b1113
VZ
6750 if test "$wxUSE_MDI" = yes; then
6751 echo "$as_me:$LINENO: result: yes" >&5
6752echo "${ECHO_T}yes" >&6
6753 else
6754 echo "$as_me:$LINENO: result: no" >&5
6755echo "${ECHO_T}no" >&6
6756 fi
6757
6758
6759 enablestring=
6760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6761echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6762 no_cache=0
6763 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6764if test "${enable_mdidoc+set}" = set; then
6765 enableval="$enable_mdidoc"
6766
6767 if test "$enableval" = yes; then
6768 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6769 else
6770 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6771 fi
6772
6773else
6774
6775 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6776 if test "x$LINE" != x ; then
6777 eval "DEFAULT_$LINE"
6778 else
6779 no_cache=1
6780 fi
6781
6782 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6783
6784fi;
6785
6786 eval "$ac_cv_use_mdidoc"
6787 if test "$no_cache" != 1; then
6788 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6789 fi
6790
a848cd7e
SC
6791 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6792 echo "$as_me:$LINENO: result: yes" >&5
6793echo "${ECHO_T}yes" >&6
6794 else
6795 echo "$as_me:$LINENO: result: no" >&5
6796echo "${ECHO_T}no" >&6
6797 fi
6798
6799
6800 enablestring=
6801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6802echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6803 no_cache=0
6804 # Check whether --enable-loggui or --disable-loggui was given.
6805if test "${enable_loggui+set}" = set; then
6806 enableval="$enable_loggui"
6807
6808 if test "$enableval" = yes; then
6809 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6810 else
6811 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6812 fi
6813
6814else
6815
6816 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6817 if test "x$LINE" != x ; then
6818 eval "DEFAULT_$LINE"
6819 else
6820 no_cache=1
6821 fi
6822
6823 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6824
6825fi;
6826
6827 eval "$ac_cv_use_loggui"
6828 if test "$no_cache" != 1; then
6829 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6830 fi
6831
6832 if test "$wxUSE_LOGGUI" = yes; then
6833 echo "$as_me:$LINENO: result: yes" >&5
6834echo "${ECHO_T}yes" >&6
6835 else
6836 echo "$as_me:$LINENO: result: no" >&5
6837echo "${ECHO_T}no" >&6
6838 fi
6839
6840
6841 enablestring=
6842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6843echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6844 no_cache=0
6845 # Check whether --enable-logwin or --disable-logwin was given.
6846if test "${enable_logwin+set}" = set; then
6847 enableval="$enable_logwin"
6848
6849 if test "$enableval" = yes; then
6850 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6851 else
6852 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6853 fi
6854
6855else
6856
6857 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6858 if test "x$LINE" != x ; then
6859 eval "DEFAULT_$LINE"
6860 else
6861 no_cache=1
6862 fi
6863
6864 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6865
6866fi;
6867
6868 eval "$ac_cv_use_logwin"
6869 if test "$no_cache" != 1; then
6870 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6871 fi
6872
6873 if test "$wxUSE_LOGWINDOW" = yes; then
6874 echo "$as_me:$LINENO: result: yes" >&5
6875echo "${ECHO_T}yes" >&6
6876 else
6877 echo "$as_me:$LINENO: result: no" >&5
6878echo "${ECHO_T}no" >&6
6879 fi
6880
6881
6882 enablestring=
6883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6884echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6885 no_cache=0
6886 # Check whether --enable-logdialog or --disable-logdialog was given.
6887if test "${enable_logdialog+set}" = set; then
6888 enableval="$enable_logdialog"
6889
6890 if test "$enableval" = yes; then
6891 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6892 else
6893 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6894 fi
6895
6896else
6897
6898 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6899 if test "x$LINE" != x ; then
6900 eval "DEFAULT_$LINE"
6901 else
6902 no_cache=1
6903 fi
6904
6905 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6906
6907fi;
6908
6909 eval "$ac_cv_use_logdialog"
6910 if test "$no_cache" != 1; then
6911 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6912 fi
6913
6914 if test "$wxUSE_LOGDIALOG" = yes; then
6915 echo "$as_me:$LINENO: result: yes" >&5
6916echo "${ECHO_T}yes" >&6
6917 else
6918 echo "$as_me:$LINENO: result: no" >&5
6919echo "${ECHO_T}no" >&6
6920 fi
6921
6922
646b6ec1
VS
6923 enablestring=
6924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6925echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6926 no_cache=0
6927 # Check whether --enable-webkit or --disable-webkit was given.
6928if test "${enable_webkit+set}" = set; then
6929 enableval="$enable_webkit"
6930
6931 if test "$enableval" = yes; then
6932 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6933 else
6934 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6935 fi
6936
6937else
6938
6939 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6940 if test "x$LINE" != x ; then
6941 eval "DEFAULT_$LINE"
6942 else
6943 no_cache=1
6944 fi
6945
6946 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6947
6948fi;
6949
6950 eval "$ac_cv_use_webkit"
6951 if test "$no_cache" != 1; then
6952 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6953 fi
6954
6955 if test "$wxUSE_WEBKIT" = yes; then
6956 echo "$as_me:$LINENO: result: yes" >&5
6957echo "${ECHO_T}yes" >&6
6958 else
6959 echo "$as_me:$LINENO: result: no" >&5
6960echo "${ECHO_T}no" >&6
6961 fi
6962
6963
a848cd7e
SC
6964
6965 enablestring=
6966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6967echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6968 no_cache=0
6969 # Check whether --enable-postscript or --disable-postscript was given.
6970if test "${enable_postscript+set}" = set; then
6971 enableval="$enable_postscript"
6972
6973 if test "$enableval" = yes; then
6974 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6975 else
6976 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6977 fi
6978
6979else
6980
6981 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6982 if test "x$LINE" != x ; then
6983 eval "DEFAULT_$LINE"
6984 else
6985 no_cache=1
6986 fi
6987
6988 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6989
6990fi;
6991
6992 eval "$ac_cv_use_postscript"
6993 if test "$no_cache" != 1; then
6994 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6995 fi
6996
6997 if test "$wxUSE_POSTSCRIPT" = yes; then
6998 echo "$as_me:$LINENO: result: yes" >&5
6999echo "${ECHO_T}yes" >&6
7000 else
7001 echo "$as_me:$LINENO: result: no" >&5
7002echo "${ECHO_T}no" >&6
7003 fi
7004
7005
7006
7007
7008
7009 enablestring=
7010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7011echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7012 no_cache=0
7013 # Check whether --enable-prologio or --disable-prologio was given.
7014if test "${enable_prologio+set}" = set; then
7015 enableval="$enable_prologio"
7016
7017 if test "$enableval" = yes; then
7018 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7019 else
7020 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7021 fi
7022
7023else
7024
7025 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7026 if test "x$LINE" != x ; then
7027 eval "DEFAULT_$LINE"
7028 else
7029 no_cache=1
7030 fi
7031
7032 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7033
7034fi;
7035
7036 eval "$ac_cv_use_prologio"
7037 if test "$no_cache" != 1; then
7038 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7039 fi
7040
7041 if test "$wxUSE_PROLOGIO" = yes; then
7042 echo "$as_me:$LINENO: result: yes" >&5
7043echo "${ECHO_T}yes" >&6
7044 else
7045 echo "$as_me:$LINENO: result: no" >&5
7046echo "${ECHO_T}no" >&6
7047 fi
7048
7049
7050 enablestring=
7051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7052echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7053 no_cache=0
7054 # Check whether --enable-resources or --disable-resources was given.
7055if test "${enable_resources+set}" = set; then
7056 enableval="$enable_resources"
7057
7058 if test "$enableval" = yes; then
7059 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7060 else
7061 ac_cv_use_resources='wxUSE_RESOURCES=no'
7062 fi
7063
7064else
7065
7066 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7067 if test "x$LINE" != x ; then
7068 eval "DEFAULT_$LINE"
7069 else
7070 no_cache=1
7071 fi
7072
7073 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7074
7075fi;
7076
7077 eval "$ac_cv_use_resources"
7078 if test "$no_cache" != 1; then
7079 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7080 fi
7081
7082 if test "$wxUSE_RESOURCES" = yes; then
7083 echo "$as_me:$LINENO: result: yes" >&5
7084echo "${ECHO_T}yes" >&6
7085 else
7086 echo "$as_me:$LINENO: result: no" >&5
7087echo "${ECHO_T}no" >&6
7088 fi
7089
7090
7091
7092
7093 enablestring=
7094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7095echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7096 no_cache=0
7097 # Check whether --enable-clipboard or --disable-clipboard was given.
7098if test "${enable_clipboard+set}" = set; then
7099 enableval="$enable_clipboard"
7100
7101 if test "$enableval" = yes; then
7102 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7103 else
7104 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7105 fi
7106
7107else
7108
7109 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7110 if test "x$LINE" != x ; then
7111 eval "DEFAULT_$LINE"
7112 else
7113 no_cache=1
7114 fi
7115
7116 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7117
7118fi;
7119
7120 eval "$ac_cv_use_clipboard"
7121 if test "$no_cache" != 1; then
7122 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7123 fi
7124
7125 if test "$wxUSE_CLIPBOARD" = yes; then
7126 echo "$as_me:$LINENO: result: yes" >&5
7127echo "${ECHO_T}yes" >&6
7128 else
7129 echo "$as_me:$LINENO: result: no" >&5
7130echo "${ECHO_T}no" >&6
7131 fi
7132
7133
7134 enablestring=
7135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7136echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7137 no_cache=0
7138 # Check whether --enable-dnd or --disable-dnd was given.
7139if test "${enable_dnd+set}" = set; then
7140 enableval="$enable_dnd"
7141
7142 if test "$enableval" = yes; then
7143 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7144 else
7145 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7146 fi
7147
7148else
7149
7150 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7151 if test "x$LINE" != x ; then
7152 eval "DEFAULT_$LINE"
7153 else
7154 no_cache=1
7155 fi
7156
7157 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7158
7159fi;
7160
7161 eval "$ac_cv_use_dnd"
7162 if test "$no_cache" != 1; then
7163 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7164 fi
7165
7166 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7167 echo "$as_me:$LINENO: result: yes" >&5
7168echo "${ECHO_T}yes" >&6
7169 else
7170 echo "$as_me:$LINENO: result: no" >&5
7171echo "${ECHO_T}no" >&6
7172 fi
7173
7174
7175 enablestring=
7176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7177echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7178 no_cache=0
7179 # Check whether --enable-metafile or --disable-metafile was given.
7180if test "${enable_metafile+set}" = set; then
7181 enableval="$enable_metafile"
7182
7183 if test "$enableval" = yes; then
7184 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7185 else
7186 ac_cv_use_metafile='wxUSE_METAFILE=no'
7187 fi
7188
7189else
7190
7191 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7192 if test "x$LINE" != x ; then
7193 eval "DEFAULT_$LINE"
7194 else
7195 no_cache=1
7196 fi
7197
7198 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7199
7200fi;
7201
7202 eval "$ac_cv_use_metafile"
7203 if test "$no_cache" != 1; then
7204 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7205 fi
7206
7207 if test "$wxUSE_METAFILE" = yes; then
7208 echo "$as_me:$LINENO: result: yes" >&5
7209echo "${ECHO_T}yes" >&6
7210 else
7211 echo "$as_me:$LINENO: result: no" >&5
7212echo "${ECHO_T}no" >&6
7213 fi
7214
7215
7216
7217
7218
7219 enablestring=
7220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7221echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7222 no_cache=0
7223 # Check whether --enable-controls or --disable-controls was given.
7224if test "${enable_controls+set}" = set; then
7225 enableval="$enable_controls"
7226
7227 if test "$enableval" = yes; then
7228 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7229 else
7230 ac_cv_use_controls='wxUSE_CONTROLS=no'
7231 fi
7232
7233else
7234
7235 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7236 if test "x$LINE" != x ; then
7237 eval "DEFAULT_$LINE"
7238 else
7239 no_cache=1
7240 fi
7241
7242 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7243
7244fi;
7245
7246 eval "$ac_cv_use_controls"
7247 if test "$no_cache" != 1; then
7248 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7249 fi
7250
7251 if test "$wxUSE_CONTROLS" = yes; then
7252 echo "$as_me:$LINENO: result: yes" >&5
7253echo "${ECHO_T}yes" >&6
7254 else
7255 echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6
7257 fi
7258
7259
7260if test "$wxUSE_CONTROLS" = "yes"; then
7261 DEFAULT_wxUSE_ACCEL=yes
7262 DEFAULT_wxUSE_BMPBUTTON=yes
7263 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7264 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7265 DEFAULT_wxUSE_CARET=yes
7266 DEFAULT_wxUSE_COMBOBOX=yes
7267 DEFAULT_wxUSE_CHECKBOX=yes
7268 DEFAULT_wxUSE_CHECKLISTBOX=yes
7269 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7270 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7271 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7272 DEFAULT_wxUSE_GAUGE=yes
7273 DEFAULT_wxUSE_GRID=yes
7274 DEFAULT_wxUSE_IMAGLIST=yes
7275 DEFAULT_wxUSE_LISTBOOK=yes
7276 DEFAULT_wxUSE_LISTBOX=yes
7277 DEFAULT_wxUSE_LISTCTRL=yes
7278 DEFAULT_wxUSE_NOTEBOOK=yes
7279 DEFAULT_wxUSE_RADIOBOX=yes
7280 DEFAULT_wxUSE_RADIOBTN=yes
7281 DEFAULT_wxUSE_SASH=yes
7282 DEFAULT_wxUSE_SCROLLBAR=yes
7283 DEFAULT_wxUSE_SLIDER=yes
7284 DEFAULT_wxUSE_SPINBTN=yes
7285 DEFAULT_wxUSE_SPINCTRL=yes
7286 DEFAULT_wxUSE_SPLITTER=yes
7287 DEFAULT_wxUSE_STATBMP=yes
7288 DEFAULT_wxUSE_STATBOX=yes
7289 DEFAULT_wxUSE_STATLINE=yes
7290 DEFAULT_wxUSE_STATUSBAR=yes
7291 DEFAULT_wxUSE_TAB_DIALOG=yes
7292 DEFAULT_wxUSE_TOGGLEBTN=yes
7293 DEFAULT_wxUSE_TOOLBAR=yes
7294 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7295 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7296 DEFAULT_wxUSE_TOOLTIPS=yes
7297 DEFAULT_wxUSE_TREECTRL=yes
7298 DEFAULT_wxUSE_POPUPWIN=yes
7299 DEFAULT_wxUSE_TIPWINDOW=yes
7300elif test "$wxUSE_CONTROLS" = "no"; then
7301 DEFAULT_wxUSE_ACCEL=no
7302 DEFAULT_wxUSE_BMPBUTTON=no
7303 DEFAULT_wxUSE_BUTTON=no
7304 DEFAULT_wxUSE_CALCTRL=no
7305 DEFAULT_wxUSE_CARET=no
7306 DEFAULT_wxUSE_COMBOBOX=no
7307 DEFAULT_wxUSE_CHECKBOX=no
7308 DEFAULT_wxUSE_CHECKLISTBOX=no
7309 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7310 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7311 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7312 DEFAULT_wxUSE_GAUGE=no
7313 DEFAULT_wxUSE_GRID=no
7314 DEFAULT_wxUSE_IMAGLIST=no
7315 DEFAULT_wxUSE_LISTBOOK=no
7316 DEFAULT_wxUSE_LISTBOX=no
7317 DEFAULT_wxUSE_LISTCTRL=no
7318 DEFAULT_wxUSE_NOTEBOOK=no
7319 DEFAULT_wxUSE_RADIOBOX=no
7320 DEFAULT_wxUSE_RADIOBTN=no
7321 DEFAULT_wxUSE_SASH=no
7322 DEFAULT_wxUSE_SCROLLBAR=no
7323 DEFAULT_wxUSE_SLIDER=no
7324 DEFAULT_wxUSE_SPINBTN=no
7325 DEFAULT_wxUSE_SPINCTRL=no
7326 DEFAULT_wxUSE_SPLITTER=no
7327 DEFAULT_wxUSE_STATBMP=no
7328 DEFAULT_wxUSE_STATBOX=no
7329 DEFAULT_wxUSE_STATLINE=no
7330 DEFAULT_wxUSE_STATUSBAR=no
7331 DEFAULT_wxUSE_TAB_DIALOG=no
7332 DEFAULT_wxUSE_TOGGLEBTN=no
7333 DEFAULT_wxUSE_TOOLBAR=no
7334 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7335 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7336 DEFAULT_wxUSE_TOOLTIPS=no
7337 DEFAULT_wxUSE_TREECTRL=no
7338 DEFAULT_wxUSE_POPUPWIN=no
7339 DEFAULT_wxUSE_TIPWINDOW=no
7340fi
7341
a848cd7e
SC
7342
7343 enablestring=
7344 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7345echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7346 no_cache=0
7347 # Check whether --enable-accel or --disable-accel was given.
7348if test "${enable_accel+set}" = set; then
7349 enableval="$enable_accel"
7350
7351 if test "$enableval" = yes; then
7352 ac_cv_use_accel='wxUSE_ACCEL=yes'
7353 else
7354 ac_cv_use_accel='wxUSE_ACCEL=no'
7355 fi
7356
7357else
7358
7359 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7360 if test "x$LINE" != x ; then
7361 eval "DEFAULT_$LINE"
7362 else
7363 no_cache=1
7364 fi
7365
7366 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7367
7368fi;
7369
7370 eval "$ac_cv_use_accel"
7371 if test "$no_cache" != 1; then
7372 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7373 fi
7374
7375 if test "$wxUSE_ACCEL" = yes; then
7376 echo "$as_me:$LINENO: result: yes" >&5
7377echo "${ECHO_T}yes" >&6
7378 else
7379 echo "$as_me:$LINENO: result: no" >&5
7380echo "${ECHO_T}no" >&6
7381 fi
7382
7383
7384 enablestring=
7385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7386echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7387 no_cache=0
7388 # Check whether --enable-button or --disable-button was given.
7389if test "${enable_button+set}" = set; then
7390 enableval="$enable_button"
7391
7392 if test "$enableval" = yes; then
7393 ac_cv_use_button='wxUSE_BUTTON=yes'
7394 else
7395 ac_cv_use_button='wxUSE_BUTTON=no'
7396 fi
7397
7398else
7399
7400 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7401 if test "x$LINE" != x ; then
7402 eval "DEFAULT_$LINE"
7403 else
7404 no_cache=1
7405 fi
7406
7407 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7408
7409fi;
7410
7411 eval "$ac_cv_use_button"
7412 if test "$no_cache" != 1; then
7413 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7414 fi
7415
7416 if test "$wxUSE_BUTTON" = yes; then
7417 echo "$as_me:$LINENO: result: yes" >&5
7418echo "${ECHO_T}yes" >&6
7419 else
7420 echo "$as_me:$LINENO: result: no" >&5
7421echo "${ECHO_T}no" >&6
7422 fi
7423
7424
7425 enablestring=
7426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7427echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7428 no_cache=0
7429 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7430if test "${enable_bmpbutton+set}" = set; then
7431 enableval="$enable_bmpbutton"
7432
7433 if test "$enableval" = yes; then
7434 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7435 else
7436 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7437 fi
7438
7439else
7440
7441 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7442 if test "x$LINE" != x ; then
7443 eval "DEFAULT_$LINE"
7444 else
7445 no_cache=1
7446 fi
7447
7448 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7449
7450fi;
7451
7452 eval "$ac_cv_use_bmpbutton"
7453 if test "$no_cache" != 1; then
7454 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7455 fi
7456
7457 if test "$wxUSE_BMPBUTTON" = yes; then
7458 echo "$as_me:$LINENO: result: yes" >&5
7459echo "${ECHO_T}yes" >&6
7460 else
7461 echo "$as_me:$LINENO: result: no" >&5
7462echo "${ECHO_T}no" >&6
7463 fi
7464
7465
7466 enablestring=
7467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7468echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7469 no_cache=0
7470 # Check whether --enable-calendar or --disable-calendar was given.
7471if test "${enable_calendar+set}" = set; then
7472 enableval="$enable_calendar"
7473
7474 if test "$enableval" = yes; then
7475 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7476 else
7477 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7478 fi
7479
7480else
7481
7482 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7483 if test "x$LINE" != x ; then
7484 eval "DEFAULT_$LINE"
7485 else
7486 no_cache=1
7487 fi
7488
7489 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7490
7491fi;
7492
7493 eval "$ac_cv_use_calendar"
7494 if test "$no_cache" != 1; then
7495 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7496 fi
7497
7498 if test "$wxUSE_CALCTRL" = yes; then
7499 echo "$as_me:$LINENO: result: yes" >&5
7500echo "${ECHO_T}yes" >&6
7501 else
7502 echo "$as_me:$LINENO: result: no" >&5
7503echo "${ECHO_T}no" >&6
7504 fi
7505
7506
7507 enablestring=
7508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7509echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7510 no_cache=0
7511 # Check whether --enable-caret or --disable-caret was given.
7512if test "${enable_caret+set}" = set; then
7513 enableval="$enable_caret"
7514
7515 if test "$enableval" = yes; then
7516 ac_cv_use_caret='wxUSE_CARET=yes'
7517 else
7518 ac_cv_use_caret='wxUSE_CARET=no'
7519 fi
7520
7521else
7522
7523 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7524 if test "x$LINE" != x ; then
7525 eval "DEFAULT_$LINE"
7526 else
7527 no_cache=1
7528 fi
7529
7530 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7531
7532fi;
7533
7534 eval "$ac_cv_use_caret"
7535 if test "$no_cache" != 1; then
7536 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7537 fi
7538
7539 if test "$wxUSE_CARET" = yes; then
7540 echo "$as_me:$LINENO: result: yes" >&5
7541echo "${ECHO_T}yes" >&6
7542 else
7543 echo "$as_me:$LINENO: result: no" >&5
7544echo "${ECHO_T}no" >&6
7545 fi
7546
7547
7548 enablestring=
7549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7550echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7551 no_cache=0
7552 # Check whether --enable-checkbox or --disable-checkbox was given.
7553if test "${enable_checkbox+set}" = set; then
7554 enableval="$enable_checkbox"
7555
7556 if test "$enableval" = yes; then
7557 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7558 else
7559 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7560 fi
7561
7562else
7563
7564 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7565 if test "x$LINE" != x ; then
7566 eval "DEFAULT_$LINE"
7567 else
7568 no_cache=1
7569 fi
7570
7571 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7572
7573fi;
7574
7575 eval "$ac_cv_use_checkbox"
7576 if test "$no_cache" != 1; then
7577 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7578 fi
7579
7580 if test "$wxUSE_CHECKBOX" = yes; then
7581 echo "$as_me:$LINENO: result: yes" >&5
7582echo "${ECHO_T}yes" >&6
7583 else
7584 echo "$as_me:$LINENO: result: no" >&5
7585echo "${ECHO_T}no" >&6
7586 fi
7587
7588
7589 enablestring=
7590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7591echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7592 no_cache=0
7593 # Check whether --enable-checklst or --disable-checklst was given.
7594if test "${enable_checklst+set}" = set; then
7595 enableval="$enable_checklst"
7596
7597 if test "$enableval" = yes; then
7598 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7599 else
7600 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7601 fi
7602
7603else
7604
7605 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7606 if test "x$LINE" != x ; then
7607 eval "DEFAULT_$LINE"
7608 else
7609 no_cache=1
7610 fi
7611
7612 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7613
7614fi;
7615
7616 eval "$ac_cv_use_checklst"
7617 if test "$no_cache" != 1; then
7618 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7619 fi
7620
7621 if test "$wxUSE_CHECKLST" = yes; then
7622 echo "$as_me:$LINENO: result: yes" >&5
7623echo "${ECHO_T}yes" >&6
7624 else
7625 echo "$as_me:$LINENO: result: no" >&5
7626echo "${ECHO_T}no" >&6
7627 fi
7628
7629
7630 enablestring=
7631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7632echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7633 no_cache=0
7634 # Check whether --enable-choice or --disable-choice was given.
7635if test "${enable_choice+set}" = set; then
7636 enableval="$enable_choice"
7637
7638 if test "$enableval" = yes; then
7639 ac_cv_use_choice='wxUSE_CHOICE=yes'
7640 else
7641 ac_cv_use_choice='wxUSE_CHOICE=no'
7642 fi
7643
7644else
7645
7646 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7647 if test "x$LINE" != x ; then
7648 eval "DEFAULT_$LINE"
7649 else
7650 no_cache=1
7651 fi
7652
7653 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7654
7655fi;
7656
7657 eval "$ac_cv_use_choice"
7658 if test "$no_cache" != 1; then
7659 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7660 fi
7661
7662 if test "$wxUSE_CHOICE" = yes; then
7663 echo "$as_me:$LINENO: result: yes" >&5
7664echo "${ECHO_T}yes" >&6
7665 else
7666 echo "$as_me:$LINENO: result: no" >&5
7667echo "${ECHO_T}no" >&6
7668 fi
7669
7670
92bbdbcd
WS
7671 enablestring=
7672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7673echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7674 no_cache=0
7675 # Check whether --enable-choicebook or --disable-choicebook was given.
7676if test "${enable_choicebook+set}" = set; then
7677 enableval="$enable_choicebook"
7678
7679 if test "$enableval" = yes; then
7680 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7681 else
7682 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7683 fi
7684
7685else
7686
7687 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7688 if test "x$LINE" != x ; then
7689 eval "DEFAULT_$LINE"
7690 else
7691 no_cache=1
7692 fi
7693
7694 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7695
7696fi;
7697
7698 eval "$ac_cv_use_choicebook"
7699 if test "$no_cache" != 1; then
7700 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7701 fi
7702
7703 if test "$wxUSE_CHOICEBOOK" = yes; then
7704 echo "$as_me:$LINENO: result: yes" >&5
7705echo "${ECHO_T}yes" >&6
7706 else
7707 echo "$as_me:$LINENO: result: no" >&5
7708echo "${ECHO_T}no" >&6
7709 fi
7710
7711
a848cd7e
SC
7712 enablestring=
7713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7714echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7715 no_cache=0
7716 # Check whether --enable-combobox or --disable-combobox was given.
7717if test "${enable_combobox+set}" = set; then
7718 enableval="$enable_combobox"
7719
7720 if test "$enableval" = yes; then
7721 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7722 else
7723 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7724 fi
7725
7726else
7727
7728 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7729 if test "x$LINE" != x ; then
7730 eval "DEFAULT_$LINE"
7731 else
7732 no_cache=1
7733 fi
7734
7735 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7736
7737fi;
7738
7739 eval "$ac_cv_use_combobox"
7740 if test "$no_cache" != 1; then
7741 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7742 fi
7743
7744 if test "$wxUSE_COMBOBOX" = yes; then
7745 echo "$as_me:$LINENO: result: yes" >&5
7746echo "${ECHO_T}yes" >&6
7747 else
7748 echo "$as_me:$LINENO: result: no" >&5
7749echo "${ECHO_T}no" >&6
7750 fi
7751
7752
da98e9be
VZ
7753 enablestring=
7754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7755echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7756 no_cache=0
7757 # Check whether --enable-datepick or --disable-datepick was given.
7758if test "${enable_datepick+set}" = set; then
7759 enableval="$enable_datepick"
7760
7761 if test "$enableval" = yes; then
7762 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7763 else
7764 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7765 fi
7766
7767else
7768
7769 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7770 if test "x$LINE" != x ; then
7771 eval "DEFAULT_$LINE"
7772 else
7773 no_cache=1
7774 fi
7775
7776 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7777
7778fi;
7779
7780 eval "$ac_cv_use_datepick"
7781 if test "$no_cache" != 1; then
7782 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7783 fi
7784
7785 if test "$wxUSE_DATEPICKCTRL" = yes; then
7786 echo "$as_me:$LINENO: result: yes" >&5
7787echo "${ECHO_T}yes" >&6
7788 else
7789 echo "$as_me:$LINENO: result: no" >&5
7790echo "${ECHO_T}no" >&6
7791 fi
7792
7793
a848cd7e
SC
7794 enablestring=
7795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7796echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7797 no_cache=0
7798 # Check whether --enable-display or --disable-display was given.
7799if test "${enable_display+set}" = set; then
7800 enableval="$enable_display"
7801
7802 if test "$enableval" = yes; then
7803 ac_cv_use_display='wxUSE_DISPLAY=yes'
7804 else
7805 ac_cv_use_display='wxUSE_DISPLAY=no'
7806 fi
7807
7808else
7809
7810 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7811 if test "x$LINE" != x ; then
7812 eval "DEFAULT_$LINE"
7813 else
7814 no_cache=1
7815 fi
7816
7817 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7818
7819fi;
7820
7821 eval "$ac_cv_use_display"
7822 if test "$no_cache" != 1; then
7823 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7824 fi
7825
7826 if test "$wxUSE_DISPLAY" = yes; then
7827 echo "$as_me:$LINENO: result: yes" >&5
7828echo "${ECHO_T}yes" >&6
7829 else
7830 echo "$as_me:$LINENO: result: no" >&5
7831echo "${ECHO_T}no" >&6
7832 fi
7833
7834
7835 enablestring=
7836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7837echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7838 no_cache=0
7839 # Check whether --enable-gauge or --disable-gauge was given.
7840if test "${enable_gauge+set}" = set; then
7841 enableval="$enable_gauge"
7842
7843 if test "$enableval" = yes; then
7844 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7845 else
7846 ac_cv_use_gauge='wxUSE_GAUGE=no'
7847 fi
7848
7849else
7850
7851 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7852 if test "x$LINE" != x ; then
7853 eval "DEFAULT_$LINE"
7854 else
7855 no_cache=1
7856 fi
7857
7858 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7859
7860fi;
7861
7862 eval "$ac_cv_use_gauge"
7863 if test "$no_cache" != 1; then
7864 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7865 fi
7866
7867 if test "$wxUSE_GAUGE" = yes; then
7868 echo "$as_me:$LINENO: result: yes" >&5
7869echo "${ECHO_T}yes" >&6
7870 else
7871 echo "$as_me:$LINENO: result: no" >&5
7872echo "${ECHO_T}no" >&6
7873 fi
7874
7875
7876 enablestring=
7877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7878echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7879 no_cache=0
7880 # Check whether --enable-grid or --disable-grid was given.
7881if test "${enable_grid+set}" = set; then
7882 enableval="$enable_grid"
7883
7884 if test "$enableval" = yes; then
7885 ac_cv_use_grid='wxUSE_GRID=yes'
7886 else
7887 ac_cv_use_grid='wxUSE_GRID=no'
7888 fi
7889
7890else
7891
7892 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7893 if test "x$LINE" != x ; then
7894 eval "DEFAULT_$LINE"
7895 else
7896 no_cache=1
7897 fi
7898
7899 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7900
7901fi;
7902
7903 eval "$ac_cv_use_grid"
7904 if test "$no_cache" != 1; then
7905 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7906 fi
7907
7908 if test "$wxUSE_GRID" = yes; then
7909 echo "$as_me:$LINENO: result: yes" >&5
7910echo "${ECHO_T}yes" >&6
7911 else
7912 echo "$as_me:$LINENO: result: no" >&5
7913echo "${ECHO_T}no" >&6
7914 fi
7915
7916
7917 enablestring=
7918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7919echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7920 no_cache=0
7921 # Check whether --enable-imaglist or --disable-imaglist was given.
7922if test "${enable_imaglist+set}" = set; then
7923 enableval="$enable_imaglist"
7924
7925 if test "$enableval" = yes; then
7926 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7927 else
7928 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7929 fi
7930
7931else
7932
7933 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7934 if test "x$LINE" != x ; then
7935 eval "DEFAULT_$LINE"
7936 else
7937 no_cache=1
7938 fi
7939
7940 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7941
7942fi;
7943
7944 eval "$ac_cv_use_imaglist"
7945 if test "$no_cache" != 1; then
7946 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7947 fi
7948
7949 if test "$wxUSE_IMAGLIST" = yes; then
7950 echo "$as_me:$LINENO: result: yes" >&5
7951echo "${ECHO_T}yes" >&6
7952 else
7953 echo "$as_me:$LINENO: result: no" >&5
7954echo "${ECHO_T}no" >&6
7955 fi
7956
7957
7958 enablestring=
7959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7960echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7961 no_cache=0
7962 # Check whether --enable-listbook or --disable-listbook was given.
7963if test "${enable_listbook+set}" = set; then
7964 enableval="$enable_listbook"
7965
7966 if test "$enableval" = yes; then
7967 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7968 else
7969 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7970 fi
7971
7972else
7973
7974 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7975 if test "x$LINE" != x ; then
7976 eval "DEFAULT_$LINE"
7977 else
7978 no_cache=1
7979 fi
7980
7981 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7982
7983fi;
7984
7985 eval "$ac_cv_use_listbook"
7986 if test "$no_cache" != 1; then
7987 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7988 fi
7989
7990 if test "$wxUSE_LISTBOOK" = yes; then
7991 echo "$as_me:$LINENO: result: yes" >&5
7992echo "${ECHO_T}yes" >&6
7993 else
7994 echo "$as_me:$LINENO: result: no" >&5
7995echo "${ECHO_T}no" >&6
7996 fi
7997
7998
7999 enablestring=
8000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8001echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8002 no_cache=0
8003 # Check whether --enable-listbox or --disable-listbox was given.
8004if test "${enable_listbox+set}" = set; then
8005 enableval="$enable_listbox"
8006
8007 if test "$enableval" = yes; then
8008 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8009 else
8010 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8011 fi
8012
8013else
8014
8015 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8016 if test "x$LINE" != x ; then
8017 eval "DEFAULT_$LINE"
8018 else
8019 no_cache=1
8020 fi
8021
8022 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8023
8024fi;
8025
8026 eval "$ac_cv_use_listbox"
8027 if test "$no_cache" != 1; then
8028 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8029 fi
8030
8031 if test "$wxUSE_LISTBOX" = yes; then
8032 echo "$as_me:$LINENO: result: yes" >&5
8033echo "${ECHO_T}yes" >&6
8034 else
8035 echo "$as_me:$LINENO: result: no" >&5
8036echo "${ECHO_T}no" >&6
8037 fi
8038
8039
8040 enablestring=
8041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8042echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8043 no_cache=0
8044 # Check whether --enable-listctrl or --disable-listctrl was given.
8045if test "${enable_listctrl+set}" = set; then
8046 enableval="$enable_listctrl"
8047
8048 if test "$enableval" = yes; then
8049 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8050 else
8051 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8052 fi
8053
8054else
8055
8056 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8057 if test "x$LINE" != x ; then
8058 eval "DEFAULT_$LINE"
8059 else
8060 no_cache=1
8061 fi
8062
8063 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8064
8065fi;
8066
8067 eval "$ac_cv_use_listctrl"
8068 if test "$no_cache" != 1; then
8069 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8070 fi
8071
8072 if test "$wxUSE_LISTCTRL" = yes; then
8073 echo "$as_me:$LINENO: result: yes" >&5
8074echo "${ECHO_T}yes" >&6
8075 else
8076 echo "$as_me:$LINENO: result: no" >&5
8077echo "${ECHO_T}no" >&6
8078 fi
8079
8080
8081 enablestring=
8082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8083echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8084 no_cache=0
8085 # Check whether --enable-notebook or --disable-notebook was given.
8086if test "${enable_notebook+set}" = set; then
8087 enableval="$enable_notebook"
8088
8089 if test "$enableval" = yes; then
8090 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8091 else
8092 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8093 fi
8094
8095else
8096
8097 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8098 if test "x$LINE" != x ; then
8099 eval "DEFAULT_$LINE"
8100 else
8101 no_cache=1
8102 fi
8103
8104 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8105
8106fi;
8107
8108 eval "$ac_cv_use_notebook"
8109 if test "$no_cache" != 1; then
8110 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8111 fi
8112
8113 if test "$wxUSE_NOTEBOOK" = yes; then
8114 echo "$as_me:$LINENO: result: yes" >&5
8115echo "${ECHO_T}yes" >&6
8116 else
8117 echo "$as_me:$LINENO: result: no" >&5
8118echo "${ECHO_T}no" >&6
8119 fi
8120
8121
8122 enablestring=
8123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8124echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8125 no_cache=0
8126 # Check whether --enable-radiobox or --disable-radiobox was given.
8127if test "${enable_radiobox+set}" = set; then
8128 enableval="$enable_radiobox"
8129
8130 if test "$enableval" = yes; then
8131 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8132 else
8133 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8134 fi
8135
8136else
8137
8138 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8139 if test "x$LINE" != x ; then
8140 eval "DEFAULT_$LINE"
8141 else
8142 no_cache=1
8143 fi
8144
8145 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8146
8147fi;
8148
8149 eval "$ac_cv_use_radiobox"
8150 if test "$no_cache" != 1; then
8151 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8152 fi
8153
8154 if test "$wxUSE_RADIOBOX" = yes; then
8155 echo "$as_me:$LINENO: result: yes" >&5
8156echo "${ECHO_T}yes" >&6
8157 else
8158 echo "$as_me:$LINENO: result: no" >&5
8159echo "${ECHO_T}no" >&6
8160 fi
8161
8162
8163 enablestring=
8164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8165echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8166 no_cache=0
8167 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8168if test "${enable_radiobtn+set}" = set; then
8169 enableval="$enable_radiobtn"
8170
8171 if test "$enableval" = yes; then
8172 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8173 else
8174 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8175 fi
8176
8177else
8178
8179 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8180 if test "x$LINE" != x ; then
8181 eval "DEFAULT_$LINE"
8182 else
8183 no_cache=1
8184 fi
8185
8186 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8187
8188fi;
8189
8190 eval "$ac_cv_use_radiobtn"
8191 if test "$no_cache" != 1; then
8192 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8193 fi
8194
8195 if test "$wxUSE_RADIOBTN" = yes; then
8196 echo "$as_me:$LINENO: result: yes" >&5
8197echo "${ECHO_T}yes" >&6
8198 else
8199 echo "$as_me:$LINENO: result: no" >&5
8200echo "${ECHO_T}no" >&6
8201 fi
8202
8203
8204 enablestring=
8205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8206echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8207 no_cache=0
8208 # Check whether --enable-sash or --disable-sash was given.
8209if test "${enable_sash+set}" = set; then
8210 enableval="$enable_sash"
8211
8212 if test "$enableval" = yes; then
8213 ac_cv_use_sash='wxUSE_SASH=yes'
8214 else
8215 ac_cv_use_sash='wxUSE_SASH=no'
8216 fi
8217
8218else
8219
8220 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8221 if test "x$LINE" != x ; then
8222 eval "DEFAULT_$LINE"
8223 else
8224 no_cache=1
8225 fi
8226
8227 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8228
8229fi;
8230
8231 eval "$ac_cv_use_sash"
8232 if test "$no_cache" != 1; then
8233 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8234 fi
8235
8236 if test "$wxUSE_SASH" = yes; then
8237 echo "$as_me:$LINENO: result: yes" >&5
8238echo "${ECHO_T}yes" >&6
8239 else
8240 echo "$as_me:$LINENO: result: no" >&5
8241echo "${ECHO_T}no" >&6
8242 fi
8243
8244
8245 enablestring=
8246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8247echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8248 no_cache=0
8249 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8250if test "${enable_scrollbar+set}" = set; then
8251 enableval="$enable_scrollbar"
8252
8253 if test "$enableval" = yes; then
8254 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8255 else
8256 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8257 fi
8258
8259else
8260
8261 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8262 if test "x$LINE" != x ; then
8263 eval "DEFAULT_$LINE"
8264 else
8265 no_cache=1
8266 fi
8267
8268 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8269
8270fi;
8271
8272 eval "$ac_cv_use_scrollbar"
8273 if test "$no_cache" != 1; then
8274 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8275 fi
8276
8277 if test "$wxUSE_SCROLLBAR" = yes; then
8278 echo "$as_me:$LINENO: result: yes" >&5
8279echo "${ECHO_T}yes" >&6
8280 else
8281 echo "$as_me:$LINENO: result: no" >&5
8282echo "${ECHO_T}no" >&6
8283 fi
8284
8285
8286 enablestring=
8287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8288echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8289 no_cache=0
8290 # Check whether --enable-slider or --disable-slider was given.
8291if test "${enable_slider+set}" = set; then
8292 enableval="$enable_slider"
8293
8294 if test "$enableval" = yes; then
8295 ac_cv_use_slider='wxUSE_SLIDER=yes'
8296 else
8297 ac_cv_use_slider='wxUSE_SLIDER=no'
8298 fi
8299
8300else
8301
8302 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8303 if test "x$LINE" != x ; then
8304 eval "DEFAULT_$LINE"
8305 else
8306 no_cache=1
8307 fi
8308
8309 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8310
8311fi;
8312
8313 eval "$ac_cv_use_slider"
8314 if test "$no_cache" != 1; then
8315 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8316 fi
8317
8318 if test "$wxUSE_SLIDER" = yes; then
8319 echo "$as_me:$LINENO: result: yes" >&5
8320echo "${ECHO_T}yes" >&6
8321 else
8322 echo "$as_me:$LINENO: result: no" >&5
8323echo "${ECHO_T}no" >&6
8324 fi
8325
8326
8327 enablestring=
8328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8329echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8330 no_cache=0
8331 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8332if test "${enable_spinbtn+set}" = set; then
8333 enableval="$enable_spinbtn"
8334
8335 if test "$enableval" = yes; then
8336 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8337 else
8338 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8339 fi
8340
8341else
8342
8343 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8344 if test "x$LINE" != x ; then
8345 eval "DEFAULT_$LINE"
8346 else
8347 no_cache=1
8348 fi
8349
8350 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8351
8352fi;
8353
8354 eval "$ac_cv_use_spinbtn"
8355 if test "$no_cache" != 1; then
8356 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8357 fi
8358
8359 if test "$wxUSE_SPINBTN" = yes; then
8360 echo "$as_me:$LINENO: result: yes" >&5
8361echo "${ECHO_T}yes" >&6
8362 else
8363 echo "$as_me:$LINENO: result: no" >&5
8364echo "${ECHO_T}no" >&6
8365 fi
8366
8367
8368 enablestring=
8369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8370echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8371 no_cache=0
8372 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8373if test "${enable_spinctrl+set}" = set; then
8374 enableval="$enable_spinctrl"
8375
8376 if test "$enableval" = yes; then
8377 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8378 else
8379 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8380 fi
8381
8382else
8383
8384 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8385 if test "x$LINE" != x ; then
8386 eval "DEFAULT_$LINE"
8387 else
8388 no_cache=1
8389 fi
8390
8391 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8392
8393fi;
8394
8395 eval "$ac_cv_use_spinctrl"
8396 if test "$no_cache" != 1; then
8397 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8398 fi
8399
8400 if test "$wxUSE_SPINCTRL" = yes; then
8401 echo "$as_me:$LINENO: result: yes" >&5
8402echo "${ECHO_T}yes" >&6
8403 else
8404 echo "$as_me:$LINENO: result: no" >&5
8405echo "${ECHO_T}no" >&6
8406 fi
8407
8408
8409 enablestring=
8410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8411echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8412 no_cache=0
8413 # Check whether --enable-splitter or --disable-splitter was given.
8414if test "${enable_splitter+set}" = set; then
8415 enableval="$enable_splitter"
8416
8417 if test "$enableval" = yes; then
8418 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8419 else
8420 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8421 fi
8422
8423else
8424
8425 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8426 if test "x$LINE" != x ; then
8427 eval "DEFAULT_$LINE"
8428 else
8429 no_cache=1
8430 fi
8431
8432 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8433
8434fi;
8435
8436 eval "$ac_cv_use_splitter"
8437 if test "$no_cache" != 1; then
8438 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8439 fi
8440
8441 if test "$wxUSE_SPLITTER" = yes; then
8442 echo "$as_me:$LINENO: result: yes" >&5
8443echo "${ECHO_T}yes" >&6
8444 else
8445 echo "$as_me:$LINENO: result: no" >&5
8446echo "${ECHO_T}no" >&6
8447 fi
8448
8449
8450 enablestring=
8451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8452echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8453 no_cache=0
8454 # Check whether --enable-statbmp or --disable-statbmp was given.
8455if test "${enable_statbmp+set}" = set; then
8456 enableval="$enable_statbmp"
8457
8458 if test "$enableval" = yes; then
8459 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8460 else
8461 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8462 fi
8463
8464else
8465
8466 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8467 if test "x$LINE" != x ; then
8468 eval "DEFAULT_$LINE"
8469 else
8470 no_cache=1
8471 fi
8472
8473 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8474
8475fi;
8476
8477 eval "$ac_cv_use_statbmp"
8478 if test "$no_cache" != 1; then
8479 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8480 fi
8481
8482 if test "$wxUSE_STATBMP" = yes; then
8483 echo "$as_me:$LINENO: result: yes" >&5
8484echo "${ECHO_T}yes" >&6
8485 else
8486 echo "$as_me:$LINENO: result: no" >&5
8487echo "${ECHO_T}no" >&6
8488 fi
8489
8490
8491 enablestring=
8492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8493echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8494 no_cache=0
8495 # Check whether --enable-statbox or --disable-statbox was given.
8496if test "${enable_statbox+set}" = set; then
8497 enableval="$enable_statbox"
8498
8499 if test "$enableval" = yes; then
8500 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8501 else
8502 ac_cv_use_statbox='wxUSE_STATBOX=no'
8503 fi
8504
8505else
8506
8507 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8508 if test "x$LINE" != x ; then
8509 eval "DEFAULT_$LINE"
8510 else
8511 no_cache=1
8512 fi
8513
8514 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8515
8516fi;
8517
8518 eval "$ac_cv_use_statbox"
8519 if test "$no_cache" != 1; then
8520 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8521 fi
8522
8523 if test "$wxUSE_STATBOX" = yes; then
8524 echo "$as_me:$LINENO: result: yes" >&5
8525echo "${ECHO_T}yes" >&6
8526 else
8527 echo "$as_me:$LINENO: result: no" >&5
8528echo "${ECHO_T}no" >&6
8529 fi
8530
8531
8532 enablestring=
8533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8534echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8535 no_cache=0
8536 # Check whether --enable-statline or --disable-statline was given.
8537if test "${enable_statline+set}" = set; then
8538 enableval="$enable_statline"
8539
8540 if test "$enableval" = yes; then
8541 ac_cv_use_statline='wxUSE_STATLINE=yes'
8542 else
8543 ac_cv_use_statline='wxUSE_STATLINE=no'
8544 fi
8545
8546else
8547
8548 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8549 if test "x$LINE" != x ; then
8550 eval "DEFAULT_$LINE"
8551 else
8552 no_cache=1
8553 fi
8554
8555 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8556
8557fi;
8558
8559 eval "$ac_cv_use_statline"
8560 if test "$no_cache" != 1; then
8561 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8562 fi
8563
8564 if test "$wxUSE_STATLINE" = yes; then
8565 echo "$as_me:$LINENO: result: yes" >&5
8566echo "${ECHO_T}yes" >&6
8567 else
8568 echo "$as_me:$LINENO: result: no" >&5
8569echo "${ECHO_T}no" >&6
8570 fi
8571
8572
8573 enablestring=
8574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8575echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8576 no_cache=0
8577 # Check whether --enable-stattext or --disable-stattext was given.
8578if test "${enable_stattext+set}" = set; then
8579 enableval="$enable_stattext"
8580
8581 if test "$enableval" = yes; then
8582 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8583 else
8584 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8585 fi
8586
8587else
8588
8589 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8590 if test "x$LINE" != x ; then
8591 eval "DEFAULT_$LINE"
8592 else
8593 no_cache=1
8594 fi
8595
8596 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8597
8598fi;
8599
8600 eval "$ac_cv_use_stattext"
8601 if test "$no_cache" != 1; then
8602 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8603 fi
8604
8605 if test "$wxUSE_STATTEXT" = yes; then
8606 echo "$as_me:$LINENO: result: yes" >&5
8607echo "${ECHO_T}yes" >&6
8608 else
8609 echo "$as_me:$LINENO: result: no" >&5
8610echo "${ECHO_T}no" >&6
8611 fi
8612
8613
8614 enablestring=
8615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8616echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8617 no_cache=0
8618 # Check whether --enable-statusbar or --disable-statusbar was given.
8619if test "${enable_statusbar+set}" = set; then
8620 enableval="$enable_statusbar"
8621
8622 if test "$enableval" = yes; then
8623 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8624 else
8625 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8626 fi
8627
8628else
8629
8630 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8631 if test "x$LINE" != x ; then
8632 eval "DEFAULT_$LINE"
8633 else
8634 no_cache=1
8635 fi
8636
8637 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8638
8639fi;
8640
8641 eval "$ac_cv_use_statusbar"
8642 if test "$no_cache" != 1; then
8643 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8644 fi
8645
8646 if test "$wxUSE_STATUSBAR" = yes; then
8647 echo "$as_me:$LINENO: result: yes" >&5
8648echo "${ECHO_T}yes" >&6
8649 else
8650 echo "$as_me:$LINENO: result: no" >&5
8651echo "${ECHO_T}no" >&6
8652 fi
8653
8654
8655 enablestring=
8656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8657echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8658 no_cache=0
8659 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8660if test "${enable_tabdialog+set}" = set; then
8661 enableval="$enable_tabdialog"
8662
8663 if test "$enableval" = yes; then
8664 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8665 else
8666 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8667 fi
8668
8669else
8670
8671 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8672 if test "x$LINE" != x ; then
8673 eval "DEFAULT_$LINE"
8674 else
8675 no_cache=1
8676 fi
8677
8678 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8679
8680fi;
8681
8682 eval "$ac_cv_use_tabdialog"
8683 if test "$no_cache" != 1; then
8684 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8685 fi
8686
8687 if test "$wxUSE_TABDIALOG" = yes; then
8688 echo "$as_me:$LINENO: result: yes" >&5
8689echo "${ECHO_T}yes" >&6
8690 else
8691 echo "$as_me:$LINENO: result: no" >&5
8692echo "${ECHO_T}no" >&6
8693 fi
8694
8695
8696 enablestring=
8697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8698echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8699 no_cache=0
8700 # Check whether --enable-textctrl or --disable-textctrl was given.
8701if test "${enable_textctrl+set}" = set; then
8702 enableval="$enable_textctrl"
8703
8704 if test "$enableval" = yes; then
8705 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8706 else
8707 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8708 fi
8709
8710else
8711
8712 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8713 if test "x$LINE" != x ; then
8714 eval "DEFAULT_$LINE"
8715 else
8716 no_cache=1
8717 fi
8718
8719 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8720
8721fi;
8722
8723 eval "$ac_cv_use_textctrl"
8724 if test "$no_cache" != 1; then
8725 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8726 fi
8727
8728 if test "$wxUSE_TEXTCTRL" = yes; then
8729 echo "$as_me:$LINENO: result: yes" >&5
8730echo "${ECHO_T}yes" >&6
8731 else
8732 echo "$as_me:$LINENO: result: no" >&5
8733echo "${ECHO_T}no" >&6
8734 fi
8735
8736
8737 enablestring=
8738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8739echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8740 no_cache=0
8741 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8742if test "${enable_togglebtn+set}" = set; then
8743 enableval="$enable_togglebtn"
8744
8745 if test "$enableval" = yes; then
8746 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8747 else
8748 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8749 fi
8750
8751else
8752
8753 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8754 if test "x$LINE" != x ; then
8755 eval "DEFAULT_$LINE"
8756 else
8757 no_cache=1
8758 fi
8759
8760 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8761
8762fi;
8763
8764 eval "$ac_cv_use_togglebtn"
8765 if test "$no_cache" != 1; then
8766 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8767 fi
8768
8769 if test "$wxUSE_TOGGLEBTN" = yes; then
8770 echo "$as_me:$LINENO: result: yes" >&5
8771echo "${ECHO_T}yes" >&6
8772 else
8773 echo "$as_me:$LINENO: result: no" >&5
8774echo "${ECHO_T}no" >&6
8775 fi
8776
8777
8778 enablestring=
8779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8780echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8781 no_cache=0
8782 # Check whether --enable-toolbar or --disable-toolbar was given.
8783if test "${enable_toolbar+set}" = set; then
8784 enableval="$enable_toolbar"
8785
8786 if test "$enableval" = yes; then
8787 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8788 else
8789 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8790 fi
8791
8792else
8793
8794 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8795 if test "x$LINE" != x ; then
8796 eval "DEFAULT_$LINE"
8797 else
8798 no_cache=1
8799 fi
8800
8801 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8802
8803fi;
8804
8805 eval "$ac_cv_use_toolbar"
8806 if test "$no_cache" != 1; then
8807 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8808 fi
8809
8810 if test "$wxUSE_TOOLBAR" = yes; then
8811 echo "$as_me:$LINENO: result: yes" >&5
8812echo "${ECHO_T}yes" >&6
8813 else
8814 echo "$as_me:$LINENO: result: no" >&5
8815echo "${ECHO_T}no" >&6
8816 fi
8817
8818
8819 enablestring=
8820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8821echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8822 no_cache=0
8823 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8824if test "${enable_tbarnative+set}" = set; then
8825 enableval="$enable_tbarnative"
8826
8827 if test "$enableval" = yes; then
8828 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8829 else
8830 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8831 fi
8832
8833else
8834
8835 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8836 if test "x$LINE" != x ; then
8837 eval "DEFAULT_$LINE"
8838 else
8839 no_cache=1
8840 fi
8841
8842 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8843
8844fi;
8845
8846 eval "$ac_cv_use_tbarnative"
8847 if test "$no_cache" != 1; then
8848 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8849 fi
8850
8851 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8852 echo "$as_me:$LINENO: result: yes" >&5
8853echo "${ECHO_T}yes" >&6
8854 else
8855 echo "$as_me:$LINENO: result: no" >&5
8856echo "${ECHO_T}no" >&6
8857 fi
8858
8859
8860 enablestring=
8861 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8862echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8863 no_cache=0
8864 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8865if test "${enable_tbarsmpl+set}" = set; then
8866 enableval="$enable_tbarsmpl"
8867
8868 if test "$enableval" = yes; then
8869 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8870 else
8871 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8872 fi
8873
8874else
8875
8876 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8877 if test "x$LINE" != x ; then
8878 eval "DEFAULT_$LINE"
8879 else
8880 no_cache=1
8881 fi
8882
8883 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8884
8885fi;
8886
8887 eval "$ac_cv_use_tbarsmpl"
8888 if test "$no_cache" != 1; then
8889 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8890 fi
8891
8892 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8893 echo "$as_me:$LINENO: result: yes" >&5
8894echo "${ECHO_T}yes" >&6
8895 else
8896 echo "$as_me:$LINENO: result: no" >&5
8897echo "${ECHO_T}no" >&6
8898 fi
8899
8900
8901 enablestring=
8902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8903echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8904 no_cache=0
8905 # Check whether --enable-treectrl or --disable-treectrl was given.
8906if test "${enable_treectrl+set}" = set; then
8907 enableval="$enable_treectrl"
8908
8909 if test "$enableval" = yes; then
8910 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8911 else
8912 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8913 fi
8914
8915else
8916
8917 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8918 if test "x$LINE" != x ; then
8919 eval "DEFAULT_$LINE"
8920 else
8921 no_cache=1
8922 fi
8923
8924 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8925
8926fi;
8927
8928 eval "$ac_cv_use_treectrl"
8929 if test "$no_cache" != 1; then
8930 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8931 fi
8932
8933 if test "$wxUSE_TREECTRL" = yes; then
8934 echo "$as_me:$LINENO: result: yes" >&5
8935echo "${ECHO_T}yes" >&6
8936 else
8937 echo "$as_me:$LINENO: result: no" >&5
8938echo "${ECHO_T}no" >&6
8939 fi
8940
8941
8942 enablestring=
8943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8944echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8945 no_cache=0
8946 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8947if test "${enable_tipwindow+set}" = set; then
8948 enableval="$enable_tipwindow"
8949
8950 if test "$enableval" = yes; then
8951 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8952 else
8953 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8954 fi
8955
8956else
8957
8958 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8959 if test "x$LINE" != x ; then
8960 eval "DEFAULT_$LINE"
8961 else
8962 no_cache=1
8963 fi
8964
8965 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8966
8967fi;
8968
8969 eval "$ac_cv_use_tipwindow"
8970 if test "$no_cache" != 1; then
8971 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8972 fi
8973
8974 if test "$wxUSE_TIPWINDOW" = yes; then
8975 echo "$as_me:$LINENO: result: yes" >&5
8976echo "${ECHO_T}yes" >&6
8977 else
8978 echo "$as_me:$LINENO: result: no" >&5
8979echo "${ECHO_T}no" >&6
8980 fi
8981
8982
8983 enablestring=
8984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8985echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8986 no_cache=0
8987 # Check whether --enable-popupwin or --disable-popupwin was given.
8988if test "${enable_popupwin+set}" = set; then
8989 enableval="$enable_popupwin"
8990
8991 if test "$enableval" = yes; then
8992 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8993 else
8994 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8995 fi
8996
8997else
8998
8999 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9000 if test "x$LINE" != x ; then
9001 eval "DEFAULT_$LINE"
9002 else
9003 no_cache=1
9004 fi
9005
9006 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9007
9008fi;
9009
9010 eval "$ac_cv_use_popupwin"
9011 if test "$no_cache" != 1; then
9012 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9013 fi
9014
9015 if test "$wxUSE_POPUPWIN" = yes; then
9016 echo "$as_me:$LINENO: result: yes" >&5
9017echo "${ECHO_T}yes" >&6
9018 else
9019 echo "$as_me:$LINENO: result: no" >&5
9020echo "${ECHO_T}no" >&6
9021 fi
9022
9023
9024
9025
9026 enablestring=
9027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9028echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9029 no_cache=0
9030 # Check whether --enable-commondlg or --disable-commondlg was given.
9031if test "${enable_commondlg+set}" = set; then
9032 enableval="$enable_commondlg"
9033
9034 if test "$enableval" = yes; then
9035 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9036 else
9037 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9038 fi
9039
9040else
9041
9042 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9043 if test "x$LINE" != x ; then
9044 eval "DEFAULT_$LINE"
9045 else
9046 no_cache=1
9047 fi
9048
9049 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9050
9051fi;
9052
9053 eval "$ac_cv_use_commondlg"
9054 if test "$no_cache" != 1; then
9055 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9056 fi
9057
9058 if test "$wxUSE_COMMONDLGS" = yes; then
9059 echo "$as_me:$LINENO: result: yes" >&5
9060echo "${ECHO_T}yes" >&6
9061 else
9062 echo "$as_me:$LINENO: result: no" >&5
9063echo "${ECHO_T}no" >&6
9064 fi
9065
9066
9067 enablestring=
9068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9069echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9070 no_cache=0
9071 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9072if test "${enable_choicedlg+set}" = set; then
9073 enableval="$enable_choicedlg"
9074
9075 if test "$enableval" = yes; then
9076 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9077 else
9078 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9079 fi
9080
9081else
9082
9083 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9084 if test "x$LINE" != x ; then
9085 eval "DEFAULT_$LINE"
9086 else
9087 no_cache=1
9088 fi
9089
9090 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9091
9092fi;
9093
9094 eval "$ac_cv_use_choicedlg"
9095 if test "$no_cache" != 1; then
9096 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9097 fi
9098
9099 if test "$wxUSE_CHOICEDLG" = yes; then
9100 echo "$as_me:$LINENO: result: yes" >&5
9101echo "${ECHO_T}yes" >&6
9102 else
9103 echo "$as_me:$LINENO: result: no" >&5
9104echo "${ECHO_T}no" >&6
9105 fi
9106
9107
9108 enablestring=
9109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9110echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9111 no_cache=0
9112 # Check whether --enable-coldlg or --disable-coldlg was given.
9113if test "${enable_coldlg+set}" = set; then
9114 enableval="$enable_coldlg"
9115
9116 if test "$enableval" = yes; then
9117 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9118 else
9119 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9120 fi
9121
9122else
9123
9124 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9125 if test "x$LINE" != x ; then
9126 eval "DEFAULT_$LINE"
9127 else
9128 no_cache=1
9129 fi
9130
9131 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9132
9133fi;
9134
9135 eval "$ac_cv_use_coldlg"
9136 if test "$no_cache" != 1; then
9137 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9138 fi
9139
9140 if test "$wxUSE_COLOURDLG" = yes; then
9141 echo "$as_me:$LINENO: result: yes" >&5
9142echo "${ECHO_T}yes" >&6
9143 else
9144 echo "$as_me:$LINENO: result: no" >&5
9145echo "${ECHO_T}no" >&6
9146 fi
9147
9148
9149 enablestring=
9150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9151echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9152 no_cache=0
9153 # Check whether --enable-filedlg or --disable-filedlg was given.
9154if test "${enable_filedlg+set}" = set; then
9155 enableval="$enable_filedlg"
9156
9157 if test "$enableval" = yes; then
9158 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9159 else
9160 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9161 fi
9162
9163else
9164
9165 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9166 if test "x$LINE" != x ; then
9167 eval "DEFAULT_$LINE"
9168 else
9169 no_cache=1
9170 fi
9171
9172 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9173
9174fi;
9175
9176 eval "$ac_cv_use_filedlg"
9177 if test "$no_cache" != 1; then
9178 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9179 fi
9180
9181 if test "$wxUSE_FILEDLG" = yes; then
9182 echo "$as_me:$LINENO: result: yes" >&5
9183echo "${ECHO_T}yes" >&6
9184 else
9185 echo "$as_me:$LINENO: result: no" >&5
9186echo "${ECHO_T}no" >&6
9187 fi
9188
9189
9190 enablestring=
9191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9192echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9193 no_cache=0
9194 # Check whether --enable-finddlg or --disable-finddlg was given.
9195if test "${enable_finddlg+set}" = set; then
9196 enableval="$enable_finddlg"
9197
9198 if test "$enableval" = yes; then
9199 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9200 else
9201 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9202 fi
9203
9204else
9205
9206 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9207 if test "x$LINE" != x ; then
9208 eval "DEFAULT_$LINE"
9209 else
9210 no_cache=1
9211 fi
9212
9213 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9214
9215fi;
9216
9217 eval "$ac_cv_use_finddlg"
9218 if test "$no_cache" != 1; then
9219 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9220 fi
9221
9222 if test "$wxUSE_FINDREPLDLG" = yes; then
9223 echo "$as_me:$LINENO: result: yes" >&5
9224echo "${ECHO_T}yes" >&6
9225 else
9226 echo "$as_me:$LINENO: result: no" >&5
9227echo "${ECHO_T}no" >&6
9228 fi
9229
9230
9231 enablestring=
9232 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9233echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9234 no_cache=0
9235 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9236if test "${enable_fontdlg+set}" = set; then
9237 enableval="$enable_fontdlg"
9238
9239 if test "$enableval" = yes; then
9240 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9241 else
9242 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9243 fi
9244
9245else
9246
9247 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9248 if test "x$LINE" != x ; then
9249 eval "DEFAULT_$LINE"
9250 else
9251 no_cache=1
9252 fi
9253
9254 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9255
9256fi;
9257
9258 eval "$ac_cv_use_fontdlg"
9259 if test "$no_cache" != 1; then
9260 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9261 fi
9262
9263 if test "$wxUSE_FONTDLG" = yes; then
9264 echo "$as_me:$LINENO: result: yes" >&5
9265echo "${ECHO_T}yes" >&6
9266 else
9267 echo "$as_me:$LINENO: result: no" >&5
9268echo "${ECHO_T}no" >&6
9269 fi
9270
9271
9272 enablestring=
9273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9274echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9275 no_cache=0
9276 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9277if test "${enable_dirdlg+set}" = set; then
9278 enableval="$enable_dirdlg"
9279
9280 if test "$enableval" = yes; then
9281 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9282 else
9283 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9284 fi
9285
9286else
9287
9288 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9289 if test "x$LINE" != x ; then
9290 eval "DEFAULT_$LINE"
9291 else
9292 no_cache=1
9293 fi
9294
9295 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9296
9297fi;
9298
9299 eval "$ac_cv_use_dirdlg"
9300 if test "$no_cache" != 1; then
9301 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9302 fi
9303
9304 if test "$wxUSE_DIRDLG" = yes; then
9305 echo "$as_me:$LINENO: result: yes" >&5
9306echo "${ECHO_T}yes" >&6
9307 else
9308 echo "$as_me:$LINENO: result: no" >&5
9309echo "${ECHO_T}no" >&6
9310 fi
9311
9312
9313 enablestring=
9314 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9315echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9316 no_cache=0
9317 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9318if test "${enable_msgdlg+set}" = set; then
9319 enableval="$enable_msgdlg"
9320
9321 if test "$enableval" = yes; then
9322 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9323 else
9324 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9325 fi
9326
9327else
9328
9329 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9330 if test "x$LINE" != x ; then
9331 eval "DEFAULT_$LINE"
9332 else
9333 no_cache=1
9334 fi
9335
9336 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9337
9338fi;
9339
9340 eval "$ac_cv_use_msgdlg"
9341 if test "$no_cache" != 1; then
9342 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9343 fi
9344
9345 if test "$wxUSE_MSGDLG" = yes; then
9346 echo "$as_me:$LINENO: result: yes" >&5
9347echo "${ECHO_T}yes" >&6
9348 else
9349 echo "$as_me:$LINENO: result: no" >&5
9350echo "${ECHO_T}no" >&6
9351 fi
9352
9353
9354 enablestring=
9355 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9356echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9357 no_cache=0
9358 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9359if test "${enable_numberdlg+set}" = set; then
9360 enableval="$enable_numberdlg"
9361
9362 if test "$enableval" = yes; then
9363 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9364 else
9365 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9366 fi
9367
9368else
9369
9370 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9371 if test "x$LINE" != x ; then
9372 eval "DEFAULT_$LINE"
9373 else
9374 no_cache=1
9375 fi
9376
9377 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9378
9379fi;
9380
9381 eval "$ac_cv_use_numberdlg"
9382 if test "$no_cache" != 1; then
9383 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9384 fi
9385
9386 if test "$wxUSE_NUMBERDLG" = yes; then
9387 echo "$as_me:$LINENO: result: yes" >&5
9388echo "${ECHO_T}yes" >&6
9389 else
9390 echo "$as_me:$LINENO: result: no" >&5
9391echo "${ECHO_T}no" >&6
9392 fi
9393
9394
9395 enablestring=
9396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9397echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9398 no_cache=0
9399 # Check whether --enable-splash or --disable-splash was given.
9400if test "${enable_splash+set}" = set; then
9401 enableval="$enable_splash"
9402
9403 if test "$enableval" = yes; then
9404 ac_cv_use_splash='wxUSE_SPLASH=yes'
9405 else
9406 ac_cv_use_splash='wxUSE_SPLASH=no'
9407 fi
9408
9409else
9410
9411 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9412 if test "x$LINE" != x ; then
9413 eval "DEFAULT_$LINE"
9414 else
9415 no_cache=1
9416 fi
9417
9418 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9419
9420fi;
9421
9422 eval "$ac_cv_use_splash"
9423 if test "$no_cache" != 1; then
9424 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9425 fi
9426
9427 if test "$wxUSE_SPLASH" = yes; then
9428 echo "$as_me:$LINENO: result: yes" >&5
9429echo "${ECHO_T}yes" >&6
9430 else
9431 echo "$as_me:$LINENO: result: no" >&5
9432echo "${ECHO_T}no" >&6
9433 fi
9434
9435
9436 enablestring=
9437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9438echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9439 no_cache=0
9440 # Check whether --enable-textdlg or --disable-textdlg was given.
9441if test "${enable_textdlg+set}" = set; then
9442 enableval="$enable_textdlg"
9443
9444 if test "$enableval" = yes; then
9445 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9446 else
9447 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9448 fi
9449
9450else
9451
9452 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9453 if test "x$LINE" != x ; then
9454 eval "DEFAULT_$LINE"
9455 else
9456 no_cache=1
9457 fi
9458
9459 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9460
9461fi;
9462
9463 eval "$ac_cv_use_textdlg"
9464 if test "$no_cache" != 1; then
9465 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9466 fi
9467
9468 if test "$wxUSE_TEXTDLG" = yes; then
9469 echo "$as_me:$LINENO: result: yes" >&5
9470echo "${ECHO_T}yes" >&6
9471 else
9472 echo "$as_me:$LINENO: result: no" >&5
9473echo "${ECHO_T}no" >&6
9474 fi
9475
9476
9477 enablestring=
9478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9479echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9480 no_cache=0
9481 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9482if test "${enable_tipdlg+set}" = set; then
9483 enableval="$enable_tipdlg"
9484
9485 if test "$enableval" = yes; then
9486 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9487 else
9488 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9489 fi
9490
9491else
9492
9493 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9494 if test "x$LINE" != x ; then
9495 eval "DEFAULT_$LINE"
9496 else
9497 no_cache=1
9498 fi
9499
9500 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9501
9502fi;
9503
9504 eval "$ac_cv_use_tipdlg"
9505 if test "$no_cache" != 1; then
9506 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9507 fi
9508
9509 if test "$wxUSE_STARTUP_TIPS" = yes; then
9510 echo "$as_me:$LINENO: result: yes" >&5
9511echo "${ECHO_T}yes" >&6
9512 else
9513 echo "$as_me:$LINENO: result: no" >&5
9514echo "${ECHO_T}no" >&6
9515 fi
9516
9517
9518 enablestring=
9519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9520echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9521 no_cache=0
9522 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9523if test "${enable_progressdlg+set}" = set; then
9524 enableval="$enable_progressdlg"
9525
9526 if test "$enableval" = yes; then
9527 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9528 else
9529 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9530 fi
9531
9532else
9533
9534 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9535 if test "x$LINE" != x ; then
9536 eval "DEFAULT_$LINE"
9537 else
9538 no_cache=1
9539 fi
9540
9541 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9542
9543fi;
9544
9545 eval "$ac_cv_use_progressdlg"
9546 if test "$no_cache" != 1; then
9547 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9548 fi
9549
9550 if test "$wxUSE_PROGRESSDLG" = yes; then
9551 echo "$as_me:$LINENO: result: yes" >&5
9552echo "${ECHO_T}yes" >&6
9553 else
9554 echo "$as_me:$LINENO: result: no" >&5
9555echo "${ECHO_T}no" >&6
9556 fi
9557
9558
9559 enablestring=
9560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9561echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9562 no_cache=0
9563 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9564if test "${enable_wizarddlg+set}" = set; then
9565 enableval="$enable_wizarddlg"
9566
9567 if test "$enableval" = yes; then
9568 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9569 else
9570 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9571 fi
9572
9573else
9574
9575 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9576 if test "x$LINE" != x ; then
9577 eval "DEFAULT_$LINE"
9578 else
9579 no_cache=1
9580 fi
9581
9582 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9583
9584fi;
9585
9586 eval "$ac_cv_use_wizarddlg"
9587 if test "$no_cache" != 1; then
9588 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9589 fi
9590
9591 if test "$wxUSE_WIZARDDLG" = yes; then
9592 echo "$as_me:$LINENO: result: yes" >&5
9593echo "${ECHO_T}yes" >&6
9594 else
9595 echo "$as_me:$LINENO: result: no" >&5
9596echo "${ECHO_T}no" >&6
9597 fi
9598
9599
9600
9601
9602 enablestring=
9603 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9604echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9605 no_cache=0
9606 # Check whether --enable-menus or --disable-menus was given.
9607if test "${enable_menus+set}" = set; then
9608 enableval="$enable_menus"
9609
9610 if test "$enableval" = yes; then
9611 ac_cv_use_menus='wxUSE_MENUS=yes'
9612 else
9613 ac_cv_use_menus='wxUSE_MENUS=no'
9614 fi
9615
9616else
9617
9618 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9619 if test "x$LINE" != x ; then
9620 eval "DEFAULT_$LINE"
9621 else
9622 no_cache=1
9623 fi
9624
9625 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9626
9627fi;
9628
9629 eval "$ac_cv_use_menus"
9630 if test "$no_cache" != 1; then
9631 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9632 fi
9633
9634 if test "$wxUSE_MENUS" = yes; then
9635 echo "$as_me:$LINENO: result: yes" >&5
9636echo "${ECHO_T}yes" >&6
9637 else
9638 echo "$as_me:$LINENO: result: no" >&5
9639echo "${ECHO_T}no" >&6
9640 fi
9641
9642
9643 enablestring=
9644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9645echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9646 no_cache=0
9647 # Check whether --enable-miniframe or --disable-miniframe was given.
9648if test "${enable_miniframe+set}" = set; then
9649 enableval="$enable_miniframe"
9650
9651 if test "$enableval" = yes; then
9652 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9653 else
9654 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9655 fi
9656
9657else
9658
9659 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9660 if test "x$LINE" != x ; then
9661 eval "DEFAULT_$LINE"
9662 else
9663 no_cache=1
9664 fi
9665
9666 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9667
9668fi;
9669
9670 eval "$ac_cv_use_miniframe"
9671 if test "$no_cache" != 1; then
9672 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9673 fi
9674
9675 if test "$wxUSE_MINIFRAME" = yes; then
9676 echo "$as_me:$LINENO: result: yes" >&5
9677echo "${ECHO_T}yes" >&6
9678 else
9679 echo "$as_me:$LINENO: result: no" >&5
9680echo "${ECHO_T}no" >&6
9681 fi
9682
9683
9684 enablestring=
9685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9686echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9687 no_cache=0
9688 # Check whether --enable-tooltips or --disable-tooltips was given.
9689if test "${enable_tooltips+set}" = set; then
9690 enableval="$enable_tooltips"
9691
9692 if test "$enableval" = yes; then
9693 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9694 else
9695 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9696 fi
9697
9698else
9699
9700 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9701 if test "x$LINE" != x ; then
9702 eval "DEFAULT_$LINE"
9703 else
9704 no_cache=1
9705 fi
9706
9707 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9708
9709fi;
9710
9711 eval "$ac_cv_use_tooltips"
9712 if test "$no_cache" != 1; then
9713 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9714 fi
9715
9716 if test "$wxUSE_TOOLTIPS" = yes; then
9717 echo "$as_me:$LINENO: result: yes" >&5
9718echo "${ECHO_T}yes" >&6
9719 else
9720 echo "$as_me:$LINENO: result: no" >&5
9721echo "${ECHO_T}no" >&6
9722 fi
9723
9724
9725 enablestring=
9726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9727echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9728 no_cache=0
9729 # Check whether --enable-splines or --disable-splines was given.
9730if test "${enable_splines+set}" = set; then
9731 enableval="$enable_splines"
9732
9733 if test "$enableval" = yes; then
9734 ac_cv_use_splines='wxUSE_SPLINES=yes'
9735 else
9736 ac_cv_use_splines='wxUSE_SPLINES=no'
9737 fi
9738
9739else
9740
9741 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9742 if test "x$LINE" != x ; then
9743 eval "DEFAULT_$LINE"
9744 else
9745 no_cache=1
9746 fi
9747
9748 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9749
9750fi;
9751
9752 eval "$ac_cv_use_splines"
9753 if test "$no_cache" != 1; then
9754 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9755 fi
9756
9757 if test "$wxUSE_SPLINES" = yes; then
9758 echo "$as_me:$LINENO: result: yes" >&5
9759echo "${ECHO_T}yes" >&6
9760 else
9761 echo "$as_me:$LINENO: result: no" >&5
9762echo "${ECHO_T}no" >&6
9763 fi
9764
9765
fbe2ca43
SN
9766 enablestring=
9767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9768echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9769 no_cache=0
9770 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9771if test "${enable_mousewheel+set}" = set; then
9772 enableval="$enable_mousewheel"
9773
9774 if test "$enableval" = yes; then
9775 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9776 else
9777 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9778 fi
9779
9780else
9781
9782 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9783 if test "x$LINE" != x ; then
9784 eval "DEFAULT_$LINE"
9785 else
9786 no_cache=1
9787 fi
9788
9789 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9790
9791fi;
9792
9793 eval "$ac_cv_use_mousewheel"
9794 if test "$no_cache" != 1; then
9795 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9796 fi
9797
9798 if test "$wxUSE_MOUSEWHEEL" = yes; then
9799 echo "$as_me:$LINENO: result: yes" >&5
9800echo "${ECHO_T}yes" >&6
9801 else
9802 echo "$as_me:$LINENO: result: no" >&5
9803echo "${ECHO_T}no" >&6
9804 fi
9805
9806
a848cd7e
SC
9807 enablestring=
9808 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9809echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9810 no_cache=0
9811 # Check whether --enable-validators or --disable-validators was given.
9812if test "${enable_validators+set}" = set; then
9813 enableval="$enable_validators"
9814
9815 if test "$enableval" = yes; then
9816 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9817 else
9818 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9819 fi
9820
9821else
9822
9823 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9824 if test "x$LINE" != x ; then
9825 eval "DEFAULT_$LINE"
9826 else
9827 no_cache=1
9828 fi
9829
9830 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9831
9832fi;
9833
9834 eval "$ac_cv_use_validators"
9835 if test "$no_cache" != 1; then
9836 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9837 fi
9838
9839 if test "$wxUSE_VALIDATORS" = yes; then
9840 echo "$as_me:$LINENO: result: yes" >&5
9841echo "${ECHO_T}yes" >&6
9842 else
9843 echo "$as_me:$LINENO: result: no" >&5
9844echo "${ECHO_T}no" >&6
9845 fi
9846
9847
9848 enablestring=
9849 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9850echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9851 no_cache=0
9852 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9853if test "${enable_busyinfo+set}" = set; then
9854 enableval="$enable_busyinfo"
9855
9856 if test "$enableval" = yes; then
9857 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9858 else
9859 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9860 fi
9861
9862else
9863
9864 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9865 if test "x$LINE" != x ; then
9866 eval "DEFAULT_$LINE"
9867 else
9868 no_cache=1
9869 fi
9870
9871 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9872
9873fi;
9874
9875 eval "$ac_cv_use_busyinfo"
9876 if test "$no_cache" != 1; then
9877 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9878 fi
9879
9880 if test "$wxUSE_BUSYINFO" = yes; then
9881 echo "$as_me:$LINENO: result: yes" >&5
9882echo "${ECHO_T}yes" >&6
9883 else
9884 echo "$as_me:$LINENO: result: no" >&5
9885echo "${ECHO_T}no" >&6
9886 fi
9887
9888
9889 enablestring=
9890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9891echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9892 no_cache=0
9893 # Check whether --enable-joystick or --disable-joystick was given.
9894if test "${enable_joystick+set}" = set; then
9895 enableval="$enable_joystick"
9896
9897 if test "$enableval" = yes; then
9898 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9899 else
9900 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9901 fi
9902
9903else
9904
9905 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9906 if test "x$LINE" != x ; then
9907 eval "DEFAULT_$LINE"
9908 else
9909 no_cache=1
9910 fi
9911
9912 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9913
9914fi;
9915
9916 eval "$ac_cv_use_joystick"
9917 if test "$no_cache" != 1; then
9918 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9919 fi
9920
9921 if test "$wxUSE_JOYSTICK" = yes; then
9922 echo "$as_me:$LINENO: result: yes" >&5
9923echo "${ECHO_T}yes" >&6
9924 else
9925 echo "$as_me:$LINENO: result: no" >&5
9926echo "${ECHO_T}no" >&6
9927 fi
9928
9929
9930 enablestring=
9931 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9932echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9933 no_cache=0
9934 # Check whether --enable-metafile or --disable-metafile was given.
9935if test "${enable_metafile+set}" = set; then
9936 enableval="$enable_metafile"
9937
9938 if test "$enableval" = yes; then
9939 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9940 else
9941 ac_cv_use_metafile='wxUSE_METAFILE=no'
9942 fi
9943
9944else
9945
9946 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9947 if test "x$LINE" != x ; then
9948 eval "DEFAULT_$LINE"
9949 else
9950 no_cache=1
9951 fi
9952
9953 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9954
9955fi;
9956
9957 eval "$ac_cv_use_metafile"
9958 if test "$no_cache" != 1; then
9959 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9960 fi
9961
9962 if test "$wxUSE_METAFILE" = yes; then
9963 echo "$as_me:$LINENO: result: yes" >&5
9964echo "${ECHO_T}yes" >&6
9965 else
9966 echo "$as_me:$LINENO: result: no" >&5
9967echo "${ECHO_T}no" >&6
9968 fi
9969
9970
9971 enablestring=
9972 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9973echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9974 no_cache=0
9975 # Check whether --enable-dragimage or --disable-dragimage was given.
9976if test "${enable_dragimage+set}" = set; then
9977 enableval="$enable_dragimage"
9978
9979 if test "$enableval" = yes; then
9980 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9981 else
9982 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9983 fi
9984
9985else
9986
9987 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9988 if test "x$LINE" != x ; then
9989 eval "DEFAULT_$LINE"
9990 else
9991 no_cache=1
9992 fi
9993
9994 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9995
9996fi;
9997
9998 eval "$ac_cv_use_dragimage"
9999 if test "$no_cache" != 1; then
10000 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10001 fi
10002
10003 if test "$wxUSE_DRAGIMAGE" = yes; then
10004 echo "$as_me:$LINENO: result: yes" >&5
10005echo "${ECHO_T}yes" >&6
10006 else
10007 echo "$as_me:$LINENO: result: no" >&5
10008echo "${ECHO_T}no" >&6
10009 fi
10010
10011
10012 enablestring=
10013 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10014echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10015 no_cache=0
10016 # Check whether --enable-accessibility or --disable-accessibility was given.
10017if test "${enable_accessibility+set}" = set; then
10018 enableval="$enable_accessibility"
10019
10020 if test "$enableval" = yes; then
10021 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10022 else
10023 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10024 fi
10025
10026else
10027
10028 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10029 if test "x$LINE" != x ; then
10030 eval "DEFAULT_$LINE"
10031 else
10032 no_cache=1
10033 fi
10034
10035 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10036
10037fi;
10038
10039 eval "$ac_cv_use_accessibility"
10040 if test "$no_cache" != 1; then
10041 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10042 fi
10043
10044 if test "$wxUSE_ACCESSIBILITY" = yes; then
10045 echo "$as_me:$LINENO: result: yes" >&5
10046echo "${ECHO_T}yes" >&6
10047 else
10048 echo "$as_me:$LINENO: result: no" >&5
10049echo "${ECHO_T}no" >&6
10050 fi
10051
10052
10053
10054
10055 enablestring=
10056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10057echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10058 no_cache=0
10059 # Check whether --enable-palette or --disable-palette was given.
10060if test "${enable_palette+set}" = set; then
10061 enableval="$enable_palette"
10062
10063 if test "$enableval" = yes; then
10064 ac_cv_use_palette='wxUSE_PALETTE=yes'
10065 else
10066 ac_cv_use_palette='wxUSE_PALETTE=no'
10067 fi
10068
10069else
10070
10071 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10072 if test "x$LINE" != x ; then
10073 eval "DEFAULT_$LINE"
10074 else
10075 no_cache=1
10076 fi
10077
10078 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10079
10080fi;
10081
10082 eval "$ac_cv_use_palette"
10083 if test "$no_cache" != 1; then
10084 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10085 fi
10086
10087 if test "$wxUSE_PALETTE" = yes; then
10088 echo "$as_me:$LINENO: result: yes" >&5
10089echo "${ECHO_T}yes" >&6
10090 else
10091 echo "$as_me:$LINENO: result: no" >&5
10092echo "${ECHO_T}no" >&6
10093 fi
10094
10095
10096 enablestring=
10097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10098echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10099 no_cache=0
10100 # Check whether --enable-image or --disable-image was given.
10101if test "${enable_image+set}" = set; then
10102 enableval="$enable_image"
10103
10104 if test "$enableval" = yes; then
10105 ac_cv_use_image='wxUSE_IMAGE=yes'
10106 else
10107 ac_cv_use_image='wxUSE_IMAGE=no'
10108 fi
10109
10110else
10111
10112 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10113 if test "x$LINE" != x ; then
10114 eval "DEFAULT_$LINE"
10115 else
10116 no_cache=1
10117 fi
10118
10119 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10120
10121fi;
10122
10123 eval "$ac_cv_use_image"
10124 if test "$no_cache" != 1; then
10125 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10126 fi
10127
10128 if test "$wxUSE_IMAGE" = yes; then
10129 echo "$as_me:$LINENO: result: yes" >&5
10130echo "${ECHO_T}yes" >&6
10131 else
10132 echo "$as_me:$LINENO: result: no" >&5
10133echo "${ECHO_T}no" >&6
10134 fi
10135
10136
10137 enablestring=
10138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10139echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10140 no_cache=0
10141 # Check whether --enable-gif or --disable-gif was given.
10142if test "${enable_gif+set}" = set; then
10143 enableval="$enable_gif"
10144
10145 if test "$enableval" = yes; then
10146 ac_cv_use_gif='wxUSE_GIF=yes'
10147 else
10148 ac_cv_use_gif='wxUSE_GIF=no'
10149 fi
10150
10151else
10152
10153 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10154 if test "x$LINE" != x ; then
10155 eval "DEFAULT_$LINE"
10156 else
10157 no_cache=1
10158 fi
10159
10160 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10161
10162fi;
10163
10164 eval "$ac_cv_use_gif"
10165 if test "$no_cache" != 1; then
10166 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10167 fi
10168
10169 if test "$wxUSE_GIF" = yes; then
10170 echo "$as_me:$LINENO: result: yes" >&5
10171echo "${ECHO_T}yes" >&6
10172 else
10173 echo "$as_me:$LINENO: result: no" >&5
10174echo "${ECHO_T}no" >&6
10175 fi
10176
10177
10178 enablestring=
10179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10180echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10181 no_cache=0
10182 # Check whether --enable-pcx or --disable-pcx was given.
10183if test "${enable_pcx+set}" = set; then
10184 enableval="$enable_pcx"
10185
10186 if test "$enableval" = yes; then
10187 ac_cv_use_pcx='wxUSE_PCX=yes'
10188 else
10189 ac_cv_use_pcx='wxUSE_PCX=no'
10190 fi
10191
10192else
10193
10194 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10195 if test "x$LINE" != x ; then
10196 eval "DEFAULT_$LINE"
10197 else
10198 no_cache=1
10199 fi
10200
10201 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10202
10203fi;
10204
10205 eval "$ac_cv_use_pcx"
10206 if test "$no_cache" != 1; then
10207 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10208 fi
10209
10210 if test "$wxUSE_PCX" = yes; then
10211 echo "$as_me:$LINENO: result: yes" >&5
10212echo "${ECHO_T}yes" >&6
10213 else
10214 echo "$as_me:$LINENO: result: no" >&5
10215echo "${ECHO_T}no" >&6
10216 fi
10217
10218
10219 enablestring=
10220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10221echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10222 no_cache=0
10223 # Check whether --enable-iff or --disable-iff was given.
10224if test "${enable_iff+set}" = set; then
10225 enableval="$enable_iff"
10226
10227 if test "$enableval" = yes; then
10228 ac_cv_use_iff='wxUSE_IFF=yes'
10229 else
10230 ac_cv_use_iff='wxUSE_IFF=no'
10231 fi
10232
10233else
10234
10235 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10236 if test "x$LINE" != x ; then
10237 eval "DEFAULT_$LINE"
10238 else
10239 no_cache=1
10240 fi
10241
10242 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10243
10244fi;
10245
10246 eval "$ac_cv_use_iff"
10247 if test "$no_cache" != 1; then
10248 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10249 fi
10250
10251 if test "$wxUSE_IFF" = yes; then
10252 echo "$as_me:$LINENO: result: yes" >&5
10253echo "${ECHO_T}yes" >&6
10254 else
10255 echo "$as_me:$LINENO: result: no" >&5
10256echo "${ECHO_T}no" >&6
10257 fi
10258
10259
10260 enablestring=
10261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10262echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10263 no_cache=0
10264 # Check whether --enable-pnm or --disable-pnm was given.
10265if test "${enable_pnm+set}" = set; then
10266 enableval="$enable_pnm"
10267
10268 if test "$enableval" = yes; then
10269 ac_cv_use_pnm='wxUSE_PNM=yes'
10270 else
10271 ac_cv_use_pnm='wxUSE_PNM=no'
10272 fi
10273
10274else
10275
10276 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10277 if test "x$LINE" != x ; then
10278 eval "DEFAULT_$LINE"
10279 else
10280 no_cache=1
10281 fi
10282
10283 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10284
10285fi;
10286
10287 eval "$ac_cv_use_pnm"
10288 if test "$no_cache" != 1; then
10289 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10290 fi
10291
10292 if test "$wxUSE_PNM" = yes; then
10293 echo "$as_me:$LINENO: result: yes" >&5
10294echo "${ECHO_T}yes" >&6
10295 else
10296 echo "$as_me:$LINENO: result: no" >&5
10297echo "${ECHO_T}no" >&6
10298 fi
10299
10300
10301 enablestring=
10302 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10303echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10304 no_cache=0
10305 # Check whether --enable-xpm or --disable-xpm was given.
10306if test "${enable_xpm+set}" = set; then
10307 enableval="$enable_xpm"
10308
10309 if test "$enableval" = yes; then
10310 ac_cv_use_xpm='wxUSE_XPM=yes'
10311 else
10312 ac_cv_use_xpm='wxUSE_XPM=no'
10313 fi
10314
10315else
10316
10317 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10318 if test "x$LINE" != x ; then
10319 eval "DEFAULT_$LINE"
10320 else
10321 no_cache=1
10322 fi
10323
10324 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10325
10326fi;
10327
10328 eval "$ac_cv_use_xpm"
10329 if test "$no_cache" != 1; then
10330 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10331 fi
10332
10333 if test "$wxUSE_XPM" = yes; then
10334 echo "$as_me:$LINENO: result: yes" >&5
10335echo "${ECHO_T}yes" >&6
10336 else
10337 echo "$as_me:$LINENO: result: no" >&5
10338echo "${ECHO_T}no" >&6
10339 fi
10340
10341
10342 enablestring=
10343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10344echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10345 no_cache=0
10346 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10347if test "${enable_ico_cur+set}" = set; then
10348 enableval="$enable_ico_cur"
10349
10350 if test "$enableval" = yes; then
10351 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10352 else
10353 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10354 fi
10355
10356else
10357
10358 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10359 if test "x$LINE" != x ; then
10360 eval "DEFAULT_$LINE"
10361 else
10362 no_cache=1
10363 fi
10364
10365 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10366
10367fi;
10368
10369 eval "$ac_cv_use_ico_cur"
10370 if test "$no_cache" != 1; then
10371 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10372 fi
10373
10374 if test "$wxUSE_ICO_CUR" = yes; then
10375 echo "$as_me:$LINENO: result: yes" >&5
10376echo "${ECHO_T}yes" >&6
10377 else
10378 echo "$as_me:$LINENO: result: no" >&5
10379echo "${ECHO_T}no" >&6
10380 fi
10381
10382
10383fi
10384
10385
10386
ceec2216
RL
10387# Check whether --with-flavour or --without-flavour was given.
10388if test "${with_flavour+set}" = set; then
10389 withval="$with_flavour"
10390 WX_FLAVOUR="$withval"
10391fi;
10392
10393
10394
a848cd7e
SC
10395 enablestring=
10396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10397echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10398 no_cache=0
10399 # Check whether --enable-official_build or --disable-official_build was given.
10400if test "${enable_official_build+set}" = set; then
10401 enableval="$enable_official_build"
10402
10403 if test "$enableval" = yes; then
10404 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10405 else
10406 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10407 fi
10408
10409else
10410
10411 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10412 if test "x$LINE" != x ; then
10413 eval "DEFAULT_$LINE"
10414 else
10415 no_cache=1
10416 fi
10417
10418 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10419
10420fi;
10421
10422 eval "$ac_cv_use_official_build"
10423 if test "$no_cache" != 1; then
10424 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10425 fi
10426
10427 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10428 echo "$as_me:$LINENO: result: yes" >&5
10429echo "${ECHO_T}yes" >&6
10430 else
10431 echo "$as_me:$LINENO: result: no" >&5
10432echo "${ECHO_T}no" >&6
10433 fi
10434
10435# Check whether --enable-vendor or --disable-vendor was given.
10436if test "${enable_vendor+set}" = set; then
10437 enableval="$enable_vendor"
10438 VENDOR="$enableval"
10439fi;
10440if test "x$VENDOR" = "x"; then
10441 VENDOR="custom"
10442fi
10443
a848cd7e
SC
10444
10445
10446
10447 echo "saving argument cache $wx_arg_cache_file"
10448 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10449
10450
10451
10452echo "$as_me:$LINENO: checking for toolkit" >&5
10453echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10454
10455# In Wine, we need to default to MSW, not GTK or MOTIF
10456if test "$wxUSE_WINE" = "yes"; then
10457 DEFAULT_DEFAULT_wxUSE_GTK=0
10458 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10459 DEFAULT_DEFAULT_wxUSE_MSW=1
10460 wxUSE_SHARED=no
10461fi
10462
f597b41c 10463
a848cd7e
SC
10464if test "$wxUSE_GUI" = "yes"; then
10465
10466 if test "$USE_BEOS" = 1; then
10467 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10468echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10469 { (exit 1); exit 1; }; }
10470 fi
10471
10472 if test "$TOOLKIT_GIVEN" = 1; then
10473 for toolkit in `echo $ALL_TOOLKITS`; do
10474 var=wxUSE_$toolkit
10475 eval "value=\$${var}"
f34ca037
MW
10476 if test "x$value" = "xno"; then
10477 eval "$var=0"
10478 elif test "x$value" != "x"; then
10479 eval "$var=1"
10480 fi
10481
10482 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10483 eval "wx${toolkit}_VERSION=$value"
10484 fi
a848cd7e
SC
10485 done
10486 else
10487 for toolkit in `echo $ALL_TOOLKITS`; do
10488 if test "$has_toolkit_in_cache" != 1; then
10489 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10490 else
10491 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10492
10493 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10494 if test "x$version" != "x"; then
10495 eval "wx${toolkit}_VERSION=$version"
10496 fi
a848cd7e
SC
10497 fi
10498 eval "wxUSE_$toolkit=\$${var}"
10499 done
10500 fi
10501
10502 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10503 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10504 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10505
10506 case "${host}" in
10507 *-pc-os2_emx | *-pc-os2-emx )
10508 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10509 esac
10510
10511 case "$NUM_TOOLKITS" in
10512 1)
10513 ;;
10514 0)
10515 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10516echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10517 { (exit 1); exit 1; }; }
10518 ;;
10519 *)
10520 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10521echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10522 { (exit 1); exit 1; }; }
10523 esac
10524
f34ca037
MW
10525 # to be removed when --disable-gtk2 isn't needed
10526 if test "x$wxUSE_GTK2" = "xyes"; then
10527 wxGTK_VERSION=2
10528 elif test "x$wxUSE_GTK2" = "xno"; then
10529 wxGTK_VERSION=1
10530 fi
10531
a848cd7e
SC
10532 for toolkit in `echo $ALL_TOOLKITS`; do
10533 var=wxUSE_$toolkit
10534 eval "value=\$${var}"
10535 if test "x$value" != x; then
10536 cache_var=CACHE_$toolkit
10537 eval "cache=\$${cache_var}"
10538 if test "$cache" = 1; then
10539 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10540 eval "version=\$wx${toolkit}_VERSION"
10541 if test "x$version" != "x"; then
10542 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10543 fi
a848cd7e
SC
10544 fi
10545 if test "$value" = 1; then
10546 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10547 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10548echo "${ECHO_T}$toolkit_echo" >&6
10549 fi
10550 fi
10551 done
10552else
10553 if test "x$host_alias" != "x"; then
10554 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10555echo "${ECHO_T}base ($host_alias hosted) only" >&6
10556 else
10557 echo "$as_me:$LINENO: result: base only" >&5
10558echo "${ECHO_T}base only" >&6
10559 fi
10560fi
10561
10562wants_win32=0
10563doesnt_want_win32=0
10564case "${host}" in
10565 *-*-cygwin*)
10566 if test "$wxUSE_MSW" = 1 ; then
10567 wants_win32=1
10568 else
10569 doesnt_want_win32=1
10570 fi
10571 ;;
10572 *-*-mingw*)
10573 wants_win32=1
10574 ;;
10575esac
10576
10577if test "$wxUSE_WINE" = "yes"; then
10578 wants_win32=1
10579 CC=winegcc
10580 CXX=wineg++
10581 RESCOMP=wrc
10582 LDFLAGS_GUI="-mwindows"
10583fi
10584
10585if test "$wants_win32" = 1 ; then
10586 USE_UNIX=0
10587 USE_WIN32=1
10588 cat >>confdefs.h <<\_ACEOF
10589#define __WIN32__ 1
10590_ACEOF
10591
10592 cat >>confdefs.h <<\_ACEOF
10593#define __WIN95__ 1
10594_ACEOF
10595
10596 cat >>confdefs.h <<\_ACEOF
10597#define __WINDOWS__ 1
10598_ACEOF
10599
10600 cat >>confdefs.h <<\_ACEOF
10601#define __GNUWIN32__ 1
10602_ACEOF
10603
10604 cat >>confdefs.h <<\_ACEOF
10605#define STRICT 1
10606_ACEOF
10607
10608 cat >>confdefs.h <<\_ACEOF
10609#define WINVER 0x0400
10610_ACEOF
10611
10612fi
10613if test "$doesnt_want_win32" = 1 ; then
10614 USE_UNIX=1
10615 USE_WIN32=0
10616fi
10617
10618if test "$USE_UNIX" = 1 ; then
10619 wxUSE_UNIX=yes
10620 cat >>confdefs.h <<\_ACEOF
10621#define __UNIX__ 1
10622_ACEOF
10623
10624fi
10625
10626
10627cat >confcache <<\_ACEOF
10628# This file is a shell script that caches the results of configure
10629# tests run on this system so they can be shared between configure
10630# scripts and configure runs, see configure's option --config-cache.
10631# It is not useful on other systems. If it contains results you don't
10632# want to keep, you may remove or edit it.
10633#
10634# config.status only pays attention to the cache file if you give it
10635# the --recheck option to rerun configure.
10636#
10637# `ac_cv_env_foo' variables (set or unset) will be overridden when
10638# loading this file, other *unset* `ac_cv_foo' will be assigned the
10639# following values.
10640
10641_ACEOF
10642
10643# The following way of writing the cache mishandles newlines in values,
10644# but we know of no workaround that is simple, portable, and efficient.
10645# So, don't put newlines in cache variables' values.
10646# Ultrix sh set writes to stderr and can't be redirected directly,
10647# and sets the high bit in the cache file unless we assign to the vars.
10648{
10649 (set) 2>&1 |
10650 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10651 *ac_space=\ *)
10652 # `set' does not quote correctly, so add quotes (double-quote
10653 # substitution turns \\\\ into \\, and sed turns \\ into \).
10654 sed -n \
ac1cb8d3
VS
10655 "s/'/'\\\\''/g;
10656 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10657 ;;
10658 *)
10659 # `set' quotes correctly as required by POSIX, so do not add quotes.
10660 sed -n \
ac1cb8d3 10661 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10662 ;;
10663 esac;
10664} |
10665 sed '
10666 t clear
10667 : clear
10668 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10669 t end
10670 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10671 : end' >>confcache
10672if diff $cache_file confcache >/dev/null 2>&1; then :; else
10673 if test -w $cache_file; then
10674 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10675 cat confcache >$cache_file
10676 else
10677 echo "not updating unwritable cache $cache_file"
10678 fi
10679fi
10680rm -f confcache
10681
10682if test "$build" != "$host" ; then
1e9e8aba 10683 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10684 CC=$host_alias-gcc
10685 CXX=$host_alias-c++
10686 AR=$host_alias-ar
10687 RANLIB=$host_alias-ranlib
10688 DLLTOOL=$host_alias-dlltool
10689 RESCOMP=$host_alias-windres
a848cd7e 10690 STRIP=$host_alias-strip
1e9e8aba
DE
10691 elif test "x$CC" '!=' "x"; then
10692 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10693 else
10694 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10695echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10696 { (exit 1); exit 1; }; }
10697 fi
10698fi
10699
10700CFLAGS=${CFLAGS:=}
6dcfc289
DE
10701
10702
10703 ac_ext=c
a848cd7e
SC
10704ac_cpp='$CPP $CPPFLAGS'
10705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10707ac_compiler_gnu=$ac_cv_c_compiler_gnu
10708if test -n "$ac_tool_prefix"; then
10709 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10710set dummy ${ac_tool_prefix}gcc; ac_word=$2
10711echo "$as_me:$LINENO: checking for $ac_word" >&5
10712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10713if test "${ac_cv_prog_CC+set}" = set; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10715else
10716 if test -n "$CC"; then
10717 ac_cv_prog_CC="$CC" # Let the user override the test.
10718else
10719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720for as_dir in $PATH
10721do
10722 IFS=$as_save_IFS
10723 test -z "$as_dir" && as_dir=.
10724 for ac_exec_ext in '' $ac_executable_extensions; do
10725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10726 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10728 break 2
10729 fi
10730done
10731done
10732
10733fi
10734fi
10735CC=$ac_cv_prog_CC
10736if test -n "$CC"; then
10737 echo "$as_me:$LINENO: result: $CC" >&5
10738echo "${ECHO_T}$CC" >&6
10739else
10740 echo "$as_me:$LINENO: result: no" >&5
10741echo "${ECHO_T}no" >&6
10742fi
10743
10744fi
10745if test -z "$ac_cv_prog_CC"; then
10746 ac_ct_CC=$CC
10747 # Extract the first word of "gcc", so it can be a program name with args.
10748set dummy gcc; ac_word=$2
10749echo "$as_me:$LINENO: checking for $ac_word" >&5
10750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10751if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753else
10754 if test -n "$ac_ct_CC"; then
10755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10756else
10757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10758for as_dir in $PATH
10759do
10760 IFS=$as_save_IFS
10761 test -z "$as_dir" && as_dir=.
10762 for ac_exec_ext in '' $ac_executable_extensions; do
10763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10764 ac_cv_prog_ac_ct_CC="gcc"
10765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10766 break 2
10767 fi
10768done
10769done
10770
10771fi
10772fi
10773ac_ct_CC=$ac_cv_prog_ac_ct_CC
10774if test -n "$ac_ct_CC"; then
10775 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10776echo "${ECHO_T}$ac_ct_CC" >&6
10777else
10778 echo "$as_me:$LINENO: result: no" >&5
10779echo "${ECHO_T}no" >&6
10780fi
10781
10782 CC=$ac_ct_CC
10783else
10784 CC="$ac_cv_prog_CC"
10785fi
10786
10787if test -z "$CC"; then
10788 if test -n "$ac_tool_prefix"; then
10789 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10790set dummy ${ac_tool_prefix}cc; ac_word=$2
10791echo "$as_me:$LINENO: checking for $ac_word" >&5
10792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10793if test "${ac_cv_prog_CC+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10795else
10796 if test -n "$CC"; then
10797 ac_cv_prog_CC="$CC" # Let the user override the test.
10798else
10799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800for as_dir in $PATH
10801do
10802 IFS=$as_save_IFS
10803 test -z "$as_dir" && as_dir=.
10804 for ac_exec_ext in '' $ac_executable_extensions; do
10805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10806 ac_cv_prog_CC="${ac_tool_prefix}cc"
10807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10808 break 2
10809 fi
10810done
10811done
10812
10813fi
10814fi
10815CC=$ac_cv_prog_CC
10816if test -n "$CC"; then
10817 echo "$as_me:$LINENO: result: $CC" >&5
10818echo "${ECHO_T}$CC" >&6
10819else
10820 echo "$as_me:$LINENO: result: no" >&5
10821echo "${ECHO_T}no" >&6
10822fi
10823
10824fi
10825if test -z "$ac_cv_prog_CC"; then
10826 ac_ct_CC=$CC
10827 # Extract the first word of "cc", so it can be a program name with args.
10828set dummy cc; ac_word=$2
10829echo "$as_me:$LINENO: checking for $ac_word" >&5
10830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10831if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10833else
10834 if test -n "$ac_ct_CC"; then
10835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10836else
10837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838for as_dir in $PATH
10839do
10840 IFS=$as_save_IFS
10841 test -z "$as_dir" && as_dir=.
10842 for ac_exec_ext in '' $ac_executable_extensions; do
10843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10844 ac_cv_prog_ac_ct_CC="cc"
10845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 break 2
10847 fi
10848done
10849done
10850
10851fi
10852fi
10853ac_ct_CC=$ac_cv_prog_ac_ct_CC
10854if test -n "$ac_ct_CC"; then
10855 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10856echo "${ECHO_T}$ac_ct_CC" >&6
10857else
10858 echo "$as_me:$LINENO: result: no" >&5
10859echo "${ECHO_T}no" >&6
10860fi
10861
10862 CC=$ac_ct_CC
10863else
10864 CC="$ac_cv_prog_CC"
10865fi
10866
10867fi
10868if test -z "$CC"; then
10869 # Extract the first word of "cc", so it can be a program name with args.
10870set dummy cc; ac_word=$2
10871echo "$as_me:$LINENO: checking for $ac_word" >&5
10872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10873if test "${ac_cv_prog_CC+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875else
10876 if test -n "$CC"; then
10877 ac_cv_prog_CC="$CC" # Let the user override the test.
10878else
10879 ac_prog_rejected=no
10880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881for as_dir in $PATH
10882do
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
10886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10887 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10888 ac_prog_rejected=yes
10889 continue
10890 fi
10891 ac_cv_prog_CC="cc"
10892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10893 break 2
10894 fi
10895done
10896done
10897
10898if test $ac_prog_rejected = yes; then
10899 # We found a bogon in the path, so make sure we never use it.
10900 set dummy $ac_cv_prog_CC
10901 shift
10902 if test $# != 0; then
10903 # We chose a different compiler from the bogus one.
10904 # However, it has the same basename, so the bogon will be chosen
10905 # first if we set CC to just the basename; use the full file name.
10906 shift
10907 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10908 fi
10909fi
10910fi
10911fi
10912CC=$ac_cv_prog_CC
10913if test -n "$CC"; then
10914 echo "$as_me:$LINENO: result: $CC" >&5
10915echo "${ECHO_T}$CC" >&6
10916else
10917 echo "$as_me:$LINENO: result: no" >&5
10918echo "${ECHO_T}no" >&6
10919fi
10920
10921fi
10922if test -z "$CC"; then
10923 if test -n "$ac_tool_prefix"; then
10924 for ac_prog in cl
10925 do
10926 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10927set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10928echo "$as_me:$LINENO: checking for $ac_word" >&5
10929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10930if test "${ac_cv_prog_CC+set}" = set; then
10931 echo $ECHO_N "(cached) $ECHO_C" >&6
10932else
10933 if test -n "$CC"; then
10934 ac_cv_prog_CC="$CC" # Let the user override the test.
10935else
10936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937for as_dir in $PATH
10938do
10939 IFS=$as_save_IFS
10940 test -z "$as_dir" && as_dir=.
10941 for ac_exec_ext in '' $ac_executable_extensions; do
10942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10943 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10945 break 2
10946 fi
10947done
10948done
10949
10950fi
10951fi
10952CC=$ac_cv_prog_CC
10953if test -n "$CC"; then
10954 echo "$as_me:$LINENO: result: $CC" >&5
10955echo "${ECHO_T}$CC" >&6
10956else
10957 echo "$as_me:$LINENO: result: no" >&5
10958echo "${ECHO_T}no" >&6
10959fi
10960
10961 test -n "$CC" && break
10962 done
10963fi
10964if test -z "$CC"; then
10965 ac_ct_CC=$CC
10966 for ac_prog in cl
10967do
10968 # Extract the first word of "$ac_prog", so it can be a program name with args.
10969set dummy $ac_prog; ac_word=$2
10970echo "$as_me:$LINENO: checking for $ac_word" >&5
10971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10972if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10974else
10975 if test -n "$ac_ct_CC"; then
10976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10977else
10978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10979for as_dir in $PATH
10980do
10981 IFS=$as_save_IFS
10982 test -z "$as_dir" && as_dir=.
10983 for ac_exec_ext in '' $ac_executable_extensions; do
10984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10985 ac_cv_prog_ac_ct_CC="$ac_prog"
10986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10987 break 2
10988 fi
10989done
10990done
10991
10992fi
10993fi
10994ac_ct_CC=$ac_cv_prog_ac_ct_CC
10995if test -n "$ac_ct_CC"; then
10996 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10997echo "${ECHO_T}$ac_ct_CC" >&6
10998else
10999 echo "$as_me:$LINENO: result: no" >&5
11000echo "${ECHO_T}no" >&6
11001fi
11002
11003 test -n "$ac_ct_CC" && break
11004done
11005
11006 CC=$ac_ct_CC
11007fi
11008
11009fi
11010
11011
11012test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11013See \`config.log' for more details." >&5
11014echo "$as_me: error: no acceptable C compiler found in \$PATH
11015See \`config.log' for more details." >&2;}
11016 { (exit 1); exit 1; }; }
11017
11018# Provide some information about the compiler.
11019echo "$as_me:$LINENO:" \
11020 "checking for C compiler version" >&5
11021ac_compiler=`set X $ac_compile; echo $2`
11022{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11023 (eval $ac_compiler --version </dev/null >&5) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }
11027{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11028 (eval $ac_compiler -v </dev/null >&5) 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }
11032{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11033 (eval $ac_compiler -V </dev/null >&5) 2>&5
11034 ac_status=$?
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }
11037
11038cat >conftest.$ac_ext <<_ACEOF
11039/* confdefs.h. */
11040_ACEOF
11041cat confdefs.h >>conftest.$ac_ext
11042cat >>conftest.$ac_ext <<_ACEOF
11043/* end confdefs.h. */
11044
11045int
11046main ()
11047{
11048
11049 ;
11050 return 0;
11051}
11052_ACEOF
11053ac_clean_files_save=$ac_clean_files
11054ac_clean_files="$ac_clean_files a.out a.exe b.out"
11055# Try to create an executable without -o first, disregard a.out.
11056# It will help us diagnose broken compilers, and finding out an intuition
11057# of exeext.
ac1cb8d3
VS
11058echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11059echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11060ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11061if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11062 (eval $ac_link_default) 2>&5
11063 ac_status=$?
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); }; then
11066 # Find the output, starting from the most likely. This scheme is
11067# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11068# resort.
11069
11070# Be careful to initialize this variable, since it used to be cached.
11071# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11072ac_cv_exeext=
11073# b.out is created by i960 compilers.
11074for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11075do
11076 test -f "$ac_file" || continue
11077 case $ac_file in
11078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11079 ;;
a848cd7e 11080 conftest.$ac_ext )
ac1cb8d3
VS
11081 # This is the source file.
11082 ;;
a848cd7e 11083 [ab].out )
ac1cb8d3
VS
11084 # We found the default executable, but exeext='' is most
11085 # certainly right.
11086 break;;
a848cd7e 11087 *.* )
ac1cb8d3
VS
11088 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11089 # FIXME: I believe we export ac_cv_exeext for Libtool,
11090 # but it would be cool to find out if it's true. Does anybody
11091 # maintain Libtool? --akim.
11092 export ac_cv_exeext
11093 break;;
a848cd7e 11094 * )
ac1cb8d3 11095 break;;
a848cd7e
SC
11096 esac
11097done
11098else
11099 echo "$as_me: failed program was:" >&5
11100sed 's/^/| /' conftest.$ac_ext >&5
11101
11102{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11103See \`config.log' for more details." >&5
11104echo "$as_me: error: C compiler cannot create executables
11105See \`config.log' for more details." >&2;}
11106 { (exit 77); exit 77; }; }
11107fi
11108
11109ac_exeext=$ac_cv_exeext
11110echo "$as_me:$LINENO: result: $ac_file" >&5
11111echo "${ECHO_T}$ac_file" >&6
11112
11113# Check the compiler produces executables we can run. If not, either
11114# the compiler is broken, or we cross compile.
11115echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11116echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11117# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11118# If not cross compiling, check that we can run a simple program.
11119if test "$cross_compiling" != yes; then
11120 if { ac_try='./$ac_file'
11121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122 (eval $ac_try) 2>&5
11123 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; }; then
11126 cross_compiling=no
11127 else
11128 if test "$cross_compiling" = maybe; then
11129 cross_compiling=yes
11130 else
11131 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11132If you meant to cross compile, use \`--host'.
11133See \`config.log' for more details." >&5
11134echo "$as_me: error: cannot run C compiled programs.
11135If you meant to cross compile, use \`--host'.
11136See \`config.log' for more details." >&2;}
11137 { (exit 1); exit 1; }; }
11138 fi
11139 fi
11140fi
11141echo "$as_me:$LINENO: result: yes" >&5
11142echo "${ECHO_T}yes" >&6
11143
11144rm -f a.out a.exe conftest$ac_cv_exeext b.out
11145ac_clean_files=$ac_clean_files_save
11146# Check the compiler produces executables we can run. If not, either
11147# the compiler is broken, or we cross compile.
11148echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11149echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11150echo "$as_me:$LINENO: result: $cross_compiling" >&5
11151echo "${ECHO_T}$cross_compiling" >&6
11152
11153echo "$as_me:$LINENO: checking for suffix of executables" >&5
11154echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11156 (eval $ac_link) 2>&5
11157 ac_status=$?
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; then
11160 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11161# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11162# work properly (i.e., refer to `conftest.exe'), while it won't with
11163# `rm'.
11164for ac_file in conftest.exe conftest conftest.*; do
11165 test -f "$ac_file" || continue
11166 case $ac_file in
11167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11168 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11169 export ac_cv_exeext
11170 break;;
a848cd7e
SC
11171 * ) break;;
11172 esac
11173done
11174else
11175 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11176See \`config.log' for more details." >&5
11177echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11178See \`config.log' for more details." >&2;}
11179 { (exit 1); exit 1; }; }
11180fi
11181
11182rm -f conftest$ac_cv_exeext
11183echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11184echo "${ECHO_T}$ac_cv_exeext" >&6
11185
11186rm -f conftest.$ac_ext
11187EXEEXT=$ac_cv_exeext
11188ac_exeext=$EXEEXT
11189echo "$as_me:$LINENO: checking for suffix of object files" >&5
11190echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11191if test "${ac_cv_objext+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11193else
11194 cat >conftest.$ac_ext <<_ACEOF
11195/* confdefs.h. */
11196_ACEOF
11197cat confdefs.h >>conftest.$ac_ext
11198cat >>conftest.$ac_ext <<_ACEOF
11199/* end confdefs.h. */
11200
11201int
11202main ()
11203{
11204
11205 ;
11206 return 0;
11207}
11208_ACEOF
11209rm -f conftest.o conftest.obj
11210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11211 (eval $ac_compile) 2>&5
11212 ac_status=$?
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; then
11215 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11216 case $ac_file in
11217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11218 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11219 break;;
11220 esac
11221done
11222else
11223 echo "$as_me: failed program was:" >&5
11224sed 's/^/| /' conftest.$ac_ext >&5
11225
11226{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11227See \`config.log' for more details." >&5
11228echo "$as_me: error: cannot compute suffix of object files: cannot compile
11229See \`config.log' for more details." >&2;}
11230 { (exit 1); exit 1; }; }
11231fi
11232
11233rm -f conftest.$ac_cv_objext conftest.$ac_ext
11234fi
11235echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11236echo "${ECHO_T}$ac_cv_objext" >&6
11237OBJEXT=$ac_cv_objext
11238ac_objext=$OBJEXT
11239echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11240echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11241if test "${ac_cv_c_compiler_gnu+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11243else
11244 cat >conftest.$ac_ext <<_ACEOF
11245/* confdefs.h. */
11246_ACEOF
11247cat confdefs.h >>conftest.$ac_ext
11248cat >>conftest.$ac_ext <<_ACEOF
11249/* end confdefs.h. */
11250
11251int
11252main ()
11253{
11254#ifndef __GNUC__
11255 choke me
11256#endif
11257
11258 ;
11259 return 0;
11260}
11261_ACEOF
11262rm -f conftest.$ac_objext
11263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11264 (eval $ac_compile) 2>conftest.er1
a848cd7e 11265 ac_status=$?
ac1cb8d3
VS
11266 grep -v '^ *+' conftest.er1 >conftest.err
11267 rm -f conftest.er1
11268 cat conftest.err >&5
a848cd7e
SC
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } &&
9dd0f6c2 11271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11274 ac_status=$?
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; } &&
11277 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279 (eval $ac_try) 2>&5
11280 ac_status=$?
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; }; then
11283 ac_compiler_gnu=yes
11284else
11285 echo "$as_me: failed program was:" >&5
11286sed 's/^/| /' conftest.$ac_ext >&5
11287
11288ac_compiler_gnu=no
11289fi
ac1cb8d3 11290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11291ac_cv_c_compiler_gnu=$ac_compiler_gnu
11292
11293fi
11294echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11295echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11296GCC=`test $ac_compiler_gnu = yes && echo yes`
11297ac_test_CFLAGS=${CFLAGS+set}
11298ac_save_CFLAGS=$CFLAGS
52ada004 11299CFLAGS="-g"
a848cd7e
SC
11300echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11301echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11302if test "${ac_cv_prog_cc_g+set}" = set; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11304else
11305 cat >conftest.$ac_ext <<_ACEOF
11306/* confdefs.h. */
11307_ACEOF
11308cat confdefs.h >>conftest.$ac_ext
11309cat >>conftest.$ac_ext <<_ACEOF
11310/* end confdefs.h. */
11311
11312int
11313main ()
11314{
11315
11316 ;
11317 return 0;
11318}
11319_ACEOF
11320rm -f conftest.$ac_objext
11321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11322 (eval $ac_compile) 2>conftest.er1
a848cd7e 11323 ac_status=$?
ac1cb8d3
VS
11324 grep -v '^ *+' conftest.er1 >conftest.err
11325 rm -f conftest.er1
11326 cat conftest.err >&5
a848cd7e
SC
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } &&
9dd0f6c2 11329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; } &&
11335 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
11341 ac_cv_prog_cc_g=yes
11342else
11343 echo "$as_me: failed program was:" >&5
11344sed 's/^/| /' conftest.$ac_ext >&5
11345
11346ac_cv_prog_cc_g=no
11347fi
ac1cb8d3 11348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11349fi
11350echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11351echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11352if test "$ac_test_CFLAGS" = set; then
11353 CFLAGS=$ac_save_CFLAGS
11354elif test $ac_cv_prog_cc_g = yes; then
11355 if test "$GCC" = yes; then
11356 CFLAGS="-g -O2"
11357 else
11358 CFLAGS="-g"
11359 fi
11360else
11361 if test "$GCC" = yes; then
11362 CFLAGS="-O2"
11363 else
11364 CFLAGS=
11365 fi
11366fi
11367echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11368echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11369if test "${ac_cv_prog_cc_stdc+set}" = set; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11371else
11372 ac_cv_prog_cc_stdc=no
11373ac_save_CC=$CC
11374cat >conftest.$ac_ext <<_ACEOF
11375/* confdefs.h. */
11376_ACEOF
11377cat confdefs.h >>conftest.$ac_ext
11378cat >>conftest.$ac_ext <<_ACEOF
11379/* end confdefs.h. */
11380#include <stdarg.h>
11381#include <stdio.h>
11382#include <sys/types.h>
11383#include <sys/stat.h>
11384/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11385struct buf { int x; };
11386FILE * (*rcsopen) (struct buf *, struct stat *, int);
11387static char *e (p, i)
11388 char **p;
11389 int i;
11390{
11391 return p[i];
11392}
11393static char *f (char * (*g) (char **, int), char **p, ...)
11394{
11395 char *s;
11396 va_list v;
11397 va_start (v,p);
11398 s = g (p, va_arg (v,int));
11399 va_end (v);
11400 return s;
11401}
ac1cb8d3
VS
11402
11403/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11404 function prototypes and stuff, but not '\xHH' hex character constants.
11405 These don't provoke an error unfortunately, instead are silently treated
11406 as 'x'. The following induces an error, until -std1 is added to get
11407 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11408 array size at least. It's necessary to write '\x00'==0 to get something
11409 that's true only with -std1. */
11410int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11411
a848cd7e
SC
11412int test (int i, double x);
11413struct s1 {int (*f) (int a);};
11414struct s2 {int (*f) (double a);};
11415int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11416int argc;
11417char **argv;
11418int
11419main ()
11420{
11421return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11422 ;
11423 return 0;
11424}
11425_ACEOF
11426# Don't try gcc -ansi; that turns off useful extensions and
11427# breaks some systems' header files.
11428# AIX -qlanglvl=ansi
11429# Ultrix and OSF/1 -std1
11430# HP-UX 10.20 and later -Ae
11431# HP-UX older versions -Aa -D_HPUX_SOURCE
11432# SVR4 -Xc -D__EXTENSIONS__
11433for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11434do
11435 CC="$ac_save_CC $ac_arg"
11436 rm -f conftest.$ac_objext
11437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11438 (eval $ac_compile) 2>conftest.er1
a848cd7e 11439 ac_status=$?
ac1cb8d3
VS
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
a848cd7e
SC
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } &&
9dd0f6c2 11445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; } &&
11451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11457 ac_cv_prog_cc_stdc=$ac_arg
11458break
11459else
11460 echo "$as_me: failed program was:" >&5
11461sed 's/^/| /' conftest.$ac_ext >&5
11462
11463fi
ac1cb8d3 11464rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11465done
11466rm -f conftest.$ac_ext conftest.$ac_objext
11467CC=$ac_save_CC
11468
11469fi
11470
11471case "x$ac_cv_prog_cc_stdc" in
11472 x|xno)
11473 echo "$as_me:$LINENO: result: none needed" >&5
11474echo "${ECHO_T}none needed" >&6 ;;
11475 *)
11476 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11477echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11478 CC="$CC $ac_cv_prog_cc_stdc" ;;
11479esac
11480
11481# Some people use a C++ compiler to compile C. Since we use `exit',
11482# in C++ we need to declare it. In case someone uses the same compiler
11483# for both compiling C and C++ we need to have the C++ compiler decide
11484# the declaration of exit, since it's the most demanding environment.
11485cat >conftest.$ac_ext <<_ACEOF
11486#ifndef __cplusplus
11487 choke me
11488#endif
11489_ACEOF
11490rm -f conftest.$ac_objext
11491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11492 (eval $ac_compile) 2>conftest.er1
a848cd7e 11493 ac_status=$?
ac1cb8d3
VS
11494 grep -v '^ *+' conftest.er1 >conftest.err
11495 rm -f conftest.er1
11496 cat conftest.err >&5
a848cd7e
SC
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } &&
9dd0f6c2 11499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; } &&
11505 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 for ac_declaration in \
ac1cb8d3 11512 '' \
a848cd7e
SC
11513 'extern "C" void std::exit (int) throw (); using std::exit;' \
11514 'extern "C" void std::exit (int); using std::exit;' \
11515 'extern "C" void exit (int) throw ();' \
11516 'extern "C" void exit (int);' \
11517 'void exit (int);'
11518do
11519 cat >conftest.$ac_ext <<_ACEOF
11520/* confdefs.h. */
11521_ACEOF
11522cat confdefs.h >>conftest.$ac_ext
11523cat >>conftest.$ac_ext <<_ACEOF
11524/* end confdefs.h. */
de59c161 11525$ac_declaration
ac1cb8d3 11526#include <stdlib.h>
a848cd7e
SC
11527int
11528main ()
11529{
11530exit (42);
11531 ;
11532 return 0;
11533}
11534_ACEOF
11535rm -f conftest.$ac_objext
11536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11537 (eval $ac_compile) 2>conftest.er1
a848cd7e 11538 ac_status=$?
ac1cb8d3
VS
11539 grep -v '^ *+' conftest.er1 >conftest.err
11540 rm -f conftest.er1
11541 cat conftest.err >&5
a848cd7e
SC
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } &&
9dd0f6c2 11544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546 (eval $ac_try) 2>&5
11547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; } &&
11550 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11552 (eval $ac_try) 2>&5
11553 ac_status=$?
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; }; then
11556 :
11557else
11558 echo "$as_me: failed program was:" >&5
11559sed 's/^/| /' conftest.$ac_ext >&5
11560
11561continue
11562fi
ac1cb8d3 11563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11564 cat >conftest.$ac_ext <<_ACEOF
11565/* confdefs.h. */
11566_ACEOF
11567cat confdefs.h >>conftest.$ac_ext
11568cat >>conftest.$ac_ext <<_ACEOF
11569/* end confdefs.h. */
11570$ac_declaration
11571int
11572main ()
11573{
11574exit (42);
11575 ;
11576 return 0;
11577}
11578_ACEOF
11579rm -f conftest.$ac_objext
11580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11581 (eval $ac_compile) 2>conftest.er1
a848cd7e 11582 ac_status=$?
ac1cb8d3
VS
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -f conftest.er1
11585 cat conftest.err >&5
a848cd7e
SC
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } &&
9dd0f6c2 11588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590 (eval $ac_try) 2>&5
11591 ac_status=$?
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; } &&
11594 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11596 (eval $ac_try) 2>&5
11597 ac_status=$?
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); }; }; then
11600 break
11601else
11602 echo "$as_me: failed program was:" >&5
11603sed 's/^/| /' conftest.$ac_ext >&5
11604
11605fi
ac1cb8d3 11606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11607done
11608rm -f conftest*
11609if test -n "$ac_declaration"; then
11610 echo '#ifdef __cplusplus' >>confdefs.h
11611 echo $ac_declaration >>confdefs.h
11612 echo '#endif' >>confdefs.h
11613fi
11614
11615else
11616 echo "$as_me: failed program was:" >&5
11617sed 's/^/| /' conftest.$ac_ext >&5
11618
11619fi
ac1cb8d3 11620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11621ac_ext=c
11622ac_cpp='$CPP $CPPFLAGS'
11623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11625ac_compiler_gnu=$ac_cv_c_compiler_gnu
11626
6dcfc289 11627 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11628echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11629if test "${wx_cv_c_exto+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11631else
11632 cat >conftest.$ac_ext <<_ACEOF
11633/* confdefs.h. */
11634_ACEOF
11635cat confdefs.h >>conftest.$ac_ext
11636cat >>conftest.$ac_ext <<_ACEOF
11637/* end confdefs.h. */
11638
11639int
11640main ()
11641{
11642
11643 ;
11644 return 0;
11645}
11646_ACEOF
11647rm -f conftest.$ac_objext conftest.$ac_ext.o
11648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11649 (eval $ac_compile) 2>&5
11650 ac_status=$?
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; then
11653 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11654 case $ac_file in
11655 conftest.$ac_ext.o)
11656 wx_cv_c_exto="-ext o"
11657 ;;
11658 *)
11659 ;;
11660 esac
11661done
11662else
11663 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11664See \`config.log' for more details." >&5
11665echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11666See \`config.log' for more details." >&2;}
11667 { (exit 1); exit 1; }; }
11668
11669fi
11670
11671rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11672
11673fi
11674echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11675echo "${ECHO_T}$wx_cv_c_exto" >&6
11676if test "x$wx_cv_c_exto" '!=' "x"; then
11677 if test "c" = "c"; then
11678 CFLAGS="$wx_cv_c_exto $CFLAGS"
11679 fi
11680 if test "c" = "cxx"; then
11681 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11682 fi
11683fi
11684
6dcfc289
DE
11685 if test "x$wx_cv_c_exto" '!=' "x"; then
11686 unset ac_cv_prog_cc_g
11687 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11688ac_save_CFLAGS=$CFLAGS
52ada004 11689CFLAGS="-g"
480ccd21
DE
11690echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11691echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11692if test "${ac_cv_prog_cc_g+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11694else
11695 cat >conftest.$ac_ext <<_ACEOF
11696/* confdefs.h. */
11697_ACEOF
11698cat confdefs.h >>conftest.$ac_ext
11699cat >>conftest.$ac_ext <<_ACEOF
11700/* end confdefs.h. */
11701
11702int
11703main ()
11704{
11705
11706 ;
11707 return 0;
11708}
11709_ACEOF
11710rm -f conftest.$ac_objext
11711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11712 (eval $ac_compile) 2>conftest.er1
11713 ac_status=$?
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
9dd0f6c2 11719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; } &&
11725 { ac_try='test -s conftest.$ac_objext'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 ac_cv_prog_cc_g=yes
11732else
11733 echo "$as_me: failed program was:" >&5
11734sed 's/^/| /' conftest.$ac_ext >&5
11735
11736ac_cv_prog_cc_g=no
11737fi
11738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11739fi
11740echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11741echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11742if test "$ac_test_CFLAGS" = set; then
11743 CFLAGS=$ac_save_CFLAGS
11744elif test $ac_cv_prog_cc_g = yes; then
11745 if test "$GCC" = yes; then
11746 CFLAGS="-g -O2"
11747 else
11748 CFLAGS="-g"
11749 fi
11750else
11751 if test "$GCC" = yes; then
11752 CFLAGS="-O2"
11753 else
11754 CFLAGS=
11755 fi
11756fi
6dcfc289
DE
11757 fi
11758 ac_ext=c
95986553
DE
11759ac_cpp='$CPP $CPPFLAGS'
11760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11762ac_compiler_gnu=$ac_cv_c_compiler_gnu
11763
11764echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11765echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11766if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11768else
11769 cat >conftest.$ac_ext <<_ACEOF
11770/* confdefs.h. */
11771_ACEOF
11772cat confdefs.h >>conftest.$ac_ext
11773cat >>conftest.$ac_ext <<_ACEOF
11774/* end confdefs.h. */
11775
11776int
11777main ()
11778{
11779#ifndef __MWERKS__
11780 choke me
11781#endif
11782
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext
11788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
9dd0f6c2 11796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; } &&
11802 { ac_try='test -s conftest.$ac_objext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 bakefile_compiler_mwerks=yes
11809else
11810 echo "$as_me: failed program was:" >&5
11811sed 's/^/| /' conftest.$ac_ext >&5
11812
11813bakefile_compiler_mwerks=no
11814fi
11815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11816 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11817
11818fi
11819echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11820echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11821
0e6fa1d9 11822MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11823ac_ext=c
11824ac_cpp='$CPP $CPPFLAGS'
11825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11827ac_compiler_gnu=$ac_cv_c_compiler_gnu
11828
11829
6dcfc289 11830 ac_ext=c
9273ffba
DE
11831ac_cpp='$CPP $CPPFLAGS'
11832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11834ac_compiler_gnu=$ac_cv_c_compiler_gnu
11835
11836echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11837echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11838if test "${wx_cv_c_compiler_xlc+set}" = set; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11840else
11841 cat >conftest.$ac_ext <<_ACEOF
11842/* confdefs.h. */
11843_ACEOF
11844cat confdefs.h >>conftest.$ac_ext
11845cat >>conftest.$ac_ext <<_ACEOF
11846/* end confdefs.h. */
11847
11848int
11849main ()
11850{
11851#ifndef __xlC__
11852 choke me
11853#endif
11854
11855 ;
11856 return 0;
11857}
11858_ACEOF
11859rm -f conftest.$ac_objext
11860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11861 (eval $ac_compile) 2>conftest.er1
11862 ac_status=$?
11863 grep -v '^ *+' conftest.er1 >conftest.err
11864 rm -f conftest.er1
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } &&
9dd0f6c2 11868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; } &&
11874 { ac_try='test -s conftest.$ac_objext'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 wx_compiler_xlc=yes
11881else
11882 echo "$as_me: failed program was:" >&5
11883sed 's/^/| /' conftest.$ac_ext >&5
11884
11885wx_compiler_xlc=no
11886fi
11887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11888 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11889
11890fi
11891echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11892echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11893
0e6fa1d9 11894XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11895ac_ext=c
11896ac_cpp='$CPP $CPPFLAGS'
11897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11899ac_compiler_gnu=$ac_cv_c_compiler_gnu
11900
11901
a848cd7e 11902
6dcfc289 11903
a848cd7e
SC
11904ac_ext=c
11905ac_cpp='$CPP $CPPFLAGS'
11906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11908ac_compiler_gnu=$ac_cv_c_compiler_gnu
11909echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11910echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11911# On Suns, sometimes $CPP names a directory.
11912if test -n "$CPP" && test -d "$CPP"; then
11913 CPP=
11914fi
11915if test -z "$CPP"; then
11916 if test "${ac_cv_prog_CPP+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918else
11919 # Double quotes because CPP needs to be expanded
11920 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11921 do
11922 ac_preproc_ok=false
11923for ac_c_preproc_warn_flag in '' yes
11924do
11925 # Use a header file that comes with gcc, so configuring glibc
11926 # with a fresh cross-compiler works.
11927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11928 # <limits.h> exists even on freestanding compilers.
11929 # On the NeXT, cc -E runs the code through the compiler's parser,
11930 # not just through cpp. "Syntax error" is here to catch this case.
11931 cat >conftest.$ac_ext <<_ACEOF
11932/* confdefs.h. */
11933_ACEOF
11934cat confdefs.h >>conftest.$ac_ext
11935cat >>conftest.$ac_ext <<_ACEOF
11936/* end confdefs.h. */
11937#ifdef __STDC__
11938# include <limits.h>
11939#else
11940# include <assert.h>
11941#endif
ac1cb8d3 11942 Syntax error
a848cd7e
SC
11943_ACEOF
11944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11946 ac_status=$?
11947 grep -v '^ *+' conftest.er1 >conftest.err
11948 rm -f conftest.er1
11949 cat conftest.err >&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } >/dev/null; then
11952 if test -s conftest.err; then
11953 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11955 else
11956 ac_cpp_err=
11957 fi
11958else
11959 ac_cpp_err=yes
11960fi
11961if test -z "$ac_cpp_err"; then
11962 :
11963else
11964 echo "$as_me: failed program was:" >&5
11965sed 's/^/| /' conftest.$ac_ext >&5
11966
11967 # Broken: fails on valid input.
11968continue
11969fi
11970rm -f conftest.err conftest.$ac_ext
11971
11972 # OK, works on sane cases. Now check whether non-existent headers
11973 # can be detected and how.
11974 cat >conftest.$ac_ext <<_ACEOF
11975/* confdefs.h. */
11976_ACEOF
11977cat confdefs.h >>conftest.$ac_ext
11978cat >>conftest.$ac_ext <<_ACEOF
11979/* end confdefs.h. */
11980#include <ac_nonexistent.h>
11981_ACEOF
11982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11984 ac_status=$?
11985 grep -v '^ *+' conftest.er1 >conftest.err
11986 rm -f conftest.er1
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } >/dev/null; then
11990 if test -s conftest.err; then
11991 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11993 else
11994 ac_cpp_err=
11995 fi
11996else
11997 ac_cpp_err=yes
11998fi
11999if test -z "$ac_cpp_err"; then
12000 # Broken: success on invalid input.
12001continue
12002else
12003 echo "$as_me: failed program was:" >&5
12004sed 's/^/| /' conftest.$ac_ext >&5
12005
12006 # Passes both tests.
12007ac_preproc_ok=:
12008break
12009fi
12010rm -f conftest.err conftest.$ac_ext
12011
12012done
12013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12014rm -f conftest.err conftest.$ac_ext
12015if $ac_preproc_ok; then
12016 break
12017fi
12018
12019 done
12020 ac_cv_prog_CPP=$CPP
12021
12022fi
12023 CPP=$ac_cv_prog_CPP
12024else
12025 ac_cv_prog_CPP=$CPP
12026fi
12027echo "$as_me:$LINENO: result: $CPP" >&5
12028echo "${ECHO_T}$CPP" >&6
12029ac_preproc_ok=false
12030for ac_c_preproc_warn_flag in '' yes
12031do
12032 # Use a header file that comes with gcc, so configuring glibc
12033 # with a fresh cross-compiler works.
12034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12035 # <limits.h> exists even on freestanding compilers.
12036 # On the NeXT, cc -E runs the code through the compiler's parser,
12037 # not just through cpp. "Syntax error" is here to catch this case.
12038 cat >conftest.$ac_ext <<_ACEOF
12039/* confdefs.h. */
12040_ACEOF
12041cat confdefs.h >>conftest.$ac_ext
12042cat >>conftest.$ac_ext <<_ACEOF
12043/* end confdefs.h. */
12044#ifdef __STDC__
12045# include <limits.h>
12046#else
12047# include <assert.h>
12048#endif
ac1cb8d3 12049 Syntax error
a848cd7e
SC
12050_ACEOF
12051if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12053 ac_status=$?
12054 grep -v '^ *+' conftest.er1 >conftest.err
12055 rm -f conftest.er1
12056 cat conftest.err >&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } >/dev/null; then
12059 if test -s conftest.err; then
12060 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12062 else
12063 ac_cpp_err=
12064 fi
12065else
12066 ac_cpp_err=yes
12067fi
12068if test -z "$ac_cpp_err"; then
12069 :
12070else
12071 echo "$as_me: failed program was:" >&5
12072sed 's/^/| /' conftest.$ac_ext >&5
12073
12074 # Broken: fails on valid input.
12075continue
12076fi
12077rm -f conftest.err conftest.$ac_ext
12078
12079 # OK, works on sane cases. Now check whether non-existent headers
12080 # can be detected and how.
12081 cat >conftest.$ac_ext <<_ACEOF
12082/* confdefs.h. */
12083_ACEOF
12084cat confdefs.h >>conftest.$ac_ext
12085cat >>conftest.$ac_ext <<_ACEOF
12086/* end confdefs.h. */
12087#include <ac_nonexistent.h>
12088_ACEOF
12089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12091 ac_status=$?
12092 grep -v '^ *+' conftest.er1 >conftest.err
12093 rm -f conftest.er1
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } >/dev/null; then
12097 if test -s conftest.err; then
12098 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12100 else
12101 ac_cpp_err=
12102 fi
12103else
12104 ac_cpp_err=yes
12105fi
12106if test -z "$ac_cpp_err"; then
12107 # Broken: success on invalid input.
12108continue
12109else
12110 echo "$as_me: failed program was:" >&5
12111sed 's/^/| /' conftest.$ac_ext >&5
12112
12113 # Passes both tests.
12114ac_preproc_ok=:
12115break
12116fi
12117rm -f conftest.err conftest.$ac_ext
12118
12119done
12120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12121rm -f conftest.err conftest.$ac_ext
12122if $ac_preproc_ok; then
12123 :
12124else
12125 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12126See \`config.log' for more details." >&5
12127echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12128See \`config.log' for more details." >&2;}
12129 { (exit 1); exit 1; }; }
12130fi
12131
12132ac_ext=c
12133ac_cpp='$CPP $CPPFLAGS'
12134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12136ac_compiler_gnu=$ac_cv_c_compiler_gnu
12137
12138
12139echo "$as_me:$LINENO: checking for egrep" >&5
12140echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12141if test "${ac_cv_prog_egrep+set}" = set; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12143else
12144 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12145 then ac_cv_prog_egrep='grep -E'
12146 else ac_cv_prog_egrep='egrep'
12147 fi
12148fi
12149echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12150echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12151 EGREP=$ac_cv_prog_egrep
12152
12153
12154if test $ac_cv_c_compiler_gnu = yes; then
12155 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12156echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12157if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12159else
12160 ac_pattern="Autoconf.*'x'"
12161 cat >conftest.$ac_ext <<_ACEOF
12162/* confdefs.h. */
12163_ACEOF
12164cat confdefs.h >>conftest.$ac_ext
12165cat >>conftest.$ac_ext <<_ACEOF
12166/* end confdefs.h. */
12167#include <sgtty.h>
12168Autoconf TIOCGETP
12169_ACEOF
12170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12171 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12172 ac_cv_prog_gcc_traditional=yes
12173else
12174 ac_cv_prog_gcc_traditional=no
12175fi
12176rm -f conftest*
12177
12178
12179 if test $ac_cv_prog_gcc_traditional = no; then
12180 cat >conftest.$ac_ext <<_ACEOF
12181/* confdefs.h. */
12182_ACEOF
12183cat confdefs.h >>conftest.$ac_ext
12184cat >>conftest.$ac_ext <<_ACEOF
12185/* end confdefs.h. */
12186#include <termio.h>
12187Autoconf TCGETA
12188_ACEOF
12189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12190 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12191 ac_cv_prog_gcc_traditional=yes
12192fi
12193rm -f conftest*
12194
12195 fi
12196fi
12197echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12198echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12199 if test $ac_cv_prog_gcc_traditional = yes; then
12200 CC="$CC -traditional"
12201 fi
12202fi
12203
12204
12205
12206
12207ac_ext=cc
12208ac_cpp='$CXXCPP $CPPFLAGS'
12209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12212
12213
12214CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12215
12216
12217 ac_ext=cc
a848cd7e
SC
12218ac_cpp='$CXXCPP $CPPFLAGS'
12219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12222if test -n "$ac_tool_prefix"; then
12223 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12224 do
12225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12226set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12227echo "$as_me:$LINENO: checking for $ac_word" >&5
12228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12229if test "${ac_cv_prog_CXX+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12231else
12232 if test -n "$CXX"; then
12233 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12234else
12235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236for as_dir in $PATH
12237do
12238 IFS=$as_save_IFS
12239 test -z "$as_dir" && as_dir=.
12240 for ac_exec_ext in '' $ac_executable_extensions; do
12241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12242 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12244 break 2
12245 fi
12246done
12247done
12248
12249fi
12250fi
12251CXX=$ac_cv_prog_CXX
12252if test -n "$CXX"; then
12253 echo "$as_me:$LINENO: result: $CXX" >&5
12254echo "${ECHO_T}$CXX" >&6
12255else
12256 echo "$as_me:$LINENO: result: no" >&5
12257echo "${ECHO_T}no" >&6
12258fi
12259
12260 test -n "$CXX" && break
12261 done
12262fi
12263if test -z "$CXX"; then
12264 ac_ct_CXX=$CXX
12265 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12266do
12267 # Extract the first word of "$ac_prog", so it can be a program name with args.
12268set dummy $ac_prog; ac_word=$2
12269echo "$as_me:$LINENO: checking for $ac_word" >&5
12270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12271if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12273else
12274 if test -n "$ac_ct_CXX"; then
12275 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12276else
12277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12278for as_dir in $PATH
12279do
12280 IFS=$as_save_IFS
12281 test -z "$as_dir" && as_dir=.
12282 for ac_exec_ext in '' $ac_executable_extensions; do
12283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12284 ac_cv_prog_ac_ct_CXX="$ac_prog"
12285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12286 break 2
12287 fi
12288done
12289done
12290
12291fi
12292fi
12293ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12294if test -n "$ac_ct_CXX"; then
12295 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12296echo "${ECHO_T}$ac_ct_CXX" >&6
12297else
12298 echo "$as_me:$LINENO: result: no" >&5
12299echo "${ECHO_T}no" >&6
12300fi
12301
12302 test -n "$ac_ct_CXX" && break
12303done
12304test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12305
12306 CXX=$ac_ct_CXX
12307fi
12308
12309
12310# Provide some information about the compiler.
12311echo "$as_me:$LINENO:" \
12312 "checking for C++ compiler version" >&5
12313ac_compiler=`set X $ac_compile; echo $2`
12314{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12315 (eval $ac_compiler --version </dev/null >&5) 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }
12319{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12320 (eval $ac_compiler -v </dev/null >&5) 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }
12324{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12325 (eval $ac_compiler -V </dev/null >&5) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }
12329
12330echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12331echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12332if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12333 echo $ECHO_N "(cached) $ECHO_C" >&6
12334else
12335 cat >conftest.$ac_ext <<_ACEOF
12336/* confdefs.h. */
12337_ACEOF
12338cat confdefs.h >>conftest.$ac_ext
12339cat >>conftest.$ac_ext <<_ACEOF
12340/* end confdefs.h. */
12341
12342int
12343main ()
12344{
12345#ifndef __GNUC__
12346 choke me
12347#endif
12348
12349 ;
12350 return 0;
12351}
12352_ACEOF
12353rm -f conftest.$ac_objext
12354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12355 (eval $ac_compile) 2>conftest.er1
a848cd7e 12356 ac_status=$?
ac1cb8d3
VS
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
a848cd7e
SC
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
9dd0f6c2 12362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_compiler_gnu=yes
12375else
12376 echo "$as_me: failed program was:" >&5
12377sed 's/^/| /' conftest.$ac_ext >&5
12378
12379ac_compiler_gnu=no
12380fi
ac1cb8d3 12381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12382ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12383
12384fi
12385echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12386echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12387GXX=`test $ac_compiler_gnu = yes && echo yes`
12388ac_test_CXXFLAGS=${CXXFLAGS+set}
12389ac_save_CXXFLAGS=$CXXFLAGS
12390CXXFLAGS="-g"
12391echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12392echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12393if test "${ac_cv_prog_cxx_g+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12395else
12396 cat >conftest.$ac_ext <<_ACEOF
12397/* confdefs.h. */
12398_ACEOF
12399cat confdefs.h >>conftest.$ac_ext
12400cat >>conftest.$ac_ext <<_ACEOF
12401/* end confdefs.h. */
12402
12403int
12404main ()
12405{
12406
12407 ;
12408 return 0;
12409}
12410_ACEOF
12411rm -f conftest.$ac_objext
12412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12413 (eval $ac_compile) 2>conftest.er1
a848cd7e 12414 ac_status=$?
ac1cb8d3
VS
12415 grep -v '^ *+' conftest.er1 >conftest.err
12416 rm -f conftest.er1
12417 cat conftest.err >&5
a848cd7e
SC
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } &&
9dd0f6c2 12420 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; } &&
12426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; }; then
12432 ac_cv_prog_cxx_g=yes
12433else
12434 echo "$as_me: failed program was:" >&5
12435sed 's/^/| /' conftest.$ac_ext >&5
12436
12437ac_cv_prog_cxx_g=no
12438fi
ac1cb8d3 12439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12440fi
12441echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12442echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12443if test "$ac_test_CXXFLAGS" = set; then
12444 CXXFLAGS=$ac_save_CXXFLAGS
12445elif test $ac_cv_prog_cxx_g = yes; then
12446 if test "$GXX" = yes; then
52ada004 12447 CXXFLAGS="-g -O2"
a848cd7e 12448 else
52ada004 12449 CXXFLAGS="-g"
a848cd7e
SC
12450 fi
12451else
12452 if test "$GXX" = yes; then
12453 CXXFLAGS="-O2"
12454 else
12455 CXXFLAGS=
12456 fi
12457fi
12458for ac_declaration in \
ac1cb8d3 12459 '' \
a848cd7e
SC
12460 'extern "C" void std::exit (int) throw (); using std::exit;' \
12461 'extern "C" void std::exit (int); using std::exit;' \
12462 'extern "C" void exit (int) throw ();' \
12463 'extern "C" void exit (int);' \
12464 'void exit (int);'
12465do
12466 cat >conftest.$ac_ext <<_ACEOF
12467/* confdefs.h. */
12468_ACEOF
12469cat confdefs.h >>conftest.$ac_ext
12470cat >>conftest.$ac_ext <<_ACEOF
12471/* end confdefs.h. */
de59c161 12472$ac_declaration
ac1cb8d3 12473#include <stdlib.h>
a848cd7e
SC
12474int
12475main ()
12476{
12477exit (42);
12478 ;
12479 return 0;
12480}
12481_ACEOF
12482rm -f conftest.$ac_objext
12483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12484 (eval $ac_compile) 2>conftest.er1
a848cd7e 12485 ac_status=$?
ac1cb8d3
VS
12486 grep -v '^ *+' conftest.er1 >conftest.err
12487 rm -f conftest.er1
12488 cat conftest.err >&5
a848cd7e
SC
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } &&
9dd0f6c2 12491 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12494 ac_status=$?
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; } &&
12497 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12500 ac_status=$?
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
12503 :
12504else
12505 echo "$as_me: failed program was:" >&5
12506sed 's/^/| /' conftest.$ac_ext >&5
12507
12508continue
12509fi
ac1cb8d3 12510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12511 cat >conftest.$ac_ext <<_ACEOF
12512/* confdefs.h. */
12513_ACEOF
12514cat confdefs.h >>conftest.$ac_ext
12515cat >>conftest.$ac_ext <<_ACEOF
12516/* end confdefs.h. */
12517$ac_declaration
12518int
12519main ()
12520{
12521exit (42);
12522 ;
12523 return 0;
12524}
12525_ACEOF
12526rm -f conftest.$ac_objext
12527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12528 (eval $ac_compile) 2>conftest.er1
a848cd7e 12529 ac_status=$?
ac1cb8d3
VS
12530 grep -v '^ *+' conftest.er1 >conftest.err
12531 rm -f conftest.er1
12532 cat conftest.err >&5
a848cd7e
SC
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } &&
9dd0f6c2 12535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; } &&
12541 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 break
12548else
12549 echo "$as_me: failed program was:" >&5
12550sed 's/^/| /' conftest.$ac_ext >&5
12551
12552fi
ac1cb8d3 12553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12554done
12555rm -f conftest*
12556if test -n "$ac_declaration"; then
12557 echo '#ifdef __cplusplus' >>confdefs.h
12558 echo $ac_declaration >>confdefs.h
12559 echo '#endif' >>confdefs.h
12560fi
12561
12562ac_ext=cc
12563ac_cpp='$CXXCPP $CPPFLAGS'
12564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12567
6dcfc289 12568 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12569echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12570if test "${wx_cv_cxx_exto+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12572else
12573 cat >conftest.$ac_ext <<_ACEOF
12574/* confdefs.h. */
12575_ACEOF
12576cat confdefs.h >>conftest.$ac_ext
12577cat >>conftest.$ac_ext <<_ACEOF
12578/* end confdefs.h. */
12579
12580int
12581main ()
12582{
12583
12584 ;
12585 return 0;
12586}
12587_ACEOF
12588rm -f conftest.$ac_objext conftest.$ac_ext.o
12589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12590 (eval $ac_compile) 2>&5
12591 ac_status=$?
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; then
12594 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12595 case $ac_file in
12596 conftest.$ac_ext.o)
12597 wx_cv_cxx_exto="-ext o"
12598 ;;
12599 *)
12600 ;;
12601 esac
12602done
12603else
12604 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12605See \`config.log' for more details." >&5
12606echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12607See \`config.log' for more details." >&2;}
12608 { (exit 1); exit 1; }; }
12609
12610fi
12611
12612rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12613
12614fi
12615echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12616echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12617if test "x$wx_cv_cxx_exto" '!=' "x"; then
12618 if test "cxx" = "c"; then
12619 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12620 fi
12621 if test "cxx" = "cxx"; then
12622 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12623 fi
12624fi
12625
6dcfc289
DE
12626 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12627 unset ac_cv_prog_cxx_g
12628 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12629ac_save_CXXFLAGS=$CXXFLAGS
12630CXXFLAGS="-g"
12631echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12632echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12633if test "${ac_cv_prog_cxx_g+set}" = set; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12635else
12636 cat >conftest.$ac_ext <<_ACEOF
12637/* confdefs.h. */
12638_ACEOF
12639cat confdefs.h >>conftest.$ac_ext
12640cat >>conftest.$ac_ext <<_ACEOF
12641/* end confdefs.h. */
12642
12643int
12644main ()
12645{
12646
12647 ;
12648 return 0;
12649}
12650_ACEOF
12651rm -f conftest.$ac_objext
12652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12653 (eval $ac_compile) 2>conftest.er1
12654 ac_status=$?
12655 grep -v '^ *+' conftest.er1 >conftest.err
12656 rm -f conftest.er1
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } &&
9dd0f6c2 12660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662 (eval $ac_try) 2>&5
12663 ac_status=$?
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; } &&
12666 { ac_try='test -s conftest.$ac_objext'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
12672 ac_cv_prog_cxx_g=yes
12673else
12674 echo "$as_me: failed program was:" >&5
12675sed 's/^/| /' conftest.$ac_ext >&5
12676
12677ac_cv_prog_cxx_g=no
12678fi
12679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12680fi
12681echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12682echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12683if test "$ac_test_CXXFLAGS" = set; then
12684 CXXFLAGS=$ac_save_CXXFLAGS
12685elif test $ac_cv_prog_cxx_g = yes; then
12686 if test "$GXX" = yes; then
52ada004 12687 CXXFLAGS="-g -O2"
480ccd21 12688 else
52ada004 12689 CXXFLAGS="-g"
480ccd21
DE
12690 fi
12691else
12692 if test "$GXX" = yes; then
12693 CXXFLAGS="-O2"
12694 else
12695 CXXFLAGS=
12696 fi
12697fi
6dcfc289
DE
12698 fi
12699 ac_ext=cc
95986553
DE
12700ac_cpp='$CXXCPP $CPPFLAGS'
12701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12704
12705echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12706echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12707if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12709else
12710 cat >conftest.$ac_ext <<_ACEOF
12711/* confdefs.h. */
12712_ACEOF
12713cat confdefs.h >>conftest.$ac_ext
12714cat >>conftest.$ac_ext <<_ACEOF
12715/* end confdefs.h. */
12716
12717int
12718main ()
12719{
12720#ifndef __MWERKS__
12721 choke me
12722#endif
12723
12724 ;
12725 return 0;
12726}
12727_ACEOF
12728rm -f conftest.$ac_objext
12729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12730 (eval $ac_compile) 2>conftest.er1
12731 ac_status=$?
12732 grep -v '^ *+' conftest.er1 >conftest.err
12733 rm -f conftest.er1
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } &&
9dd0f6c2 12737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest.$ac_objext'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 bakefile_compiler_mwerks=yes
12750else
12751 echo "$as_me: failed program was:" >&5
12752sed 's/^/| /' conftest.$ac_ext >&5
12753
12754bakefile_compiler_mwerks=no
12755fi
12756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12757 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12758
12759fi
12760echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12761echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12762
0e6fa1d9 12763MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12764ac_ext=cc
12765ac_cpp='$CXXCPP $CPPFLAGS'
12766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12769
12770
6dcfc289 12771 ac_ext=cc
9273ffba
DE
12772ac_cpp='$CXXCPP $CPPFLAGS'
12773ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12774ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12775ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12776
12777echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12778echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12779if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12781else
12782 cat >conftest.$ac_ext <<_ACEOF
12783/* confdefs.h. */
12784_ACEOF
12785cat confdefs.h >>conftest.$ac_ext
12786cat >>conftest.$ac_ext <<_ACEOF
12787/* end confdefs.h. */
12788
12789int
12790main ()
12791{
12792#ifndef __xlC__
12793 choke me
12794#endif
12795
12796 ;
12797 return 0;
12798}
12799_ACEOF
12800rm -f conftest.$ac_objext
12801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12802 (eval $ac_compile) 2>conftest.er1
12803 ac_status=$?
12804 grep -v '^ *+' conftest.er1 >conftest.err
12805 rm -f conftest.er1
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
9dd0f6c2 12809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; } &&
12815 { ac_try='test -s conftest.$ac_objext'
12816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817 (eval $ac_try) 2>&5
12818 ac_status=$?
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; }; then
12821 wx_compiler_xlc=yes
12822else
12823 echo "$as_me: failed program was:" >&5
12824sed 's/^/| /' conftest.$ac_ext >&5
12825
12826wx_compiler_xlc=no
12827fi
12828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12829 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12830
12831fi
12832echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12833echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12834
0e6fa1d9 12835XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12836ac_ext=cc
12837ac_cpp='$CXXCPP $CPPFLAGS'
12838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12841
12842
95986553 12843
6dcfc289 12844
a848cd7e
SC
12845ac_ext=c
12846ac_cpp='$CPP $CPPFLAGS'
12847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12849ac_compiler_gnu=$ac_cv_c_compiler_gnu
12850
12851
a848cd7e
SC
12852if test -n "$ac_tool_prefix"; then
12853 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12854set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12855echo "$as_me:$LINENO: checking for $ac_word" >&5
12856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12857if test "${ac_cv_prog_RANLIB+set}" = set; then
12858 echo $ECHO_N "(cached) $ECHO_C" >&6
12859else
12860 if test -n "$RANLIB"; then
12861 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12862else
12863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12864for as_dir in $PATH
12865do
12866 IFS=$as_save_IFS
12867 test -z "$as_dir" && as_dir=.
12868 for ac_exec_ext in '' $ac_executable_extensions; do
12869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12870 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12872 break 2
12873 fi
12874done
12875done
12876
12877fi
12878fi
12879RANLIB=$ac_cv_prog_RANLIB
12880if test -n "$RANLIB"; then
12881 echo "$as_me:$LINENO: result: $RANLIB" >&5
12882echo "${ECHO_T}$RANLIB" >&6
12883else
12884 echo "$as_me:$LINENO: result: no" >&5
12885echo "${ECHO_T}no" >&6
12886fi
12887
12888fi
12889if test -z "$ac_cv_prog_RANLIB"; then
12890 ac_ct_RANLIB=$RANLIB
12891 # Extract the first word of "ranlib", so it can be a program name with args.
12892set dummy ranlib; ac_word=$2
12893echo "$as_me:$LINENO: checking for $ac_word" >&5
12894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12895if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12897else
12898 if test -n "$ac_ct_RANLIB"; then
12899 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12900else
12901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12902for as_dir in $PATH
12903do
12904 IFS=$as_save_IFS
12905 test -z "$as_dir" && as_dir=.
12906 for ac_exec_ext in '' $ac_executable_extensions; do
12907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12908 ac_cv_prog_ac_ct_RANLIB="ranlib"
12909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12910 break 2
12911 fi
12912done
12913done
12914
12915 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12916fi
12917fi
12918ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12919if test -n "$ac_ct_RANLIB"; then
12920 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12921echo "${ECHO_T}$ac_ct_RANLIB" >&6
12922else
12923 echo "$as_me:$LINENO: result: no" >&5
12924echo "${ECHO_T}no" >&6
12925fi
12926
12927 RANLIB=$ac_ct_RANLIB
12928else
12929 RANLIB="$ac_cv_prog_RANLIB"
12930fi
12931
12932
12933# Extract the first word of "ar", so it can be a program name with args.
12934set dummy ar; ac_word=$2
12935echo "$as_me:$LINENO: checking for $ac_word" >&5
12936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12937if test "${ac_cv_prog_AR+set}" = set; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12939else
12940 if test -n "$AR"; then
12941 ac_cv_prog_AR="$AR" # Let the user override the test.
12942else
12943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12944for as_dir in $PATH
12945do
12946 IFS=$as_save_IFS
12947 test -z "$as_dir" && as_dir=.
12948 for ac_exec_ext in '' $ac_executable_extensions; do
12949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12950 ac_cv_prog_AR="ar"
12951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12952 break 2
12953 fi
12954done
12955done
12956
12957fi
12958fi
12959AR=$ac_cv_prog_AR
12960if test -n "$AR"; then
12961 echo "$as_me:$LINENO: result: $AR" >&5
12962echo "${ECHO_T}$AR" >&6
12963else
12964 echo "$as_me:$LINENO: result: no" >&5
12965echo "${ECHO_T}no" >&6
12966fi
12967
12968if test "x$AR" = "x" ; then
77ffb593
JS
12969 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12970echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12971 { (exit 1); exit 1; }; }
12972fi
12973
12974# Find a good install program. We prefer a C program (faster),
12975# so one script is as good as another. But avoid the broken or
12976# incompatible versions:
12977# SysV /etc/install, /usr/sbin/install
12978# SunOS /usr/etc/install
12979# IRIX /sbin/install
12980# AIX /bin/install
12981# AmigaOS /C/install, which installs bootblocks on floppy discs
12982# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12983# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12984# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12985# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12986# ./install, which can be erroneously created by make from ./install.sh.
12987echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12988echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12989if test -z "$INSTALL"; then
12990if test "${ac_cv_path_install+set}" = set; then
12991 echo $ECHO_N "(cached) $ECHO_C" >&6
12992else
12993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12994for as_dir in $PATH
12995do
12996 IFS=$as_save_IFS
12997 test -z "$as_dir" && as_dir=.
12998 # Account for people who put trailing slashes in PATH elements.
12999case $as_dir/ in
13000 ./ | .// | /cC/* | \
13001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13002 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13003 /usr/ucb/* ) ;;
13004 *)
13005 # OSF1 and SCO ODT 3.0 have their own names for install.
13006 # Don't use installbsd from OSF since it installs stuff as root
13007 # by default.
13008 for ac_prog in ginstall scoinst install; do
13009 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13010 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13011 if test $ac_prog = install &&
13012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13013 # AIX install. It has an incompatible calling convention.
13014 :
13015 elif test $ac_prog = install &&
13016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13017 # program-specific install script used by HP pwplus--don't use.
13018 :
13019 else
13020 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13021 break 3
13022 fi
13023 fi
a848cd7e
SC
13024 done
13025 done
13026 ;;
13027esac
13028done
13029
13030
13031fi
13032 if test "${ac_cv_path_install+set}" = set; then
13033 INSTALL=$ac_cv_path_install
13034 else
13035 # As a last resort, use the slow shell script. We don't cache a
13036 # path for INSTALL within a source directory, because that will
13037 # break other packages using the cache if that directory is
13038 # removed, or if the path is relative.
13039 INSTALL=$ac_install_sh
13040 fi
13041fi
13042echo "$as_me:$LINENO: result: $INSTALL" >&5
13043echo "${ECHO_T}$INSTALL" >&6
13044
13045# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13046# It thinks the first close brace ends the variable substitution.
13047test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13048
13049test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13050
13051test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13052
13053
13054case ${INSTALL} in
13055 /* ) # Absolute
13056 ;;
13057 ?:* ) # Drive letter, considered as absolute.
13058 ;;
13059 *)
13060 INSTALL=`pwd`/${INSTALL} ;;
13061esac
13062
a848cd7e
SC
13063
13064case "${host}" in
13065
13066 powerpc-*-darwin* )
13067 INSTALL_PROGRAM="cp -fp"
13068 INSTALL_DATA="cp -fp"
13069 ;;
13070 *)
13071 ;;
13072esac
13073
13074# Extract the first word of "strip", so it can be a program name with args.
13075set dummy strip; ac_word=$2
13076echo "$as_me:$LINENO: checking for $ac_word" >&5
13077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13078if test "${ac_cv_prog_STRIP+set}" = set; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13080else
13081 if test -n "$STRIP"; then
13082 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13083else
13084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13085for as_dir in $PATH
13086do
13087 IFS=$as_save_IFS
13088 test -z "$as_dir" && as_dir=.
13089 for ac_exec_ext in '' $ac_executable_extensions; do
13090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13091 ac_cv_prog_STRIP="strip"
13092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13093 break 2
13094 fi
13095done
13096done
13097
13098 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13099fi
13100fi
13101STRIP=$ac_cv_prog_STRIP
13102if test -n "$STRIP"; then
13103 echo "$as_me:$LINENO: result: $STRIP" >&5
13104echo "${ECHO_T}$STRIP" >&6
13105else
13106 echo "$as_me:$LINENO: result: no" >&5
13107echo "${ECHO_T}no" >&6
13108fi
13109
13110
13111echo "$as_me:$LINENO: checking if make is GNU make" >&5
13112echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13113if test "${wx_cv_prog_makeisgnu+set}" = set; then
13114 echo $ECHO_N "(cached) $ECHO_C" >&6
13115else
13116
13117 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13118 egrep -s GNU > /dev/null); then
13119 wx_cv_prog_makeisgnu="yes"
13120 else
13121 wx_cv_prog_makeisgnu="no"
13122 fi
13123
13124fi
13125echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13126echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13127
13128if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13129 IF_GNU_MAKE=""
13130else
13131 IF_GNU_MAKE="#"
13132fi
13133
13134
13135
13136if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13137echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13138echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13139if test "${wx_cv_prog_makevpath+set}" = set; then
13140 echo $ECHO_N "(cached) $ECHO_C" >&6
13141else
13142
13143cat - << EOF > confMake
13144check : file
13145 cp \$? \$@
13146 cp \$? final_file
13147EOF
13148
13149if test ! -d sub ; then
13150 mkdir sub
13151fi
13152echo dummy > sub/file
13153${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13154RESULT=$?
13155rm -f sub/file check final_file confMake
13156rmdir sub
13157if test "$RESULT" = 0; then
13158 wx_cv_prog_makevpath="yes"
13159else
13160 wx_cv_prog_makevpath="no"
13161fi
13162
13163fi
13164echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13165echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13166
13167if test "x$wx_cv_prog_makevpath" != "xyes"; then
13168{ { echo "$as_me:$LINENO: error:
13169You need a make-utility that is able to use the variable
13170VPATH correctly.
13171If your version of make does not support VPATH correctly,
13172please install GNU-make (possibly as gmake), and start
13173configure with the following command:
13174export MAKE=gmake; ./configure for sh-type shells
13175setenv MAKE gmake; ./configure for csh-type shells
13176Also please do remember to use gmake in this case every time
13177you are trying to compile.
13178" >&5
13179echo "$as_me: error:
13180You need a make-utility that is able to use the variable
13181VPATH correctly.
13182If your version of make does not support VPATH correctly,
13183please install GNU-make (possibly as gmake), and start
13184configure with the following command:
13185export MAKE=gmake; ./configure for sh-type shells
13186setenv MAKE gmake; ./configure for csh-type shells
13187Also please do remember to use gmake in this case every time
13188you are trying to compile.
13189" >&2;}
13190 { (exit 1); exit 1; }; }
13191fi fi
13192echo "$as_me:$LINENO: checking whether ln -s works" >&5
13193echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13194LN_S=$as_ln_s
13195if test "$LN_S" = "ln -s"; then
13196 echo "$as_me:$LINENO: result: yes" >&5
13197echo "${ECHO_T}yes" >&6
13198else
13199 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13200echo "${ECHO_T}no, using $LN_S" >&6
13201fi
13202
13203
13204
9273ffba
DE
13205if test "x$XLCXX" = "xyes"; then
13206 CXXFLAGS="$CXXFLAGS -qunique"
13207fi
13208
13209
4d7ec9f1
DE
13210case "${host}" in
13211 powerpc-*-darwin* )
13212 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13213echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13214 cat >conftest.$ac_ext <<_ACEOF
13215/* confdefs.h. */
13216_ACEOF
13217cat confdefs.h >>conftest.$ac_ext
13218cat >>conftest.$ac_ext <<_ACEOF
13219/* end confdefs.h. */
13220
13221int
13222main ()
13223{
13224#ifndef __POWERPC__
13225 choke me for lack of PowerPC
13226#endif
13227
13228 ;
13229 return 0;
13230}
13231_ACEOF
13232rm -f conftest.$ac_objext
13233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13234 (eval $ac_compile) 2>conftest.er1
13235 ac_status=$?
13236 grep -v '^ *+' conftest.er1 >conftest.err
13237 rm -f conftest.er1
13238 cat conftest.err >&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } &&
9dd0f6c2 13241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13244 ac_status=$?
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; } &&
13247 { ac_try='test -s conftest.$ac_objext'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
13253 echo "$as_me:$LINENO: result: yes" >&5
13254echo "${ECHO_T}yes" >&6
13255else
13256 echo "$as_me: failed program was:" >&5
13257sed 's/^/| /' conftest.$ac_ext >&5
13258
13259echo "$as_me:$LINENO: result: no" >&5
13260echo "${ECHO_T}no" >&6
13261 cat >>confdefs.h <<\_ACEOF
13262#define __POWERPC__ 1
13263_ACEOF
13264
13265
13266fi
13267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13268 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13269echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13270 cat >conftest.$ac_ext <<_ACEOF
13271/* confdefs.h. */
13272_ACEOF
13273cat confdefs.h >>conftest.$ac_ext
13274cat >>conftest.$ac_ext <<_ACEOF
13275/* end confdefs.h. */
13276#include <CoreFoundation/CFBase.h>
13277
13278int
13279main ()
13280{
13281
13282 ;
13283 return 0;
13284}
13285_ACEOF
13286rm -f conftest.$ac_objext
13287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13288 (eval $ac_compile) 2>conftest.er1
13289 ac_status=$?
13290 grep -v '^ *+' conftest.er1 >conftest.err
13291 rm -f conftest.er1
13292 cat conftest.err >&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } &&
9dd0f6c2 13295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; } &&
13301 { ac_try='test -s conftest.$ac_objext'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 echo "$as_me:$LINENO: result: yes" >&5
13308echo "${ECHO_T}yes" >&6
13309else
13310 echo "$as_me: failed program was:" >&5
13311sed 's/^/| /' conftest.$ac_ext >&5
13312
13313echo "$as_me:$LINENO: result: no" >&5
13314echo "${ECHO_T}no" >&6
13315 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13316echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13317 cat >conftest.$ac_ext <<_ACEOF
13318/* confdefs.h. */
13319_ACEOF
13320cat confdefs.h >>conftest.$ac_ext
13321cat >>conftest.$ac_ext <<_ACEOF
13322/* end confdefs.h. */
13323#define __CF_USE_FRAMEWORK_INCLUDES__
13324#include <CoreFoundation/CFBase.h>
13325
13326int
13327main ()
13328{
13329
13330 ;
13331 return 0;
13332}
13333_ACEOF
13334rm -f conftest.$ac_objext
13335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13336 (eval $ac_compile) 2>conftest.er1
13337 ac_status=$?
13338 grep -v '^ *+' conftest.er1 >conftest.err
13339 rm -f conftest.er1
13340 cat conftest.err >&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); } &&
9dd0f6c2 13343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13345 (eval $ac_try) 2>&5
13346 ac_status=$?
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; } &&
13349 { ac_try='test -s conftest.$ac_objext'
13350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; }; then
13355 echo "$as_me:$LINENO: result: yes" >&5
13356echo "${ECHO_T}yes" >&6
13357 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13358else
13359 echo "$as_me: failed program was:" >&5
13360sed 's/^/| /' conftest.$ac_ext >&5
13361
13362{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13363See \`config.log' for more details." >&5
13364echo "$as_me: error: no. CoreFoundation not available.
13365See \`config.log' for more details." >&2;}
13366 { (exit 1); exit 1; }; }
13367
13368fi
13369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13370
13371
13372fi
13373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13374 ;;
13375esac
13376
a848cd7e
SC
13377case "${host}" in
13378 *-pc-os2_emx | *-pc-os2-emx )
13379 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13380 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13381echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13382if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13384else
13385 ac_check_lib_save_LIBS=$LIBS
13386LIBS="-lcExt $LIBS"
13387cat >conftest.$ac_ext <<_ACEOF
13388/* confdefs.h. */
13389_ACEOF
13390cat confdefs.h >>conftest.$ac_ext
13391cat >>conftest.$ac_ext <<_ACEOF
13392/* end confdefs.h. */
13393
13394/* Override any gcc2 internal prototype to avoid an error. */
13395#ifdef __cplusplus
13396extern "C"
13397#endif
13398/* We use char because int might match the return type of a gcc2
13399 builtin and then its argument prototype would still apply. */
13400char drand48 ();
13401int
13402main ()
13403{
13404drand48 ();
13405 ;
13406 return 0;
13407}
13408_ACEOF
13409rm -f conftest.$ac_objext conftest$ac_exeext
13410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13411 (eval $ac_link) 2>conftest.er1
a848cd7e 13412 ac_status=$?
ac1cb8d3
VS
13413 grep -v '^ *+' conftest.er1 >conftest.err
13414 rm -f conftest.er1
13415 cat conftest.err >&5
a848cd7e
SC
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); } &&
9dd0f6c2 13418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420 (eval $ac_try) 2>&5
13421 ac_status=$?
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; } &&
13424 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; }; then
13430 ac_cv_lib_cExt_drand48=yes
13431else
13432 echo "$as_me: failed program was:" >&5
13433sed 's/^/| /' conftest.$ac_ext >&5
13434
13435ac_cv_lib_cExt_drand48=no
13436fi
ac1cb8d3
VS
13437rm -f conftest.err conftest.$ac_objext \
13438 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13439LIBS=$ac_check_lib_save_LIBS
13440fi
13441echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13442echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13443if test $ac_cv_lib_cExt_drand48 = yes; then
13444 LIBS="$LIBS -lcExt"
13445fi
13446
13447 else
13448 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13449 fi
69120ee4
VZ
13450 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13451echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13452if test "${wx_cv_gccversion+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13454else
13455
391a765e
VS
13456 if test "$cross_compiling" = yes; then
13457 wx_cv_gccversion="EMX2"
13458
13459else
13460 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13461/* confdefs.h. */
13462_ACEOF
13463cat confdefs.h >>conftest.$ac_ext
13464cat >>conftest.$ac_ext <<_ACEOF
13465/* end confdefs.h. */
13466
391a765e 13467 #include <stdio.h>
a848cd7e 13468
391a765e
VS
13469 int main()
13470 {
13471 FILE *f=fopen("conftestval", "w");
13472 if (!f) exit(1);
13473 fprintf(f,
a848cd7e 13474 #if (__GNUC__ < 3)
391a765e
VS
13475 "EMX2"
13476 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13477 "EMX3"
13478 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13479 "Innotek5"
13480 #else
13481 "Innotek6"
a848cd7e 13482 #endif
391a765e
VS
13483 );
13484 exit(0);
13485 }
a848cd7e 13486
a848cd7e 13487_ACEOF
391a765e
VS
13488rm -f conftest$ac_exeext
13489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13490 (eval $ac_link) 2>&5
ac1cb8d3
VS
13491 ac_status=$?
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
391a765e 13499 wx_cv_gccversion=`cat conftestval`
a848cd7e 13500else
391a765e
VS
13501 echo "$as_me: program exited with status $ac_status" >&5
13502echo "$as_me: failed program was:" >&5
a848cd7e
SC
13503sed 's/^/| /' conftest.$ac_ext >&5
13504
391a765e
VS
13505( exit $ac_status )
13506wx_cv_gccversion="EMX2"
a848cd7e 13507fi
391a765e 13508rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13509fi
a848cd7e
SC
13510
13511fi
13512echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13513echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13514 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13515 LIBS="$LIBS -lstdcpp"
13516 LDFLAGS="$LDFLAGS -Zsysv-signals"
13517 else
391a765e 13518 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13519 LIBS="$LIBS -lstdcxx"
13520 LDFLAGS="$LDFLAGS -Zsysv-signals"
13521 else
13522 LIBS="$LIBS -lstdc++"
13523 fi
13524 fi
94acd38e
DE
13525 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13526 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13527echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13528 wxUSE_OMF=yes
2da0c077 13529 enable_omf=yes
a848cd7e
SC
13530 fi
13531 ;;
13532 *)
13533
13534
13535
13536 ac_ext=cc
13537ac_cpp='$CXXCPP $CPPFLAGS'
13538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13541
13542
95986553 13543 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13544echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13545if test "${ac_cv_string_strcasecmp+set}" = set; then
13546 echo $ECHO_N "(cached) $ECHO_C" >&6
13547else
13548
13549 cat >conftest.$ac_ext <<_ACEOF
13550/* confdefs.h. */
13551_ACEOF
13552cat confdefs.h >>conftest.$ac_ext
13553cat >>conftest.$ac_ext <<_ACEOF
13554/* end confdefs.h. */
13555
13556 #include <string.h>
13557
13558int
13559main ()
13560{
13561
13562 strcasecmp("foo", "bar");
13563
13564 ;
13565 return 0;
13566}
13567_ACEOF
13568rm -f conftest.$ac_objext conftest$ac_exeext
13569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13570 (eval $ac_link) 2>conftest.er1
a848cd7e 13571 ac_status=$?
ac1cb8d3
VS
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
a848cd7e
SC
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
9dd0f6c2 13577 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13580 ac_status=$?
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; } &&
13583 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589 ac_cv_string_strcasecmp=yes
13590else
13591 echo "$as_me: failed program was:" >&5
13592sed 's/^/| /' conftest.$ac_ext >&5
13593
13594ac_cv_string_strcasecmp=no
13595
13596fi
ac1cb8d3
VS
13597rm -f conftest.err conftest.$ac_objext \
13598 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13599
13600fi
13601echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13602echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13603
13604 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13605 cat >>confdefs.h <<\_ACEOF
13606#define HAVE_STRCASECMP_IN_STRING_H 1
13607_ACEOF
13608
13609 else
13610 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13611echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13612if test "${ac_cv_strings_strcasecmp+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13614else
13615
13616 cat >conftest.$ac_ext <<_ACEOF
13617/* confdefs.h. */
13618_ACEOF
13619cat confdefs.h >>conftest.$ac_ext
13620cat >>conftest.$ac_ext <<_ACEOF
13621/* end confdefs.h. */
13622
13623 #include <strings.h>
13624
13625int
13626main ()
13627{
13628
13629 strcasecmp("foo", "bar");
13630
13631 ;
13632 return 0;
13633}
13634_ACEOF
13635rm -f conftest.$ac_objext conftest$ac_exeext
13636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13637 (eval $ac_link) 2>conftest.er1
a848cd7e 13638 ac_status=$?
ac1cb8d3
VS
13639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
a848cd7e
SC
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
9dd0f6c2 13644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13647 ac_status=$?
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; } &&
13650 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13653 ac_status=$?
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; }; then
13656 ac_cv_strings_strcasecmp=yes
13657else
13658 echo "$as_me: failed program was:" >&5
13659sed 's/^/| /' conftest.$ac_ext >&5
13660
13661ac_cv_strings_strcasecmp=no
13662
13663fi
ac1cb8d3
VS
13664rm -f conftest.err conftest.$ac_objext \
13665 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13666
13667fi
13668echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13669echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13670
0c3c69fc 13671 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13672 cat >>confdefs.h <<\_ACEOF
13673#define HAVE_STRCASECMP_IN_STRINGS_H 1
13674_ACEOF
13675
13676 else
13677 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13678echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13679 { (exit 1); exit 1; }; }
13680 fi
13681 fi
13682
13683 ac_ext=c
13684ac_cpp='$CPP $CPPFLAGS'
13685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13687ac_compiler_gnu=$ac_cv_c_compiler_gnu
13688
13689 ;;
13690esac
13691
13692
13693echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13694echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13695if test "${ac_cv_header_stdc+set}" = set; then
13696 echo $ECHO_N "(cached) $ECHO_C" >&6
13697else
13698 cat >conftest.$ac_ext <<_ACEOF
13699/* confdefs.h. */
13700_ACEOF
13701cat confdefs.h >>conftest.$ac_ext
13702cat >>conftest.$ac_ext <<_ACEOF
13703/* end confdefs.h. */
13704#include <stdlib.h>
13705#include <stdarg.h>
13706#include <string.h>
13707#include <float.h>
13708
13709int
13710main ()
13711{
13712
13713 ;
13714 return 0;
13715}
13716_ACEOF
13717rm -f conftest.$ac_objext
13718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13719 (eval $ac_compile) 2>conftest.er1
a848cd7e 13720 ac_status=$?
ac1cb8d3
VS
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
a848cd7e
SC
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
9dd0f6c2 13726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; } &&
13732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; }; then
13738 ac_cv_header_stdc=yes
13739else
13740 echo "$as_me: failed program was:" >&5
13741sed 's/^/| /' conftest.$ac_ext >&5
13742
13743ac_cv_header_stdc=no
13744fi
ac1cb8d3 13745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13746
13747if test $ac_cv_header_stdc = yes; then
13748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13749 cat >conftest.$ac_ext <<_ACEOF
13750/* confdefs.h. */
13751_ACEOF
13752cat confdefs.h >>conftest.$ac_ext
13753cat >>conftest.$ac_ext <<_ACEOF
13754/* end confdefs.h. */
13755#include <string.h>
13756
13757_ACEOF
13758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13759 $EGREP "memchr" >/dev/null 2>&1; then
13760 :
13761else
13762 ac_cv_header_stdc=no
13763fi
13764rm -f conftest*
13765
13766fi
13767
13768if test $ac_cv_header_stdc = yes; then
13769 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13770 cat >conftest.$ac_ext <<_ACEOF
13771/* confdefs.h. */
13772_ACEOF
13773cat confdefs.h >>conftest.$ac_ext
13774cat >>conftest.$ac_ext <<_ACEOF
13775/* end confdefs.h. */
13776#include <stdlib.h>
13777
13778_ACEOF
13779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13780 $EGREP "free" >/dev/null 2>&1; then
13781 :
13782else
13783 ac_cv_header_stdc=no
13784fi
13785rm -f conftest*
13786
13787fi
13788
13789if test $ac_cv_header_stdc = yes; then
13790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13791 if test "$cross_compiling" = yes; then
13792 :
13793else
13794 cat >conftest.$ac_ext <<_ACEOF
13795/* confdefs.h. */
13796_ACEOF
13797cat confdefs.h >>conftest.$ac_ext
13798cat >>conftest.$ac_ext <<_ACEOF
13799/* end confdefs.h. */
13800#include <ctype.h>
13801#if ((' ' & 0x0FF) == 0x020)
13802# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13803# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13804#else
13805# define ISLOWER(c) \
ac1cb8d3
VS
13806 (('a' <= (c) && (c) <= 'i') \
13807 || ('j' <= (c) && (c) <= 'r') \
13808 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13809# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13810#endif
13811
13812#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13813int
13814main ()
13815{
13816 int i;
13817 for (i = 0; i < 256; i++)
13818 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13819 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13820 exit(2);
13821 exit (0);
13822}
13823_ACEOF
13824rm -f conftest$ac_exeext
13825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13826 (eval $ac_link) 2>&5
13827 ac_status=$?
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }; then
13835 :
13836else
13837 echo "$as_me: program exited with status $ac_status" >&5
13838echo "$as_me: failed program was:" >&5
13839sed 's/^/| /' conftest.$ac_ext >&5
13840
13841( exit $ac_status )
13842ac_cv_header_stdc=no
13843fi
ac1cb8d3 13844rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13845fi
13846fi
13847fi
13848echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13849echo "${ECHO_T}$ac_cv_header_stdc" >&6
13850if test $ac_cv_header_stdc = yes; then
13851
13852cat >>confdefs.h <<\_ACEOF
13853#define STDC_HEADERS 1
13854_ACEOF
13855
13856fi
13857
13858# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13869 inttypes.h stdint.h unistd.h
a848cd7e
SC
13870do
13871as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13872echo "$as_me:$LINENO: checking for $ac_header" >&5
13873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13874if eval "test \"\${$as_ac_Header+set}\" = set"; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876else
13877 cat >conftest.$ac_ext <<_ACEOF
13878/* confdefs.h. */
13879_ACEOF
13880cat confdefs.h >>conftest.$ac_ext
13881cat >>conftest.$ac_ext <<_ACEOF
13882/* end confdefs.h. */
13883$ac_includes_default
13884
13885#include <$ac_header>
13886_ACEOF
13887rm -f conftest.$ac_objext
13888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13889 (eval $ac_compile) 2>conftest.er1
a848cd7e 13890 ac_status=$?
ac1cb8d3
VS
13891 grep -v '^ *+' conftest.er1 >conftest.err
13892 rm -f conftest.er1
13893 cat conftest.err >&5
a848cd7e
SC
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } &&
9dd0f6c2 13896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; } &&
13902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; }; then
13908 eval "$as_ac_Header=yes"
13909else
13910 echo "$as_me: failed program was:" >&5
13911sed 's/^/| /' conftest.$ac_ext >&5
13912
13913eval "$as_ac_Header=no"
13914fi
ac1cb8d3 13915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13916fi
13917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13919if test `eval echo '${'$as_ac_Header'}'` = yes; then
13920 cat >>confdefs.h <<_ACEOF
13921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13922_ACEOF
13923
13924fi
13925
13926done
13927
13928
13929
13930for ac_header in stdlib.h
13931do
13932as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13933if eval "test \"\${$as_ac_Header+set}\" = set"; then
13934 echo "$as_me:$LINENO: checking for $ac_header" >&5
13935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13936if eval "test \"\${$as_ac_Header+set}\" = set"; then
13937 echo $ECHO_N "(cached) $ECHO_C" >&6
13938fi
13939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13940echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13941else
13942 # Is the header compilable?
13943echo "$as_me:$LINENO: checking $ac_header usability" >&5
13944echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13945cat >conftest.$ac_ext <<_ACEOF
13946/* confdefs.h. */
13947_ACEOF
13948cat confdefs.h >>conftest.$ac_ext
13949cat >>conftest.$ac_ext <<_ACEOF
13950/* end confdefs.h. */
13951$ac_includes_default
13952#include <$ac_header>
13953_ACEOF
13954rm -f conftest.$ac_objext
13955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13956 (eval $ac_compile) 2>conftest.er1
a848cd7e 13957 ac_status=$?
ac1cb8d3
VS
13958 grep -v '^ *+' conftest.er1 >conftest.err
13959 rm -f conftest.er1
13960 cat conftest.err >&5
a848cd7e
SC
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } &&
9dd0f6c2 13963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13965 (eval $ac_try) 2>&5
13966 ac_status=$?
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; } &&
13969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }; then
13975 ac_header_compiler=yes
13976else
13977 echo "$as_me: failed program was:" >&5
13978sed 's/^/| /' conftest.$ac_ext >&5
13979
13980ac_header_compiler=no
13981fi
ac1cb8d3 13982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13983echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13984echo "${ECHO_T}$ac_header_compiler" >&6
13985
13986# Is the header present?
13987echo "$as_me:$LINENO: checking $ac_header presence" >&5
13988echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13989cat >conftest.$ac_ext <<_ACEOF
13990/* confdefs.h. */
13991_ACEOF
13992cat confdefs.h >>conftest.$ac_ext
13993cat >>conftest.$ac_ext <<_ACEOF
13994/* end confdefs.h. */
13995#include <$ac_header>
13996_ACEOF
13997if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13999 ac_status=$?
14000 grep -v '^ *+' conftest.er1 >conftest.err
14001 rm -f conftest.er1
14002 cat conftest.err >&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } >/dev/null; then
14005 if test -s conftest.err; then
14006 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14008 else
14009 ac_cpp_err=
14010 fi
14011else
14012 ac_cpp_err=yes
14013fi
14014if test -z "$ac_cpp_err"; then
14015 ac_header_preproc=yes
14016else
14017 echo "$as_me: failed program was:" >&5
14018sed 's/^/| /' conftest.$ac_ext >&5
14019
14020 ac_header_preproc=no
14021fi
14022rm -f conftest.err conftest.$ac_ext
14023echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14024echo "${ECHO_T}$ac_header_preproc" >&6
14025
14026# So? What about this header?
ac1cb8d3
VS
14027case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14028 yes:no: )
a848cd7e
SC
14029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14030echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14032echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14033 ac_header_preproc=yes
a848cd7e 14034 ;;
ac1cb8d3 14035 no:yes:* )
a848cd7e
SC
14036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14037echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14039echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14041echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14043echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14045echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14047echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14048 (
14049 cat <<\_ASBOX
ac1cb8d3
VS
14050## ----------------------------------------- ##
14051## Report this to wx-dev@lists.wxwidgets.org ##
14052## ----------------------------------------- ##
a848cd7e
SC
14053_ASBOX
14054 ) |
14055 sed "s/^/$as_me: WARNING: /" >&2
14056 ;;
14057esac
14058echo "$as_me:$LINENO: checking for $ac_header" >&5
14059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14060if eval "test \"\${$as_ac_Header+set}\" = set"; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062else
ac1cb8d3 14063 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14064fi
14065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14066echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14067
14068fi
14069if test `eval echo '${'$as_ac_Header'}'` = yes; then
14070 cat >>confdefs.h <<_ACEOF
14071#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14072_ACEOF
14073
14074fi
14075
14076done
14077
14078
14079for ac_header in malloc.h
14080do
14081as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14082if eval "test \"\${$as_ac_Header+set}\" = set"; then
14083 echo "$as_me:$LINENO: checking for $ac_header" >&5
14084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14085if eval "test \"\${$as_ac_Header+set}\" = set"; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14087fi
14088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14089echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14090else
14091 # Is the header compilable?
14092echo "$as_me:$LINENO: checking $ac_header usability" >&5
14093echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14094cat >conftest.$ac_ext <<_ACEOF
14095/* confdefs.h. */
14096_ACEOF
14097cat confdefs.h >>conftest.$ac_ext
14098cat >>conftest.$ac_ext <<_ACEOF
14099/* end confdefs.h. */
14100$ac_includes_default
14101#include <$ac_header>
14102_ACEOF
14103rm -f conftest.$ac_objext
14104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14105 (eval $ac_compile) 2>conftest.er1
a848cd7e 14106 ac_status=$?
ac1cb8d3
VS
14107 grep -v '^ *+' conftest.er1 >conftest.err
14108 rm -f conftest.er1
14109 cat conftest.err >&5
a848cd7e
SC
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } &&
9dd0f6c2 14112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114 (eval $ac_try) 2>&5
14115 ac_status=$?
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; } &&
14118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; }; then
14124 ac_header_compiler=yes
14125else
14126 echo "$as_me: failed program was:" >&5
14127sed 's/^/| /' conftest.$ac_ext >&5
14128
14129ac_header_compiler=no
14130fi
ac1cb8d3 14131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14132echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14133echo "${ECHO_T}$ac_header_compiler" >&6
14134
14135# Is the header present?
14136echo "$as_me:$LINENO: checking $ac_header presence" >&5
14137echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14138cat >conftest.$ac_ext <<_ACEOF
14139/* confdefs.h. */
14140_ACEOF
14141cat confdefs.h >>conftest.$ac_ext
14142cat >>conftest.$ac_ext <<_ACEOF
14143/* end confdefs.h. */
14144#include <$ac_header>
14145_ACEOF
14146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14148 ac_status=$?
14149 grep -v '^ *+' conftest.er1 >conftest.err
14150 rm -f conftest.er1
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } >/dev/null; then
14154 if test -s conftest.err; then
14155 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14157 else
14158 ac_cpp_err=
14159 fi
14160else
14161 ac_cpp_err=yes
14162fi
14163if test -z "$ac_cpp_err"; then
14164 ac_header_preproc=yes
14165else
14166 echo "$as_me: failed program was:" >&5
14167sed 's/^/| /' conftest.$ac_ext >&5
14168
14169 ac_header_preproc=no
14170fi
14171rm -f conftest.err conftest.$ac_ext
14172echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14173echo "${ECHO_T}$ac_header_preproc" >&6
14174
14175# So? What about this header?
ac1cb8d3
VS
14176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14177 yes:no: )
a848cd7e
SC
14178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14179echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14181echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14182 ac_header_preproc=yes
a848cd7e 14183 ;;
ac1cb8d3 14184 no:yes:* )
a848cd7e
SC
14185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14186echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14188echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14190echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14192echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14196echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14197 (
14198 cat <<\_ASBOX
ac1cb8d3
VS
14199## ----------------------------------------- ##
14200## Report this to wx-dev@lists.wxwidgets.org ##
14201## ----------------------------------------- ##
a848cd7e
SC
14202_ASBOX
14203 ) |
14204 sed "s/^/$as_me: WARNING: /" >&2
14205 ;;
14206esac
14207echo "$as_me:$LINENO: checking for $ac_header" >&5
14208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14209if eval "test \"\${$as_ac_Header+set}\" = set"; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14211else
ac1cb8d3 14212 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14213fi
14214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14216
14217fi
14218if test `eval echo '${'$as_ac_Header'}'` = yes; then
14219 cat >>confdefs.h <<_ACEOF
14220#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14221_ACEOF
14222
14223fi
14224
14225done
14226
14227
14228for ac_header in unistd.h
14229do
14230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14231if eval "test \"\${$as_ac_Header+set}\" = set"; then
14232 echo "$as_me:$LINENO: checking for $ac_header" >&5
14233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14234if eval "test \"\${$as_ac_Header+set}\" = set"; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14236fi
14237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14239else
14240 # Is the header compilable?
14241echo "$as_me:$LINENO: checking $ac_header usability" >&5
14242echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14243cat >conftest.$ac_ext <<_ACEOF
14244/* confdefs.h. */
14245_ACEOF
14246cat confdefs.h >>conftest.$ac_ext
14247cat >>conftest.$ac_ext <<_ACEOF
14248/* end confdefs.h. */
14249$ac_includes_default
14250#include <$ac_header>
14251_ACEOF
14252rm -f conftest.$ac_objext
14253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14254 (eval $ac_compile) 2>conftest.er1
a848cd7e 14255 ac_status=$?
ac1cb8d3
VS
14256 grep -v '^ *+' conftest.er1 >conftest.err
14257 rm -f conftest.er1
14258 cat conftest.err >&5
a848cd7e
SC
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } &&
9dd0f6c2 14261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263 (eval $ac_try) 2>&5
14264 ac_status=$?
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); }; } &&
14267 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14270 ac_status=$?
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }; then
14273 ac_header_compiler=yes
14274else
14275 echo "$as_me: failed program was:" >&5
14276sed 's/^/| /' conftest.$ac_ext >&5
14277
14278ac_header_compiler=no
14279fi
ac1cb8d3 14280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14281echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14282echo "${ECHO_T}$ac_header_compiler" >&6
14283
14284# Is the header present?
14285echo "$as_me:$LINENO: checking $ac_header presence" >&5
14286echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14287cat >conftest.$ac_ext <<_ACEOF
14288/* confdefs.h. */
14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
14292/* end confdefs.h. */
14293#include <$ac_header>
14294_ACEOF
14295if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14297 ac_status=$?
14298 grep -v '^ *+' conftest.er1 >conftest.err
14299 rm -f conftest.er1
14300 cat conftest.err >&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } >/dev/null; then
14303 if test -s conftest.err; then
14304 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14306 else
14307 ac_cpp_err=
14308 fi
14309else
14310 ac_cpp_err=yes
14311fi
14312if test -z "$ac_cpp_err"; then
14313 ac_header_preproc=yes
14314else
14315 echo "$as_me: failed program was:" >&5
14316sed 's/^/| /' conftest.$ac_ext >&5
14317
14318 ac_header_preproc=no
14319fi
14320rm -f conftest.err conftest.$ac_ext
14321echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14322echo "${ECHO_T}$ac_header_preproc" >&6
14323
14324# So? What about this header?
ac1cb8d3
VS
14325case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14326 yes:no: )
a848cd7e
SC
14327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14328echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14330echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14331 ac_header_preproc=yes
a848cd7e 14332 ;;
ac1cb8d3 14333 no:yes:* )
a848cd7e
SC
14334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14335echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14337echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14339echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14341echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14343echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14345echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14346 (
14347 cat <<\_ASBOX
ac1cb8d3
VS
14348## ----------------------------------------- ##
14349## Report this to wx-dev@lists.wxwidgets.org ##
14350## ----------------------------------------- ##
a848cd7e
SC
14351_ASBOX
14352 ) |
14353 sed "s/^/$as_me: WARNING: /" >&2
14354 ;;
14355esac
14356echo "$as_me:$LINENO: checking for $ac_header" >&5
14357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14358if eval "test \"\${$as_ac_Header+set}\" = set"; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14360else
ac1cb8d3 14361 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14362fi
14363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14364echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14365
14366fi
14367if test `eval echo '${'$as_ac_Header'}'` = yes; then
14368 cat >>confdefs.h <<_ACEOF
14369#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14370_ACEOF
14371
14372fi
14373
14374done
14375
14376
14377for ac_header in wchar.h
14378do
14379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14380if eval "test \"\${$as_ac_Header+set}\" = set"; then
14381 echo "$as_me:$LINENO: checking for $ac_header" >&5
14382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14383if eval "test \"\${$as_ac_Header+set}\" = set"; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14385fi
14386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14388else
14389 # Is the header compilable?
14390echo "$as_me:$LINENO: checking $ac_header usability" >&5
14391echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14392cat >conftest.$ac_ext <<_ACEOF
14393/* confdefs.h. */
14394_ACEOF
14395cat confdefs.h >>conftest.$ac_ext
14396cat >>conftest.$ac_ext <<_ACEOF
14397/* end confdefs.h. */
14398$ac_includes_default
14399#include <$ac_header>
14400_ACEOF
14401rm -f conftest.$ac_objext
14402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14403 (eval $ac_compile) 2>conftest.er1
a848cd7e 14404 ac_status=$?
ac1cb8d3
VS
14405 grep -v '^ *+' conftest.er1 >conftest.err
14406 rm -f conftest.er1
14407 cat conftest.err >&5
a848cd7e
SC
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } &&
9dd0f6c2 14410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; } &&
14416 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; }; then
14422 ac_header_compiler=yes
14423else
14424 echo "$as_me: failed program was:" >&5
14425sed 's/^/| /' conftest.$ac_ext >&5
14426
14427ac_header_compiler=no
14428fi
ac1cb8d3 14429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14431echo "${ECHO_T}$ac_header_compiler" >&6
14432
14433# Is the header present?
14434echo "$as_me:$LINENO: checking $ac_header presence" >&5
14435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14436cat >conftest.$ac_ext <<_ACEOF
14437/* confdefs.h. */
14438_ACEOF
14439cat confdefs.h >>conftest.$ac_ext
14440cat >>conftest.$ac_ext <<_ACEOF
14441/* end confdefs.h. */
14442#include <$ac_header>
14443_ACEOF
14444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14446 ac_status=$?
14447 grep -v '^ *+' conftest.er1 >conftest.err
14448 rm -f conftest.er1
14449 cat conftest.err >&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); } >/dev/null; then
14452 if test -s conftest.err; then
14453 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14455 else
14456 ac_cpp_err=
14457 fi
14458else
14459 ac_cpp_err=yes
14460fi
14461if test -z "$ac_cpp_err"; then
14462 ac_header_preproc=yes
14463else
14464 echo "$as_me: failed program was:" >&5
14465sed 's/^/| /' conftest.$ac_ext >&5
14466
14467 ac_header_preproc=no
14468fi
14469rm -f conftest.err conftest.$ac_ext
14470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14471echo "${ECHO_T}$ac_header_preproc" >&6
14472
14473# So? What about this header?
ac1cb8d3
VS
14474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14475 yes:no: )
a848cd7e
SC
14476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14479echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14480 ac_header_preproc=yes
a848cd7e 14481 ;;
ac1cb8d3 14482 no:yes:* )
a848cd7e
SC
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14484echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14486echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14488echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14490echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14494echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14495 (
14496 cat <<\_ASBOX
ac1cb8d3
VS
14497## ----------------------------------------- ##
14498## Report this to wx-dev@lists.wxwidgets.org ##
14499## ----------------------------------------- ##
a848cd7e
SC
14500_ASBOX
14501 ) |
14502 sed "s/^/$as_me: WARNING: /" >&2
14503 ;;
14504esac
14505echo "$as_me:$LINENO: checking for $ac_header" >&5
14506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14507if eval "test \"\${$as_ac_Header+set}\" = set"; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14509else
ac1cb8d3 14510 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14511fi
14512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14514
14515fi
14516if test `eval echo '${'$as_ac_Header'}'` = yes; then
14517 cat >>confdefs.h <<_ACEOF
14518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14519_ACEOF
14520
14521fi
14522
14523done
14524
14525
14526if test "$ac_cv_header_wchar_h" != "yes"; then
14527
14528for ac_header in wcstr.h
14529do
14530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14531if eval "test \"\${$as_ac_Header+set}\" = set"; then
14532 echo "$as_me:$LINENO: checking for $ac_header" >&5
14533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14534if eval "test \"\${$as_ac_Header+set}\" = set"; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14536fi
14537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14539else
14540 # Is the header compilable?
14541echo "$as_me:$LINENO: checking $ac_header usability" >&5
14542echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14543cat >conftest.$ac_ext <<_ACEOF
14544/* confdefs.h. */
14545_ACEOF
14546cat confdefs.h >>conftest.$ac_ext
14547cat >>conftest.$ac_ext <<_ACEOF
14548/* end confdefs.h. */
14549$ac_includes_default
14550#include <$ac_header>
14551_ACEOF
14552rm -f conftest.$ac_objext
14553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14554 (eval $ac_compile) 2>conftest.er1
a848cd7e 14555 ac_status=$?
ac1cb8d3
VS
14556 grep -v '^ *+' conftest.er1 >conftest.err
14557 rm -f conftest.er1
14558 cat conftest.err >&5
a848cd7e
SC
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } &&
9dd0f6c2 14561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14564 ac_status=$?
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; } &&
14567 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; }; then
14573 ac_header_compiler=yes
14574else
14575 echo "$as_me: failed program was:" >&5
14576sed 's/^/| /' conftest.$ac_ext >&5
14577
14578ac_header_compiler=no
14579fi
ac1cb8d3 14580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14581echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14582echo "${ECHO_T}$ac_header_compiler" >&6
14583
14584# Is the header present?
14585echo "$as_me:$LINENO: checking $ac_header presence" >&5
14586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14587cat >conftest.$ac_ext <<_ACEOF
14588/* confdefs.h. */
14589_ACEOF
14590cat confdefs.h >>conftest.$ac_ext
14591cat >>conftest.$ac_ext <<_ACEOF
14592/* end confdefs.h. */
14593#include <$ac_header>
14594_ACEOF
14595if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14597 ac_status=$?
14598 grep -v '^ *+' conftest.er1 >conftest.err
14599 rm -f conftest.er1
14600 cat conftest.err >&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } >/dev/null; then
14603 if test -s conftest.err; then
14604 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14606 else
14607 ac_cpp_err=
14608 fi
14609else
14610 ac_cpp_err=yes
14611fi
14612if test -z "$ac_cpp_err"; then
14613 ac_header_preproc=yes
14614else
14615 echo "$as_me: failed program was:" >&5
14616sed 's/^/| /' conftest.$ac_ext >&5
14617
14618 ac_header_preproc=no
14619fi
14620rm -f conftest.err conftest.$ac_ext
14621echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14622echo "${ECHO_T}$ac_header_preproc" >&6
14623
14624# So? What about this header?
ac1cb8d3
VS
14625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14626 yes:no: )
a848cd7e
SC
14627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14631 ac_header_preproc=yes
a848cd7e 14632 ;;
ac1cb8d3 14633 no:yes:* )
a848cd7e
SC
14634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14637echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14641echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14646 (
14647 cat <<\_ASBOX
ac1cb8d3
VS
14648## ----------------------------------------- ##
14649## Report this to wx-dev@lists.wxwidgets.org ##
14650## ----------------------------------------- ##
a848cd7e
SC
14651_ASBOX
14652 ) |
14653 sed "s/^/$as_me: WARNING: /" >&2
14654 ;;
14655esac
14656echo "$as_me:$LINENO: checking for $ac_header" >&5
14657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14658if eval "test \"\${$as_ac_Header+set}\" = set"; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14660else
ac1cb8d3 14661 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14662fi
14663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14665
14666fi
14667if test `eval echo '${'$as_ac_Header'}'` = yes; then
14668 cat >>confdefs.h <<_ACEOF
14669#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14670_ACEOF
14671
14672fi
14673
14674done
14675
14676fi
14677
14678
14679for ac_header in fnmatch.h
14680do
14681as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14682if eval "test \"\${$as_ac_Header+set}\" = set"; then
14683 echo "$as_me:$LINENO: checking for $ac_header" >&5
14684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14685if eval "test \"\${$as_ac_Header+set}\" = set"; then
14686 echo $ECHO_N "(cached) $ECHO_C" >&6
14687fi
14688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14689echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14690else
14691 # Is the header compilable?
14692echo "$as_me:$LINENO: checking $ac_header usability" >&5
14693echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14694cat >conftest.$ac_ext <<_ACEOF
14695/* confdefs.h. */
14696_ACEOF
14697cat confdefs.h >>conftest.$ac_ext
14698cat >>conftest.$ac_ext <<_ACEOF
14699/* end confdefs.h. */
14700$ac_includes_default
14701#include <$ac_header>
14702_ACEOF
14703rm -f conftest.$ac_objext
14704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14705 (eval $ac_compile) 2>conftest.er1
a848cd7e 14706 ac_status=$?
ac1cb8d3
VS
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
a848cd7e
SC
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } &&
9dd0f6c2 14712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; } &&
14718 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
14724 ac_header_compiler=yes
14725else
14726 echo "$as_me: failed program was:" >&5
14727sed 's/^/| /' conftest.$ac_ext >&5
14728
14729ac_header_compiler=no
14730fi
ac1cb8d3 14731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14732echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14733echo "${ECHO_T}$ac_header_compiler" >&6
14734
14735# Is the header present?
14736echo "$as_me:$LINENO: checking $ac_header presence" >&5
14737echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14738cat >conftest.$ac_ext <<_ACEOF
14739/* confdefs.h. */
14740_ACEOF
14741cat confdefs.h >>conftest.$ac_ext
14742cat >>conftest.$ac_ext <<_ACEOF
14743/* end confdefs.h. */
14744#include <$ac_header>
14745_ACEOF
14746if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14748 ac_status=$?
14749 grep -v '^ *+' conftest.er1 >conftest.err
14750 rm -f conftest.er1
14751 cat conftest.err >&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); } >/dev/null; then
14754 if test -s conftest.err; then
14755 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14757 else
14758 ac_cpp_err=
14759 fi
14760else
14761 ac_cpp_err=yes
14762fi
14763if test -z "$ac_cpp_err"; then
14764 ac_header_preproc=yes
14765else
14766 echo "$as_me: failed program was:" >&5
14767sed 's/^/| /' conftest.$ac_ext >&5
14768
14769 ac_header_preproc=no
14770fi
14771rm -f conftest.err conftest.$ac_ext
14772echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14773echo "${ECHO_T}$ac_header_preproc" >&6
14774
14775# So? What about this header?
ac1cb8d3
VS
14776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14777 yes:no: )
a848cd7e
SC
14778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14779echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14781echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14782 ac_header_preproc=yes
a848cd7e 14783 ;;
ac1cb8d3 14784 no:yes:* )
a848cd7e
SC
14785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14786echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14788echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14789 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14790echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14791 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14792echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14794echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14796echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14797 (
14798 cat <<\_ASBOX
ac1cb8d3
VS
14799## ----------------------------------------- ##
14800## Report this to wx-dev@lists.wxwidgets.org ##
14801## ----------------------------------------- ##
a848cd7e
SC
14802_ASBOX
14803 ) |
14804 sed "s/^/$as_me: WARNING: /" >&2
14805 ;;
14806esac
14807echo "$as_me:$LINENO: checking for $ac_header" >&5
14808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14809if eval "test \"\${$as_ac_Header+set}\" = set"; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14811else
ac1cb8d3 14812 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14813fi
14814echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14815echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14816
14817fi
14818if test `eval echo '${'$as_ac_Header'}'` = yes; then
14819 cat >>confdefs.h <<_ACEOF
14820#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14821_ACEOF
14822
14823fi
14824
14825done
14826
14827
14828if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14829
14830for ac_func in fnmatch
14831do
14832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14833echo "$as_me:$LINENO: checking for $ac_func" >&5
14834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14835if eval "test \"\${$as_ac_var+set}\" = set"; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14837else
14838 cat >conftest.$ac_ext <<_ACEOF
14839/* confdefs.h. */
14840_ACEOF
14841cat confdefs.h >>conftest.$ac_ext
14842cat >>conftest.$ac_ext <<_ACEOF
14843/* end confdefs.h. */
ac1cb8d3
VS
14844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14846#define $ac_func innocuous_$ac_func
14847
a848cd7e
SC
14848/* System header to define __stub macros and hopefully few prototypes,
14849 which can conflict with char $ac_func (); below.
14850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14851 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14852
a848cd7e
SC
14853#ifdef __STDC__
14854# include <limits.h>
14855#else
14856# include <assert.h>
14857#endif
ac1cb8d3
VS
14858
14859#undef $ac_func
14860
a848cd7e
SC
14861/* Override any gcc2 internal prototype to avoid an error. */
14862#ifdef __cplusplus
14863extern "C"
14864{
14865#endif
14866/* We use char because int might match the return type of a gcc2
14867 builtin and then its argument prototype would still apply. */
14868char $ac_func ();
14869/* The GNU C library defines this for functions which it implements
14870 to always fail with ENOSYS. Some functions are actually named
14871 something starting with __ and the normal name is an alias. */
14872#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14873choke me
14874#else
14875char (*f) () = $ac_func;
14876#endif
14877#ifdef __cplusplus
14878}
14879#endif
14880
14881int
14882main ()
14883{
14884return f != $ac_func;
14885 ;
14886 return 0;
14887}
14888_ACEOF
14889rm -f conftest.$ac_objext conftest$ac_exeext
14890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14891 (eval $ac_link) 2>conftest.er1
a848cd7e 14892 ac_status=$?
ac1cb8d3
VS
14893 grep -v '^ *+' conftest.er1 >conftest.err
14894 rm -f conftest.er1
14895 cat conftest.err >&5
a848cd7e
SC
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } &&
9dd0f6c2 14898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14900 (eval $ac_try) 2>&5
14901 ac_status=$?
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; } &&
14904 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906 (eval $ac_try) 2>&5
14907 ac_status=$?
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; }; then
14910 eval "$as_ac_var=yes"
14911else
14912 echo "$as_me: failed program was:" >&5
14913sed 's/^/| /' conftest.$ac_ext >&5
14914
14915eval "$as_ac_var=no"
14916fi
ac1cb8d3
VS
14917rm -f conftest.err conftest.$ac_objext \
14918 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14919fi
14920echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14921echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14922if test `eval echo '${'$as_ac_var'}'` = yes; then
14923 cat >>confdefs.h <<_ACEOF
14924#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14925_ACEOF
14926
14927fi
14928done
14929
14930fi
14931
14932
14933for ac_header in langinfo.h
14934do
14935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14936if eval "test \"\${$as_ac_Header+set}\" = set"; then
14937 echo "$as_me:$LINENO: checking for $ac_header" >&5
14938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14939if eval "test \"\${$as_ac_Header+set}\" = set"; then
14940 echo $ECHO_N "(cached) $ECHO_C" >&6
14941fi
14942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14944else
14945 # Is the header compilable?
14946echo "$as_me:$LINENO: checking $ac_header usability" >&5
14947echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14948cat >conftest.$ac_ext <<_ACEOF
14949/* confdefs.h. */
14950_ACEOF
14951cat confdefs.h >>conftest.$ac_ext
14952cat >>conftest.$ac_ext <<_ACEOF
14953/* end confdefs.h. */
14954$ac_includes_default
14955#include <$ac_header>
14956_ACEOF
14957rm -f conftest.$ac_objext
14958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14959 (eval $ac_compile) 2>conftest.er1
a848cd7e 14960 ac_status=$?
ac1cb8d3
VS
14961 grep -v '^ *+' conftest.er1 >conftest.err
14962 rm -f conftest.er1
14963 cat conftest.err >&5
a848cd7e
SC
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); } &&
9dd0f6c2 14966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968 (eval $ac_try) 2>&5
14969 ac_status=$?
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; } &&
14972 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14975 ac_status=$?
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; }; then
14978 ac_header_compiler=yes
14979else
14980 echo "$as_me: failed program was:" >&5
14981sed 's/^/| /' conftest.$ac_ext >&5
14982
14983ac_header_compiler=no
14984fi
ac1cb8d3 14985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14986echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14987echo "${ECHO_T}$ac_header_compiler" >&6
14988
14989# Is the header present?
14990echo "$as_me:$LINENO: checking $ac_header presence" >&5
14991echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14992cat >conftest.$ac_ext <<_ACEOF
14993/* confdefs.h. */
14994_ACEOF
14995cat confdefs.h >>conftest.$ac_ext
14996cat >>conftest.$ac_ext <<_ACEOF
14997/* end confdefs.h. */
14998#include <$ac_header>
14999_ACEOF
15000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15002 ac_status=$?
15003 grep -v '^ *+' conftest.er1 >conftest.err
15004 rm -f conftest.er1
15005 cat conftest.err >&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } >/dev/null; then
15008 if test -s conftest.err; then
15009 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15011 else
15012 ac_cpp_err=
15013 fi
15014else
15015 ac_cpp_err=yes
15016fi
15017if test -z "$ac_cpp_err"; then
15018 ac_header_preproc=yes
15019else
15020 echo "$as_me: failed program was:" >&5
15021sed 's/^/| /' conftest.$ac_ext >&5
15022
15023 ac_header_preproc=no
15024fi
15025rm -f conftest.err conftest.$ac_ext
15026echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15027echo "${ECHO_T}$ac_header_preproc" >&6
15028
15029# So? What about this header?
ac1cb8d3
VS
15030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15031 yes:no: )
a848cd7e
SC
15032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15036 ac_header_preproc=yes
a848cd7e 15037 ;;
ac1cb8d3 15038 no:yes:* )
a848cd7e
SC
15039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15046echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15051 (
15052 cat <<\_ASBOX
ac1cb8d3
VS
15053## ----------------------------------------- ##
15054## Report this to wx-dev@lists.wxwidgets.org ##
15055## ----------------------------------------- ##
a848cd7e
SC
15056_ASBOX
15057 ) |
15058 sed "s/^/$as_me: WARNING: /" >&2
15059 ;;
15060esac
15061echo "$as_me:$LINENO: checking for $ac_header" >&5
15062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15063if eval "test \"\${$as_ac_Header+set}\" = set"; then
15064 echo $ECHO_N "(cached) $ECHO_C" >&6
15065else
ac1cb8d3 15066 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15067fi
15068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15070
15071fi
15072if test `eval echo '${'$as_ac_Header'}'` = yes; then
15073 cat >>confdefs.h <<_ACEOF
15074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15075_ACEOF
15076
15077fi
15078
15079done
15080
15081
15082case "${host}" in
15083 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15084 if test $ac_cv_header_langinfo_h = "yes" \
15085 -a \( "$wx_cv_gccversion" = "EMX2" \
15086 -o "$wx_cv_gccversion" = "EMX3" \
15087 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15088 LIBS="$LIBS -lintl"
15089 fi
15090 ;;
15091esac
15092
15093if test "$wxUSE_GUI" = "yes"; then
15094 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15095
15096for ac_header in X11/Xlib.h
15097do
15098as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15099if eval "test \"\${$as_ac_Header+set}\" = set"; then
15100 echo "$as_me:$LINENO: checking for $ac_header" >&5
15101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15102if eval "test \"\${$as_ac_Header+set}\" = set"; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15104fi
15105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15106echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15107else
15108 # Is the header compilable?
15109echo "$as_me:$LINENO: checking $ac_header usability" >&5
15110echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15111cat >conftest.$ac_ext <<_ACEOF
15112/* confdefs.h. */
15113_ACEOF
15114cat confdefs.h >>conftest.$ac_ext
15115cat >>conftest.$ac_ext <<_ACEOF
15116/* end confdefs.h. */
15117$ac_includes_default
15118#include <$ac_header>
15119_ACEOF
15120rm -f conftest.$ac_objext
15121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15122 (eval $ac_compile) 2>conftest.er1
a848cd7e 15123 ac_status=$?
ac1cb8d3
VS
15124 grep -v '^ *+' conftest.er1 >conftest.err
15125 rm -f conftest.er1
15126 cat conftest.err >&5
a848cd7e
SC
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } &&
9dd0f6c2 15129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131 (eval $ac_try) 2>&5
15132 ac_status=$?
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; } &&
15135 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137 (eval $ac_try) 2>&5
15138 ac_status=$?
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; }; then
15141 ac_header_compiler=yes
15142else
15143 echo "$as_me: failed program was:" >&5
15144sed 's/^/| /' conftest.$ac_ext >&5
15145
15146ac_header_compiler=no
15147fi
ac1cb8d3 15148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15149echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15150echo "${ECHO_T}$ac_header_compiler" >&6
15151
15152# Is the header present?
15153echo "$as_me:$LINENO: checking $ac_header presence" >&5
15154echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15155cat >conftest.$ac_ext <<_ACEOF
15156/* confdefs.h. */
15157_ACEOF
15158cat confdefs.h >>conftest.$ac_ext
15159cat >>conftest.$ac_ext <<_ACEOF
15160/* end confdefs.h. */
15161#include <$ac_header>
15162_ACEOF
15163if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15165 ac_status=$?
15166 grep -v '^ *+' conftest.er1 >conftest.err
15167 rm -f conftest.er1
15168 cat conftest.err >&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } >/dev/null; then
15171 if test -s conftest.err; then
15172 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15174 else
15175 ac_cpp_err=
15176 fi
15177else
15178 ac_cpp_err=yes
15179fi
15180if test -z "$ac_cpp_err"; then
15181 ac_header_preproc=yes
15182else
15183 echo "$as_me: failed program was:" >&5
15184sed 's/^/| /' conftest.$ac_ext >&5
15185
15186 ac_header_preproc=no
15187fi
15188rm -f conftest.err conftest.$ac_ext
15189echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15190echo "${ECHO_T}$ac_header_preproc" >&6
15191
15192# So? What about this header?
ac1cb8d3
VS
15193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15194 yes:no: )
a848cd7e
SC
15195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15196echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15198echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15199 ac_header_preproc=yes
a848cd7e 15200 ;;
ac1cb8d3 15201 no:yes:* )
a848cd7e
SC
15202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15203echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15205echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15207echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15209echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15211echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15213echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15214 (
15215 cat <<\_ASBOX
ac1cb8d3
VS
15216## ----------------------------------------- ##
15217## Report this to wx-dev@lists.wxwidgets.org ##
15218## ----------------------------------------- ##
a848cd7e
SC
15219_ASBOX
15220 ) |
15221 sed "s/^/$as_me: WARNING: /" >&2
15222 ;;
15223esac
15224echo "$as_me:$LINENO: checking for $ac_header" >&5
15225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15226if eval "test \"\${$as_ac_Header+set}\" = set"; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15228else
ac1cb8d3 15229 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15230fi
15231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15233
15234fi
15235if test `eval echo '${'$as_ac_Header'}'` = yes; then
15236 cat >>confdefs.h <<_ACEOF
15237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15238_ACEOF
15239
15240fi
15241
15242done
15243
15244
15245for ac_header in X11/XKBlib.h
15246do
15247as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15248echo "$as_me:$LINENO: checking for $ac_header" >&5
15249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15250if eval "test \"\${$as_ac_Header+set}\" = set"; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
15252else
15253 cat >conftest.$ac_ext <<_ACEOF
15254/* confdefs.h. */
15255_ACEOF
15256cat confdefs.h >>conftest.$ac_ext
15257cat >>conftest.$ac_ext <<_ACEOF
15258/* end confdefs.h. */
15259
15260 #if HAVE_X11_XLIB_H
15261 #include <X11/Xlib.h>
15262 #endif
15263
15264
15265#include <$ac_header>
15266_ACEOF
15267rm -f conftest.$ac_objext
15268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15269 (eval $ac_compile) 2>conftest.er1
a848cd7e 15270 ac_status=$?
ac1cb8d3
VS
15271 grep -v '^ *+' conftest.er1 >conftest.err
15272 rm -f conftest.er1
15273 cat conftest.err >&5
a848cd7e
SC
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } &&
9dd0f6c2 15276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; } &&
15282 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284 (eval $ac_try) 2>&5
15285 ac_status=$?
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; }; then
15288 eval "$as_ac_Header=yes"
15289else
15290 echo "$as_me: failed program was:" >&5
15291sed 's/^/| /' conftest.$ac_ext >&5
15292
15293eval "$as_ac_Header=no"
15294fi
ac1cb8d3 15295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15296fi
15297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15298echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15299if test `eval echo '${'$as_ac_Header'}'` = yes; then
15300 cat >>confdefs.h <<_ACEOF
15301#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15302_ACEOF
15303
15304fi
15305
15306done
15307
15308 fi
15309fi
15310
15311
15312echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15313echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15314if test "${ac_cv_c_const+set}" = set; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15316else
15317 cat >conftest.$ac_ext <<_ACEOF
15318/* confdefs.h. */
15319_ACEOF
15320cat confdefs.h >>conftest.$ac_ext
15321cat >>conftest.$ac_ext <<_ACEOF
15322/* end confdefs.h. */
15323
15324int
15325main ()
15326{
15327/* FIXME: Include the comments suggested by Paul. */
15328#ifndef __cplusplus
15329 /* Ultrix mips cc rejects this. */
15330 typedef int charset[2];
15331 const charset x;
15332 /* SunOS 4.1.1 cc rejects this. */
15333 char const *const *ccp;
15334 char **p;
15335 /* NEC SVR4.0.2 mips cc rejects this. */
15336 struct point {int x, y;};
15337 static struct point const zero = {0,0};
15338 /* AIX XL C 1.02.0.0 rejects this.
15339 It does not let you subtract one const X* pointer from another in
15340 an arm of an if-expression whose if-part is not a constant
15341 expression */
15342 const char *g = "string";
15343 ccp = &g + (g ? g-g : 0);
15344 /* HPUX 7.0 cc rejects these. */
15345 ++ccp;
15346 p = (char**) ccp;
15347 ccp = (char const *const *) p;
15348 { /* SCO 3.2v4 cc rejects this. */
15349 char *t;
15350 char const *s = 0 ? (char *) 0 : (char const *) 0;
15351
15352 *t++ = 0;
15353 }
15354 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15355 int x[] = {25, 17};
15356 const int *foo = &x[0];
15357 ++foo;
15358 }
15359 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15360 typedef const int *iptr;
15361 iptr p = 0;
15362 ++p;
15363 }
15364 { /* AIX XL C 1.02.0.0 rejects this saying
15365 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15366 struct s { int j; const int *ap[3]; };
15367 struct s *b; b->j = 5;
15368 }
15369 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15370 const int foo = 10;
15371 }
15372#endif
15373
15374 ;
15375 return 0;
15376}
15377_ACEOF
15378rm -f conftest.$ac_objext
15379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15380 (eval $ac_compile) 2>conftest.er1
a848cd7e 15381 ac_status=$?
ac1cb8d3
VS
15382 grep -v '^ *+' conftest.er1 >conftest.err
15383 rm -f conftest.er1
15384 cat conftest.err >&5
a848cd7e
SC
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } &&
9dd0f6c2 15387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389 (eval $ac_try) 2>&5
15390 ac_status=$?
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; } &&
15393 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395 (eval $ac_try) 2>&5
15396 ac_status=$?
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; }; then
15399 ac_cv_c_const=yes
15400else
15401 echo "$as_me: failed program was:" >&5
15402sed 's/^/| /' conftest.$ac_ext >&5
15403
15404ac_cv_c_const=no
15405fi
ac1cb8d3 15406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15407fi
15408echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15409echo "${ECHO_T}$ac_cv_c_const" >&6
15410if test $ac_cv_c_const = no; then
15411
15412cat >>confdefs.h <<\_ACEOF
15413#define const
15414_ACEOF
15415
15416fi
15417
15418echo "$as_me:$LINENO: checking for inline" >&5
15419echo $ECHO_N "checking for inline... $ECHO_C" >&6
15420if test "${ac_cv_c_inline+set}" = set; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15422else
15423 ac_cv_c_inline=no
15424for ac_kw in inline __inline__ __inline; do
15425 cat >conftest.$ac_ext <<_ACEOF
15426/* confdefs.h. */
15427_ACEOF
15428cat confdefs.h >>conftest.$ac_ext
15429cat >>conftest.$ac_ext <<_ACEOF
15430/* end confdefs.h. */
15431#ifndef __cplusplus
15432typedef int foo_t;
15433static $ac_kw foo_t static_foo () {return 0; }
15434$ac_kw foo_t foo () {return 0; }
15435#endif
15436
15437_ACEOF
15438rm -f conftest.$ac_objext
15439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15440 (eval $ac_compile) 2>conftest.er1
a848cd7e 15441 ac_status=$?
ac1cb8d3
VS
15442 grep -v '^ *+' conftest.er1 >conftest.err
15443 rm -f conftest.er1
15444 cat conftest.err >&5
a848cd7e
SC
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } &&
9dd0f6c2 15447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449 (eval $ac_try) 2>&5
15450 ac_status=$?
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }; } &&
15453 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15455 (eval $ac_try) 2>&5
15456 ac_status=$?
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; }; then
15459 ac_cv_c_inline=$ac_kw; break
15460else
15461 echo "$as_me: failed program was:" >&5
15462sed 's/^/| /' conftest.$ac_ext >&5
15463
15464fi
ac1cb8d3 15465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15466done
15467
15468fi
15469echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15470echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15471
15472
a848cd7e
SC
15473case $ac_cv_c_inline in
15474 inline | yes) ;;
ac1cb8d3
VS
15475 *)
15476 case $ac_cv_c_inline in
15477 no) ac_val=;;
15478 *) ac_val=$ac_cv_c_inline;;
15479 esac
15480 cat >>confdefs.h <<_ACEOF
15481#ifndef __cplusplus
15482#define inline $ac_val
15483#endif
de59c161 15484_ACEOF
ac1cb8d3 15485 ;;
a848cd7e
SC
15486esac
15487
15488
15489echo "$as_me:$LINENO: checking for char" >&5
15490echo $ECHO_N "checking for char... $ECHO_C" >&6
15491if test "${ac_cv_type_char+set}" = set; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15493else
15494 cat >conftest.$ac_ext <<_ACEOF
15495/* confdefs.h. */
15496_ACEOF
15497cat confdefs.h >>conftest.$ac_ext
15498cat >>conftest.$ac_ext <<_ACEOF
15499/* end confdefs.h. */
15500$ac_includes_default
15501int
15502main ()
15503{
15504if ((char *) 0)
15505 return 0;
15506if (sizeof (char))
15507 return 0;
15508 ;
15509 return 0;
15510}
15511_ACEOF
15512rm -f conftest.$ac_objext
15513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15514 (eval $ac_compile) 2>conftest.er1
a848cd7e 15515 ac_status=$?
ac1cb8d3
VS
15516 grep -v '^ *+' conftest.er1 >conftest.err
15517 rm -f conftest.er1
15518 cat conftest.err >&5
a848cd7e
SC
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); } &&
9dd0f6c2 15521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15524 ac_status=$?
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; } &&
15527 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529 (eval $ac_try) 2>&5
15530 ac_status=$?
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; }; then
15533 ac_cv_type_char=yes
15534else
15535 echo "$as_me: failed program was:" >&5
15536sed 's/^/| /' conftest.$ac_ext >&5
15537
15538ac_cv_type_char=no
15539fi
ac1cb8d3 15540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15541fi
15542echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15543echo "${ECHO_T}$ac_cv_type_char" >&6
15544
15545echo "$as_me:$LINENO: checking size of char" >&5
15546echo $ECHO_N "checking size of char... $ECHO_C" >&6
15547if test "${ac_cv_sizeof_char+set}" = set; then
15548 echo $ECHO_N "(cached) $ECHO_C" >&6
15549else
15550 if test "$ac_cv_type_char" = yes; then
15551 # The cast to unsigned long works around a bug in the HP C Compiler
15552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15554 # This bug is HP SR number 8606223364.
15555 if test "$cross_compiling" = yes; then
15556 # Depending upon the size, compute the lo and hi bounds.
15557cat >conftest.$ac_ext <<_ACEOF
15558/* confdefs.h. */
15559_ACEOF
15560cat confdefs.h >>conftest.$ac_ext
15561cat >>conftest.$ac_ext <<_ACEOF
15562/* end confdefs.h. */
15563$ac_includes_default
15564int
15565main ()
15566{
15567static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15568test_array [0] = 0
15569
15570 ;
15571 return 0;
15572}
15573_ACEOF
15574rm -f conftest.$ac_objext
15575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15576 (eval $ac_compile) 2>conftest.er1
a848cd7e 15577 ac_status=$?
ac1cb8d3
VS
15578 grep -v '^ *+' conftest.er1 >conftest.err
15579 rm -f conftest.er1
15580 cat conftest.err >&5
a848cd7e
SC
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } &&
9dd0f6c2 15583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; } &&
15589 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_lo=0 ac_mid=0
15596 while :; do
15597 cat >conftest.$ac_ext <<_ACEOF
15598/* confdefs.h. */
15599_ACEOF
15600cat confdefs.h >>conftest.$ac_ext
15601cat >>conftest.$ac_ext <<_ACEOF
15602/* end confdefs.h. */
15603$ac_includes_default
15604int
15605main ()
15606{
15607static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15608test_array [0] = 0
15609
15610 ;
15611 return 0;
15612}
15613_ACEOF
15614rm -f conftest.$ac_objext
15615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15616 (eval $ac_compile) 2>conftest.er1
a848cd7e 15617 ac_status=$?
ac1cb8d3
VS
15618 grep -v '^ *+' conftest.er1 >conftest.err
15619 rm -f conftest.er1
15620 cat conftest.err >&5
a848cd7e
SC
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } &&
9dd0f6c2 15623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15626 ac_status=$?
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; } &&
15629 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631 (eval $ac_try) 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; }; then
15635 ac_hi=$ac_mid; break
15636else
15637 echo "$as_me: failed program was:" >&5
15638sed 's/^/| /' conftest.$ac_ext >&5
15639
15640ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15641 if test $ac_lo -le $ac_mid; then
15642 ac_lo= ac_hi=
15643 break
15644 fi
15645 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15646fi
ac1cb8d3 15647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15648 done
15649else
15650 echo "$as_me: failed program was:" >&5
15651sed 's/^/| /' conftest.$ac_ext >&5
15652
15653cat >conftest.$ac_ext <<_ACEOF
15654/* confdefs.h. */
15655_ACEOF
15656cat confdefs.h >>conftest.$ac_ext
15657cat >>conftest.$ac_ext <<_ACEOF
15658/* end confdefs.h. */
15659$ac_includes_default
15660int
15661main ()
15662{
15663static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15664test_array [0] = 0
15665
15666 ;
15667 return 0;
15668}
15669_ACEOF
15670rm -f conftest.$ac_objext
15671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15672 (eval $ac_compile) 2>conftest.er1
a848cd7e 15673 ac_status=$?
ac1cb8d3
VS
15674 grep -v '^ *+' conftest.er1 >conftest.err
15675 rm -f conftest.er1
15676 cat conftest.err >&5
a848cd7e
SC
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } &&
9dd0f6c2 15679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; } &&
15685 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; }; then
15691 ac_hi=-1 ac_mid=-1
15692 while :; do
15693 cat >conftest.$ac_ext <<_ACEOF
15694/* confdefs.h. */
15695_ACEOF
15696cat confdefs.h >>conftest.$ac_ext
15697cat >>conftest.$ac_ext <<_ACEOF
15698/* end confdefs.h. */
15699$ac_includes_default
15700int
15701main ()
15702{
15703static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15704test_array [0] = 0
15705
15706 ;
15707 return 0;
15708}
15709_ACEOF
15710rm -f conftest.$ac_objext
15711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15712 (eval $ac_compile) 2>conftest.er1
a848cd7e 15713 ac_status=$?
ac1cb8d3
VS
15714 grep -v '^ *+' conftest.er1 >conftest.err
15715 rm -f conftest.er1
15716 cat conftest.err >&5
a848cd7e
SC
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); } &&
9dd0f6c2 15719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15722 ac_status=$?
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; } &&
15725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15728 ac_status=$?
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; }; then
15731 ac_lo=$ac_mid; break
15732else
15733 echo "$as_me: failed program was:" >&5
15734sed 's/^/| /' conftest.$ac_ext >&5
15735
15736ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15737 if test $ac_mid -le $ac_hi; then
15738 ac_lo= ac_hi=
15739 break
15740 fi
15741 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15742fi
ac1cb8d3 15743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15744 done
15745else
15746 echo "$as_me: failed program was:" >&5
15747sed 's/^/| /' conftest.$ac_ext >&5
15748
15749ac_lo= ac_hi=
15750fi
ac1cb8d3 15751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15752fi
ac1cb8d3 15753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15754# Binary search between lo and hi bounds.
15755while test "x$ac_lo" != "x$ac_hi"; do
15756 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15757 cat >conftest.$ac_ext <<_ACEOF
15758/* confdefs.h. */
15759_ACEOF
15760cat confdefs.h >>conftest.$ac_ext
15761cat >>conftest.$ac_ext <<_ACEOF
15762/* end confdefs.h. */
15763$ac_includes_default
15764int
15765main ()
15766{
15767static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15768test_array [0] = 0
15769
15770 ;
15771 return 0;
15772}
15773_ACEOF
15774rm -f conftest.$ac_objext
15775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15776 (eval $ac_compile) 2>conftest.er1
a848cd7e 15777 ac_status=$?
ac1cb8d3
VS
15778 grep -v '^ *+' conftest.er1 >conftest.err
15779 rm -f conftest.er1
15780 cat conftest.err >&5
a848cd7e
SC
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } &&
9dd0f6c2 15783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; } &&
15789 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15792 ac_status=$?
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 ac_hi=$ac_mid
15796else
15797 echo "$as_me: failed program was:" >&5
15798sed 's/^/| /' conftest.$ac_ext >&5
15799
15800ac_lo=`expr '(' $ac_mid ')' + 1`
15801fi
ac1cb8d3 15802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15803done
15804case $ac_lo in
15805?*) ac_cv_sizeof_char=$ac_lo;;
15806'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15807See \`config.log' for more details." >&5
15808echo "$as_me: error: cannot compute sizeof (char), 77
15809See \`config.log' for more details." >&2;}
15810 { (exit 1); exit 1; }; } ;;
15811esac
15812else
15813 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
15814 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15815echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15816 { (exit 1); exit 1; }; }
15817else
15818 cat >conftest.$ac_ext <<_ACEOF
15819/* confdefs.h. */
15820_ACEOF
15821cat confdefs.h >>conftest.$ac_ext
15822cat >>conftest.$ac_ext <<_ACEOF
15823/* end confdefs.h. */
15824$ac_includes_default
15825long longval () { return (long) (sizeof (char)); }
15826unsigned long ulongval () { return (long) (sizeof (char)); }
15827#include <stdio.h>
15828#include <stdlib.h>
15829int
15830main ()
15831{
15832
15833 FILE *f = fopen ("conftest.val", "w");
15834 if (! f)
15835 exit (1);
15836 if (((long) (sizeof (char))) < 0)
15837 {
15838 long i = longval ();
15839 if (i != ((long) (sizeof (char))))
15840 exit (1);
15841 fprintf (f, "%ld\n", i);
15842 }
15843 else
15844 {
15845 unsigned long i = ulongval ();
15846 if (i != ((long) (sizeof (char))))
15847 exit (1);
15848 fprintf (f, "%lu\n", i);
15849 }
15850 exit (ferror (f) || fclose (f) != 0);
15851
15852 ;
15853 return 0;
15854}
15855_ACEOF
15856rm -f conftest$ac_exeext
15857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15858 (eval $ac_link) 2>&5
15859 ac_status=$?
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863 (eval $ac_try) 2>&5
15864 ac_status=$?
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; }; then
15867 ac_cv_sizeof_char=`cat conftest.val`
15868else
15869 echo "$as_me: program exited with status $ac_status" >&5
15870echo "$as_me: failed program was:" >&5
15871sed 's/^/| /' conftest.$ac_ext >&5
15872
15873( exit $ac_status )
15874{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15875See \`config.log' for more details." >&5
15876echo "$as_me: error: cannot compute sizeof (char), 77
15877See \`config.log' for more details." >&2;}
15878 { (exit 1); exit 1; }; }
15879fi
ac1cb8d3 15880rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15881fi
15882fi
15883rm -f conftest.val
15884else
15885 ac_cv_sizeof_char=0
15886fi
15887fi
15888echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15889echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15890cat >>confdefs.h <<_ACEOF
15891#define SIZEOF_CHAR $ac_cv_sizeof_char
15892_ACEOF
15893
15894
15895echo "$as_me:$LINENO: checking for short" >&5
15896echo $ECHO_N "checking for short... $ECHO_C" >&6
15897if test "${ac_cv_type_short+set}" = set; then
15898 echo $ECHO_N "(cached) $ECHO_C" >&6
15899else
15900 cat >conftest.$ac_ext <<_ACEOF
15901/* confdefs.h. */
15902_ACEOF
15903cat confdefs.h >>conftest.$ac_ext
15904cat >>conftest.$ac_ext <<_ACEOF
15905/* end confdefs.h. */
15906$ac_includes_default
15907int
15908main ()
15909{
15910if ((short *) 0)
15911 return 0;
15912if (sizeof (short))
15913 return 0;
15914 ;
15915 return 0;
15916}
15917_ACEOF
15918rm -f conftest.$ac_objext
15919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15920 (eval $ac_compile) 2>conftest.er1
a848cd7e 15921 ac_status=$?
ac1cb8d3
VS
15922 grep -v '^ *+' conftest.er1 >conftest.err
15923 rm -f conftest.er1
15924 cat conftest.err >&5
a848cd7e
SC
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } &&
9dd0f6c2 15927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; } &&
15933 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15936 ac_status=$?
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; }; then
15939 ac_cv_type_short=yes
15940else
15941 echo "$as_me: failed program was:" >&5
15942sed 's/^/| /' conftest.$ac_ext >&5
15943
15944ac_cv_type_short=no
15945fi
ac1cb8d3 15946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15947fi
15948echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15949echo "${ECHO_T}$ac_cv_type_short" >&6
15950
15951echo "$as_me:$LINENO: checking size of short" >&5
15952echo $ECHO_N "checking size of short... $ECHO_C" >&6
15953if test "${ac_cv_sizeof_short+set}" = set; then
15954 echo $ECHO_N "(cached) $ECHO_C" >&6
15955else
15956 if test "$ac_cv_type_short" = yes; then
15957 # The cast to unsigned long works around a bug in the HP C Compiler
15958 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15959 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15960 # This bug is HP SR number 8606223364.
15961 if test "$cross_compiling" = yes; then
15962 # Depending upon the size, compute the lo and hi bounds.
15963cat >conftest.$ac_ext <<_ACEOF
15964/* confdefs.h. */
15965_ACEOF
15966cat confdefs.h >>conftest.$ac_ext
15967cat >>conftest.$ac_ext <<_ACEOF
15968/* end confdefs.h. */
15969$ac_includes_default
15970int
15971main ()
15972{
15973static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15974test_array [0] = 0
15975
15976 ;
15977 return 0;
15978}
15979_ACEOF
15980rm -f conftest.$ac_objext
15981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15982 (eval $ac_compile) 2>conftest.er1
a848cd7e 15983 ac_status=$?
ac1cb8d3
VS
15984 grep -v '^ *+' conftest.er1 >conftest.err
15985 rm -f conftest.er1
15986 cat conftest.err >&5
a848cd7e
SC
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } &&
9dd0f6c2 15989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; } &&
15995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15998 ac_status=$?
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }; then
16001 ac_lo=0 ac_mid=0
16002 while :; do
16003 cat >conftest.$ac_ext <<_ACEOF
16004/* confdefs.h. */
16005_ACEOF
16006cat confdefs.h >>conftest.$ac_ext
16007cat >>conftest.$ac_ext <<_ACEOF
16008/* end confdefs.h. */
16009$ac_includes_default
16010int
16011main ()
16012{
16013static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16014test_array [0] = 0
16015
16016 ;
16017 return 0;
16018}
16019_ACEOF
16020rm -f conftest.$ac_objext
16021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16022 (eval $ac_compile) 2>conftest.er1
a848cd7e 16023 ac_status=$?
ac1cb8d3
VS
16024 grep -v '^ *+' conftest.er1 >conftest.err
16025 rm -f conftest.er1
16026 cat conftest.err >&5
a848cd7e
SC
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } &&
9dd0f6c2 16029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031 (eval $ac_try) 2>&5
16032 ac_status=$?
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; } &&
16035 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16038 ac_status=$?
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; }; then
16041 ac_hi=$ac_mid; break
16042else
16043 echo "$as_me: failed program was:" >&5
16044sed 's/^/| /' conftest.$ac_ext >&5
16045
16046ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16047 if test $ac_lo -le $ac_mid; then
16048 ac_lo= ac_hi=
16049 break
16050 fi
16051 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16052fi
ac1cb8d3 16053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16054 done
16055else
16056 echo "$as_me: failed program was:" >&5
16057sed 's/^/| /' conftest.$ac_ext >&5
16058
16059cat >conftest.$ac_ext <<_ACEOF
16060/* confdefs.h. */
16061_ACEOF
16062cat confdefs.h >>conftest.$ac_ext
16063cat >>conftest.$ac_ext <<_ACEOF
16064/* end confdefs.h. */
16065$ac_includes_default
16066int
16067main ()
16068{
16069static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16070test_array [0] = 0
16071
16072 ;
16073 return 0;
16074}
16075_ACEOF
16076rm -f conftest.$ac_objext
16077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16078 (eval $ac_compile) 2>conftest.er1
a848cd7e 16079 ac_status=$?
ac1cb8d3
VS
16080 grep -v '^ *+' conftest.er1 >conftest.err
16081 rm -f conftest.er1
16082 cat conftest.err >&5
a848cd7e
SC
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } &&
9dd0f6c2 16085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16087 (eval $ac_try) 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; } &&
16091 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; }; then
16097 ac_hi=-1 ac_mid=-1
16098 while :; do
16099 cat >conftest.$ac_ext <<_ACEOF
16100/* confdefs.h. */
16101_ACEOF
16102cat confdefs.h >>conftest.$ac_ext
16103cat >>conftest.$ac_ext <<_ACEOF
16104/* end confdefs.h. */
16105$ac_includes_default
16106int
16107main ()
16108{
16109static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16110test_array [0] = 0
16111
16112 ;
16113 return 0;
16114}
16115_ACEOF
16116rm -f conftest.$ac_objext
16117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16118 (eval $ac_compile) 2>conftest.er1
a848cd7e 16119 ac_status=$?
ac1cb8d3
VS
16120 grep -v '^ *+' conftest.er1 >conftest.err
16121 rm -f conftest.er1
16122 cat conftest.err >&5
a848cd7e
SC
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } &&
9dd0f6c2 16125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16134 ac_status=$?
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; }; then
16137 ac_lo=$ac_mid; break
16138else
16139 echo "$as_me: failed program was:" >&5
16140sed 's/^/| /' conftest.$ac_ext >&5
16141
16142ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16143 if test $ac_mid -le $ac_hi; then
16144 ac_lo= ac_hi=
16145 break
16146 fi
16147 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16148fi
ac1cb8d3 16149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16150 done
16151else
16152 echo "$as_me: failed program was:" >&5
16153sed 's/^/| /' conftest.$ac_ext >&5
16154
16155ac_lo= ac_hi=
16156fi
ac1cb8d3 16157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16158fi
ac1cb8d3 16159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16160# Binary search between lo and hi bounds.
16161while test "x$ac_lo" != "x$ac_hi"; do
16162 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16163 cat >conftest.$ac_ext <<_ACEOF
16164/* confdefs.h. */
16165_ACEOF
16166cat confdefs.h >>conftest.$ac_ext
16167cat >>conftest.$ac_ext <<_ACEOF
16168/* end confdefs.h. */
16169$ac_includes_default
16170int
16171main ()
16172{
16173static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16174test_array [0] = 0
16175
16176 ;
16177 return 0;
16178}
16179_ACEOF
16180rm -f conftest.$ac_objext
16181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16182 (eval $ac_compile) 2>conftest.er1
a848cd7e 16183 ac_status=$?
ac1cb8d3
VS
16184 grep -v '^ *+' conftest.er1 >conftest.err
16185 rm -f conftest.er1
16186 cat conftest.err >&5
a848cd7e
SC
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } &&
9dd0f6c2 16189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191 (eval $ac_try) 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; } &&
16195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 ac_hi=$ac_mid
16202else
16203 echo "$as_me: failed program was:" >&5
16204sed 's/^/| /' conftest.$ac_ext >&5
16205
16206ac_lo=`expr '(' $ac_mid ')' + 1`
16207fi
ac1cb8d3 16208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16209done
16210case $ac_lo in
16211?*) ac_cv_sizeof_short=$ac_lo;;
16212'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16213See \`config.log' for more details." >&5
16214echo "$as_me: error: cannot compute sizeof (short), 77
16215See \`config.log' for more details." >&2;}
16216 { (exit 1); exit 1; }; } ;;
16217esac
16218else
16219 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
16220 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16221echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16222 { (exit 1); exit 1; }; }
16223else
16224 cat >conftest.$ac_ext <<_ACEOF
16225/* confdefs.h. */
16226_ACEOF
16227cat confdefs.h >>conftest.$ac_ext
16228cat >>conftest.$ac_ext <<_ACEOF
16229/* end confdefs.h. */
16230$ac_includes_default
16231long longval () { return (long) (sizeof (short)); }
16232unsigned long ulongval () { return (long) (sizeof (short)); }
16233#include <stdio.h>
16234#include <stdlib.h>
16235int
16236main ()
16237{
16238
16239 FILE *f = fopen ("conftest.val", "w");
16240 if (! f)
16241 exit (1);
16242 if (((long) (sizeof (short))) < 0)
16243 {
16244 long i = longval ();
16245 if (i != ((long) (sizeof (short))))
16246 exit (1);
16247 fprintf (f, "%ld\n", i);
16248 }
16249 else
16250 {
16251 unsigned long i = ulongval ();
16252 if (i != ((long) (sizeof (short))))
16253 exit (1);
16254 fprintf (f, "%lu\n", i);
16255 }
16256 exit (ferror (f) || fclose (f) != 0);
16257
16258 ;
16259 return 0;
16260}
16261_ACEOF
16262rm -f conftest$ac_exeext
16263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16264 (eval $ac_link) 2>&5
16265 ac_status=$?
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269 (eval $ac_try) 2>&5
16270 ac_status=$?
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; }; then
16273 ac_cv_sizeof_short=`cat conftest.val`
16274else
16275 echo "$as_me: program exited with status $ac_status" >&5
16276echo "$as_me: failed program was:" >&5
16277sed 's/^/| /' conftest.$ac_ext >&5
16278
16279( exit $ac_status )
16280{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16281See \`config.log' for more details." >&5
16282echo "$as_me: error: cannot compute sizeof (short), 77
16283See \`config.log' for more details." >&2;}
16284 { (exit 1); exit 1; }; }
16285fi
ac1cb8d3 16286rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16287fi
16288fi
16289rm -f conftest.val
16290else
16291 ac_cv_sizeof_short=0
16292fi
16293fi
16294echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16295echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16296cat >>confdefs.h <<_ACEOF
16297#define SIZEOF_SHORT $ac_cv_sizeof_short
16298_ACEOF
16299
16300
16301echo "$as_me:$LINENO: checking for void *" >&5
16302echo $ECHO_N "checking for void *... $ECHO_C" >&6
16303if test "${ac_cv_type_void_p+set}" = set; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16305else
16306 cat >conftest.$ac_ext <<_ACEOF
16307/* confdefs.h. */
16308_ACEOF
16309cat confdefs.h >>conftest.$ac_ext
16310cat >>conftest.$ac_ext <<_ACEOF
16311/* end confdefs.h. */
16312$ac_includes_default
16313int
16314main ()
16315{
16316if ((void * *) 0)
16317 return 0;
16318if (sizeof (void *))
16319 return 0;
16320 ;
16321 return 0;
16322}
16323_ACEOF
16324rm -f conftest.$ac_objext
16325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16326 (eval $ac_compile) 2>conftest.er1
a848cd7e 16327 ac_status=$?
ac1cb8d3
VS
16328 grep -v '^ *+' conftest.er1 >conftest.err
16329 rm -f conftest.er1
16330 cat conftest.err >&5
a848cd7e
SC
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } &&
9dd0f6c2 16333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16335 (eval $ac_try) 2>&5
16336 ac_status=$?
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); }; } &&
16339 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16341 (eval $ac_try) 2>&5
16342 ac_status=$?
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; }; then
16345 ac_cv_type_void_p=yes
16346else
16347 echo "$as_me: failed program was:" >&5
16348sed 's/^/| /' conftest.$ac_ext >&5
16349
16350ac_cv_type_void_p=no
16351fi
ac1cb8d3 16352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16353fi
16354echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16355echo "${ECHO_T}$ac_cv_type_void_p" >&6
16356
16357echo "$as_me:$LINENO: checking size of void *" >&5
16358echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16359if test "${ac_cv_sizeof_void_p+set}" = set; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
16361else
16362 if test "$ac_cv_type_void_p" = yes; then
16363 # The cast to unsigned long works around a bug in the HP C Compiler
16364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16366 # This bug is HP SR number 8606223364.
16367 if test "$cross_compiling" = yes; then
16368 # Depending upon the size, compute the lo and hi bounds.
16369cat >conftest.$ac_ext <<_ACEOF
16370/* confdefs.h. */
16371_ACEOF
16372cat confdefs.h >>conftest.$ac_ext
16373cat >>conftest.$ac_ext <<_ACEOF
16374/* end confdefs.h. */
16375$ac_includes_default
16376int
16377main ()
16378{
16379static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16380test_array [0] = 0
16381
16382 ;
16383 return 0;
16384}
16385_ACEOF
16386rm -f conftest.$ac_objext
16387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16388 (eval $ac_compile) 2>conftest.er1
a848cd7e 16389 ac_status=$?
ac1cb8d3
VS
16390 grep -v '^ *+' conftest.er1 >conftest.err
16391 rm -f conftest.er1
16392 cat conftest.err >&5
a848cd7e
SC
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); } &&
9dd0f6c2 16395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397 (eval $ac_try) 2>&5
16398 ac_status=$?
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; } &&
16401 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403 (eval $ac_try) 2>&5
16404 ac_status=$?
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; }; then
16407 ac_lo=0 ac_mid=0
16408 while :; do
16409 cat >conftest.$ac_ext <<_ACEOF
16410/* confdefs.h. */
16411_ACEOF
16412cat confdefs.h >>conftest.$ac_ext
16413cat >>conftest.$ac_ext <<_ACEOF
16414/* end confdefs.h. */
16415$ac_includes_default
16416int
16417main ()
16418{
16419static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16420test_array [0] = 0
16421
16422 ;
16423 return 0;
16424}
16425_ACEOF
16426rm -f conftest.$ac_objext
16427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16428 (eval $ac_compile) 2>conftest.er1
a848cd7e 16429 ac_status=$?
ac1cb8d3
VS
16430 grep -v '^ *+' conftest.er1 >conftest.err
16431 rm -f conftest.er1
16432 cat conftest.err >&5
a848cd7e
SC
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); } &&
9dd0f6c2 16435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16437 (eval $ac_try) 2>&5
16438 ac_status=$?
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); }; } &&
16441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16443 (eval $ac_try) 2>&5
16444 ac_status=$?
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; }; then
16447 ac_hi=$ac_mid; break
16448else
16449 echo "$as_me: failed program was:" >&5
16450sed 's/^/| /' conftest.$ac_ext >&5
16451
16452ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16453 if test $ac_lo -le $ac_mid; then
16454 ac_lo= ac_hi=
16455 break
16456 fi
16457 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16458fi
ac1cb8d3 16459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16460 done
16461else
16462 echo "$as_me: failed program was:" >&5
16463sed 's/^/| /' conftest.$ac_ext >&5
16464
16465cat >conftest.$ac_ext <<_ACEOF
16466/* confdefs.h. */
16467_ACEOF
16468cat confdefs.h >>conftest.$ac_ext
16469cat >>conftest.$ac_ext <<_ACEOF
16470/* end confdefs.h. */
16471$ac_includes_default
16472int
16473main ()
16474{
16475static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16476test_array [0] = 0
16477
16478 ;
16479 return 0;
16480}
16481_ACEOF
16482rm -f conftest.$ac_objext
16483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16484 (eval $ac_compile) 2>conftest.er1
a848cd7e 16485 ac_status=$?
ac1cb8d3
VS
16486 grep -v '^ *+' conftest.er1 >conftest.err
16487 rm -f conftest.er1
16488 cat conftest.err >&5
a848cd7e
SC
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
9dd0f6c2 16491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; } &&
16497 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499 (eval $ac_try) 2>&5
16500 ac_status=$?
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; }; then
16503 ac_hi=-1 ac_mid=-1
16504 while :; do
16505 cat >conftest.$ac_ext <<_ACEOF
16506/* confdefs.h. */
16507_ACEOF
16508cat confdefs.h >>conftest.$ac_ext
16509cat >>conftest.$ac_ext <<_ACEOF
16510/* end confdefs.h. */
16511$ac_includes_default
16512int
16513main ()
16514{
16515static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16516test_array [0] = 0
16517
16518 ;
16519 return 0;
16520}
16521_ACEOF
16522rm -f conftest.$ac_objext
16523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16524 (eval $ac_compile) 2>conftest.er1
a848cd7e 16525 ac_status=$?
ac1cb8d3
VS
16526 grep -v '^ *+' conftest.er1 >conftest.err
16527 rm -f conftest.er1
16528 cat conftest.err >&5
a848cd7e
SC
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } &&
9dd0f6c2 16531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16533 (eval $ac_try) 2>&5
16534 ac_status=$?
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }; } &&
16537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16540 ac_status=$?
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }; then
16543 ac_lo=$ac_mid; break
16544else
16545 echo "$as_me: failed program was:" >&5
16546sed 's/^/| /' conftest.$ac_ext >&5
16547
16548ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16549 if test $ac_mid -le $ac_hi; then
16550 ac_lo= ac_hi=
16551 break
16552 fi
16553 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16554fi
ac1cb8d3 16555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16556 done
16557else
16558 echo "$as_me: failed program was:" >&5
16559sed 's/^/| /' conftest.$ac_ext >&5
16560
16561ac_lo= ac_hi=
16562fi
ac1cb8d3 16563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16564fi
ac1cb8d3 16565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16566# Binary search between lo and hi bounds.
16567while test "x$ac_lo" != "x$ac_hi"; do
16568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16569 cat >conftest.$ac_ext <<_ACEOF
16570/* confdefs.h. */
16571_ACEOF
16572cat confdefs.h >>conftest.$ac_ext
16573cat >>conftest.$ac_ext <<_ACEOF
16574/* end confdefs.h. */
16575$ac_includes_default
16576int
16577main ()
16578{
16579static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16580test_array [0] = 0
16581
16582 ;
16583 return 0;
16584}
16585_ACEOF
16586rm -f conftest.$ac_objext
16587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16588 (eval $ac_compile) 2>conftest.er1
a848cd7e 16589 ac_status=$?
ac1cb8d3
VS
16590 grep -v '^ *+' conftest.er1 >conftest.err
16591 rm -f conftest.er1
16592 cat conftest.err >&5
a848cd7e
SC
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } &&
9dd0f6c2 16595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16598 ac_status=$?
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; } &&
16601 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; }; then
16607 ac_hi=$ac_mid
16608else
16609 echo "$as_me: failed program was:" >&5
16610sed 's/^/| /' conftest.$ac_ext >&5
16611
16612ac_lo=`expr '(' $ac_mid ')' + 1`
16613fi
ac1cb8d3 16614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16615done
16616case $ac_lo in
16617?*) ac_cv_sizeof_void_p=$ac_lo;;
16618'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16619See \`config.log' for more details." >&5
16620echo "$as_me: error: cannot compute sizeof (void *), 77
16621See \`config.log' for more details." >&2;}
16622 { (exit 1); exit 1; }; } ;;
16623esac
16624else
16625 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
16626 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16627echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16628 { (exit 1); exit 1; }; }
16629else
16630 cat >conftest.$ac_ext <<_ACEOF
16631/* confdefs.h. */
16632_ACEOF
16633cat confdefs.h >>conftest.$ac_ext
16634cat >>conftest.$ac_ext <<_ACEOF
16635/* end confdefs.h. */
16636$ac_includes_default
16637long longval () { return (long) (sizeof (void *)); }
16638unsigned long ulongval () { return (long) (sizeof (void *)); }
16639#include <stdio.h>
16640#include <stdlib.h>
16641int
16642main ()
16643{
16644
16645 FILE *f = fopen ("conftest.val", "w");
16646 if (! f)
16647 exit (1);
16648 if (((long) (sizeof (void *))) < 0)
16649 {
16650 long i = longval ();
16651 if (i != ((long) (sizeof (void *))))
16652 exit (1);
16653 fprintf (f, "%ld\n", i);
16654 }
16655 else
16656 {
16657 unsigned long i = ulongval ();
16658 if (i != ((long) (sizeof (void *))))
16659 exit (1);
16660 fprintf (f, "%lu\n", i);
16661 }
16662 exit (ferror (f) || fclose (f) != 0);
16663
16664 ;
16665 return 0;
16666}
16667_ACEOF
16668rm -f conftest$ac_exeext
16669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16670 (eval $ac_link) 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675 (eval $ac_try) 2>&5
16676 ac_status=$?
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; }; then
16679 ac_cv_sizeof_void_p=`cat conftest.val`
16680else
16681 echo "$as_me: program exited with status $ac_status" >&5
16682echo "$as_me: failed program was:" >&5
16683sed 's/^/| /' conftest.$ac_ext >&5
16684
16685( exit $ac_status )
16686{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16687See \`config.log' for more details." >&5
16688echo "$as_me: error: cannot compute sizeof (void *), 77
16689See \`config.log' for more details." >&2;}
16690 { (exit 1); exit 1; }; }
16691fi
ac1cb8d3 16692rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16693fi
16694fi
16695rm -f conftest.val
16696else
16697 ac_cv_sizeof_void_p=0
16698fi
16699fi
16700echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16701echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16702cat >>confdefs.h <<_ACEOF
16703#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16704_ACEOF
16705
16706
16707echo "$as_me:$LINENO: checking for int" >&5
16708echo $ECHO_N "checking for int... $ECHO_C" >&6
16709if test "${ac_cv_type_int+set}" = set; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16711else
16712 cat >conftest.$ac_ext <<_ACEOF
16713/* confdefs.h. */
16714_ACEOF
16715cat confdefs.h >>conftest.$ac_ext
16716cat >>conftest.$ac_ext <<_ACEOF
16717/* end confdefs.h. */
16718$ac_includes_default
16719int
16720main ()
16721{
16722if ((int *) 0)
16723 return 0;
16724if (sizeof (int))
16725 return 0;
16726 ;
16727 return 0;
16728}
16729_ACEOF
16730rm -f conftest.$ac_objext
16731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16732 (eval $ac_compile) 2>conftest.er1
a848cd7e 16733 ac_status=$?
ac1cb8d3
VS
16734 grep -v '^ *+' conftest.er1 >conftest.err
16735 rm -f conftest.er1
16736 cat conftest.err >&5
a848cd7e
SC
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); } &&
9dd0f6c2 16739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741 (eval $ac_try) 2>&5
16742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; } &&
16745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; }; then
16751 ac_cv_type_int=yes
16752else
16753 echo "$as_me: failed program was:" >&5
16754sed 's/^/| /' conftest.$ac_ext >&5
16755
16756ac_cv_type_int=no
16757fi
ac1cb8d3 16758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16759fi
16760echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16761echo "${ECHO_T}$ac_cv_type_int" >&6
16762
16763echo "$as_me:$LINENO: checking size of int" >&5
16764echo $ECHO_N "checking size of int... $ECHO_C" >&6
16765if test "${ac_cv_sizeof_int+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16767else
16768 if test "$ac_cv_type_int" = yes; then
16769 # The cast to unsigned long works around a bug in the HP C Compiler
16770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16772 # This bug is HP SR number 8606223364.
16773 if test "$cross_compiling" = yes; then
16774 # Depending upon the size, compute the lo and hi bounds.
16775cat >conftest.$ac_ext <<_ACEOF
16776/* confdefs.h. */
16777_ACEOF
16778cat confdefs.h >>conftest.$ac_ext
16779cat >>conftest.$ac_ext <<_ACEOF
16780/* end confdefs.h. */
16781$ac_includes_default
16782int
16783main ()
16784{
16785static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16786test_array [0] = 0
16787
16788 ;
16789 return 0;
16790}
16791_ACEOF
16792rm -f conftest.$ac_objext
16793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16794 (eval $ac_compile) 2>conftest.er1
a848cd7e 16795 ac_status=$?
ac1cb8d3
VS
16796 grep -v '^ *+' conftest.er1 >conftest.err
16797 rm -f conftest.er1
16798 cat conftest.err >&5
a848cd7e
SC
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } &&
9dd0f6c2 16801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; } &&
16807 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809 (eval $ac_try) 2>&5
16810 ac_status=$?
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; }; then
16813 ac_lo=0 ac_mid=0
16814 while :; do
16815 cat >conftest.$ac_ext <<_ACEOF
16816/* confdefs.h. */
16817_ACEOF
16818cat confdefs.h >>conftest.$ac_ext
16819cat >>conftest.$ac_ext <<_ACEOF
16820/* end confdefs.h. */
16821$ac_includes_default
16822int
16823main ()
16824{
16825static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16826test_array [0] = 0
16827
16828 ;
16829 return 0;
16830}
16831_ACEOF
16832rm -f conftest.$ac_objext
16833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16834 (eval $ac_compile) 2>conftest.er1
a848cd7e 16835 ac_status=$?
ac1cb8d3
VS
16836 grep -v '^ *+' conftest.er1 >conftest.err
16837 rm -f conftest.er1
16838 cat conftest.err >&5
a848cd7e
SC
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
9dd0f6c2 16841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16844 ac_status=$?
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; } &&
16847 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
16853 ac_hi=$ac_mid; break
16854else
16855 echo "$as_me: failed program was:" >&5
16856sed 's/^/| /' conftest.$ac_ext >&5
16857
16858ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16859 if test $ac_lo -le $ac_mid; then
16860 ac_lo= ac_hi=
16861 break
16862 fi
16863 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16864fi
ac1cb8d3 16865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16866 done
16867else
16868 echo "$as_me: failed program was:" >&5
16869sed 's/^/| /' conftest.$ac_ext >&5
16870
16871cat >conftest.$ac_ext <<_ACEOF
16872/* confdefs.h. */
16873_ACEOF
16874cat confdefs.h >>conftest.$ac_ext
16875cat >>conftest.$ac_ext <<_ACEOF
16876/* end confdefs.h. */
16877$ac_includes_default
16878int
16879main ()
16880{
16881static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16882test_array [0] = 0
16883
16884 ;
16885 return 0;
16886}
16887_ACEOF
16888rm -f conftest.$ac_objext
16889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16890 (eval $ac_compile) 2>conftest.er1
a848cd7e 16891 ac_status=$?
ac1cb8d3
VS
16892 grep -v '^ *+' conftest.er1 >conftest.err
16893 rm -f conftest.er1
16894 cat conftest.err >&5
a848cd7e
SC
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); } &&
9dd0f6c2 16897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16899 (eval $ac_try) 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; } &&
16903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16905 (eval $ac_try) 2>&5
16906 ac_status=$?
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; }; then
16909 ac_hi=-1 ac_mid=-1
16910 while :; do
16911 cat >conftest.$ac_ext <<_ACEOF
16912/* confdefs.h. */
16913_ACEOF
16914cat confdefs.h >>conftest.$ac_ext
16915cat >>conftest.$ac_ext <<_ACEOF
16916/* end confdefs.h. */
16917$ac_includes_default
16918int
16919main ()
16920{
16921static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16922test_array [0] = 0
16923
16924 ;
16925 return 0;
16926}
16927_ACEOF
16928rm -f conftest.$ac_objext
16929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16930 (eval $ac_compile) 2>conftest.er1
a848cd7e 16931 ac_status=$?
ac1cb8d3
VS
16932 grep -v '^ *+' conftest.er1 >conftest.err
16933 rm -f conftest.er1
16934 cat conftest.err >&5
a848cd7e
SC
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } &&
9dd0f6c2 16937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; } &&
16943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; }; then
16949 ac_lo=$ac_mid; break
16950else
16951 echo "$as_me: failed program was:" >&5
16952sed 's/^/| /' conftest.$ac_ext >&5
16953
16954ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16955 if test $ac_mid -le $ac_hi; then
16956 ac_lo= ac_hi=
16957 break
16958 fi
16959 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16960fi
ac1cb8d3 16961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16962 done
16963else
16964 echo "$as_me: failed program was:" >&5
16965sed 's/^/| /' conftest.$ac_ext >&5
16966
16967ac_lo= ac_hi=
16968fi
ac1cb8d3 16969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16970fi
ac1cb8d3 16971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16972# Binary search between lo and hi bounds.
16973while test "x$ac_lo" != "x$ac_hi"; do
16974 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16975 cat >conftest.$ac_ext <<_ACEOF
16976/* confdefs.h. */
16977_ACEOF
16978cat confdefs.h >>conftest.$ac_ext
16979cat >>conftest.$ac_ext <<_ACEOF
16980/* end confdefs.h. */
16981$ac_includes_default
16982int
16983main ()
16984{
16985static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16986test_array [0] = 0
16987
16988 ;
16989 return 0;
16990}
16991_ACEOF
16992rm -f conftest.$ac_objext
16993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16994 (eval $ac_compile) 2>conftest.er1
a848cd7e 16995 ac_status=$?
ac1cb8d3
VS
16996 grep -v '^ *+' conftest.er1 >conftest.err
16997 rm -f conftest.er1
16998 cat conftest.err >&5
a848cd7e
SC
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } &&
9dd0f6c2 17001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17003 (eval $ac_try) 2>&5
17004 ac_status=$?
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); }; } &&
17007 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17009 (eval $ac_try) 2>&5
17010 ac_status=$?
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); }; }; then
17013 ac_hi=$ac_mid
17014else
17015 echo "$as_me: failed program was:" >&5
17016sed 's/^/| /' conftest.$ac_ext >&5
17017
17018ac_lo=`expr '(' $ac_mid ')' + 1`
17019fi
ac1cb8d3 17020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17021done
17022case $ac_lo in
17023?*) ac_cv_sizeof_int=$ac_lo;;
17024'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17025See \`config.log' for more details." >&5
17026echo "$as_me: error: cannot compute sizeof (int), 77
17027See \`config.log' for more details." >&2;}
17028 { (exit 1); exit 1; }; } ;;
17029esac
17030else
17031 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17032 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17033echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17034 { (exit 1); exit 1; }; }
17035else
17036 cat >conftest.$ac_ext <<_ACEOF
17037/* confdefs.h. */
17038_ACEOF
17039cat confdefs.h >>conftest.$ac_ext
17040cat >>conftest.$ac_ext <<_ACEOF
17041/* end confdefs.h. */
17042$ac_includes_default
17043long longval () { return (long) (sizeof (int)); }
17044unsigned long ulongval () { return (long) (sizeof (int)); }
17045#include <stdio.h>
17046#include <stdlib.h>
17047int
17048main ()
17049{
17050
17051 FILE *f = fopen ("conftest.val", "w");
17052 if (! f)
17053 exit (1);
17054 if (((long) (sizeof (int))) < 0)
17055 {
17056 long i = longval ();
17057 if (i != ((long) (sizeof (int))))
17058 exit (1);
17059 fprintf (f, "%ld\n", i);
17060 }
17061 else
17062 {
17063 unsigned long i = ulongval ();
17064 if (i != ((long) (sizeof (int))))
17065 exit (1);
17066 fprintf (f, "%lu\n", i);
17067 }
17068 exit (ferror (f) || fclose (f) != 0);
17069
17070 ;
17071 return 0;
17072}
17073_ACEOF
17074rm -f conftest$ac_exeext
17075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17076 (eval $ac_link) 2>&5
17077 ac_status=$?
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 ac_cv_sizeof_int=`cat conftest.val`
17086else
17087 echo "$as_me: program exited with status $ac_status" >&5
17088echo "$as_me: failed program was:" >&5
17089sed 's/^/| /' conftest.$ac_ext >&5
17090
17091( exit $ac_status )
17092{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17093See \`config.log' for more details." >&5
17094echo "$as_me: error: cannot compute sizeof (int), 77
17095See \`config.log' for more details." >&2;}
17096 { (exit 1); exit 1; }; }
17097fi
ac1cb8d3 17098rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17099fi
17100fi
17101rm -f conftest.val
17102else
17103 ac_cv_sizeof_int=0
17104fi
17105fi
17106echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17107echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17108cat >>confdefs.h <<_ACEOF
17109#define SIZEOF_INT $ac_cv_sizeof_int
17110_ACEOF
17111
17112
17113echo "$as_me:$LINENO: checking for long" >&5
17114echo $ECHO_N "checking for long... $ECHO_C" >&6
17115if test "${ac_cv_type_long+set}" = set; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17117else
17118 cat >conftest.$ac_ext <<_ACEOF
17119/* confdefs.h. */
17120_ACEOF
17121cat confdefs.h >>conftest.$ac_ext
17122cat >>conftest.$ac_ext <<_ACEOF
17123/* end confdefs.h. */
17124$ac_includes_default
17125int
17126main ()
17127{
17128if ((long *) 0)
17129 return 0;
17130if (sizeof (long))
17131 return 0;
17132 ;
17133 return 0;
17134}
17135_ACEOF
17136rm -f conftest.$ac_objext
17137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17138 (eval $ac_compile) 2>conftest.er1
a848cd7e 17139 ac_status=$?
ac1cb8d3
VS
17140 grep -v '^ *+' conftest.er1 >conftest.err
17141 rm -f conftest.er1
17142 cat conftest.err >&5
a848cd7e
SC
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } &&
9dd0f6c2 17145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147 (eval $ac_try) 2>&5
17148 ac_status=$?
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; } &&
17151 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153 (eval $ac_try) 2>&5
17154 ac_status=$?
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 ac_cv_type_long=yes
17158else
17159 echo "$as_me: failed program was:" >&5
17160sed 's/^/| /' conftest.$ac_ext >&5
17161
17162ac_cv_type_long=no
17163fi
ac1cb8d3 17164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17165fi
17166echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17167echo "${ECHO_T}$ac_cv_type_long" >&6
17168
17169echo "$as_me:$LINENO: checking size of long" >&5
17170echo $ECHO_N "checking size of long... $ECHO_C" >&6
17171if test "${ac_cv_sizeof_long+set}" = set; then
17172 echo $ECHO_N "(cached) $ECHO_C" >&6
17173else
17174 if test "$ac_cv_type_long" = yes; then
17175 # The cast to unsigned long works around a bug in the HP C Compiler
17176 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17177 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17178 # This bug is HP SR number 8606223364.
17179 if test "$cross_compiling" = yes; then
17180 # Depending upon the size, compute the lo and hi bounds.
17181cat >conftest.$ac_ext <<_ACEOF
17182/* confdefs.h. */
17183_ACEOF
17184cat confdefs.h >>conftest.$ac_ext
17185cat >>conftest.$ac_ext <<_ACEOF
17186/* end confdefs.h. */
17187$ac_includes_default
17188int
17189main ()
17190{
17191static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17192test_array [0] = 0
17193
17194 ;
17195 return 0;
17196}
17197_ACEOF
17198rm -f conftest.$ac_objext
17199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17200 (eval $ac_compile) 2>conftest.er1
a848cd7e 17201 ac_status=$?
ac1cb8d3
VS
17202 grep -v '^ *+' conftest.er1 >conftest.err
17203 rm -f conftest.er1
17204 cat conftest.err >&5
a848cd7e
SC
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } &&
9dd0f6c2 17207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17210 ac_status=$?
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; } &&
17213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; }; then
17219 ac_lo=0 ac_mid=0
17220 while :; do
17221 cat >conftest.$ac_ext <<_ACEOF
17222/* confdefs.h. */
17223_ACEOF
17224cat confdefs.h >>conftest.$ac_ext
17225cat >>conftest.$ac_ext <<_ACEOF
17226/* end confdefs.h. */
17227$ac_includes_default
17228int
17229main ()
17230{
17231static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17232test_array [0] = 0
17233
17234 ;
17235 return 0;
17236}
17237_ACEOF
17238rm -f conftest.$ac_objext
17239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17240 (eval $ac_compile) 2>conftest.er1
a848cd7e 17241 ac_status=$?
ac1cb8d3
VS
17242 grep -v '^ *+' conftest.er1 >conftest.err
17243 rm -f conftest.er1
17244 cat conftest.err >&5
a848cd7e
SC
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } &&
9dd0f6c2 17247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17249 (eval $ac_try) 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; } &&
17253 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17255 (eval $ac_try) 2>&5
17256 ac_status=$?
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); }; }; then
17259 ac_hi=$ac_mid; break
17260else
17261 echo "$as_me: failed program was:" >&5
17262sed 's/^/| /' conftest.$ac_ext >&5
17263
17264ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17265 if test $ac_lo -le $ac_mid; then
17266 ac_lo= ac_hi=
17267 break
17268 fi
17269 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17270fi
ac1cb8d3 17271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17272 done
17273else
17274 echo "$as_me: failed program was:" >&5
17275sed 's/^/| /' conftest.$ac_ext >&5
17276
17277cat >conftest.$ac_ext <<_ACEOF
17278/* confdefs.h. */
17279_ACEOF
17280cat confdefs.h >>conftest.$ac_ext
17281cat >>conftest.$ac_ext <<_ACEOF
17282/* end confdefs.h. */
17283$ac_includes_default
17284int
17285main ()
17286{
17287static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17288test_array [0] = 0
17289
17290 ;
17291 return 0;
17292}
17293_ACEOF
17294rm -f conftest.$ac_objext
17295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17296 (eval $ac_compile) 2>conftest.er1
a848cd7e 17297 ac_status=$?
ac1cb8d3
VS
17298 grep -v '^ *+' conftest.er1 >conftest.err
17299 rm -f conftest.er1
17300 cat conftest.err >&5
a848cd7e
SC
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); } &&
9dd0f6c2 17303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17306 ac_status=$?
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; } &&
17309 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311 (eval $ac_try) 2>&5
17312 ac_status=$?
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; }; then
17315 ac_hi=-1 ac_mid=-1
17316 while :; do
17317 cat >conftest.$ac_ext <<_ACEOF
17318/* confdefs.h. */
17319_ACEOF
17320cat confdefs.h >>conftest.$ac_ext
17321cat >>conftest.$ac_ext <<_ACEOF
17322/* end confdefs.h. */
17323$ac_includes_default
17324int
17325main ()
17326{
17327static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17328test_array [0] = 0
17329
17330 ;
17331 return 0;
17332}
17333_ACEOF
17334rm -f conftest.$ac_objext
17335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17336 (eval $ac_compile) 2>conftest.er1
a848cd7e 17337 ac_status=$?
ac1cb8d3
VS
17338 grep -v '^ *+' conftest.er1 >conftest.err
17339 rm -f conftest.er1
17340 cat conftest.err >&5
a848cd7e
SC
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } &&
9dd0f6c2 17343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345 (eval $ac_try) 2>&5
17346 ac_status=$?
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); }; } &&
17349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351 (eval $ac_try) 2>&5
17352 ac_status=$?
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
17355 ac_lo=$ac_mid; break
17356else
17357 echo "$as_me: failed program was:" >&5
17358sed 's/^/| /' conftest.$ac_ext >&5
17359
17360ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17361 if test $ac_mid -le $ac_hi; then
17362 ac_lo= ac_hi=
17363 break
17364 fi
17365 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17366fi
ac1cb8d3 17367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17368 done
17369else
17370 echo "$as_me: failed program was:" >&5
17371sed 's/^/| /' conftest.$ac_ext >&5
17372
17373ac_lo= ac_hi=
17374fi
ac1cb8d3 17375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17376fi
ac1cb8d3 17377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17378# Binary search between lo and hi bounds.
17379while test "x$ac_lo" != "x$ac_hi"; do
17380 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17381 cat >conftest.$ac_ext <<_ACEOF
17382/* confdefs.h. */
17383_ACEOF
17384cat confdefs.h >>conftest.$ac_ext
17385cat >>conftest.$ac_ext <<_ACEOF
17386/* end confdefs.h. */
17387$ac_includes_default
17388int
17389main ()
17390{
17391static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17392test_array [0] = 0
17393
17394 ;
17395 return 0;
17396}
17397_ACEOF
17398rm -f conftest.$ac_objext
17399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17400 (eval $ac_compile) 2>conftest.er1
a848cd7e 17401 ac_status=$?
ac1cb8d3
VS
17402 grep -v '^ *+' conftest.er1 >conftest.err
17403 rm -f conftest.er1
17404 cat conftest.err >&5
a848cd7e
SC
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } &&
9dd0f6c2 17407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409 (eval $ac_try) 2>&5
17410 ac_status=$?
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; } &&
17413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17415 (eval $ac_try) 2>&5
17416 ac_status=$?
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; }; then
17419 ac_hi=$ac_mid
17420else
17421 echo "$as_me: failed program was:" >&5
17422sed 's/^/| /' conftest.$ac_ext >&5
17423
17424ac_lo=`expr '(' $ac_mid ')' + 1`
17425fi
ac1cb8d3 17426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17427done
17428case $ac_lo in
17429?*) ac_cv_sizeof_long=$ac_lo;;
17430'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17431See \`config.log' for more details." >&5
17432echo "$as_me: error: cannot compute sizeof (long), 77
17433See \`config.log' for more details." >&2;}
17434 { (exit 1); exit 1; }; } ;;
17435esac
17436else
17437 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17438 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17439echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17440 { (exit 1); exit 1; }; }
17441else
17442 cat >conftest.$ac_ext <<_ACEOF
17443/* confdefs.h. */
17444_ACEOF
17445cat confdefs.h >>conftest.$ac_ext
17446cat >>conftest.$ac_ext <<_ACEOF
17447/* end confdefs.h. */
17448$ac_includes_default
17449long longval () { return (long) (sizeof (long)); }
17450unsigned long ulongval () { return (long) (sizeof (long)); }
17451#include <stdio.h>
17452#include <stdlib.h>
17453int
17454main ()
17455{
17456
17457 FILE *f = fopen ("conftest.val", "w");
17458 if (! f)
17459 exit (1);
17460 if (((long) (sizeof (long))) < 0)
17461 {
17462 long i = longval ();
17463 if (i != ((long) (sizeof (long))))
17464 exit (1);
17465 fprintf (f, "%ld\n", i);
17466 }
17467 else
17468 {
17469 unsigned long i = ulongval ();
17470 if (i != ((long) (sizeof (long))))
17471 exit (1);
17472 fprintf (f, "%lu\n", i);
17473 }
17474 exit (ferror (f) || fclose (f) != 0);
17475
17476 ;
17477 return 0;
17478}
17479_ACEOF
17480rm -f conftest$ac_exeext
17481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17482 (eval $ac_link) 2>&5
17483 ac_status=$?
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17488 ac_status=$?
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 ac_cv_sizeof_long=`cat conftest.val`
17492else
17493 echo "$as_me: program exited with status $ac_status" >&5
17494echo "$as_me: failed program was:" >&5
17495sed 's/^/| /' conftest.$ac_ext >&5
17496
17497( exit $ac_status )
17498{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17499See \`config.log' for more details." >&5
17500echo "$as_me: error: cannot compute sizeof (long), 77
17501See \`config.log' for more details." >&2;}
17502 { (exit 1); exit 1; }; }
17503fi
ac1cb8d3 17504rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17505fi
17506fi
17507rm -f conftest.val
17508else
17509 ac_cv_sizeof_long=0
17510fi
17511fi
17512echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17513echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17514cat >>confdefs.h <<_ACEOF
17515#define SIZEOF_LONG $ac_cv_sizeof_long
17516_ACEOF
17517
17518
17519echo "$as_me:$LINENO: checking for size_t" >&5
17520echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17521if test "${ac_cv_type_size_t+set}" = set; then
17522 echo $ECHO_N "(cached) $ECHO_C" >&6
17523else
17524 cat >conftest.$ac_ext <<_ACEOF
17525/* confdefs.h. */
17526_ACEOF
17527cat confdefs.h >>conftest.$ac_ext
17528cat >>conftest.$ac_ext <<_ACEOF
17529/* end confdefs.h. */
17530$ac_includes_default
17531int
17532main ()
17533{
17534if ((size_t *) 0)
17535 return 0;
17536if (sizeof (size_t))
17537 return 0;
17538 ;
17539 return 0;
17540}
17541_ACEOF
17542rm -f conftest.$ac_objext
17543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17544 (eval $ac_compile) 2>conftest.er1
a848cd7e 17545 ac_status=$?
ac1cb8d3
VS
17546 grep -v '^ *+' conftest.er1 >conftest.err
17547 rm -f conftest.er1
17548 cat conftest.err >&5
a848cd7e
SC
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } &&
9dd0f6c2 17551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17554 ac_status=$?
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); }; } &&
17557 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17560 ac_status=$?
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; }; then
17563 ac_cv_type_size_t=yes
17564else
17565 echo "$as_me: failed program was:" >&5
17566sed 's/^/| /' conftest.$ac_ext >&5
17567
17568ac_cv_type_size_t=no
17569fi
ac1cb8d3 17570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17571fi
17572echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17573echo "${ECHO_T}$ac_cv_type_size_t" >&6
17574
17575echo "$as_me:$LINENO: checking size of size_t" >&5
17576echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17577if test "${ac_cv_sizeof_size_t+set}" = set; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17579else
17580 if test "$ac_cv_type_size_t" = yes; then
17581 # The cast to unsigned long works around a bug in the HP C Compiler
17582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17584 # This bug is HP SR number 8606223364.
17585 if test "$cross_compiling" = yes; then
17586 # Depending upon the size, compute the lo and hi bounds.
17587cat >conftest.$ac_ext <<_ACEOF
17588/* confdefs.h. */
17589_ACEOF
17590cat confdefs.h >>conftest.$ac_ext
17591cat >>conftest.$ac_ext <<_ACEOF
17592/* end confdefs.h. */
17593$ac_includes_default
17594int
17595main ()
17596{
17597static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17598test_array [0] = 0
17599
17600 ;
17601 return 0;
17602}
17603_ACEOF
17604rm -f conftest.$ac_objext
17605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17606 (eval $ac_compile) 2>conftest.er1
a848cd7e 17607 ac_status=$?
ac1cb8d3
VS
17608 grep -v '^ *+' conftest.er1 >conftest.err
17609 rm -f conftest.er1
17610 cat conftest.err >&5
a848cd7e
SC
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } &&
9dd0f6c2 17613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; } &&
17619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17622 ac_status=$?
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; }; then
17625 ac_lo=0 ac_mid=0
17626 while :; do
17627 cat >conftest.$ac_ext <<_ACEOF
17628/* confdefs.h. */
17629_ACEOF
17630cat confdefs.h >>conftest.$ac_ext
17631cat >>conftest.$ac_ext <<_ACEOF
17632/* end confdefs.h. */
17633$ac_includes_default
17634int
17635main ()
17636{
17637static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17638test_array [0] = 0
17639
17640 ;
17641 return 0;
17642}
17643_ACEOF
17644rm -f conftest.$ac_objext
17645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17646 (eval $ac_compile) 2>conftest.er1
a848cd7e 17647 ac_status=$?
ac1cb8d3
VS
17648 grep -v '^ *+' conftest.er1 >conftest.err
17649 rm -f conftest.er1
17650 cat conftest.err >&5
a848cd7e
SC
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } &&
9dd0f6c2 17653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; } &&
17659 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 ac_hi=$ac_mid; break
17666else
17667 echo "$as_me: failed program was:" >&5
17668sed 's/^/| /' conftest.$ac_ext >&5
17669
17670ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17671 if test $ac_lo -le $ac_mid; then
17672 ac_lo= ac_hi=
17673 break
17674 fi
17675 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17676fi
ac1cb8d3 17677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17678 done
17679else
17680 echo "$as_me: failed program was:" >&5
17681sed 's/^/| /' conftest.$ac_ext >&5
17682
17683cat >conftest.$ac_ext <<_ACEOF
17684/* confdefs.h. */
17685_ACEOF
17686cat confdefs.h >>conftest.$ac_ext
17687cat >>conftest.$ac_ext <<_ACEOF
17688/* end confdefs.h. */
17689$ac_includes_default
17690int
17691main ()
17692{
17693static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17694test_array [0] = 0
17695
17696 ;
17697 return 0;
17698}
17699_ACEOF
17700rm -f conftest.$ac_objext
17701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17702 (eval $ac_compile) 2>conftest.er1
a848cd7e 17703 ac_status=$?
ac1cb8d3
VS
17704 grep -v '^ *+' conftest.er1 >conftest.err
17705 rm -f conftest.er1
17706 cat conftest.err >&5
a848cd7e
SC
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } &&
9dd0f6c2 17709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; } &&
17715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; }; then
17721 ac_hi=-1 ac_mid=-1
17722 while :; do
17723 cat >conftest.$ac_ext <<_ACEOF
17724/* confdefs.h. */
17725_ACEOF
17726cat confdefs.h >>conftest.$ac_ext
17727cat >>conftest.$ac_ext <<_ACEOF
17728/* end confdefs.h. */
17729$ac_includes_default
17730int
17731main ()
17732{
17733static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17734test_array [0] = 0
17735
17736 ;
17737 return 0;
17738}
17739_ACEOF
17740rm -f conftest.$ac_objext
17741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17742 (eval $ac_compile) 2>conftest.er1
a848cd7e 17743 ac_status=$?
ac1cb8d3
VS
17744 grep -v '^ *+' conftest.er1 >conftest.err
17745 rm -f conftest.er1
17746 cat conftest.err >&5
a848cd7e
SC
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } &&
9dd0f6c2 17749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; } &&
17755 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17758 ac_status=$?
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; }; then
17761 ac_lo=$ac_mid; break
17762else
17763 echo "$as_me: failed program was:" >&5
17764sed 's/^/| /' conftest.$ac_ext >&5
17765
17766ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17767 if test $ac_mid -le $ac_hi; then
17768 ac_lo= ac_hi=
17769 break
17770 fi
17771 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17772fi
ac1cb8d3 17773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17774 done
17775else
17776 echo "$as_me: failed program was:" >&5
17777sed 's/^/| /' conftest.$ac_ext >&5
17778
17779ac_lo= ac_hi=
17780fi
ac1cb8d3 17781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17782fi
ac1cb8d3 17783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17784# Binary search between lo and hi bounds.
17785while test "x$ac_lo" != "x$ac_hi"; do
17786 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17787 cat >conftest.$ac_ext <<_ACEOF
17788/* confdefs.h. */
17789_ACEOF
17790cat confdefs.h >>conftest.$ac_ext
17791cat >>conftest.$ac_ext <<_ACEOF
17792/* end confdefs.h. */
17793$ac_includes_default
17794int
17795main ()
17796{
17797static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17798test_array [0] = 0
17799
17800 ;
17801 return 0;
17802}
17803_ACEOF
17804rm -f conftest.$ac_objext
17805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17806 (eval $ac_compile) 2>conftest.er1
a848cd7e 17807 ac_status=$?
ac1cb8d3
VS
17808 grep -v '^ *+' conftest.er1 >conftest.err
17809 rm -f conftest.er1
17810 cat conftest.err >&5
a848cd7e
SC
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } &&
9dd0f6c2 17813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17816 ac_status=$?
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; } &&
17819 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17822 ac_status=$?
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; }; then
17825 ac_hi=$ac_mid
17826else
17827 echo "$as_me: failed program was:" >&5
17828sed 's/^/| /' conftest.$ac_ext >&5
17829
17830ac_lo=`expr '(' $ac_mid ')' + 1`
17831fi
ac1cb8d3 17832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17833done
17834case $ac_lo in
17835?*) ac_cv_sizeof_size_t=$ac_lo;;
17836'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17837See \`config.log' for more details." >&5
17838echo "$as_me: error: cannot compute sizeof (size_t), 77
17839See \`config.log' for more details." >&2;}
17840 { (exit 1); exit 1; }; } ;;
17841esac
17842else
17843 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17844 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17845echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17846 { (exit 1); exit 1; }; }
17847else
17848 cat >conftest.$ac_ext <<_ACEOF
17849/* confdefs.h. */
17850_ACEOF
17851cat confdefs.h >>conftest.$ac_ext
17852cat >>conftest.$ac_ext <<_ACEOF
17853/* end confdefs.h. */
17854$ac_includes_default
17855long longval () { return (long) (sizeof (size_t)); }
17856unsigned long ulongval () { return (long) (sizeof (size_t)); }
17857#include <stdio.h>
17858#include <stdlib.h>
17859int
17860main ()
17861{
17862
17863 FILE *f = fopen ("conftest.val", "w");
17864 if (! f)
17865 exit (1);
17866 if (((long) (sizeof (size_t))) < 0)
17867 {
17868 long i = longval ();
17869 if (i != ((long) (sizeof (size_t))))
17870 exit (1);
17871 fprintf (f, "%ld\n", i);
17872 }
17873 else
17874 {
17875 unsigned long i = ulongval ();
17876 if (i != ((long) (sizeof (size_t))))
17877 exit (1);
17878 fprintf (f, "%lu\n", i);
17879 }
17880 exit (ferror (f) || fclose (f) != 0);
17881
17882 ;
17883 return 0;
17884}
17885_ACEOF
17886rm -f conftest$ac_exeext
17887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17888 (eval $ac_link) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17893 (eval $ac_try) 2>&5
17894 ac_status=$?
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; }; then
17897 ac_cv_sizeof_size_t=`cat conftest.val`
17898else
17899 echo "$as_me: program exited with status $ac_status" >&5
17900echo "$as_me: failed program was:" >&5
17901sed 's/^/| /' conftest.$ac_ext >&5
17902
17903( exit $ac_status )
17904{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17905See \`config.log' for more details." >&5
17906echo "$as_me: error: cannot compute sizeof (size_t), 77
17907See \`config.log' for more details." >&2;}
17908 { (exit 1); exit 1; }; }
17909fi
ac1cb8d3 17910rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17911fi
17912fi
17913rm -f conftest.val
17914else
17915 ac_cv_sizeof_size_t=0
17916fi
17917fi
17918echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17919echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17920cat >>confdefs.h <<_ACEOF
17921#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17922_ACEOF
17923
17924
17925
17926case "${host}" in
17927 arm-*-linux* )
17928 echo "$as_me:$LINENO: checking for long long" >&5
17929echo $ECHO_N "checking for long long... $ECHO_C" >&6
17930if test "${ac_cv_type_long_long+set}" = set; then
17931 echo $ECHO_N "(cached) $ECHO_C" >&6
17932else
17933 cat >conftest.$ac_ext <<_ACEOF
17934/* confdefs.h. */
17935_ACEOF
17936cat confdefs.h >>conftest.$ac_ext
17937cat >>conftest.$ac_ext <<_ACEOF
17938/* end confdefs.h. */
17939$ac_includes_default
17940int
17941main ()
17942{
17943if ((long long *) 0)
17944 return 0;
17945if (sizeof (long long))
17946 return 0;
17947 ;
17948 return 0;
17949}
17950_ACEOF
17951rm -f conftest.$ac_objext
17952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17953 (eval $ac_compile) 2>conftest.er1
a848cd7e 17954 ac_status=$?
ac1cb8d3
VS
17955 grep -v '^ *+' conftest.er1 >conftest.err
17956 rm -f conftest.er1
17957 cat conftest.err >&5
a848cd7e
SC
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } &&
9dd0f6c2 17960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962 (eval $ac_try) 2>&5
17963 ac_status=$?
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; } &&
17966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17968 (eval $ac_try) 2>&5
17969 ac_status=$?
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); }; }; then
17972 ac_cv_type_long_long=yes
17973else
17974 echo "$as_me: failed program was:" >&5
17975sed 's/^/| /' conftest.$ac_ext >&5
17976
17977ac_cv_type_long_long=no
17978fi
ac1cb8d3 17979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17980fi
17981echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17982echo "${ECHO_T}$ac_cv_type_long_long" >&6
17983
17984echo "$as_me:$LINENO: checking size of long long" >&5
17985echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17986if test "${ac_cv_sizeof_long_long+set}" = set; then
17987 echo $ECHO_N "(cached) $ECHO_C" >&6
17988else
17989 if test "$ac_cv_type_long_long" = yes; then
17990 # The cast to unsigned long works around a bug in the HP C Compiler
17991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17993 # This bug is HP SR number 8606223364.
17994 if test "$cross_compiling" = yes; then
17995 # Depending upon the size, compute the lo and hi bounds.
17996cat >conftest.$ac_ext <<_ACEOF
17997/* confdefs.h. */
17998_ACEOF
17999cat confdefs.h >>conftest.$ac_ext
18000cat >>conftest.$ac_ext <<_ACEOF
18001/* end confdefs.h. */
18002$ac_includes_default
18003int
18004main ()
18005{
18006static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18007test_array [0] = 0
18008
18009 ;
18010 return 0;
18011}
18012_ACEOF
18013rm -f conftest.$ac_objext
18014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18015 (eval $ac_compile) 2>conftest.er1
a848cd7e 18016 ac_status=$?
ac1cb8d3
VS
18017 grep -v '^ *+' conftest.er1 >conftest.err
18018 rm -f conftest.er1
18019 cat conftest.err >&5
a848cd7e
SC
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } &&
9dd0f6c2 18022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024 (eval $ac_try) 2>&5
18025 ac_status=$?
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; } &&
18028 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18030 (eval $ac_try) 2>&5
18031 ac_status=$?
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); }; }; then
18034 ac_lo=0 ac_mid=0
18035 while :; do
18036 cat >conftest.$ac_ext <<_ACEOF
18037/* confdefs.h. */
18038_ACEOF
18039cat confdefs.h >>conftest.$ac_ext
18040cat >>conftest.$ac_ext <<_ACEOF
18041/* end confdefs.h. */
18042$ac_includes_default
18043int
18044main ()
18045{
18046static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18047test_array [0] = 0
18048
18049 ;
18050 return 0;
18051}
18052_ACEOF
18053rm -f conftest.$ac_objext
18054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18055 (eval $ac_compile) 2>conftest.er1
a848cd7e 18056 ac_status=$?
ac1cb8d3
VS
18057 grep -v '^ *+' conftest.er1 >conftest.err
18058 rm -f conftest.er1
18059 cat conftest.err >&5
a848cd7e
SC
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); } &&
9dd0f6c2 18062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064 (eval $ac_try) 2>&5
18065 ac_status=$?
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; } &&
18068 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070 (eval $ac_try) 2>&5
18071 ac_status=$?
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; }; then
18074 ac_hi=$ac_mid; break
18075else
18076 echo "$as_me: failed program was:" >&5
18077sed 's/^/| /' conftest.$ac_ext >&5
18078
18079ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18080 if test $ac_lo -le $ac_mid; then
18081 ac_lo= ac_hi=
18082 break
18083 fi
18084 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18085fi
ac1cb8d3 18086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18087 done
18088else
18089 echo "$as_me: failed program was:" >&5
18090sed 's/^/| /' conftest.$ac_ext >&5
18091
18092cat >conftest.$ac_ext <<_ACEOF
18093/* confdefs.h. */
18094_ACEOF
18095cat confdefs.h >>conftest.$ac_ext
18096cat >>conftest.$ac_ext <<_ACEOF
18097/* end confdefs.h. */
18098$ac_includes_default
18099int
18100main ()
18101{
18102static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18103test_array [0] = 0
18104
18105 ;
18106 return 0;
18107}
18108_ACEOF
18109rm -f conftest.$ac_objext
18110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18111 (eval $ac_compile) 2>conftest.er1
a848cd7e 18112 ac_status=$?
ac1cb8d3
VS
18113 grep -v '^ *+' conftest.er1 >conftest.err
18114 rm -f conftest.er1
18115 cat conftest.err >&5
a848cd7e
SC
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
9dd0f6c2 18118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18120 (eval $ac_try) 2>&5
18121 ac_status=$?
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; } &&
18124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; }; then
18130 ac_hi=-1 ac_mid=-1
18131 while :; do
18132 cat >conftest.$ac_ext <<_ACEOF
18133/* confdefs.h. */
18134_ACEOF
18135cat confdefs.h >>conftest.$ac_ext
18136cat >>conftest.$ac_ext <<_ACEOF
18137/* end confdefs.h. */
18138$ac_includes_default
18139int
18140main ()
18141{
18142static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18143test_array [0] = 0
18144
18145 ;
18146 return 0;
18147}
18148_ACEOF
18149rm -f conftest.$ac_objext
18150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18151 (eval $ac_compile) 2>conftest.er1
a848cd7e 18152 ac_status=$?
ac1cb8d3
VS
18153 grep -v '^ *+' conftest.er1 >conftest.err
18154 rm -f conftest.er1
18155 cat conftest.err >&5
a848cd7e
SC
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); } &&
9dd0f6c2 18158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18160 (eval $ac_try) 2>&5
18161 ac_status=$?
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; } &&
18164 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18167 ac_status=$?
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; }; then
18170 ac_lo=$ac_mid; break
18171else
18172 echo "$as_me: failed program was:" >&5
18173sed 's/^/| /' conftest.$ac_ext >&5
18174
18175ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18176 if test $ac_mid -le $ac_hi; then
18177 ac_lo= ac_hi=
18178 break
18179 fi
18180 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18181fi
ac1cb8d3 18182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18183 done
18184else
18185 echo "$as_me: failed program was:" >&5
18186sed 's/^/| /' conftest.$ac_ext >&5
18187
18188ac_lo= ac_hi=
18189fi
ac1cb8d3 18190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18191fi
ac1cb8d3 18192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18193# Binary search between lo and hi bounds.
18194while test "x$ac_lo" != "x$ac_hi"; do
18195 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18196 cat >conftest.$ac_ext <<_ACEOF
18197/* confdefs.h. */
18198_ACEOF
18199cat confdefs.h >>conftest.$ac_ext
18200cat >>conftest.$ac_ext <<_ACEOF
18201/* end confdefs.h. */
18202$ac_includes_default
18203int
18204main ()
18205{
18206static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18207test_array [0] = 0
18208
18209 ;
18210 return 0;
18211}
18212_ACEOF
18213rm -f conftest.$ac_objext
18214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18215 (eval $ac_compile) 2>conftest.er1
a848cd7e 18216 ac_status=$?
ac1cb8d3
VS
18217 grep -v '^ *+' conftest.er1 >conftest.err
18218 rm -f conftest.er1
18219 cat conftest.err >&5
a848cd7e
SC
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
9dd0f6c2 18222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18225 ac_status=$?
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; } &&
18228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18231 ac_status=$?
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; }; then
18234 ac_hi=$ac_mid
18235else
18236 echo "$as_me: failed program was:" >&5
18237sed 's/^/| /' conftest.$ac_ext >&5
18238
18239ac_lo=`expr '(' $ac_mid ')' + 1`
18240fi
ac1cb8d3 18241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18242done
18243case $ac_lo in
18244?*) ac_cv_sizeof_long_long=$ac_lo;;
18245'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18246See \`config.log' for more details." >&5
18247echo "$as_me: error: cannot compute sizeof (long long), 77
18248See \`config.log' for more details." >&2;}
18249 { (exit 1); exit 1; }; } ;;
18250esac
18251else
18252 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
18253 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18254echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18255 { (exit 1); exit 1; }; }
18256else
18257 cat >conftest.$ac_ext <<_ACEOF
18258/* confdefs.h. */
18259_ACEOF
18260cat confdefs.h >>conftest.$ac_ext
18261cat >>conftest.$ac_ext <<_ACEOF
18262/* end confdefs.h. */
18263$ac_includes_default
18264long longval () { return (long) (sizeof (long long)); }
18265unsigned long ulongval () { return (long) (sizeof (long long)); }
18266#include <stdio.h>
18267#include <stdlib.h>
18268int
18269main ()
18270{
18271
18272 FILE *f = fopen ("conftest.val", "w");
18273 if (! f)
18274 exit (1);
18275 if (((long) (sizeof (long long))) < 0)
18276 {
18277 long i = longval ();
18278 if (i != ((long) (sizeof (long long))))
18279 exit (1);
18280 fprintf (f, "%ld\n", i);
18281 }
18282 else
18283 {
18284 unsigned long i = ulongval ();
18285 if (i != ((long) (sizeof (long long))))
18286 exit (1);
18287 fprintf (f, "%lu\n", i);
18288 }
18289 exit (ferror (f) || fclose (f) != 0);
18290
18291 ;
18292 return 0;
18293}
18294_ACEOF
18295rm -f conftest$ac_exeext
18296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18297 (eval $ac_link) 2>&5
18298 ac_status=$?
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 ac_cv_sizeof_long_long=`cat conftest.val`
18307else
18308 echo "$as_me: program exited with status $ac_status" >&5
18309echo "$as_me: failed program was:" >&5
18310sed 's/^/| /' conftest.$ac_ext >&5
18311
18312( exit $ac_status )
18313{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18314See \`config.log' for more details." >&5
18315echo "$as_me: error: cannot compute sizeof (long long), 77
18316See \`config.log' for more details." >&2;}
18317 { (exit 1); exit 1; }; }
18318fi
ac1cb8d3 18319rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18320fi
18321fi
18322rm -f conftest.val
18323else
18324 ac_cv_sizeof_long_long=0
18325fi
18326fi
18327echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18328echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18329cat >>confdefs.h <<_ACEOF
18330#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18331_ACEOF
18332
18333
18334 ;;
18335 *-hp-hpux* )
18336 echo "$as_me:$LINENO: checking for long long" >&5
18337echo $ECHO_N "checking for long long... $ECHO_C" >&6
18338if test "${ac_cv_type_long_long+set}" = set; then
18339 echo $ECHO_N "(cached) $ECHO_C" >&6
18340else
18341 cat >conftest.$ac_ext <<_ACEOF
18342/* confdefs.h. */
18343_ACEOF
18344cat confdefs.h >>conftest.$ac_ext
18345cat >>conftest.$ac_ext <<_ACEOF
18346/* end confdefs.h. */
18347$ac_includes_default
18348int
18349main ()
18350{
18351if ((long long *) 0)
18352 return 0;
18353if (sizeof (long long))
18354 return 0;
18355 ;
18356 return 0;
18357}
18358_ACEOF
18359rm -f conftest.$ac_objext
18360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18361 (eval $ac_compile) 2>conftest.er1
a848cd7e 18362 ac_status=$?
ac1cb8d3
VS
18363 grep -v '^ *+' conftest.er1 >conftest.err
18364 rm -f conftest.er1
18365 cat conftest.err >&5
a848cd7e
SC
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } &&
9dd0f6c2 18368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370 (eval $ac_try) 2>&5
18371 ac_status=$?
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; } &&
18374 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376 (eval $ac_try) 2>&5
18377 ac_status=$?
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; }; then
18380 ac_cv_type_long_long=yes
18381else
18382 echo "$as_me: failed program was:" >&5
18383sed 's/^/| /' conftest.$ac_ext >&5
18384
18385ac_cv_type_long_long=no
18386fi
ac1cb8d3 18387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18388fi
18389echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18390echo "${ECHO_T}$ac_cv_type_long_long" >&6
18391
18392echo "$as_me:$LINENO: checking size of long long" >&5
18393echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18394if test "${ac_cv_sizeof_long_long+set}" = set; then
18395 echo $ECHO_N "(cached) $ECHO_C" >&6
18396else
18397 if test "$ac_cv_type_long_long" = yes; then
18398 # The cast to unsigned long works around a bug in the HP C Compiler
18399 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18400 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18401 # This bug is HP SR number 8606223364.
18402 if test "$cross_compiling" = yes; then
18403 # Depending upon the size, compute the lo and hi bounds.
18404cat >conftest.$ac_ext <<_ACEOF
18405/* confdefs.h. */
18406_ACEOF
18407cat confdefs.h >>conftest.$ac_ext
18408cat >>conftest.$ac_ext <<_ACEOF
18409/* end confdefs.h. */
18410$ac_includes_default
18411int
18412main ()
18413{
18414static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18415test_array [0] = 0
18416
18417 ;
18418 return 0;
18419}
18420_ACEOF
18421rm -f conftest.$ac_objext
18422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18423 (eval $ac_compile) 2>conftest.er1
a848cd7e 18424 ac_status=$?
ac1cb8d3
VS
18425 grep -v '^ *+' conftest.er1 >conftest.err
18426 rm -f conftest.er1
18427 cat conftest.err >&5
a848cd7e
SC
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } &&
9dd0f6c2 18430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; } &&
18436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 ac_lo=0 ac_mid=0
18443 while :; do
18444 cat >conftest.$ac_ext <<_ACEOF
18445/* confdefs.h. */
18446_ACEOF
18447cat confdefs.h >>conftest.$ac_ext
18448cat >>conftest.$ac_ext <<_ACEOF
18449/* end confdefs.h. */
18450$ac_includes_default
18451int
18452main ()
18453{
18454static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18455test_array [0] = 0
18456
18457 ;
18458 return 0;
18459}
18460_ACEOF
18461rm -f conftest.$ac_objext
18462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18463 (eval $ac_compile) 2>conftest.er1
a848cd7e 18464 ac_status=$?
ac1cb8d3
VS
18465 grep -v '^ *+' conftest.er1 >conftest.err
18466 rm -f conftest.er1
18467 cat conftest.err >&5
a848cd7e
SC
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } &&
9dd0f6c2 18470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
18473 ac_status=$?
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; } &&
18476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; }; then
18482 ac_hi=$ac_mid; break
18483else
18484 echo "$as_me: failed program was:" >&5
18485sed 's/^/| /' conftest.$ac_ext >&5
18486
18487ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18488 if test $ac_lo -le $ac_mid; then
18489 ac_lo= ac_hi=
18490 break
18491 fi
18492 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18493fi
ac1cb8d3 18494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18495 done
18496else
18497 echo "$as_me: failed program was:" >&5
18498sed 's/^/| /' conftest.$ac_ext >&5
18499
18500cat >conftest.$ac_ext <<_ACEOF
18501/* confdefs.h. */
18502_ACEOF
18503cat confdefs.h >>conftest.$ac_ext
18504cat >>conftest.$ac_ext <<_ACEOF
18505/* end confdefs.h. */
18506$ac_includes_default
18507int
18508main ()
18509{
18510static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18511test_array [0] = 0
18512
18513 ;
18514 return 0;
18515}
18516_ACEOF
18517rm -f conftest.$ac_objext
18518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18519 (eval $ac_compile) 2>conftest.er1
a848cd7e 18520 ac_status=$?
ac1cb8d3
VS
18521 grep -v '^ *+' conftest.er1 >conftest.err
18522 rm -f conftest.er1
18523 cat conftest.err >&5
a848cd7e
SC
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } &&
9dd0f6c2 18526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18528 (eval $ac_try) 2>&5
18529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; } &&
18532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534 (eval $ac_try) 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; }; then
18538 ac_hi=-1 ac_mid=-1
18539 while :; do
18540 cat >conftest.$ac_ext <<_ACEOF
18541/* confdefs.h. */
18542_ACEOF
18543cat confdefs.h >>conftest.$ac_ext
18544cat >>conftest.$ac_ext <<_ACEOF
18545/* end confdefs.h. */
18546$ac_includes_default
18547int
18548main ()
18549{
18550static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18551test_array [0] = 0
18552
18553 ;
18554 return 0;
18555}
18556_ACEOF
18557rm -f conftest.$ac_objext
18558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18559 (eval $ac_compile) 2>conftest.er1
a848cd7e 18560 ac_status=$?
ac1cb8d3
VS
18561 grep -v '^ *+' conftest.er1 >conftest.err
18562 rm -f conftest.er1
18563 cat conftest.err >&5
a848cd7e
SC
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } &&
9dd0f6c2 18566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574 (eval $ac_try) 2>&5
18575 ac_status=$?
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; }; then
18578 ac_lo=$ac_mid; break
18579else
18580 echo "$as_me: failed program was:" >&5
18581sed 's/^/| /' conftest.$ac_ext >&5
18582
18583ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18584 if test $ac_mid -le $ac_hi; then
18585 ac_lo= ac_hi=
18586 break
18587 fi
18588 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18589fi
ac1cb8d3 18590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18591 done
18592else
18593 echo "$as_me: failed program was:" >&5
18594sed 's/^/| /' conftest.$ac_ext >&5
18595
18596ac_lo= ac_hi=
18597fi
ac1cb8d3 18598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18599fi
ac1cb8d3 18600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18601# Binary search between lo and hi bounds.
18602while test "x$ac_lo" != "x$ac_hi"; do
18603 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18604 cat >conftest.$ac_ext <<_ACEOF
18605/* confdefs.h. */
18606_ACEOF
18607cat confdefs.h >>conftest.$ac_ext
18608cat >>conftest.$ac_ext <<_ACEOF
18609/* end confdefs.h. */
18610$ac_includes_default
18611int
18612main ()
18613{
18614static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18615test_array [0] = 0
18616
18617 ;
18618 return 0;
18619}
18620_ACEOF
18621rm -f conftest.$ac_objext
18622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18623 (eval $ac_compile) 2>conftest.er1
a848cd7e 18624 ac_status=$?
ac1cb8d3
VS
18625 grep -v '^ *+' conftest.er1 >conftest.err
18626 rm -f conftest.er1
18627 cat conftest.err >&5
a848cd7e
SC
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } &&
9dd0f6c2 18630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18632 (eval $ac_try) 2>&5
18633 ac_status=$?
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; } &&
18636 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; }; then
18642 ac_hi=$ac_mid
18643else
18644 echo "$as_me: failed program was:" >&5
18645sed 's/^/| /' conftest.$ac_ext >&5
18646
18647ac_lo=`expr '(' $ac_mid ')' + 1`
18648fi
ac1cb8d3 18649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18650done
18651case $ac_lo in
18652?*) ac_cv_sizeof_long_long=$ac_lo;;
18653'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18654See \`config.log' for more details." >&5
18655echo "$as_me: error: cannot compute sizeof (long long), 77
18656See \`config.log' for more details." >&2;}
18657 { (exit 1); exit 1; }; } ;;
18658esac
18659else
18660 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
18661 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18662echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18663 { (exit 1); exit 1; }; }
18664else
18665 cat >conftest.$ac_ext <<_ACEOF
18666/* confdefs.h. */
18667_ACEOF
18668cat confdefs.h >>conftest.$ac_ext
18669cat >>conftest.$ac_ext <<_ACEOF
18670/* end confdefs.h. */
18671$ac_includes_default
18672long longval () { return (long) (sizeof (long long)); }
18673unsigned long ulongval () { return (long) (sizeof (long long)); }
18674#include <stdio.h>
18675#include <stdlib.h>
18676int
18677main ()
18678{
18679
18680 FILE *f = fopen ("conftest.val", "w");
18681 if (! f)
18682 exit (1);
18683 if (((long) (sizeof (long long))) < 0)
18684 {
18685 long i = longval ();
18686 if (i != ((long) (sizeof (long long))))
18687 exit (1);
18688 fprintf (f, "%ld\n", i);
18689 }
18690 else
18691 {
18692 unsigned long i = ulongval ();
18693 if (i != ((long) (sizeof (long long))))
18694 exit (1);
18695 fprintf (f, "%lu\n", i);
18696 }
18697 exit (ferror (f) || fclose (f) != 0);
18698
18699 ;
18700 return 0;
18701}
18702_ACEOF
18703rm -f conftest$ac_exeext
18704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18705 (eval $ac_link) 2>&5
18706 ac_status=$?
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710 (eval $ac_try) 2>&5
18711 ac_status=$?
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; }; then
18714 ac_cv_sizeof_long_long=`cat conftest.val`
18715else
18716 echo "$as_me: program exited with status $ac_status" >&5
18717echo "$as_me: failed program was:" >&5
18718sed 's/^/| /' conftest.$ac_ext >&5
18719
18720( exit $ac_status )
18721{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18722See \`config.log' for more details." >&5
18723echo "$as_me: error: cannot compute sizeof (long long), 77
18724See \`config.log' for more details." >&2;}
18725 { (exit 1); exit 1; }; }
18726fi
ac1cb8d3 18727rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18728fi
18729fi
18730rm -f conftest.val
18731else
18732 ac_cv_sizeof_long_long=0
18733fi
18734fi
18735echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18736echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18737cat >>confdefs.h <<_ACEOF
18738#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18739_ACEOF
18740
18741
18742 if test "$ac_cv_sizeof_long_long" != "0"; then
18743 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18744 fi
18745 ;;
18746 * )
18747 echo "$as_me:$LINENO: checking for long long" >&5
18748echo $ECHO_N "checking for long long... $ECHO_C" >&6
18749if test "${ac_cv_type_long_long+set}" = set; then
18750 echo $ECHO_N "(cached) $ECHO_C" >&6
18751else
18752 cat >conftest.$ac_ext <<_ACEOF
18753/* confdefs.h. */
18754_ACEOF
18755cat confdefs.h >>conftest.$ac_ext
18756cat >>conftest.$ac_ext <<_ACEOF
18757/* end confdefs.h. */
18758$ac_includes_default
18759int
18760main ()
18761{
18762if ((long long *) 0)
18763 return 0;
18764if (sizeof (long long))
18765 return 0;
18766 ;
18767 return 0;
18768}
18769_ACEOF
18770rm -f conftest.$ac_objext
18771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18772 (eval $ac_compile) 2>conftest.er1
a848cd7e 18773 ac_status=$?
ac1cb8d3
VS
18774 grep -v '^ *+' conftest.er1 >conftest.err
18775 rm -f conftest.er1
18776 cat conftest.err >&5
a848cd7e
SC
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); } &&
9dd0f6c2 18779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; } &&
18785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787 (eval $ac_try) 2>&5
18788 ac_status=$?
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; }; then
18791 ac_cv_type_long_long=yes
18792else
18793 echo "$as_me: failed program was:" >&5
18794sed 's/^/| /' conftest.$ac_ext >&5
18795
18796ac_cv_type_long_long=no
18797fi
ac1cb8d3 18798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18799fi
18800echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18801echo "${ECHO_T}$ac_cv_type_long_long" >&6
18802
18803echo "$as_me:$LINENO: checking size of long long" >&5
18804echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18805if test "${ac_cv_sizeof_long_long+set}" = set; then
18806 echo $ECHO_N "(cached) $ECHO_C" >&6
18807else
18808 if test "$ac_cv_type_long_long" = yes; then
18809 # The cast to unsigned long works around a bug in the HP C Compiler
18810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18812 # This bug is HP SR number 8606223364.
18813 if test "$cross_compiling" = yes; then
18814 # Depending upon the size, compute the lo and hi bounds.
18815cat >conftest.$ac_ext <<_ACEOF
18816/* confdefs.h. */
18817_ACEOF
18818cat confdefs.h >>conftest.$ac_ext
18819cat >>conftest.$ac_ext <<_ACEOF
18820/* end confdefs.h. */
18821$ac_includes_default
18822int
18823main ()
18824{
18825static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18826test_array [0] = 0
18827
18828 ;
18829 return 0;
18830}
18831_ACEOF
18832rm -f conftest.$ac_objext
18833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18834 (eval $ac_compile) 2>conftest.er1
a848cd7e 18835 ac_status=$?
ac1cb8d3
VS
18836 grep -v '^ *+' conftest.er1 >conftest.err
18837 rm -f conftest.er1
18838 cat conftest.err >&5
a848cd7e
SC
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); } &&
9dd0f6c2 18841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843 (eval $ac_try) 2>&5
18844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; } &&
18847 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5
18850 ac_status=$?
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; }; then
18853 ac_lo=0 ac_mid=0
18854 while :; do
18855 cat >conftest.$ac_ext <<_ACEOF
18856/* confdefs.h. */
18857_ACEOF
18858cat confdefs.h >>conftest.$ac_ext
18859cat >>conftest.$ac_ext <<_ACEOF
18860/* end confdefs.h. */
18861$ac_includes_default
18862int
18863main ()
18864{
18865static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18866test_array [0] = 0
18867
18868 ;
18869 return 0;
18870}
18871_ACEOF
18872rm -f conftest.$ac_objext
18873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18874 (eval $ac_compile) 2>conftest.er1
a848cd7e 18875 ac_status=$?
ac1cb8d3
VS
18876 grep -v '^ *+' conftest.er1 >conftest.err
18877 rm -f conftest.er1
18878 cat conftest.err >&5
a848cd7e
SC
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } &&
9dd0f6c2 18881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883 (eval $ac_try) 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; } &&
18887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18890 ac_status=$?
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; }; then
18893 ac_hi=$ac_mid; break
18894else
18895 echo "$as_me: failed program was:" >&5
18896sed 's/^/| /' conftest.$ac_ext >&5
18897
18898ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18899 if test $ac_lo -le $ac_mid; then
18900 ac_lo= ac_hi=
18901 break
18902 fi
18903 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18904fi
ac1cb8d3 18905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18906 done
18907else
18908 echo "$as_me: failed program was:" >&5
18909sed 's/^/| /' conftest.$ac_ext >&5
18910
18911cat >conftest.$ac_ext <<_ACEOF
18912/* confdefs.h. */
18913_ACEOF
18914cat confdefs.h >>conftest.$ac_ext
18915cat >>conftest.$ac_ext <<_ACEOF
18916/* end confdefs.h. */
18917$ac_includes_default
18918int
18919main ()
18920{
18921static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18922test_array [0] = 0
18923
18924 ;
18925 return 0;
18926}
18927_ACEOF
18928rm -f conftest.$ac_objext
18929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18930 (eval $ac_compile) 2>conftest.er1
a848cd7e 18931 ac_status=$?
ac1cb8d3
VS
18932 grep -v '^ *+' conftest.er1 >conftest.err
18933 rm -f conftest.er1
18934 cat conftest.err >&5
a848cd7e
SC
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } &&
9dd0f6c2 18937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939 (eval $ac_try) 2>&5
18940 ac_status=$?
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; } &&
18943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945 (eval $ac_try) 2>&5
18946 ac_status=$?
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
18949 ac_hi=-1 ac_mid=-1
18950 while :; do
18951 cat >conftest.$ac_ext <<_ACEOF
18952/* confdefs.h. */
18953_ACEOF
18954cat confdefs.h >>conftest.$ac_ext
18955cat >>conftest.$ac_ext <<_ACEOF
18956/* end confdefs.h. */
18957$ac_includes_default
18958int
18959main ()
18960{
18961static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18962test_array [0] = 0
18963
18964 ;
18965 return 0;
18966}
18967_ACEOF
18968rm -f conftest.$ac_objext
18969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18970 (eval $ac_compile) 2>conftest.er1
a848cd7e 18971 ac_status=$?
ac1cb8d3
VS
18972 grep -v '^ *+' conftest.er1 >conftest.err
18973 rm -f conftest.er1
18974 cat conftest.err >&5
a848cd7e
SC
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); } &&
9dd0f6c2 18977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; } &&
18983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985 (eval $ac_try) 2>&5
18986 ac_status=$?
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; }; then
18989 ac_lo=$ac_mid; break
18990else
18991 echo "$as_me: failed program was:" >&5
18992sed 's/^/| /' conftest.$ac_ext >&5
18993
18994ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18995 if test $ac_mid -le $ac_hi; then
18996 ac_lo= ac_hi=
18997 break
18998 fi
18999 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19000fi
ac1cb8d3 19001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19002 done
19003else
19004 echo "$as_me: failed program was:" >&5
19005sed 's/^/| /' conftest.$ac_ext >&5
19006
19007ac_lo= ac_hi=
19008fi
ac1cb8d3 19009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19010fi
ac1cb8d3 19011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19012# Binary search between lo and hi bounds.
19013while test "x$ac_lo" != "x$ac_hi"; do
19014 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19015 cat >conftest.$ac_ext <<_ACEOF
19016/* confdefs.h. */
19017_ACEOF
19018cat confdefs.h >>conftest.$ac_ext
19019cat >>conftest.$ac_ext <<_ACEOF
19020/* end confdefs.h. */
19021$ac_includes_default
19022int
19023main ()
19024{
19025static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19026test_array [0] = 0
19027
19028 ;
19029 return 0;
19030}
19031_ACEOF
19032rm -f conftest.$ac_objext
19033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19034 (eval $ac_compile) 2>conftest.er1
a848cd7e 19035 ac_status=$?
ac1cb8d3
VS
19036 grep -v '^ *+' conftest.er1 >conftest.err
19037 rm -f conftest.er1
19038 cat conftest.err >&5
a848cd7e
SC
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } &&
9dd0f6c2 19041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19043 (eval $ac_try) 2>&5
19044 ac_status=$?
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; } &&
19047 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049 (eval $ac_try) 2>&5
19050 ac_status=$?
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); }; }; then
19053 ac_hi=$ac_mid
19054else
19055 echo "$as_me: failed program was:" >&5
19056sed 's/^/| /' conftest.$ac_ext >&5
19057
19058ac_lo=`expr '(' $ac_mid ')' + 1`
19059fi
ac1cb8d3 19060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19061done
19062case $ac_lo in
19063?*) ac_cv_sizeof_long_long=$ac_lo;;
19064'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19065See \`config.log' for more details." >&5
19066echo "$as_me: error: cannot compute sizeof (long long), 77
19067See \`config.log' for more details." >&2;}
19068 { (exit 1); exit 1; }; } ;;
19069esac
19070else
19071 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
19072 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19073echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19074 { (exit 1); exit 1; }; }
19075else
19076 cat >conftest.$ac_ext <<_ACEOF
19077/* confdefs.h. */
19078_ACEOF
19079cat confdefs.h >>conftest.$ac_ext
19080cat >>conftest.$ac_ext <<_ACEOF
19081/* end confdefs.h. */
19082$ac_includes_default
19083long longval () { return (long) (sizeof (long long)); }
19084unsigned long ulongval () { return (long) (sizeof (long long)); }
19085#include <stdio.h>
19086#include <stdlib.h>
19087int
19088main ()
19089{
19090
19091 FILE *f = fopen ("conftest.val", "w");
19092 if (! f)
19093 exit (1);
19094 if (((long) (sizeof (long long))) < 0)
19095 {
19096 long i = longval ();
19097 if (i != ((long) (sizeof (long long))))
19098 exit (1);
19099 fprintf (f, "%ld\n", i);
19100 }
19101 else
19102 {
19103 unsigned long i = ulongval ();
19104 if (i != ((long) (sizeof (long long))))
19105 exit (1);
19106 fprintf (f, "%lu\n", i);
19107 }
19108 exit (ferror (f) || fclose (f) != 0);
19109
19110 ;
19111 return 0;
19112}
19113_ACEOF
19114rm -f conftest$ac_exeext
19115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19116 (eval $ac_link) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 ac_cv_sizeof_long_long=`cat conftest.val`
19126else
19127 echo "$as_me: program exited with status $ac_status" >&5
19128echo "$as_me: failed program was:" >&5
19129sed 's/^/| /' conftest.$ac_ext >&5
19130
19131( exit $ac_status )
19132{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19133See \`config.log' for more details." >&5
19134echo "$as_me: error: cannot compute sizeof (long long), 77
19135See \`config.log' for more details." >&2;}
19136 { (exit 1); exit 1; }; }
19137fi
ac1cb8d3 19138rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19139fi
19140fi
19141rm -f conftest.val
19142else
19143 ac_cv_sizeof_long_long=0
19144fi
19145fi
19146echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19147echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19148cat >>confdefs.h <<_ACEOF
19149#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19150_ACEOF
19151
19152
19153esac
19154
238ecede
MW
19155echo "$as_me:$LINENO: checking for wchar_t" >&5
19156echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19157if test "${ac_cv_type_wchar_t+set}" = set; then
19158 echo $ECHO_N "(cached) $ECHO_C" >&6
19159else
19160 cat >conftest.$ac_ext <<_ACEOF
19161/* confdefs.h. */
19162_ACEOF
19163cat confdefs.h >>conftest.$ac_ext
19164cat >>conftest.$ac_ext <<_ACEOF
19165/* end confdefs.h. */
19166
19167 /* DJGPP only has fake wchar_t: */
19168 #ifdef __DJGPP__
19169 # error "fake wchar_t"
19170 #endif
19171 #ifdef HAVE_WCHAR_H
19172 # ifdef __CYGWIN__
19173 # include <stddef.h>
19174 # endif
19175 # include <wchar.h>
19176 #endif
19177 #ifdef HAVE_STDLIB_H
19178 # include <stdlib.h>
19179 #endif
19180 #include <stdio.h>
19181
19182
19183
19184int
19185main ()
19186{
19187if ((wchar_t *) 0)
19188 return 0;
19189if (sizeof (wchar_t))
19190 return 0;
19191 ;
19192 return 0;
19193}
19194_ACEOF
19195rm -f conftest.$ac_objext
19196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19197 (eval $ac_compile) 2>conftest.er1
19198 ac_status=$?
19199 grep -v '^ *+' conftest.er1 >conftest.err
19200 rm -f conftest.er1
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } &&
9dd0f6c2 19204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206 (eval $ac_try) 2>&5
19207 ac_status=$?
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; } &&
19210 { ac_try='test -s conftest.$ac_objext'
19211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212 (eval $ac_try) 2>&5
19213 ac_status=$?
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); }; }; then
19216 ac_cv_type_wchar_t=yes
19217else
19218 echo "$as_me: failed program was:" >&5
19219sed 's/^/| /' conftest.$ac_ext >&5
19220
19221ac_cv_type_wchar_t=no
19222fi
19223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19224fi
19225echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19226echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19227
a848cd7e
SC
19228echo "$as_me:$LINENO: checking size of wchar_t" >&5
19229echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19230if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19231 echo $ECHO_N "(cached) $ECHO_C" >&6
19232else
238ecede
MW
19233 if test "$ac_cv_type_wchar_t" = yes; then
19234 # The cast to unsigned long works around a bug in the HP C Compiler
19235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19237 # This bug is HP SR number 8606223364.
19238 if test "$cross_compiling" = yes; then
19239 # Depending upon the size, compute the lo and hi bounds.
19240cat >conftest.$ac_ext <<_ACEOF
19241/* confdefs.h. */
19242_ACEOF
19243cat confdefs.h >>conftest.$ac_ext
19244cat >>conftest.$ac_ext <<_ACEOF
19245/* end confdefs.h. */
19246
19247 /* DJGPP only has fake wchar_t: */
19248 #ifdef __DJGPP__
19249 # error "fake wchar_t"
19250 #endif
19251 #ifdef HAVE_WCHAR_H
19252 # ifdef __CYGWIN__
19253 # include <stddef.h>
19254 # endif
19255 # include <wchar.h>
19256 #endif
19257 #ifdef HAVE_STDLIB_H
19258 # include <stdlib.h>
19259 #endif
19260 #include <stdio.h>
19261
19262
19263
19264int
19265main ()
19266{
19267static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19268test_array [0] = 0
19269
19270 ;
19271 return 0;
19272}
19273_ACEOF
19274rm -f conftest.$ac_objext
19275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19276 (eval $ac_compile) 2>conftest.er1
19277 ac_status=$?
19278 grep -v '^ *+' conftest.er1 >conftest.err
19279 rm -f conftest.er1
19280 cat conftest.err >&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } &&
9dd0f6c2 19283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; } &&
19289 { ac_try='test -s conftest.$ac_objext'
19290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19292 ac_status=$?
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19295 ac_lo=0 ac_mid=0
19296 while :; do
19297 cat >conftest.$ac_ext <<_ACEOF
19298/* confdefs.h. */
19299_ACEOF
19300cat confdefs.h >>conftest.$ac_ext
19301cat >>conftest.$ac_ext <<_ACEOF
19302/* end confdefs.h. */
19303
19304 /* DJGPP only has fake wchar_t: */
19305 #ifdef __DJGPP__
19306 # error "fake wchar_t"
19307 #endif
19308 #ifdef HAVE_WCHAR_H
19309 # ifdef __CYGWIN__
19310 # include <stddef.h>
19311 # endif
19312 # include <wchar.h>
19313 #endif
19314 #ifdef HAVE_STDLIB_H
19315 # include <stdlib.h>
19316 #endif
19317 #include <stdio.h>
19318
19319
19320
19321int
19322main ()
19323{
19324static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19325test_array [0] = 0
19326
19327 ;
19328 return 0;
19329}
19330_ACEOF
19331rm -f conftest.$ac_objext
19332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19333 (eval $ac_compile) 2>conftest.er1
19334 ac_status=$?
19335 grep -v '^ *+' conftest.er1 >conftest.err
19336 rm -f conftest.er1
19337 cat conftest.err >&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); } &&
9dd0f6c2 19340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19343 ac_status=$?
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; } &&
19346 { ac_try='test -s conftest.$ac_objext'
19347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19348 (eval $ac_try) 2>&5
19349 ac_status=$?
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); }; }; then
19352 ac_hi=$ac_mid; break
19353else
19354 echo "$as_me: failed program was:" >&5
19355sed 's/^/| /' conftest.$ac_ext >&5
19356
19357ac_lo=`expr $ac_mid + 1`
19358 if test $ac_lo -le $ac_mid; then
19359 ac_lo= ac_hi=
19360 break
19361 fi
19362 ac_mid=`expr 2 '*' $ac_mid + 1`
19363fi
19364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19365 done
19366else
19367 echo "$as_me: failed program was:" >&5
19368sed 's/^/| /' conftest.$ac_ext >&5
19369
19370cat >conftest.$ac_ext <<_ACEOF
19371/* confdefs.h. */
19372_ACEOF
19373cat confdefs.h >>conftest.$ac_ext
19374cat >>conftest.$ac_ext <<_ACEOF
19375/* end confdefs.h. */
19376
19377 /* DJGPP only has fake wchar_t: */
19378 #ifdef __DJGPP__
19379 # error "fake wchar_t"
19380 #endif
19381 #ifdef HAVE_WCHAR_H
19382 # ifdef __CYGWIN__
19383 # include <stddef.h>
19384 # endif
19385 # include <wchar.h>
19386 #endif
19387 #ifdef HAVE_STDLIB_H
19388 # include <stdlib.h>
19389 #endif
19390 #include <stdio.h>
19391
19392
19393
19394int
19395main ()
19396{
19397static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19398test_array [0] = 0
19399
19400 ;
19401 return 0;
19402}
19403_ACEOF
19404rm -f conftest.$ac_objext
19405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19406 (eval $ac_compile) 2>conftest.er1
19407 ac_status=$?
19408 grep -v '^ *+' conftest.er1 >conftest.err
19409 rm -f conftest.er1
19410 cat conftest.err >&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } &&
9dd0f6c2 19413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19415 (eval $ac_try) 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; } &&
19419 { ac_try='test -s conftest.$ac_objext'
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19422 ac_status=$?
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; }; then
19425 ac_hi=-1 ac_mid=-1
19426 while :; do
19427 cat >conftest.$ac_ext <<_ACEOF
19428/* confdefs.h. */
19429_ACEOF
19430cat confdefs.h >>conftest.$ac_ext
19431cat >>conftest.$ac_ext <<_ACEOF
19432/* end confdefs.h. */
19433
19434 /* DJGPP only has fake wchar_t: */
19435 #ifdef __DJGPP__
19436 # error "fake wchar_t"
19437 #endif
19438 #ifdef HAVE_WCHAR_H
19439 # ifdef __CYGWIN__
19440 # include <stddef.h>
19441 # endif
19442 # include <wchar.h>
19443 #endif
19444 #ifdef HAVE_STDLIB_H
19445 # include <stdlib.h>
19446 #endif
19447 #include <stdio.h>
19448
19449
19450
19451int
19452main ()
19453{
19454static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19455test_array [0] = 0
19456
19457 ;
19458 return 0;
19459}
19460_ACEOF
19461rm -f conftest.$ac_objext
19462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19463 (eval $ac_compile) 2>conftest.er1
19464 ac_status=$?
19465 grep -v '^ *+' conftest.er1 >conftest.err
19466 rm -f conftest.er1
19467 cat conftest.err >&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } &&
9dd0f6c2 19470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest.$ac_objext'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_lo=$ac_mid; break
19483else
19484 echo "$as_me: failed program was:" >&5
19485sed 's/^/| /' conftest.$ac_ext >&5
19486
19487ac_hi=`expr '(' $ac_mid ')' - 1`
19488 if test $ac_mid -le $ac_hi; then
19489 ac_lo= ac_hi=
19490 break
19491 fi
19492 ac_mid=`expr 2 '*' $ac_mid`
19493fi
19494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19495 done
19496else
19497 echo "$as_me: failed program was:" >&5
19498sed 's/^/| /' conftest.$ac_ext >&5
19499
19500ac_lo= ac_hi=
19501fi
19502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19503fi
19504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19505# Binary search between lo and hi bounds.
19506while test "x$ac_lo" != "x$ac_hi"; do
19507 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19508 cat >conftest.$ac_ext <<_ACEOF
19509/* confdefs.h. */
19510_ACEOF
19511cat confdefs.h >>conftest.$ac_ext
19512cat >>conftest.$ac_ext <<_ACEOF
19513/* end confdefs.h. */
19514
19515 /* DJGPP only has fake wchar_t: */
19516 #ifdef __DJGPP__
19517 # error "fake wchar_t"
19518 #endif
19519 #ifdef HAVE_WCHAR_H
19520 # ifdef __CYGWIN__
19521 # include <stddef.h>
19522 # endif
19523 # include <wchar.h>
19524 #endif
19525 #ifdef HAVE_STDLIB_H
19526 # include <stdlib.h>
19527 #endif
19528 #include <stdio.h>
a848cd7e 19529
a848cd7e 19530
a848cd7e 19531
238ecede
MW
19532int
19533main ()
19534{
19535static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19536test_array [0] = 0
a848cd7e 19537
238ecede
MW
19538 ;
19539 return 0;
19540}
19541_ACEOF
19542rm -f conftest.$ac_objext
19543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19544 (eval $ac_compile) 2>conftest.er1
19545 ac_status=$?
19546 grep -v '^ *+' conftest.er1 >conftest.err
19547 rm -f conftest.er1
19548 cat conftest.err >&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } &&
9dd0f6c2 19551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553 (eval $ac_try) 2>&5
19554 ac_status=$?
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; } &&
19557 { ac_try='test -s conftest.$ac_objext'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
19563 ac_hi=$ac_mid
19564else
19565 echo "$as_me: failed program was:" >&5
19566sed 's/^/| /' conftest.$ac_ext >&5
19567
19568ac_lo=`expr '(' $ac_mid ')' + 1`
19569fi
19570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19571done
19572case $ac_lo in
19573?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19574'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19575See \`config.log' for more details." >&5
19576echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19577See \`config.log' for more details." >&2;}
19578 { (exit 1); exit 1; }; } ;;
19579esac
19580else
19581 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
19582 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19583echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19584 { (exit 1); exit 1; }; }
a848cd7e
SC
19585else
19586 cat >conftest.$ac_ext <<_ACEOF
19587/* confdefs.h. */
19588_ACEOF
19589cat confdefs.h >>conftest.$ac_ext
19590cat >>conftest.$ac_ext <<_ACEOF
19591/* end confdefs.h. */
19592
238ecede
MW
19593 /* DJGPP only has fake wchar_t: */
19594 #ifdef __DJGPP__
19595 # error "fake wchar_t"
19596 #endif
19597 #ifdef HAVE_WCHAR_H
19598 # ifdef __CYGWIN__
19599 # include <stddef.h>
19600 # endif
19601 # include <wchar.h>
19602 #endif
19603 #ifdef HAVE_STDLIB_H
19604 # include <stdlib.h>
19605 #endif
19606 #include <stdio.h>
19607
19608
19609
19610long longval () { return (long) (sizeof (wchar_t)); }
19611unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19612#include <stdio.h>
19613#include <stdlib.h>
19614int
19615main ()
19616{
a848cd7e 19617
238ecede
MW
19618 FILE *f = fopen ("conftest.val", "w");
19619 if (! f)
19620 exit (1);
19621 if (((long) (sizeof (wchar_t))) < 0)
19622 {
19623 long i = longval ();
19624 if (i != ((long) (sizeof (wchar_t))))
19625 exit (1);
19626 fprintf (f, "%ld\n", i);
19627 }
19628 else
19629 {
19630 unsigned long i = ulongval ();
19631 if (i != ((long) (sizeof (wchar_t))))
19632 exit (1);
19633 fprintf (f, "%lu\n", i);
19634 }
19635 exit (ferror (f) || fclose (f) != 0);
19636
19637 ;
19638 return 0;
19639}
a848cd7e
SC
19640_ACEOF
19641rm -f conftest$ac_exeext
19642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19643 (eval $ac_link) 2>&5
19644 ac_status=$?
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
238ecede 19652 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19653else
19654 echo "$as_me: program exited with status $ac_status" >&5
19655echo "$as_me: failed program was:" >&5
19656sed 's/^/| /' conftest.$ac_ext >&5
19657
19658( exit $ac_status )
238ecede
MW
19659{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19660See \`config.log' for more details." >&5
19661echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19662See \`config.log' for more details." >&2;}
19663 { (exit 1); exit 1; }; }
a848cd7e 19664fi
ac1cb8d3 19665rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19666fi
a848cd7e 19667fi
238ecede
MW
19668rm -f conftest.val
19669else
19670 ac_cv_sizeof_wchar_t=0
19671fi
19672fi
19673echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19674echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19675cat >>confdefs.h <<_ACEOF
238ecede 19676#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19677_ACEOF
19678
19679
238ecede 19680
ba3d13e1
VZ
19681echo "$as_me:$LINENO: checking for va_copy" >&5
19682echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19683if test "${wx_cv_func_va_copy+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19685else
19686
19687 cat >conftest.$ac_ext <<_ACEOF
19688
19689 #include <stdarg.h>
19690 void foo(char *f, ...)
19691 {
19692 va_list ap1, ap2;
19693 va_start(ap1, f);
19694 va_copy(ap2, ap1);
19695 va_end(ap2);
19696 va_end(ap1);
19697 }
5886b072
VZ
19698 int main()
19699 {
b902e639
VZ
19700 foo("hi", 17);
19701 return 0;
5886b072 19702 }
ba3d13e1
VZ
19703_ACEOF
19704rm -f conftest.$ac_objext conftest$ac_exeext
19705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19706 (eval $ac_link) 2>conftest.er1
19707 ac_status=$?
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } &&
9dd0f6c2 19713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19716 ac_status=$?
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; } &&
19719 { ac_try='test -s conftest$ac_exeext'
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19722 ac_status=$?
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; }; then
19725 wx_cv_func_va_copy=yes
19726else
19727 echo "$as_me: failed program was:" >&5
19728sed 's/^/| /' conftest.$ac_ext >&5
19729
19730wx_cv_func_va_copy=no
19731
19732fi
19733rm -f conftest.err conftest.$ac_objext \
19734 conftest$ac_exeext conftest.$ac_ext
19735
19736
19737fi
19738echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19739echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19740
19741if test $wx_cv_func_va_copy = "yes"; then
19742 cat >>confdefs.h <<\_ACEOF
19743#define HAVE_VA_COPY 1
19744_ACEOF
19745
19746else
19747 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19748echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19749if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19751else
19752
19753 if test "$cross_compiling" = yes; then
19754 wx_cv_type_va_list_lvalue=yes
19755
19756else
19757 cat >conftest.$ac_ext <<_ACEOF
19758
19759 #include <stdarg.h>
19760 int foo(char *f, ...)
19761 {
19762 va_list ap1, ap2;
19763 va_start(ap1, f);
19764 ap2 = ap1;
19765 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19766 return 1;
19767 va_end(ap2);
19768 va_end(ap1);
19769 return 0;
19770 }
19771 int main()
19772 {
19773 return foo("hi", 17);
19774 }
19775_ACEOF
19776rm -f conftest$ac_exeext
19777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19778 (eval $ac_link) 2>&5
19779 ac_status=$?
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783 (eval $ac_try) 2>&5
19784 ac_status=$?
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; }; then
19787 wx_cv_type_va_list_lvalue=yes
19788else
19789 echo "$as_me: program exited with status $ac_status" >&5
19790echo "$as_me: failed program was:" >&5
19791sed 's/^/| /' conftest.$ac_ext >&5
19792
19793( exit $ac_status )
19794wx_cv_type_va_list_lvalue=no
19795fi
19796rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19797fi
19798
19799
19800fi
19801echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19802echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19803
19804 if test $wx_cv_type_va_list_lvalue != "yes"; then
19805 cat >>confdefs.h <<\_ACEOF
19806#define VA_LIST_IS_ARRAY 1
19807_ACEOF
19808
19809 fi
19810fi
19811
a848cd7e
SC
19812# Check whether --enable-largefile or --disable-largefile was given.
19813if test "${enable_largefile+set}" = set; then
19814 enableval="$enable_largefile"
19815
19816fi;
19817if test "$enable_largefile" != no; then
19818 wx_largefile=no
19819
19820 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19821echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19822if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19824else
19825
19826 cat >conftest.$ac_ext <<_ACEOF
19827/* confdefs.h. */
19828_ACEOF
19829cat confdefs.h >>conftest.$ac_ext
19830cat >>conftest.$ac_ext <<_ACEOF
19831/* end confdefs.h. */
19832#define _FILE_OFFSET_BITS 64
19833 #include <sys/types.h>
19834int
19835main ()
19836{
19837typedef struct {
19838 unsigned int field: sizeof(off_t) == 8;
19839} wxlf;
19840
19841 ;
19842 return 0;
19843}
19844_ACEOF
19845rm -f conftest.$ac_objext
19846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19847 (eval $ac_compile) 2>conftest.er1
a848cd7e 19848 ac_status=$?
ac1cb8d3
VS
19849 grep -v '^ *+' conftest.er1 >conftest.err
19850 rm -f conftest.er1
19851 cat conftest.err >&5
a848cd7e
SC
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } &&
9dd0f6c2 19854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19856 (eval $ac_try) 2>&5
19857 ac_status=$?
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); }; } &&
19860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19863 ac_status=$?
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; }; then
19866 ac_cv_sys_file_offset_bits=64
19867else
19868 echo "$as_me: failed program was:" >&5
19869sed 's/^/| /' conftest.$ac_ext >&5
19870
19871ac_cv_sys_file_offset_bits=no
19872fi
ac1cb8d3 19873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19874
19875
19876fi
19877echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19878echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19879
19880 if test "$ac_cv_sys_file_offset_bits" != no; then
19881 wx_largefile=yes
19882 cat >>confdefs.h <<_ACEOF
19883#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19884_ACEOF
19885
19886 fi
19887
19888 if test "x$wx_largefile" != "xyes"; then
19889
19890 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19891echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19892if test "${ac_cv_sys_large_files+set}" = set; then
19893 echo $ECHO_N "(cached) $ECHO_C" >&6
19894else
19895
19896 cat >conftest.$ac_ext <<_ACEOF
19897/* confdefs.h. */
19898_ACEOF
19899cat confdefs.h >>conftest.$ac_ext
19900cat >>conftest.$ac_ext <<_ACEOF
19901/* end confdefs.h. */
19902#define _LARGE_FILES 1
19903 #include <sys/types.h>
19904int
19905main ()
19906{
19907typedef struct {
19908 unsigned int field: sizeof(off_t) == 8;
19909} wxlf;
19910
19911 ;
19912 return 0;
19913}
19914_ACEOF
19915rm -f conftest.$ac_objext
19916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19917 (eval $ac_compile) 2>conftest.er1
a848cd7e 19918 ac_status=$?
ac1cb8d3
VS
19919 grep -v '^ *+' conftest.er1 >conftest.err
19920 rm -f conftest.er1
19921 cat conftest.err >&5
a848cd7e
SC
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } &&
9dd0f6c2 19924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; } &&
19930 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932 (eval $ac_try) 2>&5
19933 ac_status=$?
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); }; }; then
19936 ac_cv_sys_large_files=1
19937else
19938 echo "$as_me: failed program was:" >&5
19939sed 's/^/| /' conftest.$ac_ext >&5
19940
19941ac_cv_sys_large_files=no
19942fi
ac1cb8d3 19943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19944
19945
19946fi
19947echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19948echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19949
19950 if test "$ac_cv_sys_large_files" != no; then
19951 wx_largefile=yes
19952 cat >>confdefs.h <<_ACEOF
19953#define _LARGE_FILES $ac_cv_sys_large_files
19954_ACEOF
19955
19956 fi
19957
19958 fi
19959
19960 echo "$as_me:$LINENO: checking if large file support is available" >&5
19961echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19962 if test "x$wx_largefile" = "xyes"; then
19963 cat >>confdefs.h <<\_ACEOF
19964#define HAVE_LARGEFILE_SUPPORT 1
19965_ACEOF
19966
19967 fi
19968 echo "$as_me:$LINENO: result: $wx_largefile" >&5
19969echo "${ECHO_T}$wx_largefile" >&6
19970fi
19971
5b674b9d
DE
19972
19973if test "x$wx_largefile" = "xyes"; then
19974 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19975 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
19976 else
19977 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19978 fi
19979 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
19980echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19981if test "${ac_cv_sys_largefile_source+set}" = set; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19983else
19984 while :; do
19985 ac_cv_sys_largefile_source=no
19986 cat >conftest.$ac_ext <<_ACEOF
19987/* confdefs.h. */
19988_ACEOF
19989cat confdefs.h >>conftest.$ac_ext
19990cat >>conftest.$ac_ext <<_ACEOF
19991/* end confdefs.h. */
19992#include <stdio.h>
19993int
19994main ()
19995{
19996return !fseeko;
19997 ;
19998 return 0;
19999}
20000_ACEOF
20001rm -f conftest.$ac_objext
20002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20003 (eval $ac_compile) 2>conftest.er1
20004 ac_status=$?
20005 grep -v '^ *+' conftest.er1 >conftest.err
20006 rm -f conftest.er1
20007 cat conftest.err >&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } &&
9dd0f6c2 20010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20013 ac_status=$?
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; } &&
20016 { ac_try='test -s conftest.$ac_objext'
20017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018 (eval $ac_try) 2>&5
20019 ac_status=$?
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; }; then
20022 break
20023else
20024 echo "$as_me: failed program was:" >&5
20025sed 's/^/| /' conftest.$ac_ext >&5
20026
20027fi
20028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20029 cat >conftest.$ac_ext <<_ACEOF
20030/* confdefs.h. */
20031_ACEOF
20032cat confdefs.h >>conftest.$ac_ext
20033cat >>conftest.$ac_ext <<_ACEOF
20034/* end confdefs.h. */
20035#define _LARGEFILE_SOURCE 1
20036#include <stdio.h>
20037int
20038main ()
20039{
20040return !fseeko;
20041 ;
20042 return 0;
20043}
20044_ACEOF
20045rm -f conftest.$ac_objext
20046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20047 (eval $ac_compile) 2>conftest.er1
20048 ac_status=$?
20049 grep -v '^ *+' conftest.er1 >conftest.err
20050 rm -f conftest.er1
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } &&
9dd0f6c2 20054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056 (eval $ac_try) 2>&5
20057 ac_status=$?
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; } &&
20060 { ac_try='test -s conftest.$ac_objext'
20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20063 ac_status=$?
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; }; then
20066 ac_cv_sys_largefile_source=1; break
20067else
20068 echo "$as_me: failed program was:" >&5
20069sed 's/^/| /' conftest.$ac_ext >&5
20070
20071fi
20072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20073 break
20074done
20075fi
20076echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20077echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20078if test "$ac_cv_sys_largefile_source" != no; then
20079
20080cat >>confdefs.h <<_ACEOF
20081#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20082_ACEOF
20083
20084fi
20085rm -f conftest*
20086
20087# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20088# in glibc 2.1.3, but that breaks too many other things.
20089# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20090echo "$as_me:$LINENO: checking for fseeko" >&5
20091echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20092if test "${ac_cv_func_fseeko+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20094else
20095 cat >conftest.$ac_ext <<_ACEOF
20096/* confdefs.h. */
20097_ACEOF
20098cat confdefs.h >>conftest.$ac_ext
20099cat >>conftest.$ac_ext <<_ACEOF
20100/* end confdefs.h. */
20101#include <stdio.h>
20102int
20103main ()
20104{
20105return fseeko && fseeko (stdin, 0, 0);
20106 ;
20107 return 0;
20108}
20109_ACEOF
20110rm -f conftest.$ac_objext conftest$ac_exeext
20111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20112 (eval $ac_link) 2>conftest.er1
20113 ac_status=$?
20114 grep -v '^ *+' conftest.er1 >conftest.err
20115 rm -f conftest.er1
20116 cat conftest.err >&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } &&
9dd0f6c2 20119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121 (eval $ac_try) 2>&5
20122 ac_status=$?
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); }; } &&
20125 { ac_try='test -s conftest$ac_exeext'
20126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20127 (eval $ac_try) 2>&5
20128 ac_status=$?
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); }; }; then
20131 ac_cv_func_fseeko=yes
20132else
20133 echo "$as_me: failed program was:" >&5
20134sed 's/^/| /' conftest.$ac_ext >&5
20135
20136ac_cv_func_fseeko=no
20137fi
20138rm -f conftest.err conftest.$ac_objext \
20139 conftest$ac_exeext conftest.$ac_ext
20140fi
20141echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20142echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20143if test $ac_cv_func_fseeko = yes; then
20144
20145cat >>confdefs.h <<\_ACEOF
20146#define HAVE_FSEEKO 1
20147_ACEOF
20148
20149fi
20150
5b674b9d
DE
20151 if test "$ac_cv_sys_largefile_source" != no; then
20152 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20153 fi
20154 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20155fi
20156
20157echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20158echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20159if test "${ac_cv_c_bigendian+set}" = set; then
20160 echo $ECHO_N "(cached) $ECHO_C" >&6
20161else
20162 ac_cv_c_bigendian=unknown
20163# See if sys/param.h defines the BYTE_ORDER macro.
20164cat >conftest.$ac_ext <<_ACEOF
20165/* confdefs.h. */
20166_ACEOF
20167cat confdefs.h >>conftest.$ac_ext
20168cat >>conftest.$ac_ext <<_ACEOF
20169/* end confdefs.h. */
20170#include <sys/types.h>
20171#include <sys/param.h>
20172int
20173main ()
20174{
20175
20176#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20177 bogus endian macros
20178#endif
20179 ;
20180 return 0;
20181}
20182_ACEOF
20183rm -f conftest.$ac_objext
20184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20185 (eval $ac_compile) 2>conftest.er1
a848cd7e 20186 ac_status=$?
ac1cb8d3
VS
20187 grep -v '^ *+' conftest.er1 >conftest.err
20188 rm -f conftest.er1
20189 cat conftest.err >&5
a848cd7e
SC
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } &&
9dd0f6c2 20192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194 (eval $ac_try) 2>&5
20195 ac_status=$?
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); }; } &&
20198 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200 (eval $ac_try) 2>&5
20201 ac_status=$?
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; }; then
20204 # It does; now see whether it defined to BIG_ENDIAN or not.
20205cat >conftest.$ac_ext <<_ACEOF
20206/* confdefs.h. */
20207_ACEOF
20208cat confdefs.h >>conftest.$ac_ext
20209cat >>conftest.$ac_ext <<_ACEOF
20210/* end confdefs.h. */
20211#include <sys/types.h>
20212#include <sys/param.h>
20213int
20214main ()
20215{
20216
20217#if BYTE_ORDER != BIG_ENDIAN
20218 not big endian
20219#endif
20220 ;
20221 return 0;
20222}
20223_ACEOF
20224rm -f conftest.$ac_objext
20225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20226 (eval $ac_compile) 2>conftest.er1
a848cd7e 20227 ac_status=$?
ac1cb8d3
VS
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
a848cd7e
SC
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
9dd0f6c2 20233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20235 (eval $ac_try) 2>&5
20236 ac_status=$?
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; } &&
20239 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20241 (eval $ac_try) 2>&5
20242 ac_status=$?
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); }; }; then
20245 ac_cv_c_bigendian=yes
20246else
20247 echo "$as_me: failed program was:" >&5
20248sed 's/^/| /' conftest.$ac_ext >&5
20249
20250ac_cv_c_bigendian=no
20251fi
ac1cb8d3 20252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20253else
20254 echo "$as_me: failed program was:" >&5
20255sed 's/^/| /' conftest.$ac_ext >&5
20256
20257fi
ac1cb8d3 20258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20259if test $ac_cv_c_bigendian = unknown; then
20260if test "$cross_compiling" = yes; then
20261 ac_cv_c_bigendian=unknown
20262else
20263 cat >conftest.$ac_ext <<_ACEOF
20264/* confdefs.h. */
20265_ACEOF
20266cat confdefs.h >>conftest.$ac_ext
20267cat >>conftest.$ac_ext <<_ACEOF
20268/* end confdefs.h. */
20269main () {
20270 /* Are we little or big endian? From Harbison&Steele. */
20271 union
20272 {
20273 long l;
20274 char c[sizeof (long)];
20275 } u;
20276 u.l = 1;
20277 exit (u.c[sizeof (long) - 1] == 1);
20278}
20279_ACEOF
20280rm -f conftest$ac_exeext
20281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20282 (eval $ac_link) 2>&5
20283 ac_status=$?
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287 (eval $ac_try) 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); }; }; then
20291 ac_cv_c_bigendian=no
20292else
20293 echo "$as_me: program exited with status $ac_status" >&5
20294echo "$as_me: failed program was:" >&5
20295sed 's/^/| /' conftest.$ac_ext >&5
20296
20297( exit $ac_status )
20298ac_cv_c_bigendian=yes
20299fi
ac1cb8d3 20300rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20301fi
20302fi
20303fi
20304echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20305echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20306if test $ac_cv_c_bigendian = unknown; then
20307 { 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
20308echo "$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;}
20309fi
20310if test $ac_cv_c_bigendian = yes; then
20311 cat >>confdefs.h <<\_ACEOF
20312#define WORDS_BIGENDIAN 1
20313_ACEOF
20314
20315fi
20316
20317
20318ac_ext=cc
20319ac_cpp='$CXXCPP $CPPFLAGS'
20320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20323echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20324echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20325if test -z "$CXXCPP"; then
20326 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20327 echo $ECHO_N "(cached) $ECHO_C" >&6
20328else
20329 # Double quotes because CXXCPP needs to be expanded
20330 for CXXCPP in "$CXX -E" "/lib/cpp"
20331 do
20332 ac_preproc_ok=false
20333for ac_cxx_preproc_warn_flag in '' yes
20334do
20335 # Use a header file that comes with gcc, so configuring glibc
20336 # with a fresh cross-compiler works.
20337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20338 # <limits.h> exists even on freestanding compilers.
20339 # On the NeXT, cc -E runs the code through the compiler's parser,
20340 # not just through cpp. "Syntax error" is here to catch this case.
20341 cat >conftest.$ac_ext <<_ACEOF
20342/* confdefs.h. */
20343_ACEOF
20344cat confdefs.h >>conftest.$ac_ext
20345cat >>conftest.$ac_ext <<_ACEOF
20346/* end confdefs.h. */
20347#ifdef __STDC__
20348# include <limits.h>
20349#else
20350# include <assert.h>
20351#endif
ac1cb8d3 20352 Syntax error
a848cd7e
SC
20353_ACEOF
20354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20356 ac_status=$?
20357 grep -v '^ *+' conftest.er1 >conftest.err
20358 rm -f conftest.er1
20359 cat conftest.err >&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); } >/dev/null; then
20362 if test -s conftest.err; then
20363 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20364 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20365 else
20366 ac_cpp_err=
20367 fi
20368else
20369 ac_cpp_err=yes
20370fi
20371if test -z "$ac_cpp_err"; then
20372 :
20373else
20374 echo "$as_me: failed program was:" >&5
20375sed 's/^/| /' conftest.$ac_ext >&5
20376
20377 # Broken: fails on valid input.
20378continue
20379fi
20380rm -f conftest.err conftest.$ac_ext
20381
20382 # OK, works on sane cases. Now check whether non-existent headers
20383 # can be detected and how.
20384 cat >conftest.$ac_ext <<_ACEOF
20385/* confdefs.h. */
20386_ACEOF
20387cat confdefs.h >>conftest.$ac_ext
20388cat >>conftest.$ac_ext <<_ACEOF
20389/* end confdefs.h. */
20390#include <ac_nonexistent.h>
20391_ACEOF
20392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20394 ac_status=$?
20395 grep -v '^ *+' conftest.er1 >conftest.err
20396 rm -f conftest.er1
20397 cat conftest.err >&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); } >/dev/null; then
20400 if test -s conftest.err; then
20401 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20402 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20403 else
20404 ac_cpp_err=
20405 fi
20406else
20407 ac_cpp_err=yes
20408fi
20409if test -z "$ac_cpp_err"; then
20410 # Broken: success on invalid input.
20411continue
20412else
20413 echo "$as_me: failed program was:" >&5
20414sed 's/^/| /' conftest.$ac_ext >&5
20415
20416 # Passes both tests.
20417ac_preproc_ok=:
20418break
20419fi
20420rm -f conftest.err conftest.$ac_ext
20421
20422done
20423# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20424rm -f conftest.err conftest.$ac_ext
20425if $ac_preproc_ok; then
20426 break
20427fi
20428
20429 done
20430 ac_cv_prog_CXXCPP=$CXXCPP
20431
20432fi
20433 CXXCPP=$ac_cv_prog_CXXCPP
20434else
20435 ac_cv_prog_CXXCPP=$CXXCPP
20436fi
20437echo "$as_me:$LINENO: result: $CXXCPP" >&5
20438echo "${ECHO_T}$CXXCPP" >&6
20439ac_preproc_ok=false
20440for ac_cxx_preproc_warn_flag in '' yes
20441do
20442 # Use a header file that comes with gcc, so configuring glibc
20443 # with a fresh cross-compiler works.
20444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20445 # <limits.h> exists even on freestanding compilers.
20446 # On the NeXT, cc -E runs the code through the compiler's parser,
20447 # not just through cpp. "Syntax error" is here to catch this case.
20448 cat >conftest.$ac_ext <<_ACEOF
20449/* confdefs.h. */
20450_ACEOF
20451cat confdefs.h >>conftest.$ac_ext
20452cat >>conftest.$ac_ext <<_ACEOF
20453/* end confdefs.h. */
20454#ifdef __STDC__
20455# include <limits.h>
20456#else
20457# include <assert.h>
20458#endif
ac1cb8d3 20459 Syntax error
a848cd7e
SC
20460_ACEOF
20461if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20463 ac_status=$?
20464 grep -v '^ *+' conftest.er1 >conftest.err
20465 rm -f conftest.er1
20466 cat conftest.err >&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); } >/dev/null; then
20469 if test -s conftest.err; then
20470 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20471 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20472 else
20473 ac_cpp_err=
20474 fi
20475else
20476 ac_cpp_err=yes
20477fi
20478if test -z "$ac_cpp_err"; then
20479 :
20480else
20481 echo "$as_me: failed program was:" >&5
20482sed 's/^/| /' conftest.$ac_ext >&5
20483
20484 # Broken: fails on valid input.
20485continue
20486fi
20487rm -f conftest.err conftest.$ac_ext
20488
20489 # OK, works on sane cases. Now check whether non-existent headers
20490 # can be detected and how.
20491 cat >conftest.$ac_ext <<_ACEOF
20492/* confdefs.h. */
20493_ACEOF
20494cat confdefs.h >>conftest.$ac_ext
20495cat >>conftest.$ac_ext <<_ACEOF
20496/* end confdefs.h. */
20497#include <ac_nonexistent.h>
20498_ACEOF
20499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20501 ac_status=$?
20502 grep -v '^ *+' conftest.er1 >conftest.err
20503 rm -f conftest.er1
20504 cat conftest.err >&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); } >/dev/null; then
20507 if test -s conftest.err; then
20508 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20509 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20510 else
20511 ac_cpp_err=
20512 fi
20513else
20514 ac_cpp_err=yes
20515fi
20516if test -z "$ac_cpp_err"; then
20517 # Broken: success on invalid input.
20518continue
20519else
20520 echo "$as_me: failed program was:" >&5
20521sed 's/^/| /' conftest.$ac_ext >&5
20522
20523 # Passes both tests.
20524ac_preproc_ok=:
20525break
20526fi
20527rm -f conftest.err conftest.$ac_ext
20528
20529done
20530# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20531rm -f conftest.err conftest.$ac_ext
20532if $ac_preproc_ok; then
20533 :
20534else
20535 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20536See \`config.log' for more details." >&5
20537echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20538See \`config.log' for more details." >&2;}
20539 { (exit 1); exit 1; }; }
20540fi
20541
20542ac_ext=cc
20543ac_cpp='$CXXCPP $CPPFLAGS'
20544ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20545ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20546ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20547
20548
20549
20550
20551
20552 ac_ext=cc
20553ac_cpp='$CXXCPP $CPPFLAGS'
20554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20557
20558
20559
20560for ac_header in iostream
20561do
20562as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20563if eval "test \"\${$as_ac_Header+set}\" = set"; then
20564 echo "$as_me:$LINENO: checking for $ac_header" >&5
20565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20566if eval "test \"\${$as_ac_Header+set}\" = set"; then
20567 echo $ECHO_N "(cached) $ECHO_C" >&6
20568fi
20569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20571else
20572 # Is the header compilable?
20573echo "$as_me:$LINENO: checking $ac_header usability" >&5
20574echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20575cat >conftest.$ac_ext <<_ACEOF
20576/* confdefs.h. */
20577_ACEOF
20578cat confdefs.h >>conftest.$ac_ext
20579cat >>conftest.$ac_ext <<_ACEOF
20580/* end confdefs.h. */
20581$ac_includes_default
20582#include <$ac_header>
20583_ACEOF
20584rm -f conftest.$ac_objext
20585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20586 (eval $ac_compile) 2>conftest.er1
a848cd7e 20587 ac_status=$?
ac1cb8d3
VS
20588 grep -v '^ *+' conftest.er1 >conftest.err
20589 rm -f conftest.er1
20590 cat conftest.err >&5
a848cd7e
SC
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); } &&
9dd0f6c2 20593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20595 (eval $ac_try) 2>&5
20596 ac_status=$?
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; } &&
20599 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20601 (eval $ac_try) 2>&5
20602 ac_status=$?
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); }; }; then
20605 ac_header_compiler=yes
20606else
20607 echo "$as_me: failed program was:" >&5
20608sed 's/^/| /' conftest.$ac_ext >&5
20609
20610ac_header_compiler=no
20611fi
ac1cb8d3 20612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20613echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20614echo "${ECHO_T}$ac_header_compiler" >&6
20615
20616# Is the header present?
20617echo "$as_me:$LINENO: checking $ac_header presence" >&5
20618echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20619cat >conftest.$ac_ext <<_ACEOF
20620/* confdefs.h. */
20621_ACEOF
20622cat confdefs.h >>conftest.$ac_ext
20623cat >>conftest.$ac_ext <<_ACEOF
20624/* end confdefs.h. */
20625#include <$ac_header>
20626_ACEOF
20627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20629 ac_status=$?
20630 grep -v '^ *+' conftest.er1 >conftest.err
20631 rm -f conftest.er1
20632 cat conftest.err >&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } >/dev/null; then
20635 if test -s conftest.err; then
20636 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20637 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20638 else
20639 ac_cpp_err=
20640 fi
20641else
20642 ac_cpp_err=yes
20643fi
20644if test -z "$ac_cpp_err"; then
20645 ac_header_preproc=yes
20646else
20647 echo "$as_me: failed program was:" >&5
20648sed 's/^/| /' conftest.$ac_ext >&5
20649
20650 ac_header_preproc=no
20651fi
20652rm -f conftest.err conftest.$ac_ext
20653echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20654echo "${ECHO_T}$ac_header_preproc" >&6
20655
20656# So? What about this header?
ac1cb8d3
VS
20657case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20658 yes:no: )
a848cd7e
SC
20659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20660echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20662echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20663 ac_header_preproc=yes
a848cd7e 20664 ;;
ac1cb8d3 20665 no:yes:* )
a848cd7e
SC
20666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20667echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20669echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20671echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20673echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20675echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20677echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20678 (
20679 cat <<\_ASBOX
ac1cb8d3
VS
20680## ----------------------------------------- ##
20681## Report this to wx-dev@lists.wxwidgets.org ##
20682## ----------------------------------------- ##
a848cd7e
SC
20683_ASBOX
20684 ) |
20685 sed "s/^/$as_me: WARNING: /" >&2
20686 ;;
20687esac
20688echo "$as_me:$LINENO: checking for $ac_header" >&5
20689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20690if eval "test \"\${$as_ac_Header+set}\" = set"; then
20691 echo $ECHO_N "(cached) $ECHO_C" >&6
20692else
ac1cb8d3 20693 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20694fi
20695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20696echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20697
20698fi
20699if test `eval echo '${'$as_ac_Header'}'` = yes; then
20700 cat >>confdefs.h <<_ACEOF
20701#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20702_ACEOF
20703
20704fi
20705
20706done
20707
20708
20709 if test "$ac_cv_header_iostream" = "yes" ; then
20710 :
20711 else
20712 cat >>confdefs.h <<\_ACEOF
20713#define wxUSE_IOSTREAMH 1
20714_ACEOF
20715
20716 fi
20717
20718 ac_ext=c
20719ac_cpp='$CPP $CPPFLAGS'
20720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20722ac_compiler_gnu=$ac_cv_c_compiler_gnu
20723
20724
20725
20726
20727 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20728echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20729if test "${wx_cv_cpp_bool+set}" = set; then
20730 echo $ECHO_N "(cached) $ECHO_C" >&6
20731else
20732
20733
20734
20735 ac_ext=cc
20736ac_cpp='$CXXCPP $CPPFLAGS'
20737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20740
20741
20742 cat >conftest.$ac_ext <<_ACEOF
20743/* confdefs.h. */
20744_ACEOF
20745cat confdefs.h >>conftest.$ac_ext
20746cat >>conftest.$ac_ext <<_ACEOF
20747/* end confdefs.h. */
20748
20749
20750int
20751main ()
20752{
20753
20754 bool b = true;
20755
20756 return 0;
20757
20758 ;
20759 return 0;
20760}
20761_ACEOF
20762rm -f conftest.$ac_objext
20763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20764 (eval $ac_compile) 2>conftest.er1
a848cd7e 20765 ac_status=$?
ac1cb8d3
VS
20766 grep -v '^ *+' conftest.er1 >conftest.err
20767 rm -f conftest.er1
20768 cat conftest.err >&5
a848cd7e
SC
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } &&
9dd0f6c2 20771 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20774 ac_status=$?
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; } &&
20777 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779 (eval $ac_try) 2>&5
20780 ac_status=$?
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; }; then
20783
20784 wx_cv_cpp_bool=yes
20785
20786else
20787 echo "$as_me: failed program was:" >&5
20788sed 's/^/| /' conftest.$ac_ext >&5
20789
20790
20791 wx_cv_cpp_bool=no
20792
20793
20794fi
ac1cb8d3 20795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20796
20797 ac_ext=c
20798ac_cpp='$CPP $CPPFLAGS'
20799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20801ac_compiler_gnu=$ac_cv_c_compiler_gnu
20802
20803
20804fi
20805echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20806echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20807
20808 if test "$wx_cv_cpp_bool" = "yes"; then
20809 cat >>confdefs.h <<\_ACEOF
20810#define HAVE_BOOL 1
20811_ACEOF
20812
20813 fi
20814
20815
20816
20817 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20818echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20819if test "${wx_cv_explicit+set}" = set; then
20820 echo $ECHO_N "(cached) $ECHO_C" >&6
20821else
20822
20823
20824
20825 ac_ext=cc
20826ac_cpp='$CXXCPP $CPPFLAGS'
20827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20830
20831
20832 cat >conftest.$ac_ext <<_ACEOF
20833/* confdefs.h. */
20834_ACEOF
20835cat confdefs.h >>conftest.$ac_ext
20836cat >>conftest.$ac_ext <<_ACEOF
20837/* end confdefs.h. */
20838
20839 class Foo { public: explicit Foo(int) {} };
20840
20841int
20842main ()
20843{
20844
20845 return 0;
20846
20847 ;
20848 return 0;
20849}
20850_ACEOF
20851rm -f conftest.$ac_objext
20852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20853 (eval $ac_compile) 2>conftest.er1
a848cd7e 20854 ac_status=$?
ac1cb8d3
VS
20855 grep -v '^ *+' conftest.er1 >conftest.err
20856 rm -f conftest.er1
20857 cat conftest.err >&5
a848cd7e
SC
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } &&
9dd0f6c2 20860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20862 (eval $ac_try) 2>&5
20863 ac_status=$?
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); }; } &&
20866 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868 (eval $ac_try) 2>&5
20869 ac_status=$?
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; }; then
20872
20873 cat >conftest.$ac_ext <<_ACEOF
20874/* confdefs.h. */
20875_ACEOF
20876cat confdefs.h >>conftest.$ac_ext
20877cat >>conftest.$ac_ext <<_ACEOF
20878/* end confdefs.h. */
20879
20880 class Foo { public: explicit Foo(int) {} };
20881 static void TakeFoo(const Foo& foo) { }
20882
20883int
20884main ()
20885{
20886
20887 TakeFoo(17);
20888 return 0;
20889
20890 ;
20891 return 0;
20892}
20893_ACEOF
20894rm -f conftest.$ac_objext
20895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20896 (eval $ac_compile) 2>conftest.er1
a848cd7e 20897 ac_status=$?
ac1cb8d3
VS
20898 grep -v '^ *+' conftest.er1 >conftest.err
20899 rm -f conftest.er1
20900 cat conftest.err >&5
a848cd7e
SC
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } &&
9dd0f6c2 20903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905 (eval $ac_try) 2>&5
20906 ac_status=$?
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; } &&
20909 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20911 (eval $ac_try) 2>&5
20912 ac_status=$?
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); }; }; then
20915 wx_cv_explicit=no
20916else
20917 echo "$as_me: failed program was:" >&5
20918sed 's/^/| /' conftest.$ac_ext >&5
20919
20920wx_cv_explicit=yes
20921
20922fi
ac1cb8d3 20923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20924
20925else
20926 echo "$as_me: failed program was:" >&5
20927sed 's/^/| /' conftest.$ac_ext >&5
20928
20929wx_cv_explicit=no
20930
20931fi
ac1cb8d3 20932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20933
20934 ac_ext=c
20935ac_cpp='$CPP $CPPFLAGS'
20936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20938ac_compiler_gnu=$ac_cv_c_compiler_gnu
20939
20940
20941fi
20942echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20943echo "${ECHO_T}$wx_cv_explicit" >&6
20944
20945 if test "$wx_cv_explicit" = "yes"; then
20946 cat >>confdefs.h <<\_ACEOF
20947#define HAVE_EXPLICIT 1
20948_ACEOF
20949
20950 fi
20951
20952
20953echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20954echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20955if test "${ac_cv_cxx_const_cast+set}" = set; then
20956 echo $ECHO_N "(cached) $ECHO_C" >&6
20957else
20958
20959
20960 ac_ext=cc
20961ac_cpp='$CXXCPP $CPPFLAGS'
20962ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20963ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20964ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20965
20966 cat >conftest.$ac_ext <<_ACEOF
20967/* confdefs.h. */
20968_ACEOF
20969cat confdefs.h >>conftest.$ac_ext
20970cat >>conftest.$ac_ext <<_ACEOF
20971/* end confdefs.h. */
20972
20973int
20974main ()
20975{
20976int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20977 ;
20978 return 0;
20979}
20980_ACEOF
20981rm -f conftest.$ac_objext
20982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20983 (eval $ac_compile) 2>conftest.er1
a848cd7e 20984 ac_status=$?
ac1cb8d3
VS
20985 grep -v '^ *+' conftest.er1 >conftest.err
20986 rm -f conftest.er1
20987 cat conftest.err >&5
a848cd7e
SC
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } &&
9dd0f6c2 20990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992 (eval $ac_try) 2>&5
20993 ac_status=$?
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; } &&
20996 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20998 (eval $ac_try) 2>&5
20999 ac_status=$?
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); }; }; then
21002 ac_cv_cxx_const_cast=yes
21003else
21004 echo "$as_me: failed program was:" >&5
21005sed 's/^/| /' conftest.$ac_ext >&5
21006
21007ac_cv_cxx_const_cast=no
21008fi
ac1cb8d3 21009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21010 ac_ext=c
21011ac_cpp='$CPP $CPPFLAGS'
21012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21014ac_compiler_gnu=$ac_cv_c_compiler_gnu
21015
21016
21017fi
21018echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21019echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21020if test "$ac_cv_cxx_const_cast" = yes; then
21021
21022cat >>confdefs.h <<\_ACEOF
21023#define HAVE_CONST_CAST
21024_ACEOF
21025
21026fi
21027
7714864e
RL
21028echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21029echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21030if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21031 echo $ECHO_N "(cached) $ECHO_C" >&6
21032else
21033
21034
21035 ac_ext=cc
21036ac_cpp='$CXXCPP $CPPFLAGS'
21037ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21038ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21039ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21040
21041 cat >conftest.$ac_ext <<_ACEOF
21042/* confdefs.h. */
21043_ACEOF
21044cat confdefs.h >>conftest.$ac_ext
21045cat >>conftest.$ac_ext <<_ACEOF
21046/* end confdefs.h. */
21047#include <typeinfo>
21048class Base { public : Base () {} virtual void f () = 0;};
21049class Derived : public Base { public : Derived () {} virtual void f () {} };
21050class Unrelated { public : Unrelated () {} };
21051int g (Unrelated&) { return 0; }
21052int
21053main ()
21054{
21055
21056Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21057 ;
21058 return 0;
21059}
21060_ACEOF
21061rm -f conftest.$ac_objext
21062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21063 (eval $ac_compile) 2>conftest.er1
21064 ac_status=$?
21065 grep -v '^ *+' conftest.er1 >conftest.err
21066 rm -f conftest.er1
21067 cat conftest.err >&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } &&
9dd0f6c2 21070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072 (eval $ac_try) 2>&5
21073 ac_status=$?
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); }; } &&
21076 { ac_try='test -s conftest.$ac_objext'
21077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21078 (eval $ac_try) 2>&5
21079 ac_status=$?
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); }; }; then
21082 ac_cv_cxx_reinterpret_cast=yes
21083else
21084 echo "$as_me: failed program was:" >&5
21085sed 's/^/| /' conftest.$ac_ext >&5
21086
21087ac_cv_cxx_reinterpret_cast=no
21088fi
21089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21090 ac_ext=c
21091ac_cpp='$CPP $CPPFLAGS'
21092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21094ac_compiler_gnu=$ac_cv_c_compiler_gnu
21095
21096
21097fi
21098echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21099echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21100if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21101
21102cat >>confdefs.h <<\_ACEOF
21103#define HAVE_REINTERPRET_CAST
21104_ACEOF
21105
21106fi
21107
a848cd7e
SC
21108echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21109echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21110if test "${ac_cv_cxx_static_cast+set}" = set; then
21111 echo $ECHO_N "(cached) $ECHO_C" >&6
21112else
21113
21114
21115 ac_ext=cc
21116ac_cpp='$CXXCPP $CPPFLAGS'
21117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21120
21121 cat >conftest.$ac_ext <<_ACEOF
21122/* confdefs.h. */
21123_ACEOF
21124cat confdefs.h >>conftest.$ac_ext
21125cat >>conftest.$ac_ext <<_ACEOF
21126/* end confdefs.h. */
21127#include <typeinfo>
21128class Base { public : Base () {} virtual void f () = 0; };
21129class Derived : public Base { public : Derived () {} virtual void f () {} };
21130int g (Derived&) { return 0; }
21131int
21132main ()
21133{
21134
21135Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21136 ;
21137 return 0;
21138}
21139_ACEOF
21140rm -f conftest.$ac_objext
21141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21142 (eval $ac_compile) 2>conftest.er1
a848cd7e 21143 ac_status=$?
ac1cb8d3
VS
21144 grep -v '^ *+' conftest.er1 >conftest.err
21145 rm -f conftest.er1
21146 cat conftest.err >&5
a848cd7e
SC
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); } &&
9dd0f6c2 21149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21152 ac_status=$?
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; } &&
21155 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21157 (eval $ac_try) 2>&5
21158 ac_status=$?
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); }; }; then
21161 ac_cv_cxx_static_cast=yes
21162else
21163 echo "$as_me: failed program was:" >&5
21164sed 's/^/| /' conftest.$ac_ext >&5
21165
21166ac_cv_cxx_static_cast=no
21167fi
ac1cb8d3 21168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21169 ac_ext=c
21170ac_cpp='$CPP $CPPFLAGS'
21171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21173ac_compiler_gnu=$ac_cv_c_compiler_gnu
21174
21175
21176fi
21177echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21178echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21179if test "$ac_cv_cxx_static_cast" = yes; then
21180
21181cat >>confdefs.h <<\_ACEOF
21182#define HAVE_STATIC_CAST
21183_ACEOF
21184
21185fi
21186
21187
0a08f02a
MB
21188if test "$wxUSE_UNICODE" = "yes" -a \
21189 \( "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes" \); then
a848cd7e
SC
21190 ac_ext=cc
21191ac_cpp='$CXXCPP $CPPFLAGS'
21192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21195
21196
0a08f02a
MB
21197 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
21198echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
a848cd7e
SC
21199 cat >conftest.$ac_ext <<_ACEOF
21200/* confdefs.h. */
21201_ACEOF
21202cat confdefs.h >>conftest.$ac_ext
21203cat >>conftest.$ac_ext <<_ACEOF
21204/* end confdefs.h. */
21205#include <string>
a848cd7e
SC
21206int
21207main ()
21208{
0a08f02a 21209std::wstring foo;
a848cd7e
SC
21210 ;
21211 return 0;
21212}
21213_ACEOF
21214rm -f conftest.$ac_objext
21215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21216 (eval $ac_compile) 2>conftest.er1
a848cd7e 21217 ac_status=$?
ac1cb8d3
VS
21218 grep -v '^ *+' conftest.er1 >conftest.err
21219 rm -f conftest.er1
21220 cat conftest.err >&5
a848cd7e
SC
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } &&
9dd0f6c2 21223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21226 ac_status=$?
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; } &&
21229 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231 (eval $ac_try) 2>&5
21232 ac_status=$?
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; }; then
21235 echo "$as_me:$LINENO: result: yes" >&5
21236echo "${ECHO_T}yes" >&6
0a08f02a
MB
21237 cat >>confdefs.h <<\_ACEOF
21238#define HAVE_STD_WSTRING 1
21239_ACEOF
21240
a848cd7e
SC
21241else
21242 echo "$as_me: failed program was:" >&5
21243sed 's/^/| /' conftest.$ac_ext >&5
21244
21245echo "$as_me:$LINENO: result: no" >&5
21246echo "${ECHO_T}no" >&6
0a08f02a
MB
21247 echo "$as_me:$LINENO: checking if std::basic_string<wchar_t> works" >&5
21248echo $ECHO_N "checking if std::basic_string<wchar_t> works... $ECHO_C" >&6
21249 cat >conftest.$ac_ext <<_ACEOF
21250/* confdefs.h. */
21251_ACEOF
21252cat confdefs.h >>conftest.$ac_ext
21253cat >>conftest.$ac_ext <<_ACEOF
21254/* end confdefs.h. */
21255
21256 #ifdef HAVE_WCHAR_H
21257 # ifdef __CYGWIN__
21258 # include <stddef.h>
21259 # endif
21260 # include <wchar.h>
21261 #endif
21262 #ifdef HAVE_STDLIB_H
21263 # include <stdlib.h>
21264 #endif
21265 #include <stdio.h>
21266 #include <string>
21267
21268int
21269main ()
21270{
21271std::basic_string<wchar_t> foo;
21272 const wchar_t* dummy = foo.c_str();
21273 ;
21274 return 0;
21275}
21276_ACEOF
21277rm -f conftest.$ac_objext
21278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21279 (eval $ac_compile) 2>conftest.er1
21280 ac_status=$?
21281 grep -v '^ *+' conftest.er1 >conftest.err
21282 rm -f conftest.er1
21283 cat conftest.err >&5
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); } &&
21286 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21289 ac_status=$?
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; } &&
21292 { ac_try='test -s conftest.$ac_objext'
21293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294 (eval $ac_try) 2>&5
21295 ac_status=$?
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); }; }; then
21298 echo "$as_me:$LINENO: result: yes" >&5
21299echo "${ECHO_T}yes" >&6
21300else
21301 echo "$as_me: failed program was:" >&5
21302sed 's/^/| /' conftest.$ac_ext >&5
21303
21304echo "$as_me:$LINENO: result: no" >&5
21305echo "${ECHO_T}no" >&6
21306 { { echo "$as_me:$LINENO: error: Can't compile without unicode string class" >&5
21307echo "$as_me: error: Can't compile without unicode string class" >&2;}
a848cd7e 21308 { (exit 1); exit 1; }; }
0a08f02a 21309
a848cd7e 21310fi
ac1cb8d3 21311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21312
0a08f02a
MB
21313fi
21314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21315
21316 ac_ext=c
21317ac_cpp='$CPP $CPPFLAGS'
21318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21320ac_compiler_gnu=$ac_cv_c_compiler_gnu
21321
21322fi
21323
21324if test "$wxUSE_STL" = "yes"; then
21325 ac_ext=cc
21326ac_cpp='$CXXCPP $CPPFLAGS'
21327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21330
21331
21332 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21333echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21334 cat >conftest.$ac_ext <<_ACEOF
21335/* confdefs.h. */
21336_ACEOF
21337cat confdefs.h >>conftest.$ac_ext
21338cat >>conftest.$ac_ext <<_ACEOF
21339/* end confdefs.h. */
21340#include <string>
0a08f02a
MB
21341 #include <functional>
21342 #include <algorithm>
21343 #include <vector>
21344 #include <list>
a848cd7e
SC
21345int
21346main ()
21347{
0a08f02a
MB
21348std::vector<int> moo;
21349 std::list<int> foo;
21350 std::vector<int>::iterator it =
21351 std::find_if(moo.begin(), moo.end(),
21352 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21353 ;
21354 return 0;
21355}
21356_ACEOF
21357rm -f conftest.$ac_objext
21358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21359 (eval $ac_compile) 2>conftest.er1
a848cd7e 21360 ac_status=$?
ac1cb8d3
VS
21361 grep -v '^ *+' conftest.er1 >conftest.err
21362 rm -f conftest.er1
21363 cat conftest.err >&5
a848cd7e
SC
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); } &&
9dd0f6c2 21366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21368 (eval $ac_try) 2>&5
21369 ac_status=$?
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); }; } &&
21372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21374 (eval $ac_try) 2>&5
21375 ac_status=$?
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); }; }; then
21378 echo "$as_me:$LINENO: result: yes" >&5
21379echo "${ECHO_T}yes" >&6
a848cd7e
SC
21380else
21381 echo "$as_me: failed program was:" >&5
21382sed 's/^/| /' conftest.$ac_ext >&5
21383
21384echo "$as_me:$LINENO: result: no" >&5
21385echo "${ECHO_T}no" >&6
0a08f02a
MB
21386 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21387echo "$as_me: error: Basic STL functionality missing" >&2;}
21388 { (exit 1); exit 1; }; }
a848cd7e 21389fi
ac1cb8d3 21390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21391
21392 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21393echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21394 cat >conftest.$ac_ext <<_ACEOF
21395/* confdefs.h. */
21396_ACEOF
21397cat confdefs.h >>conftest.$ac_ext
21398cat >>conftest.$ac_ext <<_ACEOF
21399/* end confdefs.h. */
21400#include <string>
21401int
21402main ()
21403{
21404std::string foo, bar;
21405 foo.compare(bar);
21406 foo.compare(1, 1, bar);
21407 foo.compare(1, 1, bar, 1, 1);
21408 foo.compare("");
21409 foo.compare(1, 1, "");
21410 foo.compare(1, 1, "", 2);
21411 ;
21412 return 0;
21413}
21414_ACEOF
21415rm -f conftest.$ac_objext
21416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21417 (eval $ac_compile) 2>conftest.er1
a848cd7e 21418 ac_status=$?
ac1cb8d3
VS
21419 grep -v '^ *+' conftest.er1 >conftest.err
21420 rm -f conftest.er1
21421 cat conftest.err >&5
a848cd7e
SC
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); } &&
9dd0f6c2 21424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; } &&
21430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21433 ac_status=$?
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; }; then
21436 echo "$as_me:$LINENO: result: yes" >&5
21437echo "${ECHO_T}yes" >&6
21438 cat >>confdefs.h <<\_ACEOF
21439#define HAVE_STD_STRING_COMPARE 1
21440_ACEOF
21441
21442else
21443 echo "$as_me: failed program was:" >&5
21444sed 's/^/| /' conftest.$ac_ext >&5
21445
21446echo "$as_me:$LINENO: result: no" >&5
21447echo "${ECHO_T}no" >&6
21448fi
ac1cb8d3 21449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21450
21451 if test "${ac_cv_header_hash_map+set}" = set; then
21452 echo "$as_me:$LINENO: checking for hash_map" >&5
21453echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21454if test "${ac_cv_header_hash_map+set}" = set; then
21455 echo $ECHO_N "(cached) $ECHO_C" >&6
21456fi
21457echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21458echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21459else
21460 # Is the header compilable?
21461echo "$as_me:$LINENO: checking hash_map usability" >&5
21462echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21463cat >conftest.$ac_ext <<_ACEOF
21464/* confdefs.h. */
21465_ACEOF
21466cat confdefs.h >>conftest.$ac_ext
21467cat >>conftest.$ac_ext <<_ACEOF
21468/* end confdefs.h. */
21469$ac_includes_default
21470#include <hash_map>
21471_ACEOF
21472rm -f conftest.$ac_objext
21473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21474 (eval $ac_compile) 2>conftest.er1
bdcade0a 21475 ac_status=$?
ac1cb8d3
VS
21476 grep -v '^ *+' conftest.er1 >conftest.err
21477 rm -f conftest.er1
21478 cat conftest.err >&5
bdcade0a
MB
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); } &&
9dd0f6c2 21481 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483 (eval $ac_try) 2>&5
21484 ac_status=$?
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); }; } &&
21487 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489 (eval $ac_try) 2>&5
21490 ac_status=$?
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); }; }; then
21493 ac_header_compiler=yes
21494else
21495 echo "$as_me: failed program was:" >&5
21496sed 's/^/| /' conftest.$ac_ext >&5
21497
21498ac_header_compiler=no
21499fi
ac1cb8d3 21500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21501echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21502echo "${ECHO_T}$ac_header_compiler" >&6
21503
21504# Is the header present?
21505echo "$as_me:$LINENO: checking hash_map presence" >&5
21506echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21507cat >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 <hash_map>
21514_ACEOF
21515if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21517 ac_status=$?
21518 grep -v '^ *+' conftest.er1 >conftest.err
21519 rm -f conftest.er1
21520 cat conftest.err >&5
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); } >/dev/null; then
21523 if test -s conftest.err; then
21524 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21525 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21526 else
21527 ac_cpp_err=
21528 fi
21529else
21530 ac_cpp_err=yes
21531fi
21532if test -z "$ac_cpp_err"; then
21533 ac_header_preproc=yes
21534else
21535 echo "$as_me: failed program was:" >&5
21536sed 's/^/| /' conftest.$ac_ext >&5
21537
21538 ac_header_preproc=no
21539fi
21540rm -f conftest.err conftest.$ac_ext
21541echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21542echo "${ECHO_T}$ac_header_preproc" >&6
21543
21544# So? What about this header?
ac1cb8d3
VS
21545case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21546 yes:no: )
bdcade0a
MB
21547 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21548echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21549 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21550echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21551 ac_header_preproc=yes
bdcade0a 21552 ;;
ac1cb8d3 21553 no:yes:* )
bdcade0a
MB
21554 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21555echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21556 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21557echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21558 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21559echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21560 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21561echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21562 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21563echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21564 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21565echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21566 (
21567 cat <<\_ASBOX
ac1cb8d3
VS
21568## ----------------------------------------- ##
21569## Report this to wx-dev@lists.wxwidgets.org ##
21570## ----------------------------------------- ##
bdcade0a
MB
21571_ASBOX
21572 ) |
21573 sed "s/^/$as_me: WARNING: /" >&2
21574 ;;
21575esac
21576echo "$as_me:$LINENO: checking for hash_map" >&5
21577echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21578if test "${ac_cv_header_hash_map+set}" = set; then
21579 echo $ECHO_N "(cached) $ECHO_C" >&6
21580else
21581 ac_cv_header_hash_map=$ac_header_preproc
21582fi
21583echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21584echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21585
21586fi
21587if test $ac_cv_header_hash_map = yes; then
21588 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21589echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21590 cat >conftest.$ac_ext <<_ACEOF
21591/* confdefs.h. */
21592_ACEOF
21593cat confdefs.h >>conftest.$ac_ext
21594cat >>conftest.$ac_ext <<_ACEOF
21595/* end confdefs.h. */
21596#include <hash_map>
21597 #include <hash_set>
21598int
21599main ()
21600{
21601std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21602 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21603 ;
21604 return 0;
21605}
21606_ACEOF
21607rm -f conftest.$ac_objext
21608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21609 (eval $ac_compile) 2>conftest.er1
bdcade0a 21610 ac_status=$?
ac1cb8d3
VS
21611 grep -v '^ *+' conftest.er1 >conftest.err
21612 rm -f conftest.er1
21613 cat conftest.err >&5
bdcade0a
MB
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } &&
9dd0f6c2 21616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21619 ac_status=$?
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; } &&
21622 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624 (eval $ac_try) 2>&5
21625 ac_status=$?
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; }; then
21628 echo "$as_me:$LINENO: result: yes" >&5
21629echo "${ECHO_T}yes" >&6
21630 cat >>confdefs.h <<\_ACEOF
21631#define HAVE_HASH_MAP 1
21632_ACEOF
21633
21634 cat >>confdefs.h <<\_ACEOF
21635#define HAVE_STD_HASH_MAP 1
21636_ACEOF
21637
21638else
21639 echo "$as_me: failed program was:" >&5
21640sed 's/^/| /' conftest.$ac_ext >&5
21641
21642echo "$as_me:$LINENO: result: no" >&5
21643echo "${ECHO_T}no" >&6
21644fi
ac1cb8d3 21645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21646
21647fi
21648
21649
21650
21651 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21652 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21653echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21654if test "${ac_cv_header_ext_hash_map+set}" = set; then
21655 echo $ECHO_N "(cached) $ECHO_C" >&6
21656fi
21657echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21658echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21659else
21660 # Is the header compilable?
21661echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21662echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21663cat >conftest.$ac_ext <<_ACEOF
21664/* confdefs.h. */
21665_ACEOF
21666cat confdefs.h >>conftest.$ac_ext
21667cat >>conftest.$ac_ext <<_ACEOF
21668/* end confdefs.h. */
21669$ac_includes_default
21670#include <ext/hash_map>
21671_ACEOF
21672rm -f conftest.$ac_objext
21673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21674 (eval $ac_compile) 2>conftest.er1
bdcade0a 21675 ac_status=$?
ac1cb8d3
VS
21676 grep -v '^ *+' conftest.er1 >conftest.err
21677 rm -f conftest.er1
21678 cat conftest.err >&5
bdcade0a
MB
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); } &&
9dd0f6c2 21681 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683 (eval $ac_try) 2>&5
21684 ac_status=$?
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); }; } &&
21687 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689 (eval $ac_try) 2>&5
21690 ac_status=$?
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); }; }; then
21693 ac_header_compiler=yes
21694else
21695 echo "$as_me: failed program was:" >&5
21696sed 's/^/| /' conftest.$ac_ext >&5
21697
21698ac_header_compiler=no
21699fi
ac1cb8d3 21700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21701echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21702echo "${ECHO_T}$ac_header_compiler" >&6
21703
21704# Is the header present?
21705echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21706echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21707cat >conftest.$ac_ext <<_ACEOF
21708/* confdefs.h. */
21709_ACEOF
21710cat confdefs.h >>conftest.$ac_ext
21711cat >>conftest.$ac_ext <<_ACEOF
21712/* end confdefs.h. */
21713#include <ext/hash_map>
21714_ACEOF
21715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21717 ac_status=$?
21718 grep -v '^ *+' conftest.er1 >conftest.err
21719 rm -f conftest.er1
21720 cat conftest.err >&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } >/dev/null; then
21723 if test -s conftest.err; then
21724 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21725 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21726 else
21727 ac_cpp_err=
21728 fi
21729else
21730 ac_cpp_err=yes
21731fi
21732if test -z "$ac_cpp_err"; then
21733 ac_header_preproc=yes
21734else
21735 echo "$as_me: failed program was:" >&5
21736sed 's/^/| /' conftest.$ac_ext >&5
21737
21738 ac_header_preproc=no
21739fi
21740rm -f conftest.err conftest.$ac_ext
21741echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21742echo "${ECHO_T}$ac_header_preproc" >&6
21743
21744# So? What about this header?
ac1cb8d3
VS
21745case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21746 yes:no: )
bdcade0a
MB
21747 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21748echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21749 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21750echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21751 ac_header_preproc=yes
bdcade0a 21752 ;;
ac1cb8d3 21753 no:yes:* )
bdcade0a
MB
21754 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21755echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21756 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21757echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21758 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21759echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21760 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21761echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21762 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21763echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21764 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21765echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21766 (
21767 cat <<\_ASBOX
ac1cb8d3
VS
21768## ----------------------------------------- ##
21769## Report this to wx-dev@lists.wxwidgets.org ##
21770## ----------------------------------------- ##
bdcade0a
MB
21771_ASBOX
21772 ) |
21773 sed "s/^/$as_me: WARNING: /" >&2
21774 ;;
21775esac
21776echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21777echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21778if test "${ac_cv_header_ext_hash_map+set}" = set; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
21780else
21781 ac_cv_header_ext_hash_map=$ac_header_preproc
21782fi
21783echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21784echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21785
21786fi
21787if test $ac_cv_header_ext_hash_map = yes; then
21788 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21789echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21790 cat >conftest.$ac_ext <<_ACEOF
21791/* confdefs.h. */
21792_ACEOF
21793cat confdefs.h >>conftest.$ac_ext
21794cat >>conftest.$ac_ext <<_ACEOF
21795/* end confdefs.h. */
21796#include <ext/hash_map>
21797 #include <ext/hash_set>
21798int
21799main ()
21800{
21801__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21802 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21803 ;
21804 return 0;
21805}
21806_ACEOF
21807rm -f conftest.$ac_objext
21808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21809 (eval $ac_compile) 2>conftest.er1
bdcade0a 21810 ac_status=$?
ac1cb8d3
VS
21811 grep -v '^ *+' conftest.er1 >conftest.err
21812 rm -f conftest.er1
21813 cat conftest.err >&5
bdcade0a
MB
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); } &&
9dd0f6c2 21816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21818 (eval $ac_try) 2>&5
21819 ac_status=$?
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); }; } &&
21822 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824 (eval $ac_try) 2>&5
21825 ac_status=$?
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; }; then
21828 echo "$as_me:$LINENO: result: yes" >&5
21829echo "${ECHO_T}yes" >&6
21830 cat >>confdefs.h <<\_ACEOF
21831#define HAVE_EXT_HASH_MAP 1
21832_ACEOF
21833
21834 cat >>confdefs.h <<\_ACEOF
21835#define HAVE_GNU_CXX_HASH_MAP 1
21836_ACEOF
21837
21838else
21839 echo "$as_me: failed program was:" >&5
21840sed 's/^/| /' conftest.$ac_ext >&5
21841
21842echo "$as_me:$LINENO: result: no" >&5
21843echo "${ECHO_T}no" >&6
21844fi
ac1cb8d3 21845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21846
21847fi
21848
21849
a848cd7e
SC
21850
21851 ac_ext=c
21852ac_cpp='$CPP $CPPFLAGS'
21853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21855ac_compiler_gnu=$ac_cv_c_compiler_gnu
21856
21857fi
21858
21859
21860SEARCH_INCLUDE="\
21861 /usr/local/include \
21862 \
21863 /usr/Motif-2.1/include \
21864 /usr/Motif-1.2/include \
21865 /usr/include/Motif1.2 \
21866 /opt/xpm/include/X11 \
21867 /opt/GBxpm/include/ \
21868 /opt/GBxpm/X11/include/ \
21869 \
21870 /usr/dt/include \
21871 /usr/openwin/include \
21872 \
21873 /usr/include/Xm \
21874 \
21875 /usr/X11R6/include \
21876 /usr/X11R6.4/include \
21877 /usr/X11R5/include \
21878 /usr/X11R4/include \
21879 \
21880 /usr/include/X11R6 \
21881 /usr/include/X11R5 \
21882 /usr/include/X11R4 \
21883 \
21884 /usr/local/X11R6/include \
21885 /usr/local/X11R5/include \
21886 /usr/local/X11R4/include \
21887 \
21888 /usr/local/include/X11R6 \
21889 /usr/local/include/X11R5 \
21890 /usr/local/include/X11R4 \
21891 \
21892 /usr/X11/include \
21893 /usr/include/X11 \
21894 /usr/local/X11/include \
21895 /usr/local/include/X11 \
21896 \
21897 /usr/X386/include \
21898 /usr/x386/include \
21899 /usr/XFree86/include/X11 \
21900 \
21901 X:/XFree86/include \
21902 X:/XFree86/include/X11 \
21903 \
21904 /usr/include/gtk \
21905 /usr/local/include/gtk \
21906 /usr/include/glib \
21907 /usr/local/include/glib \
21908 \
21909 /usr/include/qt \
21910 /usr/local/include/qt \
21911 \
21912 /usr/local/arm/3.3.2/include \
21913 \
21914 /usr/include/windows \
21915 /usr/include/wine \
21916 /usr/local/include/wine \
21917 \
21918 /usr/unsupported/include \
21919 /usr/athena/include \
21920 /usr/local/x11r5/include \
21921 /usr/lpp/Xamples/include \
21922 \
21923 /usr/openwin/share/include"
21924
07158944 21925SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e
SC
21926
21927
21928cat >confcache <<\_ACEOF
21929# This file is a shell script that caches the results of configure
21930# tests run on this system so they can be shared between configure
21931# scripts and configure runs, see configure's option --config-cache.
21932# It is not useful on other systems. If it contains results you don't
21933# want to keep, you may remove or edit it.
21934#
21935# config.status only pays attention to the cache file if you give it
21936# the --recheck option to rerun configure.
21937#
21938# `ac_cv_env_foo' variables (set or unset) will be overridden when
21939# loading this file, other *unset* `ac_cv_foo' will be assigned the
21940# following values.
21941
21942_ACEOF
21943
21944# The following way of writing the cache mishandles newlines in values,
21945# but we know of no workaround that is simple, portable, and efficient.
21946# So, don't put newlines in cache variables' values.
21947# Ultrix sh set writes to stderr and can't be redirected directly,
21948# and sets the high bit in the cache file unless we assign to the vars.
21949{
21950 (set) 2>&1 |
21951 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21952 *ac_space=\ *)
21953 # `set' does not quote correctly, so add quotes (double-quote
21954 # substitution turns \\\\ into \\, and sed turns \\ into \).
21955 sed -n \
ac1cb8d3
VS
21956 "s/'/'\\\\''/g;
21957 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
21958 ;;
21959 *)
21960 # `set' quotes correctly as required by POSIX, so do not add quotes.
21961 sed -n \
ac1cb8d3 21962 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
21963 ;;
21964 esac;
21965} |
21966 sed '
21967 t clear
21968 : clear
21969 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21970 t end
21971 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21972 : end' >>confcache
21973if diff $cache_file confcache >/dev/null 2>&1; then :; else
21974 if test -w $cache_file; then
21975 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21976 cat confcache >$cache_file
21977 else
21978 echo "not updating unwritable cache $cache_file"
21979 fi
21980fi
21981rm -f confcache
21982
21983if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
21984 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
21985echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
21986if test "${wx_cv_lib_glibc21+set}" = set; then
21987 echo $ECHO_N "(cached) $ECHO_C" >&6
21988else
21989
21990 cat >conftest.$ac_ext <<_ACEOF
21991/* confdefs.h. */
21992_ACEOF
21993cat confdefs.h >>conftest.$ac_ext
21994cat >>conftest.$ac_ext <<_ACEOF
21995/* end confdefs.h. */
21996#include <features.h>
21997int
21998main ()
21999{
22000
22001 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
22002 #error not glibc2.1
22003 #endif
22004
22005 ;
22006 return 0;
22007}
22008_ACEOF
22009rm -f conftest.$ac_objext
22010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22011 (eval $ac_compile) 2>conftest.er1
a848cd7e 22012 ac_status=$?
ac1cb8d3
VS
22013 grep -v '^ *+' conftest.er1 >conftest.err
22014 rm -f conftest.er1
22015 cat conftest.err >&5
a848cd7e
SC
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } &&
9dd0f6c2 22018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22020 (eval $ac_try) 2>&5
22021 ac_status=$?
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); }; } &&
22024 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22026 (eval $ac_try) 2>&5
22027 ac_status=$?
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); }; }; then
22030
22031 wx_cv_lib_glibc21=yes
22032
22033else
22034 echo "$as_me: failed program was:" >&5
22035sed 's/^/| /' conftest.$ac_ext >&5
22036
22037
22038 wx_cv_lib_glibc21=no
22039
22040
22041fi
ac1cb8d3 22042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22043
22044fi
22045echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22046echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22047 if test "$wx_cv_lib_glibc21" = "yes"; then
22048 cat >>confdefs.h <<\_ACEOF
22049#define wxHAVE_GLIBC2 1
22050_ACEOF
22051
22052 fi
22053fi
22054
22055if test "x$wx_cv_lib_glibc21" = "xyes"; then
22056 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22057 cat >>confdefs.h <<\_ACEOF
22058#define _GNU_SOURCE 1
22059_ACEOF
22060
22061 fi
22062fi
22063
22064
22065
22066if test "$wxUSE_REGEX" != "no"; then
22067 cat >>confdefs.h <<\_ACEOF
22068#define wxUSE_REGEX 1
22069_ACEOF
22070
22071
22072 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22073 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22074echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22075 wxUSE_REGEX=builtin
22076 fi
22077
22078 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22079 if test "${ac_cv_header_regex_h+set}" = set; then
22080 echo "$as_me:$LINENO: checking for regex.h" >&5
22081echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22082if test "${ac_cv_header_regex_h+set}" = set; then
22083 echo $ECHO_N "(cached) $ECHO_C" >&6
22084fi
22085echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22086echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22087else
22088 # Is the header compilable?
22089echo "$as_me:$LINENO: checking regex.h usability" >&5
22090echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22091cat >conftest.$ac_ext <<_ACEOF
22092/* confdefs.h. */
22093_ACEOF
22094cat confdefs.h >>conftest.$ac_ext
22095cat >>conftest.$ac_ext <<_ACEOF
22096/* end confdefs.h. */
22097$ac_includes_default
22098#include <regex.h>
22099_ACEOF
22100rm -f conftest.$ac_objext
22101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22102 (eval $ac_compile) 2>conftest.er1
a848cd7e 22103 ac_status=$?
ac1cb8d3
VS
22104 grep -v '^ *+' conftest.er1 >conftest.err
22105 rm -f conftest.er1
22106 cat conftest.err >&5
a848cd7e
SC
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } &&
9dd0f6c2 22109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111 (eval $ac_try) 2>&5
22112 ac_status=$?
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); }; } &&
22115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117 (eval $ac_try) 2>&5
22118 ac_status=$?
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; }; then
22121 ac_header_compiler=yes
22122else
22123 echo "$as_me: failed program was:" >&5
22124sed 's/^/| /' conftest.$ac_ext >&5
22125
22126ac_header_compiler=no
22127fi
ac1cb8d3 22128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22130echo "${ECHO_T}$ac_header_compiler" >&6
22131
22132# Is the header present?
22133echo "$as_me:$LINENO: checking regex.h presence" >&5
22134echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22135cat >conftest.$ac_ext <<_ACEOF
22136/* confdefs.h. */
22137_ACEOF
22138cat confdefs.h >>conftest.$ac_ext
22139cat >>conftest.$ac_ext <<_ACEOF
22140/* end confdefs.h. */
22141#include <regex.h>
22142_ACEOF
22143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22145 ac_status=$?
22146 grep -v '^ *+' conftest.er1 >conftest.err
22147 rm -f conftest.er1
22148 cat conftest.err >&5
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); } >/dev/null; then
22151 if test -s conftest.err; then
22152 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22154 else
22155 ac_cpp_err=
22156 fi
22157else
22158 ac_cpp_err=yes
22159fi
22160if test -z "$ac_cpp_err"; then
22161 ac_header_preproc=yes
22162else
22163 echo "$as_me: failed program was:" >&5
22164sed 's/^/| /' conftest.$ac_ext >&5
22165
22166 ac_header_preproc=no
22167fi
22168rm -f conftest.err conftest.$ac_ext
22169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22170echo "${ECHO_T}$ac_header_preproc" >&6
22171
22172# So? What about this header?
ac1cb8d3
VS
22173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22174 yes:no: )
a848cd7e
SC
22175 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22176echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22177 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22178echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22179 ac_header_preproc=yes
a848cd7e 22180 ;;
ac1cb8d3 22181 no:yes:* )
a848cd7e
SC
22182 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22183echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22184 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22185echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22186 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22187echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22188 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22189echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22190 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22191echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22192 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22193echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22194 (
22195 cat <<\_ASBOX
ac1cb8d3
VS
22196## ----------------------------------------- ##
22197## Report this to wx-dev@lists.wxwidgets.org ##
22198## ----------------------------------------- ##
a848cd7e
SC
22199_ASBOX
22200 ) |
22201 sed "s/^/$as_me: WARNING: /" >&2
22202 ;;
22203esac
22204echo "$as_me:$LINENO: checking for regex.h" >&5
22205echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22206if test "${ac_cv_header_regex_h+set}" = set; then
22207 echo $ECHO_N "(cached) $ECHO_C" >&6
22208else
22209 ac_cv_header_regex_h=$ac_header_preproc
22210fi
22211echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22212echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22213
22214fi
22215if test $ac_cv_header_regex_h = yes; then
22216
22217for ac_func in regcomp
22218do
22219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22220echo "$as_me:$LINENO: checking for $ac_func" >&5
22221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22222if eval "test \"\${$as_ac_var+set}\" = set"; then
22223 echo $ECHO_N "(cached) $ECHO_C" >&6
22224else
22225 cat >conftest.$ac_ext <<_ACEOF
22226/* confdefs.h. */
22227_ACEOF
22228cat confdefs.h >>conftest.$ac_ext
22229cat >>conftest.$ac_ext <<_ACEOF
22230/* end confdefs.h. */
ac1cb8d3
VS
22231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22233#define $ac_func innocuous_$ac_func
22234
a848cd7e
SC
22235/* System header to define __stub macros and hopefully few prototypes,
22236 which can conflict with char $ac_func (); below.
22237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22238 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22239
a848cd7e
SC
22240#ifdef __STDC__
22241# include <limits.h>
22242#else
22243# include <assert.h>
22244#endif
ac1cb8d3
VS
22245
22246#undef $ac_func
22247
a848cd7e
SC
22248/* Override any gcc2 internal prototype to avoid an error. */
22249#ifdef __cplusplus
22250extern "C"
22251{
22252#endif
22253/* We use char because int might match the return type of a gcc2
22254 builtin and then its argument prototype would still apply. */
22255char $ac_func ();
22256/* The GNU C library defines this for functions which it implements
22257 to always fail with ENOSYS. Some functions are actually named
22258 something starting with __ and the normal name is an alias. */
22259#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22260choke me
22261#else
22262char (*f) () = $ac_func;
22263#endif
22264#ifdef __cplusplus
22265}
22266#endif
22267
22268int
22269main ()
22270{
22271return f != $ac_func;
22272 ;
22273 return 0;
22274}
22275_ACEOF
22276rm -f conftest.$ac_objext conftest$ac_exeext
22277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22278 (eval $ac_link) 2>conftest.er1
a848cd7e 22279 ac_status=$?
ac1cb8d3
VS
22280 grep -v '^ *+' conftest.er1 >conftest.err
22281 rm -f conftest.er1
22282 cat conftest.err >&5
a848cd7e
SC
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); } &&
9dd0f6c2 22285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22287 (eval $ac_try) 2>&5
22288 ac_status=$?
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); }; } &&
22291 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22293 (eval $ac_try) 2>&5
22294 ac_status=$?
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); }; }; then
22297 eval "$as_ac_var=yes"
22298else
22299 echo "$as_me: failed program was:" >&5
22300sed 's/^/| /' conftest.$ac_ext >&5
22301
22302eval "$as_ac_var=no"
22303fi
ac1cb8d3
VS
22304rm -f conftest.err conftest.$ac_objext \
22305 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22306fi
22307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22308echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22309if test `eval echo '${'$as_ac_var'}'` = yes; then
22310 cat >>confdefs.h <<_ACEOF
22311#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22312_ACEOF
22313
22314fi
22315done
22316
22317fi
22318
22319
22320
22321 if test "x$ac_cv_func_regcomp" != "xyes"; then
22322 if test "$wxUSE_REGEX" = "sys" ; then
22323 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22324echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22325 { (exit 1); exit 1; }; }
22326 else
22327 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22328echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22329 wxUSE_REGEX=builtin
22330 fi
22331 else
22332 wxUSE_REGEX=sys
22333 cat >>confdefs.h <<\_ACEOF
22334#define WX_NO_REGEX_ADVANCED 1
22335_ACEOF
22336
22337 fi
22338 fi
22339fi
22340
22341
22342ZLIB_LINK=
22343if test "$wxUSE_ZLIB" != "no" ; then
22344 cat >>confdefs.h <<\_ACEOF
22345#define wxUSE_ZLIB 1
22346_ACEOF
22347
22348
22349 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22350 if test "$USE_DARWIN" = 1; then
22351 system_zlib_h_ok="yes"
22352 else
22353 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22354echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22355if test "${ac_cv_header_zlib_h+set}" = set; then
22356 echo $ECHO_N "(cached) $ECHO_C" >&6
22357else
22358 if test "$cross_compiling" = yes; then
22359 unset ac_cv_header_zlib_h
22360
22361else
22362 cat >conftest.$ac_ext <<_ACEOF
22363/* confdefs.h. */
22364_ACEOF
22365cat confdefs.h >>conftest.$ac_ext
22366cat >>conftest.$ac_ext <<_ACEOF
22367/* end confdefs.h. */
22368
22369 #include <zlib.h>
22370 #include <stdio.h>
22371
22372 int main()
22373 {
22374 FILE *f=fopen("conftestval", "w");
22375 if (!f) exit(1);
22376 fprintf(f, "%s",
22377 ZLIB_VERSION[0] == '1' &&
22378 (ZLIB_VERSION[2] > '1' ||
22379 (ZLIB_VERSION[2] == '1' &&
22380 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22381 exit(0);
22382 }
22383
22384_ACEOF
22385rm -f conftest$ac_exeext
22386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22387 (eval $ac_link) 2>&5
22388 ac_status=$?
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392 (eval $ac_try) 2>&5
22393 ac_status=$?
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); }; }; then
22396 ac_cv_header_zlib_h=`cat conftestval`
22397else
22398 echo "$as_me: program exited with status $ac_status" >&5
22399echo "$as_me: failed program was:" >&5
22400sed 's/^/| /' conftest.$ac_ext >&5
22401
22402( exit $ac_status )
22403ac_cv_header_zlib_h=no
22404fi
ac1cb8d3 22405rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22406fi
22407
22408fi
22409echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22410echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22411 if test "${ac_cv_header_zlib_h+set}" = set; then
22412 echo "$as_me:$LINENO: checking for zlib.h" >&5
22413echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22414if test "${ac_cv_header_zlib_h+set}" = set; then
22415 echo $ECHO_N "(cached) $ECHO_C" >&6
22416fi
22417echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22418echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22419else
22420 # Is the header compilable?
22421echo "$as_me:$LINENO: checking zlib.h usability" >&5
22422echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22423cat >conftest.$ac_ext <<_ACEOF
22424/* confdefs.h. */
22425_ACEOF
22426cat confdefs.h >>conftest.$ac_ext
22427cat >>conftest.$ac_ext <<_ACEOF
22428/* end confdefs.h. */
22429$ac_includes_default
22430#include <zlib.h>
22431_ACEOF
22432rm -f conftest.$ac_objext
22433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22434 (eval $ac_compile) 2>conftest.er1
a848cd7e 22435 ac_status=$?
ac1cb8d3
VS
22436 grep -v '^ *+' conftest.er1 >conftest.err
22437 rm -f conftest.er1
22438 cat conftest.err >&5
a848cd7e
SC
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); } &&
9dd0f6c2 22441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22443 (eval $ac_try) 2>&5
22444 ac_status=$?
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); }; } &&
22447 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22449 (eval $ac_try) 2>&5
22450 ac_status=$?
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); }; }; then
22453 ac_header_compiler=yes
22454else
22455 echo "$as_me: failed program was:" >&5
22456sed 's/^/| /' conftest.$ac_ext >&5
22457
22458ac_header_compiler=no
22459fi
ac1cb8d3 22460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22461echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22462echo "${ECHO_T}$ac_header_compiler" >&6
22463
22464# Is the header present?
22465echo "$as_me:$LINENO: checking zlib.h presence" >&5
22466echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22467cat >conftest.$ac_ext <<_ACEOF
22468/* confdefs.h. */
22469_ACEOF
22470cat confdefs.h >>conftest.$ac_ext
22471cat >>conftest.$ac_ext <<_ACEOF
22472/* end confdefs.h. */
22473#include <zlib.h>
22474_ACEOF
22475if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22477 ac_status=$?
22478 grep -v '^ *+' conftest.er1 >conftest.err
22479 rm -f conftest.er1
22480 cat conftest.err >&5
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); } >/dev/null; then
22483 if test -s conftest.err; then
22484 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22486 else
22487 ac_cpp_err=
22488 fi
22489else
22490 ac_cpp_err=yes
22491fi
22492if test -z "$ac_cpp_err"; then
22493 ac_header_preproc=yes
22494else
22495 echo "$as_me: failed program was:" >&5
22496sed 's/^/| /' conftest.$ac_ext >&5
22497
22498 ac_header_preproc=no
22499fi
22500rm -f conftest.err conftest.$ac_ext
22501echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22502echo "${ECHO_T}$ac_header_preproc" >&6
22503
22504# So? What about this header?
ac1cb8d3
VS
22505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22506 yes:no: )
a848cd7e
SC
22507 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22508echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22509 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22510echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22511 ac_header_preproc=yes
a848cd7e 22512 ;;
ac1cb8d3 22513 no:yes:* )
a848cd7e
SC
22514 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22515echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22516 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22517echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22518 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22519echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22520 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22521echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22522 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22523echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22524 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22525echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22526 (
22527 cat <<\_ASBOX
ac1cb8d3
VS
22528## ----------------------------------------- ##
22529## Report this to wx-dev@lists.wxwidgets.org ##
22530## ----------------------------------------- ##
a848cd7e
SC
22531_ASBOX
22532 ) |
22533 sed "s/^/$as_me: WARNING: /" >&2
22534 ;;
22535esac
22536echo "$as_me:$LINENO: checking for zlib.h" >&5
22537echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22538if test "${ac_cv_header_zlib_h+set}" = set; then
22539 echo $ECHO_N "(cached) $ECHO_C" >&6
22540else
22541 ac_cv_header_zlib_h=$ac_header_preproc
22542fi
22543echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22544echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22545
22546fi
22547
22548
22549
22550 system_zlib_h_ok=$ac_cv_header_zlib_h
22551 fi
22552
22553 if test "$system_zlib_h_ok" = "yes"; then
22554 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22555echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22556if test "${ac_cv_lib_z_deflate+set}" = set; then
22557 echo $ECHO_N "(cached) $ECHO_C" >&6
22558else
22559 ac_check_lib_save_LIBS=$LIBS
22560LIBS="-lz $LIBS"
22561cat >conftest.$ac_ext <<_ACEOF
22562/* confdefs.h. */
22563_ACEOF
22564cat confdefs.h >>conftest.$ac_ext
22565cat >>conftest.$ac_ext <<_ACEOF
22566/* end confdefs.h. */
22567
22568/* Override any gcc2 internal prototype to avoid an error. */
22569#ifdef __cplusplus
22570extern "C"
22571#endif
22572/* We use char because int might match the return type of a gcc2
22573 builtin and then its argument prototype would still apply. */
22574char deflate ();
22575int
22576main ()
22577{
22578deflate ();
22579 ;
22580 return 0;
22581}
22582_ACEOF
22583rm -f conftest.$ac_objext conftest$ac_exeext
22584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22585 (eval $ac_link) 2>conftest.er1
a848cd7e 22586 ac_status=$?
ac1cb8d3
VS
22587 grep -v '^ *+' conftest.er1 >conftest.err
22588 rm -f conftest.er1
22589 cat conftest.err >&5
a848cd7e
SC
22590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591 (exit $ac_status); } &&
9dd0f6c2 22592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22594 (eval $ac_try) 2>&5
22595 ac_status=$?
22596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597 (exit $ac_status); }; } &&
22598 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22600 (eval $ac_try) 2>&5
22601 ac_status=$?
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); }; }; then
22604 ac_cv_lib_z_deflate=yes
22605else
22606 echo "$as_me: failed program was:" >&5
22607sed 's/^/| /' conftest.$ac_ext >&5
22608
22609ac_cv_lib_z_deflate=no
22610fi
ac1cb8d3
VS
22611rm -f conftest.err conftest.$ac_objext \
22612 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22613LIBS=$ac_check_lib_save_LIBS
22614fi
22615echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22616echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22617if test $ac_cv_lib_z_deflate = yes; then
22618 ZLIB_LINK=" -lz"
22619fi
22620
22621 fi
22622
22623 if test "x$ZLIB_LINK" = "x" ; then
22624 if test "$wxUSE_ZLIB" = "sys" ; then
22625 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22626echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22627 { (exit 1); exit 1; }; }
22628 else
22629 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22630echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22631 wxUSE_ZLIB=builtin
22632 fi
22633 else
22634 wxUSE_ZLIB=sys
22635 fi
22636 fi
22637fi
22638
22639
22640PNG_LINK=
22641if test "$wxUSE_LIBPNG" != "no" ; then
22642 cat >>confdefs.h <<\_ACEOF
22643#define wxUSE_LIBPNG 1
22644_ACEOF
22645
22646
22647 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22648 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22649echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22650 wxUSE_LIBPNG=sys
22651 fi
22652
22653 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22654 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22655echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22656 wxUSE_LIBPNG=builtin
22657 fi
22658
22659 if test "$wxUSE_MGL" != 1 ; then
22660 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22661 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22662echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22663if test "${ac_cv_header_png_h+set}" = set; then
22664 echo $ECHO_N "(cached) $ECHO_C" >&6
22665else
22666 if test "$cross_compiling" = yes; then
22667 unset ac_cv_header_png_h
22668
22669else
22670 cat >conftest.$ac_ext <<_ACEOF
22671/* confdefs.h. */
22672_ACEOF
22673cat confdefs.h >>conftest.$ac_ext
22674cat >>conftest.$ac_ext <<_ACEOF
22675/* end confdefs.h. */
22676
22677 #include <png.h>
22678 #include <stdio.h>
22679
22680 int main()
22681 {
22682 FILE *f=fopen("conftestval", "w");
22683 if (!f) exit(1);
22684 fprintf(f, "%s",
22685 PNG_LIBPNG_VER > 90 ? "yes" : "no");
22686 exit(0);
22687 }
22688
22689_ACEOF
22690rm -f conftest$ac_exeext
22691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22692 (eval $ac_link) 2>&5
22693 ac_status=$?
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22697 (eval $ac_try) 2>&5
22698 ac_status=$?
22699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700 (exit $ac_status); }; }; then
22701 ac_cv_header_png_h=`cat conftestval`
22702else
22703 echo "$as_me: program exited with status $ac_status" >&5
22704echo "$as_me: failed program was:" >&5
22705sed 's/^/| /' conftest.$ac_ext >&5
22706
22707( exit $ac_status )
22708ac_cv_header_png_h=no
22709fi
ac1cb8d3 22710rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22711fi
22712
22713fi
22714echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22715echo "${ECHO_T}$ac_cv_header_png_h" >&6
22716 if test "${ac_cv_header_png_h+set}" = set; then
22717 echo "$as_me:$LINENO: checking for png.h" >&5
22718echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22719if test "${ac_cv_header_png_h+set}" = set; then
22720 echo $ECHO_N "(cached) $ECHO_C" >&6
22721fi
22722echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22723echo "${ECHO_T}$ac_cv_header_png_h" >&6
22724else
22725 # Is the header compilable?
22726echo "$as_me:$LINENO: checking png.h usability" >&5
22727echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22728cat >conftest.$ac_ext <<_ACEOF
22729/* confdefs.h. */
22730_ACEOF
22731cat confdefs.h >>conftest.$ac_ext
22732cat >>conftest.$ac_ext <<_ACEOF
22733/* end confdefs.h. */
22734$ac_includes_default
22735#include <png.h>
22736_ACEOF
22737rm -f conftest.$ac_objext
22738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22739 (eval $ac_compile) 2>conftest.er1
a848cd7e 22740 ac_status=$?
ac1cb8d3
VS
22741 grep -v '^ *+' conftest.er1 >conftest.err
22742 rm -f conftest.er1
22743 cat conftest.err >&5
a848cd7e
SC
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); } &&
9dd0f6c2 22746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22748 (eval $ac_try) 2>&5
22749 ac_status=$?
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); }; } &&
22752 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22754 (eval $ac_try) 2>&5
22755 ac_status=$?
22756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); }; }; then
22758 ac_header_compiler=yes
22759else
22760 echo "$as_me: failed program was:" >&5
22761sed 's/^/| /' conftest.$ac_ext >&5
22762
22763ac_header_compiler=no
22764fi
ac1cb8d3 22765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22766echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22767echo "${ECHO_T}$ac_header_compiler" >&6
22768
22769# Is the header present?
22770echo "$as_me:$LINENO: checking png.h presence" >&5
22771echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22772cat >conftest.$ac_ext <<_ACEOF
22773/* confdefs.h. */
22774_ACEOF
22775cat confdefs.h >>conftest.$ac_ext
22776cat >>conftest.$ac_ext <<_ACEOF
22777/* end confdefs.h. */
22778#include <png.h>
22779_ACEOF
22780if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22782 ac_status=$?
22783 grep -v '^ *+' conftest.er1 >conftest.err
22784 rm -f conftest.er1
22785 cat conftest.err >&5
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); } >/dev/null; then
22788 if test -s conftest.err; then
22789 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22791 else
22792 ac_cpp_err=
22793 fi
22794else
22795 ac_cpp_err=yes
22796fi
22797if test -z "$ac_cpp_err"; then
22798 ac_header_preproc=yes
22799else
22800 echo "$as_me: failed program was:" >&5
22801sed 's/^/| /' conftest.$ac_ext >&5
22802
22803 ac_header_preproc=no
22804fi
22805rm -f conftest.err conftest.$ac_ext
22806echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22807echo "${ECHO_T}$ac_header_preproc" >&6
22808
22809# So? What about this header?
ac1cb8d3
VS
22810case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22811 yes:no: )
a848cd7e
SC
22812 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22813echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22814 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22815echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
22816 ac_header_preproc=yes
a848cd7e 22817 ;;
ac1cb8d3 22818 no:yes:* )
a848cd7e
SC
22819 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
22820echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22821 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
22822echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
22823 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
22824echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
22825 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
22826echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22827 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
22828echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22829 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
22830echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22831 (
22832 cat <<\_ASBOX
ac1cb8d3
VS
22833## ----------------------------------------- ##
22834## Report this to wx-dev@lists.wxwidgets.org ##
22835## ----------------------------------------- ##
a848cd7e
SC
22836_ASBOX
22837 ) |
22838 sed "s/^/$as_me: WARNING: /" >&2
22839 ;;
22840esac
22841echo "$as_me:$LINENO: checking for png.h" >&5
22842echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22843if test "${ac_cv_header_png_h+set}" = set; then
22844 echo $ECHO_N "(cached) $ECHO_C" >&6
22845else
22846 ac_cv_header_png_h=$ac_header_preproc
22847fi
22848echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22849echo "${ECHO_T}$ac_cv_header_png_h" >&6
22850
22851fi
22852
22853
22854
22855 if test "$ac_cv_header_png_h" = "yes"; then
22856 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
22857echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
22858if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
22859 echo $ECHO_N "(cached) $ECHO_C" >&6
22860else
22861 ac_check_lib_save_LIBS=$LIBS
22862LIBS="-lpng -lz -lm $LIBS"
22863cat >conftest.$ac_ext <<_ACEOF
22864/* confdefs.h. */
22865_ACEOF
22866cat confdefs.h >>conftest.$ac_ext
22867cat >>conftest.$ac_ext <<_ACEOF
22868/* end confdefs.h. */
22869
22870/* Override any gcc2 internal prototype to avoid an error. */
22871#ifdef __cplusplus
22872extern "C"
22873#endif
22874/* We use char because int might match the return type of a gcc2
22875 builtin and then its argument prototype would still apply. */
22876char png_check_sig ();
22877int
22878main ()
22879{
22880png_check_sig ();
22881 ;
22882 return 0;
22883}
22884_ACEOF
22885rm -f conftest.$ac_objext conftest$ac_exeext
22886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22887 (eval $ac_link) 2>conftest.er1
a848cd7e 22888 ac_status=$?
ac1cb8d3
VS
22889 grep -v '^ *+' conftest.er1 >conftest.err
22890 rm -f conftest.er1
22891 cat conftest.err >&5
a848cd7e
SC
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); } &&
9dd0f6c2 22894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22896 (eval $ac_try) 2>&5
22897 ac_status=$?
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); }; } &&
22900 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22902 (eval $ac_try) 2>&5
22903 ac_status=$?
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); }; }; then
22906 ac_cv_lib_png_png_check_sig=yes
22907else
22908 echo "$as_me: failed program was:" >&5
22909sed 's/^/| /' conftest.$ac_ext >&5
22910
22911ac_cv_lib_png_png_check_sig=no
22912fi
ac1cb8d3
VS
22913rm -f conftest.err conftest.$ac_objext \
22914 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22915LIBS=$ac_check_lib_save_LIBS
22916fi
22917echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
22918echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
22919if test $ac_cv_lib_png_png_check_sig = yes; then
22920 PNG_LINK=" -lpng -lz"
22921fi
22922
22923 fi
22924
22925 if test "x$PNG_LINK" = "x" ; then
22926 if test "$wxUSE_LIBPNG" = "sys" ; then
22927 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
22928echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
22929 { (exit 1); exit 1; }; }
22930 else
22931 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
22932echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
22933 wxUSE_LIBPNG=builtin
22934 fi
22935 else
22936 wxUSE_LIBPNG=sys
22937 fi
22938 fi
22939 fi
22940
22941 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
22942fi
22943
22944
22945JPEG_LINK=
22946if test "$wxUSE_LIBJPEG" != "no" ; then
22947 cat >>confdefs.h <<\_ACEOF
22948#define wxUSE_LIBJPEG 1
22949_ACEOF
22950
22951
22952 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
22953 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
22954echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
22955 wxUSE_LIBJPEG=sys
22956 fi
22957
22958 if test "$wxUSE_MGL" != 1 ; then
22959 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
22960 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22961echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
22962 if test "${ac_cv_header_jpeglib_h+set}" = set; then
22963 echo $ECHO_N "(cached) $ECHO_C" >&6
22964else
22965 cat >conftest.$ac_ext <<_ACEOF
22966/* confdefs.h. */
22967_ACEOF
22968cat confdefs.h >>conftest.$ac_ext
22969cat >>conftest.$ac_ext <<_ACEOF
22970/* end confdefs.h. */
22971
22972 #undef HAVE_STDLIB_H
22973 #include <stdio.h>
22974 #include <jpeglib.h>
22975
22976int
22977main ()
22978{
22979
22980
22981 ;
22982 return 0;
22983}
22984_ACEOF
22985rm -f conftest.$ac_objext
22986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22987 (eval $ac_compile) 2>conftest.er1
a848cd7e 22988 ac_status=$?
ac1cb8d3
VS
22989 grep -v '^ *+' conftest.er1 >conftest.err
22990 rm -f conftest.er1
22991 cat conftest.err >&5
a848cd7e
SC
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } &&
9dd0f6c2 22994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22996 (eval $ac_try) 2>&5
22997 ac_status=$?
22998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22999 (exit $ac_status); }; } &&
23000 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23002 (eval $ac_try) 2>&5
23003 ac_status=$?
23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); }; }; then
23006 ac_cv_header_jpeglib_h=yes
23007else
23008 echo "$as_me: failed program was:" >&5
23009sed 's/^/| /' conftest.$ac_ext >&5
23010
23011ac_cv_header_jpeglib_h=no
23012
23013fi
ac1cb8d3 23014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23015
23016fi
23017
23018 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23019echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23020
23021 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23022 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23023echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23024if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23025 echo $ECHO_N "(cached) $ECHO_C" >&6
23026else
23027 ac_check_lib_save_LIBS=$LIBS
23028LIBS="-ljpeg $LIBS"
23029cat >conftest.$ac_ext <<_ACEOF
23030/* confdefs.h. */
23031_ACEOF
23032cat confdefs.h >>conftest.$ac_ext
23033cat >>conftest.$ac_ext <<_ACEOF
23034/* end confdefs.h. */
23035
23036/* Override any gcc2 internal prototype to avoid an error. */
23037#ifdef __cplusplus
23038extern "C"
23039#endif
23040/* We use char because int might match the return type of a gcc2
23041 builtin and then its argument prototype would still apply. */
23042char jpeg_read_header ();
23043int
23044main ()
23045{
23046jpeg_read_header ();
23047 ;
23048 return 0;
23049}
23050_ACEOF
23051rm -f conftest.$ac_objext conftest$ac_exeext
23052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23053 (eval $ac_link) 2>conftest.er1
a848cd7e 23054 ac_status=$?
ac1cb8d3
VS
23055 grep -v '^ *+' conftest.er1 >conftest.err
23056 rm -f conftest.er1
23057 cat conftest.err >&5
a848cd7e
SC
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); } &&
9dd0f6c2 23060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23062 (eval $ac_try) 2>&5
23063 ac_status=$?
23064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065 (exit $ac_status); }; } &&
23066 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23068 (eval $ac_try) 2>&5
23069 ac_status=$?
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); }; }; then
23072 ac_cv_lib_jpeg_jpeg_read_header=yes
23073else
23074 echo "$as_me: failed program was:" >&5
23075sed 's/^/| /' conftest.$ac_ext >&5
23076
23077ac_cv_lib_jpeg_jpeg_read_header=no
23078fi
ac1cb8d3
VS
23079rm -f conftest.err conftest.$ac_objext \
23080 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23081LIBS=$ac_check_lib_save_LIBS
23082fi
23083echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23084echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23085if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23086 JPEG_LINK=" -ljpeg"
23087fi
23088
23089 fi
23090
23091 if test "x$JPEG_LINK" = "x" ; then
23092 if test "$wxUSE_LIBJPEG" = "sys" ; then
23093 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23094echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23095 { (exit 1); exit 1; }; }
23096 else
23097 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23098echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23099 wxUSE_LIBJPEG=builtin
23100 fi
23101 else
23102 wxUSE_LIBJPEG=sys
23103 fi
23104 fi
23105 fi
23106fi
23107
23108
23109TIFF_LINK=
23110TIFF_PREREQ_LINKS=-lm
23111if test "$wxUSE_LIBTIFF" != "no" ; then
23112 cat >>confdefs.h <<\_ACEOF
23113#define wxUSE_LIBTIFF 1
23114_ACEOF
23115
23116
23117 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23118 if test "$wxUSE_LIBJPEG" = "sys"; then
23119 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23120 fi
23121 if test "$wxUSE_ZLIB" = "sys"; then
23122 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23123 fi
23124 if test "${ac_cv_header_tiffio_h+set}" = set; then
23125 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23126echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23127if test "${ac_cv_header_tiffio_h+set}" = set; then
23128 echo $ECHO_N "(cached) $ECHO_C" >&6
23129fi
23130echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23131echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23132else
23133 # Is the header compilable?
23134echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23135echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23136cat >conftest.$ac_ext <<_ACEOF
23137/* confdefs.h. */
23138_ACEOF
23139cat confdefs.h >>conftest.$ac_ext
23140cat >>conftest.$ac_ext <<_ACEOF
23141/* end confdefs.h. */
23142$ac_includes_default
23143#include <tiffio.h>
23144_ACEOF
23145rm -f conftest.$ac_objext
23146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23147 (eval $ac_compile) 2>conftest.er1
a848cd7e 23148 ac_status=$?
ac1cb8d3
VS
23149 grep -v '^ *+' conftest.er1 >conftest.err
23150 rm -f conftest.er1
23151 cat conftest.err >&5
a848cd7e
SC
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); } &&
9dd0f6c2 23154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156 (eval $ac_try) 2>&5
23157 ac_status=$?
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); }; } &&
23160 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23162 (eval $ac_try) 2>&5
23163 ac_status=$?
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); }; }; then
23166 ac_header_compiler=yes
23167else
23168 echo "$as_me: failed program was:" >&5
23169sed 's/^/| /' conftest.$ac_ext >&5
23170
23171ac_header_compiler=no
23172fi
ac1cb8d3 23173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23174echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23175echo "${ECHO_T}$ac_header_compiler" >&6
23176
23177# Is the header present?
23178echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23179echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23180cat >conftest.$ac_ext <<_ACEOF
23181/* confdefs.h. */
23182_ACEOF
23183cat confdefs.h >>conftest.$ac_ext
23184cat >>conftest.$ac_ext <<_ACEOF
23185/* end confdefs.h. */
23186#include <tiffio.h>
23187_ACEOF
23188if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23190 ac_status=$?
23191 grep -v '^ *+' conftest.er1 >conftest.err
23192 rm -f conftest.er1
23193 cat conftest.err >&5
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); } >/dev/null; then
23196 if test -s conftest.err; then
23197 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23199 else
23200 ac_cpp_err=
23201 fi
23202else
23203 ac_cpp_err=yes
23204fi
23205if test -z "$ac_cpp_err"; then
23206 ac_header_preproc=yes
23207else
23208 echo "$as_me: failed program was:" >&5
23209sed 's/^/| /' conftest.$ac_ext >&5
23210
23211 ac_header_preproc=no
23212fi
23213rm -f conftest.err conftest.$ac_ext
23214echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23215echo "${ECHO_T}$ac_header_preproc" >&6
23216
23217# So? What about this header?
ac1cb8d3
VS
23218case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23219 yes:no: )
a848cd7e
SC
23220 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23221echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23222 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23223echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23224 ac_header_preproc=yes
a848cd7e 23225 ;;
ac1cb8d3 23226 no:yes:* )
a848cd7e
SC
23227 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23228echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23229 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23230echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23231 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23232echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23233 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23234echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23235 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23236echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23237 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23238echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23239 (
23240 cat <<\_ASBOX
ac1cb8d3
VS
23241## ----------------------------------------- ##
23242## Report this to wx-dev@lists.wxwidgets.org ##
23243## ----------------------------------------- ##
a848cd7e
SC
23244_ASBOX
23245 ) |
23246 sed "s/^/$as_me: WARNING: /" >&2
23247 ;;
23248esac
23249echo "$as_me:$LINENO: checking for tiffio.h" >&5
23250echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23251if test "${ac_cv_header_tiffio_h+set}" = set; then
23252 echo $ECHO_N "(cached) $ECHO_C" >&6
23253else
23254 ac_cv_header_tiffio_h=$ac_header_preproc
23255fi
23256echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23257echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23258
23259fi
23260if test $ac_cv_header_tiffio_h = yes; then
23261
23262 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23263echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23264if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23265 echo $ECHO_N "(cached) $ECHO_C" >&6
23266else
23267 ac_check_lib_save_LIBS=$LIBS
23268LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23269cat >conftest.$ac_ext <<_ACEOF
23270/* confdefs.h. */
23271_ACEOF
23272cat confdefs.h >>conftest.$ac_ext
23273cat >>conftest.$ac_ext <<_ACEOF
23274/* end confdefs.h. */
23275
23276/* Override any gcc2 internal prototype to avoid an error. */
23277#ifdef __cplusplus
23278extern "C"
23279#endif
23280/* We use char because int might match the return type of a gcc2
23281 builtin and then its argument prototype would still apply. */
23282char TIFFError ();
23283int
23284main ()
23285{
23286TIFFError ();
23287 ;
23288 return 0;
23289}
23290_ACEOF
23291rm -f conftest.$ac_objext conftest$ac_exeext
23292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23293 (eval $ac_link) 2>conftest.er1
a848cd7e 23294 ac_status=$?
ac1cb8d3
VS
23295 grep -v '^ *+' conftest.er1 >conftest.err
23296 rm -f conftest.er1
23297 cat conftest.err >&5
a848cd7e
SC
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); } &&
9dd0f6c2 23300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23302 (eval $ac_try) 2>&5
23303 ac_status=$?
23304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305 (exit $ac_status); }; } &&
23306 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23308 (eval $ac_try) 2>&5
23309 ac_status=$?
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); }; }; then
23312 ac_cv_lib_tiff_TIFFError=yes
23313else
23314 echo "$as_me: failed program was:" >&5
23315sed 's/^/| /' conftest.$ac_ext >&5
23316
23317ac_cv_lib_tiff_TIFFError=no
23318fi
ac1cb8d3
VS
23319rm -f conftest.err conftest.$ac_objext \
23320 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23321LIBS=$ac_check_lib_save_LIBS
23322fi
23323echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23324echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23325if test $ac_cv_lib_tiff_TIFFError = yes; then
23326 TIFF_LINK=" -ltiff"
23327fi
23328
23329
23330
23331fi
23332
23333
23334
23335 if test "x$TIFF_LINK" = "x" ; then
23336 if test "$wxUSE_LIBTIFF" = "sys" ; then
23337 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23338echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23339 { (exit 1); exit 1; }; }
23340 else
23341 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23342echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23343 wxUSE_LIBTIFF=builtin
23344 fi
23345 else
23346 wxUSE_LIBTIFF=sys
23347 fi
23348 fi
23349fi
23350
23351
23352if test "$wxUSE_EXPAT" != "no"; then
23353 wxUSE_XML=yes
23354 cat >>confdefs.h <<\_ACEOF
23355#define wxUSE_EXPAT 1
23356_ACEOF
23357
23358 cat >>confdefs.h <<\_ACEOF
23359#define wxUSE_XML 1
23360_ACEOF
23361
23362
23363 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23364 if test "${ac_cv_header_expat_h+set}" = set; then
23365 echo "$as_me:$LINENO: checking for expat.h" >&5
23366echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23367if test "${ac_cv_header_expat_h+set}" = set; then
23368 echo $ECHO_N "(cached) $ECHO_C" >&6
23369fi
23370echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23371echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23372else
23373 # Is the header compilable?
23374echo "$as_me:$LINENO: checking expat.h usability" >&5
23375echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23376cat >conftest.$ac_ext <<_ACEOF
23377/* confdefs.h. */
23378_ACEOF
23379cat confdefs.h >>conftest.$ac_ext
23380cat >>conftest.$ac_ext <<_ACEOF
23381/* end confdefs.h. */
23382$ac_includes_default
23383#include <expat.h>
23384_ACEOF
23385rm -f conftest.$ac_objext
23386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23387 (eval $ac_compile) 2>conftest.er1
a848cd7e 23388 ac_status=$?
ac1cb8d3
VS
23389 grep -v '^ *+' conftest.er1 >conftest.err
23390 rm -f conftest.er1
23391 cat conftest.err >&5
a848cd7e
SC
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); } &&
9dd0f6c2 23394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396 (eval $ac_try) 2>&5
23397 ac_status=$?
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); }; } &&
23400 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402 (eval $ac_try) 2>&5
23403 ac_status=$?
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); }; }; then
23406 ac_header_compiler=yes
23407else
23408 echo "$as_me: failed program was:" >&5
23409sed 's/^/| /' conftest.$ac_ext >&5
23410
23411ac_header_compiler=no
23412fi
ac1cb8d3 23413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23414echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23415echo "${ECHO_T}$ac_header_compiler" >&6
23416
23417# Is the header present?
23418echo "$as_me:$LINENO: checking expat.h presence" >&5
23419echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23420cat >conftest.$ac_ext <<_ACEOF
23421/* confdefs.h. */
23422_ACEOF
23423cat confdefs.h >>conftest.$ac_ext
23424cat >>conftest.$ac_ext <<_ACEOF
23425/* end confdefs.h. */
23426#include <expat.h>
23427_ACEOF
23428if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23430 ac_status=$?
23431 grep -v '^ *+' conftest.er1 >conftest.err
23432 rm -f conftest.er1
23433 cat conftest.err >&5
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); } >/dev/null; then
23436 if test -s conftest.err; then
23437 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23439 else
23440 ac_cpp_err=
23441 fi
23442else
23443 ac_cpp_err=yes
23444fi
23445if test -z "$ac_cpp_err"; then
23446 ac_header_preproc=yes
23447else
23448 echo "$as_me: failed program was:" >&5
23449sed 's/^/| /' conftest.$ac_ext >&5
23450
23451 ac_header_preproc=no
23452fi
23453rm -f conftest.err conftest.$ac_ext
23454echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23455echo "${ECHO_T}$ac_header_preproc" >&6
23456
23457# So? What about this header?
ac1cb8d3
VS
23458case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23459 yes:no: )
a848cd7e
SC
23460 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23461echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23462 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23463echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23464 ac_header_preproc=yes
a848cd7e 23465 ;;
ac1cb8d3 23466 no:yes:* )
a848cd7e
SC
23467 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23468echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23469 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23470echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23471 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23472echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23473 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23474echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23475 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23476echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23477 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23478echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23479 (
23480 cat <<\_ASBOX
ac1cb8d3
VS
23481## ----------------------------------------- ##
23482## Report this to wx-dev@lists.wxwidgets.org ##
23483## ----------------------------------------- ##
a848cd7e
SC
23484_ASBOX
23485 ) |
23486 sed "s/^/$as_me: WARNING: /" >&2
23487 ;;
23488esac
23489echo "$as_me:$LINENO: checking for expat.h" >&5
23490echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23491if test "${ac_cv_header_expat_h+set}" = set; then
23492 echo $ECHO_N "(cached) $ECHO_C" >&6
23493else
23494 ac_cv_header_expat_h=$ac_header_preproc
23495fi
23496echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23497echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23498
23499fi
23500if test $ac_cv_header_expat_h = yes; then
23501 found_expat_h=1
23502fi
23503
23504
23505 if test "x$found_expat_h" = "x1"; then
23506 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23507echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23508if test "${wx_cv_expat_is_not_broken+set}" = set; then
23509 echo $ECHO_N "(cached) $ECHO_C" >&6
23510else
23511
23512
23513
23514 ac_ext=cc
23515ac_cpp='$CXXCPP $CPPFLAGS'
23516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23519
23520 cat >conftest.$ac_ext <<_ACEOF
23521/* confdefs.h. */
23522_ACEOF
23523cat confdefs.h >>conftest.$ac_ext
23524cat >>conftest.$ac_ext <<_ACEOF
23525/* end confdefs.h. */
23526#include <expat.h>
23527int
23528main ()
23529{
23530
23531 ;
23532 return 0;
23533}
23534_ACEOF
23535rm -f conftest.$ac_objext
23536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23537 (eval $ac_compile) 2>conftest.er1
a848cd7e 23538 ac_status=$?
ac1cb8d3
VS
23539 grep -v '^ *+' conftest.er1 >conftest.err
23540 rm -f conftest.er1
23541 cat conftest.err >&5
a848cd7e
SC
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } &&
9dd0f6c2 23544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546 (eval $ac_try) 2>&5
23547 ac_status=$?
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); }; } &&
23550 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552 (eval $ac_try) 2>&5
23553 ac_status=$?
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); }; }; then
23556 wx_cv_expat_is_not_broken=yes
23557else
23558 echo "$as_me: failed program was:" >&5
23559sed 's/^/| /' conftest.$ac_ext >&5
23560
23561wx_cv_expat_is_not_broken=no
23562
23563fi
ac1cb8d3 23564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23565 ac_ext=c
23566ac_cpp='$CPP $CPPFLAGS'
23567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23569ac_compiler_gnu=$ac_cv_c_compiler_gnu
23570
23571
23572
23573fi
23574echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23575echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23576 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23577 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23578echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23579if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23580 echo $ECHO_N "(cached) $ECHO_C" >&6
23581else
23582 ac_check_lib_save_LIBS=$LIBS
23583LIBS="-lexpat $LIBS"
23584cat >conftest.$ac_ext <<_ACEOF
23585/* confdefs.h. */
23586_ACEOF
23587cat confdefs.h >>conftest.$ac_ext
23588cat >>conftest.$ac_ext <<_ACEOF
23589/* end confdefs.h. */
23590
23591/* Override any gcc2 internal prototype to avoid an error. */
23592#ifdef __cplusplus
23593extern "C"
23594#endif
23595/* We use char because int might match the return type of a gcc2
23596 builtin and then its argument prototype would still apply. */
23597char XML_ParserCreate ();
23598int
23599main ()
23600{
23601XML_ParserCreate ();
23602 ;
23603 return 0;
23604}
23605_ACEOF
23606rm -f conftest.$ac_objext conftest$ac_exeext
23607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23608 (eval $ac_link) 2>conftest.er1
a848cd7e 23609 ac_status=$?
ac1cb8d3
VS
23610 grep -v '^ *+' conftest.er1 >conftest.err
23611 rm -f conftest.er1
23612 cat conftest.err >&5
a848cd7e
SC
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); } &&
9dd0f6c2 23615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617 (eval $ac_try) 2>&5
23618 ac_status=$?
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); }; } &&
23621 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23623 (eval $ac_try) 2>&5
23624 ac_status=$?
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); }; }; then
23627 ac_cv_lib_expat_XML_ParserCreate=yes
23628else
23629 echo "$as_me: failed program was:" >&5
23630sed 's/^/| /' conftest.$ac_ext >&5
23631
23632ac_cv_lib_expat_XML_ParserCreate=no
23633fi
ac1cb8d3
VS
23634rm -f conftest.err conftest.$ac_objext \
23635 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23636LIBS=$ac_check_lib_save_LIBS
23637fi
23638echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23639echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23640if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23641 EXPAT_LINK=" -lexpat"
23642fi
23643
23644 fi
23645 fi
23646 if test "x$EXPAT_LINK" = "x" ; then
23647 if test "$wxUSE_EXPAT" = "sys" ; then
23648 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23649echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23650 { (exit 1); exit 1; }; }
23651 else
23652 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23653echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23654 wxUSE_EXPAT=builtin
23655 fi
23656 else
23657 wxUSE_EXPAT=sys
23658 fi
23659 fi
23660 if test "$wxUSE_EXPAT" = "builtin" ; then
23661
23662
23663subdirs="$subdirs src/expat"
23664
23665 fi
23666fi
23667
23668
23669
23670if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
23671 if test "${ac_cv_header_mspack_h+set}" = set; then
23672 echo "$as_me:$LINENO: checking for mspack.h" >&5
23673echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23674if test "${ac_cv_header_mspack_h+set}" = set; then
23675 echo $ECHO_N "(cached) $ECHO_C" >&6
23676fi
23677echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23678echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23679else
23680 # Is the header compilable?
23681echo "$as_me:$LINENO: checking mspack.h usability" >&5
23682echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23683cat >conftest.$ac_ext <<_ACEOF
23684/* confdefs.h. */
23685_ACEOF
23686cat confdefs.h >>conftest.$ac_ext
23687cat >>conftest.$ac_ext <<_ACEOF
23688/* end confdefs.h. */
23689$ac_includes_default
23690#include <mspack.h>
23691_ACEOF
23692rm -f conftest.$ac_objext
23693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23694 (eval $ac_compile) 2>conftest.er1
a848cd7e 23695 ac_status=$?
ac1cb8d3
VS
23696 grep -v '^ *+' conftest.er1 >conftest.err
23697 rm -f conftest.er1
23698 cat conftest.err >&5
a848cd7e
SC
23699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700 (exit $ac_status); } &&
9dd0f6c2 23701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23703 (eval $ac_try) 2>&5
23704 ac_status=$?
23705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706 (exit $ac_status); }; } &&
23707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23709 (eval $ac_try) 2>&5
23710 ac_status=$?
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); }; }; then
23713 ac_header_compiler=yes
23714else
23715 echo "$as_me: failed program was:" >&5
23716sed 's/^/| /' conftest.$ac_ext >&5
23717
23718ac_header_compiler=no
23719fi
ac1cb8d3 23720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23721echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23722echo "${ECHO_T}$ac_header_compiler" >&6
23723
23724# Is the header present?
23725echo "$as_me:$LINENO: checking mspack.h presence" >&5
23726echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23727cat >conftest.$ac_ext <<_ACEOF
23728/* confdefs.h. */
23729_ACEOF
23730cat confdefs.h >>conftest.$ac_ext
23731cat >>conftest.$ac_ext <<_ACEOF
23732/* end confdefs.h. */
23733#include <mspack.h>
23734_ACEOF
23735if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23737 ac_status=$?
23738 grep -v '^ *+' conftest.er1 >conftest.err
23739 rm -f conftest.er1
23740 cat conftest.err >&5
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); } >/dev/null; then
23743 if test -s conftest.err; then
23744 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23746 else
23747 ac_cpp_err=
23748 fi
23749else
23750 ac_cpp_err=yes
23751fi
23752if test -z "$ac_cpp_err"; then
23753 ac_header_preproc=yes
23754else
23755 echo "$as_me: failed program was:" >&5
23756sed 's/^/| /' conftest.$ac_ext >&5
23757
23758 ac_header_preproc=no
23759fi
23760rm -f conftest.err conftest.$ac_ext
23761echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23762echo "${ECHO_T}$ac_header_preproc" >&6
23763
23764# So? What about this header?
ac1cb8d3
VS
23765case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23766 yes:no: )
a848cd7e
SC
23767 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23768echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23769 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23770echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23771 ac_header_preproc=yes
a848cd7e 23772 ;;
ac1cb8d3 23773 no:yes:* )
a848cd7e
SC
23774 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23775echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23776 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
23777echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
23778 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23779echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23780 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
23781echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23782 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23783echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23784 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23785echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23786 (
23787 cat <<\_ASBOX
ac1cb8d3
VS
23788## ----------------------------------------- ##
23789## Report this to wx-dev@lists.wxwidgets.org ##
23790## ----------------------------------------- ##
a848cd7e
SC
23791_ASBOX
23792 ) |
23793 sed "s/^/$as_me: WARNING: /" >&2
23794 ;;
23795esac
23796echo "$as_me:$LINENO: checking for mspack.h" >&5
23797echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23798if test "${ac_cv_header_mspack_h+set}" = set; then
23799 echo $ECHO_N "(cached) $ECHO_C" >&6
23800else
23801 ac_cv_header_mspack_h=$ac_header_preproc
23802fi
23803echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23804echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23805
23806fi
23807if test $ac_cv_header_mspack_h = yes; then
23808 found_mspack_h=1
23809fi
23810
23811
23812 if test "x$found_mspack_h" = "x1"; then
23813 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
23814echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
23815if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
23816 echo $ECHO_N "(cached) $ECHO_C" >&6
23817else
23818 ac_check_lib_save_LIBS=$LIBS
23819LIBS="-lmspack $LIBS"
23820cat >conftest.$ac_ext <<_ACEOF
23821/* confdefs.h. */
23822_ACEOF
23823cat confdefs.h >>conftest.$ac_ext
23824cat >>conftest.$ac_ext <<_ACEOF
23825/* end confdefs.h. */
23826
23827/* Override any gcc2 internal prototype to avoid an error. */
23828#ifdef __cplusplus
23829extern "C"
23830#endif
23831/* We use char because int might match the return type of a gcc2
23832 builtin and then its argument prototype would still apply. */
23833char mspack_create_chm_decompressor ();
23834int
23835main ()
23836{
23837mspack_create_chm_decompressor ();
23838 ;
23839 return 0;
23840}
23841_ACEOF
23842rm -f conftest.$ac_objext conftest$ac_exeext
23843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23844 (eval $ac_link) 2>conftest.er1
a848cd7e 23845 ac_status=$?
ac1cb8d3
VS
23846 grep -v '^ *+' conftest.er1 >conftest.err
23847 rm -f conftest.er1
23848 cat conftest.err >&5
a848cd7e
SC
23849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850 (exit $ac_status); } &&
9dd0f6c2 23851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23853 (eval $ac_try) 2>&5
23854 ac_status=$?
23855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23856 (exit $ac_status); }; } &&
23857 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23859 (eval $ac_try) 2>&5
23860 ac_status=$?
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); }; }; then
23863 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
23864else
23865 echo "$as_me: failed program was:" >&5
23866sed 's/^/| /' conftest.$ac_ext >&5
23867
23868ac_cv_lib_mspack_mspack_create_chm_decompressor=no
23869fi
ac1cb8d3
VS
23870rm -f conftest.err conftest.$ac_objext \
23871 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23872LIBS=$ac_check_lib_save_LIBS
23873fi
23874echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
23875echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
23876if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
23877 MSPACK_LINK=" -lmspack"
23878fi
23879
23880 fi
23881 if test "x$MSPACK_LINK" = "x" ; then
23882 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
23883 fi
23884fi
23885
23886if test "$wxUSE_LIBMSPACK" != "no"; then
23887 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
23888#define wxUSE_LIBMSPACK 1
23889_ACEOF
23890
a848cd7e
SC
23891fi
23892
23893
23894
23895AFMINSTALL=
23896WIN32INSTALL=
23897
23898TOOLKIT=
23899TOOLKIT_INCLUDE=
23900WIDGET_SET=
23901
23902if test "$USE_WIN32" = 1 ; then
23903
23904for ac_header in w32api.h
23905do
23906as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23907if eval "test \"\${$as_ac_Header+set}\" = set"; then
23908 echo "$as_me:$LINENO: checking for $ac_header" >&5
23909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23910if eval "test \"\${$as_ac_Header+set}\" = set"; then
23911 echo $ECHO_N "(cached) $ECHO_C" >&6
23912fi
23913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23914echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23915else
23916 # Is the header compilable?
23917echo "$as_me:$LINENO: checking $ac_header usability" >&5
23918echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23919cat >conftest.$ac_ext <<_ACEOF
23920/* confdefs.h. */
23921_ACEOF
23922cat confdefs.h >>conftest.$ac_ext
23923cat >>conftest.$ac_ext <<_ACEOF
23924/* end confdefs.h. */
23925$ac_includes_default
23926#include <$ac_header>
23927_ACEOF
23928rm -f conftest.$ac_objext
23929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23930 (eval $ac_compile) 2>conftest.er1
a848cd7e 23931 ac_status=$?
ac1cb8d3
VS
23932 grep -v '^ *+' conftest.er1 >conftest.err
23933 rm -f conftest.er1
23934 cat conftest.err >&5
a848cd7e
SC
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); } &&
9dd0f6c2 23937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23939 (eval $ac_try) 2>&5
23940 ac_status=$?
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); }; } &&
23943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23945 (eval $ac_try) 2>&5
23946 ac_status=$?
23947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948 (exit $ac_status); }; }; then
23949 ac_header_compiler=yes
23950else
23951 echo "$as_me: failed program was:" >&5
23952sed 's/^/| /' conftest.$ac_ext >&5
23953
23954ac_header_compiler=no
23955fi
ac1cb8d3 23956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23957echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23958echo "${ECHO_T}$ac_header_compiler" >&6
23959
23960# Is the header present?
23961echo "$as_me:$LINENO: checking $ac_header presence" >&5
23962echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23963cat >conftest.$ac_ext <<_ACEOF
23964/* confdefs.h. */
23965_ACEOF
23966cat confdefs.h >>conftest.$ac_ext
23967cat >>conftest.$ac_ext <<_ACEOF
23968/* end confdefs.h. */
23969#include <$ac_header>
23970_ACEOF
23971if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23973 ac_status=$?
23974 grep -v '^ *+' conftest.er1 >conftest.err
23975 rm -f conftest.er1
23976 cat conftest.err >&5
23977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978 (exit $ac_status); } >/dev/null; then
23979 if test -s conftest.err; then
23980 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23982 else
23983 ac_cpp_err=
23984 fi
23985else
23986 ac_cpp_err=yes
23987fi
23988if test -z "$ac_cpp_err"; then
23989 ac_header_preproc=yes
23990else
23991 echo "$as_me: failed program was:" >&5
23992sed 's/^/| /' conftest.$ac_ext >&5
23993
23994 ac_header_preproc=no
23995fi
23996rm -f conftest.err conftest.$ac_ext
23997echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23998echo "${ECHO_T}$ac_header_preproc" >&6
23999
24000# So? What about this header?
ac1cb8d3
VS
24001case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24002 yes:no: )
a848cd7e
SC
24003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24004echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24006echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24007 ac_header_preproc=yes
a848cd7e 24008 ;;
ac1cb8d3 24009 no:yes:* )
a848cd7e
SC
24010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24011echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24013echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24015echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24017echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24019echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24021echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24022 (
24023 cat <<\_ASBOX
ac1cb8d3
VS
24024## ----------------------------------------- ##
24025## Report this to wx-dev@lists.wxwidgets.org ##
24026## ----------------------------------------- ##
a848cd7e
SC
24027_ASBOX
24028 ) |
24029 sed "s/^/$as_me: WARNING: /" >&2
24030 ;;
24031esac
24032echo "$as_me:$LINENO: checking for $ac_header" >&5
24033echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24034if eval "test \"\${$as_ac_Header+set}\" = set"; then
24035 echo $ECHO_N "(cached) $ECHO_C" >&6
24036else
ac1cb8d3 24037 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24038fi
24039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24040echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24041
24042fi
24043if test `eval echo '${'$as_ac_Header'}'` = yes; then
24044 cat >>confdefs.h <<_ACEOF
24045#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24046_ACEOF
24047
24048fi
24049
24050done
24051
24052 if test "${ac_cv_header_windows_h+set}" = set; then
24053 echo "$as_me:$LINENO: checking for windows.h" >&5
24054echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24055if test "${ac_cv_header_windows_h+set}" = set; then
24056 echo $ECHO_N "(cached) $ECHO_C" >&6
24057fi
24058echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24059echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24060else
24061 # Is the header compilable?
24062echo "$as_me:$LINENO: checking windows.h usability" >&5
24063echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24064cat >conftest.$ac_ext <<_ACEOF
24065/* confdefs.h. */
24066_ACEOF
24067cat confdefs.h >>conftest.$ac_ext
24068cat >>conftest.$ac_ext <<_ACEOF
24069/* end confdefs.h. */
24070$ac_includes_default
24071#include <windows.h>
24072_ACEOF
24073rm -f conftest.$ac_objext
24074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24075 (eval $ac_compile) 2>conftest.er1
a848cd7e 24076 ac_status=$?
ac1cb8d3
VS
24077 grep -v '^ *+' conftest.er1 >conftest.err
24078 rm -f conftest.er1
24079 cat conftest.err >&5
a848cd7e
SC
24080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 (exit $ac_status); } &&
9dd0f6c2 24082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24084 (eval $ac_try) 2>&5
24085 ac_status=$?
24086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087 (exit $ac_status); }; } &&
24088 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24090 (eval $ac_try) 2>&5
24091 ac_status=$?
24092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093 (exit $ac_status); }; }; then
24094 ac_header_compiler=yes
24095else
24096 echo "$as_me: failed program was:" >&5
24097sed 's/^/| /' conftest.$ac_ext >&5
24098
24099ac_header_compiler=no
24100fi
ac1cb8d3 24101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24102echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24103echo "${ECHO_T}$ac_header_compiler" >&6
24104
24105# Is the header present?
24106echo "$as_me:$LINENO: checking windows.h presence" >&5
24107echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24108cat >conftest.$ac_ext <<_ACEOF
24109/* confdefs.h. */
24110_ACEOF
24111cat confdefs.h >>conftest.$ac_ext
24112cat >>conftest.$ac_ext <<_ACEOF
24113/* end confdefs.h. */
24114#include <windows.h>
24115_ACEOF
24116if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24118 ac_status=$?
24119 grep -v '^ *+' conftest.er1 >conftest.err
24120 rm -f conftest.er1
24121 cat conftest.err >&5
24122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123 (exit $ac_status); } >/dev/null; then
24124 if test -s conftest.err; then
24125 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24127 else
24128 ac_cpp_err=
24129 fi
24130else
24131 ac_cpp_err=yes
24132fi
24133if test -z "$ac_cpp_err"; then
24134 ac_header_preproc=yes
24135else
24136 echo "$as_me: failed program was:" >&5
24137sed 's/^/| /' conftest.$ac_ext >&5
24138
24139 ac_header_preproc=no
24140fi
24141rm -f conftest.err conftest.$ac_ext
24142echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24143echo "${ECHO_T}$ac_header_preproc" >&6
24144
24145# So? What about this header?
ac1cb8d3
VS
24146case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24147 yes:no: )
a848cd7e
SC
24148 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24149echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24150 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24151echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24152 ac_header_preproc=yes
a848cd7e 24153 ;;
ac1cb8d3 24154 no:yes:* )
a848cd7e
SC
24155 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24156echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24157 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24158echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24159 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24160echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24161 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24162echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24163 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24164echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24165 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24166echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24167 (
24168 cat <<\_ASBOX
ac1cb8d3
VS
24169## ----------------------------------------- ##
24170## Report this to wx-dev@lists.wxwidgets.org ##
24171## ----------------------------------------- ##
a848cd7e
SC
24172_ASBOX
24173 ) |
24174 sed "s/^/$as_me: WARNING: /" >&2
24175 ;;
24176esac
24177echo "$as_me:$LINENO: checking for windows.h" >&5
24178echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24179if test "${ac_cv_header_windows_h+set}" = set; then
24180 echo $ECHO_N "(cached) $ECHO_C" >&6
24181else
24182 ac_cv_header_windows_h=$ac_header_preproc
24183fi
24184echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24185echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24186
24187fi
24188if test $ac_cv_header_windows_h = yes; then
24189 :
24190else
24191
24192 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24193echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24194 { (exit 1); exit 1; }; }
24195
24196fi
24197
24198
24199
24200 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24201
24202 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24203 LIBS="$LIBS -loleacc"
24204 fi
24205
24206 case "${host}" in
24207 *-*-cygwin* )
24208 LIBS="$LIBS -lkernel32 -luser32"
24209 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24210 esac
24211
24212 if test "$wxUSE_ODBC" = "sys" ; then
24213 wxUSE_ODBC = "yes"
24214 fi
24215 if test "$wxUSE_ODBC" = "yes" ; then
24216 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24217 cat >>confdefs.h <<\_ACEOF
24218#define wxUSE_ODBC 1
24219_ACEOF
24220
24221 fi
24222
24223 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24224 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24225
24226 WIN32INSTALL=win32install
24227fi
24228
24229if test "$wxUSE_GUI" = "yes"; then
24230 USE_GUI=1
24231
24232 GUI_TK_LIBRARY=
24233
24234 WXGTK12=
24235 WXGTK127=
24236 WXGTK20=
24237 WXGPE=
24238
207bc66c
RN
24239 if test "$wxUSE_COCOA" = 1 ; then
24240 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24241 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24242echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24243 wxUSE_PRINTING_ARCHITECTURE=no
24244 fi
24245 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24246 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24247echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24248 wxUSE_DRAG_AND_DROP=no
24249 fi
24250 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24251 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24252echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24253 wxUSE_DRAGIMAGE=no
24254 fi
24255 fi
24256
a848cd7e
SC
24257 if test "$wxUSE_MSW" = 1 ; then
24258 TOOLKIT=MSW
24259 GUIDIST=MSW_DIST
24260
ceec2216 24261 case "${host}" in
a848cd7e
SC
24262 *-*-mingw32* )
24263 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24264 esac
24265 fi
24266
24267 if test "$wxUSE_GTK" = 1; then
24268 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24269echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24270
24271 gtk_version_cached=1
24272 if test "${wx_cv_lib_gtk+set}" = set; then
24273 echo $ECHO_N "(cached) $ECHO_C" >&6
24274else
24275
24276 gtk_version_cached=0
24277 echo "$as_me:$LINENO: result: " >&5
24278echo "${ECHO_T}" >&6
24279
24280 GTK_MODULES=
24281 if test "$wxUSE_THREADS" = "yes"; then
24282 GTK_MODULES=gthread
24283 fi
24284
f597b41c 24285 wx_cv_lib_gtk=
f34ca037 24286 if test "x$wxGTK_VERSION" != "x1"; then
a848cd7e
SC
24287 # Check whether --enable-gtktest or --disable-gtktest was given.
24288if test "${enable_gtktest+set}" = set; then
24289 enableval="$enable_gtktest"
24290
24291else
24292 enable_gtktest=yes
24293fi;
24294
24295 pkg_config_args=gtk+-2.0
24296 for module in . $GTK_MODULES
24297 do
24298 case "$module" in
24299 gthread)
24300 pkg_config_args="$pkg_config_args gthread-2.0"
24301 ;;
24302 esac
24303 done
24304
24305 no_gtk=""
24306
24307 # Extract the first word of "pkg-config", so it can be a program name with args.
24308set dummy pkg-config; ac_word=$2
24309echo "$as_me:$LINENO: checking for $ac_word" >&5
24310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24311if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24312 echo $ECHO_N "(cached) $ECHO_C" >&6
24313else
24314 case $PKG_CONFIG in
24315 [\\/]* | ?:[\\/]*)
24316 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24317 ;;
24318 *)
24319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24320for as_dir in $PATH
24321do
24322 IFS=$as_save_IFS
24323 test -z "$as_dir" && as_dir=.
24324 for ac_exec_ext in '' $ac_executable_extensions; do
24325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24326 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24328 break 2
24329 fi
24330done
24331done
24332
24333 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24334 ;;
24335esac
24336fi
24337PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24338
24339if test -n "$PKG_CONFIG"; then
24340 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24341echo "${ECHO_T}$PKG_CONFIG" >&6
24342else
24343 echo "$as_me:$LINENO: result: no" >&5
24344echo "${ECHO_T}no" >&6
24345fi
24346
24347
24348 if test x$PKG_CONFIG != xno ; then
24349 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24350 :
24351 else
c2218763 24352 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24353 no_gtk=yes
24354 PKG_CONFIG=no
24355 fi
24356 else
24357 no_gtk=yes
24358 fi
24359
24360 min_gtk_version=2.0.0
24361 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24362echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24363
24364 if test x$PKG_CONFIG != xno ; then
24365 ## don't try to run the test against uninstalled libtool libs
24366 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24367 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24368 enable_gtktest=no
24369 fi
24370
24371 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24372 :
24373 else
24374 no_gtk=yes
24375 fi
24376 fi
24377
24378 if test x"$no_gtk" = x ; then
24379 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24380 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24381 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24382 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24383 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24384 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24385 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24386 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24387 if test "x$enable_gtktest" = "xyes" ; then
24388 ac_save_CFLAGS="$CFLAGS"
24389 ac_save_LIBS="$LIBS"
24390 CFLAGS="$CFLAGS $GTK_CFLAGS"
24391 LIBS="$GTK_LIBS $LIBS"
24392 rm -f conf.gtktest
24393 if test "$cross_compiling" = yes; then
24394 echo $ac_n "cross compiling; assumed OK... $ac_c"
24395else
24396 cat >conftest.$ac_ext <<_ACEOF
24397/* confdefs.h. */
24398_ACEOF
24399cat confdefs.h >>conftest.$ac_ext
24400cat >>conftest.$ac_ext <<_ACEOF
24401/* end confdefs.h. */
24402
24403#include <gtk/gtk.h>
24404#include <stdio.h>
24405#include <stdlib.h>
24406
24407int
24408main ()
24409{
24410 int major, minor, micro;
24411 char *tmp_version;
24412
24413 system ("touch conf.gtktest");
24414
24415 /* HP/UX 9 (%@#!) writes to sscanf strings */
24416 tmp_version = g_strdup("$min_gtk_version");
24417 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24418 printf("%s, bad version string\n", "$min_gtk_version");
24419 exit(1);
24420 }
24421
24422 if ((gtk_major_version != $gtk_config_major_version) ||
24423 (gtk_minor_version != $gtk_config_minor_version) ||
24424 (gtk_micro_version != $gtk_config_micro_version))
24425 {
24426 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24427 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24428 gtk_major_version, gtk_minor_version, gtk_micro_version);
24429 printf ("*** was found! If pkg-config was correct, then it is best\n");
24430 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24431 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24432 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24433 printf("*** required on your system.\n");
24434 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24435 printf("*** to point to the correct configuration files\n");
24436 }
24437 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24438 (gtk_minor_version != GTK_MINOR_VERSION) ||
24439 (gtk_micro_version != GTK_MICRO_VERSION))
24440 {
24441 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24442 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24443 printf("*** library (version %d.%d.%d)\n",
24444 gtk_major_version, gtk_minor_version, gtk_micro_version);
24445 }
24446 else
24447 {
24448 if ((gtk_major_version > major) ||
24449 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24450 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24451 {
24452 return 0;
24453 }
24454 else
24455 {
24456 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24457 gtk_major_version, gtk_minor_version, gtk_micro_version);
24458 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24459 major, minor, micro);
24460 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24461 printf("***\n");
24462 printf("*** If you have already installed a sufficiently new version, this error\n");
24463 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24464 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24465 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24466 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24467 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24468 printf("*** so that the correct libraries are found at run-time))\n");
24469 }
24470 }
24471 return 1;
24472}
24473
24474_ACEOF
24475rm -f conftest$ac_exeext
24476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24477 (eval $ac_link) 2>&5
24478 ac_status=$?
24479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24482 (eval $ac_try) 2>&5
24483 ac_status=$?
24484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 (exit $ac_status); }; }; then
24486 :
24487else
24488 echo "$as_me: program exited with status $ac_status" >&5
24489echo "$as_me: failed program was:" >&5
24490sed 's/^/| /' conftest.$ac_ext >&5
24491
24492( exit $ac_status )
24493no_gtk=yes
24494fi
ac1cb8d3 24495rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24496fi
24497 CFLAGS="$ac_save_CFLAGS"
24498 LIBS="$ac_save_LIBS"
24499 fi
24500 fi
24501 if test "x$no_gtk" = x ; then
24502 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24503echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24504 wx_cv_lib_gtk=2.0
24505 else
24506 echo "$as_me:$LINENO: result: no" >&5
24507echo "${ECHO_T}no" >&6
24508 if test "$PKG_CONFIG" = "no" ; then
24509 echo "*** A new enough version of pkg-config was not found."
24510 echo "*** See http://pkgconfig.sourceforge.net"
24511 else
24512 if test -f conf.gtktest ; then
24513 :
24514 else
24515 echo "*** Could not run GTK+ test program, checking why..."
24516 ac_save_CFLAGS="$CFLAGS"
24517 ac_save_LIBS="$LIBS"
24518 CFLAGS="$CFLAGS $GTK_CFLAGS"
24519 LIBS="$LIBS $GTK_LIBS"
24520 cat >conftest.$ac_ext <<_ACEOF
24521/* confdefs.h. */
24522_ACEOF
24523cat confdefs.h >>conftest.$ac_ext
24524cat >>conftest.$ac_ext <<_ACEOF
24525/* end confdefs.h. */
24526
24527#include <gtk/gtk.h>
24528#include <stdio.h>
24529
24530int
24531main ()
24532{
24533 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24534 ;
24535 return 0;
24536}
24537_ACEOF
24538rm -f conftest.$ac_objext conftest$ac_exeext
24539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24540 (eval $ac_link) 2>conftest.er1
a848cd7e 24541 ac_status=$?
ac1cb8d3
VS
24542 grep -v '^ *+' conftest.er1 >conftest.err
24543 rm -f conftest.er1
24544 cat conftest.err >&5
a848cd7e
SC
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); } &&
9dd0f6c2 24547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24549 (eval $ac_try) 2>&5
24550 ac_status=$?
24551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); }; } &&
24553 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24555 (eval $ac_try) 2>&5
24556 ac_status=$?
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); }; }; then
24559 echo "*** The test program compiled, but did not run. This usually means"
24560 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24561 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24562 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24563 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24564 echo "*** is required on your system"
24565 echo "***"
24566 echo "*** If you have an old version installed, it is best to remove it, although"
24567 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24568else
24569 echo "$as_me: failed program was:" >&5
24570sed 's/^/| /' conftest.$ac_ext >&5
24571
24572 echo "*** The test program failed to compile or link. See the file config.log for the"
24573 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24574fi
ac1cb8d3
VS
24575rm -f conftest.err conftest.$ac_objext \
24576 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24577 CFLAGS="$ac_save_CFLAGS"
24578 LIBS="$ac_save_LIBS"
24579 fi
24580 fi
24581 GTK_CFLAGS=""
24582 GTK_LIBS=""
24583 :
24584 fi
24585
24586
24587 rm -f conf.gtktest
24588
f597b41c
MW
24589 fi
24590
f34ca037
MW
24591 if test -z "$wx_cv_lib_gtk"; then
24592 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
24593
24594# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24595if test "${with_gtk_prefix+set}" = set; then
24596 withval="$with_gtk_prefix"
24597 gtk_config_prefix="$withval"
24598else
24599 gtk_config_prefix=""
24600fi;
24601
24602# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24603if test "${with_gtk_exec_prefix+set}" = set; then
24604 withval="$with_gtk_exec_prefix"
24605 gtk_config_exec_prefix="$withval"
24606else
24607 gtk_config_exec_prefix=""
24608fi;
24609# Check whether --enable-gtktest or --disable-gtktest was given.
24610if test "${enable_gtktest+set}" = set; then
24611 enableval="$enable_gtktest"
24612
24613else
24614 enable_gtktest=yes
24615fi;
24616
24617 for module in . $GTK_MODULES
24618 do
24619 case "$module" in
24620 gthread)
24621 gtk_config_args="$gtk_config_args gthread"
24622 ;;
24623 esac
24624 done
24625
24626 if test x$gtk_config_exec_prefix != x ; then
24627 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24628 if test x${GTK_CONFIG+set} != xset ; then
24629 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24630 fi
24631 fi
24632 if test x$gtk_config_prefix != x ; then
24633 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24634 if test x${GTK_CONFIG+set} != xset ; then
24635 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24636 fi
24637 fi
24638
24639 # Extract the first word of "gtk-config", so it can be a program name with args.
24640set dummy gtk-config; ac_word=$2
24641echo "$as_me:$LINENO: checking for $ac_word" >&5
24642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24643if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24644 echo $ECHO_N "(cached) $ECHO_C" >&6
24645else
24646 case $GTK_CONFIG in
24647 [\\/]* | ?:[\\/]*)
24648 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24649 ;;
24650 *)
24651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24652for as_dir in $PATH
24653do
24654 IFS=$as_save_IFS
24655 test -z "$as_dir" && as_dir=.
24656 for ac_exec_ext in '' $ac_executable_extensions; do
24657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24658 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24660 break 2
24661 fi
24662done
24663done
24664
24665 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24666 ;;
24667esac
24668fi
24669GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24670
24671if test -n "$GTK_CONFIG"; then
24672 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24673echo "${ECHO_T}$GTK_CONFIG" >&6
24674else
24675 echo "$as_me:$LINENO: result: no" >&5
24676echo "${ECHO_T}no" >&6
24677fi
24678
24679 min_gtk_version=1.2.7
24680 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24681echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24682 no_gtk=""
24683 if test "$GTK_CONFIG" = "no" ; then
24684 no_gtk=yes
24685 else
24686 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24687 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24688 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24689 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24690 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24691 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24692 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24693 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24694 if test "x$enable_gtktest" = "xyes" ; then
24695 ac_save_CFLAGS="$CFLAGS"
24696 ac_save_LIBS="$LIBS"
24697 CFLAGS="$CFLAGS $GTK_CFLAGS"
24698 LIBS="$GTK_LIBS $LIBS"
24699 rm -f conf.gtktest
24700 if test "$cross_compiling" = yes; then
24701 echo $ac_n "cross compiling; assumed OK... $ac_c"
24702else
24703 cat >conftest.$ac_ext <<_ACEOF
24704/* confdefs.h. */
24705_ACEOF
24706cat confdefs.h >>conftest.$ac_ext
24707cat >>conftest.$ac_ext <<_ACEOF
24708/* end confdefs.h. */
24709
24710#include <gtk/gtk.h>
24711#include <stdio.h>
24712#include <stdlib.h>
24713
24714int
24715main ()
24716{
24717 int major, minor, micro;
24718 char *tmp_version;
24719
24720 system ("touch conf.gtktest");
24721
24722 /* HP/UX 9 (%@#!) writes to sscanf strings */
24723 tmp_version = g_strdup("$min_gtk_version");
24724 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24725 printf("%s, bad version string\n", "$min_gtk_version");
24726 exit(1);
24727 }
24728
24729 if ((gtk_major_version != $gtk_config_major_version) ||
24730 (gtk_minor_version != $gtk_config_minor_version) ||
24731 (gtk_micro_version != $gtk_config_micro_version))
24732 {
24733 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24734 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24735 gtk_major_version, gtk_minor_version, gtk_micro_version);
24736 printf ("*** was found! If gtk-config was correct, then it is best\n");
24737 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24738 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24739 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24740 printf("*** required on your system.\n");
24741 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24742 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24743 printf("*** before re-running configure\n");
24744 }
24745#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24746 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24747 (gtk_minor_version != GTK_MINOR_VERSION) ||
24748 (gtk_micro_version != GTK_MICRO_VERSION))
24749 {
24750 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24751 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24752 printf("*** library (version %d.%d.%d)\n",
24753 gtk_major_version, gtk_minor_version, gtk_micro_version);
24754 }
24755#endif /* defined (GTK_MAJOR_VERSION) ... */
24756 else
24757 {
24758 if ((gtk_major_version > major) ||
24759 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24760 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24761 {
24762 return 0;
24763 }
24764 else
24765 {
24766 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24767 gtk_major_version, gtk_minor_version, gtk_micro_version);
24768 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24769 major, minor, micro);
24770 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24771 printf("***\n");
24772 printf("*** If you have already installed a sufficiently new version, this error\n");
24773 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24774 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24775 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24776 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24777 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24778 printf("*** so that the correct libraries are found at run-time))\n");
24779 }
24780 }
24781 return 1;
24782}
24783
24784_ACEOF
24785rm -f conftest$ac_exeext
24786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24787 (eval $ac_link) 2>&5
24788 ac_status=$?
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792 (eval $ac_try) 2>&5
24793 ac_status=$?
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); }; }; then
24796 :
24797else
24798 echo "$as_me: program exited with status $ac_status" >&5
24799echo "$as_me: failed program was:" >&5
24800sed 's/^/| /' conftest.$ac_ext >&5
24801
24802( exit $ac_status )
24803no_gtk=yes
24804fi
ac1cb8d3 24805rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24806fi
24807 CFLAGS="$ac_save_CFLAGS"
24808 LIBS="$ac_save_LIBS"
24809 fi
24810 fi
24811 if test "x$no_gtk" = x ; then
24812 echo "$as_me:$LINENO: result: yes" >&5
24813echo "${ECHO_T}yes" >&6
24814 wx_cv_lib_gtk=1.2.7
24815 else
24816 echo "$as_me:$LINENO: result: no" >&5
24817echo "${ECHO_T}no" >&6
24818 if test "$GTK_CONFIG" = "no" ; then
24819 echo "*** The gtk-config script installed by GTK could not be found"
24820 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24821 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24822 echo "*** full path to gtk-config."
24823 else
24824 if test -f conf.gtktest ; then
24825 :
24826 else
24827 echo "*** Could not run GTK test program, checking why..."
24828 CFLAGS="$CFLAGS $GTK_CFLAGS"
24829 LIBS="$LIBS $GTK_LIBS"
24830 cat >conftest.$ac_ext <<_ACEOF
24831/* confdefs.h. */
24832_ACEOF
24833cat confdefs.h >>conftest.$ac_ext
24834cat >>conftest.$ac_ext <<_ACEOF
24835/* end confdefs.h. */
24836
24837#include <gtk/gtk.h>
24838#include <stdio.h>
24839
24840int
24841main ()
24842{
24843 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24844 ;
24845 return 0;
24846}
24847_ACEOF
24848rm -f conftest.$ac_objext conftest$ac_exeext
24849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24850 (eval $ac_link) 2>conftest.er1
a848cd7e 24851 ac_status=$?
ac1cb8d3
VS
24852 grep -v '^ *+' conftest.er1 >conftest.err
24853 rm -f conftest.er1
24854 cat conftest.err >&5
a848cd7e
SC
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); } &&
9dd0f6c2 24857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24859 (eval $ac_try) 2>&5
24860 ac_status=$?
24861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862 (exit $ac_status); }; } &&
24863 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24865 (eval $ac_try) 2>&5
24866 ac_status=$?
24867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868 (exit $ac_status); }; }; then
24869 echo "*** The test program compiled, but did not run. This usually means"
24870 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24871 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24872 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24873 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24874 echo "*** is required on your system"
24875 echo "***"
24876 echo "*** If you have an old version installed, it is best to remove it, although"
24877 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24878 echo "***"
24879 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24880 echo "*** came with the system with the command"
24881 echo "***"
24882 echo "*** rpm --erase --nodeps gtk gtk-devel"
24883else
24884 echo "$as_me: failed program was:" >&5
24885sed 's/^/| /' conftest.$ac_ext >&5
24886
24887 echo "*** The test program failed to compile or link. See the file config.log for the"
24888 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24889 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24890 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24891fi
ac1cb8d3
VS
24892rm -f conftest.err conftest.$ac_objext \
24893 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24894 CFLAGS="$ac_save_CFLAGS"
24895 LIBS="$ac_save_LIBS"
24896 fi
24897 fi
24898 GTK_CFLAGS=""
24899 GTK_LIBS=""
24900 :
24901 fi
24902
24903
24904 rm -f conf.gtktest
24905
24906
f34ca037 24907 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
24908
24909# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24910if test "${with_gtk_prefix+set}" = set; then
24911 withval="$with_gtk_prefix"
24912 gtk_config_prefix="$withval"
24913else
24914 gtk_config_prefix=""
24915fi;
24916
24917# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24918if test "${with_gtk_exec_prefix+set}" = set; then
24919 withval="$with_gtk_exec_prefix"
24920 gtk_config_exec_prefix="$withval"
24921else
24922 gtk_config_exec_prefix=""
24923fi;
24924# Check whether --enable-gtktest or --disable-gtktest was given.
24925if test "${enable_gtktest+set}" = set; then
24926 enableval="$enable_gtktest"
24927
24928else
24929 enable_gtktest=yes
24930fi;
24931
24932 for module in . $GTK_MODULES
24933 do
24934 case "$module" in
24935 gthread)
24936 gtk_config_args="$gtk_config_args gthread"
24937 ;;
24938 esac
24939 done
24940
24941 if test x$gtk_config_exec_prefix != x ; then
24942 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24943 if test x${GTK_CONFIG+set} != xset ; then
24944 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24945 fi
24946 fi
24947 if test x$gtk_config_prefix != x ; then
24948 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24949 if test x${GTK_CONFIG+set} != xset ; then
24950 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24951 fi
24952 fi
24953
24954 # Extract the first word of "gtk-config", so it can be a program name with args.
24955set dummy gtk-config; ac_word=$2
24956echo "$as_me:$LINENO: checking for $ac_word" >&5
24957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24958if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24959 echo $ECHO_N "(cached) $ECHO_C" >&6
24960else
24961 case $GTK_CONFIG in
24962 [\\/]* | ?:[\\/]*)
24963 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24964 ;;
24965 *)
24966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24967for as_dir in $PATH
24968do
24969 IFS=$as_save_IFS
24970 test -z "$as_dir" && as_dir=.
24971 for ac_exec_ext in '' $ac_executable_extensions; do
24972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24973 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24975 break 2
24976 fi
24977done
24978done
24979
24980 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24981 ;;
24982esac
24983fi
24984GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24985
24986if test -n "$GTK_CONFIG"; then
24987 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24988echo "${ECHO_T}$GTK_CONFIG" >&6
24989else
24990 echo "$as_me:$LINENO: result: no" >&5
24991echo "${ECHO_T}no" >&6
24992fi
24993
24994 min_gtk_version=1.2.3
24995 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24996echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24997 no_gtk=""
24998 if test "$GTK_CONFIG" = "no" ; then
24999 no_gtk=yes
25000 else
25001 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25002 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25003 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25004 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25005 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25006 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25007 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25008 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25009 if test "x$enable_gtktest" = "xyes" ; then
25010 ac_save_CFLAGS="$CFLAGS"
25011 ac_save_LIBS="$LIBS"
25012 CFLAGS="$CFLAGS $GTK_CFLAGS"
25013 LIBS="$GTK_LIBS $LIBS"
25014 rm -f conf.gtktest
25015 if test "$cross_compiling" = yes; then
25016 echo $ac_n "cross compiling; assumed OK... $ac_c"
25017else
25018 cat >conftest.$ac_ext <<_ACEOF
25019/* confdefs.h. */
25020_ACEOF
25021cat confdefs.h >>conftest.$ac_ext
25022cat >>conftest.$ac_ext <<_ACEOF
25023/* end confdefs.h. */
25024
25025#include <gtk/gtk.h>
25026#include <stdio.h>
25027#include <stdlib.h>
25028
25029int
25030main ()
25031{
25032 int major, minor, micro;
25033 char *tmp_version;
25034
25035 system ("touch conf.gtktest");
25036
25037 /* HP/UX 9 (%@#!) writes to sscanf strings */
25038 tmp_version = g_strdup("$min_gtk_version");
25039 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25040 printf("%s, bad version string\n", "$min_gtk_version");
25041 exit(1);
25042 }
25043
25044 if ((gtk_major_version != $gtk_config_major_version) ||
25045 (gtk_minor_version != $gtk_config_minor_version) ||
25046 (gtk_micro_version != $gtk_config_micro_version))
25047 {
25048 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25049 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25050 gtk_major_version, gtk_minor_version, gtk_micro_version);
25051 printf ("*** was found! If gtk-config was correct, then it is best\n");
25052 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25053 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25054 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25055 printf("*** required on your system.\n");
25056 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25057 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25058 printf("*** before re-running configure\n");
25059 }
25060#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25061 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25062 (gtk_minor_version != GTK_MINOR_VERSION) ||
25063 (gtk_micro_version != GTK_MICRO_VERSION))
25064 {
25065 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25066 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25067 printf("*** library (version %d.%d.%d)\n",
25068 gtk_major_version, gtk_minor_version, gtk_micro_version);
25069 }
25070#endif /* defined (GTK_MAJOR_VERSION) ... */
25071 else
25072 {
25073 if ((gtk_major_version > major) ||
25074 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25075 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25076 {
25077 return 0;
25078 }
25079 else
25080 {
25081 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25082 gtk_major_version, gtk_minor_version, gtk_micro_version);
25083 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25084 major, minor, micro);
25085 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25086 printf("***\n");
25087 printf("*** If you have already installed a sufficiently new version, this error\n");
25088 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25089 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25090 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25091 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25092 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25093 printf("*** so that the correct libraries are found at run-time))\n");
25094 }
25095 }
25096 return 1;
25097}
25098
25099_ACEOF
25100rm -f conftest$ac_exeext
25101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25102 (eval $ac_link) 2>&5
25103 ac_status=$?
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25107 (eval $ac_try) 2>&5
25108 ac_status=$?
25109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); }; }; then
25111 :
25112else
25113 echo "$as_me: program exited with status $ac_status" >&5
25114echo "$as_me: failed program was:" >&5
25115sed 's/^/| /' conftest.$ac_ext >&5
25116
25117( exit $ac_status )
25118no_gtk=yes
25119fi
ac1cb8d3 25120rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25121fi
25122 CFLAGS="$ac_save_CFLAGS"
25123 LIBS="$ac_save_LIBS"
25124 fi
25125 fi
25126 if test "x$no_gtk" = x ; then
25127 echo "$as_me:$LINENO: result: yes" >&5
25128echo "${ECHO_T}yes" >&6
25129 wx_cv_lib_gtk=1.2.3
25130 else
25131 echo "$as_me:$LINENO: result: no" >&5
25132echo "${ECHO_T}no" >&6
25133 if test "$GTK_CONFIG" = "no" ; then
25134 echo "*** The gtk-config script installed by GTK could not be found"
25135 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25136 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25137 echo "*** full path to gtk-config."
25138 else
25139 if test -f conf.gtktest ; then
25140 :
25141 else
25142 echo "*** Could not run GTK test program, checking why..."
25143 CFLAGS="$CFLAGS $GTK_CFLAGS"
25144 LIBS="$LIBS $GTK_LIBS"
25145 cat >conftest.$ac_ext <<_ACEOF
25146/* confdefs.h. */
25147_ACEOF
25148cat confdefs.h >>conftest.$ac_ext
25149cat >>conftest.$ac_ext <<_ACEOF
25150/* end confdefs.h. */
25151
25152#include <gtk/gtk.h>
25153#include <stdio.h>
25154
25155int
25156main ()
25157{
25158 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25159 ;
25160 return 0;
25161}
25162_ACEOF
25163rm -f conftest.$ac_objext conftest$ac_exeext
25164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25165 (eval $ac_link) 2>conftest.er1
a848cd7e 25166 ac_status=$?
ac1cb8d3
VS
25167 grep -v '^ *+' conftest.er1 >conftest.err
25168 rm -f conftest.er1
25169 cat conftest.err >&5
a848cd7e
SC
25170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); } &&
9dd0f6c2 25172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25174 (eval $ac_try) 2>&5
25175 ac_status=$?
25176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25177 (exit $ac_status); }; } &&
25178 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25180 (eval $ac_try) 2>&5
25181 ac_status=$?
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); }; }; then
25184 echo "*** The test program compiled, but did not run. This usually means"
25185 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25186 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25187 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25188 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25189 echo "*** is required on your system"
25190 echo "***"
25191 echo "*** If you have an old version installed, it is best to remove it, although"
25192 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25193 echo "***"
25194 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25195 echo "*** came with the system with the command"
25196 echo "***"
25197 echo "*** rpm --erase --nodeps gtk gtk-devel"
25198else
25199 echo "$as_me: failed program was:" >&5
25200sed 's/^/| /' conftest.$ac_ext >&5
25201
25202 echo "*** The test program failed to compile or link. See the file config.log for the"
25203 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25204 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25205 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25206fi
ac1cb8d3
VS
25207rm -f conftest.err conftest.$ac_objext \
25208 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25209 CFLAGS="$ac_save_CFLAGS"
25210 LIBS="$ac_save_LIBS"
25211 fi
25212 fi
25213 GTK_CFLAGS=""
25214 GTK_LIBS=""
25215 :
25216 fi
25217
25218
25219 rm -f conf.gtktest
25220
f34ca037 25221 fi
a848cd7e
SC
25222 fi
25223 fi
25224
25225 if test -z "$wx_cv_lib_gtk"; then
25226 wx_cv_lib_gtk=none
25227 else
25228 wx_cv_cflags_gtk=$GTK_CFLAGS
25229 wx_cv_libs_gtk=$GTK_LIBS
25230 fi
25231
25232
25233fi
25234
25235
25236 if test "$gtk_version_cached" = 1; then
25237 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25238echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25239 fi
25240
25241 case "$wx_cv_lib_gtk" in
25242 2.0) WXGTK20=1
25243 TOOLKIT_VERSION=2
25244 ;;
25245 1.2.7) WXGTK127=1
25246 WXGTK12=1
25247 ;;
25248 1.2.3) WXGTK12=1
25249 ;;
25250 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
25251The development files for GTK+ were not found. For GTK+ 2, please
25252ensure that pkg-config is in the path and that gtk+-2.0.pc is
25253installed. For GTK+ 1.2 please check that gtk-config is in the path,
25254and that the version is 1.2.3 or above. Also check that the
25255libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25256--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25257 " >&5
25258echo "$as_me: error:
f597b41c
MW
25259The development files for GTK+ were not found. For GTK+ 2, please
25260ensure that pkg-config is in the path and that gtk+-2.0.pc is
25261installed. For GTK+ 1.2 please check that gtk-config is in the path,
25262and that the version is 1.2.3 or above. Also check that the
25263libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25264--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25265 " >&2;}
25266 { (exit 1); exit 1; }; }
25267 ;;
25268 esac
25269
25270 if test "$WXGTK20" = 1; then
304205f1
VS
25271 save_CFLAGS="$CFLAGS"
25272 save_LIBS="$LIBS"
9d271838
VZ
25273 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
25274 LIBS="$LIBS $wx_cv_lib_gtk"
304205f1 25275
9755e73b 25276
304205f1
VS
25277for ac_func in pango_font_family_is_monospace
25278do
25279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25280echo "$as_me:$LINENO: checking for $ac_func" >&5
25281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25282if eval "test \"\${$as_ac_var+set}\" = set"; then
25283 echo $ECHO_N "(cached) $ECHO_C" >&6
25284else
25285 cat >conftest.$ac_ext <<_ACEOF
25286/* confdefs.h. */
25287_ACEOF
25288cat confdefs.h >>conftest.$ac_ext
25289cat >>conftest.$ac_ext <<_ACEOF
25290/* end confdefs.h. */
25291/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25293#define $ac_func innocuous_$ac_func
25294
25295/* System header to define __stub macros and hopefully few prototypes,
25296 which can conflict with char $ac_func (); below.
25297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25298 <limits.h> exists even on freestanding compilers. */
25299
25300#ifdef __STDC__
25301# include <limits.h>
25302#else
25303# include <assert.h>
25304#endif
25305
25306#undef $ac_func
25307
25308/* Override any gcc2 internal prototype to avoid an error. */
25309#ifdef __cplusplus
25310extern "C"
25311{
25312#endif
25313/* We use char because int might match the return type of a gcc2
25314 builtin and then its argument prototype would still apply. */
25315char $ac_func ();
25316/* The GNU C library defines this for functions which it implements
25317 to always fail with ENOSYS. Some functions are actually named
25318 something starting with __ and the normal name is an alias. */
25319#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25320choke me
25321#else
25322char (*f) () = $ac_func;
25323#endif
25324#ifdef __cplusplus
25325}
25326#endif
25327
25328int
25329main ()
25330{
25331return f != $ac_func;
25332 ;
25333 return 0;
25334}
25335_ACEOF
25336rm -f conftest.$ac_objext conftest$ac_exeext
25337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25338 (eval $ac_link) 2>conftest.er1
25339 ac_status=$?
25340 grep -v '^ *+' conftest.er1 >conftest.err
25341 rm -f conftest.er1
25342 cat conftest.err >&5
25343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); } &&
9dd0f6c2 25345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25347 (eval $ac_try) 2>&5
25348 ac_status=$?
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); }; } &&
25351 { ac_try='test -s conftest$ac_exeext'
25352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353 (eval $ac_try) 2>&5
25354 ac_status=$?
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); }; }; then
25357 eval "$as_ac_var=yes"
25358else
25359 echo "$as_me: failed program was:" >&5
25360sed 's/^/| /' conftest.$ac_ext >&5
25361
25362eval "$as_ac_var=no"
25363fi
25364rm -f conftest.err conftest.$ac_objext \
25365 conftest$ac_exeext conftest.$ac_ext
25366fi
25367echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25368echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25369if test `eval echo '${'$as_ac_var'}'` = yes; then
25370 cat >>confdefs.h <<_ACEOF
25371#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25372_ACEOF
25373
25374fi
25375done
25376
9755e73b
VS
25377
25378 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25379echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25380 cat >conftest.$ac_ext <<_ACEOF
25381/* confdefs.h. */
25382_ACEOF
25383cat confdefs.h >>conftest.$ac_ext
25384cat >>conftest.$ac_ext <<_ACEOF
25385/* end confdefs.h. */
25386
25387 #include <gtk/gtk.h>
25388
25389int
25390main ()
25391{
25392
25393 #if !GTK_CHECK_VERSION(2,4,0)
25394 #error "Not GTK+ 2.4"
25395 #endif
25396
25397 ;
25398 return 0;
25399}
25400_ACEOF
25401rm -f conftest.$ac_objext
25402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25403 (eval $ac_compile) 2>conftest.er1
25404 ac_status=$?
25405 grep -v '^ *+' conftest.er1 >conftest.err
25406 rm -f conftest.er1
25407 cat conftest.err >&5
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); } &&
9dd0f6c2 25410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25412 (eval $ac_try) 2>&5
25413 ac_status=$?
25414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415 (exit $ac_status); }; } &&
25416 { ac_try='test -s conftest.$ac_objext'
25417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25418 (eval $ac_try) 2>&5
25419 ac_status=$?
25420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421 (exit $ac_status); }; }; then
25422
25423 cat >>confdefs.h <<\_ACEOF
25424#define __WXGTK24__ 1
25425_ACEOF
25426
25427 echo "$as_me:$LINENO: result: yes" >&5
25428echo "${ECHO_T}yes" >&6
25429
25430else
25431 echo "$as_me: failed program was:" >&5
25432sed 's/^/| /' conftest.$ac_ext >&5
25433
25434
25435 echo "$as_me:$LINENO: result: no" >&5
25436echo "${ECHO_T}no" >&6
25437
25438fi
25439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25440
304205f1
VS
25441 CFLAGS="$save_CFLAGS"
25442 LIBS="$save_LIBS"
a848cd7e
SC
25443 else
25444 if test "$wxUSE_UNICODE" = "yes"; then
25445 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25446echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25447 wxUSE_UNICODE=no
25448 fi
25449 fi
25450
25451 if test "$USE_DARWIN" != 1; then
25452
25453for ac_func in poll
25454do
25455as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25456echo "$as_me:$LINENO: checking for $ac_func" >&5
25457echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25458if eval "test \"\${$as_ac_var+set}\" = set"; then
25459 echo $ECHO_N "(cached) $ECHO_C" >&6
25460else
25461 cat >conftest.$ac_ext <<_ACEOF
25462/* confdefs.h. */
25463_ACEOF
25464cat confdefs.h >>conftest.$ac_ext
25465cat >>conftest.$ac_ext <<_ACEOF
25466/* end confdefs.h. */
ac1cb8d3
VS
25467/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25469#define $ac_func innocuous_$ac_func
25470
a848cd7e
SC
25471/* System header to define __stub macros and hopefully few prototypes,
25472 which can conflict with char $ac_func (); below.
25473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25474 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25475
a848cd7e
SC
25476#ifdef __STDC__
25477# include <limits.h>
25478#else
25479# include <assert.h>
25480#endif
ac1cb8d3
VS
25481
25482#undef $ac_func
25483
a848cd7e
SC
25484/* Override any gcc2 internal prototype to avoid an error. */
25485#ifdef __cplusplus
25486extern "C"
25487{
25488#endif
25489/* We use char because int might match the return type of a gcc2
25490 builtin and then its argument prototype would still apply. */
25491char $ac_func ();
25492/* The GNU C library defines this for functions which it implements
25493 to always fail with ENOSYS. Some functions are actually named
25494 something starting with __ and the normal name is an alias. */
25495#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25496choke me
25497#else
25498char (*f) () = $ac_func;
25499#endif
25500#ifdef __cplusplus
25501}
25502#endif
25503
25504int
25505main ()
25506{
25507return f != $ac_func;
25508 ;
25509 return 0;
25510}
25511_ACEOF
25512rm -f conftest.$ac_objext conftest$ac_exeext
25513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25514 (eval $ac_link) 2>conftest.er1
a848cd7e 25515 ac_status=$?
ac1cb8d3
VS
25516 grep -v '^ *+' conftest.er1 >conftest.err
25517 rm -f conftest.er1
25518 cat conftest.err >&5
a848cd7e
SC
25519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520 (exit $ac_status); } &&
9dd0f6c2 25521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25523 (eval $ac_try) 2>&5
25524 ac_status=$?
25525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526 (exit $ac_status); }; } &&
25527 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25529 (eval $ac_try) 2>&5
25530 ac_status=$?
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); }; }; then
25533 eval "$as_ac_var=yes"
25534else
25535 echo "$as_me: failed program was:" >&5
25536sed 's/^/| /' conftest.$ac_ext >&5
25537
25538eval "$as_ac_var=no"
25539fi
ac1cb8d3
VS
25540rm -f conftest.err conftest.$ac_objext \
25541 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25542fi
25543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25544echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25545if test `eval echo '${'$as_ac_var'}'` = yes; then
25546 cat >>confdefs.h <<_ACEOF
25547#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25548_ACEOF
25549
25550fi
25551done
25552
25553 fi
25554
25555 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25556 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25557
25558 AFMINSTALL=afminstall
25559 TOOLKIT=GTK
25560 GUIDIST=GTK_DIST
25561
25562 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25563echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25564if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25565 echo $ECHO_N "(cached) $ECHO_C" >&6
25566else
25567 ac_check_lib_save_LIBS=$LIBS
25568LIBS="-lgdk $LIBS"
25569cat >conftest.$ac_ext <<_ACEOF
25570/* confdefs.h. */
25571_ACEOF
25572cat confdefs.h >>conftest.$ac_ext
25573cat >>conftest.$ac_ext <<_ACEOF
25574/* end confdefs.h. */
25575
25576/* Override any gcc2 internal prototype to avoid an error. */
25577#ifdef __cplusplus
25578extern "C"
25579#endif
25580/* We use char because int might match the return type of a gcc2
25581 builtin and then its argument prototype would still apply. */
25582char gdk_im_open ();
25583int
25584main ()
25585{
25586gdk_im_open ();
25587 ;
25588 return 0;
25589}
25590_ACEOF
25591rm -f conftest.$ac_objext conftest$ac_exeext
25592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25593 (eval $ac_link) 2>conftest.er1
a848cd7e 25594 ac_status=$?
ac1cb8d3
VS
25595 grep -v '^ *+' conftest.er1 >conftest.err
25596 rm -f conftest.er1
25597 cat conftest.err >&5
a848cd7e
SC
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); } &&
9dd0f6c2 25600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25602 (eval $ac_try) 2>&5
25603 ac_status=$?
25604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); }; } &&
25606 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25608 (eval $ac_try) 2>&5
25609 ac_status=$?
25610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611 (exit $ac_status); }; }; then
25612 ac_cv_lib_gdk_gdk_im_open=yes
25613else
25614 echo "$as_me: failed program was:" >&5
25615sed 's/^/| /' conftest.$ac_ext >&5
25616
25617ac_cv_lib_gdk_gdk_im_open=no
25618fi
ac1cb8d3
VS
25619rm -f conftest.err conftest.$ac_objext \
25620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25621LIBS=$ac_check_lib_save_LIBS
25622fi
25623echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25624echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25625if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25626 cat >>confdefs.h <<\_ACEOF
25627#define HAVE_XIM 1
25628_ACEOF
25629
25630fi
25631
25632
25633
25634 if test "$wxUSE_GPE" = "yes"; then
25635 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25636echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25637
25638ac_find_libraries=
25639for ac_dir in $SEARCH_LIB /usr/lib;
25640 do
25641 for ac_extension in a so sl dylib; do
25642 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25643 ac_find_libraries=$ac_dir
25644 break 2
25645 fi
25646 done
25647 done
25648
25649 if test "$ac_find_libraries" != "" ; then
25650
25651 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25652 result=$?
25653 if test $result = 0; then
25654 ac_path_to_link=""
25655 else
25656 ac_path_to_link=" -L$ac_find_libraries"
25657 fi
25658
25659 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25660 WXGPE=1
25661 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25662echo "${ECHO_T}found at $ac_find_libraries" >&6
25663 else
25664 echo "$as_me:$LINENO: result: not found" >&5
25665echo "${ECHO_T}not found" >&6
25666 fi
25667
25668 fi
25669 fi
25670
25671 if test "$wxUSE_MGL" = 1; then
25672 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25673echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25674 if test "x$MGL_ROOT" = x ; then
25675 echo "$as_me:$LINENO: result: not found" >&5
25676echo "${ECHO_T}not found" >&6
25677 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25678echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25679 { (exit 1); exit 1; }; }
25680 else
25681 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25682echo "${ECHO_T}$MGL_ROOT" >&6
25683 fi
25684
25685 echo "$as_me:$LINENO: checking for libmgl location" >&5
25686echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25687 case "${host}" in
25688 *-*-linux* )
25689 if test "x$wxUSE_SHARED" = xyes ; then
25690 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25691 else
25692 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25693 fi
25694 ;;
25695 *-pc-msdosdjgpp )
25696 mgl_os_candidates="dos32/dj2"
25697 ;;
25698 *)
25699 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25700echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25701 { (exit 1); exit 1; }; }
25702 esac
25703
25704 mgl_lib_type=""
25705 mgl_os=""
25706
25707 for mgl_os_i in $mgl_os_candidates ; do
25708 if test "x$mgl_os" = x ; then
25709 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25710 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25711 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25712 mgl_lib_type=debug
25713 mgl_os=$mgl_os_i
25714 fi
25715 fi
25716 if test "x$mgl_lib_type" = x ; then
25717 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25718 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25719 mgl_lib_type=release
25720 mgl_os=$mgl_os_i
25721 fi
25722 fi
25723 fi
25724 done
25725
25726 if test "x$mgl_os" = x ; then
25727 echo "$as_me:$LINENO: result: not found" >&5
25728echo "${ECHO_T}not found" >&6
25729 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25730echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25731 { (exit 1); exit 1; }; }
25732 fi
25733 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25734echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25735
25736 wxUSE_UNIVERSAL="yes"
25737
25738 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25739 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25740
25741 AFMINSTALL=afminstall
25742 TOOLKIT=MGL
25743 GUIDIST=MGL_DIST
25744 fi
25745
25746 if test "$wxUSE_MICROWIN" = 1; then
25747 echo "$as_me:$LINENO: checking for MicroWindows" >&5
25748echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25749 if test "x$MICROWINDOWS" = x ; then
25750 echo "$as_me:$LINENO: result: not found" >&5
25751echo "${ECHO_T}not found" >&6
25752 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25753echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25754 { (exit 1); exit 1; }; }
25755 else
25756 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25757echo "${ECHO_T}$MICROWINDOWS" >&6
25758 fi
25759
25760 if test -f $MICROWINDOWS/lib/libmwin.a; then
25761 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25762echo "${ECHO_T}MicroWindows' libraries found." >&6
25763 else
25764 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25765echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25766 { (exit 1); exit 1; }; }
25767 fi
25768
25769 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25770 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25771
25772 wxUSE_UNIVERSAL="yes"
25773
25774 AFMINSTALL=afminstall
25775 TOOLKIT=MICROWIN
25776 GUIDIST=MICROWIN_DIST
25777
25778 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25779 fi
25780
74b84332 25781 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
9dd0f6c2
DE
25782
25783if test "x$ac_path_x_has_been_run" != xyes; then
25784 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
25785echo $ECHO_N "checking for X... $ECHO_C" >&6
25786
9dd0f6c2 25787ac_path_x_has_been_run=yes
a848cd7e
SC
25788
25789# Check whether --with-x or --without-x was given.
25790if test "${with_x+set}" = set; then
25791 withval="$with_x"
25792
25793fi;
25794# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25795if test "x$with_x" = xno; then
25796 # The user explicitly disabled X.
25797 have_x=disabled
25798else
25799 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25800 # Both variables are already set.
25801 have_x=yes
25802 else
25803 if test "${ac_cv_have_x+set}" = set; then
25804 echo $ECHO_N "(cached) $ECHO_C" >&6
25805else
25806 # One or both of the vars are not set, and there is no cached value.
25807ac_x_includes=no ac_x_libraries=no
25808rm -fr conftest.dir
25809if mkdir conftest.dir; then
25810 cd conftest.dir
25811 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25812 cat >Imakefile <<'_ACEOF'
25813acfindx:
25814 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25815_ACEOF
25816 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25817 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25818 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25819 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25820 for ac_extension in a so sl; do
25821 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
25822 test -f $ac_im_libdir/libX11.$ac_extension; then
25823 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
25824 fi
25825 done
25826 # Screen out bogus values from the imake configuration. They are
25827 # bogus both because they are the default anyway, and because
25828 # using them would break gcc on systems where it needs fixed includes.
25829 case $ac_im_incroot in
25830 /usr/include) ;;
25831 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25832 esac
25833 case $ac_im_usrlibdir in
25834 /usr/lib | /lib) ;;
25835 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25836 esac
25837 fi
25838 cd ..
25839 rm -fr conftest.dir
25840fi
25841
25842# Standard set of common directories for X headers.
25843# Check X11 before X11Rn because it is often a symlink to the current release.
25844ac_x_header_dirs='
25845/usr/X11/include
25846/usr/X11R6/include
25847/usr/X11R5/include
25848/usr/X11R4/include
25849
25850/usr/include/X11
25851/usr/include/X11R6
25852/usr/include/X11R5
25853/usr/include/X11R4
25854
25855/usr/local/X11/include
25856/usr/local/X11R6/include
25857/usr/local/X11R5/include
25858/usr/local/X11R4/include
25859
25860/usr/local/include/X11
25861/usr/local/include/X11R6
25862/usr/local/include/X11R5
25863/usr/local/include/X11R4
25864
25865/usr/X386/include
25866/usr/x386/include
25867/usr/XFree86/include/X11
25868
25869/usr/include
25870/usr/local/include
25871/usr/unsupported/include
25872/usr/athena/include
25873/usr/local/x11r5/include
25874/usr/lpp/Xamples/include
25875
25876/usr/openwin/include
25877/usr/openwin/share/include'
25878
25879if test "$ac_x_includes" = no; then
9dd0f6c2 25880 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
25881 # First, try using that file with no special directory specified.
25882 cat >conftest.$ac_ext <<_ACEOF
25883/* confdefs.h. */
25884_ACEOF
25885cat confdefs.h >>conftest.$ac_ext
25886cat >>conftest.$ac_ext <<_ACEOF
25887/* end confdefs.h. */
25888#include <X11/Intrinsic.h>
25889_ACEOF
25890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25892 ac_status=$?
25893 grep -v '^ *+' conftest.er1 >conftest.err
25894 rm -f conftest.er1
25895 cat conftest.err >&5
25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897 (exit $ac_status); } >/dev/null; then
25898 if test -s conftest.err; then
25899 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25901 else
25902 ac_cpp_err=
25903 fi
25904else
25905 ac_cpp_err=yes
25906fi
25907if test -z "$ac_cpp_err"; then
25908 # We can compile using X headers with no special include directory.
25909ac_x_includes=
25910else
25911 echo "$as_me: failed program was:" >&5
25912sed 's/^/| /' conftest.$ac_ext >&5
25913
25914 for ac_dir in $ac_x_header_dirs; do
25915 if test -r "$ac_dir/X11/Intrinsic.h"; then
25916 ac_x_includes=$ac_dir
25917 break
25918 fi
25919done
25920fi
25921rm -f conftest.err conftest.$ac_ext
25922fi # $ac_x_includes = no
25923
25924if test "$ac_x_libraries" = no; then
25925 # Check for the libraries.
25926 # See if we find them without any special options.
25927 # Don't add to $LIBS permanently.
25928 ac_save_LIBS=$LIBS
25929 LIBS="-lXt $LIBS"
25930 cat >conftest.$ac_ext <<_ACEOF
25931/* confdefs.h. */
25932_ACEOF
25933cat confdefs.h >>conftest.$ac_ext
25934cat >>conftest.$ac_ext <<_ACEOF
25935/* end confdefs.h. */
25936#include <X11/Intrinsic.h>
25937int
25938main ()
25939{
25940XtMalloc (0)
25941 ;
25942 return 0;
25943}
25944_ACEOF
25945rm -f conftest.$ac_objext conftest$ac_exeext
25946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25947 (eval $ac_link) 2>conftest.er1
a848cd7e 25948 ac_status=$?
ac1cb8d3
VS
25949 grep -v '^ *+' conftest.er1 >conftest.err
25950 rm -f conftest.er1
25951 cat conftest.err >&5
a848cd7e
SC
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); } &&
9dd0f6c2 25954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25956 (eval $ac_try) 2>&5
25957 ac_status=$?
25958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959 (exit $ac_status); }; } &&
25960 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25962 (eval $ac_try) 2>&5
25963 ac_status=$?
25964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965 (exit $ac_status); }; }; then
25966 LIBS=$ac_save_LIBS
25967# We can link X programs with no special library path.
25968ac_x_libraries=
25969else
25970 echo "$as_me: failed program was:" >&5
25971sed 's/^/| /' conftest.$ac_ext >&5
25972
25973LIBS=$ac_save_LIBS
25974for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25975do
25976 # Don't even attempt the hair of trying to link an X program!
25977 for ac_extension in a so sl; do
25978 if test -r $ac_dir/libXt.$ac_extension; then
25979 ac_x_libraries=$ac_dir
25980 break 2
25981 fi
25982 done
25983done
25984fi
ac1cb8d3
VS
25985rm -f conftest.err conftest.$ac_objext \
25986 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25987fi # $ac_x_libraries = no
25988
25989if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25990 # Didn't find X anywhere. Cache the known absence of X.
25991 ac_cv_have_x="have_x=no"
25992else
25993 # Record where we found X for the cache.
25994 ac_cv_have_x="have_x=yes \
ac1cb8d3 25995 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
25996fi
25997fi
25998
25999 fi
26000 eval "$ac_cv_have_x"
26001fi # $with_x != no
26002
26003if test "$have_x" != yes; then
26004 echo "$as_me:$LINENO: result: $have_x" >&5
26005echo "${ECHO_T}$have_x" >&6
26006 no_x=yes
26007else
26008 # If each of the values was on the command line, it overrides each guess.
26009 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26010 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26011 # Update the cache value to reflect the command line values.
26012 ac_cv_have_x="have_x=yes \
26013 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9dd0f6c2
DE
26014 # It might be that x_includes is empty (headers are found in the
26015 # standard search path. Then output the corresponding message
26016 ac_out_x_includes=$x_includes
26017 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26018 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26019echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26020fi
26021
9dd0f6c2 26022fi
a848cd7e
SC
26023if test "$no_x" = yes; then
26024 # Not all programs may use this symbol, but it does not hurt to define it.
26025
26026cat >>confdefs.h <<\_ACEOF
26027#define X_DISPLAY_MISSING 1
26028_ACEOF
26029
26030 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26031else
26032 if test -n "$x_includes"; then
26033 X_CFLAGS="$X_CFLAGS -I$x_includes"
26034 fi
26035
26036 # It would also be nice to do this for all -L options, not just this one.
26037 if test -n "$x_libraries"; then
26038 X_LIBS="$X_LIBS -L$x_libraries"
26039 # For Solaris; some versions of Sun CC require a space after -R and
26040 # others require no space. Words are not sufficient . . . .
26041 case `(uname -sr) 2>/dev/null` in
26042 "SunOS 5"*)
26043 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26044echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26045 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26046 cat >conftest.$ac_ext <<_ACEOF
26047/* confdefs.h. */
26048_ACEOF
26049cat confdefs.h >>conftest.$ac_ext
26050cat >>conftest.$ac_ext <<_ACEOF
26051/* end confdefs.h. */
26052
26053int
26054main ()
26055{
26056
26057 ;
26058 return 0;
26059}
26060_ACEOF
26061rm -f conftest.$ac_objext conftest$ac_exeext
26062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26063 (eval $ac_link) 2>conftest.er1
a848cd7e 26064 ac_status=$?
ac1cb8d3
VS
26065 grep -v '^ *+' conftest.er1 >conftest.err
26066 rm -f conftest.er1
26067 cat conftest.err >&5
a848cd7e
SC
26068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); } &&
9dd0f6c2 26070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26072 (eval $ac_try) 2>&5
26073 ac_status=$?
26074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075 (exit $ac_status); }; } &&
26076 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26078 (eval $ac_try) 2>&5
26079 ac_status=$?
26080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081 (exit $ac_status); }; }; then
26082 ac_R_nospace=yes
26083else
26084 echo "$as_me: failed program was:" >&5
26085sed 's/^/| /' conftest.$ac_ext >&5
26086
26087ac_R_nospace=no
26088fi
ac1cb8d3
VS
26089rm -f conftest.err conftest.$ac_objext \
26090 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26091 if test $ac_R_nospace = yes; then
26092 echo "$as_me:$LINENO: result: no" >&5
26093echo "${ECHO_T}no" >&6
26094 X_LIBS="$X_LIBS -R$x_libraries"
26095 else
26096 LIBS="$ac_xsave_LIBS -R $x_libraries"
26097 cat >conftest.$ac_ext <<_ACEOF
26098/* confdefs.h. */
26099_ACEOF
26100cat confdefs.h >>conftest.$ac_ext
26101cat >>conftest.$ac_ext <<_ACEOF
26102/* end confdefs.h. */
26103
26104int
26105main ()
26106{
26107
26108 ;
26109 return 0;
26110}
26111_ACEOF
26112rm -f conftest.$ac_objext conftest$ac_exeext
26113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26114 (eval $ac_link) 2>conftest.er1
a848cd7e 26115 ac_status=$?
ac1cb8d3
VS
26116 grep -v '^ *+' conftest.er1 >conftest.err
26117 rm -f conftest.er1
26118 cat conftest.err >&5
a848cd7e
SC
26119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120 (exit $ac_status); } &&
9dd0f6c2 26121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26123 (eval $ac_try) 2>&5
26124 ac_status=$?
26125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126 (exit $ac_status); }; } &&
26127 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26129 (eval $ac_try) 2>&5
26130 ac_status=$?
26131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132 (exit $ac_status); }; }; then
26133 ac_R_space=yes
26134else
26135 echo "$as_me: failed program was:" >&5
26136sed 's/^/| /' conftest.$ac_ext >&5
26137
26138ac_R_space=no
26139fi
ac1cb8d3
VS
26140rm -f conftest.err conftest.$ac_objext \
26141 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26142 if test $ac_R_space = yes; then
26143 echo "$as_me:$LINENO: result: yes" >&5
26144echo "${ECHO_T}yes" >&6
26145 X_LIBS="$X_LIBS -R $x_libraries"
26146 else
26147 echo "$as_me:$LINENO: result: neither works" >&5
26148echo "${ECHO_T}neither works" >&6
26149 fi
26150 fi
26151 LIBS=$ac_xsave_LIBS
26152 esac
26153 fi
26154
26155 # Check for system-dependent libraries X programs must link with.
26156 # Do this before checking for the system-independent R6 libraries
26157 # (-lICE), since we may need -lsocket or whatever for X linking.
26158
26159 if test "$ISC" = yes; then
26160 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26161 else
26162 # Martyn Johnson says this is needed for Ultrix, if the X
26163 # libraries were built with DECnet support. And Karl Berry says
26164 # the Alpha needs dnet_stub (dnet does not exist).
26165 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26166 cat >conftest.$ac_ext <<_ACEOF
26167/* confdefs.h. */
26168_ACEOF
26169cat confdefs.h >>conftest.$ac_ext
26170cat >>conftest.$ac_ext <<_ACEOF
26171/* end confdefs.h. */
26172
26173/* Override any gcc2 internal prototype to avoid an error. */
26174#ifdef __cplusplus
26175extern "C"
26176#endif
26177/* We use char because int might match the return type of a gcc2
26178 builtin and then its argument prototype would still apply. */
26179char XOpenDisplay ();
26180int
26181main ()
26182{
26183XOpenDisplay ();
26184 ;
26185 return 0;
26186}
26187_ACEOF
26188rm -f conftest.$ac_objext conftest$ac_exeext
26189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26190 (eval $ac_link) 2>conftest.er1
a848cd7e 26191 ac_status=$?
ac1cb8d3
VS
26192 grep -v '^ *+' conftest.er1 >conftest.err
26193 rm -f conftest.er1
26194 cat conftest.err >&5
a848cd7e
SC
26195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196 (exit $ac_status); } &&
9dd0f6c2 26197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26199 (eval $ac_try) 2>&5
26200 ac_status=$?
26201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202 (exit $ac_status); }; } &&
26203 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26205 (eval $ac_try) 2>&5
26206 ac_status=$?
26207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 (exit $ac_status); }; }; then
26209 :
26210else
26211 echo "$as_me: failed program was:" >&5
26212sed 's/^/| /' conftest.$ac_ext >&5
26213
26214echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26215echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26216if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26217 echo $ECHO_N "(cached) $ECHO_C" >&6
26218else
26219 ac_check_lib_save_LIBS=$LIBS
26220LIBS="-ldnet $LIBS"
26221cat >conftest.$ac_ext <<_ACEOF
26222/* confdefs.h. */
26223_ACEOF
26224cat confdefs.h >>conftest.$ac_ext
26225cat >>conftest.$ac_ext <<_ACEOF
26226/* end confdefs.h. */
26227
26228/* Override any gcc2 internal prototype to avoid an error. */
26229#ifdef __cplusplus
26230extern "C"
26231#endif
26232/* We use char because int might match the return type of a gcc2
26233 builtin and then its argument prototype would still apply. */
26234char dnet_ntoa ();
26235int
26236main ()
26237{
26238dnet_ntoa ();
26239 ;
26240 return 0;
26241}
26242_ACEOF
26243rm -f conftest.$ac_objext conftest$ac_exeext
26244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26245 (eval $ac_link) 2>conftest.er1
a848cd7e 26246 ac_status=$?
ac1cb8d3
VS
26247 grep -v '^ *+' conftest.er1 >conftest.err
26248 rm -f conftest.er1
26249 cat conftest.err >&5
a848cd7e
SC
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); } &&
9dd0f6c2 26252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26254 (eval $ac_try) 2>&5
26255 ac_status=$?
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); }; } &&
26258 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26260 (eval $ac_try) 2>&5
26261 ac_status=$?
26262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263 (exit $ac_status); }; }; then
26264 ac_cv_lib_dnet_dnet_ntoa=yes
26265else
26266 echo "$as_me: failed program was:" >&5
26267sed 's/^/| /' conftest.$ac_ext >&5
26268
26269ac_cv_lib_dnet_dnet_ntoa=no
26270fi
ac1cb8d3
VS
26271rm -f conftest.err conftest.$ac_objext \
26272 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26273LIBS=$ac_check_lib_save_LIBS
26274fi
26275echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26276echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26277if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26278 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26279fi
26280
26281 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26282 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26283echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26284if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26285 echo $ECHO_N "(cached) $ECHO_C" >&6
26286else
26287 ac_check_lib_save_LIBS=$LIBS
26288LIBS="-ldnet_stub $LIBS"
26289cat >conftest.$ac_ext <<_ACEOF
26290/* confdefs.h. */
26291_ACEOF
26292cat confdefs.h >>conftest.$ac_ext
26293cat >>conftest.$ac_ext <<_ACEOF
26294/* end confdefs.h. */
26295
26296/* Override any gcc2 internal prototype to avoid an error. */
26297#ifdef __cplusplus
26298extern "C"
26299#endif
26300/* We use char because int might match the return type of a gcc2
26301 builtin and then its argument prototype would still apply. */
26302char dnet_ntoa ();
26303int
26304main ()
26305{
26306dnet_ntoa ();
26307 ;
26308 return 0;
26309}
26310_ACEOF
26311rm -f conftest.$ac_objext conftest$ac_exeext
26312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26313 (eval $ac_link) 2>conftest.er1
a848cd7e 26314 ac_status=$?
ac1cb8d3
VS
26315 grep -v '^ *+' conftest.er1 >conftest.err
26316 rm -f conftest.er1
26317 cat conftest.err >&5
a848cd7e
SC
26318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319 (exit $ac_status); } &&
9dd0f6c2 26320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26322 (eval $ac_try) 2>&5
26323 ac_status=$?
26324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); }; } &&
26326 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26328 (eval $ac_try) 2>&5
26329 ac_status=$?
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); }; }; then
26332 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26333else
26334 echo "$as_me: failed program was:" >&5
26335sed 's/^/| /' conftest.$ac_ext >&5
26336
26337ac_cv_lib_dnet_stub_dnet_ntoa=no
26338fi
ac1cb8d3
VS
26339rm -f conftest.err conftest.$ac_objext \
26340 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26341LIBS=$ac_check_lib_save_LIBS
26342fi
26343echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26344echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26345if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26346 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26347fi
26348
26349 fi
26350fi
ac1cb8d3
VS
26351rm -f conftest.err conftest.$ac_objext \
26352 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26353 LIBS="$ac_xsave_LIBS"
26354
26355 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26356 # to get the SysV transport functions.
26357 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26358 # needs -lnsl.
26359 # The nsl library prevents programs from opening the X display
26360 # on Irix 5.2, according to T.E. Dickey.
26361 # The functions gethostbyname, getservbyname, and inet_addr are
26362 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26363 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26364echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26365if test "${ac_cv_func_gethostbyname+set}" = set; then
26366 echo $ECHO_N "(cached) $ECHO_C" >&6
26367else
26368 cat >conftest.$ac_ext <<_ACEOF
26369/* confdefs.h. */
26370_ACEOF
26371cat confdefs.h >>conftest.$ac_ext
26372cat >>conftest.$ac_ext <<_ACEOF
26373/* end confdefs.h. */
ac1cb8d3
VS
26374/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26376#define gethostbyname innocuous_gethostbyname
26377
a848cd7e
SC
26378/* System header to define __stub macros and hopefully few prototypes,
26379 which can conflict with char gethostbyname (); below.
26380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26381 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26382
a848cd7e
SC
26383#ifdef __STDC__
26384# include <limits.h>
26385#else
26386# include <assert.h>
26387#endif
ac1cb8d3
VS
26388
26389#undef gethostbyname
26390
a848cd7e
SC
26391/* Override any gcc2 internal prototype to avoid an error. */
26392#ifdef __cplusplus
26393extern "C"
26394{
26395#endif
26396/* We use char because int might match the return type of a gcc2
26397 builtin and then its argument prototype would still apply. */
26398char gethostbyname ();
26399/* The GNU C library defines this for functions which it implements
26400 to always fail with ENOSYS. Some functions are actually named
26401 something starting with __ and the normal name is an alias. */
26402#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26403choke me
26404#else
26405char (*f) () = gethostbyname;
26406#endif
26407#ifdef __cplusplus
26408}
26409#endif
26410
26411int
26412main ()
26413{
26414return f != gethostbyname;
26415 ;
26416 return 0;
26417}
26418_ACEOF
26419rm -f conftest.$ac_objext conftest$ac_exeext
26420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26421 (eval $ac_link) 2>conftest.er1
a848cd7e 26422 ac_status=$?
ac1cb8d3
VS
26423 grep -v '^ *+' conftest.er1 >conftest.err
26424 rm -f conftest.er1
26425 cat conftest.err >&5
a848cd7e
SC
26426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26427 (exit $ac_status); } &&
9dd0f6c2 26428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26430 (eval $ac_try) 2>&5
26431 ac_status=$?
26432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433 (exit $ac_status); }; } &&
26434 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26436 (eval $ac_try) 2>&5
26437 ac_status=$?
26438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439 (exit $ac_status); }; }; then
26440 ac_cv_func_gethostbyname=yes
26441else
26442 echo "$as_me: failed program was:" >&5
26443sed 's/^/| /' conftest.$ac_ext >&5
26444
26445ac_cv_func_gethostbyname=no
26446fi
ac1cb8d3
VS
26447rm -f conftest.err conftest.$ac_objext \
26448 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26449fi
26450echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26451echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26452
26453 if test $ac_cv_func_gethostbyname = no; then
26454 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26455echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26456if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26457 echo $ECHO_N "(cached) $ECHO_C" >&6
26458else
26459 ac_check_lib_save_LIBS=$LIBS
26460LIBS="-lnsl $LIBS"
26461cat >conftest.$ac_ext <<_ACEOF
26462/* confdefs.h. */
26463_ACEOF
26464cat confdefs.h >>conftest.$ac_ext
26465cat >>conftest.$ac_ext <<_ACEOF
26466/* end confdefs.h. */
26467
26468/* Override any gcc2 internal prototype to avoid an error. */
26469#ifdef __cplusplus
26470extern "C"
26471#endif
26472/* We use char because int might match the return type of a gcc2
26473 builtin and then its argument prototype would still apply. */
26474char gethostbyname ();
26475int
26476main ()
26477{
26478gethostbyname ();
26479 ;
26480 return 0;
26481}
26482_ACEOF
26483rm -f conftest.$ac_objext conftest$ac_exeext
26484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26485 (eval $ac_link) 2>conftest.er1
26486 ac_status=$?
26487 grep -v '^ *+' conftest.er1 >conftest.err
26488 rm -f conftest.er1
26489 cat conftest.err >&5
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); } &&
9dd0f6c2 26492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26494 (eval $ac_try) 2>&5
26495 ac_status=$?
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); }; } &&
26498 { ac_try='test -s conftest$ac_exeext'
26499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26500 (eval $ac_try) 2>&5
26501 ac_status=$?
26502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26503 (exit $ac_status); }; }; then
26504 ac_cv_lib_nsl_gethostbyname=yes
26505else
26506 echo "$as_me: failed program was:" >&5
26507sed 's/^/| /' conftest.$ac_ext >&5
26508
26509ac_cv_lib_nsl_gethostbyname=no
26510fi
26511rm -f conftest.err conftest.$ac_objext \
26512 conftest$ac_exeext conftest.$ac_ext
26513LIBS=$ac_check_lib_save_LIBS
26514fi
26515echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26516echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26517if test $ac_cv_lib_nsl_gethostbyname = yes; then
26518 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26519fi
26520
26521 if test $ac_cv_lib_nsl_gethostbyname = no; then
26522 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26523echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26524if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26525 echo $ECHO_N "(cached) $ECHO_C" >&6
26526else
26527 ac_check_lib_save_LIBS=$LIBS
26528LIBS="-lbsd $LIBS"
26529cat >conftest.$ac_ext <<_ACEOF
26530/* confdefs.h. */
26531_ACEOF
26532cat confdefs.h >>conftest.$ac_ext
26533cat >>conftest.$ac_ext <<_ACEOF
26534/* end confdefs.h. */
26535
26536/* Override any gcc2 internal prototype to avoid an error. */
26537#ifdef __cplusplus
26538extern "C"
26539#endif
26540/* We use char because int might match the return type of a gcc2
26541 builtin and then its argument prototype would still apply. */
26542char gethostbyname ();
26543int
26544main ()
26545{
26546gethostbyname ();
26547 ;
26548 return 0;
26549}
26550_ACEOF
26551rm -f conftest.$ac_objext conftest$ac_exeext
26552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26553 (eval $ac_link) 2>conftest.er1
a848cd7e 26554 ac_status=$?
ac1cb8d3
VS
26555 grep -v '^ *+' conftest.er1 >conftest.err
26556 rm -f conftest.er1
26557 cat conftest.err >&5
a848cd7e
SC
26558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559 (exit $ac_status); } &&
9dd0f6c2 26560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26562 (eval $ac_try) 2>&5
26563 ac_status=$?
26564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26565 (exit $ac_status); }; } &&
26566 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26568 (eval $ac_try) 2>&5
26569 ac_status=$?
26570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571 (exit $ac_status); }; }; then
26572 ac_cv_lib_bsd_gethostbyname=yes
26573else
26574 echo "$as_me: failed program was:" >&5
26575sed 's/^/| /' conftest.$ac_ext >&5
26576
26577ac_cv_lib_bsd_gethostbyname=no
26578fi
ac1cb8d3
VS
26579rm -f conftest.err conftest.$ac_objext \
26580 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26581LIBS=$ac_check_lib_save_LIBS
26582fi
26583echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26584echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26585if test $ac_cv_lib_bsd_gethostbyname = yes; then
26586 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26587fi
26588
26589 fi
26590 fi
26591
26592 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26593 # socket/setsockopt and other routines are undefined under SCO ODT
26594 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26595 # on later versions), says Simon Leinen: it contains gethostby*
26596 # variants that don't use the name server (or something). -lsocket
26597 # must be given before -lnsl if both are needed. We assume that
26598 # if connect needs -lnsl, so does gethostbyname.
26599 echo "$as_me:$LINENO: checking for connect" >&5
26600echo $ECHO_N "checking for connect... $ECHO_C" >&6
26601if test "${ac_cv_func_connect+set}" = set; then
26602 echo $ECHO_N "(cached) $ECHO_C" >&6
26603else
26604 cat >conftest.$ac_ext <<_ACEOF
26605/* confdefs.h. */
26606_ACEOF
26607cat confdefs.h >>conftest.$ac_ext
26608cat >>conftest.$ac_ext <<_ACEOF
26609/* end confdefs.h. */
ac1cb8d3
VS
26610/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26612#define connect innocuous_connect
26613
a848cd7e
SC
26614/* System header to define __stub macros and hopefully few prototypes,
26615 which can conflict with char connect (); below.
26616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26617 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26618
a848cd7e
SC
26619#ifdef __STDC__
26620# include <limits.h>
26621#else
26622# include <assert.h>
26623#endif
ac1cb8d3
VS
26624
26625#undef connect
26626
a848cd7e
SC
26627/* Override any gcc2 internal prototype to avoid an error. */
26628#ifdef __cplusplus
26629extern "C"
26630{
26631#endif
26632/* We use char because int might match the return type of a gcc2
26633 builtin and then its argument prototype would still apply. */
26634char connect ();
26635/* The GNU C library defines this for functions which it implements
26636 to always fail with ENOSYS. Some functions are actually named
26637 something starting with __ and the normal name is an alias. */
26638#if defined (__stub_connect) || defined (__stub___connect)
26639choke me
26640#else
26641char (*f) () = connect;
26642#endif
26643#ifdef __cplusplus
26644}
26645#endif
26646
26647int
26648main ()
26649{
26650return f != connect;
26651 ;
26652 return 0;
26653}
26654_ACEOF
26655rm -f conftest.$ac_objext conftest$ac_exeext
26656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26657 (eval $ac_link) 2>conftest.er1
a848cd7e 26658 ac_status=$?
ac1cb8d3
VS
26659 grep -v '^ *+' conftest.er1 >conftest.err
26660 rm -f conftest.er1
26661 cat conftest.err >&5
a848cd7e
SC
26662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663 (exit $ac_status); } &&
9dd0f6c2 26664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26666 (eval $ac_try) 2>&5
26667 ac_status=$?
26668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669 (exit $ac_status); }; } &&
26670 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26672 (eval $ac_try) 2>&5
26673 ac_status=$?
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); }; }; then
26676 ac_cv_func_connect=yes
26677else
26678 echo "$as_me: failed program was:" >&5
26679sed 's/^/| /' conftest.$ac_ext >&5
26680
26681ac_cv_func_connect=no
26682fi
ac1cb8d3
VS
26683rm -f conftest.err conftest.$ac_objext \
26684 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26685fi
26686echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26687echo "${ECHO_T}$ac_cv_func_connect" >&6
26688
26689 if test $ac_cv_func_connect = no; then
26690 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26691echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26692if test "${ac_cv_lib_socket_connect+set}" = set; then
26693 echo $ECHO_N "(cached) $ECHO_C" >&6
26694else
26695 ac_check_lib_save_LIBS=$LIBS
26696LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26697cat >conftest.$ac_ext <<_ACEOF
26698/* confdefs.h. */
26699_ACEOF
26700cat confdefs.h >>conftest.$ac_ext
26701cat >>conftest.$ac_ext <<_ACEOF
26702/* end confdefs.h. */
26703
26704/* Override any gcc2 internal prototype to avoid an error. */
26705#ifdef __cplusplus
26706extern "C"
26707#endif
26708/* We use char because int might match the return type of a gcc2
26709 builtin and then its argument prototype would still apply. */
26710char connect ();
26711int
26712main ()
26713{
26714connect ();
26715 ;
26716 return 0;
26717}
26718_ACEOF
26719rm -f conftest.$ac_objext conftest$ac_exeext
26720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26721 (eval $ac_link) 2>conftest.er1
a848cd7e 26722 ac_status=$?
ac1cb8d3
VS
26723 grep -v '^ *+' conftest.er1 >conftest.err
26724 rm -f conftest.er1
26725 cat conftest.err >&5
a848cd7e
SC
26726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727 (exit $ac_status); } &&
9dd0f6c2 26728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26730 (eval $ac_try) 2>&5
26731 ac_status=$?
26732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733 (exit $ac_status); }; } &&
26734 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26736 (eval $ac_try) 2>&5
26737 ac_status=$?
26738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739 (exit $ac_status); }; }; then
26740 ac_cv_lib_socket_connect=yes
26741else
26742 echo "$as_me: failed program was:" >&5
26743sed 's/^/| /' conftest.$ac_ext >&5
26744
26745ac_cv_lib_socket_connect=no
26746fi
ac1cb8d3
VS
26747rm -f conftest.err conftest.$ac_objext \
26748 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26749LIBS=$ac_check_lib_save_LIBS
26750fi
26751echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26752echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26753if test $ac_cv_lib_socket_connect = yes; then
26754 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26755fi
26756
26757 fi
26758
26759 # Guillermo Gomez says -lposix is necessary on A/UX.
26760 echo "$as_me:$LINENO: checking for remove" >&5
26761echo $ECHO_N "checking for remove... $ECHO_C" >&6
26762if test "${ac_cv_func_remove+set}" = set; then
26763 echo $ECHO_N "(cached) $ECHO_C" >&6
26764else
26765 cat >conftest.$ac_ext <<_ACEOF
26766/* confdefs.h. */
26767_ACEOF
26768cat confdefs.h >>conftest.$ac_ext
26769cat >>conftest.$ac_ext <<_ACEOF
26770/* end confdefs.h. */
ac1cb8d3
VS
26771/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26773#define remove innocuous_remove
26774
a848cd7e
SC
26775/* System header to define __stub macros and hopefully few prototypes,
26776 which can conflict with char remove (); below.
26777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26778 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26779
a848cd7e
SC
26780#ifdef __STDC__
26781# include <limits.h>
26782#else
26783# include <assert.h>
26784#endif
ac1cb8d3
VS
26785
26786#undef remove
26787
a848cd7e
SC
26788/* Override any gcc2 internal prototype to avoid an error. */
26789#ifdef __cplusplus
26790extern "C"
26791{
26792#endif
26793/* We use char because int might match the return type of a gcc2
26794 builtin and then its argument prototype would still apply. */
26795char remove ();
26796/* The GNU C library defines this for functions which it implements
26797 to always fail with ENOSYS. Some functions are actually named
26798 something starting with __ and the normal name is an alias. */
26799#if defined (__stub_remove) || defined (__stub___remove)
26800choke me
26801#else
26802char (*f) () = remove;
26803#endif
26804#ifdef __cplusplus
26805}
26806#endif
26807
26808int
26809main ()
26810{
26811return f != remove;
26812 ;
26813 return 0;
26814}
26815_ACEOF
26816rm -f conftest.$ac_objext conftest$ac_exeext
26817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26818 (eval $ac_link) 2>conftest.er1
a848cd7e 26819 ac_status=$?
ac1cb8d3
VS
26820 grep -v '^ *+' conftest.er1 >conftest.err
26821 rm -f conftest.er1
26822 cat conftest.err >&5
a848cd7e
SC
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); } &&
9dd0f6c2 26825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26827 (eval $ac_try) 2>&5
26828 ac_status=$?
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); }; } &&
26831 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833 (eval $ac_try) 2>&5
26834 ac_status=$?
26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836 (exit $ac_status); }; }; then
26837 ac_cv_func_remove=yes
26838else
26839 echo "$as_me: failed program was:" >&5
26840sed 's/^/| /' conftest.$ac_ext >&5
26841
26842ac_cv_func_remove=no
26843fi
ac1cb8d3
VS
26844rm -f conftest.err conftest.$ac_objext \
26845 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26846fi
26847echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26848echo "${ECHO_T}$ac_cv_func_remove" >&6
26849
26850 if test $ac_cv_func_remove = no; then
26851 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26852echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26853if test "${ac_cv_lib_posix_remove+set}" = set; then
26854 echo $ECHO_N "(cached) $ECHO_C" >&6
26855else
26856 ac_check_lib_save_LIBS=$LIBS
26857LIBS="-lposix $LIBS"
26858cat >conftest.$ac_ext <<_ACEOF
26859/* confdefs.h. */
26860_ACEOF
26861cat confdefs.h >>conftest.$ac_ext
26862cat >>conftest.$ac_ext <<_ACEOF
26863/* end confdefs.h. */
26864
26865/* Override any gcc2 internal prototype to avoid an error. */
26866#ifdef __cplusplus
26867extern "C"
26868#endif
26869/* We use char because int might match the return type of a gcc2
26870 builtin and then its argument prototype would still apply. */
26871char remove ();
26872int
26873main ()
26874{
26875remove ();
26876 ;
26877 return 0;
26878}
26879_ACEOF
26880rm -f conftest.$ac_objext conftest$ac_exeext
26881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26882 (eval $ac_link) 2>conftest.er1
a848cd7e 26883 ac_status=$?
ac1cb8d3
VS
26884 grep -v '^ *+' conftest.er1 >conftest.err
26885 rm -f conftest.er1
26886 cat conftest.err >&5
a848cd7e
SC
26887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888 (exit $ac_status); } &&
9dd0f6c2 26889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26891 (eval $ac_try) 2>&5
26892 ac_status=$?
26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894 (exit $ac_status); }; } &&
26895 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26897 (eval $ac_try) 2>&5
26898 ac_status=$?
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); }; }; then
26901 ac_cv_lib_posix_remove=yes
26902else
26903 echo "$as_me: failed program was:" >&5
26904sed 's/^/| /' conftest.$ac_ext >&5
26905
26906ac_cv_lib_posix_remove=no
26907fi
ac1cb8d3
VS
26908rm -f conftest.err conftest.$ac_objext \
26909 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26910LIBS=$ac_check_lib_save_LIBS
26911fi
26912echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26913echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26914if test $ac_cv_lib_posix_remove = yes; then
26915 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26916fi
26917
26918 fi
26919
26920 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26921 echo "$as_me:$LINENO: checking for shmat" >&5
26922echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26923if test "${ac_cv_func_shmat+set}" = set; then
26924 echo $ECHO_N "(cached) $ECHO_C" >&6
26925else
26926 cat >conftest.$ac_ext <<_ACEOF
26927/* confdefs.h. */
26928_ACEOF
26929cat confdefs.h >>conftest.$ac_ext
26930cat >>conftest.$ac_ext <<_ACEOF
26931/* end confdefs.h. */
ac1cb8d3
VS
26932/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26934#define shmat innocuous_shmat
26935
a848cd7e
SC
26936/* System header to define __stub macros and hopefully few prototypes,
26937 which can conflict with char shmat (); below.
26938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26939 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26940
a848cd7e
SC
26941#ifdef __STDC__
26942# include <limits.h>
26943#else
26944# include <assert.h>
26945#endif
ac1cb8d3
VS
26946
26947#undef shmat
26948
a848cd7e
SC
26949/* Override any gcc2 internal prototype to avoid an error. */
26950#ifdef __cplusplus
26951extern "C"
26952{
26953#endif
26954/* We use char because int might match the return type of a gcc2
26955 builtin and then its argument prototype would still apply. */
26956char shmat ();
26957/* The GNU C library defines this for functions which it implements
26958 to always fail with ENOSYS. Some functions are actually named
26959 something starting with __ and the normal name is an alias. */
26960#if defined (__stub_shmat) || defined (__stub___shmat)
26961choke me
26962#else
26963char (*f) () = shmat;
26964#endif
26965#ifdef __cplusplus
26966}
26967#endif
26968
26969int
26970main ()
26971{
26972return f != shmat;
26973 ;
26974 return 0;
26975}
26976_ACEOF
26977rm -f conftest.$ac_objext conftest$ac_exeext
26978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26979 (eval $ac_link) 2>conftest.er1
a848cd7e 26980 ac_status=$?
ac1cb8d3
VS
26981 grep -v '^ *+' conftest.er1 >conftest.err
26982 rm -f conftest.er1
26983 cat conftest.err >&5
a848cd7e
SC
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); } &&
9dd0f6c2 26986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26988 (eval $ac_try) 2>&5
26989 ac_status=$?
26990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991 (exit $ac_status); }; } &&
26992 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26994 (eval $ac_try) 2>&5
26995 ac_status=$?
26996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); }; }; then
26998 ac_cv_func_shmat=yes
26999else
27000 echo "$as_me: failed program was:" >&5
27001sed 's/^/| /' conftest.$ac_ext >&5
27002
27003ac_cv_func_shmat=no
27004fi
ac1cb8d3
VS
27005rm -f conftest.err conftest.$ac_objext \
27006 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27007fi
27008echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27009echo "${ECHO_T}$ac_cv_func_shmat" >&6
27010
27011 if test $ac_cv_func_shmat = no; then
27012 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27013echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27014if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27015 echo $ECHO_N "(cached) $ECHO_C" >&6
27016else
27017 ac_check_lib_save_LIBS=$LIBS
27018LIBS="-lipc $LIBS"
27019cat >conftest.$ac_ext <<_ACEOF
27020/* confdefs.h. */
27021_ACEOF
27022cat confdefs.h >>conftest.$ac_ext
27023cat >>conftest.$ac_ext <<_ACEOF
27024/* end confdefs.h. */
27025
27026/* Override any gcc2 internal prototype to avoid an error. */
27027#ifdef __cplusplus
27028extern "C"
27029#endif
27030/* We use char because int might match the return type of a gcc2
27031 builtin and then its argument prototype would still apply. */
27032char shmat ();
27033int
27034main ()
27035{
27036shmat ();
27037 ;
27038 return 0;
27039}
27040_ACEOF
27041rm -f conftest.$ac_objext conftest$ac_exeext
27042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27043 (eval $ac_link) 2>conftest.er1
a848cd7e 27044 ac_status=$?
ac1cb8d3
VS
27045 grep -v '^ *+' conftest.er1 >conftest.err
27046 rm -f conftest.er1
27047 cat conftest.err >&5
a848cd7e
SC
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); } &&
9dd0f6c2 27050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27052 (eval $ac_try) 2>&5
27053 ac_status=$?
27054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055 (exit $ac_status); }; } &&
27056 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27058 (eval $ac_try) 2>&5
27059 ac_status=$?
27060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061 (exit $ac_status); }; }; then
27062 ac_cv_lib_ipc_shmat=yes
27063else
27064 echo "$as_me: failed program was:" >&5
27065sed 's/^/| /' conftest.$ac_ext >&5
27066
27067ac_cv_lib_ipc_shmat=no
27068fi
ac1cb8d3
VS
27069rm -f conftest.err conftest.$ac_objext \
27070 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27071LIBS=$ac_check_lib_save_LIBS
27072fi
27073echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27074echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27075if test $ac_cv_lib_ipc_shmat = yes; then
27076 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27077fi
27078
27079 fi
27080 fi
27081
27082 # Check for libraries that X11R6 Xt/Xaw programs need.
27083 ac_save_LDFLAGS=$LDFLAGS
27084 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27085 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27086 # check for ICE first), but we must link in the order -lSM -lICE or
27087 # we get undefined symbols. So assume we have SM if we have ICE.
27088 # These have to be linked with before -lX11, unlike the other
27089 # libraries we check for below, so use a different variable.
27090 # John Interrante, Karl Berry
27091 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27092echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27093if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27094 echo $ECHO_N "(cached) $ECHO_C" >&6
27095else
27096 ac_check_lib_save_LIBS=$LIBS
27097LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27098cat >conftest.$ac_ext <<_ACEOF
27099/* confdefs.h. */
27100_ACEOF
27101cat confdefs.h >>conftest.$ac_ext
27102cat >>conftest.$ac_ext <<_ACEOF
27103/* end confdefs.h. */
27104
27105/* Override any gcc2 internal prototype to avoid an error. */
27106#ifdef __cplusplus
27107extern "C"
27108#endif
27109/* We use char because int might match the return type of a gcc2
27110 builtin and then its argument prototype would still apply. */
27111char IceConnectionNumber ();
27112int
27113main ()
27114{
27115IceConnectionNumber ();
27116 ;
27117 return 0;
27118}
27119_ACEOF
27120rm -f conftest.$ac_objext conftest$ac_exeext
27121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27122 (eval $ac_link) 2>conftest.er1
a848cd7e 27123 ac_status=$?
ac1cb8d3
VS
27124 grep -v '^ *+' conftest.er1 >conftest.err
27125 rm -f conftest.er1
27126 cat conftest.err >&5
a848cd7e
SC
27127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); } &&
9dd0f6c2 27129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27131 (eval $ac_try) 2>&5
27132 ac_status=$?
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); }; } &&
27135 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27137 (eval $ac_try) 2>&5
27138 ac_status=$?
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; }; then
27141 ac_cv_lib_ICE_IceConnectionNumber=yes
27142else
27143 echo "$as_me: failed program was:" >&5
27144sed 's/^/| /' conftest.$ac_ext >&5
27145
27146ac_cv_lib_ICE_IceConnectionNumber=no
27147fi
ac1cb8d3
VS
27148rm -f conftest.err conftest.$ac_objext \
27149 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27150LIBS=$ac_check_lib_save_LIBS
27151fi
27152echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27153echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27154if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27155 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27156fi
27157
27158 LDFLAGS=$ac_save_LDFLAGS
27159
27160fi
27161
27162
27163 if test "$no_x" = "yes"; then
27164 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27165echo "$as_me: error: X11 not found" >&2;}
27166 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27167 fi
27168
74b84332
VS
27169 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27170 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27171 AFMINSTALL=afminstall
27172 COMPILED_X_PROGRAM=0
27173
74b84332
VS
27174 fi
27175
27176 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27177 if test "$wxUSE_NANOX" = "yes"; then
27178 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27179echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27180 if test "x$MICROWIN" = x ; then
27181 echo "$as_me:$LINENO: result: not found" >&5
27182echo "${ECHO_T}not found" >&6
27183 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27184echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27185 { (exit 1); exit 1; }; }
27186 else
27187 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27188echo "${ECHO_T}$MICROWIN" >&6
27189 cat >>confdefs.h <<\_ACEOF
27190#define wxUSE_NANOX 1
27191_ACEOF
27192
27193 fi
27194 fi
27195
27196 if test "$wxUSE_UNICODE" = "yes"; then
27197
27198 succeeded=no
27199
27200 if test -z "$PKG_CONFIG"; then
27201 # Extract the first word of "pkg-config", so it can be a program name with args.
27202set dummy pkg-config; ac_word=$2
27203echo "$as_me:$LINENO: checking for $ac_word" >&5
27204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27205if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27206 echo $ECHO_N "(cached) $ECHO_C" >&6
27207else
27208 case $PKG_CONFIG in
27209 [\\/]* | ?:[\\/]*)
27210 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27211 ;;
27212 *)
27213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27214for as_dir in $PATH
27215do
27216 IFS=$as_save_IFS
27217 test -z "$as_dir" && as_dir=.
27218 for ac_exec_ext in '' $ac_executable_extensions; do
27219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27220 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27222 break 2
27223 fi
27224done
27225done
27226
27227 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27228 ;;
27229esac
27230fi
27231PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27232
27233if test -n "$PKG_CONFIG"; then
27234 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27235echo "${ECHO_T}$PKG_CONFIG" >&6
27236else
27237 echo "$as_me:$LINENO: result: no" >&5
27238echo "${ECHO_T}no" >&6
27239fi
27240
27241 fi
27242
27243 if test "$PKG_CONFIG" = "no" ; then
27244 echo "*** The pkg-config script could not be found. Make sure it is"
27245 echo "*** in your path, or set the PKG_CONFIG environment variable"
27246 echo "*** to the full path to pkg-config."
27247 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27248 else
27249 PKG_CONFIG_MIN_VERSION=0.9.0
27250 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27251 echo "$as_me:$LINENO: checking for pangox" >&5
27252echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27253
27254 if $PKG_CONFIG --exists "pangox" ; then
27255 echo "$as_me:$LINENO: result: yes" >&5
27256echo "${ECHO_T}yes" >&6
27257 succeeded=yes
27258
27259 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27260echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27261 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27262 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27263echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27264
27265 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27266echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27267 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27268 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27269echo "${ECHO_T}$PANGOX_LIBS" >&6
27270 else
27271 PANGOX_CFLAGS=""
27272 PANGOX_LIBS=""
27273 ## If we have a custom action on failure, don't print errors, but
27274 ## do set a variable so people can do so.
27275 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27276
27277 fi
27278
27279
27280
27281 else
27282 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27283 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27284 fi
27285 fi
27286
27287 if test $succeeded = yes; then
27288
27289 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27290 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27291
27292 else
27293
27294 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27295echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27296 { (exit 1); exit 1; }; }
27297
27298
27299 fi
27300
27301
27302 succeeded=no
27303
27304 if test -z "$PKG_CONFIG"; then
27305 # Extract the first word of "pkg-config", so it can be a program name with args.
27306set dummy pkg-config; ac_word=$2
27307echo "$as_me:$LINENO: checking for $ac_word" >&5
27308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27309if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27310 echo $ECHO_N "(cached) $ECHO_C" >&6
27311else
27312 case $PKG_CONFIG in
27313 [\\/]* | ?:[\\/]*)
27314 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27315 ;;
27316 *)
27317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27318for as_dir in $PATH
27319do
27320 IFS=$as_save_IFS
27321 test -z "$as_dir" && as_dir=.
27322 for ac_exec_ext in '' $ac_executable_extensions; do
27323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27324 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27326 break 2
27327 fi
27328done
27329done
27330
27331 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27332 ;;
27333esac
27334fi
27335PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27336
27337if test -n "$PKG_CONFIG"; then
27338 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27339echo "${ECHO_T}$PKG_CONFIG" >&6
27340else
27341 echo "$as_me:$LINENO: result: no" >&5
27342echo "${ECHO_T}no" >&6
27343fi
27344
27345 fi
27346
27347 if test "$PKG_CONFIG" = "no" ; then
27348 echo "*** The pkg-config script could not be found. Make sure it is"
27349 echo "*** in your path, or set the PKG_CONFIG environment variable"
27350 echo "*** to the full path to pkg-config."
27351 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27352 else
27353 PKG_CONFIG_MIN_VERSION=0.9.0
27354 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27355 echo "$as_me:$LINENO: checking for pangoft2" >&5
27356echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27357
27358 if $PKG_CONFIG --exists "pangoft2" ; then
27359 echo "$as_me:$LINENO: result: yes" >&5
27360echo "${ECHO_T}yes" >&6
27361 succeeded=yes
27362
27363 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27364echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27365 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27366 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27367echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27368
27369 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27370echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27371 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27372 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27373echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27374 else
27375 PANGOFT2_CFLAGS=""
27376 PANGOFT2_LIBS=""
27377 ## If we have a custom action on failure, don't print errors, but
27378 ## do set a variable so people can do so.
27379 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27380
27381 fi
27382
27383
27384
27385 else
27386 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27387 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27388 fi
27389 fi
27390
27391 if test $succeeded = yes; then
27392
27393 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27394 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27395
27396 else
27397
27398 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27399echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27400 wxUSE_PRINTING_ARCHITECTURE="no"
27401
27402
27403 fi
27404
27405
27406 succeeded=no
27407
27408 if test -z "$PKG_CONFIG"; then
27409 # Extract the first word of "pkg-config", so it can be a program name with args.
27410set dummy pkg-config; ac_word=$2
27411echo "$as_me:$LINENO: checking for $ac_word" >&5
27412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27413if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27414 echo $ECHO_N "(cached) $ECHO_C" >&6
27415else
27416 case $PKG_CONFIG in
27417 [\\/]* | ?:[\\/]*)
27418 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27419 ;;
27420 *)
27421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27422for as_dir in $PATH
27423do
27424 IFS=$as_save_IFS
27425 test -z "$as_dir" && as_dir=.
27426 for ac_exec_ext in '' $ac_executable_extensions; do
27427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27428 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27430 break 2
27431 fi
27432done
27433done
27434
27435 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27436 ;;
27437esac
27438fi
27439PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27440
27441if test -n "$PKG_CONFIG"; then
27442 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27443echo "${ECHO_T}$PKG_CONFIG" >&6
27444else
27445 echo "$as_me:$LINENO: result: no" >&5
27446echo "${ECHO_T}no" >&6
27447fi
27448
27449 fi
27450
27451 if test "$PKG_CONFIG" = "no" ; then
27452 echo "*** The pkg-config script could not be found. Make sure it is"
27453 echo "*** in your path, or set the PKG_CONFIG environment variable"
27454 echo "*** to the full path to pkg-config."
27455 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27456 else
27457 PKG_CONFIG_MIN_VERSION=0.9.0
27458 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27459 echo "$as_me:$LINENO: checking for pangoxft" >&5
27460echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27461
27462 if $PKG_CONFIG --exists "pangoxft" ; then
27463 echo "$as_me:$LINENO: result: yes" >&5
27464echo "${ECHO_T}yes" >&6
27465 succeeded=yes
27466
27467 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27468echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27469 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27470 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27471echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27472
27473 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27474echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27475 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27476 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27477echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27478 else
27479 PANGOXFT_CFLAGS=""
27480 PANGOXFT_LIBS=""
27481 ## If we have a custom action on failure, don't print errors, but
27482 ## do set a variable so people can do so.
27483 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27484
27485 fi
27486
27487
27488
27489 else
27490 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27491 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27492 fi
27493 fi
27494
27495 if test $succeeded = yes; then
27496
4ae1af05
MB
27497 cat >>confdefs.h <<\_ACEOF
27498#define HAVE_PANGO_XFT 1
27499_ACEOF
27500
a848cd7e
SC
27501 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27502 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27503
27504 else
27505
27506 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27507echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27508
27509
27510 fi
27511
304205f1
VS
27512 save_CFLAGS="$CFLAGS"
27513 save_LIBS="$LIBS"
27514 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27515 LIBS="$LIBS $PANGOX_LIBS"
27516
27517for ac_func in pango_font_family_is_monospace
27518do
27519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27520echo "$as_me:$LINENO: checking for $ac_func" >&5
27521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27522if eval "test \"\${$as_ac_var+set}\" = set"; then
27523 echo $ECHO_N "(cached) $ECHO_C" >&6
27524else
27525 cat >conftest.$ac_ext <<_ACEOF
27526/* confdefs.h. */
27527_ACEOF
27528cat confdefs.h >>conftest.$ac_ext
27529cat >>conftest.$ac_ext <<_ACEOF
27530/* end confdefs.h. */
27531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27533#define $ac_func innocuous_$ac_func
27534
27535/* System header to define __stub macros and hopefully few prototypes,
27536 which can conflict with char $ac_func (); below.
27537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27538 <limits.h> exists even on freestanding compilers. */
27539
27540#ifdef __STDC__
27541# include <limits.h>
27542#else
27543# include <assert.h>
27544#endif
27545
27546#undef $ac_func
27547
27548/* Override any gcc2 internal prototype to avoid an error. */
27549#ifdef __cplusplus
27550extern "C"
27551{
27552#endif
27553/* We use char because int might match the return type of a gcc2
27554 builtin and then its argument prototype would still apply. */
27555char $ac_func ();
27556/* The GNU C library defines this for functions which it implements
27557 to always fail with ENOSYS. Some functions are actually named
27558 something starting with __ and the normal name is an alias. */
27559#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27560choke me
27561#else
27562char (*f) () = $ac_func;
27563#endif
27564#ifdef __cplusplus
27565}
27566#endif
27567
27568int
27569main ()
27570{
27571return f != $ac_func;
27572 ;
27573 return 0;
27574}
27575_ACEOF
27576rm -f conftest.$ac_objext conftest$ac_exeext
27577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27578 (eval $ac_link) 2>conftest.er1
27579 ac_status=$?
27580 grep -v '^ *+' conftest.er1 >conftest.err
27581 rm -f conftest.er1
27582 cat conftest.err >&5
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); } &&
9dd0f6c2 27585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
27586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27587 (eval $ac_try) 2>&5
27588 ac_status=$?
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); }; } &&
27591 { ac_try='test -s conftest$ac_exeext'
27592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27593 (eval $ac_try) 2>&5
27594 ac_status=$?
27595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596 (exit $ac_status); }; }; then
27597 eval "$as_ac_var=yes"
27598else
27599 echo "$as_me: failed program was:" >&5
27600sed 's/^/| /' conftest.$ac_ext >&5
27601
27602eval "$as_ac_var=no"
27603fi
27604rm -f conftest.err conftest.$ac_objext \
27605 conftest$ac_exeext conftest.$ac_ext
27606fi
27607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27608echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27609if test `eval echo '${'$as_ac_var'}'` = yes; then
27610 cat >>confdefs.h <<_ACEOF
27611#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27612_ACEOF
27613
27614fi
27615done
27616
27617 CFLAGS="$save_CFLAGS"
27618 LIBS="$save_LIBS"
a848cd7e
SC
27619 fi
27620
27621 wxUSE_UNIVERSAL="yes"
27622
27623 if test "$wxUSE_NANOX" = "yes"; then
27624 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27625 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"
27626 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27627 else
27628 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27629 fi
27630
a848cd7e
SC
27631 TOOLKIT=X11
27632 GUIDIST=X11_DIST
27633 fi
27634
27635 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
27636 if test "$wxUSE_UNICODE" = "yes"; then
27637 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
27638echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
27639 { (exit 1); exit 1; }; }
27640 fi
27641
74b84332
VS
27642 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27643echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 27644
74b84332
VS
27645ac_find_includes=
27646for ac_dir in $SEARCH_INCLUDE /usr/include;
27647 do
27648 if test -f "$ac_dir/Xm/Xm.h"; then
27649 ac_find_includes=$ac_dir
27650 break
27651 fi
27652 done
a848cd7e 27653
74b84332
VS
27654 if test "$ac_find_includes" != "" ; then
27655 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27656echo "${ECHO_T}found in $ac_find_includes" >&6
27657
27658 if test "x$ac_find_includes" = "x/usr/include"; then
27659 ac_path_to_include=""
27660 else
27661 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27662 result=$?
27663 if test $result = 0; then
27664 ac_path_to_include=""
27665 else
27666 ac_path_to_include=" -I$ac_find_includes"
27667 fi
a848cd7e
SC
27668 fi
27669
74b84332
VS
27670 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27671 else
27672 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27673/* confdefs.h. */
27674_ACEOF
27675cat confdefs.h >>conftest.$ac_ext
27676cat >>conftest.$ac_ext <<_ACEOF
27677/* end confdefs.h. */
27678
74b84332
VS
27679 #include <Xm/Xm.h>
27680
a848cd7e
SC
27681int
27682main ()
27683{
27684
74b84332
VS
27685 int version;
27686 version = xmUseVersion;
27687
a848cd7e
SC
27688 ;
27689 return 0;
27690}
27691_ACEOF
74b84332
VS
27692rm -f conftest.$ac_objext
27693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27694 (eval $ac_compile) 2>conftest.er1
a848cd7e 27695 ac_status=$?
ac1cb8d3
VS
27696 grep -v '^ *+' conftest.er1 >conftest.err
27697 rm -f conftest.er1
27698 cat conftest.err >&5
a848cd7e
SC
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); } &&
9dd0f6c2 27701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27703 (eval $ac_try) 2>&5
27704 ac_status=$?
27705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706 (exit $ac_status); }; } &&
74b84332 27707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27709 (eval $ac_try) 2>&5
27710 ac_status=$?
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); }; }; then
74b84332
VS
27713
27714 echo "$as_me:$LINENO: result: found in default search path" >&5
27715echo "${ECHO_T}found in default search path" >&6
27716 COMPILED_X_PROGRAM=1
27717
a848cd7e
SC
27718else
27719 echo "$as_me: failed program was:" >&5
27720sed 's/^/| /' conftest.$ac_ext >&5
27721
a848cd7e 27722
74b84332
VS
27723 echo "$as_me:$LINENO: result: no" >&5
27724echo "${ECHO_T}no" >&6
27725 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27726echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27727 { (exit 1); exit 1; }; }
a848cd7e 27728
a848cd7e 27729
a848cd7e 27730fi
74b84332
VS
27731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27732 fi
27733
27734 if test "$COMPILED_X_PROGRAM" = 0; then
27735 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27736echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27737
27738ac_find_libraries=
27739for ac_dir in $SEARCH_LIB /usr/lib;
27740 do
27741 for ac_extension in a so sl dylib; do
27742 if test -f "$ac_dir/libXm.$ac_extension"; then
27743 ac_find_libraries=$ac_dir
27744 break 2
a848cd7e 27745 fi
74b84332
VS
27746 done
27747 done
a848cd7e 27748
74b84332
VS
27749 if test "$ac_find_libraries" != "" ; then
27750 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27751echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 27752
74b84332
VS
27753
27754 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27755 result=$?
27756 if test $result = 0; then
27757 ac_path_to_link=""
a848cd7e 27758 else
74b84332
VS
27759 ac_path_to_link=" -L$ac_find_libraries"
27760 fi
27761
27762 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27763 else
27764 save_CFLAGS=$CFLAGS
27765 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27766
27767 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27768/* confdefs.h. */
27769_ACEOF
27770cat confdefs.h >>conftest.$ac_ext
27771cat >>conftest.$ac_ext <<_ACEOF
27772/* end confdefs.h. */
27773
74b84332
VS
27774 #include <Xm/Xm.h>
27775
a848cd7e
SC
27776int
27777main ()
27778{
74b84332
VS
27779
27780 int version;
27781 version = xmUseVersion;
27782
a848cd7e
SC
27783 ;
27784 return 0;
27785}
27786_ACEOF
74b84332
VS
27787rm -f conftest.$ac_objext
27788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27789 (eval $ac_compile) 2>conftest.er1
a848cd7e 27790 ac_status=$?
ac1cb8d3
VS
27791 grep -v '^ *+' conftest.er1 >conftest.err
27792 rm -f conftest.er1
27793 cat conftest.err >&5
a848cd7e
SC
27794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27795 (exit $ac_status); } &&
9dd0f6c2 27796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27798 (eval $ac_try) 2>&5
27799 ac_status=$?
27800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); }; } &&
74b84332 27802 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804 (eval $ac_try) 2>&5
27805 ac_status=$?
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); }; }; then
74b84332
VS
27808
27809 echo "$as_me:$LINENO: result: found in default search path" >&5
27810echo "${ECHO_T}found in default search path" >&6
27811 COMPILED_X_PROGRAM=1
27812
a848cd7e
SC
27813else
27814 echo "$as_me: failed program was:" >&5
27815sed 's/^/| /' conftest.$ac_ext >&5
27816
74b84332
VS
27817
27818 echo "$as_me:$LINENO: result: no" >&5
27819echo "${ECHO_T}no" >&6
27820 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27821echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27822 { (exit 1); exit 1; }; }
27823
27824
27825fi
27826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27827
27828 CFLAGS=$save_CFLAGS
27829 fi
27830 fi
27831
27832 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27833echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27834 libp_link=""
27835 libsm_ice_link=""
27836 libs_found=0
27837 for libp in "" " -lXp"; do
27838 if test "$libs_found" = "0"; then
27839 for libsm_ice in "" " -lSM -lICE"; do
27840 if test "$libs_found" = "0"; then
27841 save_LIBS="$LIBS"
27842 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27843 save_CFLAGS=$CFLAGS
27844 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27845
27846 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27847/* confdefs.h. */
27848_ACEOF
27849cat confdefs.h >>conftest.$ac_ext
27850cat >>conftest.$ac_ext <<_ACEOF
27851/* end confdefs.h. */
27852
74b84332
VS
27853 #include <Xm/Xm.h>
27854 #include <Xm/List.h>
27855
a848cd7e
SC
27856int
27857main ()
27858{
74b84332
VS
27859
27860 XmString string = NULL;
27861 Widget w = NULL;
27862 int position = 0;
27863 XmListAddItem(w, string, position);
27864
a848cd7e
SC
27865 ;
27866 return 0;
27867}
27868_ACEOF
27869rm -f conftest.$ac_objext conftest$ac_exeext
27870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27871 (eval $ac_link) 2>conftest.er1
a848cd7e 27872 ac_status=$?
ac1cb8d3
VS
27873 grep -v '^ *+' conftest.er1 >conftest.err
27874 rm -f conftest.er1
27875 cat conftest.err >&5
a848cd7e
SC
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); } &&
9dd0f6c2 27878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27880 (eval $ac_try) 2>&5
27881 ac_status=$?
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); }; } &&
27884 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27886 (eval $ac_try) 2>&5
27887 ac_status=$?
27888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889 (exit $ac_status); }; }; then
27890
27891 libp_link="$libp"
27892 libsm_ice_link="$libsm_ice"
27893 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27894echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27895 libs_found=1
27896
27897else
27898 echo "$as_me: failed program was:" >&5
27899sed 's/^/| /' conftest.$ac_ext >&5
27900
27901
27902
27903fi
ac1cb8d3
VS
27904rm -f conftest.err conftest.$ac_objext \
27905 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27906
27907 LIBS="$save_LIBS"
27908 CFLAGS=$save_CFLAGS
27909 fi
27910 done
27911 fi
27912 done
27913
27914 if test "$libs_found" = "0"; then
27915 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27916echo "${ECHO_T}can't find the right libraries" >&6
27917 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27918echo "$as_me: error: can't link a simple motif program" >&2;}
27919 { (exit 1); exit 1; }; }
27920 fi
27921
27922 save_CFLAGS=$CFLAGS
27923 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27924 echo "$as_me:$LINENO: checking for Motif 2" >&5
27925echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27926 cat >conftest.$ac_ext <<_ACEOF
27927/* confdefs.h. */
27928_ACEOF
27929cat confdefs.h >>conftest.$ac_ext
27930cat >>conftest.$ac_ext <<_ACEOF
27931/* end confdefs.h. */
27932
27933 #include <Xm/Xm.h>
27934
27935int
27936main ()
27937{
27938
27939 #if XmVersion < 2000
27940 #error "Not Motif 2"
27941 #endif
27942
27943 ;
27944 return 0;
27945}
27946_ACEOF
27947rm -f conftest.$ac_objext
27948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27949 (eval $ac_compile) 2>conftest.er1
a848cd7e 27950 ac_status=$?
ac1cb8d3
VS
27951 grep -v '^ *+' conftest.er1 >conftest.err
27952 rm -f conftest.er1
27953 cat conftest.err >&5
a848cd7e
SC
27954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955 (exit $ac_status); } &&
9dd0f6c2 27956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27958 (eval $ac_try) 2>&5
27959 ac_status=$?
27960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961 (exit $ac_status); }; } &&
27962 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27964 (eval $ac_try) 2>&5
27965 ac_status=$?
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); }; }; then
27968
27969 cat >>confdefs.h <<\_ACEOF
27970#define __WXMOTIF20__ 1
27971_ACEOF
27972
27973 echo "$as_me:$LINENO: result: found" >&5
27974echo "${ECHO_T}found" >&6
27975
27976else
27977 echo "$as_me: failed program was:" >&5
27978sed 's/^/| /' conftest.$ac_ext >&5
27979
27980
27981 cat >>confdefs.h <<\_ACEOF
27982#define __WXMOTIF20__ 0
27983_ACEOF
27984
27985 echo "$as_me:$LINENO: result: not found" >&5
27986echo "${ECHO_T}not found" >&6
27987
27988fi
ac1cb8d3 27989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27990 CFLAGS=$save_CFLAGS
27991
27992 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
27993 TOOLKIT=MOTIF
27994 GUIDIST=MOTIF_DIST
27995 fi
27996
74b84332 27997 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
27998 if test "$wxUSE_LIBXPM" = "sys"; then
27999 echo "$as_me:$LINENO: checking for Xpm library" >&5
28000echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28001
28002ac_find_libraries=
28003for ac_dir in $SEARCH_LIB /usr/lib;
28004 do
28005 for ac_extension in a so sl dylib; do
28006 if test -f "$ac_dir/libXpm.$ac_extension"; then
28007 ac_find_libraries=$ac_dir
28008 break 2
28009 fi
28010 done
28011 done
28012
28013 if test "$ac_find_libraries" != "" ; then
28014
28015 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28016 result=$?
28017 if test $result = 0; then
28018 ac_path_to_link=""
28019 else
28020 ac_path_to_link=" -L$ac_find_libraries"
28021 fi
28022
28023 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28024 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28025echo "${ECHO_T}found at $ac_find_libraries" >&6
28026
28027 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28028echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28029if test "${wx_cv_x11_xpm_h+set}" = set; then
28030 echo $ECHO_N "(cached) $ECHO_C" >&6
28031else
28032
28033 save_CFLAGS=$CFLAGS
28034 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28035
28036 cat >conftest.$ac_ext <<_ACEOF
28037/* confdefs.h. */
28038_ACEOF
28039cat confdefs.h >>conftest.$ac_ext
28040cat >>conftest.$ac_ext <<_ACEOF
28041/* end confdefs.h. */
28042
28043 #include <X11/xpm.h>
28044
28045int
28046main ()
28047{
28048
28049 int version;
28050 version = XpmLibraryVersion();
28051
28052 ;
28053 return 0;
28054}
28055_ACEOF
28056rm -f conftest.$ac_objext
28057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28058 (eval $ac_compile) 2>conftest.er1
a848cd7e 28059 ac_status=$?
ac1cb8d3
VS
28060 grep -v '^ *+' conftest.er1 >conftest.err
28061 rm -f conftest.er1
28062 cat conftest.err >&5
a848cd7e
SC
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); } &&
9dd0f6c2 28065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28067 (eval $ac_try) 2>&5
28068 ac_status=$?
28069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070 (exit $ac_status); }; } &&
28071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28073 (eval $ac_try) 2>&5
28074 ac_status=$?
28075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076 (exit $ac_status); }; }; then
28077 wx_cv_x11_xpm_h=yes
28078else
28079 echo "$as_me: failed program was:" >&5
28080sed 's/^/| /' conftest.$ac_ext >&5
28081
28082wx_cv_x11_xpm_h=no
28083
28084fi
ac1cb8d3 28085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28086
28087 CFLAGS=$save_CFLAGS
28088
28089
28090fi
28091echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28092echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28093
28094 if test $wx_cv_x11_xpm_h = "yes"; then
28095 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28096 cat >>confdefs.h <<\_ACEOF
28097#define wxHAVE_LIB_XPM 1
28098_ACEOF
28099
28100 else
28101 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28102echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28103 fi
28104 fi
28105
28106 fi
28107
28108 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28109echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28110if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28111 echo $ECHO_N "(cached) $ECHO_C" >&6
28112else
28113 ac_check_lib_save_LIBS=$LIBS
28114LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28115cat >conftest.$ac_ext <<_ACEOF
28116/* confdefs.h. */
28117_ACEOF
28118cat confdefs.h >>conftest.$ac_ext
28119cat >>conftest.$ac_ext <<_ACEOF
28120/* end confdefs.h. */
28121
28122/* Override any gcc2 internal prototype to avoid an error. */
28123#ifdef __cplusplus
28124extern "C"
28125#endif
28126/* We use char because int might match the return type of a gcc2
28127 builtin and then its argument prototype would still apply. */
28128char XShapeQueryExtension ();
28129int
28130main ()
28131{
28132XShapeQueryExtension ();
28133 ;
28134 return 0;
28135}
28136_ACEOF
28137rm -f conftest.$ac_objext conftest$ac_exeext
28138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28139 (eval $ac_link) 2>conftest.er1
a848cd7e 28140 ac_status=$?
ac1cb8d3
VS
28141 grep -v '^ *+' conftest.er1 >conftest.err
28142 rm -f conftest.er1
28143 cat conftest.err >&5
a848cd7e
SC
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); } &&
9dd0f6c2 28146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28148 (eval $ac_try) 2>&5
28149 ac_status=$?
28150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151 (exit $ac_status); }; } &&
28152 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28154 (eval $ac_try) 2>&5
28155 ac_status=$?
28156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157 (exit $ac_status); }; }; then
28158 ac_cv_lib_Xext_XShapeQueryExtension=yes
28159else
28160 echo "$as_me: failed program was:" >&5
28161sed 's/^/| /' conftest.$ac_ext >&5
28162
28163ac_cv_lib_Xext_XShapeQueryExtension=no
28164fi
ac1cb8d3
VS
28165rm -f conftest.err conftest.$ac_objext \
28166 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28167LIBS=$ac_check_lib_save_LIBS
28168fi
28169echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28170echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28171if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28172
28173 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28174 wxHAVE_XEXT_LIB=1
28175
28176fi
28177
28178
28179 if test "$wxHAVE_XEXT_LIB" = 1; then
28180 save_CFLAGS="$CFLAGS"
28181 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28182
28183 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28184echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28185 cat >conftest.$ac_ext <<_ACEOF
28186/* confdefs.h. */
28187_ACEOF
28188cat confdefs.h >>conftest.$ac_ext
28189cat >>conftest.$ac_ext <<_ACEOF
28190/* end confdefs.h. */
28191
28192 #include <X11/Xlib.h>
28193 #include <X11/extensions/shape.h>
28194
28195int
28196main ()
28197{
28198
28199 int dummy1, dummy2;
28200 XShapeQueryExtension((Display*)NULL,
28201 (int*)NULL, (int*)NULL);
28202
28203 ;
28204 return 0;
28205}
28206_ACEOF
28207rm -f conftest.$ac_objext
28208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28209 (eval $ac_compile) 2>conftest.er1
a848cd7e 28210 ac_status=$?
ac1cb8d3
VS
28211 grep -v '^ *+' conftest.er1 >conftest.err
28212 rm -f conftest.er1
28213 cat conftest.err >&5
a848cd7e
SC
28214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215 (exit $ac_status); } &&
9dd0f6c2 28216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28218 (eval $ac_try) 2>&5
28219 ac_status=$?
28220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221 (exit $ac_status); }; } &&
28222 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28224 (eval $ac_try) 2>&5
28225 ac_status=$?
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); }; }; then
28228
28229 cat >>confdefs.h <<\_ACEOF
28230#define HAVE_XSHAPE 1
28231_ACEOF
28232
28233 echo "$as_me:$LINENO: result: found" >&5
28234echo "${ECHO_T}found" >&6
28235
28236else
28237 echo "$as_me: failed program was:" >&5
28238sed 's/^/| /' conftest.$ac_ext >&5
28239
28240
28241 echo "$as_me:$LINENO: result: not found" >&5
28242echo "${ECHO_T}not found" >&6
28243
28244fi
ac1cb8d3 28245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28246 CFLAGS="$save_CFLAGS"
28247
28248 fi
28249 fi
28250
28251 if test "$wxUSE_MAC" = 1; then
28252 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28253echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28254 if test "$GCC" = yes; then
28255 echo "$as_me:$LINENO: result: gcc" >&5
28256echo "${ECHO_T}gcc" >&6
28257 CPPFLAGS_PASCAL="-fpascal-strings"
28258 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28259 echo "$as_me:$LINENO: result: xlc" >&5
28260echo "${ECHO_T}xlc" >&6
28261 CPPFLAGS_PASCAL="-qmacpstr"
28262 else
28263 echo "$as_me:$LINENO: result: none" >&5
28264echo "${ECHO_T}none" >&6
28265 fi
28266
1e9e8aba
DE
28267 if test "x$wxUSE_UNIX" = "xyes"; then
28268 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28269 else
28270 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28271 fi
a848cd7e 28272
a848cd7e
SC
28273 TOOLKIT=MAC
28274 GUIDIST=MACX_DIST
dd21ced8 28275 WXBASEPORT="_carbon"
a848cd7e
SC
28276 fi
28277
28278 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28279 TOOLKIT=COCOA
28280 GUIDIST=COCOA_DIST
28281 fi
28282
28283 if test "$wxUSE_PM" = 1; then
28284 TOOLKIT=PM
de59c161
RD
28285 GUIDIST=PM_DIST
28286 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28287echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28288if test "${wx_cv_spbcdata+set}" = set; then
28289 echo $ECHO_N "(cached) $ECHO_C" >&6
28290else
28291
28292 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28293/* confdefs.h. */
28294_ACEOF
28295cat confdefs.h >>conftest.$ac_ext
28296cat >>conftest.$ac_ext <<_ACEOF
28297/* end confdefs.h. */
28298
28299 #define INCL_PM
28300 #include <os2.h>
28301
28302int
28303main ()
28304{
28305
28306 SPBCDATA test;
28307
28308 ;
28309 return 0;
28310}
28311_ACEOF
28312rm -f conftest.$ac_objext
28313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28314 (eval $ac_compile) 2>conftest.er1
de59c161 28315 ac_status=$?
ac1cb8d3
VS
28316 grep -v '^ *+' conftest.er1 >conftest.err
28317 rm -f conftest.er1
28318 cat conftest.err >&5
de59c161
RD
28319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320 (exit $ac_status); } &&
9dd0f6c2 28321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28323 (eval $ac_try) 2>&5
28324 ac_status=$?
28325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326 (exit $ac_status); }; } &&
28327 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28329 (eval $ac_try) 2>&5
28330 ac_status=$?
28331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332 (exit $ac_status); }; }; then
28333 wx_cv_spbcdata=yes
28334else
28335 echo "$as_me: failed program was:" >&5
28336sed 's/^/| /' conftest.$ac_ext >&5
28337
28338wx_cv_spbcdata=no
28339
28340fi
ac1cb8d3 28341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28342
28343
28344fi
28345echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28346echo "${ECHO_T}$wx_cv_spbcdata" >&6
28347
28348 if test $wx_cv_spbcdata = "yes"; then
28349 cat >>confdefs.h <<\_ACEOF
28350#define HAVE_SPBCDATA 1
28351_ACEOF
28352
28353 fi
a848cd7e
SC
28354 fi
28355
28356 if test "$TOOLKIT" = "PM" ; then
28357 TOOLKIT_DIR="os2"
28358 else
28359 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28360 fi
28361
a848cd7e 28362 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28363 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28364 WIDGET_SET=univ
a848cd7e
SC
28365 fi
28366
28367 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28368 DISTDIR="wx\$(TOOLKIT)"
28369else
28370 USE_GUI=0
28371
28372 TOOLKIT_DIR="base"
28373
28374 if test "$USE_WIN32" = 1 ; then
a848cd7e 28375 TOOLKIT="MSW"
a848cd7e
SC
28376 fi
28377
a848cd7e
SC
28378 GUIDIST="BASE_DIST"
28379 DISTDIR="wxBase"
28380fi
28381
28382
28383
28384
28385IODBC_C_SRC=""
28386
28387
28388if test "$TOOLKIT" != "MSW" ; then
28389
28390 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28391
28392 if test "${ac_cv_header_sql_h+set}" = set; then
28393 echo "$as_me:$LINENO: checking for sql.h" >&5
28394echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28395if test "${ac_cv_header_sql_h+set}" = set; then
28396 echo $ECHO_N "(cached) $ECHO_C" >&6
28397fi
28398echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28399echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28400else
28401 # Is the header compilable?
28402echo "$as_me:$LINENO: checking sql.h usability" >&5
28403echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28404cat >conftest.$ac_ext <<_ACEOF
28405/* confdefs.h. */
28406_ACEOF
28407cat confdefs.h >>conftest.$ac_ext
28408cat >>conftest.$ac_ext <<_ACEOF
28409/* end confdefs.h. */
28410$ac_includes_default
28411#include <sql.h>
28412_ACEOF
28413rm -f conftest.$ac_objext
28414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28415 (eval $ac_compile) 2>conftest.er1
a848cd7e 28416 ac_status=$?
ac1cb8d3
VS
28417 grep -v '^ *+' conftest.er1 >conftest.err
28418 rm -f conftest.er1
28419 cat conftest.err >&5
a848cd7e
SC
28420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421 (exit $ac_status); } &&
9dd0f6c2 28422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28424 (eval $ac_try) 2>&5
28425 ac_status=$?
28426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28427 (exit $ac_status); }; } &&
28428 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28430 (eval $ac_try) 2>&5
28431 ac_status=$?
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); }; }; then
28434 ac_header_compiler=yes
28435else
28436 echo "$as_me: failed program was:" >&5
28437sed 's/^/| /' conftest.$ac_ext >&5
28438
28439ac_header_compiler=no
28440fi
ac1cb8d3 28441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28442echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28443echo "${ECHO_T}$ac_header_compiler" >&6
28444
28445# Is the header present?
28446echo "$as_me:$LINENO: checking sql.h presence" >&5
28447echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28448cat >conftest.$ac_ext <<_ACEOF
28449/* confdefs.h. */
28450_ACEOF
28451cat confdefs.h >>conftest.$ac_ext
28452cat >>conftest.$ac_ext <<_ACEOF
28453/* end confdefs.h. */
28454#include <sql.h>
28455_ACEOF
28456if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28458 ac_status=$?
28459 grep -v '^ *+' conftest.er1 >conftest.err
28460 rm -f conftest.er1
28461 cat conftest.err >&5
28462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28463 (exit $ac_status); } >/dev/null; then
28464 if test -s conftest.err; then
28465 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28467 else
28468 ac_cpp_err=
28469 fi
28470else
28471 ac_cpp_err=yes
28472fi
28473if test -z "$ac_cpp_err"; then
28474 ac_header_preproc=yes
28475else
28476 echo "$as_me: failed program was:" >&5
28477sed 's/^/| /' conftest.$ac_ext >&5
28478
28479 ac_header_preproc=no
28480fi
28481rm -f conftest.err conftest.$ac_ext
28482echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28483echo "${ECHO_T}$ac_header_preproc" >&6
28484
28485# So? What about this header?
ac1cb8d3
VS
28486case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28487 yes:no: )
a848cd7e
SC
28488 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28489echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28490 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28491echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28492 ac_header_preproc=yes
a848cd7e 28493 ;;
ac1cb8d3 28494 no:yes:* )
a848cd7e
SC
28495 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28496echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28497 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28498echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28499 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28500echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28501 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28502echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28503 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28504echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28505 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28506echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28507 (
28508 cat <<\_ASBOX
ac1cb8d3
VS
28509## ----------------------------------------- ##
28510## Report this to wx-dev@lists.wxwidgets.org ##
28511## ----------------------------------------- ##
a848cd7e
SC
28512_ASBOX
28513 ) |
28514 sed "s/^/$as_me: WARNING: /" >&2
28515 ;;
28516esac
28517echo "$as_me:$LINENO: checking for sql.h" >&5
28518echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28519if test "${ac_cv_header_sql_h+set}" = set; then
28520 echo $ECHO_N "(cached) $ECHO_C" >&6
28521else
28522 ac_cv_header_sql_h=$ac_header_preproc
28523fi
28524echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28525echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28526
28527fi
28528if test $ac_cv_header_sql_h = yes; then
28529 found_sql_h=1
28530fi
28531
28532
28533 if test "x$found_sql_h" = "x1" ; then
28534 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28535echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28536if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28537 echo $ECHO_N "(cached) $ECHO_C" >&6
28538else
28539 ac_check_lib_save_LIBS=$LIBS
28540LIBS="-liodbc $LIBS"
28541cat >conftest.$ac_ext <<_ACEOF
28542/* confdefs.h. */
28543_ACEOF
28544cat confdefs.h >>conftest.$ac_ext
28545cat >>conftest.$ac_ext <<_ACEOF
28546/* end confdefs.h. */
28547
28548/* Override any gcc2 internal prototype to avoid an error. */
28549#ifdef __cplusplus
28550extern "C"
28551#endif
28552/* We use char because int might match the return type of a gcc2
28553 builtin and then its argument prototype would still apply. */
28554char SQLAllocEnv ();
28555int
28556main ()
28557{
28558SQLAllocEnv ();
28559 ;
28560 return 0;
28561}
28562_ACEOF
28563rm -f conftest.$ac_objext conftest$ac_exeext
28564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28565 (eval $ac_link) 2>conftest.er1
a848cd7e 28566 ac_status=$?
ac1cb8d3
VS
28567 grep -v '^ *+' conftest.er1 >conftest.err
28568 rm -f conftest.er1
28569 cat conftest.err >&5
a848cd7e
SC
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); } &&
9dd0f6c2 28572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28574 (eval $ac_try) 2>&5
28575 ac_status=$?
28576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577 (exit $ac_status); }; } &&
28578 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28580 (eval $ac_try) 2>&5
28581 ac_status=$?
28582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583 (exit $ac_status); }; }; then
28584 ac_cv_lib_iodbc_SQLAllocEnv=yes
28585else
28586 echo "$as_me: failed program was:" >&5
28587sed 's/^/| /' conftest.$ac_ext >&5
28588
28589ac_cv_lib_iodbc_SQLAllocEnv=no
28590fi
ac1cb8d3
VS
28591rm -f conftest.err conftest.$ac_objext \
28592 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28593LIBS=$ac_check_lib_save_LIBS
28594fi
28595echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28596echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28597if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28598 ODBC_LINK=" -liodbc"
28599else
28600
28601 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28602echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28603if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28604 echo $ECHO_N "(cached) $ECHO_C" >&6
28605else
28606 ac_check_lib_save_LIBS=$LIBS
28607LIBS="-lunixodbc $LIBS"
28608cat >conftest.$ac_ext <<_ACEOF
28609/* confdefs.h. */
28610_ACEOF
28611cat confdefs.h >>conftest.$ac_ext
28612cat >>conftest.$ac_ext <<_ACEOF
28613/* end confdefs.h. */
28614
28615/* Override any gcc2 internal prototype to avoid an error. */
28616#ifdef __cplusplus
28617extern "C"
28618#endif
28619/* We use char because int might match the return type of a gcc2
28620 builtin and then its argument prototype would still apply. */
28621char SQLAllocEnv ();
28622int
28623main ()
28624{
28625SQLAllocEnv ();
28626 ;
28627 return 0;
28628}
28629_ACEOF
28630rm -f conftest.$ac_objext conftest$ac_exeext
28631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28632 (eval $ac_link) 2>conftest.er1
a848cd7e 28633 ac_status=$?
ac1cb8d3
VS
28634 grep -v '^ *+' conftest.er1 >conftest.err
28635 rm -f conftest.er1
28636 cat conftest.err >&5
a848cd7e
SC
28637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638 (exit $ac_status); } &&
9dd0f6c2 28639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28641 (eval $ac_try) 2>&5
28642 ac_status=$?
28643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644 (exit $ac_status); }; } &&
28645 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28647 (eval $ac_try) 2>&5
28648 ac_status=$?
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); }; }; then
28651 ac_cv_lib_unixodbc_SQLAllocEnv=yes
28652else
28653 echo "$as_me: failed program was:" >&5
28654sed 's/^/| /' conftest.$ac_ext >&5
28655
28656ac_cv_lib_unixodbc_SQLAllocEnv=no
28657fi
ac1cb8d3
VS
28658rm -f conftest.err conftest.$ac_objext \
28659 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28660LIBS=$ac_check_lib_save_LIBS
28661fi
28662echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
28663echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
28664if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
28665 ODBC_LINK=" -lunixodbc"
28666else
28667
28668 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
28669echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
28670if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
28671 echo $ECHO_N "(cached) $ECHO_C" >&6
28672else
28673 ac_check_lib_save_LIBS=$LIBS
28674LIBS="-lodbc $LIBS"
28675cat >conftest.$ac_ext <<_ACEOF
28676/* confdefs.h. */
28677_ACEOF
28678cat confdefs.h >>conftest.$ac_ext
28679cat >>conftest.$ac_ext <<_ACEOF
28680/* end confdefs.h. */
28681
28682/* Override any gcc2 internal prototype to avoid an error. */
28683#ifdef __cplusplus
28684extern "C"
28685#endif
28686/* We use char because int might match the return type of a gcc2
28687 builtin and then its argument prototype would still apply. */
28688char SQLAllocEnv ();
28689int
28690main ()
28691{
28692SQLAllocEnv ();
28693 ;
28694 return 0;
28695}
28696_ACEOF
28697rm -f conftest.$ac_objext conftest$ac_exeext
28698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28699 (eval $ac_link) 2>conftest.er1
a848cd7e 28700 ac_status=$?
ac1cb8d3
VS
28701 grep -v '^ *+' conftest.er1 >conftest.err
28702 rm -f conftest.er1
28703 cat conftest.err >&5
a848cd7e
SC
28704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705 (exit $ac_status); } &&
9dd0f6c2 28706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28708 (eval $ac_try) 2>&5
28709 ac_status=$?
28710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711 (exit $ac_status); }; } &&
28712 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28714 (eval $ac_try) 2>&5
28715 ac_status=$?
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); }; }; then
28718 ac_cv_lib_odbc_SQLAllocEnv=yes
28719else
28720 echo "$as_me: failed program was:" >&5
28721sed 's/^/| /' conftest.$ac_ext >&5
28722
28723ac_cv_lib_odbc_SQLAllocEnv=no
28724fi
ac1cb8d3
VS
28725rm -f conftest.err conftest.$ac_objext \
28726 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28727LIBS=$ac_check_lib_save_LIBS
28728fi
28729echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28730echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28731if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28732 ODBC_LINK=" -lodbc"
28733fi
28734
28735
28736fi
28737
28738
28739fi
28740
28741 fi
28742 if test "x$ODBC_LINK" = "x" ; then
28743 if test "$wxUSE_ODBC" = "sys" ; then
28744 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28745echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28746 { (exit 1); exit 1; }; }
28747 else
28748 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28749echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28750 wxUSE_ODBC=builtin
28751 fi
28752 else
28753 wxUSE_ODBC=sys
28754 fi
28755 fi
a848cd7e 28756
2da0c077
RD
28757 if test "$wxUSE_ODBC" = "builtin" ; then
28758 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28759#define wxUSE_BUILTIN_IODBC 1
28760_ACEOF
28761
a848cd7e
SC
28762 fi
28763fi
28764
2da0c077
RD
28765if test "$wxUSE_ODBC" != "no" ; then
28766 cat >>confdefs.h <<\_ACEOF
28767#define wxUSE_ODBC 1
28768_ACEOF
28769
28770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28771
28772 WXODBCFLAG="-D_IODBC_"
28773fi
a848cd7e 28774
01cb68df 28775
a848cd7e 28776if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 28777 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
28778 echo "$as_me:$LINENO: checking for Xinerama" >&5
28779echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28780
28781ac_find_libraries=
28782for ac_dir in $SEARCH_LIB /usr/lib;
28783 do
28784 for ac_extension in a so sl dylib; do
28785 if test -f "$ac_dir/libXinerama.$ac_extension"; then
28786 ac_find_libraries=$ac_dir
28787 break 2
28788 fi
28789 done
28790 done
28791
28792 if test "$ac_find_libraries" != "" ; then
28793
28794 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28795 result=$?
28796 if test $result = 0; then
28797 ac_path_to_link=""
28798 else
28799 ac_path_to_link=" -L$ac_find_libraries"
28800 fi
28801
28802 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28803 LDFLAGS="$LDFLAGS $ac_path_to_link"
28804 fi
28805 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28806 echo "$as_me:$LINENO: result: yes" >&5
28807echo "${ECHO_T}yes" >&6
28808
28809 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28810echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28811
28812ac_find_libraries=
28813for ac_dir in $SEARCH_LIB /usr/lib;
28814 do
28815 for ac_extension in a so sl dylib; do
28816 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28817 ac_find_libraries=$ac_dir
28818 break 2
28819 fi
28820 done
28821 done
28822
28823 if test "$ac_find_libraries" != "" ; then
28824 echo "$as_me:$LINENO: result: yes" >&5
28825echo "${ECHO_T}yes" >&6
28826
28827for ac_header in X11/extensions/xf86vmode.h
28828do
28829as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28830echo "$as_me:$LINENO: checking for $ac_header" >&5
28831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28832if eval "test \"\${$as_ac_Header+set}\" = set"; then
28833 echo $ECHO_N "(cached) $ECHO_C" >&6
28834else
28835 cat >conftest.$ac_ext <<_ACEOF
28836/* confdefs.h. */
28837_ACEOF
28838cat confdefs.h >>conftest.$ac_ext
28839cat >>conftest.$ac_ext <<_ACEOF
28840/* end confdefs.h. */
28841
28842 #if HAVE_X11_XLIB_H
28843 #include <X11/Xlib.h>
28844 #endif
28845
28846
28847#include <$ac_header>
28848_ACEOF
28849rm -f conftest.$ac_objext
28850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28851 (eval $ac_compile) 2>conftest.er1
a848cd7e 28852 ac_status=$?
ac1cb8d3
VS
28853 grep -v '^ *+' conftest.er1 >conftest.err
28854 rm -f conftest.er1
28855 cat conftest.err >&5
a848cd7e
SC
28856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857 (exit $ac_status); } &&
9dd0f6c2 28858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28860 (eval $ac_try) 2>&5
28861 ac_status=$?
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); }; } &&
28864 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28866 (eval $ac_try) 2>&5
28867 ac_status=$?
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); }; }; then
28870 eval "$as_ac_Header=yes"
28871else
28872 echo "$as_me: failed program was:" >&5
28873sed 's/^/| /' conftest.$ac_ext >&5
28874
28875eval "$as_ac_Header=no"
28876fi
ac1cb8d3 28877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28878fi
28879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28881if test `eval echo '${'$as_ac_Header'}'` = yes; then
28882 cat >>confdefs.h <<_ACEOF
28883#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28884_ACEOF
28885
28886 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28887
28888fi
28889
28890done
28891
28892 else
28893 echo "$as_me:$LINENO: result: no" >&5
28894echo "${ECHO_T}no" >&6
28895 fi
28896
28897 else
28898 echo "$as_me:$LINENO: result: no" >&5
28899echo "${ECHO_T}no" >&6
dcc1b6ad
VS
28900 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28901echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
28902 wxUSE_DISPLAY="no"
28903 fi
01cb68df
RG
28904 elif test "$wxUSE_MSW" = 1; then
28905
28906
28907for ac_header in multimon.h ddraw.h
28908do
28909as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 28910echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
28911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28912if eval "test \"\${$as_ac_Header+set}\" = set"; then
28913 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 28914else
5294a27e 28915 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
28916/* confdefs.h. */
28917_ACEOF
28918cat confdefs.h >>conftest.$ac_ext
28919cat >>conftest.$ac_ext <<_ACEOF
28920/* end confdefs.h. */
5294a27e
VZ
28921#include <windows.h>
28922
01cb68df
RG
28923#include <$ac_header>
28924_ACEOF
28925rm -f conftest.$ac_objext
28926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28927 (eval $ac_compile) 2>conftest.er1
01cb68df 28928 ac_status=$?
ac1cb8d3
VS
28929 grep -v '^ *+' conftest.er1 >conftest.err
28930 rm -f conftest.er1
28931 cat conftest.err >&5
01cb68df
RG
28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933 (exit $ac_status); } &&
9dd0f6c2 28934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28936 (eval $ac_try) 2>&5
28937 ac_status=$?
28938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939 (exit $ac_status); }; } &&
28940 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
28941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28942 (eval $ac_try) 2>&5
28943 ac_status=$?
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); }; }; then
5294a27e 28946 eval "$as_ac_Header=yes"
01cb68df
RG
28947else
28948 echo "$as_me: failed program was:" >&5
28949sed 's/^/| /' conftest.$ac_ext >&5
28950
5294a27e 28951eval "$as_ac_Header=no"
01cb68df 28952fi
ac1cb8d3 28953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
28954fi
28955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28956echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
28957if test `eval echo '${'$as_ac_Header'}'` = yes; then
28958 cat >>confdefs.h <<_ACEOF
28959#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28960_ACEOF
28961
28962else
28963
5294a27e
VZ
28964 wxUSE_DISPLAY="no"
28965 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 28966echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
28967
28968fi
28969
28970done
28971
a848cd7e
SC
28972 fi
28973fi
28974
28975
28976USE_OPENGL=0
28977if test "$wxUSE_OPENGL" = "yes"; then
28978 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28979 OPENGL_LIBS="-framework OpenGL -framework AGL"
28980 elif test "$wxUSE_MSW" = 1; then
28981 OPENGL_LIBS="-lopengl32 -lglu32"
28982 else
28983
28984
28985ac_find_includes=
28986for ac_dir in $SEARCH_INCLUDE /usr/include;
28987 do
28988 if test -f "$ac_dir/GL/gl.h"; then
28989 ac_find_includes=$ac_dir
28990 break
28991 fi
28992 done
28993
28994 if test "$ac_find_includes" != "" ; then
28995 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28996echo "${ECHO_T}found in $ac_find_includes" >&6
28997
28998 if test "x$ac_find_includes" = "x/usr/include"; then
28999 ac_path_to_include=""
29000 else
29001 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29002 result=$?
29003 if test $result = 0; then
29004 ac_path_to_include=""
29005 else
29006 ac_path_to_include=" -I$ac_find_includes"
29007 fi
29008 fi
29009
29010 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29011 fi
29012
29013 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29014 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29015echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29016if test "${ac_cv_header_GL_gl_h+set}" = set; then
29017 echo $ECHO_N "(cached) $ECHO_C" >&6
29018fi
29019echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29020echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29021else
29022 # Is the header compilable?
29023echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29024echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29025cat >conftest.$ac_ext <<_ACEOF
29026/* confdefs.h. */
29027_ACEOF
29028cat confdefs.h >>conftest.$ac_ext
29029cat >>conftest.$ac_ext <<_ACEOF
29030/* end confdefs.h. */
29031$ac_includes_default
29032#include <GL/gl.h>
29033_ACEOF
29034rm -f conftest.$ac_objext
29035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29036 (eval $ac_compile) 2>conftest.er1
a848cd7e 29037 ac_status=$?
ac1cb8d3
VS
29038 grep -v '^ *+' conftest.er1 >conftest.err
29039 rm -f conftest.er1
29040 cat conftest.err >&5
a848cd7e
SC
29041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042 (exit $ac_status); } &&
9dd0f6c2 29043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29045 (eval $ac_try) 2>&5
29046 ac_status=$?
29047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048 (exit $ac_status); }; } &&
29049 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29051 (eval $ac_try) 2>&5
29052 ac_status=$?
29053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054 (exit $ac_status); }; }; then
29055 ac_header_compiler=yes
29056else
29057 echo "$as_me: failed program was:" >&5
29058sed 's/^/| /' conftest.$ac_ext >&5
29059
29060ac_header_compiler=no
29061fi
ac1cb8d3 29062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29063echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29064echo "${ECHO_T}$ac_header_compiler" >&6
29065
29066# Is the header present?
29067echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29068echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29069cat >conftest.$ac_ext <<_ACEOF
29070/* confdefs.h. */
29071_ACEOF
29072cat confdefs.h >>conftest.$ac_ext
29073cat >>conftest.$ac_ext <<_ACEOF
29074/* end confdefs.h. */
29075#include <GL/gl.h>
29076_ACEOF
29077if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29079 ac_status=$?
29080 grep -v '^ *+' conftest.er1 >conftest.err
29081 rm -f conftest.er1
29082 cat conftest.err >&5
29083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084 (exit $ac_status); } >/dev/null; then
29085 if test -s conftest.err; then
29086 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29088 else
29089 ac_cpp_err=
29090 fi
29091else
29092 ac_cpp_err=yes
29093fi
29094if test -z "$ac_cpp_err"; then
29095 ac_header_preproc=yes
29096else
29097 echo "$as_me: failed program was:" >&5
29098sed 's/^/| /' conftest.$ac_ext >&5
29099
29100 ac_header_preproc=no
29101fi
29102rm -f conftest.err conftest.$ac_ext
29103echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29104echo "${ECHO_T}$ac_header_preproc" >&6
29105
29106# So? What about this header?
ac1cb8d3
VS
29107case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29108 yes:no: )
a848cd7e
SC
29109 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29110echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29111 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29112echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29113 ac_header_preproc=yes
a848cd7e 29114 ;;
ac1cb8d3 29115 no:yes:* )
a848cd7e
SC
29116 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29117echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29118 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29119echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29120 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29121echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29122 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29123echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29124 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29125echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29126 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29127echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29128 (
29129 cat <<\_ASBOX
ac1cb8d3
VS
29130## ----------------------------------------- ##
29131## Report this to wx-dev@lists.wxwidgets.org ##
29132## ----------------------------------------- ##
a848cd7e
SC
29133_ASBOX
29134 ) |
29135 sed "s/^/$as_me: WARNING: /" >&2
29136 ;;
29137esac
29138echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29139echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29140if test "${ac_cv_header_GL_gl_h+set}" = set; then
29141 echo $ECHO_N "(cached) $ECHO_C" >&6
29142else
29143 ac_cv_header_GL_gl_h=$ac_header_preproc
29144fi
29145echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29146echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29147
29148fi
29149if test $ac_cv_header_GL_gl_h = yes; then
29150
29151 found_gl=0
29152
29153 echo "$as_me:$LINENO: checking for -lGL" >&5
29154echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29155
29156ac_find_libraries=
29157for ac_dir in $SEARCH_LIB /usr/lib;
29158 do
29159 for ac_extension in a so sl dylib; do
29160 if test -f "$ac_dir/libGL.$ac_extension"; then
29161 ac_find_libraries=$ac_dir
29162 break 2
29163 fi
29164 done
29165 done
29166
29167 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29168 echo "$as_me:$LINENO: result: yes" >&5
29169echo "${ECHO_T}yes" >&6
29170
a848cd7e
SC
29171
29172 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29173 result=$?
29174 if test $result = 0; then
29175 ac_path_to_link=""
29176 else
29177 ac_path_to_link=" -L$ac_find_libraries"
29178 fi
29179
29180 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29181 LDFLAGS_GL="$ac_path_to_link"
29182 fi
29183
69120ee4
VZ
29184 echo "$as_me:$LINENO: checking for -lGLU" >&5
29185echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29186
29187ac_find_libraries=
29188for ac_dir in $SEARCH_LIB /usr/lib;
29189 do
29190 for ac_extension in a so sl dylib; do
29191 if test -f "$ac_dir/libGLU.$ac_extension"; then
29192 ac_find_libraries=$ac_dir
29193 break 2
29194 fi
29195 done
29196 done
29197
29198 if test "$ac_find_libraries" != "" ; then
29199
29200 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29201 result=$?
29202 if test $result = 0; then
29203 ac_path_to_link=""
29204 else
29205 ac_path_to_link=" -L$ac_find_libraries"
29206 fi
29207
29208 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29209 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29210 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29211 fi
29212
29213 found_gl=1
29214 OPENGL_LIBS="-lGL -lGLU"
29215 echo "$as_me:$LINENO: result: yes" >&5
29216echo "${ECHO_T}yes" >&6
69120ee4
VZ
29217 else
29218 echo "$as_me:$LINENO: result: no" >&5
29219echo "${ECHO_T}no" >&6
a848cd7e 29220 fi
69120ee4
VZ
29221 else
29222 echo "$as_me:$LINENO: result: no" >&5
29223echo "${ECHO_T}no" >&6
a848cd7e
SC
29224 fi
29225
29226 if test "$found_gl" != 1; then
a848cd7e
SC
29227 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29228echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29229
29230ac_find_libraries=
29231for ac_dir in $SEARCH_LIB /usr/lib;
29232 do
29233 for ac_extension in a so sl dylib; do
29234 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29235 ac_find_libraries=$ac_dir
29236 break 2
29237 fi
29238 done
29239 done
29240
29241 if test "$ac_find_libraries" != "" ; then
29242
29243 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29244 result=$?
29245 if test $result = 0; then
29246 ac_path_to_link=""
29247 else
29248 ac_path_to_link=" -L$ac_find_libraries"
29249 fi
29250
29251 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29252 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29253 echo "$as_me:$LINENO: result: yes" >&5
29254echo "${ECHO_T}yes" >&6
29255 else
29256 echo "$as_me:$LINENO: result: no" >&5
29257echo "${ECHO_T}no" >&6
29258 fi
29259 fi
29260
29261fi
29262
29263
29264
29265 if test "x$OPENGL_LIBS" = "x"; then
29266 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29267echo "$as_me: error: OpenGL libraries not available" >&2;}
29268 { (exit 1); exit 1; }; }
29269 fi
29270 fi
29271
29272 if test "$wxUSE_OPENGL" = "yes"; then
29273 USE_OPENGL=1
29274 cat >>confdefs.h <<\_ACEOF
29275#define wxUSE_OPENGL 1
29276_ACEOF
29277
29278 cat >>confdefs.h <<\_ACEOF
29279#define wxUSE_GLCANVAS 1
29280_ACEOF
29281
29282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29283 fi
29284fi
29285
a848cd7e
SC
29286
29287if test -n "$TOOLKIT" ; then
29288 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29289fi
29290
a848cd7e
SC
29291
29292
29293if test "$wxUSE_SHARED" = "yes"; then
29294 case "${host}" in
29295 *-pc-msdosdjgpp )
29296 wxUSE_SHARED=no
29297 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29298echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29299 ;;
29300 esac
29301fi
29302
a848cd7e 29303if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29304
29305
29306 found_versioning=no
29307
29308
29309 if test $found_versioning = no ; then
29310 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29311echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29312if test "${wx_cv_version_script+set}" = set; then
29313 echo $ECHO_N "(cached) $ECHO_C" >&6
29314else
29315
29316 echo "VER_1 { *; };" >conftest.sym
29317 echo "int main() { return 0; }" >conftest.cpp
29318
29319 if { ac_try='
29320 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29321 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29323 (eval $ac_try) 2>&5
29324 ac_status=$?
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); }; } ; then
29327 if test -s conftest.stderr ; then
29328 wx_cv_version_script=no
29329 else
29330 wx_cv_version_script=yes
29331 fi
29332 else
29333 wx_cv_version_script=no
29334 fi
29335 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
29336
29337fi
29338echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29339echo "${ECHO_T}$wx_cv_version_script" >&6
29340 if test $wx_cv_version_script = yes ; then
29341 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29342 fi
29343 fi
29344
29345
29346 case "${host}" in
29347 *-*-linux* | *-*-gnu* )
29348 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29349 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29350 ;;
29351
29352 *-*-solaris2* )
29353 if test "$GCC" = yes ; then
29354 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29355
29356 saveLdflags="$LDFLAGS"
29357 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29358 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29359echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29360 cat >conftest.$ac_ext <<_ACEOF
29361/* confdefs.h. */
29362_ACEOF
29363cat confdefs.h >>conftest.$ac_ext
29364cat >>conftest.$ac_ext <<_ACEOF
29365/* end confdefs.h. */
29366
29367int
29368main ()
29369{
29370
29371 ;
29372 return 0;
29373}
29374_ACEOF
29375rm -f conftest.$ac_objext conftest$ac_exeext
29376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29377 (eval $ac_link) 2>conftest.er1
a848cd7e 29378 ac_status=$?
ac1cb8d3
VS
29379 grep -v '^ *+' conftest.er1 >conftest.err
29380 rm -f conftest.er1
29381 cat conftest.err >&5
a848cd7e
SC
29382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383 (exit $ac_status); } &&
9dd0f6c2 29384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29386 (eval $ac_try) 2>&5
29387 ac_status=$?
29388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389 (exit $ac_status); }; } &&
29390 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29392 (eval $ac_try) 2>&5
29393 ac_status=$?
29394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 (exit $ac_status); }; }; then
29396
29397 echo "$as_me:$LINENO: result: yes" >&5
29398echo "${ECHO_T}yes" >&6
29399 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29400 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29401
29402else
29403 echo "$as_me: failed program was:" >&5
29404sed 's/^/| /' conftest.$ac_ext >&5
29405
29406
29407 echo "$as_me:$LINENO: result: no" >&5
29408echo "${ECHO_T}no" >&6
29409 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29410echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29411 LDFLAGS="$saveLdflags -Wl,-R,/"
29412 cat >conftest.$ac_ext <<_ACEOF
29413/* confdefs.h. */
29414_ACEOF
29415cat confdefs.h >>conftest.$ac_ext
29416cat >>conftest.$ac_ext <<_ACEOF
29417/* end confdefs.h. */
29418
29419int
29420main ()
29421{
29422
29423 ;
29424 return 0;
29425}
29426_ACEOF
29427rm -f conftest.$ac_objext conftest$ac_exeext
29428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29429 (eval $ac_link) 2>conftest.er1
a848cd7e 29430 ac_status=$?
ac1cb8d3
VS
29431 grep -v '^ *+' conftest.er1 >conftest.err
29432 rm -f conftest.er1
29433 cat conftest.err >&5
a848cd7e
SC
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); } &&
9dd0f6c2 29436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29438 (eval $ac_try) 2>&5
29439 ac_status=$?
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); }; } &&
29442 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29444 (eval $ac_try) 2>&5
29445 ac_status=$?
29446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29447 (exit $ac_status); }; }; then
29448
ffa0583f 29449 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29450echo "${ECHO_T}yes" >&6
ffa0583f
RL
29451 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29452 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29453
a848cd7e
SC
29454else
29455 echo "$as_me: failed program was:" >&5
29456sed 's/^/| /' conftest.$ac_ext >&5
29457
29458
29459 echo "$as_me:$LINENO: result: no" >&5
29460echo "${ECHO_T}no" >&6
29461
29462fi
ac1cb8d3
VS
29463rm -f conftest.err conftest.$ac_objext \
29464 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29465
29466fi
ac1cb8d3
VS
29467rm -f conftest.err conftest.$ac_objext \
29468 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29469 LDFLAGS="$saveLdflags"
29470 else
a848cd7e 29471 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29472 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29473 fi
29474 ;;
29475
29476 powerpc-*-darwin* )
29477 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29478 cat <<EOF >change-install-names
29479#!/bin/sh
29480libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29481inst_cmd="install_name_tool "
29482for i in \${libnames} ; do
29483 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29484done
29485\${inst_cmd} \${3}
29486EOF
29487 chmod +x change-install-names
29488 ;;
29489
29490 *-*-cygwin* | *-*-mingw32* )
29491 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29492 ;;
29493
81f90336
MW
29494 *-*-hpux* )
29495 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29496 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29497 ;;
29498
a848cd7e 29499 esac
ceec2216 29500
ffa0583f
RL
29501 if test $wxUSE_RPATH = "no"; then
29502 SAMPLES_RPATH_FLAG=''
29503 SAMPLES_RPATH_POSTLINK=''
29504 WXCONFIG_RPATH=''
29505 fi
29506
29507 SHARED=1
29508
29509else
29510
ceec2216
RL
29511 config_linkage_component="-static"
29512 SHARED=0
ffa0583f 29513
ceec2216 29514fi
a848cd7e 29515
a848cd7e 29516
ceec2216
RL
29517UNICODE=0
29518lib_unicode_suffix=
29519WX_CHARTYPE="ansi"
29520if test "$wxUSE_UNICODE" = "yes"; then
29521 lib_unicode_suffix=u
29522 WX_CHARTYPE="unicode"
29523 UNICODE=1
a848cd7e
SC
29524fi
29525
ceec2216
RL
29526lib_debug_suffix=
29527WX_DEBUGTYPE="release"
29528DEBUG_FLAG=0
29529if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29530 lib_debug_suffix=d
29531 WX_DEBUGTYPE="debug"
29532 DEBUG_FLAG=1
29533fi
a848cd7e 29534
ceec2216
RL
29535WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29536WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 29537
ceec2216
RL
29538DEBUG_INFO=0
29539if test "$wxUSE_DEBUG_INFO" = "yes"; then
29540 DEBUG_INFO=1
29541fi
a848cd7e 29542
ceec2216 29543WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 29544
ceec2216 29545TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 29546
ceec2216 29547TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 29548
ceec2216
RL
29549if test "$cross_compiling" = "yes"; then
29550 HOST_SUFFIX="-$host_alias"
29551 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29552 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
29553fi
29554
dd21ced8 29555WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
29556WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29557
29558
29559
1d1af5ea
DE
29560if test "$wxUSE_COCOA" = 1; then
29561
29562
29563 ac_ext=c
29564ac_cpp='$CPP $CPPFLAGS'
29565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29567ac_compiler_gnu=$ac_cv_c_compiler_gnu
29568
29569ac_ext=m
29570
29571 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
29572echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
29573 cat >conftest.$ac_ext <<_ACEOF
29574/* confdefs.h. */
29575_ACEOF
29576cat confdefs.h >>conftest.$ac_ext
29577cat >>conftest.$ac_ext <<_ACEOF
29578/* end confdefs.h. */
29579#include <AppKit/NSEvent.h>
29580#include <CoreFoundation/CoreFoundation.h>
29581
29582int
29583main ()
29584{
29585
29586 ;
29587 return 0;
29588}
29589_ACEOF
29590rm -f conftest.$ac_objext
29591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29592 (eval $ac_compile) 2>conftest.er1
29593 ac_status=$?
29594 grep -v '^ *+' conftest.er1 >conftest.err
29595 rm -f conftest.er1
29596 cat conftest.err >&5
29597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29598 (exit $ac_status); } &&
9dd0f6c2 29599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
29600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29601 (eval $ac_try) 2>&5
29602 ac_status=$?
29603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604 (exit $ac_status); }; } &&
29605 { ac_try='test -s conftest.$ac_objext'
29606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29607 (eval $ac_try) 2>&5
29608 ac_status=$?
29609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610 (exit $ac_status); }; }; then
29611 echo "$as_me:$LINENO: result: no" >&5
29612echo "${ECHO_T}no" >&6
29613else
29614 echo "$as_me: failed program was:" >&5
29615sed 's/^/| /' conftest.$ac_ext >&5
29616
29617echo "$as_me:$LINENO: result: yes" >&5
29618echo "${ECHO_T}yes" >&6
29619 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
29620echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
29621 cat >conftest.$ac_ext <<_ACEOF
29622/* confdefs.h. */
29623_ACEOF
29624cat confdefs.h >>conftest.$ac_ext
29625cat >>conftest.$ac_ext <<_ACEOF
29626/* end confdefs.h. */
29627#define __Point__ 1
29628#include <AppKit/NSEvent.h>
29629#include <CoreFoundation/CoreFoundation.h>
29630
29631int
29632main ()
29633{
29634
29635 ;
29636 return 0;
29637}
29638_ACEOF
29639rm -f conftest.$ac_objext
29640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29641 (eval $ac_compile) 2>conftest.er1
29642 ac_status=$?
29643 grep -v '^ *+' conftest.er1 >conftest.err
29644 rm -f conftest.er1
29645 cat conftest.err >&5
29646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647 (exit $ac_status); } &&
9dd0f6c2 29648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
29649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29650 (eval $ac_try) 2>&5
29651 ac_status=$?
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); }; } &&
29654 { ac_try='test -s conftest.$ac_objext'
29655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656 (eval $ac_try) 2>&5
29657 ac_status=$?
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); }; }; then
29660 echo "$as_me:$LINENO: result: yes" >&5
29661echo "${ECHO_T}yes" >&6
29662 cat >>confdefs.h <<\_ACEOF
29663#define __Point__ 1
29664_ACEOF
29665
29666
29667else
29668 echo "$as_me: failed program was:" >&5
29669sed 's/^/| /' conftest.$ac_ext >&5
29670
29671{ { echo "$as_me:$LINENO: error: no
29672See \`config.log' for more details." >&5
29673echo "$as_me: error: no
29674See \`config.log' for more details." >&2;}
29675 { (exit 1); exit 1; }; }
29676
29677fi
29678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29679
29680fi
29681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29682 ac_ext=c
29683ac_cpp='$CPP $CPPFLAGS'
29684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29686ac_compiler_gnu=$ac_cv_c_compiler_gnu
29687
29688fi
29689
a848cd7e 29690if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
29691 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
29692 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 29693
a848cd7e 29694 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
29695
29696 # Extract the first word of "Rez", so it can be a program name with args.
29697set dummy Rez; ac_word=$2
29698echo "$as_me:$LINENO: checking for $ac_word" >&5
29699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29700if test "${ac_cv_prog_RESCOMP+set}" = set; then
29701 echo $ECHO_N "(cached) $ECHO_C" >&6
29702else
29703 if test -n "$RESCOMP"; then
29704 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
29705else
29706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29707for as_dir in $PATH
29708do
29709 IFS=$as_save_IFS
29710 test -z "$as_dir" && as_dir=.
29711 for ac_exec_ext in '' $ac_executable_extensions; do
29712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29713 ac_cv_prog_RESCOMP="Rez"
29714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29715 break 2
29716 fi
29717done
29718done
29719
29720 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29721fi
29722fi
29723RESCOMP=$ac_cv_prog_RESCOMP
29724if test -n "$RESCOMP"; then
29725 echo "$as_me:$LINENO: result: $RESCOMP" >&5
29726echo "${ECHO_T}$RESCOMP" >&6
29727else
29728 echo "$as_me:$LINENO: result: no" >&5
29729echo "${ECHO_T}no" >&6
29730fi
29731
29732 # Extract the first word of "DeRez", so it can be a program name with args.
29733set dummy DeRez; ac_word=$2
29734echo "$as_me:$LINENO: checking for $ac_word" >&5
29735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29736if test "${ac_cv_prog_DEREZ+set}" = set; then
29737 echo $ECHO_N "(cached) $ECHO_C" >&6
29738else
29739 if test -n "$DEREZ"; then
29740 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29741else
29742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29743for as_dir in $PATH
29744do
29745 IFS=$as_save_IFS
29746 test -z "$as_dir" && as_dir=.
29747 for ac_exec_ext in '' $ac_executable_extensions; do
29748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29749 ac_cv_prog_DEREZ="DeRez"
29750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29751 break 2
29752 fi
29753done
29754done
29755
29756 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29757fi
29758fi
29759DEREZ=$ac_cv_prog_DEREZ
29760if test -n "$DEREZ"; then
29761 echo "$as_me:$LINENO: result: $DEREZ" >&5
29762echo "${ECHO_T}$DEREZ" >&6
29763else
29764 echo "$as_me:$LINENO: result: no" >&5
29765echo "${ECHO_T}no" >&6
29766fi
29767
29768 # Extract the first word of "SetFile", so it can be a program name with args.
29769set dummy SetFile; ac_word=$2
29770echo "$as_me:$LINENO: checking for $ac_word" >&5
29771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29772if test "${ac_cv_prog_SETFILE+set}" = set; then
29773 echo $ECHO_N "(cached) $ECHO_C" >&6
29774else
29775 if test -n "$SETFILE"; then
29776 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
29777else
29778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29779for as_dir in $PATH
29780do
29781 IFS=$as_save_IFS
29782 test -z "$as_dir" && as_dir=.
29783 for ac_exec_ext in '' $ac_executable_extensions; do
29784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29785 ac_cv_prog_SETFILE="SetFile"
29786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29787 break 2
29788 fi
29789done
29790done
29791
29792 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
29793fi
29794fi
29795SETFILE=$ac_cv_prog_SETFILE
29796if test -n "$SETFILE"; then
29797 echo "$as_me:$LINENO: result: $SETFILE" >&5
29798echo "${ECHO_T}$SETFILE" >&6
29799else
29800 echo "$as_me:$LINENO: result: no" >&5
29801echo "${ECHO_T}no" >&6
29802fi
29803
29804
29805 MACSETFILE="\$(SETFILE)"
29806
29807 if test "$wxUSE_MAC" = 1; then
1a79f136 29808 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 29809
1a79f136 29810 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
29811 else
29812 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
29813 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29814 fi
29815else
ffa0583f
RL
29816 MACSETFILE="@true"
29817 MACRESWXCONFIG="@true"
a848cd7e
SC
29818
29819 if test "$wxUSE_PM" = 1; then
29820 MACRESCOMP="emxbind -ep"
29821 else
ffa0583f 29822 MACRESCOMP="@true"
a848cd7e
SC
29823 fi
29824fi
29825
29826
29827
29828echo "$as_me:$LINENO: checking for mode_t" >&5
29829echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29830if test "${ac_cv_type_mode_t+set}" = set; then
29831 echo $ECHO_N "(cached) $ECHO_C" >&6
29832else
29833 cat >conftest.$ac_ext <<_ACEOF
29834/* confdefs.h. */
29835_ACEOF
29836cat confdefs.h >>conftest.$ac_ext
29837cat >>conftest.$ac_ext <<_ACEOF
29838/* end confdefs.h. */
29839$ac_includes_default
29840int
29841main ()
29842{
29843if ((mode_t *) 0)
29844 return 0;
29845if (sizeof (mode_t))
29846 return 0;
29847 ;
29848 return 0;
29849}
29850_ACEOF
29851rm -f conftest.$ac_objext
29852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29853 (eval $ac_compile) 2>conftest.er1
a848cd7e 29854 ac_status=$?
ac1cb8d3
VS
29855 grep -v '^ *+' conftest.er1 >conftest.err
29856 rm -f conftest.er1
29857 cat conftest.err >&5
a848cd7e
SC
29858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 (exit $ac_status); } &&
9dd0f6c2 29860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29862 (eval $ac_try) 2>&5
29863 ac_status=$?
29864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865 (exit $ac_status); }; } &&
29866 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29868 (eval $ac_try) 2>&5
29869 ac_status=$?
29870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29871 (exit $ac_status); }; }; then
29872 ac_cv_type_mode_t=yes
29873else
29874 echo "$as_me: failed program was:" >&5
29875sed 's/^/| /' conftest.$ac_ext >&5
29876
29877ac_cv_type_mode_t=no
29878fi
ac1cb8d3 29879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29880fi
29881echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29882echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29883if test $ac_cv_type_mode_t = yes; then
29884 :
29885else
29886
29887cat >>confdefs.h <<_ACEOF
29888#define mode_t int
29889_ACEOF
29890
29891fi
29892
29893echo "$as_me:$LINENO: checking for off_t" >&5
29894echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29895if test "${ac_cv_type_off_t+set}" = set; then
29896 echo $ECHO_N "(cached) $ECHO_C" >&6
29897else
29898 cat >conftest.$ac_ext <<_ACEOF
29899/* confdefs.h. */
29900_ACEOF
29901cat confdefs.h >>conftest.$ac_ext
29902cat >>conftest.$ac_ext <<_ACEOF
29903/* end confdefs.h. */
29904$ac_includes_default
29905int
29906main ()
29907{
29908if ((off_t *) 0)
29909 return 0;
29910if (sizeof (off_t))
29911 return 0;
29912 ;
29913 return 0;
29914}
29915_ACEOF
29916rm -f conftest.$ac_objext
29917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29918 (eval $ac_compile) 2>conftest.er1
a848cd7e 29919 ac_status=$?
ac1cb8d3
VS
29920 grep -v '^ *+' conftest.er1 >conftest.err
29921 rm -f conftest.er1
29922 cat conftest.err >&5
a848cd7e
SC
29923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924 (exit $ac_status); } &&
9dd0f6c2 29925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29927 (eval $ac_try) 2>&5
29928 ac_status=$?
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); }; } &&
29931 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29933 (eval $ac_try) 2>&5
29934 ac_status=$?
29935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936 (exit $ac_status); }; }; then
29937 ac_cv_type_off_t=yes
29938else
29939 echo "$as_me: failed program was:" >&5
29940sed 's/^/| /' conftest.$ac_ext >&5
29941
29942ac_cv_type_off_t=no
29943fi
ac1cb8d3 29944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29945fi
29946echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29947echo "${ECHO_T}$ac_cv_type_off_t" >&6
29948if test $ac_cv_type_off_t = yes; then
29949 :
29950else
29951
29952cat >>confdefs.h <<_ACEOF
29953#define off_t long
29954_ACEOF
29955
29956fi
29957
29958echo "$as_me:$LINENO: checking for pid_t" >&5
29959echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29960if test "${ac_cv_type_pid_t+set}" = set; then
29961 echo $ECHO_N "(cached) $ECHO_C" >&6
29962else
29963 cat >conftest.$ac_ext <<_ACEOF
29964/* confdefs.h. */
29965_ACEOF
29966cat confdefs.h >>conftest.$ac_ext
29967cat >>conftest.$ac_ext <<_ACEOF
29968/* end confdefs.h. */
29969$ac_includes_default
29970int
29971main ()
29972{
29973if ((pid_t *) 0)
29974 return 0;
29975if (sizeof (pid_t))
29976 return 0;
29977 ;
29978 return 0;
29979}
29980_ACEOF
29981rm -f conftest.$ac_objext
29982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29983 (eval $ac_compile) 2>conftest.er1
a848cd7e 29984 ac_status=$?
ac1cb8d3
VS
29985 grep -v '^ *+' conftest.er1 >conftest.err
29986 rm -f conftest.er1
29987 cat conftest.err >&5
a848cd7e
SC
29988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989 (exit $ac_status); } &&
9dd0f6c2 29990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29992 (eval $ac_try) 2>&5
29993 ac_status=$?
29994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995 (exit $ac_status); }; } &&
29996 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29998 (eval $ac_try) 2>&5
29999 ac_status=$?
30000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001 (exit $ac_status); }; }; then
30002 ac_cv_type_pid_t=yes
30003else
30004 echo "$as_me: failed program was:" >&5
30005sed 's/^/| /' conftest.$ac_ext >&5
30006
30007ac_cv_type_pid_t=no
30008fi
ac1cb8d3 30009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30010fi
30011echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30012echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30013if test $ac_cv_type_pid_t = yes; then
30014 :
30015else
30016
30017cat >>confdefs.h <<_ACEOF
30018#define pid_t int
30019_ACEOF
30020
30021fi
30022
30023echo "$as_me:$LINENO: checking for size_t" >&5
30024echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30025if test "${ac_cv_type_size_t+set}" = set; then
30026 echo $ECHO_N "(cached) $ECHO_C" >&6
30027else
30028 cat >conftest.$ac_ext <<_ACEOF
30029/* confdefs.h. */
30030_ACEOF
30031cat confdefs.h >>conftest.$ac_ext
30032cat >>conftest.$ac_ext <<_ACEOF
30033/* end confdefs.h. */
30034$ac_includes_default
30035int
30036main ()
30037{
30038if ((size_t *) 0)
30039 return 0;
30040if (sizeof (size_t))
30041 return 0;
30042 ;
30043 return 0;
30044}
30045_ACEOF
30046rm -f conftest.$ac_objext
30047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30048 (eval $ac_compile) 2>conftest.er1
a848cd7e 30049 ac_status=$?
ac1cb8d3
VS
30050 grep -v '^ *+' conftest.er1 >conftest.err
30051 rm -f conftest.er1
30052 cat conftest.err >&5
a848cd7e
SC
30053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); } &&
9dd0f6c2 30055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30057 (eval $ac_try) 2>&5
30058 ac_status=$?
30059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); }; } &&
30061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30063 (eval $ac_try) 2>&5
30064 ac_status=$?
30065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066 (exit $ac_status); }; }; then
30067 ac_cv_type_size_t=yes
30068else
30069 echo "$as_me: failed program was:" >&5
30070sed 's/^/| /' conftest.$ac_ext >&5
30071
30072ac_cv_type_size_t=no
30073fi
ac1cb8d3 30074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30075fi
30076echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30077echo "${ECHO_T}$ac_cv_type_size_t" >&6
30078if test $ac_cv_type_size_t = yes; then
30079 :
30080else
30081
30082cat >>confdefs.h <<_ACEOF
30083#define size_t unsigned
30084_ACEOF
30085
30086fi
30087
30088echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30089echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30090if test "${ac_cv_type_uid_t+set}" = set; then
30091 echo $ECHO_N "(cached) $ECHO_C" >&6
30092else
30093 cat >conftest.$ac_ext <<_ACEOF
30094/* confdefs.h. */
30095_ACEOF
30096cat confdefs.h >>conftest.$ac_ext
30097cat >>conftest.$ac_ext <<_ACEOF
30098/* end confdefs.h. */
30099#include <sys/types.h>
30100
30101_ACEOF
30102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30103 $EGREP "uid_t" >/dev/null 2>&1; then
30104 ac_cv_type_uid_t=yes
30105else
30106 ac_cv_type_uid_t=no
30107fi
30108rm -f conftest*
30109
30110fi
30111echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30112echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30113if test $ac_cv_type_uid_t = no; then
30114
30115cat >>confdefs.h <<\_ACEOF
30116#define uid_t int
30117_ACEOF
30118
30119
30120cat >>confdefs.h <<\_ACEOF
30121#define gid_t int
30122_ACEOF
30123
30124fi
30125
30126
d51253e8
RL
30127echo "$as_me:$LINENO: checking for ssize_t" >&5
30128echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30129if test "${ac_cv_type_ssize_t+set}" = set; then
30130 echo $ECHO_N "(cached) $ECHO_C" >&6
30131else
30132 cat >conftest.$ac_ext <<_ACEOF
30133/* confdefs.h. */
30134_ACEOF
30135cat confdefs.h >>conftest.$ac_ext
30136cat >>conftest.$ac_ext <<_ACEOF
30137/* end confdefs.h. */
30138$ac_includes_default
30139int
30140main ()
30141{
30142if ((ssize_t *) 0)
30143 return 0;
30144if (sizeof (ssize_t))
30145 return 0;
30146 ;
30147 return 0;
30148}
30149_ACEOF
30150rm -f conftest.$ac_objext
30151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30152 (eval $ac_compile) 2>conftest.er1
30153 ac_status=$?
30154 grep -v '^ *+' conftest.er1 >conftest.err
30155 rm -f conftest.er1
30156 cat conftest.err >&5
30157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158 (exit $ac_status); } &&
9dd0f6c2 30159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
30160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30161 (eval $ac_try) 2>&5
30162 ac_status=$?
30163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30164 (exit $ac_status); }; } &&
30165 { ac_try='test -s conftest.$ac_objext'
30166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30167 (eval $ac_try) 2>&5
30168 ac_status=$?
30169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170 (exit $ac_status); }; }; then
30171 ac_cv_type_ssize_t=yes
30172else
30173 echo "$as_me: failed program was:" >&5
30174sed 's/^/| /' conftest.$ac_ext >&5
30175
30176ac_cv_type_ssize_t=no
30177fi
30178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30179fi
30180echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30181echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30182if test $ac_cv_type_ssize_t = yes; then
30183
30184cat >>confdefs.h <<_ACEOF
30185#define HAVE_SSIZE_T 1
30186_ACEOF
30187
30188
30189fi
30190
30191
a848cd7e
SC
30192
30193
30194ac_ext=cc
30195ac_cpp='$CXXCPP $CPPFLAGS'
30196ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30197ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30198ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30199
30200echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30201echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30202if test "${wx_cv_size_t_is_uint+set}" = set; then
30203 echo $ECHO_N "(cached) $ECHO_C" >&6
30204else
30205
30206 cat >conftest.$ac_ext <<_ACEOF
30207/* confdefs.h. */
30208_ACEOF
30209cat confdefs.h >>conftest.$ac_ext
30210cat >>conftest.$ac_ext <<_ACEOF
30211/* end confdefs.h. */
30212#include <stddef.h>
30213int
30214main ()
30215{
30216
30217 return 0; }
30218
30219 struct Foo { void foo(size_t); void foo(unsigned int); };
30220
30221 int bar() {
30222
30223 ;
30224 return 0;
30225}
30226_ACEOF
30227rm -f conftest.$ac_objext
30228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30229 (eval $ac_compile) 2>conftest.er1
a848cd7e 30230 ac_status=$?
ac1cb8d3
VS
30231 grep -v '^ *+' conftest.er1 >conftest.err
30232 rm -f conftest.er1
30233 cat conftest.err >&5
a848cd7e
SC
30234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30235 (exit $ac_status); } &&
9dd0f6c2 30236 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30238 (eval $ac_try) 2>&5
30239 ac_status=$?
30240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241 (exit $ac_status); }; } &&
30242 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30244 (eval $ac_try) 2>&5
30245 ac_status=$?
30246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30247 (exit $ac_status); }; }; then
30248 wx_cv_size_t_is_uint=no
30249else
30250 echo "$as_me: failed program was:" >&5
30251sed 's/^/| /' conftest.$ac_ext >&5
30252
30253wx_cv_size_t_is_uint=yes
30254
30255fi
ac1cb8d3 30256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30257
30258
30259fi
30260echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30261echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30262
30263if test "$wx_cv_size_t_is_uint" = "yes"; then
30264 cat >>confdefs.h <<\_ACEOF
30265#define wxSIZE_T_IS_UINT 1
30266_ACEOF
30267
30268else
30269 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30270echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30271if test "${wx_cv_size_t_is_ulong+set}" = set; then
30272 echo $ECHO_N "(cached) $ECHO_C" >&6
30273else
30274 cat >conftest.$ac_ext <<_ACEOF
30275/* confdefs.h. */
30276_ACEOF
30277cat confdefs.h >>conftest.$ac_ext
30278cat >>conftest.$ac_ext <<_ACEOF
30279/* end confdefs.h. */
30280#include <stddef.h>
30281int
30282main ()
30283{
30284
30285 return 0; }
30286
30287 struct Foo { void foo(size_t); void foo(unsigned long); };
30288
30289 int bar() {
30290
30291 ;
30292 return 0;
30293}
30294_ACEOF
30295rm -f conftest.$ac_objext
30296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30297 (eval $ac_compile) 2>conftest.er1
a848cd7e 30298 ac_status=$?
ac1cb8d3
VS
30299 grep -v '^ *+' conftest.er1 >conftest.err
30300 rm -f conftest.er1
30301 cat conftest.err >&5
a848cd7e
SC
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303 (exit $ac_status); } &&
9dd0f6c2 30304 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30306 (eval $ac_try) 2>&5
30307 ac_status=$?
30308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309 (exit $ac_status); }; } &&
30310 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30312 (eval $ac_try) 2>&5
30313 ac_status=$?
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 (exit $ac_status); }; }; then
30316 wx_cv_size_t_is_ulong=no
30317else
30318 echo "$as_me: failed program was:" >&5
30319sed 's/^/| /' conftest.$ac_ext >&5
30320
30321wx_cv_size_t_is_ulong=yes
30322
30323fi
ac1cb8d3 30324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30325
30326fi
30327echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30328echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30329
30330 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30331 cat >>confdefs.h <<\_ACEOF
30332#define wxSIZE_T_IS_ULONG 1
30333_ACEOF
30334
30335 fi
30336fi
30337
30338ac_ext=c
30339ac_cpp='$CPP $CPPFLAGS'
30340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30342ac_compiler_gnu=$ac_cv_c_compiler_gnu
30343
30344
30345
30346echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30347echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30348if test "${wx_cv_struct_pw_gecos+set}" = set; then
30349 echo $ECHO_N "(cached) $ECHO_C" >&6
30350else
30351
30352 cat >conftest.$ac_ext <<_ACEOF
30353/* confdefs.h. */
30354_ACEOF
30355cat confdefs.h >>conftest.$ac_ext
30356cat >>conftest.$ac_ext <<_ACEOF
30357/* end confdefs.h. */
30358#include <pwd.h>
30359int
30360main ()
30361{
30362
30363 char *p;
30364 struct passwd *pw;
30365 p = pw->pw_gecos;
30366
30367 ;
30368 return 0;
30369}
30370_ACEOF
30371rm -f conftest.$ac_objext
30372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30373 (eval $ac_compile) 2>conftest.er1
a848cd7e 30374 ac_status=$?
ac1cb8d3
VS
30375 grep -v '^ *+' conftest.er1 >conftest.err
30376 rm -f conftest.er1
30377 cat conftest.err >&5
a848cd7e
SC
30378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379 (exit $ac_status); } &&
9dd0f6c2 30380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30382 (eval $ac_try) 2>&5
30383 ac_status=$?
30384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385 (exit $ac_status); }; } &&
30386 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
30392
30393 wx_cv_struct_pw_gecos=yes
30394
30395else
30396 echo "$as_me: failed program was:" >&5
30397sed 's/^/| /' conftest.$ac_ext >&5
30398
30399
30400 wx_cv_struct_pw_gecos=no
30401
30402
30403fi
ac1cb8d3 30404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30405
30406
30407fi
30408echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30409echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30410
30411if test "$wx_cv_struct_pw_gecos" = "yes"; then
30412 cat >>confdefs.h <<\_ACEOF
30413#define HAVE_PW_GECOS 1
30414_ACEOF
30415
30416fi
30417
30418
238ecede 30419if test "$ac_cv_sizeof_wchar_t" != "0"; then
a848cd7e
SC
30420 cat >>confdefs.h <<\_ACEOF
30421#define wxUSE_WCHAR_T 1
30422_ACEOF
30423
30424
30425 WCSLEN_FOUND=0
30426 WCHAR_LINK=
30427
30428for ac_func in wcslen
30429do
30430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30431echo "$as_me:$LINENO: checking for $ac_func" >&5
30432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30433if eval "test \"\${$as_ac_var+set}\" = set"; then
30434 echo $ECHO_N "(cached) $ECHO_C" >&6
30435else
30436 cat >conftest.$ac_ext <<_ACEOF
30437/* confdefs.h. */
30438_ACEOF
30439cat confdefs.h >>conftest.$ac_ext
30440cat >>conftest.$ac_ext <<_ACEOF
30441/* end confdefs.h. */
ac1cb8d3
VS
30442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30444#define $ac_func innocuous_$ac_func
30445
a848cd7e
SC
30446/* System header to define __stub macros and hopefully few prototypes,
30447 which can conflict with char $ac_func (); below.
30448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30449 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30450
a848cd7e
SC
30451#ifdef __STDC__
30452# include <limits.h>
30453#else
30454# include <assert.h>
30455#endif
ac1cb8d3
VS
30456
30457#undef $ac_func
30458
a848cd7e
SC
30459/* Override any gcc2 internal prototype to avoid an error. */
30460#ifdef __cplusplus
30461extern "C"
30462{
30463#endif
30464/* We use char because int might match the return type of a gcc2
30465 builtin and then its argument prototype would still apply. */
30466char $ac_func ();
30467/* The GNU C library defines this for functions which it implements
30468 to always fail with ENOSYS. Some functions are actually named
30469 something starting with __ and the normal name is an alias. */
30470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30471choke me
30472#else
30473char (*f) () = $ac_func;
30474#endif
30475#ifdef __cplusplus
30476}
30477#endif
30478
30479int
30480main ()
30481{
30482return f != $ac_func;
30483 ;
30484 return 0;
30485}
30486_ACEOF
30487rm -f conftest.$ac_objext conftest$ac_exeext
30488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30489 (eval $ac_link) 2>conftest.er1
a848cd7e 30490 ac_status=$?
ac1cb8d3
VS
30491 grep -v '^ *+' conftest.er1 >conftest.err
30492 rm -f conftest.er1
30493 cat conftest.err >&5
a848cd7e
SC
30494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495 (exit $ac_status); } &&
9dd0f6c2 30496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30498 (eval $ac_try) 2>&5
30499 ac_status=$?
30500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501 (exit $ac_status); }; } &&
30502 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30504 (eval $ac_try) 2>&5
30505 ac_status=$?
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); }; }; then
30508 eval "$as_ac_var=yes"
30509else
30510 echo "$as_me: failed program was:" >&5
30511sed 's/^/| /' conftest.$ac_ext >&5
30512
30513eval "$as_ac_var=no"
30514fi
ac1cb8d3
VS
30515rm -f conftest.err conftest.$ac_objext \
30516 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30517fi
30518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30520if test `eval echo '${'$as_ac_var'}'` = yes; then
30521 cat >>confdefs.h <<_ACEOF
30522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30523_ACEOF
30524 WCSLEN_FOUND=1
30525fi
30526done
30527
30528
30529 if test "$WCSLEN_FOUND" = 0; then
30530 if test "$TOOLKIT" = "MSW"; then
30531 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30532echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30533if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30534 echo $ECHO_N "(cached) $ECHO_C" >&6
30535else
30536 ac_check_lib_save_LIBS=$LIBS
30537LIBS="-lmsvcrt $LIBS"
30538cat >conftest.$ac_ext <<_ACEOF
30539/* confdefs.h. */
30540_ACEOF
30541cat confdefs.h >>conftest.$ac_ext
30542cat >>conftest.$ac_ext <<_ACEOF
30543/* end confdefs.h. */
30544
30545/* Override any gcc2 internal prototype to avoid an error. */
30546#ifdef __cplusplus
30547extern "C"
30548#endif
30549/* We use char because int might match the return type of a gcc2
30550 builtin and then its argument prototype would still apply. */
30551char wcslen ();
30552int
30553main ()
30554{
30555wcslen ();
30556 ;
30557 return 0;
30558}
30559_ACEOF
30560rm -f conftest.$ac_objext conftest$ac_exeext
30561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30562 (eval $ac_link) 2>conftest.er1
a848cd7e 30563 ac_status=$?
ac1cb8d3
VS
30564 grep -v '^ *+' conftest.er1 >conftest.err
30565 rm -f conftest.er1
30566 cat conftest.err >&5
a848cd7e
SC
30567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568 (exit $ac_status); } &&
9dd0f6c2 30569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30571 (eval $ac_try) 2>&5
30572 ac_status=$?
30573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574 (exit $ac_status); }; } &&
30575 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30577 (eval $ac_try) 2>&5
30578 ac_status=$?
30579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580 (exit $ac_status); }; }; then
30581 ac_cv_lib_msvcrt_wcslen=yes
30582else
30583 echo "$as_me: failed program was:" >&5
30584sed 's/^/| /' conftest.$ac_ext >&5
30585
30586ac_cv_lib_msvcrt_wcslen=no
30587fi
ac1cb8d3
VS
30588rm -f conftest.err conftest.$ac_objext \
30589 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30590LIBS=$ac_check_lib_save_LIBS
30591fi
30592echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
30593echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
30594if test $ac_cv_lib_msvcrt_wcslen = yes; then
30595 WCHAR_OK=1
30596fi
30597
30598 else
30599 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
30600echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
30601if test "${ac_cv_lib_w_wcslen+set}" = set; then
30602 echo $ECHO_N "(cached) $ECHO_C" >&6
30603else
30604 ac_check_lib_save_LIBS=$LIBS
30605LIBS="-lw $LIBS"
30606cat >conftest.$ac_ext <<_ACEOF
30607/* confdefs.h. */
30608_ACEOF
30609cat confdefs.h >>conftest.$ac_ext
30610cat >>conftest.$ac_ext <<_ACEOF
30611/* end confdefs.h. */
30612
30613/* Override any gcc2 internal prototype to avoid an error. */
30614#ifdef __cplusplus
30615extern "C"
30616#endif
30617/* We use char because int might match the return type of a gcc2
30618 builtin and then its argument prototype would still apply. */
30619char wcslen ();
30620int
30621main ()
30622{
30623wcslen ();
30624 ;
30625 return 0;
30626}
30627_ACEOF
30628rm -f conftest.$ac_objext conftest$ac_exeext
30629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30630 (eval $ac_link) 2>conftest.er1
a848cd7e 30631 ac_status=$?
ac1cb8d3
VS
30632 grep -v '^ *+' conftest.er1 >conftest.err
30633 rm -f conftest.er1
30634 cat conftest.err >&5
a848cd7e
SC
30635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636 (exit $ac_status); } &&
9dd0f6c2 30637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30639 (eval $ac_try) 2>&5
30640 ac_status=$?
30641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30642 (exit $ac_status); }; } &&
30643 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30645 (eval $ac_try) 2>&5
30646 ac_status=$?
30647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648 (exit $ac_status); }; }; then
30649 ac_cv_lib_w_wcslen=yes
30650else
30651 echo "$as_me: failed program was:" >&5
30652sed 's/^/| /' conftest.$ac_ext >&5
30653
30654ac_cv_lib_w_wcslen=no
30655fi
ac1cb8d3
VS
30656rm -f conftest.err conftest.$ac_objext \
30657 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30658LIBS=$ac_check_lib_save_LIBS
30659fi
30660echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
30661echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
30662if test $ac_cv_lib_w_wcslen = yes; then
30663
30664 WCHAR_LINK=" -lw"
30665 WCSLEN_FOUND=1
30666
30667fi
30668
30669 fi
30670 fi
30671
30672 if test "$WCSLEN_FOUND" = 1; then
30673 cat >>confdefs.h <<\_ACEOF
30674#define HAVE_WCSLEN 1
30675_ACEOF
30676
30677 fi
30678
81f90336 30679 if test "$USE_HPUX" = 1; then
473276a9
VS
30680 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
30681 fi
30682
a848cd7e
SC
30683
30684for ac_func in wcsrtombs
30685do
30686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30687echo "$as_me:$LINENO: checking for $ac_func" >&5
30688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30689if eval "test \"\${$as_ac_var+set}\" = set"; then
30690 echo $ECHO_N "(cached) $ECHO_C" >&6
30691else
30692 cat >conftest.$ac_ext <<_ACEOF
30693/* confdefs.h. */
30694_ACEOF
30695cat confdefs.h >>conftest.$ac_ext
30696cat >>conftest.$ac_ext <<_ACEOF
30697/* end confdefs.h. */
ac1cb8d3
VS
30698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30700#define $ac_func innocuous_$ac_func
30701
a848cd7e
SC
30702/* System header to define __stub macros and hopefully few prototypes,
30703 which can conflict with char $ac_func (); below.
30704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30705 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30706
a848cd7e
SC
30707#ifdef __STDC__
30708# include <limits.h>
30709#else
30710# include <assert.h>
30711#endif
ac1cb8d3
VS
30712
30713#undef $ac_func
30714
a848cd7e
SC
30715/* Override any gcc2 internal prototype to avoid an error. */
30716#ifdef __cplusplus
30717extern "C"
30718{
30719#endif
30720/* We use char because int might match the return type of a gcc2
30721 builtin and then its argument prototype would still apply. */
30722char $ac_func ();
30723/* The GNU C library defines this for functions which it implements
30724 to always fail with ENOSYS. Some functions are actually named
30725 something starting with __ and the normal name is an alias. */
30726#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30727choke me
30728#else
30729char (*f) () = $ac_func;
30730#endif
30731#ifdef __cplusplus
30732}
30733#endif
30734
30735int
30736main ()
30737{
30738return f != $ac_func;
30739 ;
30740 return 0;
30741}
30742_ACEOF
30743rm -f conftest.$ac_objext conftest$ac_exeext
30744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30745 (eval $ac_link) 2>conftest.er1
a848cd7e 30746 ac_status=$?
ac1cb8d3
VS
30747 grep -v '^ *+' conftest.er1 >conftest.err
30748 rm -f conftest.er1
30749 cat conftest.err >&5
a848cd7e
SC
30750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30751 (exit $ac_status); } &&
9dd0f6c2 30752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30754 (eval $ac_try) 2>&5
30755 ac_status=$?
30756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757 (exit $ac_status); }; } &&
30758 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30760 (eval $ac_try) 2>&5
30761 ac_status=$?
30762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30763 (exit $ac_status); }; }; then
30764 eval "$as_ac_var=yes"
30765else
30766 echo "$as_me: failed program was:" >&5
30767sed 's/^/| /' conftest.$ac_ext >&5
30768
30769eval "$as_ac_var=no"
30770fi
ac1cb8d3
VS
30771rm -f conftest.err conftest.$ac_objext \
30772 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30773fi
30774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30775echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30776if test `eval echo '${'$as_ac_var'}'` = yes; then
30777 cat >>confdefs.h <<_ACEOF
30778#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30779_ACEOF
30780
30781fi
30782done
30783
30784else
30785 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
30786echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
30787fi
30788
30789
30790
30791ac_ext=cc
30792ac_cpp='$CXXCPP $CPPFLAGS'
30793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30796
30797
30798
30799for ac_func in vsnprintf
30800do
30801as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30802echo "$as_me:$LINENO: checking for $ac_func" >&5
30803echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30804if eval "test \"\${$as_ac_var+set}\" = set"; then
30805 echo $ECHO_N "(cached) $ECHO_C" >&6
30806else
30807 cat >conftest.$ac_ext <<_ACEOF
30808/* confdefs.h. */
30809_ACEOF
30810cat confdefs.h >>conftest.$ac_ext
30811cat >>conftest.$ac_ext <<_ACEOF
30812/* end confdefs.h. */
ac1cb8d3
VS
30813/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30815#define $ac_func innocuous_$ac_func
30816
a848cd7e
SC
30817/* System header to define __stub macros and hopefully few prototypes,
30818 which can conflict with char $ac_func (); below.
30819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30820 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30821
a848cd7e
SC
30822#ifdef __STDC__
30823# include <limits.h>
30824#else
30825# include <assert.h>
30826#endif
ac1cb8d3
VS
30827
30828#undef $ac_func
30829
a848cd7e
SC
30830/* Override any gcc2 internal prototype to avoid an error. */
30831#ifdef __cplusplus
30832extern "C"
30833{
30834#endif
30835/* We use char because int might match the return type of a gcc2
30836 builtin and then its argument prototype would still apply. */
30837char $ac_func ();
30838/* The GNU C library defines this for functions which it implements
30839 to always fail with ENOSYS. Some functions are actually named
30840 something starting with __ and the normal name is an alias. */
30841#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30842choke me
30843#else
30844char (*f) () = $ac_func;
30845#endif
30846#ifdef __cplusplus
30847}
30848#endif
30849
30850int
30851main ()
30852{
30853return f != $ac_func;
30854 ;
30855 return 0;
30856}
30857_ACEOF
30858rm -f conftest.$ac_objext conftest$ac_exeext
30859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30860 (eval $ac_link) 2>conftest.er1
a848cd7e 30861 ac_status=$?
ac1cb8d3
VS
30862 grep -v '^ *+' conftest.er1 >conftest.err
30863 rm -f conftest.er1
30864 cat conftest.err >&5
a848cd7e
SC
30865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30866 (exit $ac_status); } &&
9dd0f6c2 30867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30869 (eval $ac_try) 2>&5
30870 ac_status=$?
30871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30872 (exit $ac_status); }; } &&
30873 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30875 (eval $ac_try) 2>&5
30876 ac_status=$?
30877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878 (exit $ac_status); }; }; then
30879 eval "$as_ac_var=yes"
30880else
30881 echo "$as_me: failed program was:" >&5
30882sed 's/^/| /' conftest.$ac_ext >&5
30883
30884eval "$as_ac_var=no"
30885fi
ac1cb8d3
VS
30886rm -f conftest.err conftest.$ac_objext \
30887 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30888fi
30889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30890echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30891if test `eval echo '${'$as_ac_var'}'` = yes; then
30892 cat >>confdefs.h <<_ACEOF
30893#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30894_ACEOF
30895
30896fi
30897done
30898
30899
30900if test "$ac_cv_func_vsnprintf" = "yes"; then
30901 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30902echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30903if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30904 echo $ECHO_N "(cached) $ECHO_C" >&6
30905else
30906
30907 cat >conftest.$ac_ext <<_ACEOF
30908/* confdefs.h. */
30909_ACEOF
30910cat confdefs.h >>conftest.$ac_ext
30911cat >>conftest.$ac_ext <<_ACEOF
30912/* end confdefs.h. */
30913
30914 #include <stdio.h>
30915 #include <stdarg.h>
30916
30917int
30918main ()
30919{
30920
30921 char *buf;
30922 va_list ap;
30923 vsnprintf(buf, 10u, "%s", ap);
30924
30925 ;
30926 return 0;
30927}
30928_ACEOF
30929rm -f conftest.$ac_objext
30930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30931 (eval $ac_compile) 2>conftest.er1
a848cd7e 30932 ac_status=$?
ac1cb8d3
VS
30933 grep -v '^ *+' conftest.er1 >conftest.err
30934 rm -f conftest.er1
30935 cat conftest.err >&5
a848cd7e
SC
30936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937 (exit $ac_status); } &&
9dd0f6c2 30938 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30940 (eval $ac_try) 2>&5
30941 ac_status=$?
30942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943 (exit $ac_status); }; } &&
30944 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30946 (eval $ac_try) 2>&5
30947 ac_status=$?
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949 (exit $ac_status); }; }; then
30950 wx_cv_func_vsnprintf_decl=yes
30951else
30952 echo "$as_me: failed program was:" >&5
30953sed 's/^/| /' conftest.$ac_ext >&5
30954
c122b164
DE
30955
30956 cat >conftest.$ac_ext <<_ACEOF
30957/* confdefs.h. */
30958_ACEOF
30959cat confdefs.h >>conftest.$ac_ext
30960cat >>conftest.$ac_ext <<_ACEOF
30961/* end confdefs.h. */
30962
30963 #include <stdio.h>
30964 #include <stdarg.h>
30965 using namespace std;
30966
30967int
30968main ()
30969{
30970
30971 char *buf;
30972 va_list ap;
30973 vsnprintf(buf, 10u, "%s", ap);
30974
30975 ;
30976 return 0;
30977}
30978_ACEOF
30979rm -f conftest.$ac_objext
30980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30981 (eval $ac_compile) 2>conftest.er1
30982 ac_status=$?
30983 grep -v '^ *+' conftest.er1 >conftest.err
30984 rm -f conftest.er1
30985 cat conftest.err >&5
30986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987 (exit $ac_status); } &&
9dd0f6c2 30988 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
30989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30990 (eval $ac_try) 2>&5
30991 ac_status=$?
30992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993 (exit $ac_status); }; } &&
30994 { ac_try='test -s conftest.$ac_objext'
30995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30996 (eval $ac_try) 2>&5
30997 ac_status=$?
30998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30999 (exit $ac_status); }; }; then
31000 wx_cv_func_vsnprintf_decl=yes
31001else
31002 echo "$as_me: failed program was:" >&5
31003sed 's/^/| /' conftest.$ac_ext >&5
31004
a848cd7e
SC
31005wx_cv_func_vsnprintf_decl=no
31006
31007fi
ac1cb8d3 31008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31009
31010
c122b164
DE
31011fi
31012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31013
31014
a848cd7e
SC
31015fi
31016echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31017echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31018
31019 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31020 cat >>confdefs.h <<\_ACEOF
31021#define HAVE_VSNPRINTF_DECL 1
31022_ACEOF
31023
31024 fi
31025fi
31026
31027if test "$wxUSE_UNICODE" = yes; then
31028
31029
31030
fbe47c7b
VS
31031
31032
31033
31034for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31035do
31036as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31037echo "$as_me:$LINENO: checking for $ac_func" >&5
31038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31039if eval "test \"\${$as_ac_var+set}\" = set"; then
31040 echo $ECHO_N "(cached) $ECHO_C" >&6
31041else
31042 cat >conftest.$ac_ext <<_ACEOF
31043/* confdefs.h. */
31044_ACEOF
31045cat confdefs.h >>conftest.$ac_ext
31046cat >>conftest.$ac_ext <<_ACEOF
31047/* end confdefs.h. */
ac1cb8d3
VS
31048/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31050#define $ac_func innocuous_$ac_func
31051
a848cd7e
SC
31052/* System header to define __stub macros and hopefully few prototypes,
31053 which can conflict with char $ac_func (); below.
31054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31055 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31056
a848cd7e
SC
31057#ifdef __STDC__
31058# include <limits.h>
31059#else
31060# include <assert.h>
31061#endif
ac1cb8d3
VS
31062
31063#undef $ac_func
31064
a848cd7e
SC
31065/* Override any gcc2 internal prototype to avoid an error. */
31066#ifdef __cplusplus
31067extern "C"
31068{
31069#endif
31070/* We use char because int might match the return type of a gcc2
31071 builtin and then its argument prototype would still apply. */
31072char $ac_func ();
31073/* The GNU C library defines this for functions which it implements
31074 to always fail with ENOSYS. Some functions are actually named
31075 something starting with __ and the normal name is an alias. */
31076#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31077choke me
31078#else
31079char (*f) () = $ac_func;
31080#endif
31081#ifdef __cplusplus
31082}
31083#endif
31084
31085int
31086main ()
31087{
31088return f != $ac_func;
31089 ;
31090 return 0;
31091}
31092_ACEOF
31093rm -f conftest.$ac_objext conftest$ac_exeext
31094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31095 (eval $ac_link) 2>conftest.er1
a848cd7e 31096 ac_status=$?
ac1cb8d3
VS
31097 grep -v '^ *+' conftest.er1 >conftest.err
31098 rm -f conftest.er1
31099 cat conftest.err >&5
a848cd7e
SC
31100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31101 (exit $ac_status); } &&
9dd0f6c2 31102 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31104 (eval $ac_try) 2>&5
31105 ac_status=$?
31106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31107 (exit $ac_status); }; } &&
31108 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31110 (eval $ac_try) 2>&5
31111 ac_status=$?
31112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31113 (exit $ac_status); }; }; then
31114 eval "$as_ac_var=yes"
31115else
31116 echo "$as_me: failed program was:" >&5
31117sed 's/^/| /' conftest.$ac_ext >&5
31118
31119eval "$as_ac_var=no"
31120fi
ac1cb8d3
VS
31121rm -f conftest.err conftest.$ac_objext \
31122 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31123fi
31124echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31125echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31126if test `eval echo '${'$as_ac_var'}'` = yes; then
31127 cat >>confdefs.h <<_ACEOF
31128#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31129_ACEOF
31130
31131fi
31132done
31133
31134
31135 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31136echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31137 cat >conftest.$ac_ext <<_ACEOF
31138/* confdefs.h. */
31139_ACEOF
31140cat confdefs.h >>conftest.$ac_ext
31141cat >>conftest.$ac_ext <<_ACEOF
31142/* end confdefs.h. */
31143#include <wchar.h>
31144int
31145main ()
31146{
31147&_vsnwprintf;
31148 ;
31149 return 0;
31150}
31151_ACEOF
31152rm -f conftest.$ac_objext
31153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31154 (eval $ac_compile) 2>conftest.er1
a848cd7e 31155 ac_status=$?
ac1cb8d3
VS
31156 grep -v '^ *+' conftest.er1 >conftest.err
31157 rm -f conftest.er1
31158 cat conftest.err >&5
a848cd7e
SC
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); } &&
9dd0f6c2 31161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31163 (eval $ac_try) 2>&5
31164 ac_status=$?
31165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166 (exit $ac_status); }; } &&
31167 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31169 (eval $ac_try) 2>&5
31170 ac_status=$?
31171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31172 (exit $ac_status); }; }; then
31173 echo "$as_me:$LINENO: result: yes" >&5
31174echo "${ECHO_T}yes" >&6
31175 cat >>confdefs.h <<\_ACEOF
31176#define HAVE__VSNWPRINTF 1
31177_ACEOF
31178
31179else
31180 echo "$as_me: failed program was:" >&5
31181sed 's/^/| /' conftest.$ac_ext >&5
31182
31183echo "$as_me:$LINENO: result: no" >&5
31184echo "${ECHO_T}no" >&6
31185fi
ac1cb8d3 31186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31187fi
31188
31189ac_ext=c
31190ac_cpp='$CPP $CPPFLAGS'
31191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31193ac_compiler_gnu=$ac_cv_c_compiler_gnu
31194
31195
31196
31197
31198if test "$TOOLKIT" != "MSW"; then
31199
31200
31201
31202
31203ac_ext=cc
31204ac_cpp='$CXXCPP $CPPFLAGS'
31205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31208
31209
31210
31211
31212# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31213if test "${with_libiconv_prefix+set}" = set; then
31214 withval="$with_libiconv_prefix"
31215
31216 for dir in `echo "$withval" | tr : ' '`; do
31217 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31218 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31219 done
31220
31221fi;
31222
31223 echo "$as_me:$LINENO: checking for iconv" >&5
31224echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31225if test "${am_cv_func_iconv+set}" = set; then
31226 echo $ECHO_N "(cached) $ECHO_C" >&6
31227else
31228
31229 am_cv_func_iconv="no, consider installing GNU libiconv"
31230 am_cv_lib_iconv=no
31231 cat >conftest.$ac_ext <<_ACEOF
31232/* confdefs.h. */
31233_ACEOF
31234cat confdefs.h >>conftest.$ac_ext
31235cat >>conftest.$ac_ext <<_ACEOF
31236/* end confdefs.h. */
31237#include <stdlib.h>
31238#include <iconv.h>
31239int
31240main ()
31241{
31242iconv_t cd = iconv_open("","");
31243 iconv(cd,NULL,NULL,NULL,NULL);
31244 iconv_close(cd);
31245 ;
31246 return 0;
31247}
31248_ACEOF
31249rm -f conftest.$ac_objext conftest$ac_exeext
31250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31251 (eval $ac_link) 2>conftest.er1
a848cd7e 31252 ac_status=$?
ac1cb8d3
VS
31253 grep -v '^ *+' conftest.er1 >conftest.err
31254 rm -f conftest.er1
31255 cat conftest.err >&5
a848cd7e
SC
31256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31257 (exit $ac_status); } &&
9dd0f6c2 31258 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31260 (eval $ac_try) 2>&5
31261 ac_status=$?
31262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263 (exit $ac_status); }; } &&
31264 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31266 (eval $ac_try) 2>&5
31267 ac_status=$?
31268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31269 (exit $ac_status); }; }; then
31270 am_cv_func_iconv=yes
31271else
31272 echo "$as_me: failed program was:" >&5
31273sed 's/^/| /' conftest.$ac_ext >&5
31274
31275fi
ac1cb8d3
VS
31276rm -f conftest.err conftest.$ac_objext \
31277 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31278 if test "$am_cv_func_iconv" != yes; then
31279 am_save_LIBS="$LIBS"
31280 LIBS="$LIBS -liconv"
31281 cat >conftest.$ac_ext <<_ACEOF
31282/* confdefs.h. */
31283_ACEOF
31284cat confdefs.h >>conftest.$ac_ext
31285cat >>conftest.$ac_ext <<_ACEOF
31286/* end confdefs.h. */
31287#include <stdlib.h>
31288#include <iconv.h>
31289int
31290main ()
31291{
31292iconv_t cd = iconv_open("","");
31293 iconv(cd,NULL,NULL,NULL,NULL);
31294 iconv_close(cd);
31295 ;
31296 return 0;
31297}
31298_ACEOF
31299rm -f conftest.$ac_objext conftest$ac_exeext
31300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31301 (eval $ac_link) 2>conftest.er1
a848cd7e 31302 ac_status=$?
ac1cb8d3
VS
31303 grep -v '^ *+' conftest.er1 >conftest.err
31304 rm -f conftest.er1
31305 cat conftest.err >&5
a848cd7e
SC
31306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31307 (exit $ac_status); } &&
9dd0f6c2 31308 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31310 (eval $ac_try) 2>&5
31311 ac_status=$?
31312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313 (exit $ac_status); }; } &&
31314 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31316 (eval $ac_try) 2>&5
31317 ac_status=$?
31318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319 (exit $ac_status); }; }; then
31320 am_cv_lib_iconv=yes
31321 am_cv_func_iconv=yes
31322else
31323 echo "$as_me: failed program was:" >&5
31324sed 's/^/| /' conftest.$ac_ext >&5
31325
31326fi
ac1cb8d3
VS
31327rm -f conftest.err conftest.$ac_objext \
31328 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31329 LIBS="$am_save_LIBS"
31330 fi
31331
31332fi
31333echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31334echo "${ECHO_T}$am_cv_func_iconv" >&6
31335 if test "$am_cv_func_iconv" = yes; then
31336
31337cat >>confdefs.h <<\_ACEOF
31338#define HAVE_ICONV 1
31339_ACEOF
31340
31341 echo "$as_me:$LINENO: checking if iconv needs const" >&5
31342echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31343if test "${wx_cv_func_iconv_const+set}" = set; then
31344 echo $ECHO_N "(cached) $ECHO_C" >&6
31345else
31346 cat >conftest.$ac_ext <<_ACEOF
31347/* confdefs.h. */
31348_ACEOF
31349cat confdefs.h >>conftest.$ac_ext
31350cat >>conftest.$ac_ext <<_ACEOF
31351/* end confdefs.h. */
31352
31353#include <stdlib.h>
31354#include <iconv.h>
31355extern
31356#ifdef __cplusplus
31357"C"
31358#endif
31359#if defined(__STDC__) || defined(__cplusplus)
31360size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31361#else
31362size_t iconv();
31363#endif
31364
31365int
31366main ()
31367{
31368
31369 ;
31370 return 0;
31371}
31372_ACEOF
31373rm -f conftest.$ac_objext
31374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31375 (eval $ac_compile) 2>conftest.er1
a848cd7e 31376 ac_status=$?
ac1cb8d3
VS
31377 grep -v '^ *+' conftest.er1 >conftest.err
31378 rm -f conftest.er1
31379 cat conftest.err >&5
a848cd7e
SC
31380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381 (exit $ac_status); } &&
9dd0f6c2 31382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31384 (eval $ac_try) 2>&5
31385 ac_status=$?
31386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387 (exit $ac_status); }; } &&
31388 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
31394 wx_cv_func_iconv_const="no"
31395else
31396 echo "$as_me: failed program was:" >&5
31397sed 's/^/| /' conftest.$ac_ext >&5
31398
31399wx_cv_func_iconv_const="yes"
31400
31401fi
ac1cb8d3 31402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31403
31404fi
31405echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31406echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31407
31408 iconv_const=
31409 if test "x$wx_cv_func_iconv_const" = "xyes"; then
31410 iconv_const="const"
31411 fi
31412
31413
31414cat >>confdefs.h <<_ACEOF
31415#define ICONV_CONST $iconv_const
31416_ACEOF
31417
31418 fi
31419 LIBICONV=
31420 if test "$am_cv_lib_iconv" = yes; then
31421 LIBICONV="-liconv"
31422 fi
31423
31424
31425LIBS="$LIBICONV $LIBS"
31426ac_ext=c
31427ac_cpp='$CPP $CPPFLAGS'
31428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31430ac_compiler_gnu=$ac_cv_c_compiler_gnu
31431
31432
31433if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31434
31435for ac_func in sigaction
31436do
31437as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31438echo "$as_me:$LINENO: checking for $ac_func" >&5
31439echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31440if eval "test \"\${$as_ac_var+set}\" = set"; then
31441 echo $ECHO_N "(cached) $ECHO_C" >&6
31442else
31443 cat >conftest.$ac_ext <<_ACEOF
31444/* confdefs.h. */
31445_ACEOF
31446cat confdefs.h >>conftest.$ac_ext
31447cat >>conftest.$ac_ext <<_ACEOF
31448/* end confdefs.h. */
ac1cb8d3
VS
31449/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31451#define $ac_func innocuous_$ac_func
31452
a848cd7e
SC
31453/* System header to define __stub macros and hopefully few prototypes,
31454 which can conflict with char $ac_func (); below.
31455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31456 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31457
a848cd7e
SC
31458#ifdef __STDC__
31459# include <limits.h>
31460#else
31461# include <assert.h>
31462#endif
ac1cb8d3
VS
31463
31464#undef $ac_func
31465
a848cd7e
SC
31466/* Override any gcc2 internal prototype to avoid an error. */
31467#ifdef __cplusplus
31468extern "C"
31469{
31470#endif
31471/* We use char because int might match the return type of a gcc2
31472 builtin and then its argument prototype would still apply. */
31473char $ac_func ();
31474/* The GNU C library defines this for functions which it implements
31475 to always fail with ENOSYS. Some functions are actually named
31476 something starting with __ and the normal name is an alias. */
31477#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31478choke me
31479#else
31480char (*f) () = $ac_func;
31481#endif
31482#ifdef __cplusplus
31483}
31484#endif
31485
31486int
31487main ()
31488{
31489return f != $ac_func;
31490 ;
31491 return 0;
31492}
31493_ACEOF
31494rm -f conftest.$ac_objext conftest$ac_exeext
31495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31496 (eval $ac_link) 2>conftest.er1
a848cd7e 31497 ac_status=$?
ac1cb8d3
VS
31498 grep -v '^ *+' conftest.er1 >conftest.err
31499 rm -f conftest.er1
31500 cat conftest.err >&5
a848cd7e
SC
31501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502 (exit $ac_status); } &&
9dd0f6c2 31503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31505 (eval $ac_try) 2>&5
31506 ac_status=$?
31507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508 (exit $ac_status); }; } &&
31509 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31511 (eval $ac_try) 2>&5
31512 ac_status=$?
31513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31514 (exit $ac_status); }; }; then
31515 eval "$as_ac_var=yes"
31516else
31517 echo "$as_me: failed program was:" >&5
31518sed 's/^/| /' conftest.$ac_ext >&5
31519
31520eval "$as_ac_var=no"
31521fi
ac1cb8d3
VS
31522rm -f conftest.err conftest.$ac_objext \
31523 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31524fi
31525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31526echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31527if test `eval echo '${'$as_ac_var'}'` = yes; then
31528 cat >>confdefs.h <<_ACEOF
31529#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31530_ACEOF
31531
31532fi
31533done
31534
31535
31536 if test "$ac_cv_func_sigaction" = "no"; then
31537 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31538echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31539 wxUSE_ON_FATAL_EXCEPTION=no
31540 fi
31541
31542 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31543
31544
31545 ac_ext=cc
31546ac_cpp='$CXXCPP $CPPFLAGS'
31547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31550
31551
31552 echo "$as_me:$LINENO: checking for sa_handler type" >&5
31553echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
31554if test "${wx_cv_type_sa_handler+set}" = set; then
31555 echo $ECHO_N "(cached) $ECHO_C" >&6
31556else
31557
31558 cat >conftest.$ac_ext <<_ACEOF
31559/* confdefs.h. */
31560_ACEOF
31561cat confdefs.h >>conftest.$ac_ext
31562cat >>conftest.$ac_ext <<_ACEOF
31563/* end confdefs.h. */
31564#include <signal.h>
31565int
31566main ()
31567{
31568
31569 extern void testSigHandler(int);
31570
31571 struct sigaction sa;
31572 sa.sa_handler = testSigHandler;
31573
31574 ;
31575 return 0;
31576}
31577_ACEOF
31578rm -f conftest.$ac_objext
31579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31580 (eval $ac_compile) 2>conftest.er1
a848cd7e 31581 ac_status=$?
ac1cb8d3
VS
31582 grep -v '^ *+' conftest.er1 >conftest.err
31583 rm -f conftest.er1
31584 cat conftest.err >&5
a848cd7e
SC
31585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586 (exit $ac_status); } &&
9dd0f6c2 31587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31589 (eval $ac_try) 2>&5
31590 ac_status=$?
31591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592 (exit $ac_status); }; } &&
31593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31595 (eval $ac_try) 2>&5
31596 ac_status=$?
31597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31598 (exit $ac_status); }; }; then
31599
31600 wx_cv_type_sa_handler=int
31601
31602else
31603 echo "$as_me: failed program was:" >&5
31604sed 's/^/| /' conftest.$ac_ext >&5
31605
31606
31607 wx_cv_type_sa_handler=void
31608
31609fi
ac1cb8d3 31610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31611
31612fi
31613echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
31614echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
31615
31616 ac_ext=c
31617ac_cpp='$CPP $CPPFLAGS'
31618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31620ac_compiler_gnu=$ac_cv_c_compiler_gnu
31621
31622
31623 cat >>confdefs.h <<_ACEOF
31624#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
31625_ACEOF
31626
31627 fi
31628fi
31629
eaff0f0d
VZ
31630if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31631
31632
31633 ac_ext=cc
31634ac_cpp='$CXXCPP $CPPFLAGS'
31635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31638
31639
31640 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
31641echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
31642if test "${wx_cv_func_backtrace+set}" = set; then
31643 echo $ECHO_N "(cached) $ECHO_C" >&6
31644else
31645
31646 cat >conftest.$ac_ext <<_ACEOF
31647/* confdefs.h. */
31648_ACEOF
31649cat confdefs.h >>conftest.$ac_ext
31650cat >>conftest.$ac_ext <<_ACEOF
31651/* end confdefs.h. */
31652#include <execinfo.h>
31653int
31654main ()
31655{
31656
31657 void *trace[1];
31658 char **messages;
31659
31660 backtrace(trace, 1);
31661 messages = backtrace_symbols(trace, 1);
31662
31663 ;
31664 return 0;
31665}
31666_ACEOF
31667rm -f conftest.$ac_objext
31668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31669 (eval $ac_compile) 2>conftest.er1
31670 ac_status=$?
31671 grep -v '^ *+' conftest.er1 >conftest.err
31672 rm -f conftest.er1
31673 cat conftest.err >&5
31674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31675 (exit $ac_status); } &&
9dd0f6c2 31676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31678 (eval $ac_try) 2>&5
31679 ac_status=$?
31680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681 (exit $ac_status); }; } &&
31682 { ac_try='test -s conftest.$ac_objext'
31683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31684 (eval $ac_try) 2>&5
31685 ac_status=$?
31686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31687 (exit $ac_status); }; }; then
31688 wx_cv_func_backtrace=yes
31689else
31690 echo "$as_me: failed program was:" >&5
31691sed 's/^/| /' conftest.$ac_ext >&5
31692
31693wx_cv_func_backtrace=no
31694
31695fi
31696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31697
31698
31699fi
31700echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
31701echo "${ECHO_T}$wx_cv_func_backtrace" >&6
31702
31703
31704 if test "$wx_cv_func_backtrace" = "no"; then
31705 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
31706echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
31707 wxUSE_STACKWALKER=no
31708 else
31709 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
31710echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
31711if test "${wx_cv_func_cxa_demangle+set}" = set; then
31712 echo $ECHO_N "(cached) $ECHO_C" >&6
31713else
31714
31715 cat >conftest.$ac_ext <<_ACEOF
31716/* confdefs.h. */
31717_ACEOF
31718cat confdefs.h >>conftest.$ac_ext
31719cat >>conftest.$ac_ext <<_ACEOF
31720/* end confdefs.h. */
31721#include <cxxabi.h>
31722int
31723main ()
31724{
31725
31726 int rc;
31727 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
31728
31729 ;
31730 return 0;
31731}
31732_ACEOF
dfe0c803
JS
31733rm -f conftest.$ac_objext conftest$ac_exeext
31734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31735 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
31736 ac_status=$?
31737 grep -v '^ *+' conftest.er1 >conftest.err
31738 rm -f conftest.er1
31739 cat conftest.err >&5
31740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741 (exit $ac_status); } &&
9dd0f6c2 31742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31744 (eval $ac_try) 2>&5
31745 ac_status=$?
31746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31747 (exit $ac_status); }; } &&
dfe0c803 31748 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
31749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31750 (eval $ac_try) 2>&5
31751 ac_status=$?
31752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753 (exit $ac_status); }; }; then
31754 wx_cv_func_cxa_demangle=yes
31755else
31756 echo "$as_me: failed program was:" >&5
31757sed 's/^/| /' conftest.$ac_ext >&5
31758
31759wx_cv_func_cxa_demangle=no
31760
31761fi
dfe0c803
JS
31762rm -f conftest.err conftest.$ac_objext \
31763 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
31764
31765
31766fi
31767echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
31768echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
31769
31770 if test "$wx_cv_func_cxa_demangle" = "yes"; then
31771 cat >>confdefs.h <<\_ACEOF
31772#define HAVE_CXA_DEMANGLE 1
31773_ACEOF
31774
31775 fi
31776 fi
31777
31778 ac_ext=c
31779ac_cpp='$CPP $CPPFLAGS'
31780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31782ac_compiler_gnu=$ac_cv_c_compiler_gnu
31783
31784fi
31785
898beab1
DE
31786if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
31787 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
31788echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
31789 wxUSE_STACKWALKER=no
31790fi
31791
31792
a848cd7e
SC
31793
31794
31795for ac_func in mkstemp mktemp
31796do
31797as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31798echo "$as_me:$LINENO: checking for $ac_func" >&5
31799echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31800if eval "test \"\${$as_ac_var+set}\" = set"; then
31801 echo $ECHO_N "(cached) $ECHO_C" >&6
31802else
31803 cat >conftest.$ac_ext <<_ACEOF
31804/* confdefs.h. */
31805_ACEOF
31806cat confdefs.h >>conftest.$ac_ext
31807cat >>conftest.$ac_ext <<_ACEOF
31808/* end confdefs.h. */
ac1cb8d3
VS
31809/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31811#define $ac_func innocuous_$ac_func
31812
a848cd7e
SC
31813/* System header to define __stub macros and hopefully few prototypes,
31814 which can conflict with char $ac_func (); below.
31815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31816 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31817
a848cd7e
SC
31818#ifdef __STDC__
31819# include <limits.h>
31820#else
31821# include <assert.h>
31822#endif
ac1cb8d3
VS
31823
31824#undef $ac_func
31825
a848cd7e
SC
31826/* Override any gcc2 internal prototype to avoid an error. */
31827#ifdef __cplusplus
31828extern "C"
31829{
31830#endif
31831/* We use char because int might match the return type of a gcc2
31832 builtin and then its argument prototype would still apply. */
31833char $ac_func ();
31834/* The GNU C library defines this for functions which it implements
31835 to always fail with ENOSYS. Some functions are actually named
31836 something starting with __ and the normal name is an alias. */
31837#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31838choke me
31839#else
31840char (*f) () = $ac_func;
31841#endif
31842#ifdef __cplusplus
31843}
31844#endif
31845
31846int
31847main ()
31848{
31849return f != $ac_func;
31850 ;
31851 return 0;
31852}
31853_ACEOF
31854rm -f conftest.$ac_objext conftest$ac_exeext
31855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31856 (eval $ac_link) 2>conftest.er1
a848cd7e 31857 ac_status=$?
ac1cb8d3
VS
31858 grep -v '^ *+' conftest.er1 >conftest.err
31859 rm -f conftest.er1
31860 cat conftest.err >&5
a848cd7e
SC
31861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862 (exit $ac_status); } &&
9dd0f6c2 31863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31865 (eval $ac_try) 2>&5
31866 ac_status=$?
31867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31868 (exit $ac_status); }; } &&
31869 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31871 (eval $ac_try) 2>&5
31872 ac_status=$?
31873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31874 (exit $ac_status); }; }; then
31875 eval "$as_ac_var=yes"
31876else
31877 echo "$as_me: failed program was:" >&5
31878sed 's/^/| /' conftest.$ac_ext >&5
31879
31880eval "$as_ac_var=no"
31881fi
ac1cb8d3
VS
31882rm -f conftest.err conftest.$ac_objext \
31883 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31884fi
31885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31886echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31887if test `eval echo '${'$as_ac_var'}'` = yes; then
31888 cat >>confdefs.h <<_ACEOF
31889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31890_ACEOF
31891 break
31892fi
31893done
31894
31895
31896echo "$as_me:$LINENO: checking for statfs" >&5
31897echo $ECHO_N "checking for statfs... $ECHO_C" >&6
31898if test "${wx_cv_func_statfs+set}" = set; then
31899 echo $ECHO_N "(cached) $ECHO_C" >&6
31900else
31901 cat >conftest.$ac_ext <<_ACEOF
31902/* confdefs.h. */
31903_ACEOF
31904cat confdefs.h >>conftest.$ac_ext
31905cat >>conftest.$ac_ext <<_ACEOF
31906/* end confdefs.h. */
31907
31908 #if defined(__BSD__)
31909 #include <sys/param.h>
31910 #include <sys/mount.h>
31911 #else
31912 #include <sys/vfs.h>
31913 #endif
31914
31915int
31916main ()
31917{
31918
31919 long l;
31920 struct statfs fs;
31921 statfs("/", &fs);
31922 l = fs.f_bsize;
31923 l += fs.f_blocks;
31924 l += fs.f_bavail;
31925
31926 ;
31927 return 0;
31928}
31929_ACEOF
31930rm -f conftest.$ac_objext
31931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31932 (eval $ac_compile) 2>conftest.er1
a848cd7e 31933 ac_status=$?
ac1cb8d3
VS
31934 grep -v '^ *+' conftest.er1 >conftest.err
31935 rm -f conftest.er1
31936 cat conftest.err >&5
a848cd7e
SC
31937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31938 (exit $ac_status); } &&
9dd0f6c2 31939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31941 (eval $ac_try) 2>&5
31942 ac_status=$?
31943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944 (exit $ac_status); }; } &&
31945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31947 (eval $ac_try) 2>&5
31948 ac_status=$?
31949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950 (exit $ac_status); }; }; then
31951
31952 wx_cv_func_statfs=yes
31953
31954else
31955 echo "$as_me: failed program was:" >&5
31956sed 's/^/| /' conftest.$ac_ext >&5
31957
31958
31959 wx_cv_func_statfs=no
31960
31961
31962fi
ac1cb8d3 31963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31964
31965fi
31966echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
31967echo "${ECHO_T}$wx_cv_func_statfs" >&6
31968
31969if test "$wx_cv_func_statfs" = "yes"; then
31970 wx_cv_type_statvfs_t="struct statfs"
31971 cat >>confdefs.h <<\_ACEOF
31972#define HAVE_STATFS 1
31973_ACEOF
31974
31975else
31976 echo "$as_me:$LINENO: checking for statvfs" >&5
31977echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
31978if test "${wx_cv_func_statvfs+set}" = set; then
31979 echo $ECHO_N "(cached) $ECHO_C" >&6
31980else
31981 cat >conftest.$ac_ext <<_ACEOF
31982/* confdefs.h. */
31983_ACEOF
31984cat confdefs.h >>conftest.$ac_ext
31985cat >>conftest.$ac_ext <<_ACEOF
31986/* end confdefs.h. */
31987
31988 #include <stddef.h>
31989 #include <sys/statvfs.h>
31990
31991int
31992main ()
31993{
31994
31995 statvfs("/", NULL);
31996
31997 ;
31998 return 0;
31999}
32000_ACEOF
32001rm -f conftest.$ac_objext
32002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32003 (eval $ac_compile) 2>conftest.er1
a848cd7e 32004 ac_status=$?
ac1cb8d3
VS
32005 grep -v '^ *+' conftest.er1 >conftest.err
32006 rm -f conftest.er1
32007 cat conftest.err >&5
a848cd7e
SC
32008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009 (exit $ac_status); } &&
9dd0f6c2 32010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32012 (eval $ac_try) 2>&5
32013 ac_status=$?
32014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32015 (exit $ac_status); }; } &&
32016 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32018 (eval $ac_try) 2>&5
32019 ac_status=$?
32020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021 (exit $ac_status); }; }; then
32022 wx_cv_func_statvfs=yes
32023else
32024 echo "$as_me: failed program was:" >&5
32025sed 's/^/| /' conftest.$ac_ext >&5
32026
32027wx_cv_func_statvfs=no
32028
32029fi
ac1cb8d3 32030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32031
32032fi
32033echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
32034echo "${ECHO_T}$wx_cv_func_statvfs" >&6
32035
32036 if test "$wx_cv_func_statvfs" = "yes"; then
32037
32038
32039 ac_ext=cc
32040ac_cpp='$CXXCPP $CPPFLAGS'
32041ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32042ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32043ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32044
32045
32046 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
32047echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
32048if test "${wx_cv_type_statvfs_t+set}" = set; then
32049 echo $ECHO_N "(cached) $ECHO_C" >&6
32050else
32051 cat >conftest.$ac_ext <<_ACEOF
32052/* confdefs.h. */
32053_ACEOF
32054cat confdefs.h >>conftest.$ac_ext
32055cat >>conftest.$ac_ext <<_ACEOF
32056/* end confdefs.h. */
32057
32058 #include <sys/statvfs.h>
32059
32060int
32061main ()
32062{
32063
32064 long l;
32065 statvfs_t fs;
32066 statvfs("/", &fs);
32067 l = fs.f_bsize;
32068 l += fs.f_blocks;
32069 l += fs.f_bavail;
32070
32071 ;
32072 return 0;
32073}
32074_ACEOF
32075rm -f conftest.$ac_objext
32076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32077 (eval $ac_compile) 2>conftest.er1
a848cd7e 32078 ac_status=$?
ac1cb8d3
VS
32079 grep -v '^ *+' conftest.er1 >conftest.err
32080 rm -f conftest.er1
32081 cat conftest.err >&5
a848cd7e
SC
32082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083 (exit $ac_status); } &&
9dd0f6c2 32084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32086 (eval $ac_try) 2>&5
32087 ac_status=$?
32088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089 (exit $ac_status); }; } &&
32090 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
32096 wx_cv_type_statvfs_t=statvfs_t
32097else
32098 echo "$as_me: failed program was:" >&5
32099sed 's/^/| /' conftest.$ac_ext >&5
32100
32101
32102 cat >conftest.$ac_ext <<_ACEOF
32103/* confdefs.h. */
32104_ACEOF
32105cat confdefs.h >>conftest.$ac_ext
32106cat >>conftest.$ac_ext <<_ACEOF
32107/* end confdefs.h. */
32108
32109 #include <sys/statvfs.h>
32110
32111int
32112main ()
32113{
32114
32115 long l;
32116 struct statvfs fs;
32117 statvfs("/", &fs);
32118 l = fs.f_bsize;
32119 l += fs.f_blocks;
32120 l += fs.f_bavail;
32121
32122 ;
32123 return 0;
32124}
32125_ACEOF
32126rm -f conftest.$ac_objext
32127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32128 (eval $ac_compile) 2>conftest.er1
a848cd7e 32129 ac_status=$?
ac1cb8d3
VS
32130 grep -v '^ *+' conftest.er1 >conftest.err
32131 rm -f conftest.er1
32132 cat conftest.err >&5
a848cd7e
SC
32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134 (exit $ac_status); } &&
9dd0f6c2 32135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32137 (eval $ac_try) 2>&5
32138 ac_status=$?
32139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140 (exit $ac_status); }; } &&
32141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32143 (eval $ac_try) 2>&5
32144 ac_status=$?
32145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32146 (exit $ac_status); }; }; then
32147 wx_cv_type_statvfs_t="struct statvfs"
32148else
32149 echo "$as_me: failed program was:" >&5
32150sed 's/^/| /' conftest.$ac_ext >&5
32151
32152wx_cv_type_statvfs_t="unknown"
32153
32154fi
ac1cb8d3 32155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32156
32157
32158fi
ac1cb8d3 32159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32160
32161fi
32162echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32163echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32164
32165 ac_ext=c
32166ac_cpp='$CPP $CPPFLAGS'
32167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32169ac_compiler_gnu=$ac_cv_c_compiler_gnu
32170
32171
32172 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32173 cat >>confdefs.h <<\_ACEOF
32174#define HAVE_STATVFS 1
32175_ACEOF
32176
32177 fi
32178 else
32179 wx_cv_type_statvfs_t="unknown"
32180 fi
32181fi
32182
32183if test "$wx_cv_type_statvfs_t" != "unknown"; then
32184 cat >>confdefs.h <<_ACEOF
32185#define WX_STATFS_T $wx_cv_type_statvfs_t
32186_ACEOF
32187
32188else
32189 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32190echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32191fi
32192
32193if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32194
32195
32196for ac_func in fcntl flock
32197do
32198as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32199echo "$as_me:$LINENO: checking for $ac_func" >&5
32200echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32201if eval "test \"\${$as_ac_var+set}\" = set"; then
32202 echo $ECHO_N "(cached) $ECHO_C" >&6
32203else
32204 cat >conftest.$ac_ext <<_ACEOF
32205/* confdefs.h. */
32206_ACEOF
32207cat confdefs.h >>conftest.$ac_ext
32208cat >>conftest.$ac_ext <<_ACEOF
32209/* end confdefs.h. */
ac1cb8d3
VS
32210/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32212#define $ac_func innocuous_$ac_func
32213
a848cd7e
SC
32214/* System header to define __stub macros and hopefully few prototypes,
32215 which can conflict with char $ac_func (); below.
32216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32217 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32218
a848cd7e
SC
32219#ifdef __STDC__
32220# include <limits.h>
32221#else
32222# include <assert.h>
32223#endif
ac1cb8d3
VS
32224
32225#undef $ac_func
32226
a848cd7e
SC
32227/* Override any gcc2 internal prototype to avoid an error. */
32228#ifdef __cplusplus
32229extern "C"
32230{
32231#endif
32232/* We use char because int might match the return type of a gcc2
32233 builtin and then its argument prototype would still apply. */
32234char $ac_func ();
32235/* The GNU C library defines this for functions which it implements
32236 to always fail with ENOSYS. Some functions are actually named
32237 something starting with __ and the normal name is an alias. */
32238#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32239choke me
32240#else
32241char (*f) () = $ac_func;
32242#endif
32243#ifdef __cplusplus
32244}
32245#endif
32246
32247int
32248main ()
32249{
32250return f != $ac_func;
32251 ;
32252 return 0;
32253}
32254_ACEOF
32255rm -f conftest.$ac_objext conftest$ac_exeext
32256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32257 (eval $ac_link) 2>conftest.er1
a848cd7e 32258 ac_status=$?
ac1cb8d3
VS
32259 grep -v '^ *+' conftest.er1 >conftest.err
32260 rm -f conftest.er1
32261 cat conftest.err >&5
a848cd7e
SC
32262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32263 (exit $ac_status); } &&
9dd0f6c2 32264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32266 (eval $ac_try) 2>&5
32267 ac_status=$?
32268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269 (exit $ac_status); }; } &&
32270 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32272 (eval $ac_try) 2>&5
32273 ac_status=$?
32274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32275 (exit $ac_status); }; }; then
32276 eval "$as_ac_var=yes"
32277else
32278 echo "$as_me: failed program was:" >&5
32279sed 's/^/| /' conftest.$ac_ext >&5
32280
32281eval "$as_ac_var=no"
32282fi
ac1cb8d3
VS
32283rm -f conftest.err conftest.$ac_objext \
32284 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32285fi
32286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32287echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32288if test `eval echo '${'$as_ac_var'}'` = yes; then
32289 cat >>confdefs.h <<_ACEOF
32290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32291_ACEOF
32292 break
32293fi
32294done
32295
32296
32297 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32298 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32299echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32300 wxUSE_SNGLINST_CHECKER=no
32301 fi
32302fi
32303
32304
32305for ac_func in timegm
32306do
32307as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32308echo "$as_me:$LINENO: checking for $ac_func" >&5
32309echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32310if eval "test \"\${$as_ac_var+set}\" = set"; then
32311 echo $ECHO_N "(cached) $ECHO_C" >&6
32312else
32313 cat >conftest.$ac_ext <<_ACEOF
32314/* confdefs.h. */
32315_ACEOF
32316cat confdefs.h >>conftest.$ac_ext
32317cat >>conftest.$ac_ext <<_ACEOF
32318/* end confdefs.h. */
ac1cb8d3
VS
32319/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32321#define $ac_func innocuous_$ac_func
32322
a848cd7e
SC
32323/* System header to define __stub macros and hopefully few prototypes,
32324 which can conflict with char $ac_func (); below.
32325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32326 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32327
a848cd7e
SC
32328#ifdef __STDC__
32329# include <limits.h>
32330#else
32331# include <assert.h>
32332#endif
ac1cb8d3
VS
32333
32334#undef $ac_func
32335
a848cd7e
SC
32336/* Override any gcc2 internal prototype to avoid an error. */
32337#ifdef __cplusplus
32338extern "C"
32339{
32340#endif
32341/* We use char because int might match the return type of a gcc2
32342 builtin and then its argument prototype would still apply. */
32343char $ac_func ();
32344/* The GNU C library defines this for functions which it implements
32345 to always fail with ENOSYS. Some functions are actually named
32346 something starting with __ and the normal name is an alias. */
32347#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32348choke me
32349#else
32350char (*f) () = $ac_func;
32351#endif
32352#ifdef __cplusplus
32353}
32354#endif
32355
32356int
32357main ()
32358{
32359return f != $ac_func;
32360 ;
32361 return 0;
32362}
32363_ACEOF
32364rm -f conftest.$ac_objext conftest$ac_exeext
32365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32366 (eval $ac_link) 2>conftest.er1
a848cd7e 32367 ac_status=$?
ac1cb8d3
VS
32368 grep -v '^ *+' conftest.er1 >conftest.err
32369 rm -f conftest.er1
32370 cat conftest.err >&5
a848cd7e
SC
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); } &&
9dd0f6c2 32373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32375 (eval $ac_try) 2>&5
32376 ac_status=$?
32377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32378 (exit $ac_status); }; } &&
32379 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32381 (eval $ac_try) 2>&5
32382 ac_status=$?
32383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32384 (exit $ac_status); }; }; then
32385 eval "$as_ac_var=yes"
32386else
32387 echo "$as_me: failed program was:" >&5
32388sed 's/^/| /' conftest.$ac_ext >&5
32389
32390eval "$as_ac_var=no"
32391fi
ac1cb8d3
VS
32392rm -f conftest.err conftest.$ac_objext \
32393 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32394fi
32395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32396echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32397if test `eval echo '${'$as_ac_var'}'` = yes; then
32398 cat >>confdefs.h <<_ACEOF
32399#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32400_ACEOF
32401
32402fi
32403done
32404
32405
32406
32407
32408for ac_func in putenv setenv
32409do
32410as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32411echo "$as_me:$LINENO: checking for $ac_func" >&5
32412echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32413if eval "test \"\${$as_ac_var+set}\" = set"; then
32414 echo $ECHO_N "(cached) $ECHO_C" >&6
32415else
32416 cat >conftest.$ac_ext <<_ACEOF
32417/* confdefs.h. */
32418_ACEOF
32419cat confdefs.h >>conftest.$ac_ext
32420cat >>conftest.$ac_ext <<_ACEOF
32421/* end confdefs.h. */
ac1cb8d3
VS
32422/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32424#define $ac_func innocuous_$ac_func
32425
a848cd7e
SC
32426/* System header to define __stub macros and hopefully few prototypes,
32427 which can conflict with char $ac_func (); below.
32428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32429 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32430
a848cd7e
SC
32431#ifdef __STDC__
32432# include <limits.h>
32433#else
32434# include <assert.h>
32435#endif
ac1cb8d3
VS
32436
32437#undef $ac_func
32438
a848cd7e
SC
32439/* Override any gcc2 internal prototype to avoid an error. */
32440#ifdef __cplusplus
32441extern "C"
32442{
32443#endif
32444/* We use char because int might match the return type of a gcc2
32445 builtin and then its argument prototype would still apply. */
32446char $ac_func ();
32447/* The GNU C library defines this for functions which it implements
32448 to always fail with ENOSYS. Some functions are actually named
32449 something starting with __ and the normal name is an alias. */
32450#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32451choke me
32452#else
32453char (*f) () = $ac_func;
32454#endif
32455#ifdef __cplusplus
32456}
32457#endif
32458
32459int
32460main ()
32461{
32462return f != $ac_func;
32463 ;
32464 return 0;
32465}
32466_ACEOF
32467rm -f conftest.$ac_objext conftest$ac_exeext
32468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32469 (eval $ac_link) 2>conftest.er1
a848cd7e 32470 ac_status=$?
ac1cb8d3
VS
32471 grep -v '^ *+' conftest.er1 >conftest.err
32472 rm -f conftest.er1
32473 cat conftest.err >&5
a848cd7e
SC
32474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475 (exit $ac_status); } &&
9dd0f6c2 32476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32478 (eval $ac_try) 2>&5
32479 ac_status=$?
32480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32481 (exit $ac_status); }; } &&
32482 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32484 (eval $ac_try) 2>&5
32485 ac_status=$?
32486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487 (exit $ac_status); }; }; then
32488 eval "$as_ac_var=yes"
32489else
32490 echo "$as_me: failed program was:" >&5
32491sed 's/^/| /' conftest.$ac_ext >&5
32492
32493eval "$as_ac_var=no"
32494fi
ac1cb8d3
VS
32495rm -f conftest.err conftest.$ac_objext \
32496 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32497fi
32498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32499echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32500if test `eval echo '${'$as_ac_var'}'` = yes; then
32501 cat >>confdefs.h <<_ACEOF
32502#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32503_ACEOF
32504 break
32505fi
32506done
32507
32508
32509HAVE_SOME_SLEEP_FUNC=0
32510if test "$USE_BEOS" = 1; then
32511 cat >>confdefs.h <<\_ACEOF
32512#define HAVE_SLEEP 1
32513_ACEOF
32514
32515 HAVE_SOME_SLEEP_FUNC=1
32516fi
32517
32518if test "$USE_DARWIN" = 1; then
32519 cat >>confdefs.h <<\_ACEOF
32520#define HAVE_USLEEP 1
32521_ACEOF
32522
32523 HAVE_SOME_SLEEP_FUNC=1
32524fi
32525
32526if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32527 POSIX4_LINK=
32528
32529for ac_func in nanosleep
32530do
32531as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32532echo "$as_me:$LINENO: checking for $ac_func" >&5
32533echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32534if eval "test \"\${$as_ac_var+set}\" = set"; then
32535 echo $ECHO_N "(cached) $ECHO_C" >&6
32536else
32537 cat >conftest.$ac_ext <<_ACEOF
32538/* confdefs.h. */
32539_ACEOF
32540cat confdefs.h >>conftest.$ac_ext
32541cat >>conftest.$ac_ext <<_ACEOF
32542/* end confdefs.h. */
ac1cb8d3
VS
32543/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32545#define $ac_func innocuous_$ac_func
32546
a848cd7e
SC
32547/* System header to define __stub macros and hopefully few prototypes,
32548 which can conflict with char $ac_func (); below.
32549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32550 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32551
a848cd7e
SC
32552#ifdef __STDC__
32553# include <limits.h>
32554#else
32555# include <assert.h>
32556#endif
ac1cb8d3
VS
32557
32558#undef $ac_func
32559
a848cd7e
SC
32560/* Override any gcc2 internal prototype to avoid an error. */
32561#ifdef __cplusplus
32562extern "C"
32563{
32564#endif
32565/* We use char because int might match the return type of a gcc2
32566 builtin and then its argument prototype would still apply. */
32567char $ac_func ();
32568/* The GNU C library defines this for functions which it implements
32569 to always fail with ENOSYS. Some functions are actually named
32570 something starting with __ and the normal name is an alias. */
32571#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32572choke me
32573#else
32574char (*f) () = $ac_func;
32575#endif
32576#ifdef __cplusplus
32577}
32578#endif
32579
32580int
32581main ()
32582{
32583return f != $ac_func;
32584 ;
32585 return 0;
32586}
32587_ACEOF
32588rm -f conftest.$ac_objext conftest$ac_exeext
32589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32590 (eval $ac_link) 2>conftest.er1
a848cd7e 32591 ac_status=$?
ac1cb8d3
VS
32592 grep -v '^ *+' conftest.er1 >conftest.err
32593 rm -f conftest.er1
32594 cat conftest.err >&5
a848cd7e
SC
32595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596 (exit $ac_status); } &&
9dd0f6c2 32597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32599 (eval $ac_try) 2>&5
32600 ac_status=$?
32601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602 (exit $ac_status); }; } &&
32603 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32605 (eval $ac_try) 2>&5
32606 ac_status=$?
32607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608 (exit $ac_status); }; }; then
32609 eval "$as_ac_var=yes"
32610else
32611 echo "$as_me: failed program was:" >&5
32612sed 's/^/| /' conftest.$ac_ext >&5
32613
32614eval "$as_ac_var=no"
32615fi
ac1cb8d3
VS
32616rm -f conftest.err conftest.$ac_objext \
32617 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32618fi
32619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32620echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32621if test `eval echo '${'$as_ac_var'}'` = yes; then
32622 cat >>confdefs.h <<_ACEOF
32623#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32624_ACEOF
32625 cat >>confdefs.h <<\_ACEOF
32626#define HAVE_NANOSLEEP 1
32627_ACEOF
32628
32629else
32630
32631 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
32632echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
32633if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
32634 echo $ECHO_N "(cached) $ECHO_C" >&6
32635else
32636 ac_check_lib_save_LIBS=$LIBS
32637LIBS="-lposix4 $LIBS"
32638cat >conftest.$ac_ext <<_ACEOF
32639/* confdefs.h. */
32640_ACEOF
32641cat confdefs.h >>conftest.$ac_ext
32642cat >>conftest.$ac_ext <<_ACEOF
32643/* end confdefs.h. */
32644
32645/* Override any gcc2 internal prototype to avoid an error. */
32646#ifdef __cplusplus
32647extern "C"
32648#endif
32649/* We use char because int might match the return type of a gcc2
32650 builtin and then its argument prototype would still apply. */
32651char nanosleep ();
32652int
32653main ()
32654{
32655nanosleep ();
32656 ;
32657 return 0;
32658}
32659_ACEOF
32660rm -f conftest.$ac_objext conftest$ac_exeext
32661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32662 (eval $ac_link) 2>conftest.er1
a848cd7e 32663 ac_status=$?
ac1cb8d3
VS
32664 grep -v '^ *+' conftest.er1 >conftest.err
32665 rm -f conftest.er1
32666 cat conftest.err >&5
a848cd7e
SC
32667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32668 (exit $ac_status); } &&
9dd0f6c2 32669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32671 (eval $ac_try) 2>&5
32672 ac_status=$?
32673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32674 (exit $ac_status); }; } &&
32675 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32677 (eval $ac_try) 2>&5
32678 ac_status=$?
32679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680 (exit $ac_status); }; }; then
32681 ac_cv_lib_posix4_nanosleep=yes
32682else
32683 echo "$as_me: failed program was:" >&5
32684sed 's/^/| /' conftest.$ac_ext >&5
32685
32686ac_cv_lib_posix4_nanosleep=no
32687fi
ac1cb8d3
VS
32688rm -f conftest.err conftest.$ac_objext \
32689 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32690LIBS=$ac_check_lib_save_LIBS
32691fi
32692echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
32693echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
32694if test $ac_cv_lib_posix4_nanosleep = yes; then
32695
32696 cat >>confdefs.h <<\_ACEOF
32697#define HAVE_NANOSLEEP 1
32698_ACEOF
32699
32700 POSIX4_LINK=" -lposix4"
32701
32702else
32703
32704
32705for ac_func in usleep
32706do
32707as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32708echo "$as_me:$LINENO: checking for $ac_func" >&5
32709echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32710if eval "test \"\${$as_ac_var+set}\" = set"; then
32711 echo $ECHO_N "(cached) $ECHO_C" >&6
32712else
32713 cat >conftest.$ac_ext <<_ACEOF
32714/* confdefs.h. */
32715_ACEOF
32716cat confdefs.h >>conftest.$ac_ext
32717cat >>conftest.$ac_ext <<_ACEOF
32718/* end confdefs.h. */
ac1cb8d3
VS
32719/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32721#define $ac_func innocuous_$ac_func
32722
a848cd7e
SC
32723/* System header to define __stub macros and hopefully few prototypes,
32724 which can conflict with char $ac_func (); below.
32725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32726 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32727
a848cd7e
SC
32728#ifdef __STDC__
32729# include <limits.h>
32730#else
32731# include <assert.h>
32732#endif
ac1cb8d3
VS
32733
32734#undef $ac_func
32735
a848cd7e
SC
32736/* Override any gcc2 internal prototype to avoid an error. */
32737#ifdef __cplusplus
32738extern "C"
32739{
32740#endif
32741/* We use char because int might match the return type of a gcc2
32742 builtin and then its argument prototype would still apply. */
32743char $ac_func ();
32744/* The GNU C library defines this for functions which it implements
32745 to always fail with ENOSYS. Some functions are actually named
32746 something starting with __ and the normal name is an alias. */
32747#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32748choke me
32749#else
32750char (*f) () = $ac_func;
32751#endif
32752#ifdef __cplusplus
32753}
32754#endif
32755
32756int
32757main ()
32758{
32759return f != $ac_func;
32760 ;
32761 return 0;
32762}
32763_ACEOF
32764rm -f conftest.$ac_objext conftest$ac_exeext
32765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32766 (eval $ac_link) 2>conftest.er1
a848cd7e 32767 ac_status=$?
ac1cb8d3
VS
32768 grep -v '^ *+' conftest.er1 >conftest.err
32769 rm -f conftest.er1
32770 cat conftest.err >&5
a848cd7e
SC
32771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32772 (exit $ac_status); } &&
9dd0f6c2 32773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32775 (eval $ac_try) 2>&5
32776 ac_status=$?
32777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32778 (exit $ac_status); }; } &&
32779 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32781 (eval $ac_try) 2>&5
32782 ac_status=$?
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784 (exit $ac_status); }; }; then
32785 eval "$as_ac_var=yes"
32786else
32787 echo "$as_me: failed program was:" >&5
32788sed 's/^/| /' conftest.$ac_ext >&5
32789
32790eval "$as_ac_var=no"
32791fi
ac1cb8d3
VS
32792rm -f conftest.err conftest.$ac_objext \
32793 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32794fi
32795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32796echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32797if test `eval echo '${'$as_ac_var'}'` = yes; then
32798 cat >>confdefs.h <<_ACEOF
32799#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32800_ACEOF
32801 cat >>confdefs.h <<\_ACEOF
32802#define HAVE_USLEEP 1
32803_ACEOF
32804
32805else
32806 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
32807echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
32808
32809fi
32810done
32811
32812
32813
32814fi
32815
32816
32817
32818fi
32819done
32820
32821fi
32822
32823
32824
32825for ac_func in uname gethostname
32826do
32827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32828echo "$as_me:$LINENO: checking for $ac_func" >&5
32829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32830if eval "test \"\${$as_ac_var+set}\" = set"; then
32831 echo $ECHO_N "(cached) $ECHO_C" >&6
32832else
32833 cat >conftest.$ac_ext <<_ACEOF
32834/* confdefs.h. */
32835_ACEOF
32836cat confdefs.h >>conftest.$ac_ext
32837cat >>conftest.$ac_ext <<_ACEOF
32838/* end confdefs.h. */
ac1cb8d3
VS
32839/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32841#define $ac_func innocuous_$ac_func
32842
a848cd7e
SC
32843/* System header to define __stub macros and hopefully few prototypes,
32844 which can conflict with char $ac_func (); below.
32845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32846 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32847
a848cd7e
SC
32848#ifdef __STDC__
32849# include <limits.h>
32850#else
32851# include <assert.h>
32852#endif
ac1cb8d3
VS
32853
32854#undef $ac_func
32855
a848cd7e
SC
32856/* Override any gcc2 internal prototype to avoid an error. */
32857#ifdef __cplusplus
32858extern "C"
32859{
32860#endif
32861/* We use char because int might match the return type of a gcc2
32862 builtin and then its argument prototype would still apply. */
32863char $ac_func ();
32864/* The GNU C library defines this for functions which it implements
32865 to always fail with ENOSYS. Some functions are actually named
32866 something starting with __ and the normal name is an alias. */
32867#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32868choke me
32869#else
32870char (*f) () = $ac_func;
32871#endif
32872#ifdef __cplusplus
32873}
32874#endif
32875
32876int
32877main ()
32878{
32879return f != $ac_func;
32880 ;
32881 return 0;
32882}
32883_ACEOF
32884rm -f conftest.$ac_objext conftest$ac_exeext
32885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32886 (eval $ac_link) 2>conftest.er1
a848cd7e 32887 ac_status=$?
ac1cb8d3
VS
32888 grep -v '^ *+' conftest.er1 >conftest.err
32889 rm -f conftest.er1
32890 cat conftest.err >&5
a848cd7e
SC
32891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32892 (exit $ac_status); } &&
9dd0f6c2 32893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32895 (eval $ac_try) 2>&5
32896 ac_status=$?
32897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32898 (exit $ac_status); }; } &&
32899 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32901 (eval $ac_try) 2>&5
32902 ac_status=$?
32903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904 (exit $ac_status); }; }; then
32905 eval "$as_ac_var=yes"
32906else
32907 echo "$as_me: failed program was:" >&5
32908sed 's/^/| /' conftest.$ac_ext >&5
32909
32910eval "$as_ac_var=no"
32911fi
ac1cb8d3
VS
32912rm -f conftest.err conftest.$ac_objext \
32913 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32914fi
32915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32916echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32917if test `eval echo '${'$as_ac_var'}'` = yes; then
32918 cat >>confdefs.h <<_ACEOF
32919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32920_ACEOF
32921 break
32922fi
32923done
32924
32925
32926
32927
32928ac_ext=cc
32929ac_cpp='$CXXCPP $CPPFLAGS'
32930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32933
32934
32935
32936for ac_func in strtok_r
32937do
32938as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32939echo "$as_me:$LINENO: checking for $ac_func" >&5
32940echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32941if eval "test \"\${$as_ac_var+set}\" = set"; then
32942 echo $ECHO_N "(cached) $ECHO_C" >&6
32943else
32944 cat >conftest.$ac_ext <<_ACEOF
32945/* confdefs.h. */
32946_ACEOF
32947cat confdefs.h >>conftest.$ac_ext
32948cat >>conftest.$ac_ext <<_ACEOF
32949/* end confdefs.h. */
ac1cb8d3
VS
32950/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32952#define $ac_func innocuous_$ac_func
32953
a848cd7e
SC
32954/* System header to define __stub macros and hopefully few prototypes,
32955 which can conflict with char $ac_func (); below.
32956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32957 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32958
a848cd7e
SC
32959#ifdef __STDC__
32960# include <limits.h>
32961#else
32962# include <assert.h>
32963#endif
ac1cb8d3
VS
32964
32965#undef $ac_func
32966
a848cd7e
SC
32967/* Override any gcc2 internal prototype to avoid an error. */
32968#ifdef __cplusplus
32969extern "C"
32970{
32971#endif
32972/* We use char because int might match the return type of a gcc2
32973 builtin and then its argument prototype would still apply. */
32974char $ac_func ();
32975/* The GNU C library defines this for functions which it implements
32976 to always fail with ENOSYS. Some functions are actually named
32977 something starting with __ and the normal name is an alias. */
32978#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32979choke me
32980#else
32981char (*f) () = $ac_func;
32982#endif
32983#ifdef __cplusplus
32984}
32985#endif
32986
32987int
32988main ()
32989{
32990return f != $ac_func;
32991 ;
32992 return 0;
32993}
32994_ACEOF
32995rm -f conftest.$ac_objext conftest$ac_exeext
32996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32997 (eval $ac_link) 2>conftest.er1
a848cd7e 32998 ac_status=$?
ac1cb8d3
VS
32999 grep -v '^ *+' conftest.er1 >conftest.err
33000 rm -f conftest.er1
33001 cat conftest.err >&5
a848cd7e
SC
33002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003 (exit $ac_status); } &&
9dd0f6c2 33004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33006 (eval $ac_try) 2>&5
33007 ac_status=$?
33008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009 (exit $ac_status); }; } &&
33010 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33012 (eval $ac_try) 2>&5
33013 ac_status=$?
33014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33015 (exit $ac_status); }; }; then
33016 eval "$as_ac_var=yes"
33017else
33018 echo "$as_me: failed program was:" >&5
33019sed 's/^/| /' conftest.$ac_ext >&5
33020
33021eval "$as_ac_var=no"
33022fi
ac1cb8d3
VS
33023rm -f conftest.err conftest.$ac_objext \
33024 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33025fi
33026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33027echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33028if test `eval echo '${'$as_ac_var'}'` = yes; then
33029 cat >>confdefs.h <<_ACEOF
33030#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33031_ACEOF
33032
33033fi
33034done
33035
33036
33037ac_ext=c
33038ac_cpp='$CPP $CPPFLAGS'
33039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33041ac_compiler_gnu=$ac_cv_c_compiler_gnu
33042
33043
33044INET_LINK=
33045
33046for ac_func in inet_addr
33047do
33048as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33049echo "$as_me:$LINENO: checking for $ac_func" >&5
33050echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33051if eval "test \"\${$as_ac_var+set}\" = set"; then
33052 echo $ECHO_N "(cached) $ECHO_C" >&6
33053else
33054 cat >conftest.$ac_ext <<_ACEOF
33055/* confdefs.h. */
33056_ACEOF
33057cat confdefs.h >>conftest.$ac_ext
33058cat >>conftest.$ac_ext <<_ACEOF
33059/* end confdefs.h. */
ac1cb8d3
VS
33060/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33062#define $ac_func innocuous_$ac_func
33063
a848cd7e
SC
33064/* System header to define __stub macros and hopefully few prototypes,
33065 which can conflict with char $ac_func (); below.
33066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33067 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33068
a848cd7e
SC
33069#ifdef __STDC__
33070# include <limits.h>
33071#else
33072# include <assert.h>
33073#endif
ac1cb8d3
VS
33074
33075#undef $ac_func
33076
a848cd7e
SC
33077/* Override any gcc2 internal prototype to avoid an error. */
33078#ifdef __cplusplus
33079extern "C"
33080{
33081#endif
33082/* We use char because int might match the return type of a gcc2
33083 builtin and then its argument prototype would still apply. */
33084char $ac_func ();
33085/* The GNU C library defines this for functions which it implements
33086 to always fail with ENOSYS. Some functions are actually named
33087 something starting with __ and the normal name is an alias. */
33088#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33089choke me
33090#else
33091char (*f) () = $ac_func;
33092#endif
33093#ifdef __cplusplus
33094}
33095#endif
33096
33097int
33098main ()
33099{
33100return f != $ac_func;
33101 ;
33102 return 0;
33103}
33104_ACEOF
33105rm -f conftest.$ac_objext conftest$ac_exeext
33106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33107 (eval $ac_link) 2>conftest.er1
a848cd7e 33108 ac_status=$?
ac1cb8d3
VS
33109 grep -v '^ *+' conftest.er1 >conftest.err
33110 rm -f conftest.er1
33111 cat conftest.err >&5
a848cd7e
SC
33112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33113 (exit $ac_status); } &&
9dd0f6c2 33114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33116 (eval $ac_try) 2>&5
33117 ac_status=$?
33118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119 (exit $ac_status); }; } &&
33120 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
33126 eval "$as_ac_var=yes"
33127else
33128 echo "$as_me: failed program was:" >&5
33129sed 's/^/| /' conftest.$ac_ext >&5
33130
33131eval "$as_ac_var=no"
33132fi
ac1cb8d3
VS
33133rm -f conftest.err conftest.$ac_objext \
33134 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33135fi
33136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33137echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33138if test `eval echo '${'$as_ac_var'}'` = yes; then
33139 cat >>confdefs.h <<_ACEOF
33140#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33141_ACEOF
33142 cat >>confdefs.h <<\_ACEOF
33143#define HAVE_INET_ADDR 1
33144_ACEOF
33145
33146else
33147
33148 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33149echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33150if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33151 echo $ECHO_N "(cached) $ECHO_C" >&6
33152else
33153 ac_check_lib_save_LIBS=$LIBS
33154LIBS="-lnsl $LIBS"
33155cat >conftest.$ac_ext <<_ACEOF
33156/* confdefs.h. */
33157_ACEOF
33158cat confdefs.h >>conftest.$ac_ext
33159cat >>conftest.$ac_ext <<_ACEOF
33160/* end confdefs.h. */
33161
33162/* Override any gcc2 internal prototype to avoid an error. */
33163#ifdef __cplusplus
33164extern "C"
33165#endif
33166/* We use char because int might match the return type of a gcc2
33167 builtin and then its argument prototype would still apply. */
33168char inet_addr ();
33169int
33170main ()
33171{
33172inet_addr ();
33173 ;
33174 return 0;
33175}
33176_ACEOF
33177rm -f conftest.$ac_objext conftest$ac_exeext
33178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33179 (eval $ac_link) 2>conftest.er1
a848cd7e 33180 ac_status=$?
ac1cb8d3
VS
33181 grep -v '^ *+' conftest.er1 >conftest.err
33182 rm -f conftest.er1
33183 cat conftest.err >&5
a848cd7e
SC
33184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185 (exit $ac_status); } &&
9dd0f6c2 33186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33188 (eval $ac_try) 2>&5
33189 ac_status=$?
33190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33191 (exit $ac_status); }; } &&
33192 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33194 (eval $ac_try) 2>&5
33195 ac_status=$?
33196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33197 (exit $ac_status); }; }; then
33198 ac_cv_lib_nsl_inet_addr=yes
33199else
33200 echo "$as_me: failed program was:" >&5
33201sed 's/^/| /' conftest.$ac_ext >&5
33202
33203ac_cv_lib_nsl_inet_addr=no
33204fi
ac1cb8d3
VS
33205rm -f conftest.err conftest.$ac_objext \
33206 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33207LIBS=$ac_check_lib_save_LIBS
33208fi
33209echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33210echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33211if test $ac_cv_lib_nsl_inet_addr = yes; then
33212 INET_LINK="nsl"
33213else
33214
33215 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33216echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33217if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33218 echo $ECHO_N "(cached) $ECHO_C" >&6
33219else
33220 ac_check_lib_save_LIBS=$LIBS
33221LIBS="-lresolv $LIBS"
33222cat >conftest.$ac_ext <<_ACEOF
33223/* confdefs.h. */
33224_ACEOF
33225cat confdefs.h >>conftest.$ac_ext
33226cat >>conftest.$ac_ext <<_ACEOF
33227/* end confdefs.h. */
33228
33229/* Override any gcc2 internal prototype to avoid an error. */
33230#ifdef __cplusplus
33231extern "C"
33232#endif
33233/* We use char because int might match the return type of a gcc2
33234 builtin and then its argument prototype would still apply. */
33235char inet_addr ();
33236int
33237main ()
33238{
33239inet_addr ();
33240 ;
33241 return 0;
33242}
33243_ACEOF
33244rm -f conftest.$ac_objext conftest$ac_exeext
33245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33246 (eval $ac_link) 2>conftest.er1
a848cd7e 33247 ac_status=$?
ac1cb8d3
VS
33248 grep -v '^ *+' conftest.er1 >conftest.err
33249 rm -f conftest.er1
33250 cat conftest.err >&5
a848cd7e
SC
33251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252 (exit $ac_status); } &&
9dd0f6c2 33253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33255 (eval $ac_try) 2>&5
33256 ac_status=$?
33257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258 (exit $ac_status); }; } &&
33259 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33261 (eval $ac_try) 2>&5
33262 ac_status=$?
33263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264 (exit $ac_status); }; }; then
33265 ac_cv_lib_resolv_inet_addr=yes
33266else
33267 echo "$as_me: failed program was:" >&5
33268sed 's/^/| /' conftest.$ac_ext >&5
33269
33270ac_cv_lib_resolv_inet_addr=no
33271fi
ac1cb8d3
VS
33272rm -f conftest.err conftest.$ac_objext \
33273 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33274LIBS=$ac_check_lib_save_LIBS
33275fi
33276echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33277echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33278if test $ac_cv_lib_resolv_inet_addr = yes; then
33279 INET_LINK="resolv"
33280else
33281
33282 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33283echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33284if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33285 echo $ECHO_N "(cached) $ECHO_C" >&6
33286else
33287 ac_check_lib_save_LIBS=$LIBS
33288LIBS="-lsocket $LIBS"
33289cat >conftest.$ac_ext <<_ACEOF
33290/* confdefs.h. */
33291_ACEOF
33292cat confdefs.h >>conftest.$ac_ext
33293cat >>conftest.$ac_ext <<_ACEOF
33294/* end confdefs.h. */
33295
33296/* Override any gcc2 internal prototype to avoid an error. */
33297#ifdef __cplusplus
33298extern "C"
33299#endif
33300/* We use char because int might match the return type of a gcc2
33301 builtin and then its argument prototype would still apply. */
33302char inet_addr ();
33303int
33304main ()
33305{
33306inet_addr ();
33307 ;
33308 return 0;
33309}
33310_ACEOF
33311rm -f conftest.$ac_objext conftest$ac_exeext
33312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33313 (eval $ac_link) 2>conftest.er1
a848cd7e 33314 ac_status=$?
ac1cb8d3
VS
33315 grep -v '^ *+' conftest.er1 >conftest.err
33316 rm -f conftest.er1
33317 cat conftest.err >&5
a848cd7e
SC
33318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319 (exit $ac_status); } &&
9dd0f6c2 33320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33322 (eval $ac_try) 2>&5
33323 ac_status=$?
33324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325 (exit $ac_status); }; } &&
33326 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33328 (eval $ac_try) 2>&5
33329 ac_status=$?
33330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33331 (exit $ac_status); }; }; then
33332 ac_cv_lib_socket_inet_addr=yes
33333else
33334 echo "$as_me: failed program was:" >&5
33335sed 's/^/| /' conftest.$ac_ext >&5
33336
33337ac_cv_lib_socket_inet_addr=no
33338fi
ac1cb8d3
VS
33339rm -f conftest.err conftest.$ac_objext \
33340 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33341LIBS=$ac_check_lib_save_LIBS
33342fi
33343echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33344echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33345if test $ac_cv_lib_socket_inet_addr = yes; then
33346 INET_LINK="socket"
33347
33348fi
33349
33350
33351
33352fi
33353
33354
33355
33356fi
33357
33358
33359
33360fi
33361done
33362
33363
33364
33365for ac_func in inet_aton
33366do
33367as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33368echo "$as_me:$LINENO: checking for $ac_func" >&5
33369echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33370if eval "test \"\${$as_ac_var+set}\" = set"; then
33371 echo $ECHO_N "(cached) $ECHO_C" >&6
33372else
33373 cat >conftest.$ac_ext <<_ACEOF
33374/* confdefs.h. */
33375_ACEOF
33376cat confdefs.h >>conftest.$ac_ext
33377cat >>conftest.$ac_ext <<_ACEOF
33378/* end confdefs.h. */
ac1cb8d3
VS
33379/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33381#define $ac_func innocuous_$ac_func
33382
a848cd7e
SC
33383/* System header to define __stub macros and hopefully few prototypes,
33384 which can conflict with char $ac_func (); below.
33385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33386 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33387
a848cd7e
SC
33388#ifdef __STDC__
33389# include <limits.h>
33390#else
33391# include <assert.h>
33392#endif
ac1cb8d3
VS
33393
33394#undef $ac_func
33395
a848cd7e
SC
33396/* Override any gcc2 internal prototype to avoid an error. */
33397#ifdef __cplusplus
33398extern "C"
33399{
33400#endif
33401/* We use char because int might match the return type of a gcc2
33402 builtin and then its argument prototype would still apply. */
33403char $ac_func ();
33404/* The GNU C library defines this for functions which it implements
33405 to always fail with ENOSYS. Some functions are actually named
33406 something starting with __ and the normal name is an alias. */
33407#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33408choke me
33409#else
33410char (*f) () = $ac_func;
33411#endif
33412#ifdef __cplusplus
33413}
33414#endif
33415
33416int
33417main ()
33418{
33419return f != $ac_func;
33420 ;
33421 return 0;
33422}
33423_ACEOF
33424rm -f conftest.$ac_objext conftest$ac_exeext
33425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33426 (eval $ac_link) 2>conftest.er1
a848cd7e 33427 ac_status=$?
ac1cb8d3
VS
33428 grep -v '^ *+' conftest.er1 >conftest.err
33429 rm -f conftest.er1
33430 cat conftest.err >&5
a848cd7e
SC
33431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33432 (exit $ac_status); } &&
9dd0f6c2 33433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33435 (eval $ac_try) 2>&5
33436 ac_status=$?
33437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33438 (exit $ac_status); }; } &&
33439 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33441 (eval $ac_try) 2>&5
33442 ac_status=$?
33443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33444 (exit $ac_status); }; }; then
33445 eval "$as_ac_var=yes"
33446else
33447 echo "$as_me: failed program was:" >&5
33448sed 's/^/| /' conftest.$ac_ext >&5
33449
33450eval "$as_ac_var=no"
33451fi
ac1cb8d3
VS
33452rm -f conftest.err conftest.$ac_objext \
33453 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33454fi
33455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33456echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33457if test `eval echo '${'$as_ac_var'}'` = yes; then
33458 cat >>confdefs.h <<_ACEOF
33459#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33460_ACEOF
33461 cat >>confdefs.h <<\_ACEOF
33462#define HAVE_INET_ATON 1
33463_ACEOF
33464
33465else
33466
33467 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33468echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33469echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33470if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33471 echo $ECHO_N "(cached) $ECHO_C" >&6
33472else
33473 ac_check_lib_save_LIBS=$LIBS
33474LIBS="-l$INET_LINK $LIBS"
33475cat >conftest.$ac_ext <<_ACEOF
33476/* confdefs.h. */
33477_ACEOF
33478cat confdefs.h >>conftest.$ac_ext
33479cat >>conftest.$ac_ext <<_ACEOF
33480/* end confdefs.h. */
33481
33482/* Override any gcc2 internal prototype to avoid an error. */
33483#ifdef __cplusplus
33484extern "C"
33485#endif
33486/* We use char because int might match the return type of a gcc2
33487 builtin and then its argument prototype would still apply. */
33488char inet_aton ();
33489int
33490main ()
33491{
33492inet_aton ();
33493 ;
33494 return 0;
33495}
33496_ACEOF
33497rm -f conftest.$ac_objext conftest$ac_exeext
33498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33499 (eval $ac_link) 2>conftest.er1
a848cd7e 33500 ac_status=$?
ac1cb8d3
VS
33501 grep -v '^ *+' conftest.er1 >conftest.err
33502 rm -f conftest.er1
33503 cat conftest.err >&5
a848cd7e
SC
33504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33505 (exit $ac_status); } &&
9dd0f6c2 33506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33508 (eval $ac_try) 2>&5
33509 ac_status=$?
33510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33511 (exit $ac_status); }; } &&
33512 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33514 (eval $ac_try) 2>&5
33515 ac_status=$?
33516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33517 (exit $ac_status); }; }; then
33518 eval "$as_ac_Lib=yes"
33519else
33520 echo "$as_me: failed program was:" >&5
33521sed 's/^/| /' conftest.$ac_ext >&5
33522
33523eval "$as_ac_Lib=no"
33524fi
ac1cb8d3
VS
33525rm -f conftest.err conftest.$ac_objext \
33526 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33527LIBS=$ac_check_lib_save_LIBS
33528fi
33529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33530echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33531if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33532 cat >>confdefs.h <<\_ACEOF
33533#define HAVE_INET_ATON 1
33534_ACEOF
33535
33536fi
33537
33538
33539fi
33540done
33541
33542
33543if test "x$INET_LINK" != "x"; then
33544 cat >>confdefs.h <<\_ACEOF
33545#define HAVE_INET_ADDR 1
33546_ACEOF
33547
33548 INET_LINK=" -l$INET_LINK"
33549fi
33550
33551fi
33552
33553
33554
33555EXTRALIBS_ESD=
33556echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
33557echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
33558if test "${ac_cv_lib_esd_esd_close+set}" = set; then
33559 echo $ECHO_N "(cached) $ECHO_C" >&6
33560else
33561 ac_check_lib_save_LIBS=$LIBS
33562LIBS="-lesd $LIBS"
33563cat >conftest.$ac_ext <<_ACEOF
33564/* confdefs.h. */
33565_ACEOF
33566cat confdefs.h >>conftest.$ac_ext
33567cat >>conftest.$ac_ext <<_ACEOF
33568/* end confdefs.h. */
33569
33570/* Override any gcc2 internal prototype to avoid an error. */
33571#ifdef __cplusplus
33572extern "C"
33573#endif
33574/* We use char because int might match the return type of a gcc2
33575 builtin and then its argument prototype would still apply. */
33576char esd_close ();
33577int
33578main ()
33579{
33580esd_close ();
33581 ;
33582 return 0;
33583}
33584_ACEOF
33585rm -f conftest.$ac_objext conftest$ac_exeext
33586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33587 (eval $ac_link) 2>conftest.er1
a848cd7e 33588 ac_status=$?
ac1cb8d3
VS
33589 grep -v '^ *+' conftest.er1 >conftest.err
33590 rm -f conftest.er1
33591 cat conftest.err >&5
a848cd7e
SC
33592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33593 (exit $ac_status); } &&
9dd0f6c2 33594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33596 (eval $ac_try) 2>&5
33597 ac_status=$?
33598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33599 (exit $ac_status); }; } &&
33600 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33602 (eval $ac_try) 2>&5
33603 ac_status=$?
33604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33605 (exit $ac_status); }; }; then
33606 ac_cv_lib_esd_esd_close=yes
33607else
33608 echo "$as_me: failed program was:" >&5
33609sed 's/^/| /' conftest.$ac_ext >&5
33610
33611ac_cv_lib_esd_esd_close=no
33612fi
ac1cb8d3
VS
33613rm -f conftest.err conftest.$ac_objext \
33614 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33615LIBS=$ac_check_lib_save_LIBS
33616fi
33617echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
33618echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
33619if test $ac_cv_lib_esd_esd_close = yes; then
33620
33621
33622for ac_header in esd.h
33623do
33624as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33625if eval "test \"\${$as_ac_Header+set}\" = set"; then
33626 echo "$as_me:$LINENO: checking for $ac_header" >&5
33627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33628if eval "test \"\${$as_ac_Header+set}\" = set"; then
33629 echo $ECHO_N "(cached) $ECHO_C" >&6
33630fi
33631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33632echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33633else
33634 # Is the header compilable?
33635echo "$as_me:$LINENO: checking $ac_header usability" >&5
33636echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33637cat >conftest.$ac_ext <<_ACEOF
33638/* confdefs.h. */
33639_ACEOF
33640cat confdefs.h >>conftest.$ac_ext
33641cat >>conftest.$ac_ext <<_ACEOF
33642/* end confdefs.h. */
33643$ac_includes_default
33644#include <$ac_header>
33645_ACEOF
33646rm -f conftest.$ac_objext
33647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33648 (eval $ac_compile) 2>conftest.er1
a848cd7e 33649 ac_status=$?
ac1cb8d3
VS
33650 grep -v '^ *+' conftest.er1 >conftest.err
33651 rm -f conftest.er1
33652 cat conftest.err >&5
a848cd7e
SC
33653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654 (exit $ac_status); } &&
9dd0f6c2 33655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33657 (eval $ac_try) 2>&5
33658 ac_status=$?
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); }; } &&
33661 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33663 (eval $ac_try) 2>&5
33664 ac_status=$?
33665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666 (exit $ac_status); }; }; then
33667 ac_header_compiler=yes
33668else
33669 echo "$as_me: failed program was:" >&5
33670sed 's/^/| /' conftest.$ac_ext >&5
33671
33672ac_header_compiler=no
33673fi
ac1cb8d3 33674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33675echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33676echo "${ECHO_T}$ac_header_compiler" >&6
33677
33678# Is the header present?
33679echo "$as_me:$LINENO: checking $ac_header presence" >&5
33680echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33681cat >conftest.$ac_ext <<_ACEOF
33682/* confdefs.h. */
33683_ACEOF
33684cat confdefs.h >>conftest.$ac_ext
33685cat >>conftest.$ac_ext <<_ACEOF
33686/* end confdefs.h. */
33687#include <$ac_header>
33688_ACEOF
33689if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33691 ac_status=$?
33692 grep -v '^ *+' conftest.er1 >conftest.err
33693 rm -f conftest.er1
33694 cat conftest.err >&5
33695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33696 (exit $ac_status); } >/dev/null; then
33697 if test -s conftest.err; then
33698 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33700 else
33701 ac_cpp_err=
33702 fi
33703else
33704 ac_cpp_err=yes
33705fi
33706if test -z "$ac_cpp_err"; then
33707 ac_header_preproc=yes
33708else
33709 echo "$as_me: failed program was:" >&5
33710sed 's/^/| /' conftest.$ac_ext >&5
33711
33712 ac_header_preproc=no
33713fi
33714rm -f conftest.err conftest.$ac_ext
33715echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33716echo "${ECHO_T}$ac_header_preproc" >&6
33717
33718# So? What about this header?
ac1cb8d3
VS
33719case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33720 yes:no: )
a848cd7e
SC
33721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33722echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33724echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33725 ac_header_preproc=yes
a848cd7e 33726 ;;
ac1cb8d3 33727 no:yes:* )
a848cd7e
SC
33728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33729echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33731echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33733echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33735echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33737echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33739echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33740 (
33741 cat <<\_ASBOX
ac1cb8d3
VS
33742## ----------------------------------------- ##
33743## Report this to wx-dev@lists.wxwidgets.org ##
33744## ----------------------------------------- ##
a848cd7e
SC
33745_ASBOX
33746 ) |
33747 sed "s/^/$as_me: WARNING: /" >&2
33748 ;;
33749esac
33750echo "$as_me:$LINENO: checking for $ac_header" >&5
33751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33752if eval "test \"\${$as_ac_Header+set}\" = set"; then
33753 echo $ECHO_N "(cached) $ECHO_C" >&6
33754else
ac1cb8d3 33755 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33756fi
33757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33759
33760fi
33761if test `eval echo '${'$as_ac_Header'}'` = yes; then
33762 cat >>confdefs.h <<_ACEOF
33763#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33764_ACEOF
33765
33766 EXTRALIBS_ESD="-lesd"
33767
33768fi
33769
33770done
33771
33772
33773fi
33774
33775
33776
33777echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
33778echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
33779cat >conftest.$ac_ext <<_ACEOF
33780/* confdefs.h. */
33781_ACEOF
33782cat confdefs.h >>conftest.$ac_ext
33783cat >>conftest.$ac_ext <<_ACEOF
33784/* end confdefs.h. */
33785#ifdef __linux__
33786 #include <linux/cdrom.h>
33787 #else
33788 /* For Solaris */
33789 #include <sys/cdio.h>
33790 #endif
33791
33792int
33793main ()
33794{
33795struct cdrom_tocentry entry, old_entry;
33796 ;
33797 return 0;
33798}
33799_ACEOF
33800rm -f conftest.$ac_objext
33801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33802 (eval $ac_compile) 2>conftest.er1
a848cd7e 33803 ac_status=$?
ac1cb8d3
VS
33804 grep -v '^ *+' conftest.er1 >conftest.err
33805 rm -f conftest.er1
33806 cat conftest.err >&5
a848cd7e
SC
33807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); } &&
9dd0f6c2 33809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33811 (eval $ac_try) 2>&5
33812 ac_status=$?
33813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814 (exit $ac_status); }; } &&
33815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33817 (eval $ac_try) 2>&5
33818 ac_status=$?
33819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33820 (exit $ac_status); }; }; then
33821 echo "$as_me:$LINENO: result: yes" >&5
33822echo "${ECHO_T}yes" >&6
33823 cat >>confdefs.h <<\_ACEOF
33824#define HAVE_KNOWN_CDROM_INTERFACE 1
33825_ACEOF
33826
33827else
33828 echo "$as_me: failed program was:" >&5
33829sed 's/^/| /' conftest.$ac_ext >&5
33830
33831echo "$as_me:$LINENO: result: no" >&5
33832echo "${ECHO_T}no" >&6
33833fi
ac1cb8d3 33834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33835
33836
33837cat >confcache <<\_ACEOF
33838# This file is a shell script that caches the results of configure
33839# tests run on this system so they can be shared between configure
33840# scripts and configure runs, see configure's option --config-cache.
33841# It is not useful on other systems. If it contains results you don't
33842# want to keep, you may remove or edit it.
33843#
33844# config.status only pays attention to the cache file if you give it
33845# the --recheck option to rerun configure.
33846#
33847# `ac_cv_env_foo' variables (set or unset) will be overridden when
33848# loading this file, other *unset* `ac_cv_foo' will be assigned the
33849# following values.
33850
33851_ACEOF
33852
33853# The following way of writing the cache mishandles newlines in values,
33854# but we know of no workaround that is simple, portable, and efficient.
33855# So, don't put newlines in cache variables' values.
33856# Ultrix sh set writes to stderr and can't be redirected directly,
33857# and sets the high bit in the cache file unless we assign to the vars.
33858{
33859 (set) 2>&1 |
33860 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33861 *ac_space=\ *)
33862 # `set' does not quote correctly, so add quotes (double-quote
33863 # substitution turns \\\\ into \\, and sed turns \\ into \).
33864 sed -n \
ac1cb8d3
VS
33865 "s/'/'\\\\''/g;
33866 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
33867 ;;
33868 *)
33869 # `set' quotes correctly as required by POSIX, so do not add quotes.
33870 sed -n \
ac1cb8d3 33871 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
33872 ;;
33873 esac;
33874} |
33875 sed '
33876 t clear
33877 : clear
33878 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33879 t end
33880 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33881 : end' >>confcache
33882if diff $cache_file confcache >/dev/null 2>&1; then :; else
33883 if test -w $cache_file; then
33884 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33885 cat confcache >$cache_file
33886 else
33887 echo "not updating unwritable cache $cache_file"
33888 fi
33889fi
33890rm -f confcache
33891
33892
33893CPP_MT_FLAG=
33894if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33895
33896
33897 THREADS_LINK=
33898 THREADS_CFLAGS=
33899
33900 if test "$wxUSE_THREADS" = "yes" ; then
33901 if test "$USE_BEOS" = 1; then
33902 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
33903echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
33904 wxUSE_THREADS="no"
33905 fi
33906 fi
33907
33908 if test "$wxUSE_THREADS" = "yes" ; then
33909
33910
33911 THREAD_OPTS="-pthread"
33912 case "${host}" in
33913 *-*-solaris2* | *-*-sunos4* )
33914 if test "x$GCC" = "xyes"; then
33915 THREAD_OPTS="-pthreads $THREAD_OPTS"
33916 else
33917 THREAD_OPTS="-mt $THREAD_OPTS"
33918 fi
33919 ;;
33920 *-*-freebsd*)
33921 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
33922 ;;
33923 *-*-darwin* | *-*-cygwin* )
33924 THREAD_OPTS=""
33925 ;;
33926 *-*-aix*)
33927 THREAD_OPTS="pthreads"
33928 ;;
33929 *-hp-hpux* )
33930 if test "x$GCC" != "xyes"; then
33931 THREAD_OPTS=""
33932 fi
33933 ;;
33934
33935 *-*-irix* )
33936 if test "x$GCC" = "xyes"; then
33937 THREAD_OPTS=""
33938 fi
33939 ;;
33940
33941 *-*-*UnixWare*)
33942 if test "x$GCC" != "xyes"; then
33943 THREAD_OPTS="-Ethread"
33944 fi
33945 ;;
33946 esac
33947
33948 THREAD_OPTS="$THREAD_OPTS pthread none"
33949
33950 THREADS_OK=no
33951 for flag in $THREAD_OPTS; do
33952 case $flag in
33953 none)
33954 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
33955echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
33956 ;;
33957
33958 -*)
33959 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
33960echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
33961 THREADS_CFLAGS="$flag"
33962 ;;
33963
33964 *)
33965 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
33966echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
33967 THREADS_LINK="-l$flag"
33968 ;;
33969 esac
33970
33971 save_LIBS="$LIBS"
33972 save_CFLAGS="$CFLAGS"
33973 LIBS="$THREADS_LINK $LIBS"
33974 CFLAGS="$THREADS_CFLAGS $CFLAGS"
33975
33976 cat >conftest.$ac_ext <<_ACEOF
33977/* confdefs.h. */
33978_ACEOF
33979cat confdefs.h >>conftest.$ac_ext
33980cat >>conftest.$ac_ext <<_ACEOF
33981/* end confdefs.h. */
33982#include <pthread.h>
33983int
33984main ()
33985{
33986pthread_create(0,0,0,0);
33987 ;
33988 return 0;
33989}
33990_ACEOF
33991rm -f conftest.$ac_objext conftest$ac_exeext
33992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33993 (eval $ac_link) 2>conftest.er1
a848cd7e 33994 ac_status=$?
ac1cb8d3
VS
33995 grep -v '^ *+' conftest.er1 >conftest.err
33996 rm -f conftest.er1
33997 cat conftest.err >&5
a848cd7e
SC
33998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999 (exit $ac_status); } &&
9dd0f6c2 34000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34002 (eval $ac_try) 2>&5
34003 ac_status=$?
34004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34005 (exit $ac_status); }; } &&
34006 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34008 (eval $ac_try) 2>&5
34009 ac_status=$?
34010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011 (exit $ac_status); }; }; then
34012 THREADS_OK=yes
34013else
34014 echo "$as_me: failed program was:" >&5
34015sed 's/^/| /' conftest.$ac_ext >&5
34016
34017fi
ac1cb8d3
VS
34018rm -f conftest.err conftest.$ac_objext \
34019 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34020
34021 LIBS="$save_LIBS"
34022 CFLAGS="$save_CFLAGS"
34023
34024 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
34025echo "${ECHO_T}$THREADS_OK" >&6
34026 if test "x$THREADS_OK" = "xyes"; then
34027 break;
34028 fi
34029
34030 THREADS_LINK=""
34031 THREADS_CFLAGS=""
34032 done
34033
34034 if test "x$THREADS_OK" != "xyes"; then
34035 wxUSE_THREADS=no
34036 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
34037echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
34038 else
34039 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
34040 LIBS="$THREADS_LINK $LIBS"
34041
34042 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
34043echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
34044 flag=no
34045 case "${host}" in
34046 *-aix*)
34047 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
34048 flag="-D_THREAD_SAFE"
34049 ;;
34050 *-freebsd*)
34051 flag="-D_THREAD_SAFE"
34052 ;;
34053 *-hp-hpux* )
34054 flag="-D_REENTRANT"
34055 if test "x$GCC" != "xyes"; then
34056 flag="$flag -D_RWSTD_MULTI_THREAD"
34057 fi
34058 ;;
34059 *solaris* | alpha*-osf*)
34060 flag="-D_REENTRANT"
34061 ;;
34062 esac
34063 echo "$as_me:$LINENO: result: ${flag}" >&5
34064echo "${ECHO_T}${flag}" >&6
34065 if test "x$flag" != xno; then
34066 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
34067 fi
34068
34069 if test "x$THREADS_CFLAGS" != "x"; then
34070 CFLAGS="$CFLAGS $THREADS_CFLAGS"
34071 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
34072 fi
34073 fi
34074 fi
34075
34076 if test "$wxUSE_THREADS" = "yes" ; then
34077
34078for ac_func in thr_setconcurrency
34079do
34080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34081echo "$as_me:$LINENO: checking for $ac_func" >&5
34082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34083if eval "test \"\${$as_ac_var+set}\" = set"; then
34084 echo $ECHO_N "(cached) $ECHO_C" >&6
34085else
34086 cat >conftest.$ac_ext <<_ACEOF
34087/* confdefs.h. */
34088_ACEOF
34089cat confdefs.h >>conftest.$ac_ext
34090cat >>conftest.$ac_ext <<_ACEOF
34091/* end confdefs.h. */
ac1cb8d3
VS
34092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34094#define $ac_func innocuous_$ac_func
34095
a848cd7e
SC
34096/* System header to define __stub macros and hopefully few prototypes,
34097 which can conflict with char $ac_func (); below.
34098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34099 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34100
a848cd7e
SC
34101#ifdef __STDC__
34102# include <limits.h>
34103#else
34104# include <assert.h>
34105#endif
ac1cb8d3
VS
34106
34107#undef $ac_func
34108
a848cd7e
SC
34109/* Override any gcc2 internal prototype to avoid an error. */
34110#ifdef __cplusplus
34111extern "C"
34112{
34113#endif
34114/* We use char because int might match the return type of a gcc2
34115 builtin and then its argument prototype would still apply. */
34116char $ac_func ();
34117/* The GNU C library defines this for functions which it implements
34118 to always fail with ENOSYS. Some functions are actually named
34119 something starting with __ and the normal name is an alias. */
34120#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34121choke me
34122#else
34123char (*f) () = $ac_func;
34124#endif
34125#ifdef __cplusplus
34126}
34127#endif
34128
34129int
34130main ()
34131{
34132return f != $ac_func;
34133 ;
34134 return 0;
34135}
34136_ACEOF
34137rm -f conftest.$ac_objext conftest$ac_exeext
34138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34139 (eval $ac_link) 2>conftest.er1
a848cd7e 34140 ac_status=$?
ac1cb8d3
VS
34141 grep -v '^ *+' conftest.er1 >conftest.err
34142 rm -f conftest.er1
34143 cat conftest.err >&5
a848cd7e
SC
34144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34145 (exit $ac_status); } &&
9dd0f6c2 34146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34148 (eval $ac_try) 2>&5
34149 ac_status=$?
34150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34151 (exit $ac_status); }; } &&
34152 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34154 (eval $ac_try) 2>&5
34155 ac_status=$?
34156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157 (exit $ac_status); }; }; then
34158 eval "$as_ac_var=yes"
34159else
34160 echo "$as_me: failed program was:" >&5
34161sed 's/^/| /' conftest.$ac_ext >&5
34162
34163eval "$as_ac_var=no"
34164fi
ac1cb8d3
VS
34165rm -f conftest.err conftest.$ac_objext \
34166 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34167fi
34168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34169echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34170if test `eval echo '${'$as_ac_var'}'` = yes; then
34171 cat >>confdefs.h <<_ACEOF
34172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34173_ACEOF
34174
34175fi
34176done
34177
34178
34179
34180for ac_header in sched.h
34181do
34182as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34183if eval "test \"\${$as_ac_Header+set}\" = set"; then
34184 echo "$as_me:$LINENO: checking for $ac_header" >&5
34185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34186if eval "test \"\${$as_ac_Header+set}\" = set"; then
34187 echo $ECHO_N "(cached) $ECHO_C" >&6
34188fi
34189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34190echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34191else
34192 # Is the header compilable?
34193echo "$as_me:$LINENO: checking $ac_header usability" >&5
34194echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34195cat >conftest.$ac_ext <<_ACEOF
34196/* confdefs.h. */
34197_ACEOF
34198cat confdefs.h >>conftest.$ac_ext
34199cat >>conftest.$ac_ext <<_ACEOF
34200/* end confdefs.h. */
34201$ac_includes_default
34202#include <$ac_header>
34203_ACEOF
34204rm -f conftest.$ac_objext
34205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34206 (eval $ac_compile) 2>conftest.er1
a848cd7e 34207 ac_status=$?
ac1cb8d3
VS
34208 grep -v '^ *+' conftest.er1 >conftest.err
34209 rm -f conftest.er1
34210 cat conftest.err >&5
a848cd7e
SC
34211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34212 (exit $ac_status); } &&
9dd0f6c2 34213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34215 (eval $ac_try) 2>&5
34216 ac_status=$?
34217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34218 (exit $ac_status); }; } &&
34219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34221 (eval $ac_try) 2>&5
34222 ac_status=$?
34223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34224 (exit $ac_status); }; }; then
34225 ac_header_compiler=yes
34226else
34227 echo "$as_me: failed program was:" >&5
34228sed 's/^/| /' conftest.$ac_ext >&5
34229
34230ac_header_compiler=no
34231fi
ac1cb8d3 34232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34233echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34234echo "${ECHO_T}$ac_header_compiler" >&6
34235
34236# Is the header present?
34237echo "$as_me:$LINENO: checking $ac_header presence" >&5
34238echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34239cat >conftest.$ac_ext <<_ACEOF
34240/* confdefs.h. */
34241_ACEOF
34242cat confdefs.h >>conftest.$ac_ext
34243cat >>conftest.$ac_ext <<_ACEOF
34244/* end confdefs.h. */
34245#include <$ac_header>
34246_ACEOF
34247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34249 ac_status=$?
34250 grep -v '^ *+' conftest.er1 >conftest.err
34251 rm -f conftest.er1
34252 cat conftest.err >&5
34253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34254 (exit $ac_status); } >/dev/null; then
34255 if test -s conftest.err; then
34256 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34258 else
34259 ac_cpp_err=
34260 fi
34261else
34262 ac_cpp_err=yes
34263fi
34264if test -z "$ac_cpp_err"; then
34265 ac_header_preproc=yes
34266else
34267 echo "$as_me: failed program was:" >&5
34268sed 's/^/| /' conftest.$ac_ext >&5
34269
34270 ac_header_preproc=no
34271fi
34272rm -f conftest.err conftest.$ac_ext
34273echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34274echo "${ECHO_T}$ac_header_preproc" >&6
34275
34276# So? What about this header?
ac1cb8d3
VS
34277case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34278 yes:no: )
a848cd7e
SC
34279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34280echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34282echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34283 ac_header_preproc=yes
a848cd7e 34284 ;;
ac1cb8d3 34285 no:yes:* )
a848cd7e
SC
34286 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34287echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34288 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34289echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34290 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34291echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34292 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34293echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34295echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34296 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34297echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34298 (
34299 cat <<\_ASBOX
ac1cb8d3
VS
34300## ----------------------------------------- ##
34301## Report this to wx-dev@lists.wxwidgets.org ##
34302## ----------------------------------------- ##
a848cd7e
SC
34303_ASBOX
34304 ) |
34305 sed "s/^/$as_me: WARNING: /" >&2
34306 ;;
34307esac
34308echo "$as_me:$LINENO: checking for $ac_header" >&5
34309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34310if eval "test \"\${$as_ac_Header+set}\" = set"; then
34311 echo $ECHO_N "(cached) $ECHO_C" >&6
34312else
ac1cb8d3 34313 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34314fi
34315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34317
34318fi
34319if test `eval echo '${'$as_ac_Header'}'` = yes; then
34320 cat >>confdefs.h <<_ACEOF
34321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34322_ACEOF
34323
34324fi
34325
34326done
34327
34328 if test "$ac_cv_header_sched_h" = "yes"; then
34329 echo "$as_me:$LINENO: checking for sched_yield" >&5
34330echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34331if test "${ac_cv_func_sched_yield+set}" = set; then
34332 echo $ECHO_N "(cached) $ECHO_C" >&6
34333else
34334 cat >conftest.$ac_ext <<_ACEOF
34335/* confdefs.h. */
34336_ACEOF
34337cat confdefs.h >>conftest.$ac_ext
34338cat >>conftest.$ac_ext <<_ACEOF
34339/* end confdefs.h. */
ac1cb8d3
VS
34340/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34342#define sched_yield innocuous_sched_yield
34343
a848cd7e
SC
34344/* System header to define __stub macros and hopefully few prototypes,
34345 which can conflict with char sched_yield (); below.
34346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34347 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34348
a848cd7e
SC
34349#ifdef __STDC__
34350# include <limits.h>
34351#else
34352# include <assert.h>
34353#endif
ac1cb8d3
VS
34354
34355#undef sched_yield
34356
a848cd7e
SC
34357/* Override any gcc2 internal prototype to avoid an error. */
34358#ifdef __cplusplus
34359extern "C"
34360{
34361#endif
34362/* We use char because int might match the return type of a gcc2
34363 builtin and then its argument prototype would still apply. */
34364char sched_yield ();
34365/* The GNU C library defines this for functions which it implements
34366 to always fail with ENOSYS. Some functions are actually named
34367 something starting with __ and the normal name is an alias. */
34368#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34369choke me
34370#else
34371char (*f) () = sched_yield;
34372#endif
34373#ifdef __cplusplus
34374}
34375#endif
34376
34377int
34378main ()
34379{
34380return f != sched_yield;
34381 ;
34382 return 0;
34383}
34384_ACEOF
34385rm -f conftest.$ac_objext conftest$ac_exeext
34386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34387 (eval $ac_link) 2>conftest.er1
a848cd7e 34388 ac_status=$?
ac1cb8d3
VS
34389 grep -v '^ *+' conftest.er1 >conftest.err
34390 rm -f conftest.er1
34391 cat conftest.err >&5
a848cd7e
SC
34392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34393 (exit $ac_status); } &&
9dd0f6c2 34394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34396 (eval $ac_try) 2>&5
34397 ac_status=$?
34398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34399 (exit $ac_status); }; } &&
34400 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34402 (eval $ac_try) 2>&5
34403 ac_status=$?
34404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34405 (exit $ac_status); }; }; then
34406 ac_cv_func_sched_yield=yes
34407else
34408 echo "$as_me: failed program was:" >&5
34409sed 's/^/| /' conftest.$ac_ext >&5
34410
34411ac_cv_func_sched_yield=no
34412fi
ac1cb8d3
VS
34413rm -f conftest.err conftest.$ac_objext \
34414 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34415fi
34416echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34417echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34418if test $ac_cv_func_sched_yield = yes; then
34419 cat >>confdefs.h <<\_ACEOF
34420#define HAVE_SCHED_YIELD 1
34421_ACEOF
34422
34423else
34424
34425 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34426echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34427if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34428 echo $ECHO_N "(cached) $ECHO_C" >&6
34429else
34430 ac_check_lib_save_LIBS=$LIBS
34431LIBS="-lposix4 $LIBS"
34432cat >conftest.$ac_ext <<_ACEOF
34433/* confdefs.h. */
34434_ACEOF
34435cat confdefs.h >>conftest.$ac_ext
34436cat >>conftest.$ac_ext <<_ACEOF
34437/* end confdefs.h. */
34438
34439/* Override any gcc2 internal prototype to avoid an error. */
34440#ifdef __cplusplus
34441extern "C"
34442#endif
34443/* We use char because int might match the return type of a gcc2
34444 builtin and then its argument prototype would still apply. */
34445char sched_yield ();
34446int
34447main ()
34448{
34449sched_yield ();
34450 ;
34451 return 0;
34452}
34453_ACEOF
34454rm -f conftest.$ac_objext conftest$ac_exeext
34455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34456 (eval $ac_link) 2>conftest.er1
a848cd7e 34457 ac_status=$?
ac1cb8d3
VS
34458 grep -v '^ *+' conftest.er1 >conftest.err
34459 rm -f conftest.er1
34460 cat conftest.err >&5
a848cd7e
SC
34461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34462 (exit $ac_status); } &&
9dd0f6c2 34463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34465 (eval $ac_try) 2>&5
34466 ac_status=$?
34467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34468 (exit $ac_status); }; } &&
34469 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34471 (eval $ac_try) 2>&5
34472 ac_status=$?
34473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34474 (exit $ac_status); }; }; then
34475 ac_cv_lib_posix4_sched_yield=yes
34476else
34477 echo "$as_me: failed program was:" >&5
34478sed 's/^/| /' conftest.$ac_ext >&5
34479
34480ac_cv_lib_posix4_sched_yield=no
34481fi
ac1cb8d3
VS
34482rm -f conftest.err conftest.$ac_objext \
34483 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34484LIBS=$ac_check_lib_save_LIBS
34485fi
34486echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34487echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34488if test $ac_cv_lib_posix4_sched_yield = yes; then
34489 cat >>confdefs.h <<\_ACEOF
34490#define HAVE_SCHED_YIELD 1
34491_ACEOF
34492 POSIX4_LINK=" -lposix4"
34493else
34494 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34495echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34496
34497fi
34498
34499
34500
34501fi
34502
34503 fi
34504
34505 HAVE_PRIOR_FUNCS=0
34506 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34507echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34508if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34509 echo $ECHO_N "(cached) $ECHO_C" >&6
34510else
34511 cat >conftest.$ac_ext <<_ACEOF
34512/* confdefs.h. */
34513_ACEOF
34514cat confdefs.h >>conftest.$ac_ext
34515cat >>conftest.$ac_ext <<_ACEOF
34516/* end confdefs.h. */
ac1cb8d3
VS
34517/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34519#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34520
a848cd7e
SC
34521/* System header to define __stub macros and hopefully few prototypes,
34522 which can conflict with char pthread_attr_getschedpolicy (); below.
34523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34524 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34525
a848cd7e
SC
34526#ifdef __STDC__
34527# include <limits.h>
34528#else
34529# include <assert.h>
34530#endif
ac1cb8d3
VS
34531
34532#undef pthread_attr_getschedpolicy
34533
a848cd7e
SC
34534/* Override any gcc2 internal prototype to avoid an error. */
34535#ifdef __cplusplus
34536extern "C"
34537{
34538#endif
34539/* We use char because int might match the return type of a gcc2
34540 builtin and then its argument prototype would still apply. */
34541char pthread_attr_getschedpolicy ();
34542/* The GNU C library defines this for functions which it implements
34543 to always fail with ENOSYS. Some functions are actually named
34544 something starting with __ and the normal name is an alias. */
34545#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
34546choke me
34547#else
34548char (*f) () = pthread_attr_getschedpolicy;
34549#endif
34550#ifdef __cplusplus
34551}
34552#endif
34553
34554int
34555main ()
34556{
34557return f != pthread_attr_getschedpolicy;
34558 ;
34559 return 0;
34560}
34561_ACEOF
34562rm -f conftest.$ac_objext conftest$ac_exeext
34563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34564 (eval $ac_link) 2>conftest.er1
a848cd7e 34565 ac_status=$?
ac1cb8d3
VS
34566 grep -v '^ *+' conftest.er1 >conftest.err
34567 rm -f conftest.er1
34568 cat conftest.err >&5
a848cd7e
SC
34569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570 (exit $ac_status); } &&
9dd0f6c2 34571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34573 (eval $ac_try) 2>&5
34574 ac_status=$?
34575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34576 (exit $ac_status); }; } &&
34577 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34579 (eval $ac_try) 2>&5
34580 ac_status=$?
34581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34582 (exit $ac_status); }; }; then
34583 ac_cv_func_pthread_attr_getschedpolicy=yes
34584else
34585 echo "$as_me: failed program was:" >&5
34586sed 's/^/| /' conftest.$ac_ext >&5
34587
34588ac_cv_func_pthread_attr_getschedpolicy=no
34589fi
ac1cb8d3
VS
34590rm -f conftest.err conftest.$ac_objext \
34591 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34592fi
34593echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
34594echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
34595if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
34596 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
34597echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
34598if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
34599 echo $ECHO_N "(cached) $ECHO_C" >&6
34600else
34601 cat >conftest.$ac_ext <<_ACEOF
34602/* confdefs.h. */
34603_ACEOF
34604cat confdefs.h >>conftest.$ac_ext
34605cat >>conftest.$ac_ext <<_ACEOF
34606/* end confdefs.h. */
ac1cb8d3
VS
34607/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
34608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34609#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
34610
a848cd7e
SC
34611/* System header to define __stub macros and hopefully few prototypes,
34612 which can conflict with char pthread_attr_setschedparam (); below.
34613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34614 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34615
a848cd7e
SC
34616#ifdef __STDC__
34617# include <limits.h>
34618#else
34619# include <assert.h>
34620#endif
ac1cb8d3
VS
34621
34622#undef pthread_attr_setschedparam
34623
a848cd7e
SC
34624/* Override any gcc2 internal prototype to avoid an error. */
34625#ifdef __cplusplus
34626extern "C"
34627{
34628#endif
34629/* We use char because int might match the return type of a gcc2
34630 builtin and then its argument prototype would still apply. */
34631char pthread_attr_setschedparam ();
34632/* The GNU C library defines this for functions which it implements
34633 to always fail with ENOSYS. Some functions are actually named
34634 something starting with __ and the normal name is an alias. */
34635#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
34636choke me
34637#else
34638char (*f) () = pthread_attr_setschedparam;
34639#endif
34640#ifdef __cplusplus
34641}
34642#endif
34643
34644int
34645main ()
34646{
34647return f != pthread_attr_setschedparam;
34648 ;
34649 return 0;
34650}
34651_ACEOF
34652rm -f conftest.$ac_objext conftest$ac_exeext
34653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34654 (eval $ac_link) 2>conftest.er1
a848cd7e 34655 ac_status=$?
ac1cb8d3
VS
34656 grep -v '^ *+' conftest.er1 >conftest.err
34657 rm -f conftest.er1
34658 cat conftest.err >&5
a848cd7e
SC
34659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660 (exit $ac_status); } &&
9dd0f6c2 34661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34663 (eval $ac_try) 2>&5
34664 ac_status=$?
34665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34666 (exit $ac_status); }; } &&
34667 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34669 (eval $ac_try) 2>&5
34670 ac_status=$?
34671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34672 (exit $ac_status); }; }; then
34673 ac_cv_func_pthread_attr_setschedparam=yes
34674else
34675 echo "$as_me: failed program was:" >&5
34676sed 's/^/| /' conftest.$ac_ext >&5
34677
34678ac_cv_func_pthread_attr_setschedparam=no
34679fi
ac1cb8d3
VS
34680rm -f conftest.err conftest.$ac_objext \
34681 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34682fi
34683echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
34684echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
34685if test $ac_cv_func_pthread_attr_setschedparam = yes; then
34686 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
34687echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
34688if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
34689 echo $ECHO_N "(cached) $ECHO_C" >&6
34690else
34691 cat >conftest.$ac_ext <<_ACEOF
34692/* confdefs.h. */
34693_ACEOF
34694cat confdefs.h >>conftest.$ac_ext
34695cat >>conftest.$ac_ext <<_ACEOF
34696/* end confdefs.h. */
ac1cb8d3
VS
34697/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
34698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34699#define sched_get_priority_max innocuous_sched_get_priority_max
34700
a848cd7e
SC
34701/* System header to define __stub macros and hopefully few prototypes,
34702 which can conflict with char sched_get_priority_max (); below.
34703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34704 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34705
a848cd7e
SC
34706#ifdef __STDC__
34707# include <limits.h>
34708#else
34709# include <assert.h>
34710#endif
ac1cb8d3
VS
34711
34712#undef sched_get_priority_max
34713
a848cd7e
SC
34714/* Override any gcc2 internal prototype to avoid an error. */
34715#ifdef __cplusplus
34716extern "C"
34717{
34718#endif
34719/* We use char because int might match the return type of a gcc2
34720 builtin and then its argument prototype would still apply. */
34721char sched_get_priority_max ();
34722/* The GNU C library defines this for functions which it implements
34723 to always fail with ENOSYS. Some functions are actually named
34724 something starting with __ and the normal name is an alias. */
34725#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
34726choke me
34727#else
34728char (*f) () = sched_get_priority_max;
34729#endif
34730#ifdef __cplusplus
34731}
34732#endif
34733
34734int
34735main ()
34736{
34737return f != sched_get_priority_max;
34738 ;
34739 return 0;
34740}
34741_ACEOF
34742rm -f conftest.$ac_objext conftest$ac_exeext
34743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34744 (eval $ac_link) 2>conftest.er1
a848cd7e 34745 ac_status=$?
ac1cb8d3
VS
34746 grep -v '^ *+' conftest.er1 >conftest.err
34747 rm -f conftest.er1
34748 cat conftest.err >&5
a848cd7e
SC
34749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34750 (exit $ac_status); } &&
9dd0f6c2 34751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34753 (eval $ac_try) 2>&5
34754 ac_status=$?
34755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34756 (exit $ac_status); }; } &&
34757 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34759 (eval $ac_try) 2>&5
34760 ac_status=$?
34761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34762 (exit $ac_status); }; }; then
34763 ac_cv_func_sched_get_priority_max=yes
34764else
34765 echo "$as_me: failed program was:" >&5
34766sed 's/^/| /' conftest.$ac_ext >&5
34767
34768ac_cv_func_sched_get_priority_max=no
34769fi
ac1cb8d3
VS
34770rm -f conftest.err conftest.$ac_objext \
34771 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34772fi
34773echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
34774echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
34775if test $ac_cv_func_sched_get_priority_max = yes; then
34776 HAVE_PRIOR_FUNCS=1
34777else
34778 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
34779echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
34780if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
34781 echo $ECHO_N "(cached) $ECHO_C" >&6
34782else
34783 ac_check_lib_save_LIBS=$LIBS
34784LIBS="-lposix4 $LIBS"
34785cat >conftest.$ac_ext <<_ACEOF
34786/* confdefs.h. */
34787_ACEOF
34788cat confdefs.h >>conftest.$ac_ext
34789cat >>conftest.$ac_ext <<_ACEOF
34790/* end confdefs.h. */
34791
34792/* Override any gcc2 internal prototype to avoid an error. */
34793#ifdef __cplusplus
34794extern "C"
34795#endif
34796/* We use char because int might match the return type of a gcc2
34797 builtin and then its argument prototype would still apply. */
34798char sched_get_priority_max ();
34799int
34800main ()
34801{
34802sched_get_priority_max ();
34803 ;
34804 return 0;
34805}
34806_ACEOF
34807rm -f conftest.$ac_objext conftest$ac_exeext
34808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34809 (eval $ac_link) 2>conftest.er1
a848cd7e 34810 ac_status=$?
ac1cb8d3
VS
34811 grep -v '^ *+' conftest.er1 >conftest.err
34812 rm -f conftest.er1
34813 cat conftest.err >&5
a848cd7e
SC
34814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34815 (exit $ac_status); } &&
9dd0f6c2 34816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34818 (eval $ac_try) 2>&5
34819 ac_status=$?
34820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34821 (exit $ac_status); }; } &&
34822 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34824 (eval $ac_try) 2>&5
34825 ac_status=$?
34826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827 (exit $ac_status); }; }; then
34828 ac_cv_lib_posix4_sched_get_priority_max=yes
34829else
34830 echo "$as_me: failed program was:" >&5
34831sed 's/^/| /' conftest.$ac_ext >&5
34832
34833ac_cv_lib_posix4_sched_get_priority_max=no
34834fi
ac1cb8d3
VS
34835rm -f conftest.err conftest.$ac_objext \
34836 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34837LIBS=$ac_check_lib_save_LIBS
34838fi
34839echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
34840echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
34841if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
34842
34843 HAVE_PRIOR_FUNCS=1
34844 POSIX4_LINK=" -lposix4"
34845
34846fi
34847
34848
34849fi
34850
34851
34852fi
34853
34854
34855fi
34856
34857
34858 if test "$HAVE_PRIOR_FUNCS" = 1; then
34859 cat >>confdefs.h <<\_ACEOF
34860#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
34861_ACEOF
34862
34863 else
34864 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
34865echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
34866 fi
34867
34868 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
34869echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
34870if test "${ac_cv_func_pthread_cancel+set}" = set; then
34871 echo $ECHO_N "(cached) $ECHO_C" >&6
34872else
34873 cat >conftest.$ac_ext <<_ACEOF
34874/* confdefs.h. */
34875_ACEOF
34876cat confdefs.h >>conftest.$ac_ext
34877cat >>conftest.$ac_ext <<_ACEOF
34878/* end confdefs.h. */
ac1cb8d3
VS
34879/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
34880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34881#define pthread_cancel innocuous_pthread_cancel
34882
a848cd7e
SC
34883/* System header to define __stub macros and hopefully few prototypes,
34884 which can conflict with char pthread_cancel (); below.
34885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34886 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34887
a848cd7e
SC
34888#ifdef __STDC__
34889# include <limits.h>
34890#else
34891# include <assert.h>
34892#endif
ac1cb8d3
VS
34893
34894#undef pthread_cancel
34895
a848cd7e
SC
34896/* Override any gcc2 internal prototype to avoid an error. */
34897#ifdef __cplusplus
34898extern "C"
34899{
34900#endif
34901/* We use char because int might match the return type of a gcc2
34902 builtin and then its argument prototype would still apply. */
34903char pthread_cancel ();
34904/* The GNU C library defines this for functions which it implements
34905 to always fail with ENOSYS. Some functions are actually named
34906 something starting with __ and the normal name is an alias. */
34907#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
34908choke me
34909#else
34910char (*f) () = pthread_cancel;
34911#endif
34912#ifdef __cplusplus
34913}
34914#endif
34915
34916int
34917main ()
34918{
34919return f != pthread_cancel;
34920 ;
34921 return 0;
34922}
34923_ACEOF
34924rm -f conftest.$ac_objext conftest$ac_exeext
34925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34926 (eval $ac_link) 2>conftest.er1
a848cd7e 34927 ac_status=$?
ac1cb8d3
VS
34928 grep -v '^ *+' conftest.er1 >conftest.err
34929 rm -f conftest.er1
34930 cat conftest.err >&5
a848cd7e
SC
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); } &&
9dd0f6c2 34933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34935 (eval $ac_try) 2>&5
34936 ac_status=$?
34937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938 (exit $ac_status); }; } &&
34939 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34941 (eval $ac_try) 2>&5
34942 ac_status=$?
34943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34944 (exit $ac_status); }; }; then
34945 ac_cv_func_pthread_cancel=yes
34946else
34947 echo "$as_me: failed program was:" >&5
34948sed 's/^/| /' conftest.$ac_ext >&5
34949
34950ac_cv_func_pthread_cancel=no
34951fi
ac1cb8d3
VS
34952rm -f conftest.err conftest.$ac_objext \
34953 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34954fi
34955echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
34956echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
34957if test $ac_cv_func_pthread_cancel = yes; then
34958 cat >>confdefs.h <<\_ACEOF
34959#define HAVE_PTHREAD_CANCEL 1
34960_ACEOF
34961
34962else
34963 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
34964echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
34965fi
34966
34967
34968
34969
34970 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
34971echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
34972if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
34973 echo $ECHO_N "(cached) $ECHO_C" >&6
34974else
34975
34976 cat >conftest.$ac_ext <<_ACEOF
34977/* confdefs.h. */
34978_ACEOF
34979cat confdefs.h >>conftest.$ac_ext
34980cat >>conftest.$ac_ext <<_ACEOF
34981/* end confdefs.h. */
34982#include <pthread.h>
34983int
34984main ()
34985{
34986
34987 pthread_mutexattr_t attr;
34988 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
34989
34990 ;
34991 return 0;
34992}
34993_ACEOF
34994rm -f conftest.$ac_objext
34995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34996 (eval $ac_compile) 2>conftest.er1
a848cd7e 34997 ac_status=$?
ac1cb8d3
VS
34998 grep -v '^ *+' conftest.er1 >conftest.err
34999 rm -f conftest.er1
35000 cat conftest.err >&5
a848cd7e
SC
35001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002 (exit $ac_status); } &&
9dd0f6c2 35003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35005 (eval $ac_try) 2>&5
35006 ac_status=$?
35007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35008 (exit $ac_status); }; } &&
35009 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35011 (eval $ac_try) 2>&5
35012 ac_status=$?
35013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35014 (exit $ac_status); }; }; then
35015
35016 wx_cv_type_pthread_mutexattr_t=yes
35017
35018else
35019 echo "$as_me: failed program was:" >&5
35020sed 's/^/| /' conftest.$ac_ext >&5
35021
35022
35023 wx_cv_type_pthread_mutexattr_t=no
35024
35025
35026fi
ac1cb8d3 35027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35028
35029fi
35030echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
35031echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
35032
35033 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
35034 cat >>confdefs.h <<\_ACEOF
35035#define HAVE_PTHREAD_MUTEXATTR_T 1
35036_ACEOF
35037
35038 else
35039 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
35040echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
35041if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
35042 echo $ECHO_N "(cached) $ECHO_C" >&6
35043else
35044
35045 cat >conftest.$ac_ext <<_ACEOF
35046/* confdefs.h. */
35047_ACEOF
35048cat confdefs.h >>conftest.$ac_ext
35049cat >>conftest.$ac_ext <<_ACEOF
35050/* end confdefs.h. */
35051#include <pthread.h>
35052int
35053main ()
35054{
35055
35056 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
35057
35058 ;
35059 return 0;
35060}
35061_ACEOF
35062rm -f conftest.$ac_objext
35063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35064 (eval $ac_compile) 2>conftest.er1
a848cd7e 35065 ac_status=$?
ac1cb8d3
VS
35066 grep -v '^ *+' conftest.er1 >conftest.err
35067 rm -f conftest.er1
35068 cat conftest.err >&5
a848cd7e
SC
35069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35070 (exit $ac_status); } &&
9dd0f6c2 35071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35073 (eval $ac_try) 2>&5
35074 ac_status=$?
35075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35076 (exit $ac_status); }; } &&
35077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35079 (eval $ac_try) 2>&5
35080 ac_status=$?
35081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35082 (exit $ac_status); }; }; then
35083
35084 wx_cv_type_pthread_rec_mutex_init=yes
35085
35086else
35087 echo "$as_me: failed program was:" >&5
35088sed 's/^/| /' conftest.$ac_ext >&5
35089
35090
35091 wx_cv_type_pthread_rec_mutex_init=no
35092
35093
35094fi
ac1cb8d3 35095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35096
35097fi
35098echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
35099echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
35100 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
35101 cat >>confdefs.h <<\_ACEOF
35102#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
35103_ACEOF
35104
35105 else
35106 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
35107echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
35108 fi
35109 fi
35110 fi
35111
35112else
35113 if test "$wxUSE_THREADS" = "yes" ; then
35114 case "${host}" in
35115 *-*-mingw32* )
35116 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
35117echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
35118if test "${wx_cv_cflags_mthread+set}" = set; then
35119 echo $ECHO_N "(cached) $ECHO_C" >&6
35120else
35121
35122 CFLAGS_OLD="$CFLAGS"
35123 CFLAGS="$CFLAGS -mthreads"
35124 cat >conftest.$ac_ext <<_ACEOF
35125/* confdefs.h. */
35126_ACEOF
35127cat confdefs.h >>conftest.$ac_ext
35128cat >>conftest.$ac_ext <<_ACEOF
35129/* end confdefs.h. */
35130
35131int
35132main ()
35133{
35134
35135 ;
35136 return 0;
35137}
35138_ACEOF
35139rm -f conftest.$ac_objext
35140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35141 (eval $ac_compile) 2>conftest.er1
a848cd7e 35142 ac_status=$?
ac1cb8d3
VS
35143 grep -v '^ *+' conftest.er1 >conftest.err
35144 rm -f conftest.er1
35145 cat conftest.err >&5
a848cd7e
SC
35146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35147 (exit $ac_status); } &&
9dd0f6c2 35148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35150 (eval $ac_try) 2>&5
35151 ac_status=$?
35152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35153 (exit $ac_status); }; } &&
35154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35156 (eval $ac_try) 2>&5
35157 ac_status=$?
35158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35159 (exit $ac_status); }; }; then
35160 wx_cv_cflags_mthread=yes
35161else
35162 echo "$as_me: failed program was:" >&5
35163sed 's/^/| /' conftest.$ac_ext >&5
35164
35165wx_cv_cflags_mthread=no
35166
35167fi
ac1cb8d3 35168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35169
35170
35171fi
35172echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
35173echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
35174
35175 if test "$wx_cv_cflags_mthread" = "yes"; then
35176 CXXFLAGS="$CXXFLAGS -mthreads"
35177 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
35178 LDFLAGS="$LDFLAGS -mthreads"
35179 else
35180 CFLAGS="$CFLAGS_OLD"
35181 fi
35182 ;;
35183 *-pc-os2*emx )
35184 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
35185 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
35186 LDFLAGS="$LDFLAGS -Zmt"
35187 ;;
35188 esac
35189 fi
35190fi
35191
35192if test "$wxUSE_THREADS" = "yes"; then
35193 cat >>confdefs.h <<\_ACEOF
35194#define wxUSE_THREADS 1
35195_ACEOF
35196
35197
35198 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
35199else
35200 if test "$ac_cv_func_strtok_r" = "yes"; then
35201 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
35202echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
35203 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
35204 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35205 echo "$as_me:$LINENO: result: yes" >&5
35206echo "${ECHO_T}yes" >&6
35207 else
35208 echo "$as_me:$LINENO: result: no" >&5
35209echo "${ECHO_T}no" >&6
35210 fi
35211 fi
35212fi
35213
35214if test "$WXGTK20" = 1 ; then
35215 cat >>confdefs.h <<_ACEOF
35216#define __WXGTK20__ $WXGTK20
35217_ACEOF
35218
35219 WXGTK12=1
35220fi
35221
35222if test "$WXGTK12" = 1 ; then
35223 cat >>confdefs.h <<_ACEOF
35224#define __WXGTK12__ $WXGTK12
35225_ACEOF
35226
35227fi
35228
35229if test "$WXGTK127" = 1 ; then
35230 cat >>confdefs.h <<_ACEOF
35231#define __WXGTK127__ $WXGTK127
35232_ACEOF
35233
35234fi
35235
35236if test "$WXGPE" = 1 ; then
35237 cat >>confdefs.h <<_ACEOF
35238#define __WXGPE__ $WXGPE
35239_ACEOF
35240
35241fi
35242
35243WXDEBUG=
35244
35245if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35246 WXDEBUG="-g"
35247 wxUSE_OPTIMISE=no
35248fi
35249
35250if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35251 wxUSE_DEBUG_INFO=yes
35252 WXDEBUG="-ggdb"
35253fi
35254
35255if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35256 cat >>confdefs.h <<\_ACEOF
35257#define WXDEBUG 1
35258_ACEOF
35259
35260 WXDEBUG_DEFINE="-D__WXDEBUG__"
35261else
35262 if test "$wxUSE_GTK" = 1 ; then
35263 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35264 fi
35265fi
35266
35267if test "$wxUSE_MEM_TRACING" = "yes" ; then
35268 cat >>confdefs.h <<\_ACEOF
35269#define wxUSE_MEMORY_TRACING 1
35270_ACEOF
35271
35272 cat >>confdefs.h <<\_ACEOF
35273#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35274_ACEOF
35275
35276 cat >>confdefs.h <<\_ACEOF
35277#define wxUSE_DEBUG_NEW_ALWAYS 1
35278_ACEOF
35279
35280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35281fi
35282
35283if test "$wxUSE_DMALLOC" = "yes" ; then
35284 DMALLOC_LIBS="-ldmalloc"
35285fi
35286
35287PROFILE=
35288if test "$wxUSE_PROFILE" = "yes" ; then
35289 PROFILE=" -pg"
35290fi
35291
35292CODE_GEN_FLAGS=
35293CODE_GEN_FLAGS_CXX=
35294if test "$GCC" = "yes" ; then
35295 if test "$wxUSE_NO_RTTI" = "yes" ; then
35296 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35297 fi
35298 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35299 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35300 fi
35301 if test "$wxUSE_PERMISSIVE" = "yes" ; then
35302 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35303 fi
35304
35305 case "${host}" in
35306 powerpc*-*-aix* )
35307 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35308 ;;
35309 *-hppa* )
35310 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35311 ;;
35312 esac
35313fi
35314
35315OPTIMISE=
35316if test "$wxUSE_OPTIMISE" = "no" ; then
35317 if test "$GCC" = yes ; then
35318 OPTIMISE="-O0"
35319 fi
35320else
35321 if test "$GCC" = yes ; then
35322 OPTIMISE="-O2"
35323
35324 case "${host}" in
35325 i586-*-*|i686-*-* )
35326 OPTIMISE="${OPTIMISE} "
35327 ;;
35328 esac
35329 else
35330 OPTIMISE="-O"
35331 fi
35332fi
35333
35334
35335if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35336 cat >>confdefs.h <<\_ACEOF
35337#define WXWIN_COMPATIBILITY_2_2 1
35338_ACEOF
35339
35340
35341 WXWIN_COMPATIBILITY_2_4="yes"
35342fi
35343
35344if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35345 cat >>confdefs.h <<\_ACEOF
35346#define WXWIN_COMPATIBILITY_2_4 1
35347_ACEOF
35348
35349fi
35350
35351
35352if test "$wxUSE_GUI" = "yes"; then
881bfcd6 35353 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35354#define wxUSE_GUI 1
35355_ACEOF
35356
35357
370fd4c2 35358 fi
a848cd7e
SC
35359
35360
35361if test "$wxUSE_UNIX" = "yes"; then
35362 cat >>confdefs.h <<\_ACEOF
35363#define wxUSE_UNIX 1
35364_ACEOF
35365
35366fi
35367
35368
35369if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35370
35371 HAVE_DL_FUNCS=0
35372 HAVE_SHL_FUNCS=0
35373 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35374 if test "$USE_DARWIN" = 1; then
35375 HAVE_DL_FUNCS=1
35376 else
35377
35378for ac_func in dlopen
35379do
35380as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35381echo "$as_me:$LINENO: checking for $ac_func" >&5
35382echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35383if eval "test \"\${$as_ac_var+set}\" = set"; then
35384 echo $ECHO_N "(cached) $ECHO_C" >&6
35385else
35386 cat >conftest.$ac_ext <<_ACEOF
35387/* confdefs.h. */
35388_ACEOF
35389cat confdefs.h >>conftest.$ac_ext
35390cat >>conftest.$ac_ext <<_ACEOF
35391/* end confdefs.h. */
ac1cb8d3
VS
35392/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35394#define $ac_func innocuous_$ac_func
35395
a848cd7e
SC
35396/* System header to define __stub macros and hopefully few prototypes,
35397 which can conflict with char $ac_func (); below.
35398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35399 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35400
a848cd7e
SC
35401#ifdef __STDC__
35402# include <limits.h>
35403#else
35404# include <assert.h>
35405#endif
ac1cb8d3
VS
35406
35407#undef $ac_func
35408
a848cd7e
SC
35409/* Override any gcc2 internal prototype to avoid an error. */
35410#ifdef __cplusplus
35411extern "C"
35412{
35413#endif
35414/* We use char because int might match the return type of a gcc2
35415 builtin and then its argument prototype would still apply. */
35416char $ac_func ();
35417/* The GNU C library defines this for functions which it implements
35418 to always fail with ENOSYS. Some functions are actually named
35419 something starting with __ and the normal name is an alias. */
35420#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35421choke me
35422#else
35423char (*f) () = $ac_func;
35424#endif
35425#ifdef __cplusplus
35426}
35427#endif
35428
35429int
35430main ()
35431{
35432return f != $ac_func;
35433 ;
35434 return 0;
35435}
35436_ACEOF
35437rm -f conftest.$ac_objext conftest$ac_exeext
35438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35439 (eval $ac_link) 2>conftest.er1
a848cd7e 35440 ac_status=$?
ac1cb8d3
VS
35441 grep -v '^ *+' conftest.er1 >conftest.err
35442 rm -f conftest.er1
35443 cat conftest.err >&5
a848cd7e
SC
35444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35445 (exit $ac_status); } &&
9dd0f6c2 35446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35448 (eval $ac_try) 2>&5
35449 ac_status=$?
35450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35451 (exit $ac_status); }; } &&
35452 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35454 (eval $ac_try) 2>&5
35455 ac_status=$?
35456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35457 (exit $ac_status); }; }; then
35458 eval "$as_ac_var=yes"
35459else
35460 echo "$as_me: failed program was:" >&5
35461sed 's/^/| /' conftest.$ac_ext >&5
35462
35463eval "$as_ac_var=no"
35464fi
ac1cb8d3
VS
35465rm -f conftest.err conftest.$ac_objext \
35466 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35467fi
35468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35469echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35470if test `eval echo '${'$as_ac_var'}'` = yes; then
35471 cat >>confdefs.h <<_ACEOF
35472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35473_ACEOF
35474
35475 cat >>confdefs.h <<\_ACEOF
35476#define HAVE_DLOPEN 1
35477_ACEOF
35478
35479 HAVE_DL_FUNCS=1
35480
35481else
35482
35483 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35484echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35485if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35486 echo $ECHO_N "(cached) $ECHO_C" >&6
35487else
35488 ac_check_lib_save_LIBS=$LIBS
35489LIBS="-ldl $LIBS"
35490cat >conftest.$ac_ext <<_ACEOF
35491/* confdefs.h. */
35492_ACEOF
35493cat confdefs.h >>conftest.$ac_ext
35494cat >>conftest.$ac_ext <<_ACEOF
35495/* end confdefs.h. */
35496
35497/* Override any gcc2 internal prototype to avoid an error. */
35498#ifdef __cplusplus
35499extern "C"
35500#endif
35501/* We use char because int might match the return type of a gcc2
35502 builtin and then its argument prototype would still apply. */
35503char dlopen ();
35504int
35505main ()
35506{
35507dlopen ();
35508 ;
35509 return 0;
35510}
35511_ACEOF
35512rm -f conftest.$ac_objext conftest$ac_exeext
35513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35514 (eval $ac_link) 2>conftest.er1
a848cd7e 35515 ac_status=$?
ac1cb8d3
VS
35516 grep -v '^ *+' conftest.er1 >conftest.err
35517 rm -f conftest.er1
35518 cat conftest.err >&5
a848cd7e
SC
35519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520 (exit $ac_status); } &&
9dd0f6c2 35521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35523 (eval $ac_try) 2>&5
35524 ac_status=$?
35525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526 (exit $ac_status); }; } &&
35527 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35529 (eval $ac_try) 2>&5
35530 ac_status=$?
35531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35532 (exit $ac_status); }; }; then
35533 ac_cv_lib_dl_dlopen=yes
35534else
35535 echo "$as_me: failed program was:" >&5
35536sed 's/^/| /' conftest.$ac_ext >&5
35537
35538ac_cv_lib_dl_dlopen=no
35539fi
ac1cb8d3
VS
35540rm -f conftest.err conftest.$ac_objext \
35541 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35542LIBS=$ac_check_lib_save_LIBS
35543fi
35544echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
35545echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
35546if test $ac_cv_lib_dl_dlopen = yes; then
35547
35548 cat >>confdefs.h <<\_ACEOF
35549#define HAVE_DLOPEN 1
35550_ACEOF
35551
35552 HAVE_DL_FUNCS=1
35553 DL_LINK=" -ldl$DL_LINK"
35554
35555else
35556
35557
35558for ac_func in shl_load
35559do
35560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35561echo "$as_me:$LINENO: checking for $ac_func" >&5
35562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35563if eval "test \"\${$as_ac_var+set}\" = set"; then
35564 echo $ECHO_N "(cached) $ECHO_C" >&6
35565else
35566 cat >conftest.$ac_ext <<_ACEOF
35567/* confdefs.h. */
35568_ACEOF
35569cat confdefs.h >>conftest.$ac_ext
35570cat >>conftest.$ac_ext <<_ACEOF
35571/* end confdefs.h. */
ac1cb8d3
VS
35572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35574#define $ac_func innocuous_$ac_func
35575
a848cd7e
SC
35576/* System header to define __stub macros and hopefully few prototypes,
35577 which can conflict with char $ac_func (); below.
35578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35579 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35580
a848cd7e
SC
35581#ifdef __STDC__
35582# include <limits.h>
35583#else
35584# include <assert.h>
35585#endif
ac1cb8d3
VS
35586
35587#undef $ac_func
35588
a848cd7e
SC
35589/* Override any gcc2 internal prototype to avoid an error. */
35590#ifdef __cplusplus
35591extern "C"
35592{
35593#endif
35594/* We use char because int might match the return type of a gcc2
35595 builtin and then its argument prototype would still apply. */
35596char $ac_func ();
35597/* The GNU C library defines this for functions which it implements
35598 to always fail with ENOSYS. Some functions are actually named
35599 something starting with __ and the normal name is an alias. */
35600#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35601choke me
35602#else
35603char (*f) () = $ac_func;
35604#endif
35605#ifdef __cplusplus
35606}
35607#endif
35608
35609int
35610main ()
35611{
35612return f != $ac_func;
35613 ;
35614 return 0;
35615}
35616_ACEOF
35617rm -f conftest.$ac_objext conftest$ac_exeext
35618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35619 (eval $ac_link) 2>conftest.er1
a848cd7e 35620 ac_status=$?
ac1cb8d3
VS
35621 grep -v '^ *+' conftest.er1 >conftest.err
35622 rm -f conftest.er1
35623 cat conftest.err >&5
a848cd7e
SC
35624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625 (exit $ac_status); } &&
9dd0f6c2 35626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35628 (eval $ac_try) 2>&5
35629 ac_status=$?
35630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35631 (exit $ac_status); }; } &&
35632 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35634 (eval $ac_try) 2>&5
35635 ac_status=$?
35636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35637 (exit $ac_status); }; }; then
35638 eval "$as_ac_var=yes"
35639else
35640 echo "$as_me: failed program was:" >&5
35641sed 's/^/| /' conftest.$ac_ext >&5
35642
35643eval "$as_ac_var=no"
35644fi
ac1cb8d3
VS
35645rm -f conftest.err conftest.$ac_objext \
35646 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35647fi
35648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35650if test `eval echo '${'$as_ac_var'}'` = yes; then
35651 cat >>confdefs.h <<_ACEOF
35652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35653_ACEOF
35654
35655 cat >>confdefs.h <<\_ACEOF
35656#define HAVE_SHL_LOAD 1
35657_ACEOF
35658
35659 HAVE_SHL_FUNCS=1
35660
35661else
35662
35663 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
35664echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
35665if test "${ac_cv_lib_shl_load_dld+set}" = set; then
35666 echo $ECHO_N "(cached) $ECHO_C" >&6
35667else
35668 ac_check_lib_save_LIBS=$LIBS
35669LIBS="-lshl_load $LIBS"
35670cat >conftest.$ac_ext <<_ACEOF
35671/* confdefs.h. */
35672_ACEOF
35673cat confdefs.h >>conftest.$ac_ext
35674cat >>conftest.$ac_ext <<_ACEOF
35675/* end confdefs.h. */
35676
35677/* Override any gcc2 internal prototype to avoid an error. */
35678#ifdef __cplusplus
35679extern "C"
35680#endif
35681/* We use char because int might match the return type of a gcc2
35682 builtin and then its argument prototype would still apply. */
35683char dld ();
35684int
35685main ()
35686{
35687dld ();
35688 ;
35689 return 0;
35690}
35691_ACEOF
35692rm -f conftest.$ac_objext conftest$ac_exeext
35693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35694 (eval $ac_link) 2>conftest.er1
a848cd7e 35695 ac_status=$?
ac1cb8d3
VS
35696 grep -v '^ *+' conftest.er1 >conftest.err
35697 rm -f conftest.er1
35698 cat conftest.err >&5
a848cd7e
SC
35699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35700 (exit $ac_status); } &&
9dd0f6c2 35701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35703 (eval $ac_try) 2>&5
35704 ac_status=$?
35705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35706 (exit $ac_status); }; } &&
35707 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35709 (eval $ac_try) 2>&5
35710 ac_status=$?
35711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712 (exit $ac_status); }; }; then
35713 ac_cv_lib_shl_load_dld=yes
35714else
35715 echo "$as_me: failed program was:" >&5
35716sed 's/^/| /' conftest.$ac_ext >&5
35717
35718ac_cv_lib_shl_load_dld=no
35719fi
ac1cb8d3
VS
35720rm -f conftest.err conftest.$ac_objext \
35721 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35722LIBS=$ac_check_lib_save_LIBS
35723fi
35724echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
35725echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
35726if test $ac_cv_lib_shl_load_dld = yes; then
35727
35728 HAVE_SHL_FUNCS=1
35729 DL_LINK=" -ldld$DL_LINK"
35730
35731fi
35732
35733
35734fi
35735done
35736
35737
35738fi
35739
35740
35741fi
35742done
35743
35744
35745 if test "$HAVE_DL_FUNCS" = 1; then
35746
35747for ac_func in dlerror
35748do
35749as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35750echo "$as_me:$LINENO: checking for $ac_func" >&5
35751echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35752if eval "test \"\${$as_ac_var+set}\" = set"; then
35753 echo $ECHO_N "(cached) $ECHO_C" >&6
35754else
35755 cat >conftest.$ac_ext <<_ACEOF
35756/* confdefs.h. */
35757_ACEOF
35758cat confdefs.h >>conftest.$ac_ext
35759cat >>conftest.$ac_ext <<_ACEOF
35760/* end confdefs.h. */
ac1cb8d3
VS
35761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35763#define $ac_func innocuous_$ac_func
35764
a848cd7e
SC
35765/* System header to define __stub macros and hopefully few prototypes,
35766 which can conflict with char $ac_func (); below.
35767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35768 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35769
a848cd7e
SC
35770#ifdef __STDC__
35771# include <limits.h>
35772#else
35773# include <assert.h>
35774#endif
ac1cb8d3
VS
35775
35776#undef $ac_func
35777
a848cd7e
SC
35778/* Override any gcc2 internal prototype to avoid an error. */
35779#ifdef __cplusplus
35780extern "C"
35781{
35782#endif
35783/* We use char because int might match the return type of a gcc2
35784 builtin and then its argument prototype would still apply. */
35785char $ac_func ();
35786/* The GNU C library defines this for functions which it implements
35787 to always fail with ENOSYS. Some functions are actually named
35788 something starting with __ and the normal name is an alias. */
35789#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35790choke me
35791#else
35792char (*f) () = $ac_func;
35793#endif
35794#ifdef __cplusplus
35795}
35796#endif
35797
35798int
35799main ()
35800{
35801return f != $ac_func;
35802 ;
35803 return 0;
35804}
35805_ACEOF
35806rm -f conftest.$ac_objext conftest$ac_exeext
35807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35808 (eval $ac_link) 2>conftest.er1
a848cd7e 35809 ac_status=$?
ac1cb8d3
VS
35810 grep -v '^ *+' conftest.er1 >conftest.err
35811 rm -f conftest.er1
35812 cat conftest.err >&5
a848cd7e
SC
35813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35814 (exit $ac_status); } &&
9dd0f6c2 35815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35817 (eval $ac_try) 2>&5
35818 ac_status=$?
35819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35820 (exit $ac_status); }; } &&
35821 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35823 (eval $ac_try) 2>&5
35824 ac_status=$?
35825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35826 (exit $ac_status); }; }; then
35827 eval "$as_ac_var=yes"
35828else
35829 echo "$as_me: failed program was:" >&5
35830sed 's/^/| /' conftest.$ac_ext >&5
35831
35832eval "$as_ac_var=no"
35833fi
ac1cb8d3
VS
35834rm -f conftest.err conftest.$ac_objext \
35835 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35836fi
35837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35838echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35839if test `eval echo '${'$as_ac_var'}'` = yes; then
35840 cat >>confdefs.h <<_ACEOF
35841#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35842_ACEOF
35843 cat >>confdefs.h <<\_ACEOF
35844#define HAVE_DLERROR 1
35845_ACEOF
35846
35847else
35848
35849 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
35850echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
35851if test "${ac_cv_lib_dl_dlerror+set}" = set; then
35852 echo $ECHO_N "(cached) $ECHO_C" >&6
35853else
35854 ac_check_lib_save_LIBS=$LIBS
35855LIBS="-ldl $LIBS"
35856cat >conftest.$ac_ext <<_ACEOF
35857/* confdefs.h. */
35858_ACEOF
35859cat confdefs.h >>conftest.$ac_ext
35860cat >>conftest.$ac_ext <<_ACEOF
35861/* end confdefs.h. */
35862
35863/* Override any gcc2 internal prototype to avoid an error. */
35864#ifdef __cplusplus
35865extern "C"
35866#endif
35867/* We use char because int might match the return type of a gcc2
35868 builtin and then its argument prototype would still apply. */
35869char dlerror ();
35870int
35871main ()
35872{
35873dlerror ();
35874 ;
35875 return 0;
35876}
35877_ACEOF
35878rm -f conftest.$ac_objext conftest$ac_exeext
35879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35880 (eval $ac_link) 2>conftest.er1
a848cd7e 35881 ac_status=$?
ac1cb8d3
VS
35882 grep -v '^ *+' conftest.er1 >conftest.err
35883 rm -f conftest.er1
35884 cat conftest.err >&5
a848cd7e
SC
35885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886 (exit $ac_status); } &&
9dd0f6c2 35887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35889 (eval $ac_try) 2>&5
35890 ac_status=$?
35891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35892 (exit $ac_status); }; } &&
35893 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35895 (eval $ac_try) 2>&5
35896 ac_status=$?
35897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35898 (exit $ac_status); }; }; then
35899 ac_cv_lib_dl_dlerror=yes
35900else
35901 echo "$as_me: failed program was:" >&5
35902sed 's/^/| /' conftest.$ac_ext >&5
35903
35904ac_cv_lib_dl_dlerror=no
35905fi
ac1cb8d3
VS
35906rm -f conftest.err conftest.$ac_objext \
35907 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35908LIBS=$ac_check_lib_save_LIBS
35909fi
35910echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
35911echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
35912if test $ac_cv_lib_dl_dlerror = yes; then
35913 cat >>confdefs.h <<\_ACEOF
35914#define HAVE_DLERROR 1
35915_ACEOF
35916
35917fi
35918
35919
35920
35921fi
35922done
35923
35924 fi
35925 fi
35926
35927 if test "$HAVE_DL_FUNCS" = 0; then
35928 if test "$HAVE_SHL_FUNCS" = 0; then
35929 if test "$USE_UNIX" = 1; then
35930 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
35931echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
35932 wxUSE_DYNAMIC_LOADER=no
35933 wxUSE_DYNLIB_CLASS=no
35934 else
35935 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
35936echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
35937 fi
35938 fi
35939 fi
35940 fi
35941fi
35942
35943if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
35944 cat >>confdefs.h <<\_ACEOF
35945#define wxUSE_DYNAMIC_LOADER 1
35946_ACEOF
35947
35948fi
35949if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35950 cat >>confdefs.h <<\_ACEOF
35951#define wxUSE_DYNLIB_CLASS 1
35952_ACEOF
35953
35954fi
35955
35956
35957
35958if test "$wxUSE_PLUGINS" = "yes" ; then
35959 if test "$wxUSE_SHARED" = "no" ; then
35960 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
35961echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
35962 wxUSE_PLUGINS=no
35963 fi
35964 if test "$wxUSE_MONOLITHIC" = "yes" ; then
35965 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
35966echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
35967 wxUSE_PLUGINS=no
35968 fi
35969 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
35970 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
35971echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
35972 wxUSE_PLUGINS=no
35973 fi
35974 if test "$wxUSE_PLUGINS" = "yes" ; then
35975 cat >>confdefs.h <<\_ACEOF
35976#define wxUSE_PLUGINS 1
35977_ACEOF
35978
35979 fi
35980fi
35981
35982
35983if test "$wxUSE_STL" = "yes"; then
35984 cat >>confdefs.h <<\_ACEOF
35985#define wxUSE_STL 1
35986_ACEOF
35987
35988fi
35989
35990if test "$wxUSE_APPLE_IEEE" = "yes"; then
35991 cat >>confdefs.h <<\_ACEOF
35992#define wxUSE_APPLE_IEEE 1
35993_ACEOF
35994
35995fi
35996
35997if test "$wxUSE_TIMER" = "yes"; then
35998 cat >>confdefs.h <<\_ACEOF
35999#define wxUSE_TIMER 1
36000_ACEOF
36001
36002fi
36003
36004WITH_PLUGIN_SDL=0
36005if test "$wxUSE_SOUND" = "yes"; then
36006 if test "$USE_UNIX" = "1" ; then
36007
36008for ac_header in sys/soundcard.h
36009do
36010as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36011if eval "test \"\${$as_ac_Header+set}\" = set"; then
36012 echo "$as_me:$LINENO: checking for $ac_header" >&5
36013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36014if eval "test \"\${$as_ac_Header+set}\" = set"; then
36015 echo $ECHO_N "(cached) $ECHO_C" >&6
36016fi
36017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36018echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36019else
36020 # Is the header compilable?
36021echo "$as_me:$LINENO: checking $ac_header usability" >&5
36022echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36023cat >conftest.$ac_ext <<_ACEOF
36024/* confdefs.h. */
36025_ACEOF
36026cat confdefs.h >>conftest.$ac_ext
36027cat >>conftest.$ac_ext <<_ACEOF
36028/* end confdefs.h. */
36029$ac_includes_default
36030#include <$ac_header>
36031_ACEOF
36032rm -f conftest.$ac_objext
36033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36034 (eval $ac_compile) 2>conftest.er1
a848cd7e 36035 ac_status=$?
ac1cb8d3
VS
36036 grep -v '^ *+' conftest.er1 >conftest.err
36037 rm -f conftest.er1
36038 cat conftest.err >&5
a848cd7e
SC
36039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36040 (exit $ac_status); } &&
9dd0f6c2 36041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36043 (eval $ac_try) 2>&5
36044 ac_status=$?
36045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36046 (exit $ac_status); }; } &&
36047 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36049 (eval $ac_try) 2>&5
36050 ac_status=$?
36051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36052 (exit $ac_status); }; }; then
36053 ac_header_compiler=yes
36054else
36055 echo "$as_me: failed program was:" >&5
36056sed 's/^/| /' conftest.$ac_ext >&5
36057
36058ac_header_compiler=no
36059fi
ac1cb8d3 36060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36061echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36062echo "${ECHO_T}$ac_header_compiler" >&6
36063
36064# Is the header present?
36065echo "$as_me:$LINENO: checking $ac_header presence" >&5
36066echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36067cat >conftest.$ac_ext <<_ACEOF
36068/* confdefs.h. */
36069_ACEOF
36070cat confdefs.h >>conftest.$ac_ext
36071cat >>conftest.$ac_ext <<_ACEOF
36072/* end confdefs.h. */
36073#include <$ac_header>
36074_ACEOF
36075if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36077 ac_status=$?
36078 grep -v '^ *+' conftest.er1 >conftest.err
36079 rm -f conftest.er1
36080 cat conftest.err >&5
36081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36082 (exit $ac_status); } >/dev/null; then
36083 if test -s conftest.err; then
36084 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36086 else
36087 ac_cpp_err=
36088 fi
36089else
36090 ac_cpp_err=yes
36091fi
36092if test -z "$ac_cpp_err"; then
36093 ac_header_preproc=yes
36094else
36095 echo "$as_me: failed program was:" >&5
36096sed 's/^/| /' conftest.$ac_ext >&5
36097
36098 ac_header_preproc=no
36099fi
36100rm -f conftest.err conftest.$ac_ext
36101echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36102echo "${ECHO_T}$ac_header_preproc" >&6
36103
36104# So? What about this header?
ac1cb8d3
VS
36105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36106 yes:no: )
a848cd7e
SC
36107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36108echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36110echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36111 ac_header_preproc=yes
a848cd7e 36112 ;;
ac1cb8d3 36113 no:yes:* )
a848cd7e
SC
36114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36115echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36117echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36119echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36121echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36123echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36125echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36126 (
36127 cat <<\_ASBOX
ac1cb8d3
VS
36128## ----------------------------------------- ##
36129## Report this to wx-dev@lists.wxwidgets.org ##
36130## ----------------------------------------- ##
a848cd7e
SC
36131_ASBOX
36132 ) |
36133 sed "s/^/$as_me: WARNING: /" >&2
36134 ;;
36135esac
36136echo "$as_me:$LINENO: checking for $ac_header" >&5
36137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36138if eval "test \"\${$as_ac_Header+set}\" = set"; then
36139 echo $ECHO_N "(cached) $ECHO_C" >&6
36140else
ac1cb8d3 36141 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36142fi
36143echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36144echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36145
36146fi
36147if test `eval echo '${'$as_ac_Header'}'` = yes; then
36148 cat >>confdefs.h <<_ACEOF
36149#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36150_ACEOF
36151
36152fi
36153
36154done
36155
36156
36157 if test "$wxUSE_LIBSDL" != "no"; then
36158
36159# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
36160if test "${with_sdl_prefix+set}" = set; then
36161 withval="$with_sdl_prefix"
36162 sdl_prefix="$withval"
36163else
36164 sdl_prefix=""
36165fi;
36166
36167# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
36168if test "${with_sdl_exec_prefix+set}" = set; then
36169 withval="$with_sdl_exec_prefix"
36170 sdl_exec_prefix="$withval"
36171else
36172 sdl_exec_prefix=""
36173fi;
36174# Check whether --enable-sdltest or --disable-sdltest was given.
36175if test "${enable_sdltest+set}" = set; then
36176 enableval="$enable_sdltest"
36177
36178else
36179 enable_sdltest=yes
36180fi;
36181
36182 if test x$sdl_exec_prefix != x ; then
36183 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
36184 if test x${SDL_CONFIG+set} != xset ; then
36185 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
36186 fi
36187 fi
36188 if test x$sdl_prefix != x ; then
36189 sdl_args="$sdl_args --prefix=$sdl_prefix"
36190 if test x${SDL_CONFIG+set} != xset ; then
36191 SDL_CONFIG=$sdl_prefix/bin/sdl-config
36192 fi
36193 fi
36194
36195
36196 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
36197 # Extract the first word of "sdl-config", so it can be a program name with args.
36198set dummy sdl-config; ac_word=$2
36199echo "$as_me:$LINENO: checking for $ac_word" >&5
36200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36201if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
36202 echo $ECHO_N "(cached) $ECHO_C" >&6
36203else
36204 case $SDL_CONFIG in
36205 [\\/]* | ?:[\\/]*)
36206 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36207 ;;
36208 *)
36209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36210for as_dir in $PATH
36211do
36212 IFS=$as_save_IFS
36213 test -z "$as_dir" && as_dir=.
36214 for ac_exec_ext in '' $ac_executable_extensions; do
36215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36216 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36218 break 2
36219 fi
36220done
36221done
36222
36223 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36224 ;;
36225esac
36226fi
36227SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36228
36229if test -n "$SDL_CONFIG"; then
36230 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36231echo "${ECHO_T}$SDL_CONFIG" >&6
36232else
36233 echo "$as_me:$LINENO: result: no" >&5
36234echo "${ECHO_T}no" >&6
36235fi
36236
36237 min_sdl_version=1.2.0
36238 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36239echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36240 no_sdl=""
36241 if test "$SDL_CONFIG" = "no" ; then
36242 no_sdl=yes
36243 else
36244 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36245 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36246
36247 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36248 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36249 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36250 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36251 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36252 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36253 if test "x$enable_sdltest" = "xyes" ; then
36254 ac_save_CFLAGS="$CFLAGS"
94acd38e 36255 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
36256 ac_save_LIBS="$LIBS"
36257 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36258 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36259 LIBS="$LIBS $SDL_LIBS"
36260 rm -f conf.sdltest
36261 if test "$cross_compiling" = yes; then
36262 echo $ac_n "cross compiling; assumed OK... $ac_c"
36263else
36264 cat >conftest.$ac_ext <<_ACEOF
36265/* confdefs.h. */
36266_ACEOF
36267cat confdefs.h >>conftest.$ac_ext
36268cat >>conftest.$ac_ext <<_ACEOF
36269/* end confdefs.h. */
36270
36271#include <stdio.h>
36272#include <stdlib.h>
36273#include <string.h>
36274#include "SDL.h"
36275
36276char*
36277my_strdup (char *str)
36278{
36279 char *new_str;
36280
36281 if (str)
36282 {
36283 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36284 strcpy (new_str, str);
36285 }
36286 else
36287 new_str = NULL;
36288
36289 return new_str;
36290}
36291
36292int main (int argc, char *argv[])
36293{
36294 int major, minor, micro;
36295 char *tmp_version;
36296
36297 /* This hangs on some systems (?)
36298 system ("touch conf.sdltest");
36299 */
36300 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36301
36302 /* HP/UX 9 (%@#!) writes to sscanf strings */
36303 tmp_version = my_strdup("$min_sdl_version");
36304 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36305 printf("%s, bad version string\n", "$min_sdl_version");
36306 exit(1);
36307 }
36308
36309 if (($sdl_major_version > major) ||
36310 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36311 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36312 {
36313 return 0;
36314 }
36315 else
36316 {
36317 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36318 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36319 printf("*** best to upgrade to the required version.\n");
36320 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36321 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36322 printf("*** config.cache before re-running configure\n");
36323 return 1;
36324 }
36325}
36326
36327
36328_ACEOF
36329rm -f conftest$ac_exeext
36330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36331 (eval $ac_link) 2>&5
36332 ac_status=$?
36333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36336 (eval $ac_try) 2>&5
36337 ac_status=$?
36338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36339 (exit $ac_status); }; }; then
36340 :
36341else
36342 echo "$as_me: program exited with status $ac_status" >&5
36343echo "$as_me: failed program was:" >&5
36344sed 's/^/| /' conftest.$ac_ext >&5
36345
36346( exit $ac_status )
36347no_sdl=yes
36348fi
ac1cb8d3 36349rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36350fi
36351 CFLAGS="$ac_save_CFLAGS"
94acd38e 36352 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36353 LIBS="$ac_save_LIBS"
36354 fi
36355 fi
36356 if test "x$no_sdl" = x ; then
36357 echo "$as_me:$LINENO: result: yes" >&5
36358echo "${ECHO_T}yes" >&6
36359
36360 EXTRALIBS_SDL="$SDL_LIBS"
36361 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36362 cat >>confdefs.h <<\_ACEOF
36363#define wxUSE_LIBSDL 1
36364_ACEOF
36365
36366
36367 else
36368 echo "$as_me:$LINENO: result: no" >&5
36369echo "${ECHO_T}no" >&6
36370 if test "$SDL_CONFIG" = "no" ; then
36371 echo "*** The sdl-config script installed by SDL could not be found"
36372 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36373 echo "*** your path, or set the SDL_CONFIG environment variable to the"
36374 echo "*** full path to sdl-config."
36375 else
36376 if test -f conf.sdltest ; then
36377 :
36378 else
36379 echo "*** Could not run SDL test program, checking why..."
36380 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36381 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36382 LIBS="$LIBS $SDL_LIBS"
36383 cat >conftest.$ac_ext <<_ACEOF
36384/* confdefs.h. */
36385_ACEOF
36386cat confdefs.h >>conftest.$ac_ext
36387cat >>conftest.$ac_ext <<_ACEOF
36388/* end confdefs.h. */
36389
36390#include <stdio.h>
36391#include "SDL.h"
36392
36393int main(int argc, char *argv[])
36394{ return 0; }
36395#undef main
36396#define main K_and_R_C_main
36397
36398int
36399main ()
36400{
36401 return 0;
36402 ;
36403 return 0;
36404}
36405_ACEOF
36406rm -f conftest.$ac_objext conftest$ac_exeext
36407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36408 (eval $ac_link) 2>conftest.er1
a848cd7e 36409 ac_status=$?
ac1cb8d3
VS
36410 grep -v '^ *+' conftest.er1 >conftest.err
36411 rm -f conftest.er1
36412 cat conftest.err >&5
a848cd7e
SC
36413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414 (exit $ac_status); } &&
9dd0f6c2 36415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36417 (eval $ac_try) 2>&5
36418 ac_status=$?
36419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36420 (exit $ac_status); }; } &&
36421 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36423 (eval $ac_try) 2>&5
36424 ac_status=$?
36425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426 (exit $ac_status); }; }; then
36427 echo "*** The test program compiled, but did not run. This usually means"
36428 echo "*** that the run-time linker is not finding SDL or finding the wrong"
36429 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36430 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36431 echo "*** to the installed location Also, make sure you have run ldconfig if that"
36432 echo "*** is required on your system"
36433 echo "***"
36434 echo "*** If you have an old version installed, it is best to remove it, although"
36435 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36436else
36437 echo "$as_me: failed program was:" >&5
36438sed 's/^/| /' conftest.$ac_ext >&5
36439
36440 echo "*** The test program failed to compile or link. See the file config.log for the"
36441 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36442 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36443 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36444fi
ac1cb8d3
VS
36445rm -f conftest.err conftest.$ac_objext \
36446 conftest$ac_exeext conftest.$ac_ext
a848cd7e 36447 CFLAGS="$ac_save_CFLAGS"
94acd38e 36448 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36449 LIBS="$ac_save_LIBS"
36450 fi
36451 fi
36452 SDL_CFLAGS=""
36453 SDL_LIBS=""
36454 wxUSE_LIBSDL="no"
36455 fi
36456
36457
36458 rm -f conf.sdltest
36459
36460 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36461 WITH_PLUGIN_SDL=1
36462 fi
36463 fi
36464 fi
36465
36466 cat >>confdefs.h <<\_ACEOF
36467#define wxUSE_SOUND 1
36468_ACEOF
36469
36470 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36471fi
36472
d1c38808
VZ
36473if test "$WXGTK20" = 1; then
36474 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36475 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36476
36477
36478 succeeded=no
36479
36480 if test -z "$PKG_CONFIG"; then
36481 # Extract the first word of "pkg-config", so it can be a program name with args.
36482set dummy pkg-config; ac_word=$2
36483echo "$as_me:$LINENO: checking for $ac_word" >&5
36484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36485if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36486 echo $ECHO_N "(cached) $ECHO_C" >&6
36487else
36488 case $PKG_CONFIG in
36489 [\\/]* | ?:[\\/]*)
36490 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36491 ;;
36492 *)
36493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36494for as_dir in $PATH
36495do
36496 IFS=$as_save_IFS
36497 test -z "$as_dir" && as_dir=.
36498 for ac_exec_ext in '' $ac_executable_extensions; do
36499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36500 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36502 break 2
36503 fi
36504done
36505done
36506
36507 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
36508 ;;
36509esac
36510fi
36511PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36512
36513if test -n "$PKG_CONFIG"; then
36514 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36515echo "${ECHO_T}$PKG_CONFIG" >&6
36516else
36517 echo "$as_me:$LINENO: result: no" >&5
36518echo "${ECHO_T}no" >&6
36519fi
36520
36521 fi
36522
36523 if test "$PKG_CONFIG" = "no" ; then
36524 echo "*** The pkg-config script could not be found. Make sure it is"
36525 echo "*** in your path, or set the PKG_CONFIG environment variable"
36526 echo "*** to the full path to pkg-config."
36527 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
36528 else
36529 PKG_CONFIG_MIN_VERSION=0.9.0
36530 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
36531 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
36532echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 36533
ffa762ff 36534 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
36535 echo "$as_me:$LINENO: result: yes" >&5
36536echo "${ECHO_T}yes" >&6
36537 succeeded=yes
36538
36539 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
36540echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 36541 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36542 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
36543echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
36544
36545 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
36546echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 36547 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36548 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
36549echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
36550 else
36551 LIBGNOMEPRINTUI_CFLAGS=""
36552 LIBGNOMEPRINTUI_LIBS=""
36553 ## If we have a custom action on failure, don't print errors, but
36554 ## do set a variable so people can do so.
ffa762ff 36555 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36556
36557 fi
36558
36559
36560
36561 else
36562 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
36563 echo "*** See http://www.freedesktop.org/software/pkgconfig"
36564 fi
36565 fi
36566
36567 if test $succeeded = yes; then
36568
d1c38808
VZ
36569 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
36570 cat >>confdefs.h <<\_ACEOF
36571#define wxUSE_LIBGNOMEPRINT 1
36572_ACEOF
36573
36574
36575 else
36576
36577 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
36578echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
36579 wxUSE_LIBGNOMEPRINT="no"
36580
36581
36582 fi
36583
36584 fi
36585 fi
36586fi
36587
36588
a848cd7e
SC
36589if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
36590 cat >>confdefs.h <<\_ACEOF
36591#define wxUSE_CMDLINE_PARSER 1
36592_ACEOF
36593
36594fi
36595
36596if test "$wxUSE_STOPWATCH" = "yes"; then
36597 cat >>confdefs.h <<\_ACEOF
36598#define wxUSE_STOPWATCH 1
36599_ACEOF
36600
36601fi
36602
36603if test "$wxUSE_DATETIME" = "yes"; then
36604 cat >>confdefs.h <<\_ACEOF
36605#define wxUSE_DATETIME 1
36606_ACEOF
36607
36608fi
36609
36610if test "$wxUSE_FILE" = "yes"; then
36611 cat >>confdefs.h <<\_ACEOF
36612#define wxUSE_FILE 1
36613_ACEOF
36614
36615fi
36616
36617if test "$wxUSE_FFILE" = "yes"; then
36618 cat >>confdefs.h <<\_ACEOF
36619#define wxUSE_FFILE 1
36620_ACEOF
36621
36622fi
36623
36624if test "$wxUSE_FILESYSTEM" = "yes"; then
36625 cat >>confdefs.h <<\_ACEOF
36626#define wxUSE_FILESYSTEM 1
36627_ACEOF
36628
36629fi
36630
36631if test "$wxUSE_FS_ZIP" = "yes"; then
36632 cat >>confdefs.h <<\_ACEOF
36633#define wxUSE_FS_ZIP 1
36634_ACEOF
36635
36636fi
36637
9e8e867f 36638if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 36639 cat >>confdefs.h <<\_ACEOF
9e8e867f 36640#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
36641_ACEOF
36642
36643fi
36644
36645if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 36646 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
36647 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
36648echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
36649 elif test "$wxUSE_ZLIB" = "no"; then
36650 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
36651echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
36652 else
36653 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36654#define wxUSE_ZIPSTREAM 1
36655_ACEOF
36656
81f90336 36657 fi
a848cd7e
SC
36658fi
36659
a848cd7e
SC
36660if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36661 cat >>confdefs.h <<\_ACEOF
36662#define wxUSE_ON_FATAL_EXCEPTION 1
36663_ACEOF
36664
36665fi
36666
eaff0f0d
VZ
36667if test "$wxUSE_STACKWALKER" = "yes"; then
36668 cat >>confdefs.h <<\_ACEOF
36669#define wxUSE_STACKWALKER 1
36670_ACEOF
36671
36672fi
36673
36b6448c 36674if test "$wxUSE_DEBUGREPORT" = "yes"; then
dfe0c803
JS
36675 if test "$USE_OS2" = "1"; then
36676 { echo "$as_me:$LINENO: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&5
36677echo "$as_me: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&2;}
36678 wxUSE_DEBUGREPORT=no
36679 else
36680 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
36681#define wxUSE_DEBUGREPORT 1
36682_ACEOF
36683
21dfc162
MW
36684 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36685 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
36686 fi
dfe0c803 36687 fi
36b6448c
VZ
36688fi
36689
a848cd7e
SC
36690if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36691 cat >>confdefs.h <<\_ACEOF
36692#define wxUSE_SNGLINST_CHECKER 1
36693_ACEOF
36694
36695fi
36696
36697if test "$wxUSE_BUSYINFO" = "yes"; then
36698 cat >>confdefs.h <<\_ACEOF
36699#define wxUSE_BUSYINFO 1
36700_ACEOF
36701
36702fi
36703
36704if test "$wxUSE_STD_IOSTREAM" = "yes"; then
36705 cat >>confdefs.h <<\_ACEOF
36706#define wxUSE_STD_IOSTREAM 1
36707_ACEOF
36708
36709fi
36710
59746b65
MW
36711if test "$wxUSE_STD_STRING" = "yes"; then
36712 cat >>confdefs.h <<\_ACEOF
36713#define wxUSE_STD_STRING 1
36714_ACEOF
36715
36716fi
36717
07158944
VZ
36718if test "$wxUSE_STDPATHS" = "yes"; then
36719 cat >>confdefs.h <<\_ACEOF
36720#define wxUSE_STDPATHS 1
36721_ACEOF
36722
36723fi
36724
a848cd7e
SC
36725if test "$wxUSE_TEXTBUFFER" = "yes"; then
36726 cat >>confdefs.h <<\_ACEOF
36727#define wxUSE_TEXTBUFFER 1
36728_ACEOF
36729
36730fi
36731
36732if test "$wxUSE_TEXTFILE" = "yes"; then
36733 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
36734 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
36735echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
36736 else
36737 cat >>confdefs.h <<\_ACEOF
36738#define wxUSE_TEXTFILE 1
36739_ACEOF
36740
36741 fi
36742fi
36743
36744if test "$wxUSE_CONFIG" = "yes" ; then
36745 if test "$wxUSE_TEXTFILE" != "yes"; then
36746 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
36747echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
36748 else
36749 cat >>confdefs.h <<\_ACEOF
36750#define wxUSE_CONFIG 1
89be85c2
VS
36751_ACEOF
36752
36753 cat >>confdefs.h <<\_ACEOF
36754#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
36755_ACEOF
36756
36757 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
36758 fi
36759fi
36760
36761if test "$wxUSE_INTL" = "yes" ; then
36762 if test "$wxUSE_FILE" != "yes"; then
36763 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
36764echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
36765 else
36766 cat >>confdefs.h <<\_ACEOF
36767#define wxUSE_INTL 1
36768_ACEOF
36769
36770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
36771 GUIDIST="$GUIDIST INTL_DIST"
36772 fi
36773fi
36774
36775if test "$wxUSE_LOG" = "yes"; then
36776 cat >>confdefs.h <<\_ACEOF
36777#define wxUSE_LOG 1
36778_ACEOF
36779
36780
36781 if test "$wxUSE_LOGGUI" = "yes"; then
36782 cat >>confdefs.h <<\_ACEOF
36783#define wxUSE_LOGGUI 1
36784_ACEOF
36785
36786 fi
36787
36788 if test "$wxUSE_LOGWINDOW" = "yes"; then
36789 cat >>confdefs.h <<\_ACEOF
36790#define wxUSE_LOGWINDOW 1
36791_ACEOF
36792
36793 fi
36794
36795 if test "$wxUSE_LOGDIALOG" = "yes"; then
36796 cat >>confdefs.h <<\_ACEOF
36797#define wxUSE_LOG_DIALOG 1
36798_ACEOF
36799
36800 fi
0b78747f
MW
36801
36802 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
36803fi
36804
36805if test "$wxUSE_LONGLONG" = "yes"; then
36806 cat >>confdefs.h <<\_ACEOF
36807#define wxUSE_LONGLONG 1
36808_ACEOF
36809
36810fi
36811
36812if test "$wxUSE_GEOMETRY" = "yes"; then
36813 cat >>confdefs.h <<\_ACEOF
36814#define wxUSE_GEOMETRY 1
36815_ACEOF
36816
36817fi
36818
a848cd7e
SC
36819if test "$wxUSE_STREAMS" = "yes" ; then
36820 cat >>confdefs.h <<\_ACEOF
36821#define wxUSE_STREAMS 1
36822_ACEOF
36823
36824fi
36825
36826
36827if test "$wxUSE_DATETIME" = "yes"; then
36828
36829for ac_func in strptime
36830do
36831as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36832echo "$as_me:$LINENO: checking for $ac_func" >&5
36833echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36834if eval "test \"\${$as_ac_var+set}\" = set"; then
36835 echo $ECHO_N "(cached) $ECHO_C" >&6
36836else
36837 cat >conftest.$ac_ext <<_ACEOF
36838/* confdefs.h. */
36839_ACEOF
36840cat confdefs.h >>conftest.$ac_ext
36841cat >>conftest.$ac_ext <<_ACEOF
36842/* end confdefs.h. */
ac1cb8d3
VS
36843/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36845#define $ac_func innocuous_$ac_func
36846
a848cd7e
SC
36847/* System header to define __stub macros and hopefully few prototypes,
36848 which can conflict with char $ac_func (); below.
36849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36850 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36851
a848cd7e
SC
36852#ifdef __STDC__
36853# include <limits.h>
36854#else
36855# include <assert.h>
36856#endif
ac1cb8d3
VS
36857
36858#undef $ac_func
36859
a848cd7e
SC
36860/* Override any gcc2 internal prototype to avoid an error. */
36861#ifdef __cplusplus
36862extern "C"
36863{
36864#endif
36865/* We use char because int might match the return type of a gcc2
36866 builtin and then its argument prototype would still apply. */
36867char $ac_func ();
36868/* The GNU C library defines this for functions which it implements
36869 to always fail with ENOSYS. Some functions are actually named
36870 something starting with __ and the normal name is an alias. */
36871#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36872choke me
36873#else
36874char (*f) () = $ac_func;
36875#endif
36876#ifdef __cplusplus
36877}
36878#endif
36879
36880int
36881main ()
36882{
36883return f != $ac_func;
36884 ;
36885 return 0;
36886}
36887_ACEOF
36888rm -f conftest.$ac_objext conftest$ac_exeext
36889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36890 (eval $ac_link) 2>conftest.er1
a848cd7e 36891 ac_status=$?
ac1cb8d3
VS
36892 grep -v '^ *+' conftest.er1 >conftest.err
36893 rm -f conftest.er1
36894 cat conftest.err >&5
a848cd7e
SC
36895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36896 (exit $ac_status); } &&
9dd0f6c2 36897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36899 (eval $ac_try) 2>&5
36900 ac_status=$?
36901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36902 (exit $ac_status); }; } &&
36903 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36905 (eval $ac_try) 2>&5
36906 ac_status=$?
36907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36908 (exit $ac_status); }; }; then
36909 eval "$as_ac_var=yes"
36910else
36911 echo "$as_me: failed program was:" >&5
36912sed 's/^/| /' conftest.$ac_ext >&5
36913
36914eval "$as_ac_var=no"
36915fi
ac1cb8d3
VS
36916rm -f conftest.err conftest.$ac_objext \
36917 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36918fi
36919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36920echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36921if test `eval echo '${'$as_ac_var'}'` = yes; then
36922 cat >>confdefs.h <<_ACEOF
36923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36924_ACEOF
36925
36926fi
36927done
36928
36929
36930 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
36931echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
36932if test "${wx_cv_var_timezone+set}" = set; then
36933 echo $ECHO_N "(cached) $ECHO_C" >&6
36934else
36935
36936 cat >conftest.$ac_ext <<_ACEOF
36937/* confdefs.h. */
36938_ACEOF
36939cat confdefs.h >>conftest.$ac_ext
36940cat >>conftest.$ac_ext <<_ACEOF
36941/* end confdefs.h. */
36942
36943 #include <time.h>
36944
36945int
36946main ()
36947{
36948
36949 int tz;
36950 tz = timezone;
36951
36952 ;
36953 return 0;
36954}
36955_ACEOF
36956rm -f conftest.$ac_objext
36957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36958 (eval $ac_compile) 2>conftest.er1
a848cd7e 36959 ac_status=$?
ac1cb8d3
VS
36960 grep -v '^ *+' conftest.er1 >conftest.err
36961 rm -f conftest.er1
36962 cat conftest.err >&5
a848cd7e
SC
36963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36964 (exit $ac_status); } &&
9dd0f6c2 36965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36967 (eval $ac_try) 2>&5
36968 ac_status=$?
36969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36970 (exit $ac_status); }; } &&
36971 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36973 (eval $ac_try) 2>&5
36974 ac_status=$?
36975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36976 (exit $ac_status); }; }; then
36977
36978 wx_cv_var_timezone=timezone
36979
36980else
36981 echo "$as_me: failed program was:" >&5
36982sed 's/^/| /' conftest.$ac_ext >&5
36983
36984
36985 cat >conftest.$ac_ext <<_ACEOF
36986/* confdefs.h. */
36987_ACEOF
36988cat confdefs.h >>conftest.$ac_ext
36989cat >>conftest.$ac_ext <<_ACEOF
36990/* end confdefs.h. */
36991
36992 #include <time.h>
36993
36994int
36995main ()
36996{
36997
36998 int tz;
36999 tz = _timezone;
37000
37001 ;
37002 return 0;
37003}
37004_ACEOF
37005rm -f conftest.$ac_objext
37006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37007 (eval $ac_compile) 2>conftest.er1
a848cd7e 37008 ac_status=$?
ac1cb8d3
VS
37009 grep -v '^ *+' conftest.er1 >conftest.err
37010 rm -f conftest.er1
37011 cat conftest.err >&5
a848cd7e
SC
37012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37013 (exit $ac_status); } &&
9dd0f6c2 37014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37016 (eval $ac_try) 2>&5
37017 ac_status=$?
37018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37019 (exit $ac_status); }; } &&
37020 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37022 (eval $ac_try) 2>&5
37023 ac_status=$?
37024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37025 (exit $ac_status); }; }; then
37026
37027 wx_cv_var_timezone=_timezone
37028
37029else
37030 echo "$as_me: failed program was:" >&5
37031sed 's/^/| /' conftest.$ac_ext >&5
37032
37033
37034 cat >conftest.$ac_ext <<_ACEOF
37035/* confdefs.h. */
37036_ACEOF
37037cat confdefs.h >>conftest.$ac_ext
37038cat >>conftest.$ac_ext <<_ACEOF
37039/* end confdefs.h. */
37040
37041 #include <time.h>
37042
37043int
37044main ()
37045{
37046
37047 int tz;
37048 tz = __timezone;
37049
37050 ;
37051 return 0;
37052}
37053_ACEOF
37054rm -f conftest.$ac_objext
37055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37056 (eval $ac_compile) 2>conftest.er1
a848cd7e 37057 ac_status=$?
ac1cb8d3
VS
37058 grep -v '^ *+' conftest.er1 >conftest.err
37059 rm -f conftest.er1
37060 cat conftest.err >&5
a848cd7e
SC
37061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37062 (exit $ac_status); } &&
9dd0f6c2 37063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37065 (eval $ac_try) 2>&5
37066 ac_status=$?
37067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37068 (exit $ac_status); }; } &&
37069 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37071 (eval $ac_try) 2>&5
37072 ac_status=$?
37073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37074 (exit $ac_status); }; }; then
37075
37076 wx_cv_var_timezone=__timezone
37077
37078else
37079 echo "$as_me: failed program was:" >&5
37080sed 's/^/| /' conftest.$ac_ext >&5
37081
37082
37083 if test "$USE_DOS" = 0 ; then
37084 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
37085echo "$as_me: WARNING: no timezone variable" >&2;}
37086 fi
37087
37088
37089fi
ac1cb8d3 37090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37091
37092
37093fi
ac1cb8d3 37094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37095
37096
37097fi
ac1cb8d3 37098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37099
37100
37101fi
37102echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
37103echo "${ECHO_T}$wx_cv_var_timezone" >&6
37104
37105 if test "x$wx_cv_var_timezone" != x ; then
37106 cat >>confdefs.h <<_ACEOF
37107#define WX_TIMEZONE $wx_cv_var_timezone
37108_ACEOF
37109
37110 fi
37111
37112
37113for ac_func in localtime
37114do
37115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37116echo "$as_me:$LINENO: checking for $ac_func" >&5
37117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37118if eval "test \"\${$as_ac_var+set}\" = set"; then
37119 echo $ECHO_N "(cached) $ECHO_C" >&6
37120else
37121 cat >conftest.$ac_ext <<_ACEOF
37122/* confdefs.h. */
37123_ACEOF
37124cat confdefs.h >>conftest.$ac_ext
37125cat >>conftest.$ac_ext <<_ACEOF
37126/* end confdefs.h. */
ac1cb8d3
VS
37127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37129#define $ac_func innocuous_$ac_func
37130
a848cd7e
SC
37131/* System header to define __stub macros and hopefully few prototypes,
37132 which can conflict with char $ac_func (); below.
37133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37134 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37135
a848cd7e
SC
37136#ifdef __STDC__
37137# include <limits.h>
37138#else
37139# include <assert.h>
37140#endif
ac1cb8d3
VS
37141
37142#undef $ac_func
37143
a848cd7e
SC
37144/* Override any gcc2 internal prototype to avoid an error. */
37145#ifdef __cplusplus
37146extern "C"
37147{
37148#endif
37149/* We use char because int might match the return type of a gcc2
37150 builtin and then its argument prototype would still apply. */
37151char $ac_func ();
37152/* The GNU C library defines this for functions which it implements
37153 to always fail with ENOSYS. Some functions are actually named
37154 something starting with __ and the normal name is an alias. */
37155#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37156choke me
37157#else
37158char (*f) () = $ac_func;
37159#endif
37160#ifdef __cplusplus
37161}
37162#endif
37163
37164int
37165main ()
37166{
37167return f != $ac_func;
37168 ;
37169 return 0;
37170}
37171_ACEOF
37172rm -f conftest.$ac_objext conftest$ac_exeext
37173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37174 (eval $ac_link) 2>conftest.er1
a848cd7e 37175 ac_status=$?
ac1cb8d3
VS
37176 grep -v '^ *+' conftest.er1 >conftest.err
37177 rm -f conftest.er1
37178 cat conftest.err >&5
a848cd7e
SC
37179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180 (exit $ac_status); } &&
9dd0f6c2 37181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37183 (eval $ac_try) 2>&5
37184 ac_status=$?
37185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37186 (exit $ac_status); }; } &&
37187 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37189 (eval $ac_try) 2>&5
37190 ac_status=$?
37191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37192 (exit $ac_status); }; }; then
37193 eval "$as_ac_var=yes"
37194else
37195 echo "$as_me: failed program was:" >&5
37196sed 's/^/| /' conftest.$ac_ext >&5
37197
37198eval "$as_ac_var=no"
37199fi
ac1cb8d3
VS
37200rm -f conftest.err conftest.$ac_objext \
37201 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37202fi
37203echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37204echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37205if test `eval echo '${'$as_ac_var'}'` = yes; then
37206 cat >>confdefs.h <<_ACEOF
37207#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37208_ACEOF
37209
37210fi
37211done
37212
37213
37214 if test "$ac_cv_func_localtime" = "yes"; then
37215 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
37216echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
37217if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
37218 echo $ECHO_N "(cached) $ECHO_C" >&6
37219else
37220
37221 cat >conftest.$ac_ext <<_ACEOF
37222/* confdefs.h. */
37223_ACEOF
37224cat confdefs.h >>conftest.$ac_ext
37225cat >>conftest.$ac_ext <<_ACEOF
37226/* end confdefs.h. */
37227
37228 #include <time.h>
37229
37230int
37231main ()
37232{
37233
37234 struct tm tm;
37235 tm.tm_gmtoff++;
37236
37237 ;
37238 return 0;
37239}
37240_ACEOF
37241rm -f conftest.$ac_objext
37242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37243 (eval $ac_compile) 2>conftest.er1
a848cd7e 37244 ac_status=$?
ac1cb8d3
VS
37245 grep -v '^ *+' conftest.er1 >conftest.err
37246 rm -f conftest.er1
37247 cat conftest.err >&5
a848cd7e
SC
37248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37249 (exit $ac_status); } &&
9dd0f6c2 37250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37252 (eval $ac_try) 2>&5
37253 ac_status=$?
37254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37255 (exit $ac_status); }; } &&
37256 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37258 (eval $ac_try) 2>&5
37259 ac_status=$?
37260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261 (exit $ac_status); }; }; then
37262
37263 wx_cv_struct_tm_has_gmtoff=yes
37264
37265else
37266 echo "$as_me: failed program was:" >&5
37267sed 's/^/| /' conftest.$ac_ext >&5
37268
37269wx_cv_struct_tm_has_gmtoff=no
37270
37271fi
ac1cb8d3 37272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37273
37274fi
37275echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37276echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37277 fi
37278
37279 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37280 cat >>confdefs.h <<\_ACEOF
37281#define WX_GMTOFF_IN_TM 1
37282_ACEOF
37283
37284 fi
37285
37286
37287
37288for ac_func in gettimeofday ftime
37289do
37290as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37291echo "$as_me:$LINENO: checking for $ac_func" >&5
37292echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37293if eval "test \"\${$as_ac_var+set}\" = set"; then
37294 echo $ECHO_N "(cached) $ECHO_C" >&6
37295else
37296 cat >conftest.$ac_ext <<_ACEOF
37297/* confdefs.h. */
37298_ACEOF
37299cat confdefs.h >>conftest.$ac_ext
37300cat >>conftest.$ac_ext <<_ACEOF
37301/* end confdefs.h. */
ac1cb8d3
VS
37302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37304#define $ac_func innocuous_$ac_func
37305
a848cd7e
SC
37306/* System header to define __stub macros and hopefully few prototypes,
37307 which can conflict with char $ac_func (); below.
37308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37309 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37310
a848cd7e
SC
37311#ifdef __STDC__
37312# include <limits.h>
37313#else
37314# include <assert.h>
37315#endif
ac1cb8d3
VS
37316
37317#undef $ac_func
37318
a848cd7e
SC
37319/* Override any gcc2 internal prototype to avoid an error. */
37320#ifdef __cplusplus
37321extern "C"
37322{
37323#endif
37324/* We use char because int might match the return type of a gcc2
37325 builtin and then its argument prototype would still apply. */
37326char $ac_func ();
37327/* The GNU C library defines this for functions which it implements
37328 to always fail with ENOSYS. Some functions are actually named
37329 something starting with __ and the normal name is an alias. */
37330#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37331choke me
37332#else
37333char (*f) () = $ac_func;
37334#endif
37335#ifdef __cplusplus
37336}
37337#endif
37338
37339int
37340main ()
37341{
37342return f != $ac_func;
37343 ;
37344 return 0;
37345}
37346_ACEOF
37347rm -f conftest.$ac_objext conftest$ac_exeext
37348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37349 (eval $ac_link) 2>conftest.er1
a848cd7e 37350 ac_status=$?
ac1cb8d3
VS
37351 grep -v '^ *+' conftest.er1 >conftest.err
37352 rm -f conftest.er1
37353 cat conftest.err >&5
a848cd7e
SC
37354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37355 (exit $ac_status); } &&
9dd0f6c2 37356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37358 (eval $ac_try) 2>&5
37359 ac_status=$?
37360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37361 (exit $ac_status); }; } &&
37362 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37364 (eval $ac_try) 2>&5
37365 ac_status=$?
37366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37367 (exit $ac_status); }; }; then
37368 eval "$as_ac_var=yes"
37369else
37370 echo "$as_me: failed program was:" >&5
37371sed 's/^/| /' conftest.$ac_ext >&5
37372
37373eval "$as_ac_var=no"
37374fi
ac1cb8d3
VS
37375rm -f conftest.err conftest.$ac_objext \
37376 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37377fi
37378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37379echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37380if test `eval echo '${'$as_ac_var'}'` = yes; then
37381 cat >>confdefs.h <<_ACEOF
37382#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37383_ACEOF
37384 break
37385fi
37386done
37387
37388
37389 if test "$ac_cv_func_gettimeofday" = "yes"; then
37390 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37391echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37392if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37393 echo $ECHO_N "(cached) $ECHO_C" >&6
37394else
37395
37396
37397
37398 ac_ext=cc
37399ac_cpp='$CXXCPP $CPPFLAGS'
37400ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37401ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37402ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37403
37404
37405 cat >conftest.$ac_ext <<_ACEOF
37406/* confdefs.h. */
37407_ACEOF
37408cat confdefs.h >>conftest.$ac_ext
37409cat >>conftest.$ac_ext <<_ACEOF
37410/* end confdefs.h. */
37411
37412 #include <sys/time.h>
37413 #include <unistd.h>
37414
37415int
37416main ()
37417{
37418
37419 struct timeval tv;
37420 gettimeofday(&tv, NULL);
37421
37422 ;
37423 return 0;
37424}
37425_ACEOF
37426rm -f conftest.$ac_objext
37427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37428 (eval $ac_compile) 2>conftest.er1
a848cd7e 37429 ac_status=$?
ac1cb8d3
VS
37430 grep -v '^ *+' conftest.er1 >conftest.err
37431 rm -f conftest.er1
37432 cat conftest.err >&5
a848cd7e
SC
37433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37434 (exit $ac_status); } &&
9dd0f6c2 37435 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37437 (eval $ac_try) 2>&5
37438 ac_status=$?
37439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37440 (exit $ac_status); }; } &&
37441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37443 (eval $ac_try) 2>&5
37444 ac_status=$?
37445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37446 (exit $ac_status); }; }; then
37447 wx_cv_func_gettimeofday_has_2_args=yes
37448else
37449 echo "$as_me: failed program was:" >&5
37450sed 's/^/| /' conftest.$ac_ext >&5
37451
37452cat >conftest.$ac_ext <<_ACEOF
37453/* confdefs.h. */
37454_ACEOF
37455cat confdefs.h >>conftest.$ac_ext
37456cat >>conftest.$ac_ext <<_ACEOF
37457/* end confdefs.h. */
37458
37459 #include <sys/time.h>
37460 #include <unistd.h>
37461
37462int
37463main ()
37464{
37465
37466 struct timeval tv;
37467 gettimeofday(&tv);
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_cxx_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 wx_cv_func_gettimeofday_has_2_args=no
37495else
37496 echo "$as_me: failed program was:" >&5
37497sed 's/^/| /' conftest.$ac_ext >&5
37498
37499
37500 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
37501echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
37502 wx_cv_func_gettimeofday_has_2_args=unknown
37503
37504
37505fi
ac1cb8d3 37506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37507
37508fi
ac1cb8d3 37509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37510 ac_ext=c
37511ac_cpp='$CPP $CPPFLAGS'
37512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37514ac_compiler_gnu=$ac_cv_c_compiler_gnu
37515
37516
37517fi
37518echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
37519echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
37520
37521 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
37522 cat >>confdefs.h <<\_ACEOF
37523#define WX_GETTIMEOFDAY_NO_TZ 1
37524_ACEOF
37525
37526 fi
37527 fi
37528
37529 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
37530fi
37531
37532
37533if test "$wxUSE_SOCKETS" = "yes"; then
37534 if test "$wxUSE_MGL" = "1"; then
37535 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
37536echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
37537 wxUSE_SOCKETS="no"
37538 fi
37539fi
37540
37541if test "$wxUSE_SOCKETS" = "yes"; then
37542 if test "$TOOLKIT" != "MSW"; then
37543 echo "$as_me:$LINENO: checking for socket" >&5
37544echo $ECHO_N "checking for socket... $ECHO_C" >&6
37545if test "${ac_cv_func_socket+set}" = set; then
37546 echo $ECHO_N "(cached) $ECHO_C" >&6
37547else
37548 cat >conftest.$ac_ext <<_ACEOF
37549/* confdefs.h. */
37550_ACEOF
37551cat confdefs.h >>conftest.$ac_ext
37552cat >>conftest.$ac_ext <<_ACEOF
37553/* end confdefs.h. */
ac1cb8d3
VS
37554/* Define socket to an innocuous variant, in case <limits.h> declares socket.
37555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37556#define socket innocuous_socket
37557
a848cd7e
SC
37558/* System header to define __stub macros and hopefully few prototypes,
37559 which can conflict with char socket (); below.
37560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37561 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37562
a848cd7e
SC
37563#ifdef __STDC__
37564# include <limits.h>
37565#else
37566# include <assert.h>
37567#endif
ac1cb8d3
VS
37568
37569#undef socket
37570
a848cd7e
SC
37571/* Override any gcc2 internal prototype to avoid an error. */
37572#ifdef __cplusplus
37573extern "C"
37574{
37575#endif
37576/* We use char because int might match the return type of a gcc2
37577 builtin and then its argument prototype would still apply. */
37578char socket ();
37579/* The GNU C library defines this for functions which it implements
37580 to always fail with ENOSYS. Some functions are actually named
37581 something starting with __ and the normal name is an alias. */
37582#if defined (__stub_socket) || defined (__stub___socket)
37583choke me
37584#else
37585char (*f) () = socket;
37586#endif
37587#ifdef __cplusplus
37588}
37589#endif
37590
37591int
37592main ()
37593{
37594return f != socket;
37595 ;
37596 return 0;
37597}
37598_ACEOF
37599rm -f conftest.$ac_objext conftest$ac_exeext
37600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37601 (eval $ac_link) 2>conftest.er1
a848cd7e 37602 ac_status=$?
ac1cb8d3
VS
37603 grep -v '^ *+' conftest.er1 >conftest.err
37604 rm -f conftest.er1
37605 cat conftest.err >&5
a848cd7e
SC
37606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37607 (exit $ac_status); } &&
9dd0f6c2 37608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37610 (eval $ac_try) 2>&5
37611 ac_status=$?
37612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37613 (exit $ac_status); }; } &&
37614 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37616 (eval $ac_try) 2>&5
37617 ac_status=$?
37618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37619 (exit $ac_status); }; }; then
37620 ac_cv_func_socket=yes
37621else
37622 echo "$as_me: failed program was:" >&5
37623sed 's/^/| /' conftest.$ac_ext >&5
37624
37625ac_cv_func_socket=no
37626fi
ac1cb8d3
VS
37627rm -f conftest.err conftest.$ac_objext \
37628 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37629fi
37630echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
37631echo "${ECHO_T}$ac_cv_func_socket" >&6
37632if test $ac_cv_func_socket = yes; then
37633 :
37634else
37635
37636 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
37637echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
37638if test "${ac_cv_lib_socket_socket+set}" = set; then
37639 echo $ECHO_N "(cached) $ECHO_C" >&6
37640else
37641 ac_check_lib_save_LIBS=$LIBS
37642LIBS="-lsocket $LIBS"
37643cat >conftest.$ac_ext <<_ACEOF
37644/* confdefs.h. */
37645_ACEOF
37646cat confdefs.h >>conftest.$ac_ext
37647cat >>conftest.$ac_ext <<_ACEOF
37648/* end confdefs.h. */
37649
37650/* Override any gcc2 internal prototype to avoid an error. */
37651#ifdef __cplusplus
37652extern "C"
37653#endif
37654/* We use char because int might match the return type of a gcc2
37655 builtin and then its argument prototype would still apply. */
37656char socket ();
37657int
37658main ()
37659{
37660socket ();
37661 ;
37662 return 0;
37663}
37664_ACEOF
37665rm -f conftest.$ac_objext conftest$ac_exeext
37666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37667 (eval $ac_link) 2>conftest.er1
a848cd7e 37668 ac_status=$?
ac1cb8d3
VS
37669 grep -v '^ *+' conftest.er1 >conftest.err
37670 rm -f conftest.er1
37671 cat conftest.err >&5
a848cd7e
SC
37672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37673 (exit $ac_status); } &&
9dd0f6c2 37674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37676 (eval $ac_try) 2>&5
37677 ac_status=$?
37678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37679 (exit $ac_status); }; } &&
37680 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37682 (eval $ac_try) 2>&5
37683 ac_status=$?
37684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37685 (exit $ac_status); }; }; then
37686 ac_cv_lib_socket_socket=yes
37687else
37688 echo "$as_me: failed program was:" >&5
37689sed 's/^/| /' conftest.$ac_ext >&5
37690
37691ac_cv_lib_socket_socket=no
37692fi
ac1cb8d3
VS
37693rm -f conftest.err conftest.$ac_objext \
37694 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37695LIBS=$ac_check_lib_save_LIBS
37696fi
37697echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
37698echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
37699if test $ac_cv_lib_socket_socket = yes; then
37700 if test "$INET_LINK" != " -lsocket"; then
37701 INET_LINK="$INET_LINK -lsocket"
37702 fi
37703else
37704
37705 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
37706echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
37707 wxUSE_SOCKETS=no
37708
37709
37710fi
37711
37712
37713
37714fi
37715
37716 fi
37717fi
37718
37719if test "$wxUSE_SOCKETS" = "yes" ; then
37720 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
37721 ac_ext=cc
37722ac_cpp='$CXXCPP $CPPFLAGS'
37723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37726
37727 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
37728echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
37729if test "${wx_cv_type_getsockname3+set}" = set; then
37730 echo $ECHO_N "(cached) $ECHO_C" >&6
37731else
37732
37733 cat >conftest.$ac_ext <<_ACEOF
37734/* confdefs.h. */
37735_ACEOF
37736cat confdefs.h >>conftest.$ac_ext
37737cat >>conftest.$ac_ext <<_ACEOF
37738/* end confdefs.h. */
37739
37740 #include <sys/types.h>
37741 #include <sys/socket.h>
37742
37743int
37744main ()
37745{
37746
37747 socklen_t len;
37748 getsockname(0, 0, &len);
37749
37750 ;
37751 return 0;
37752}
37753_ACEOF
37754rm -f conftest.$ac_objext
37755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37756 (eval $ac_compile) 2>conftest.er1
a848cd7e 37757 ac_status=$?
ac1cb8d3
VS
37758 grep -v '^ *+' conftest.er1 >conftest.err
37759 rm -f conftest.er1
37760 cat conftest.err >&5
a848cd7e
SC
37761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37762 (exit $ac_status); } &&
9dd0f6c2 37763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37765 (eval $ac_try) 2>&5
37766 ac_status=$?
37767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37768 (exit $ac_status); }; } &&
37769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37771 (eval $ac_try) 2>&5
37772 ac_status=$?
37773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37774 (exit $ac_status); }; }; then
37775 wx_cv_type_getsockname3=socklen_t
37776else
37777 echo "$as_me: failed program was:" >&5
37778sed 's/^/| /' conftest.$ac_ext >&5
37779
37780
37781 CFLAGS_OLD="$CFLAGS"
37782 if test "$GCC" = yes ; then
37783 CFLAGS="$CFLAGS -Werror"
37784 fi
37785
37786 cat >conftest.$ac_ext <<_ACEOF
37787/* confdefs.h. */
37788_ACEOF
37789cat confdefs.h >>conftest.$ac_ext
37790cat >>conftest.$ac_ext <<_ACEOF
37791/* end confdefs.h. */
37792
37793 #include <sys/types.h>
37794 #include <sys/socket.h>
37795
37796int
37797main ()
37798{
37799
37800 size_t len;
37801 getsockname(0, 0, &len);
37802
37803 ;
37804 return 0;
37805}
37806_ACEOF
37807rm -f conftest.$ac_objext
37808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37809 (eval $ac_compile) 2>conftest.er1
a848cd7e 37810 ac_status=$?
ac1cb8d3
VS
37811 grep -v '^ *+' conftest.er1 >conftest.err
37812 rm -f conftest.er1
37813 cat conftest.err >&5
a848cd7e
SC
37814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37815 (exit $ac_status); } &&
9dd0f6c2 37816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37818 (eval $ac_try) 2>&5
37819 ac_status=$?
37820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37821 (exit $ac_status); }; } &&
37822 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37824 (eval $ac_try) 2>&5
37825 ac_status=$?
37826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37827 (exit $ac_status); }; }; then
37828 wx_cv_type_getsockname3=size_t
37829else
37830 echo "$as_me: failed program was:" >&5
37831sed 's/^/| /' conftest.$ac_ext >&5
37832
37833cat >conftest.$ac_ext <<_ACEOF
37834/* confdefs.h. */
37835_ACEOF
37836cat confdefs.h >>conftest.$ac_ext
37837cat >>conftest.$ac_ext <<_ACEOF
37838/* end confdefs.h. */
37839
37840 #include <sys/types.h>
37841 #include <sys/socket.h>
37842
37843int
37844main ()
37845{
37846
37847 int len;
37848 getsockname(0, 0, &len);
37849
37850 ;
37851 return 0;
37852}
37853_ACEOF
37854rm -f conftest.$ac_objext
37855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37856 (eval $ac_compile) 2>conftest.er1
a848cd7e 37857 ac_status=$?
ac1cb8d3
VS
37858 grep -v '^ *+' conftest.er1 >conftest.err
37859 rm -f conftest.er1
37860 cat conftest.err >&5
a848cd7e
SC
37861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37862 (exit $ac_status); } &&
9dd0f6c2 37863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37865 (eval $ac_try) 2>&5
37866 ac_status=$?
37867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37868 (exit $ac_status); }; } &&
37869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37871 (eval $ac_try) 2>&5
37872 ac_status=$?
37873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37874 (exit $ac_status); }; }; then
37875 wx_cv_type_getsockname3=int
37876else
37877 echo "$as_me: failed program was:" >&5
37878sed 's/^/| /' conftest.$ac_ext >&5
37879
37880wx_cv_type_getsockname3=unknown
37881
37882fi
ac1cb8d3 37883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37884
37885fi
ac1cb8d3 37886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37887
37888 CFLAGS="$CFLAGS_OLD"
37889
37890
37891fi
ac1cb8d3 37892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37893
37894fi
37895echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
37896echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
37897
37898 if test "$wx_cv_type_getsockname3" = "unknown"; then
37899 wxUSE_SOCKETS=no
37900 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37901echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37902 else
37903 cat >>confdefs.h <<_ACEOF
37904#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
37905_ACEOF
37906
37907 fi
37908 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
37909echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
37910if test "${wx_cv_type_getsockopt5+set}" = set; then
37911 echo $ECHO_N "(cached) $ECHO_C" >&6
37912else
37913
37914 cat >conftest.$ac_ext <<_ACEOF
37915/* confdefs.h. */
37916_ACEOF
37917cat confdefs.h >>conftest.$ac_ext
37918cat >>conftest.$ac_ext <<_ACEOF
37919/* end confdefs.h. */
37920
37921 #include <sys/types.h>
37922 #include <sys/socket.h>
37923
37924int
37925main ()
37926{
37927
37928 socklen_t len;
37929 getsockopt(0, 0, 0, 0, &len);
37930
37931 ;
37932 return 0;
37933}
37934_ACEOF
37935rm -f conftest.$ac_objext
37936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37937 (eval $ac_compile) 2>conftest.er1
37938 ac_status=$?
37939 grep -v '^ *+' conftest.er1 >conftest.err
37940 rm -f conftest.er1
37941 cat conftest.err >&5
37942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943 (exit $ac_status); } &&
9dd0f6c2 37944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37946 (eval $ac_try) 2>&5
37947 ac_status=$?
37948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37949 (exit $ac_status); }; } &&
37950 { ac_try='test -s conftest.$ac_objext'
37951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37952 (eval $ac_try) 2>&5
37953 ac_status=$?
37954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37955 (exit $ac_status); }; }; then
37956 wx_cv_type_getsockopt5=socklen_t
37957else
37958 echo "$as_me: failed program was:" >&5
37959sed 's/^/| /' conftest.$ac_ext >&5
37960
37961
37962 CFLAGS_OLD="$CFLAGS"
37963 if test "$GCC" = yes ; then
37964 CFLAGS="$CFLAGS -Werror"
37965 fi
37966
37967 cat >conftest.$ac_ext <<_ACEOF
37968/* confdefs.h. */
37969_ACEOF
37970cat confdefs.h >>conftest.$ac_ext
37971cat >>conftest.$ac_ext <<_ACEOF
37972/* end confdefs.h. */
37973
37974 #include <sys/types.h>
37975 #include <sys/socket.h>
37976
37977int
37978main ()
37979{
37980
37981 size_t len;
37982 getsockopt(0, 0, 0, 0, &len);
37983
37984 ;
37985 return 0;
37986}
37987_ACEOF
37988rm -f conftest.$ac_objext
37989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37990 (eval $ac_compile) 2>conftest.er1
37991 ac_status=$?
37992 grep -v '^ *+' conftest.er1 >conftest.err
37993 rm -f conftest.er1
37994 cat conftest.err >&5
37995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37996 (exit $ac_status); } &&
9dd0f6c2 37997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37999 (eval $ac_try) 2>&5
38000 ac_status=$?
38001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38002 (exit $ac_status); }; } &&
38003 { ac_try='test -s conftest.$ac_objext'
38004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38005 (eval $ac_try) 2>&5
38006 ac_status=$?
38007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38008 (exit $ac_status); }; }; then
38009 wx_cv_type_getsockopt5=size_t
38010else
38011 echo "$as_me: failed program was:" >&5
38012sed 's/^/| /' conftest.$ac_ext >&5
38013
38014cat >conftest.$ac_ext <<_ACEOF
38015/* confdefs.h. */
38016_ACEOF
38017cat confdefs.h >>conftest.$ac_ext
38018cat >>conftest.$ac_ext <<_ACEOF
38019/* end confdefs.h. */
38020
38021 #include <sys/types.h>
38022 #include <sys/socket.h>
38023
38024int
38025main ()
38026{
38027
38028 int len;
38029 getsockopt(0, 0, 0, 0, &len);
38030
38031 ;
38032 return 0;
38033}
38034_ACEOF
38035rm -f conftest.$ac_objext
38036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38037 (eval $ac_compile) 2>conftest.er1
38038 ac_status=$?
38039 grep -v '^ *+' conftest.er1 >conftest.err
38040 rm -f conftest.er1
38041 cat conftest.err >&5
38042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38043 (exit $ac_status); } &&
9dd0f6c2 38044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38046 (eval $ac_try) 2>&5
38047 ac_status=$?
38048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38049 (exit $ac_status); }; } &&
38050 { ac_try='test -s conftest.$ac_objext'
38051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38052 (eval $ac_try) 2>&5
38053 ac_status=$?
38054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38055 (exit $ac_status); }; }; then
38056 wx_cv_type_getsockopt5=int
38057else
38058 echo "$as_me: failed program was:" >&5
38059sed 's/^/| /' conftest.$ac_ext >&5
38060
38061wx_cv_type_getsockopt5=unknown
38062
38063fi
38064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38065
38066fi
38067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38068
38069 CFLAGS="$CFLAGS_OLD"
38070
38071
38072fi
38073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38074
38075fi
38076echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
38077echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
38078
38079 if test "$wx_cv_type_getsockopt5" = "unknown"; then
38080 wxUSE_SOCKETS=no
38081 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38082echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38083 else
38084 cat >>confdefs.h <<_ACEOF
38085#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
38086_ACEOF
38087
38088 fi
4d4ff94c
VZ
38089 ac_ext=c
38090ac_cpp='$CPP $CPPFLAGS'
38091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38093ac_compiler_gnu=$ac_cv_c_compiler_gnu
38094
a848cd7e
SC
38095 fi
38096fi
38097
38098if test "$wxUSE_SOCKETS" = "yes" ; then
38099 cat >>confdefs.h <<\_ACEOF
38100#define wxUSE_SOCKETS 1
38101_ACEOF
38102
38103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
38104fi
38105
38106if test "$wxUSE_PROTOCOL" = "yes"; then
38107 if test "$wxUSE_SOCKETS" != "yes"; then
38108 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
38109echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
38110 wxUSE_PROTOCOL=no
38111 fi
38112fi
38113
38114if test "$wxUSE_PROTOCOL" = "yes"; then
38115 cat >>confdefs.h <<\_ACEOF
38116#define wxUSE_PROTOCOL 1
38117_ACEOF
38118
38119
38120 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
38121 cat >>confdefs.h <<\_ACEOF
38122#define wxUSE_PROTOCOL_HTTP 1
38123_ACEOF
38124
38125 fi
38126 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
38127 cat >>confdefs.h <<\_ACEOF
38128#define wxUSE_PROTOCOL_FTP 1
38129_ACEOF
38130
38131 fi
38132 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
38133 cat >>confdefs.h <<\_ACEOF
38134#define wxUSE_PROTOCOL_FILE 1
38135_ACEOF
38136
38137 fi
38138else
38139 if test "$wxUSE_FS_INET" = "yes"; then
38140 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
38141echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
38142 wxUSE_FS_INET="no"
38143 fi
38144fi
38145
38146if test "$wxUSE_URL" = "yes"; then
38147 if test "$wxUSE_PROTOCOL" != "yes"; then
38148 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
38149echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
38150 wxUSE_URL=no
38151 fi
38152 if test "$wxUSE_URL" = "yes"; then
38153 cat >>confdefs.h <<\_ACEOF
38154#define wxUSE_URL 1
38155_ACEOF
38156
38157 fi
38158fi
38159
38160if test "$wxUSE_FS_INET" = "yes"; then
38161 cat >>confdefs.h <<\_ACEOF
38162#define wxUSE_FS_INET 1
38163_ACEOF
38164
38165fi
38166
38167
38168if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 38169 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 38170
4cb1d3da 38171 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
38172
38173for ac_header in linux/joystick.h
38174do
38175as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38176if eval "test \"\${$as_ac_Header+set}\" = set"; then
38177 echo "$as_me:$LINENO: checking for $ac_header" >&5
38178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38179if eval "test \"\${$as_ac_Header+set}\" = set"; then
38180 echo $ECHO_N "(cached) $ECHO_C" >&6
38181fi
38182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38184else
38185 # Is the header compilable?
38186echo "$as_me:$LINENO: checking $ac_header usability" >&5
38187echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38188cat >conftest.$ac_ext <<_ACEOF
38189/* confdefs.h. */
38190_ACEOF
38191cat confdefs.h >>conftest.$ac_ext
38192cat >>conftest.$ac_ext <<_ACEOF
38193/* end confdefs.h. */
38194$ac_includes_default
38195#include <$ac_header>
38196_ACEOF
38197rm -f conftest.$ac_objext
38198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38199 (eval $ac_compile) 2>conftest.er1
a848cd7e 38200 ac_status=$?
ac1cb8d3
VS
38201 grep -v '^ *+' conftest.er1 >conftest.err
38202 rm -f conftest.er1
38203 cat conftest.err >&5
a848cd7e
SC
38204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38205 (exit $ac_status); } &&
9dd0f6c2 38206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38208 (eval $ac_try) 2>&5
38209 ac_status=$?
38210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38211 (exit $ac_status); }; } &&
38212 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38214 (eval $ac_try) 2>&5
38215 ac_status=$?
38216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38217 (exit $ac_status); }; }; then
38218 ac_header_compiler=yes
38219else
38220 echo "$as_me: failed program was:" >&5
38221sed 's/^/| /' conftest.$ac_ext >&5
38222
38223ac_header_compiler=no
38224fi
ac1cb8d3 38225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38226echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38227echo "${ECHO_T}$ac_header_compiler" >&6
38228
38229# Is the header present?
38230echo "$as_me:$LINENO: checking $ac_header presence" >&5
38231echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38232cat >conftest.$ac_ext <<_ACEOF
38233/* confdefs.h. */
38234_ACEOF
38235cat confdefs.h >>conftest.$ac_ext
38236cat >>conftest.$ac_ext <<_ACEOF
38237/* end confdefs.h. */
38238#include <$ac_header>
38239_ACEOF
38240if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38242 ac_status=$?
38243 grep -v '^ *+' conftest.er1 >conftest.err
38244 rm -f conftest.er1
38245 cat conftest.err >&5
38246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38247 (exit $ac_status); } >/dev/null; then
38248 if test -s conftest.err; then
38249 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38251 else
38252 ac_cpp_err=
38253 fi
38254else
38255 ac_cpp_err=yes
38256fi
38257if test -z "$ac_cpp_err"; then
38258 ac_header_preproc=yes
38259else
38260 echo "$as_me: failed program was:" >&5
38261sed 's/^/| /' conftest.$ac_ext >&5
38262
38263 ac_header_preproc=no
38264fi
38265rm -f conftest.err conftest.$ac_ext
38266echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38267echo "${ECHO_T}$ac_header_preproc" >&6
38268
38269# So? What about this header?
ac1cb8d3
VS
38270case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38271 yes:no: )
a848cd7e
SC
38272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38273echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38275echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38276 ac_header_preproc=yes
a848cd7e 38277 ;;
ac1cb8d3 38278 no:yes:* )
a848cd7e
SC
38279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38280echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38282echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38284echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38286echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38288echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38290echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38291 (
38292 cat <<\_ASBOX
ac1cb8d3
VS
38293## ----------------------------------------- ##
38294## Report this to wx-dev@lists.wxwidgets.org ##
38295## ----------------------------------------- ##
a848cd7e
SC
38296_ASBOX
38297 ) |
38298 sed "s/^/$as_me: WARNING: /" >&2
38299 ;;
38300esac
38301echo "$as_me:$LINENO: checking for $ac_header" >&5
38302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38303if eval "test \"\${$as_ac_Header+set}\" = set"; then
38304 echo $ECHO_N "(cached) $ECHO_C" >&6
38305else
ac1cb8d3 38306 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38307fi
38308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38309echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38310
38311fi
38312if test `eval echo '${'$as_ac_Header'}'` = yes; then
38313 cat >>confdefs.h <<_ACEOF
38314#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38315_ACEOF
38316
38317fi
38318
38319done
38320
38321 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
38322 wxUSE_JOYSTICK=no
38323 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38324echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38325 fi
4cb1d3da
RN
38326 else
38327 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
38328 wxUSE_JOYSTICK=no
38329 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38330echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38331 fi
a848cd7e 38332 fi
a848cd7e 38333
4cb1d3da
RN
38334
38335 if test "$wxUSE_JOYSTICK" = "yes"; then
38336 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38337#define wxUSE_JOYSTICK 1
38338_ACEOF
38339
4cb1d3da
RN
38340 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38341 fi
a848cd7e
SC
38342 fi
38343fi
38344
38345
38346
38347if test "$wxUSE_FONTMAP" = "yes" ; then
38348 cat >>confdefs.h <<\_ACEOF
38349#define wxUSE_FONTMAP 1
38350_ACEOF
38351
38352fi
38353
38354if test "$wxUSE_UNICODE" = "yes" ; then
38355 cat >>confdefs.h <<\_ACEOF
38356#define wxUSE_UNICODE 1
38357_ACEOF
38358
38359
38360 if test "$USE_WIN32" != 1; then
38361 wxUSE_UNICODE_MSLU=no
38362 fi
38363
38364 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38365 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38366echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38367if test "${ac_cv_lib_unicows_main+set}" = set; then
38368 echo $ECHO_N "(cached) $ECHO_C" >&6
38369else
38370 ac_check_lib_save_LIBS=$LIBS
38371LIBS="-lunicows $LIBS"
38372cat >conftest.$ac_ext <<_ACEOF
38373/* confdefs.h. */
38374_ACEOF
38375cat confdefs.h >>conftest.$ac_ext
38376cat >>conftest.$ac_ext <<_ACEOF
38377/* end confdefs.h. */
38378
38379
38380int
38381main ()
38382{
38383main ();
38384 ;
38385 return 0;
38386}
38387_ACEOF
38388rm -f conftest.$ac_objext conftest$ac_exeext
38389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38390 (eval $ac_link) 2>conftest.er1
a848cd7e 38391 ac_status=$?
ac1cb8d3
VS
38392 grep -v '^ *+' conftest.er1 >conftest.err
38393 rm -f conftest.er1
38394 cat conftest.err >&5
a848cd7e
SC
38395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38396 (exit $ac_status); } &&
9dd0f6c2 38397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38399 (eval $ac_try) 2>&5
38400 ac_status=$?
38401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38402 (exit $ac_status); }; } &&
38403 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38405 (eval $ac_try) 2>&5
38406 ac_status=$?
38407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38408 (exit $ac_status); }; }; then
38409 ac_cv_lib_unicows_main=yes
38410else
38411 echo "$as_me: failed program was:" >&5
38412sed 's/^/| /' conftest.$ac_ext >&5
38413
38414ac_cv_lib_unicows_main=no
38415fi
ac1cb8d3
VS
38416rm -f conftest.err conftest.$ac_objext \
38417 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38418LIBS=$ac_check_lib_save_LIBS
38419fi
38420echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38421echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38422if test $ac_cv_lib_unicows_main = yes; then
38423
38424 cat >>confdefs.h <<\_ACEOF
38425#define wxUSE_UNICODE_MSLU 1
38426_ACEOF
38427
38428
38429else
38430
38431 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38432 Applications will only run on Windows NT/2000/XP!" >&5
38433echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38434 Applications will only run on Windows NT/2000/XP!" >&2;}
38435 wxUSE_UNICODE_MSLU=no
38436
38437fi
38438
38439 fi
38440fi
38441
38442if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38443 cat >>confdefs.h <<\_ACEOF
38444#define wxUSE_EXPERIMENTAL_PRINTF 1
38445_ACEOF
38446
38447fi
38448
38449
38450if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38451 cat >>confdefs.h <<\_ACEOF
38452#define wxUSE_POSTSCRIPT 1
38453_ACEOF
38454
38455fi
38456
38457cat >>confdefs.h <<\_ACEOF
38458#define wxUSE_AFM_FOR_POSTSCRIPT 1
38459_ACEOF
38460
38461
38462cat >>confdefs.h <<\_ACEOF
38463#define wxUSE_NORMALIZED_PS_FONTS 1
38464_ACEOF
38465
38466
38467
38468if test "$wxUSE_CONSTRAINTS" = "yes"; then
38469 cat >>confdefs.h <<\_ACEOF
38470#define wxUSE_CONSTRAINTS 1
38471_ACEOF
38472
38473 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
38474fi
38475
8a7b1113
VZ
38476if test "$wxUSE_MDI" = "yes"; then
38477 cat >>confdefs.h <<\_ACEOF
38478#define wxUSE_MDI 1
38479_ACEOF
38480
38481
38482 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38483 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38484#define wxUSE_MDI_ARCHITECTURE 1
38485_ACEOF
38486
8a7b1113
VZ
38487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
38488 fi
a848cd7e
SC
38489fi
38490
38491if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
38492 cat >>confdefs.h <<\_ACEOF
38493#define wxUSE_DOC_VIEW_ARCHITECTURE 1
38494_ACEOF
38495
38496 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
38497 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38498 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
38499 fi
38500fi
38501
38502if test "$wxUSE_HELP" = "yes"; then
38503 cat >>confdefs.h <<\_ACEOF
38504#define wxUSE_HELP 1
38505_ACEOF
38506
38507 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
38508
38509 if test "$wxUSE_MSW" = 1; then
38510 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
38511 cat >>confdefs.h <<\_ACEOF
38512#define wxUSE_MS_HTML_HELP 1
38513_ACEOF
38514
38515 fi
38516 fi
38517
38518 if test "$wxUSE_WXHTML_HELP" = "yes"; then
38519 if test "$wxUSE_HTML" = "yes"; then
38520 cat >>confdefs.h <<\_ACEOF
38521#define wxUSE_WXHTML_HELP 1
38522_ACEOF
38523
38524 else
38525 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
38526echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
38527 wxUSE_WXHTML_HELP=no
38528 fi
38529 fi
38530fi
38531
38532if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38533 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38534 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
38535echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
38536 else
38537 cat >>confdefs.h <<\_ACEOF
38538#define wxUSE_PRINTING_ARCHITECTURE 1
38539_ACEOF
38540
38541 fi
38542 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
38543fi
38544
38545if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
38546 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
38547echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
38548 { (exit 1); exit 1; }; }
38549fi
38550
38551
38552if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
38553 -o "$wxUSE_CLIPBOARD" = "yes" \
38554 -o "$wxUSE_OLE" = "yes" \
38555 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
38556
38557for ac_header in ole2.h
38558do
38559as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38560if eval "test \"\${$as_ac_Header+set}\" = set"; then
38561 echo "$as_me:$LINENO: checking for $ac_header" >&5
38562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38563if eval "test \"\${$as_ac_Header+set}\" = set"; then
38564 echo $ECHO_N "(cached) $ECHO_C" >&6
38565fi
38566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38567echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38568else
38569 # Is the header compilable?
38570echo "$as_me:$LINENO: checking $ac_header usability" >&5
38571echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38572cat >conftest.$ac_ext <<_ACEOF
38573/* confdefs.h. */
38574_ACEOF
38575cat confdefs.h >>conftest.$ac_ext
38576cat >>conftest.$ac_ext <<_ACEOF
38577/* end confdefs.h. */
38578$ac_includes_default
38579#include <$ac_header>
38580_ACEOF
38581rm -f conftest.$ac_objext
38582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38583 (eval $ac_compile) 2>conftest.er1
a848cd7e 38584 ac_status=$?
ac1cb8d3
VS
38585 grep -v '^ *+' conftest.er1 >conftest.err
38586 rm -f conftest.er1
38587 cat conftest.err >&5
a848cd7e
SC
38588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38589 (exit $ac_status); } &&
9dd0f6c2 38590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38592 (eval $ac_try) 2>&5
38593 ac_status=$?
38594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38595 (exit $ac_status); }; } &&
38596 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38598 (eval $ac_try) 2>&5
38599 ac_status=$?
38600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38601 (exit $ac_status); }; }; then
38602 ac_header_compiler=yes
38603else
38604 echo "$as_me: failed program was:" >&5
38605sed 's/^/| /' conftest.$ac_ext >&5
38606
38607ac_header_compiler=no
38608fi
ac1cb8d3 38609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38610echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38611echo "${ECHO_T}$ac_header_compiler" >&6
38612
38613# Is the header present?
38614echo "$as_me:$LINENO: checking $ac_header presence" >&5
38615echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38616cat >conftest.$ac_ext <<_ACEOF
38617/* confdefs.h. */
38618_ACEOF
38619cat confdefs.h >>conftest.$ac_ext
38620cat >>conftest.$ac_ext <<_ACEOF
38621/* end confdefs.h. */
38622#include <$ac_header>
38623_ACEOF
38624if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38626 ac_status=$?
38627 grep -v '^ *+' conftest.er1 >conftest.err
38628 rm -f conftest.er1
38629 cat conftest.err >&5
38630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38631 (exit $ac_status); } >/dev/null; then
38632 if test -s conftest.err; then
38633 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38635 else
38636 ac_cpp_err=
38637 fi
38638else
38639 ac_cpp_err=yes
38640fi
38641if test -z "$ac_cpp_err"; then
38642 ac_header_preproc=yes
38643else
38644 echo "$as_me: failed program was:" >&5
38645sed 's/^/| /' conftest.$ac_ext >&5
38646
38647 ac_header_preproc=no
38648fi
38649rm -f conftest.err conftest.$ac_ext
38650echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38651echo "${ECHO_T}$ac_header_preproc" >&6
38652
38653# So? What about this header?
ac1cb8d3
VS
38654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38655 yes:no: )
a848cd7e
SC
38656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38657echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38659echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38660 ac_header_preproc=yes
a848cd7e 38661 ;;
ac1cb8d3 38662 no:yes:* )
a848cd7e
SC
38663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38664echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38666echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38668echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38670echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38672echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38674echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38675 (
38676 cat <<\_ASBOX
ac1cb8d3
VS
38677## ----------------------------------------- ##
38678## Report this to wx-dev@lists.wxwidgets.org ##
38679## ----------------------------------------- ##
a848cd7e
SC
38680_ASBOX
38681 ) |
38682 sed "s/^/$as_me: WARNING: /" >&2
38683 ;;
38684esac
38685echo "$as_me:$LINENO: checking for $ac_header" >&5
38686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38687if eval "test \"\${$as_ac_Header+set}\" = set"; then
38688 echo $ECHO_N "(cached) $ECHO_C" >&6
38689else
ac1cb8d3 38690 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38691fi
38692echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38693echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38694
38695fi
38696if test `eval echo '${'$as_ac_Header'}'` = yes; then
38697 cat >>confdefs.h <<_ACEOF
38698#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38699_ACEOF
38700
38701fi
38702
38703done
38704
38705
38706 if test "$ac_cv_header_ole2_h" = "yes" ; then
38707 if test "$GCC" = yes ; then
38708
38709
38710 ac_ext=cc
38711ac_cpp='$CXXCPP $CPPFLAGS'
38712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38715
38716
38717 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
38718echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
38719 cat >conftest.$ac_ext <<_ACEOF
38720/* confdefs.h. */
38721_ACEOF
38722cat confdefs.h >>conftest.$ac_ext
38723cat >>conftest.$ac_ext <<_ACEOF
38724/* end confdefs.h. */
38725#include <windows.h>
38726 #include <ole2.h>
38727int
38728main ()
38729{
38730
38731 ;
38732 return 0;
38733}
38734_ACEOF
38735rm -f conftest.$ac_objext
38736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38737 (eval $ac_compile) 2>conftest.er1
a848cd7e 38738 ac_status=$?
ac1cb8d3
VS
38739 grep -v '^ *+' conftest.er1 >conftest.err
38740 rm -f conftest.er1
38741 cat conftest.err >&5
a848cd7e
SC
38742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38743 (exit $ac_status); } &&
9dd0f6c2 38744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38746 (eval $ac_try) 2>&5
38747 ac_status=$?
38748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38749 (exit $ac_status); }; } &&
38750 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38752 (eval $ac_try) 2>&5
38753 ac_status=$?
38754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38755 (exit $ac_status); }; }; then
38756 echo "$as_me:$LINENO: result: no" >&5
38757echo "${ECHO_T}no" >&6
38758else
38759 echo "$as_me: failed program was:" >&5
38760sed 's/^/| /' conftest.$ac_ext >&5
38761
38762echo "$as_me:$LINENO: result: yes" >&5
38763echo "${ECHO_T}yes" >&6
38764 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
38765fi
ac1cb8d3 38766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38767 ac_ext=c
38768ac_cpp='$CPP $CPPFLAGS'
38769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38771ac_compiler_gnu=$ac_cv_c_compiler_gnu
38772
a848cd7e
SC
38773 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
38774 if test "$wxUSE_OLE" = "yes" ; then
38775 cat >>confdefs.h <<\_ACEOF
38776#define wxUSE_OLE 1
38777_ACEOF
38778
0b78747f 38779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
38780 fi
38781 fi
38782
38783 if test "$wxUSE_DATAOBJ" = "yes" ; then
38784 cat >>confdefs.h <<\_ACEOF
38785#define wxUSE_DATAOBJ 1
38786_ACEOF
38787
38788 fi
38789 else
38790 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
38791echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
38792
38793 wxUSE_CLIPBOARD=no
38794 wxUSE_DRAG_AND_DROP=no
38795 wxUSE_DATAOBJ=no
38796 wxUSE_OLE=no
38797 fi
38798
38799 if test "$wxUSE_METAFILE" = "yes"; then
38800 cat >>confdefs.h <<\_ACEOF
38801#define wxUSE_METAFILE 1
38802_ACEOF
38803
38804
38805 cat >>confdefs.h <<\_ACEOF
38806#define wxUSE_ENH_METAFILE 1
38807_ACEOF
38808
38809 fi
38810fi
38811
38812if test "$wxUSE_IPC" = "yes"; then
0b78747f 38813 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
38814 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
38815echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 38816 wxUSE_IPC=no
a848cd7e
SC
38817 fi
38818
0b78747f
MW
38819 if test "$wxUSE_IPC" = "yes"; then
38820 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38821#define wxUSE_IPC 1
38822_ACEOF
38823
0b78747f
MW
38824 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
38825 fi
a848cd7e
SC
38826fi
38827
38828if test "$wxUSE_CLIPBOARD" = "yes"; then
38829 if test "$wxUSE_MGL" = 1; then
38830 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
38831echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
38832 wxUSE_CLIPBOARD=no
38833 fi
38834
38835 if test "$wxUSE_CLIPBOARD" = "yes"; then
38836 cat >>confdefs.h <<\_ACEOF
38837#define wxUSE_CLIPBOARD 1
38838_ACEOF
38839
38840
38841 cat >>confdefs.h <<\_ACEOF
38842#define wxUSE_DATAOBJ 1
38843_ACEOF
38844
38845 fi
38846fi
38847
38848if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
38849 if test "$wxUSE_GTK" = 1; then
38850 if test "$WXGTK12" != 1; then
38851 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
38852echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
38853 wxUSE_DRAG_AND_DROP=no
38854 fi
38855 fi
38856
38857 if test "$wxUSE_MOTIF" = 1; then
38858 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
38859echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
38860 wxUSE_DRAG_AND_DROP=no
38861 fi
38862
38863 if test "$wxUSE_X11" = 1; then
38864 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
38865echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
38866 wxUSE_DRAG_AND_DROP=no
38867 fi
38868
38869 if test "$wxUSE_MGL" = 1; then
38870 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
38871echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
38872 wxUSE_DRAG_AND_DROP=no
38873 fi
38874
38875 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
38876 cat >>confdefs.h <<\_ACEOF
38877#define wxUSE_DRAG_AND_DROP 1
38878_ACEOF
38879
38880 fi
38881
38882fi
38883
38884if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
38885 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
38886fi
38887
38888if test "$wxUSE_SPLINES" = "yes" ; then
38889 cat >>confdefs.h <<\_ACEOF
38890#define wxUSE_SPLINES 1
38891_ACEOF
38892
38893fi
38894
fbe2ca43
SN
38895if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
38896 cat >>confdefs.h <<\_ACEOF
38897#define wxUSE_MOUSEWHEEL 1
38898_ACEOF
38899
38900fi
38901
a848cd7e
SC
38902
38903USES_CONTROLS=0
38904if test "$wxUSE_CONTROLS" = "yes"; then
38905 USES_CONTROLS=1
38906fi
38907
38908if test "$wxUSE_ACCEL" = "yes"; then
38909 cat >>confdefs.h <<\_ACEOF
38910#define wxUSE_ACCEL 1
38911_ACEOF
38912
38913 USES_CONTROLS=1
38914fi
38915
38916if test "$wxUSE_BUTTON" = "yes"; then
38917 cat >>confdefs.h <<\_ACEOF
38918#define wxUSE_BUTTON 1
38919_ACEOF
38920
38921 USES_CONTROLS=1
38922fi
38923
38924if test "$wxUSE_BMPBUTTON" = "yes"; then
38925 cat >>confdefs.h <<\_ACEOF
38926#define wxUSE_BMPBUTTON 1
38927_ACEOF
38928
38929 USES_CONTROLS=1
38930fi
38931
38932if test "$wxUSE_CALCTRL" = "yes"; then
38933 cat >>confdefs.h <<\_ACEOF
38934#define wxUSE_CALENDARCTRL 1
38935_ACEOF
38936
38937 USES_CONTROLS=1
38938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
38939fi
38940
38941if test "$wxUSE_CARET" = "yes"; then
38942 cat >>confdefs.h <<\_ACEOF
38943#define wxUSE_CARET 1
38944_ACEOF
38945
38946 USES_CONTROLS=1
38947 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
38948fi
38949
38950if test "$wxUSE_COMBOBOX" = "yes"; then
38951 cat >>confdefs.h <<\_ACEOF
38952#define wxUSE_COMBOBOX 1
38953_ACEOF
38954
38955 USES_CONTROLS=1
38956fi
38957
38958if test "$wxUSE_CHOICE" = "yes"; then
38959 cat >>confdefs.h <<\_ACEOF
38960#define wxUSE_CHOICE 1
38961_ACEOF
38962
38963 USES_CONTROLS=1
38964fi
38965
92bbdbcd
WS
38966if test "$wxUSE_CHOICEBOOK" = "yes"; then
38967 cat >>confdefs.h <<\_ACEOF
38968#define wxUSE_CHOICEBOOK 1
38969_ACEOF
38970
38971 USES_CONTROLS=1
38972fi
38973
a848cd7e
SC
38974if test "$wxUSE_CHECKBOX" = "yes"; then
38975 cat >>confdefs.h <<\_ACEOF
38976#define wxUSE_CHECKBOX 1
38977_ACEOF
38978
38979 USES_CONTROLS=1
38980fi
38981
38982if test "$wxUSE_CHECKLST" = "yes"; then
38983 cat >>confdefs.h <<\_ACEOF
38984#define wxUSE_CHECKLISTBOX 1
38985_ACEOF
38986
38987 USES_CONTROLS=1
38988 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
38989fi
38990
da98e9be
VZ
38991if test "$wxUSE_DATEPICKCTRL" = "yes"; then
38992 cat >>confdefs.h <<\_ACEOF
38993#define wxUSE_DATEPICKCTRL 1
38994_ACEOF
38995
38996 USES_CONTROLS=1
38997fi
38998
a848cd7e
SC
38999if test "$wxUSE_DISPLAY" = "yes"; then
39000 cat >>confdefs.h <<\_ACEOF
39001#define wxUSE_DISPLAY 1
39002_ACEOF
39003
0b78747f 39004 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
39005fi
39006
39007if test "$wxUSE_GAUGE" = "yes"; then
39008 cat >>confdefs.h <<\_ACEOF
39009#define wxUSE_GAUGE 1
39010_ACEOF
39011
39012 USES_CONTROLS=1
39013fi
39014
39015if test "$wxUSE_GRID" = "yes"; then
39016 cat >>confdefs.h <<\_ACEOF
39017#define wxUSE_GRID 1
39018_ACEOF
39019
39020 USES_CONTROLS=1
39021 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
39022fi
39023
39024if test "$wxUSE_IMAGLIST" = "yes"; then
39025 cat >>confdefs.h <<\_ACEOF
39026#define wxUSE_IMAGLIST 1
39027_ACEOF
39028
39029fi
39030
39031if test "$wxUSE_LISTBOOK" = "yes"; then
39032 cat >>confdefs.h <<\_ACEOF
39033#define wxUSE_LISTBOOK 1
39034_ACEOF
39035
39036 USES_CONTROLS=1
39037fi
39038
39039if test "$wxUSE_LISTBOX" = "yes"; then
39040 cat >>confdefs.h <<\_ACEOF
39041#define wxUSE_LISTBOX 1
39042_ACEOF
39043
39044 USES_CONTROLS=1
0b78747f 39045 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
39046fi
39047
39048if test "$wxUSE_LISTCTRL" = "yes"; then
39049 if test "$wxUSE_IMAGLIST" = "yes"; then
39050 cat >>confdefs.h <<\_ACEOF
39051#define wxUSE_LISTCTRL 1
39052_ACEOF
39053
39054 USES_CONTROLS=1
39055 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
39056 else
39057 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
39058echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
39059 fi
39060fi
39061
39062if test "$wxUSE_NOTEBOOK" = "yes"; then
39063 cat >>confdefs.h <<\_ACEOF
39064#define wxUSE_NOTEBOOK 1
39065_ACEOF
39066
39067 USES_CONTROLS=1
39068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
39069fi
39070
39071
39072if test "$wxUSE_RADIOBOX" = "yes"; then
39073 cat >>confdefs.h <<\_ACEOF
39074#define wxUSE_RADIOBOX 1
39075_ACEOF
39076
39077 USES_CONTROLS=1
39078fi
39079
39080if test "$wxUSE_RADIOBTN" = "yes"; then
39081 cat >>confdefs.h <<\_ACEOF
39082#define wxUSE_RADIOBTN 1
39083_ACEOF
39084
39085 USES_CONTROLS=1
39086fi
39087
39088if test "$wxUSE_SASH" = "yes"; then
39089 cat >>confdefs.h <<\_ACEOF
39090#define wxUSE_SASH 1
39091_ACEOF
39092
39093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
39094fi
39095
39096if test "$wxUSE_SCROLLBAR" = "yes"; then
39097 cat >>confdefs.h <<\_ACEOF
39098#define wxUSE_SCROLLBAR 1
39099_ACEOF
39100
39101 USES_CONTROLS=1
39102 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
39103fi
39104
39105if test "$wxUSE_SLIDER" = "yes"; then
39106 cat >>confdefs.h <<\_ACEOF
39107#define wxUSE_SLIDER 1
39108_ACEOF
39109
39110 USES_CONTROLS=1
39111fi
39112
39113if test "$wxUSE_SPINBTN" = "yes"; then
39114 cat >>confdefs.h <<\_ACEOF
39115#define wxUSE_SPINBTN 1
39116_ACEOF
39117
39118 USES_CONTROLS=1
39119fi
39120
39121if test "$wxUSE_SPINCTRL" = "yes"; then
39122 cat >>confdefs.h <<\_ACEOF
39123#define wxUSE_SPINCTRL 1
39124_ACEOF
39125
39126 USES_CONTROLS=1
39127fi
39128
39129if test "$wxUSE_SPLITTER" = "yes"; then
39130 cat >>confdefs.h <<\_ACEOF
39131#define wxUSE_SPLITTER 1
39132_ACEOF
39133
39134 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
39135fi
39136
39137if test "$wxUSE_STATBMP" = "yes"; then
39138 cat >>confdefs.h <<\_ACEOF
39139#define wxUSE_STATBMP 1
39140_ACEOF
39141
39142 USES_CONTROLS=1
39143fi
39144
39145if test "$wxUSE_STATBOX" = "yes"; then
39146 cat >>confdefs.h <<\_ACEOF
39147#define wxUSE_STATBOX 1
39148_ACEOF
39149
39150 USES_CONTROLS=1
39151fi
39152
39153if test "$wxUSE_STATTEXT" = "yes"; then
39154 cat >>confdefs.h <<\_ACEOF
39155#define wxUSE_STATTEXT 1
39156_ACEOF
39157
39158 USES_CONTROLS=1
39159fi
39160
39161if test "$wxUSE_STATLINE" = "yes"; then
39162 cat >>confdefs.h <<\_ACEOF
39163#define wxUSE_STATLINE 1
39164_ACEOF
39165
39166 USES_CONTROLS=1
39167fi
39168
39169if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
39170 cat >>confdefs.h <<\_ACEOF
39171#define wxUSE_NATIVE_STATUSBAR 1
39172_ACEOF
39173
a848cd7e
SC
39174 cat >>confdefs.h <<\_ACEOF
39175#define wxUSE_STATUSBAR 1
39176_ACEOF
39177
39178 USES_CONTROLS=1
39179
39180 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
39181fi
39182
39183if test "$wxUSE_TABDIALOG" = "yes"; then
39184 cat >>confdefs.h <<\_ACEOF
39185#define wxUSE_TAB_DIALOG 1
39186_ACEOF
39187
a848cd7e
SC
39188fi
39189
39190if test "$wxUSE_TEXTCTRL" = "yes"; then
39191 cat >>confdefs.h <<\_ACEOF
39192#define wxUSE_TEXTCTRL 1
39193_ACEOF
39194
39195 USES_CONTROLS=1
39196 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
39197fi
39198
39199if test "$wxUSE_TOGGLEBTN" = "yes"; then
39200 if test "$wxUSE_COCOA" = 1 ; then
39201 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
39202echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
39203 wxUSE_TOGGLEBTN=no
39204 fi
39205 if test "$wxUSE_UNIVERSAL" = "yes"; then
39206 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
39207echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
39208 wxUSE_TOGGLEBTN=no
39209 fi
39210
39211 if test "$wxUSE_TOGGLEBTN" = "yes"; then
39212 cat >>confdefs.h <<\_ACEOF
39213#define wxUSE_TOGGLEBTN 1
39214_ACEOF
39215
39216 USES_CONTROLS=1
39217 fi
39218fi
39219
39220if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
39221 cat >>confdefs.h <<\_ACEOF
39222#define wxUSE_TOOLBAR_SIMPLE 1
39223_ACEOF
39224
39225 wxUSE_TOOLBAR="yes"
39226 USES_CONTROLS=1
39227fi
39228
39229if test "$wxUSE_TOOLBAR" = "yes"; then
39230 cat >>confdefs.h <<\_ACEOF
39231#define wxUSE_TOOLBAR 1
39232_ACEOF
39233
39234 USES_CONTROLS=1
39235
39236 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39237 wxUSE_TOOLBAR_NATIVE="yes"
39238 fi
39239
39240 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39241 cat >>confdefs.h <<\_ACEOF
39242#define wxUSE_TOOLBAR_NATIVE 1
39243_ACEOF
39244
39245 USES_CONTROLS=1
39246 fi
39247
39248 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39249fi
39250
39251if test "$wxUSE_TOOLTIPS" = "yes"; then
39252 if test "$wxUSE_MOTIF" = 1; then
39253 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39254echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39255 else
39256 if test "$wxUSE_UNIVERSAL" = "yes"; then
39257 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39258echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39259 else
39260 cat >>confdefs.h <<\_ACEOF
39261#define wxUSE_TOOLTIPS 1
39262_ACEOF
39263
39264 fi
39265 fi
39266fi
39267
39268if test "$wxUSE_TREECTRL" = "yes"; then
39269 if test "$wxUSE_IMAGLIST" = "yes"; then
39270 cat >>confdefs.h <<\_ACEOF
39271#define wxUSE_TREECTRL 1
39272_ACEOF
39273
39274 USES_CONTROLS=1
39275 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39276 else
39277 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39278echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39279 fi
39280fi
39281
39282if test "$wxUSE_POPUPWIN" = "yes"; then
39283 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39284 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39285echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39286 else
39287 if test "$wxUSE_PM" = 1; then
39288 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39289echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39290 else
39291 cat >>confdefs.h <<\_ACEOF
39292#define wxUSE_POPUPWIN 1
39293_ACEOF
39294
0b78747f 39295 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
39296
39297 USES_CONTROLS=1
39298 fi
39299 fi
39300fi
39301
0dcd06dd 39302if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
39303 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39304 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39305echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39306 else
39307 cat >>confdefs.h <<\_ACEOF
39308#define wxUSE_DIALUP_MANAGER 1
39309_ACEOF
39310
39311 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39312 fi
39313fi
39314
a848cd7e
SC
39315if test "$wxUSE_TIPWINDOW" = "yes"; then
39316 if test "$wxUSE_PM" = 1; then
39317 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39318echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39319 else
39320 cat >>confdefs.h <<\_ACEOF
39321#define wxUSE_TIPWINDOW 1
39322_ACEOF
39323
39324 fi
39325fi
39326
39327if test "$USES_CONTROLS" = 1; then
39328 cat >>confdefs.h <<\_ACEOF
39329#define wxUSE_CONTROLS 1
39330_ACEOF
39331
39332fi
39333
39334
39335if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39336 cat >>confdefs.h <<\_ACEOF
39337#define wxUSE_ACCESSIBILITY 1
39338_ACEOF
39339
39340 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39341fi
39342
39343if test "$wxUSE_DRAGIMAGE" = "yes"; then
39344 cat >>confdefs.h <<\_ACEOF
39345#define wxUSE_DRAGIMAGE 1
39346_ACEOF
39347
39348 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39349fi
39350
39351if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
39352 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39353 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39354echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39355 else
39356 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39357#define wxUSE_EXCEPTIONS 1
39358_ACEOF
39359
07bea8f0
VS
39360 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39361 fi
a848cd7e
SC
39362fi
39363
39364USE_HTML=0
39365if test "$wxUSE_HTML" = "yes"; then
39366 cat >>confdefs.h <<\_ACEOF
39367#define wxUSE_HTML 1
39368_ACEOF
39369
39370 USE_HTML=1
39371 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
39372 if test "$wxUSE_MAC" = 1; then
39373 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
39374 fi
a848cd7e 39375fi
646b6ec1 39376if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 39377 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
39378 old_CPPFLAGS="$CPPFLAGS"
39379 CPPFLAGS="$CPPFLAGS -x objective-c++"
39380 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
39381echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
39382if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
39383 echo $ECHO_N "(cached) $ECHO_C" >&6
39384else
39385 cat >conftest.$ac_ext <<_ACEOF
39386/* confdefs.h. */
39387_ACEOF
39388cat confdefs.h >>conftest.$ac_ext
39389cat >>conftest.$ac_ext <<_ACEOF
39390/* end confdefs.h. */
39391#include <Carbon/Carbon.h>
39392
39393#include <WebKit/HIWebView.h>
39394_ACEOF
39395rm -f conftest.$ac_objext
39396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39397 (eval $ac_compile) 2>conftest.er1
39398 ac_status=$?
39399 grep -v '^ *+' conftest.er1 >conftest.err
39400 rm -f conftest.er1
39401 cat conftest.err >&5
39402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39403 (exit $ac_status); } &&
9dd0f6c2 39404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
39405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39406 (eval $ac_try) 2>&5
39407 ac_status=$?
39408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39409 (exit $ac_status); }; } &&
39410 { ac_try='test -s conftest.$ac_objext'
39411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39412 (eval $ac_try) 2>&5
39413 ac_status=$?
39414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39415 (exit $ac_status); }; }; then
39416 ac_cv_header_WebKit_HIWebView_h=yes
39417else
39418 echo "$as_me: failed program was:" >&5
39419sed 's/^/| /' conftest.$ac_ext >&5
39420
39421ac_cv_header_WebKit_HIWebView_h=no
39422fi
39423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39424fi
39425echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39426echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39427if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39428
39429 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
39430#define wxUSE_WEBKIT 1
39431_ACEOF
39432
07bea8f0
VS
39433 WEBKIT_LINK="-framework WebKit"
39434
39435else
39436
39437 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39438echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39439 wxUSE_WEBKIT=no
39440
646b6ec1
VS
39441fi
39442
07bea8f0
VS
39443
39444 CPPFLAGS="$old_CPPFLAGS"
39445 elif test "$wxUSE_COCOA" = 1; then
39446 cat >>confdefs.h <<\_ACEOF
39447#define wxUSE_WEBKIT 1
39448_ACEOF
39449
39450 else
39451 wxUSE_WEBKIT=no
39452 fi
39453fi
39454
9a8f0513
VS
39455USE_XRC=0
39456if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
39457 if test "$wxUSE_XML" != "yes"; then
39458 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39459echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39460 wxUSE_XRC=no
39461 else
39462 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
39463#define wxUSE_XRC 1
39464_ACEOF
39465
d2ebf0b7
VS
39466 USE_XRC=1
39467 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
39468 fi
9a8f0513 39469fi
07bea8f0 39470
a848cd7e
SC
39471if test "$wxUSE_MENUS" = "yes"; then
39472 cat >>confdefs.h <<\_ACEOF
39473#define wxUSE_MENUS 1
39474_ACEOF
39475
39476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
39477fi
39478
39479if test "$wxUSE_METAFILE" = "yes"; then
39480 cat >>confdefs.h <<\_ACEOF
39481#define wxUSE_METAFILE 1
39482_ACEOF
39483
39484fi
39485
39486if test "$wxUSE_MIMETYPE" = "yes"; then
39487 cat >>confdefs.h <<\_ACEOF
39488#define wxUSE_MIMETYPE 1
39489_ACEOF
39490
39491fi
39492
39493if test "$wxUSE_MINIFRAME" = "yes"; then
39494 cat >>confdefs.h <<\_ACEOF
39495#define wxUSE_MINIFRAME 1
39496_ACEOF
39497
39498 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
39499fi
39500
39501if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
39502 cat >>confdefs.h <<\_ACEOF
39503#define wxUSE_SYSTEM_OPTIONS 1
39504_ACEOF
39505
39506 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 39507 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
39508 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
39509 fi
39510fi
39511
39512
39513if test "$wxUSE_VALIDATORS" = "yes"; then
39514 cat >>confdefs.h <<\_ACEOF
39515#define wxUSE_VALIDATORS 1
39516_ACEOF
39517
39518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
39519fi
39520
39521if test "$wxUSE_PALETTE" = "yes" ; then
39522 cat >>confdefs.h <<\_ACEOF
39523#define wxUSE_PALETTE 1
39524_ACEOF
39525
39526fi
39527
39528if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
39529 LIBS=" -lunicows $LIBS"
39530fi
39531
39532
39533if test "$wxUSE_IMAGE" = "yes" ; then
39534 cat >>confdefs.h <<\_ACEOF
39535#define wxUSE_IMAGE 1
39536_ACEOF
39537
39538
39539 if test "$wxUSE_GIF" = "yes" ; then
39540 cat >>confdefs.h <<\_ACEOF
39541#define wxUSE_GIF 1
39542_ACEOF
39543
39544 fi
39545
39546 if test "$wxUSE_PCX" = "yes" ; then
39547 cat >>confdefs.h <<\_ACEOF
39548#define wxUSE_PCX 1
39549_ACEOF
39550
39551 fi
39552
39553 if test "$wxUSE_IFF" = "yes" ; then
39554 cat >>confdefs.h <<\_ACEOF
39555#define wxUSE_IFF 1
39556_ACEOF
39557
39558 fi
39559
39560 if test "$wxUSE_PNM" = "yes" ; then
39561 cat >>confdefs.h <<\_ACEOF
39562#define wxUSE_PNM 1
39563_ACEOF
39564
39565 fi
39566
39567 if test "$wxUSE_XPM" = "yes" ; then
39568 cat >>confdefs.h <<\_ACEOF
39569#define wxUSE_XPM 1
39570_ACEOF
39571
39572 fi
39573
39574 if test "$wxUSE_ICO_CUR" = "yes" ; then
39575 cat >>confdefs.h <<\_ACEOF
39576#define wxUSE_ICO_CUR 1
39577_ACEOF
39578
39579 fi
39580fi
39581
39582
39583if test "$wxUSE_CHOICEDLG" = "yes"; then
39584 cat >>confdefs.h <<\_ACEOF
39585#define wxUSE_CHOICEDLG 1
39586_ACEOF
39587
39588fi
39589
39590if test "$wxUSE_COLOURDLG" = "yes"; then
39591 cat >>confdefs.h <<\_ACEOF
39592#define wxUSE_COLOURDLG 1
39593_ACEOF
39594
39595fi
39596
39597if test "$wxUSE_FILEDLG" = "yes"; then
39598 cat >>confdefs.h <<\_ACEOF
39599#define wxUSE_FILEDLG 1
39600_ACEOF
39601
39602fi
39603
39604if test "$wxUSE_FINDREPLDLG" = "yes"; then
39605 cat >>confdefs.h <<\_ACEOF
39606#define wxUSE_FINDREPLDLG 1
39607_ACEOF
39608
39609fi
39610
39611if test "$wxUSE_FONTDLG" = "yes"; then
39612 cat >>confdefs.h <<\_ACEOF
39613#define wxUSE_FONTDLG 1
39614_ACEOF
39615
39616fi
39617
39618if test "$wxUSE_DIRDLG" = "yes"; then
39619 if test "$wxUSE_TREECTRL" != "yes"; then
39620 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
39621echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
39622 else
39623 cat >>confdefs.h <<\_ACEOF
39624#define wxUSE_DIRDLG 1
39625_ACEOF
39626
39627 fi
39628fi
39629
39630if test "$wxUSE_MSGDLG" = "yes"; then
39631 cat >>confdefs.h <<\_ACEOF
39632#define wxUSE_MSGDLG 1
39633_ACEOF
39634
39635fi
39636
39637if test "$wxUSE_NUMBERDLG" = "yes"; then
39638 cat >>confdefs.h <<\_ACEOF
39639#define wxUSE_NUMBERDLG 1
39640_ACEOF
39641
39642fi
39643
39644if test "$wxUSE_PROGRESSDLG" = "yes"; then
39645 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39646 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
39647echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
39648 else
39649 cat >>confdefs.h <<\_ACEOF
39650#define wxUSE_PROGRESSDLG 1
39651_ACEOF
39652
39653 fi
39654fi
39655
39656if test "$wxUSE_SPLASH" = "yes"; then
39657 cat >>confdefs.h <<\_ACEOF
39658#define wxUSE_SPLASH 1
39659_ACEOF
39660
2057db16 39661 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
39662fi
39663
39664if test "$wxUSE_STARTUP_TIPS" = "yes"; then
39665 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39666 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
39667echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
39668 else
39669 cat >>confdefs.h <<\_ACEOF
39670#define wxUSE_STARTUP_TIPS 1
39671_ACEOF
39672
39673 fi
39674fi
39675
39676if test "$wxUSE_TEXTDLG" = "yes"; then
39677 cat >>confdefs.h <<\_ACEOF
39678#define wxUSE_TEXTDLG 1
39679_ACEOF
39680
39681fi
39682
39683if test "$wxUSE_WIZARDDLG" = "yes"; then
39684 cat >>confdefs.h <<\_ACEOF
39685#define wxUSE_WIZARDDLG 1
39686_ACEOF
39687
39688 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
39689fi
39690
39691
ce756cb0
RN
39692if test "$wxUSE_MEDIACTRL" = "yes"; then
39693 if test "$wxUSE_MSW" = 1; then
39694 wxUSE_DIRECTSHOW="yes"
39695
39696for ac_header in dshow.h
39697do
39698as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39699echo "$as_me:$LINENO: checking for $ac_header" >&5
39700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39701if eval "test \"\${$as_ac_Header+set}\" = set"; then
39702 echo $ECHO_N "(cached) $ECHO_C" >&6
39703else
39704 cat >conftest.$ac_ext <<_ACEOF
39705/* confdefs.h. */
39706_ACEOF
39707cat confdefs.h >>conftest.$ac_ext
39708cat >>conftest.$ac_ext <<_ACEOF
39709/* end confdefs.h. */
39710#include <windows.h>
39711
39712#include <$ac_header>
39713_ACEOF
39714rm -f conftest.$ac_objext
39715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39716 (eval $ac_compile) 2>conftest.er1
39717 ac_status=$?
39718 grep -v '^ *+' conftest.er1 >conftest.err
39719 rm -f conftest.er1
39720 cat conftest.err >&5
39721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39722 (exit $ac_status); } &&
9dd0f6c2 39723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39725 (eval $ac_try) 2>&5
39726 ac_status=$?
39727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39728 (exit $ac_status); }; } &&
39729 { ac_try='test -s conftest.$ac_objext'
39730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39731 (eval $ac_try) 2>&5
39732 ac_status=$?
39733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39734 (exit $ac_status); }; }; then
39735 eval "$as_ac_Header=yes"
39736else
39737 echo "$as_me: failed program was:" >&5
39738sed 's/^/| /' conftest.$ac_ext >&5
39739
39740eval "$as_ac_Header=no"
39741fi
39742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39743fi
39744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39745echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39746if test `eval echo '${'$as_ac_Header'}'` = yes; then
39747 cat >>confdefs.h <<_ACEOF
39748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39749_ACEOF
39750
39751else
39752
39753 wxUSE_DIRECTSHOW="no"
39754 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
39755echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
39756
39757fi
39758
39759done
39760
39761
39762 if test "$wxUSE_DIRECTSHOW" = "yes"; then
39763 cat >>confdefs.h <<\_ACEOF
39764#define wxUSE_DIRECTSHOW 1
39765_ACEOF
39766
39767 LIBS="$LIBS -lstrmiids"
39768 fi
39769 fi
39770
39771 if test "$wxUSE_GTK" = 1; then
39772 wxUSE_GSTREAMER="yes"
39773
ce756cb0 39774
dae87f93 39775 succeeded=no
ce756cb0 39776
dae87f93
RN
39777 if test -z "$PKG_CONFIG"; then
39778 # Extract the first word of "pkg-config", so it can be a program name with args.
39779set dummy pkg-config; ac_word=$2
39780echo "$as_me:$LINENO: checking for $ac_word" >&5
39781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39782if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39783 echo $ECHO_N "(cached) $ECHO_C" >&6
39784else
39785 case $PKG_CONFIG in
39786 [\\/]* | ?:[\\/]*)
39787 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39788 ;;
39789 *)
39790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39791for as_dir in $PATH
39792do
39793 IFS=$as_save_IFS
39794 test -z "$as_dir" && as_dir=.
39795 for ac_exec_ext in '' $ac_executable_extensions; do
39796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39797 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39799 break 2
39800 fi
39801done
39802done
39803
39804 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39805 ;;
39806esac
39807fi
39808PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39809
39810if test -n "$PKG_CONFIG"; then
39811 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39812echo "${ECHO_T}$PKG_CONFIG" >&6
39813else
39814 echo "$as_me:$LINENO: result: no" >&5
39815echo "${ECHO_T}no" >&6
39816fi
39817
39818 fi
39819
39820 if test "$PKG_CONFIG" = "no" ; then
39821 echo "*** The pkg-config script could not be found. Make sure it is"
39822 echo "*** in your path, or set the PKG_CONFIG environment variable"
39823 echo "*** to the full path to pkg-config."
39824 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39825 else
39826 PKG_CONFIG_MIN_VERSION=0.9.0
39827 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39828 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
39829echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
39830
39831 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
39832 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39833echo "${ECHO_T}yes" >&6
dae87f93 39834 succeeded=yes
ce756cb0 39835
dae87f93
RN
39836 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
39837echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
39838 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
39839 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
39840echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
39841
39842 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
39843echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
39844 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
39845 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
39846echo "${ECHO_T}$GSTREAMER_LIBS" >&6
39847 else
39848 GSTREAMER_CFLAGS=""
39849 GSTREAMER_LIBS=""
39850 ## If we have a custom action on failure, don't print errors, but
39851 ## do set a variable so people can do so.
39852 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 39853
dae87f93
RN
39854 fi
39855
39856
39857
39858 else
39859 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39860 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39861 fi
39862 fi
39863
39864 if test $succeeded = yes; then
39865
39866 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
39867 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 39868
ce756cb0 39869 else
dae87f93
RN
39870
39871 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
39872echo "$as_me: WARNING: GStreamer installation not found" >&2;}
39873 wxUSE_GSTREAMER="no"
39874
39875 fi
39876
39877
39878
39879
39880
39881 if test "x$GST_INSPECT" == "x"; then
39882 # Extract the first word of "gst-inspect", so it can be a program name with args.
39883set dummy gst-inspect; ac_word=$2
39884echo "$as_me:$LINENO: checking for $ac_word" >&5
39885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39886if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
39887 echo $ECHO_N "(cached) $ECHO_C" >&6
39888else
39889 if test -n "$GST_INSPECT"; then
39890 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
39891else
39892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39893for as_dir in $PATH
39894do
39895 IFS=$as_save_IFS
39896 test -z "$as_dir" && as_dir=.
39897 for ac_exec_ext in '' $ac_executable_extensions; do
39898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39899 ac_cv_prog_GST_INSPECT="gst-inspect"
39900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39901 break 2
ce756cb0 39902 fi
dae87f93
RN
39903done
39904done
39905
39906fi
39907fi
39908GST_INSPECT=$ac_cv_prog_GST_INSPECT
39909if test -n "$GST_INSPECT"; then
39910 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
39911echo "${ECHO_T}$GST_INSPECT" >&6
39912else
39913 echo "$as_me:$LINENO: result: no" >&5
39914echo "${ECHO_T}no" >&6
39915fi
39916
39917 fi
39918
39919 if test "x$GST_INSPECT" != "x"; then
39920 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
39921echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
39922 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
39923 echo "$as_me:$LINENO: result: found." >&5
39924echo "${ECHO_T}found." >&6
ce756cb0 39925
ce756cb0 39926 else
dae87f93
RN
39927 echo "$as_me:$LINENO: result: not found." >&5
39928echo "${ECHO_T}not found." >&6
39929
39930 wxUSE_GSTREAMER="no"
39931 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
39932echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
39933
39934 fi
39935 fi
39936
39937
39938 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
39939echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
39940if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
39941 echo $ECHO_N "(cached) $ECHO_C" >&6
39942else
39943 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
39944/* confdefs.h. */
39945_ACEOF
39946cat confdefs.h >>conftest.$ac_ext
39947cat >>conftest.$ac_ext <<_ACEOF
39948/* end confdefs.h. */
dae87f93 39949#include <gst/gst.h>
ce756cb0 39950
dae87f93 39951#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
39952_ACEOF
39953rm -f conftest.$ac_objext
39954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39955 (eval $ac_compile) 2>conftest.er1
39956 ac_status=$?
39957 grep -v '^ *+' conftest.er1 >conftest.err
39958 rm -f conftest.er1
39959 cat conftest.err >&5
39960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39961 (exit $ac_status); } &&
9dd0f6c2 39962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39964 (eval $ac_try) 2>&5
39965 ac_status=$?
39966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967 (exit $ac_status); }; } &&
39968 { ac_try='test -s conftest.$ac_objext'
39969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39970 (eval $ac_try) 2>&5
39971 ac_status=$?
39972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39973 (exit $ac_status); }; }; then
dae87f93 39974 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
39975else
39976 echo "$as_me: failed program was:" >&5
39977sed 's/^/| /' conftest.$ac_ext >&5
39978
dae87f93 39979ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
39980fi
39981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
39982fi
39983echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
39984echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
39985if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
39986 :
39987else
ce756cb0 39988
dae87f93
RN
39989 wxUSE_GSTREAMER="no"
39990 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
39991echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 39992
dae87f93 39993fi
ce756cb0 39994
dae87f93
RN
39995
39996
39997 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
39998echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
39999
40000ac_find_libraries=
40001for ac_dir in $SEARCH_LIB /usr/lib;
40002 do
40003 for ac_extension in a so sl dylib; do
40004 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
40005 ac_find_libraries=$ac_dir
40006 break 2
40007 fi
40008 done
40009 done
40010
ce756cb0 40011
dae87f93
RN
40012 if test "$ac_find_libraries" = "" ; then
40013 echo "$as_me:$LINENO: result: no" >&5
40014echo "${ECHO_T}no" >&6
40015 wxUSE_GSTREAMER="no"
40016 else
40017 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40018echo "${ECHO_T}yes" >&6
dae87f93 40019 fi
ce756cb0 40020
dae87f93
RN
40021 if test "$wxUSE_GSTREAMER" = "yes"; then
40022 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
40023#define wxUSE_GSTREAMER 1
40024_ACEOF
40025
dae87f93
RN
40026 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
40027echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
40028 fi
40029 fi
40030 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
40031 cat >>confdefs.h <<\_ACEOF
40032#define wxUSE_MEDIACTRL 1
40033_ACEOF
40034
40035fi
40036
40037
a848cd7e
SC
40038if test "$cross_compiling" = "yes"; then
40039 OSINFO="\"$host\""
40040else
40041 OSINFO=`uname -s -r -m`
40042 OSINFO="\"$OSINFO\""
40043fi
40044
40045cat >>confdefs.h <<_ACEOF
40046#define WXWIN_OS_DESCRIPTION $OSINFO
40047_ACEOF
40048
40049
40050
40051if test "x$prefix" != "xNONE"; then
40052 wxPREFIX=$prefix
40053else
40054 wxPREFIX=$ac_default_prefix
40055fi
40056
40057cat >>confdefs.h <<_ACEOF
40058#define wxINSTALL_PREFIX "$wxPREFIX"
40059_ACEOF
40060
40061
a848cd7e
SC
40062
40063
40064CORE_BASE_LIBS="net base"
40065CORE_GUI_LIBS="adv core"
40066
40067if test "$wxUSE_XML" = "yes" ; then
40068 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
40069fi
40070if test "$wxUSE_ODBC" != "no" ; then
40071 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
40072 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
40073fi
40074if test "$wxUSE_HTML" = "yes" ; then
40075 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
40076fi
61639efb
VZ
40077if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40078 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
40079fi
9a8f0513
VS
40080if test "$wxUSE_XRC" = "yes" ; then
40081 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
40082fi
a848cd7e
SC
40083
40084if test "$wxUSE_GUI" != "yes"; then
40085 CORE_GUI_LIBS=""
40086fi
40087
40088
40089
40090
40091
40092
40093
40094
40095if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 40096 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
40097 if test "$USE_DARWIN" = 1; then
40098 LDFLAGS="$LDFLAGS -framework QuickTime"
40099 else
40100 LDFLAGS="$LDFLAGS -lQuickTimeLib"
40101 fi
07bea8f0 40102 fi
5dcf30a0 40103 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
40104 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
40105 else
40106 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 40107 fi
59746b65
MW
40108elif test "$USE_DARWIN" = 1; then
40109 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System"
a848cd7e
SC
40110fi
40111if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 40112 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
40113 if test "$wxUSE_MEDIACTRL" = "yes"; then
40114 LDFLAGS="$LDFLAGS -framework QuickTime"
40115 fi
a848cd7e
SC
40116fi
40117
40118
40119LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
40120
40121have_cos=0
40122have_floor=0
40123
40124for ac_func in cos
40125do
40126as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40127echo "$as_me:$LINENO: checking for $ac_func" >&5
40128echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40129if eval "test \"\${$as_ac_var+set}\" = set"; then
40130 echo $ECHO_N "(cached) $ECHO_C" >&6
40131else
40132 cat >conftest.$ac_ext <<_ACEOF
40133/* confdefs.h. */
40134_ACEOF
40135cat confdefs.h >>conftest.$ac_ext
40136cat >>conftest.$ac_ext <<_ACEOF
40137/* end confdefs.h. */
ac1cb8d3
VS
40138/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40140#define $ac_func innocuous_$ac_func
40141
a848cd7e
SC
40142/* System header to define __stub macros and hopefully few prototypes,
40143 which can conflict with char $ac_func (); below.
40144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40145 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40146
a848cd7e
SC
40147#ifdef __STDC__
40148# include <limits.h>
40149#else
40150# include <assert.h>
40151#endif
ac1cb8d3
VS
40152
40153#undef $ac_func
40154
a848cd7e
SC
40155/* Override any gcc2 internal prototype to avoid an error. */
40156#ifdef __cplusplus
40157extern "C"
40158{
40159#endif
40160/* We use char because int might match the return type of a gcc2
40161 builtin and then its argument prototype would still apply. */
40162char $ac_func ();
40163/* The GNU C library defines this for functions which it implements
40164 to always fail with ENOSYS. Some functions are actually named
40165 something starting with __ and the normal name is an alias. */
40166#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40167choke me
40168#else
40169char (*f) () = $ac_func;
40170#endif
40171#ifdef __cplusplus
40172}
40173#endif
40174
40175int
40176main ()
40177{
40178return f != $ac_func;
40179 ;
40180 return 0;
40181}
40182_ACEOF
40183rm -f conftest.$ac_objext conftest$ac_exeext
40184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40185 (eval $ac_link) 2>conftest.er1
a848cd7e 40186 ac_status=$?
ac1cb8d3
VS
40187 grep -v '^ *+' conftest.er1 >conftest.err
40188 rm -f conftest.er1
40189 cat conftest.err >&5
a848cd7e
SC
40190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40191 (exit $ac_status); } &&
9dd0f6c2 40192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40194 (eval $ac_try) 2>&5
40195 ac_status=$?
40196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40197 (exit $ac_status); }; } &&
40198 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40200 (eval $ac_try) 2>&5
40201 ac_status=$?
40202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40203 (exit $ac_status); }; }; then
40204 eval "$as_ac_var=yes"
40205else
40206 echo "$as_me: failed program was:" >&5
40207sed 's/^/| /' conftest.$ac_ext >&5
40208
40209eval "$as_ac_var=no"
40210fi
ac1cb8d3
VS
40211rm -f conftest.err conftest.$ac_objext \
40212 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40213fi
40214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40215echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40216if test `eval echo '${'$as_ac_var'}'` = yes; then
40217 cat >>confdefs.h <<_ACEOF
40218#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40219_ACEOF
40220 have_cos=1
40221fi
40222done
40223
40224
40225for ac_func in floor
40226do
40227as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40228echo "$as_me:$LINENO: checking for $ac_func" >&5
40229echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40230if eval "test \"\${$as_ac_var+set}\" = set"; then
40231 echo $ECHO_N "(cached) $ECHO_C" >&6
40232else
40233 cat >conftest.$ac_ext <<_ACEOF
40234/* confdefs.h. */
40235_ACEOF
40236cat confdefs.h >>conftest.$ac_ext
40237cat >>conftest.$ac_ext <<_ACEOF
40238/* end confdefs.h. */
ac1cb8d3
VS
40239/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40241#define $ac_func innocuous_$ac_func
40242
a848cd7e
SC
40243/* System header to define __stub macros and hopefully few prototypes,
40244 which can conflict with char $ac_func (); below.
40245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40246 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40247
a848cd7e
SC
40248#ifdef __STDC__
40249# include <limits.h>
40250#else
40251# include <assert.h>
40252#endif
ac1cb8d3
VS
40253
40254#undef $ac_func
40255
a848cd7e
SC
40256/* Override any gcc2 internal prototype to avoid an error. */
40257#ifdef __cplusplus
40258extern "C"
40259{
40260#endif
40261/* We use char because int might match the return type of a gcc2
40262 builtin and then its argument prototype would still apply. */
40263char $ac_func ();
40264/* The GNU C library defines this for functions which it implements
40265 to always fail with ENOSYS. Some functions are actually named
40266 something starting with __ and the normal name is an alias. */
40267#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40268choke me
40269#else
40270char (*f) () = $ac_func;
40271#endif
40272#ifdef __cplusplus
40273}
40274#endif
40275
40276int
40277main ()
40278{
40279return f != $ac_func;
40280 ;
40281 return 0;
40282}
40283_ACEOF
40284rm -f conftest.$ac_objext conftest$ac_exeext
40285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40286 (eval $ac_link) 2>conftest.er1
a848cd7e 40287 ac_status=$?
ac1cb8d3
VS
40288 grep -v '^ *+' conftest.er1 >conftest.err
40289 rm -f conftest.er1
40290 cat conftest.err >&5
a848cd7e
SC
40291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40292 (exit $ac_status); } &&
9dd0f6c2 40293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40295 (eval $ac_try) 2>&5
40296 ac_status=$?
40297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40298 (exit $ac_status); }; } &&
40299 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40301 (eval $ac_try) 2>&5
40302 ac_status=$?
40303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40304 (exit $ac_status); }; }; then
40305 eval "$as_ac_var=yes"
40306else
40307 echo "$as_me: failed program was:" >&5
40308sed 's/^/| /' conftest.$ac_ext >&5
40309
40310eval "$as_ac_var=no"
40311fi
ac1cb8d3
VS
40312rm -f conftest.err conftest.$ac_objext \
40313 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40314fi
40315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40316echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40317if test `eval echo '${'$as_ac_var'}'` = yes; then
40318 cat >>confdefs.h <<_ACEOF
40319#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40320_ACEOF
40321 have_floor=1
40322fi
40323done
40324
40325echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40326echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40327if test "$have_cos" = 1 -a "$have_floor" = 1; then
40328 echo "$as_me:$LINENO: result: yes" >&5
40329echo "${ECHO_T}yes" >&6
40330else
40331 echo "$as_me:$LINENO: result: no" >&5
40332echo "${ECHO_T}no" >&6
40333 LIBS="$LIBS -lm"
40334 # use different functions to avoid configure caching
40335 have_sin=0
40336 have_ceil=0
40337
40338for ac_func in sin
40339do
40340as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40341echo "$as_me:$LINENO: checking for $ac_func" >&5
40342echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40343if eval "test \"\${$as_ac_var+set}\" = set"; then
40344 echo $ECHO_N "(cached) $ECHO_C" >&6
40345else
40346 cat >conftest.$ac_ext <<_ACEOF
40347/* confdefs.h. */
40348_ACEOF
40349cat confdefs.h >>conftest.$ac_ext
40350cat >>conftest.$ac_ext <<_ACEOF
40351/* end confdefs.h. */
ac1cb8d3
VS
40352/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40354#define $ac_func innocuous_$ac_func
40355
a848cd7e
SC
40356/* System header to define __stub macros and hopefully few prototypes,
40357 which can conflict with char $ac_func (); below.
40358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40359 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40360
a848cd7e
SC
40361#ifdef __STDC__
40362# include <limits.h>
40363#else
40364# include <assert.h>
40365#endif
ac1cb8d3
VS
40366
40367#undef $ac_func
40368
a848cd7e
SC
40369/* Override any gcc2 internal prototype to avoid an error. */
40370#ifdef __cplusplus
40371extern "C"
40372{
40373#endif
40374/* We use char because int might match the return type of a gcc2
40375 builtin and then its argument prototype would still apply. */
40376char $ac_func ();
40377/* The GNU C library defines this for functions which it implements
40378 to always fail with ENOSYS. Some functions are actually named
40379 something starting with __ and the normal name is an alias. */
40380#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40381choke me
40382#else
40383char (*f) () = $ac_func;
40384#endif
40385#ifdef __cplusplus
40386}
40387#endif
40388
40389int
40390main ()
40391{
40392return f != $ac_func;
40393 ;
40394 return 0;
40395}
40396_ACEOF
40397rm -f conftest.$ac_objext conftest$ac_exeext
40398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40399 (eval $ac_link) 2>conftest.er1
a848cd7e 40400 ac_status=$?
ac1cb8d3
VS
40401 grep -v '^ *+' conftest.er1 >conftest.err
40402 rm -f conftest.er1
40403 cat conftest.err >&5
a848cd7e
SC
40404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40405 (exit $ac_status); } &&
9dd0f6c2 40406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40408 (eval $ac_try) 2>&5
40409 ac_status=$?
40410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40411 (exit $ac_status); }; } &&
40412 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40414 (eval $ac_try) 2>&5
40415 ac_status=$?
40416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40417 (exit $ac_status); }; }; then
40418 eval "$as_ac_var=yes"
40419else
40420 echo "$as_me: failed program was:" >&5
40421sed 's/^/| /' conftest.$ac_ext >&5
40422
40423eval "$as_ac_var=no"
40424fi
ac1cb8d3
VS
40425rm -f conftest.err conftest.$ac_objext \
40426 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40427fi
40428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40429echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40430if test `eval echo '${'$as_ac_var'}'` = yes; then
40431 cat >>confdefs.h <<_ACEOF
40432#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40433_ACEOF
40434 have_sin=1
40435fi
40436done
40437
40438
40439for ac_func in ceil
40440do
40441as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40442echo "$as_me:$LINENO: checking for $ac_func" >&5
40443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40444if eval "test \"\${$as_ac_var+set}\" = set"; then
40445 echo $ECHO_N "(cached) $ECHO_C" >&6
40446else
40447 cat >conftest.$ac_ext <<_ACEOF
40448/* confdefs.h. */
40449_ACEOF
40450cat confdefs.h >>conftest.$ac_ext
40451cat >>conftest.$ac_ext <<_ACEOF
40452/* end confdefs.h. */
ac1cb8d3
VS
40453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40455#define $ac_func innocuous_$ac_func
40456
a848cd7e
SC
40457/* System header to define __stub macros and hopefully few prototypes,
40458 which can conflict with char $ac_func (); below.
40459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40460 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40461
a848cd7e
SC
40462#ifdef __STDC__
40463# include <limits.h>
40464#else
40465# include <assert.h>
40466#endif
ac1cb8d3
VS
40467
40468#undef $ac_func
40469
a848cd7e
SC
40470/* Override any gcc2 internal prototype to avoid an error. */
40471#ifdef __cplusplus
40472extern "C"
40473{
40474#endif
40475/* We use char because int might match the return type of a gcc2
40476 builtin and then its argument prototype would still apply. */
40477char $ac_func ();
40478/* The GNU C library defines this for functions which it implements
40479 to always fail with ENOSYS. Some functions are actually named
40480 something starting with __ and the normal name is an alias. */
40481#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40482choke me
40483#else
40484char (*f) () = $ac_func;
40485#endif
40486#ifdef __cplusplus
40487}
40488#endif
40489
40490int
40491main ()
40492{
40493return f != $ac_func;
40494 ;
40495 return 0;
40496}
40497_ACEOF
40498rm -f conftest.$ac_objext conftest$ac_exeext
40499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40500 (eval $ac_link) 2>conftest.er1
a848cd7e 40501 ac_status=$?
ac1cb8d3
VS
40502 grep -v '^ *+' conftest.er1 >conftest.err
40503 rm -f conftest.er1
40504 cat conftest.err >&5
a848cd7e
SC
40505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40506 (exit $ac_status); } &&
9dd0f6c2 40507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40509 (eval $ac_try) 2>&5
40510 ac_status=$?
40511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40512 (exit $ac_status); }; } &&
40513 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40515 (eval $ac_try) 2>&5
40516 ac_status=$?
40517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40518 (exit $ac_status); }; }; then
40519 eval "$as_ac_var=yes"
40520else
40521 echo "$as_me: failed program was:" >&5
40522sed 's/^/| /' conftest.$ac_ext >&5
40523
40524eval "$as_ac_var=no"
40525fi
ac1cb8d3
VS
40526rm -f conftest.err conftest.$ac_objext \
40527 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40528fi
40529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40530echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40531if test `eval echo '${'$as_ac_var'}'` = yes; then
40532 cat >>confdefs.h <<_ACEOF
40533#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40534_ACEOF
40535 have_ceil=1
40536fi
40537done
40538
40539 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
40540echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
40541 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
40542 echo "$as_me:$LINENO: result: yes" >&5
40543echo "${ECHO_T}yes" >&6
40544 else
40545 echo "$as_me:$LINENO: result: no" >&5
40546echo "${ECHO_T}no" >&6
40547 # not sure we should warn the user, crash, etc.
40548 fi
40549fi
40550
40551if test "$wxUSE_GUI" = "yes"; then
40552
40553
8bce5cda
MW
40554 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
40555 dynamic erase event exec font image minimal mobile \
40556 mobile/wxedit mobile/styles propsize render \
40557 richedit rotate shaped vscroll widgets"
a848cd7e
SC
40558
40559 if test "$wxUSE_MONOLITHIC" != "yes"; then
40560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
40561 fi
0b78747f 40562 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
40563 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
40564 if test "$wxUSE_UNIVERSAL" != "yes"; then
40565 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
40566 fi
40567 fi
40568 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
40569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 40570 fi
a848cd7e
SC
40571else
40572 SAMPLES_SUBDIRS="console"
40573fi
40574
40575
ceec2216 40576INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
40577-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
40578
40579if test "$GXX" = yes ; then
5294a27e
VZ
40580 CWARNINGS="-Wall"
40581 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
40582 fi
40583
40584EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
40585
0c3c69fc 40586CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 40587CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 40588CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 40589
95986553
DE
40590if test "x$MWCC" = "xyes"; then
40591
40592 CC="$CC -cwd source -I-"
40593 CXX="$CXX -cwd source -I-"
40594fi
40595
a848cd7e 40596
0c3c69fc 40597LIBS=`echo $LIBS`
a848cd7e
SC
40598EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
40599EXTRALIBS_XML="$EXPAT_LINK"
40600EXTRALIBS_HTML="$MSPACK_LINK"
40601EXTRALIBS_ODBC="$ODBC_LINK"
40602if test "$wxUSE_GUI" = "yes"; then
2e350179 40603 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
40604fi
40605if test "$wxUSE_OPENGL" = "yes"; then
40606 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
40607fi
40608
40609LDFLAGS="$LDFLAGS $PROFILE"
40610
40611if test "$wxUSE_GTK" = 1; then
40612 WXCONFIG_INCLUDE=
40613else
40614 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
40615fi
40616
40617WXCONFIG_EXTRALIBS="$LIBS"
40618
40619if test "$wxUSE_REGEX" = "builtin" ; then
74802184 40620 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
40621fi
40622if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 40623 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
40624fi
40625if test "$wxUSE_ODBC" = "builtin" ; then
74802184 40626 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
40627fi
40628if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 40629 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
40630fi
40631if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 40632 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
40633fi
40634if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 40635 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
40636fi
40637if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 40638 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
40639fi
40640
40641for i in $wxconfig_3rdparty ; do
74802184 40642 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
40643done
40644
40645
40646if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
40647 WXUNIV=1
40648else
40649 WXUNIV=0
40650fi
40651
40652
40653
40654
40655
40656
40657
40658
40659
40660if test $wxUSE_MONOLITHIC = "yes" ; then
40661 MONOLITHIC=1
40662else
40663 MONOLITHIC=0
40664fi
40665
40666if test $wxUSE_PLUGINS = "yes" ; then
40667 USE_PLUGINS=1
40668else
40669 USE_PLUGINS=0
40670fi
40671
40672if test $wxUSE_ODBC != "no" ; then
40673 USE_ODBC=1
40674else
40675 USE_ODBC=0
40676fi
40677
16358932
VZ
40678if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40679 USE_QA=1
40680else
40681 USE_QA=0
40682fi
40683
a848cd7e
SC
40684if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
40685 OFFICIAL_BUILD=1
40686else
40687 OFFICIAL_BUILD=0
40688fi
40689
40690
40691
40692
40693
40694
40695
40696
40697
40698
40699
40700
40701
40702
40703
40704
40705
40706
40707
ceec2216 40708
d1c38808 40709
a848cd7e
SC
40710
40711
40712TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
40713
40714
40715
40716
40717
40718
40719
40720
4d4ff94c
VZ
40721case "$TOOLKIT" in
40722 GTK)
40723 TOOLKIT_USER="GTK+"
40724 if test "$WXGTK20" = 1; then
40725 TOOLKIT_USER="$TOOLKIT_USER 2"
40726 fi
9a8f0513 40727 ;;
4d4ff94c
VZ
40728
40729 *)
40730 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 40731 ;;
4d4ff94c 40732esac
a848cd7e 40733
9a8f0513 40734
1e9e8aba
DE
40735
40736
a848cd7e
SC
40737 if test "x$BAKEFILE_HOST" = "x"; then
40738 BAKEFILE_HOST="${host}"
40739 fi
40740
40741 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
40742
40743 if test -n "$ac_tool_prefix"; then
40744 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
40745set dummy ${ac_tool_prefix}ranlib; ac_word=$2
40746echo "$as_me:$LINENO: checking for $ac_word" >&5
40747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40748if test "${ac_cv_prog_RANLIB+set}" = set; then
40749 echo $ECHO_N "(cached) $ECHO_C" >&6
40750else
40751 if test -n "$RANLIB"; then
40752 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
40753else
40754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40755for as_dir in $PATH
40756do
40757 IFS=$as_save_IFS
40758 test -z "$as_dir" && as_dir=.
40759 for ac_exec_ext in '' $ac_executable_extensions; do
40760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40761 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
40762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40763 break 2
40764 fi
40765done
40766done
40767
40768fi
40769fi
40770RANLIB=$ac_cv_prog_RANLIB
40771if test -n "$RANLIB"; then
40772 echo "$as_me:$LINENO: result: $RANLIB" >&5
40773echo "${ECHO_T}$RANLIB" >&6
40774else
40775 echo "$as_me:$LINENO: result: no" >&5
40776echo "${ECHO_T}no" >&6
40777fi
40778
40779fi
40780if test -z "$ac_cv_prog_RANLIB"; then
40781 ac_ct_RANLIB=$RANLIB
40782 # Extract the first word of "ranlib", so it can be a program name with args.
40783set dummy ranlib; ac_word=$2
40784echo "$as_me:$LINENO: checking for $ac_word" >&5
40785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40786if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
40787 echo $ECHO_N "(cached) $ECHO_C" >&6
40788else
40789 if test -n "$ac_ct_RANLIB"; then
40790 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
40791else
40792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40793for as_dir in $PATH
40794do
40795 IFS=$as_save_IFS
40796 test -z "$as_dir" && as_dir=.
40797 for ac_exec_ext in '' $ac_executable_extensions; do
40798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40799 ac_cv_prog_ac_ct_RANLIB="ranlib"
40800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40801 break 2
40802 fi
40803done
40804done
40805
40806 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
40807fi
40808fi
40809ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
40810if test -n "$ac_ct_RANLIB"; then
40811 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
40812echo "${ECHO_T}$ac_ct_RANLIB" >&6
40813else
40814 echo "$as_me:$LINENO: result: no" >&5
40815echo "${ECHO_T}no" >&6
40816fi
40817
40818 RANLIB=$ac_ct_RANLIB
40819else
40820 RANLIB="$ac_cv_prog_RANLIB"
40821fi
40822
40823 # Find a good install program. We prefer a C program (faster),
40824# so one script is as good as another. But avoid the broken or
40825# incompatible versions:
40826# SysV /etc/install, /usr/sbin/install
40827# SunOS /usr/etc/install
40828# IRIX /sbin/install
40829# AIX /bin/install
40830# AmigaOS /C/install, which installs bootblocks on floppy discs
40831# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
40832# AFS /usr/afsws/bin/install, which mishandles nonexistent args
40833# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 40834# OS/2's system install, which has a completely different semantic
a848cd7e
SC
40835# ./install, which can be erroneously created by make from ./install.sh.
40836echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
40837echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
40838if test -z "$INSTALL"; then
40839if test "${ac_cv_path_install+set}" = set; then
40840 echo $ECHO_N "(cached) $ECHO_C" >&6
40841else
40842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40843for as_dir in $PATH
40844do
40845 IFS=$as_save_IFS
40846 test -z "$as_dir" && as_dir=.
40847 # Account for people who put trailing slashes in PATH elements.
40848case $as_dir/ in
40849 ./ | .// | /cC/* | \
40850 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 40851 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
40852 /usr/ucb/* ) ;;
40853 *)
40854 # OSF1 and SCO ODT 3.0 have their own names for install.
40855 # Don't use installbsd from OSF since it installs stuff as root
40856 # by default.
40857 for ac_prog in ginstall scoinst install; do
40858 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
40859 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
40860 if test $ac_prog = install &&
40861 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40862 # AIX install. It has an incompatible calling convention.
40863 :
40864 elif test $ac_prog = install &&
40865 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40866 # program-specific install script used by HP pwplus--don't use.
40867 :
40868 else
40869 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
40870 break 3
40871 fi
40872 fi
a848cd7e
SC
40873 done
40874 done
40875 ;;
40876esac
40877done
40878
40879
40880fi
40881 if test "${ac_cv_path_install+set}" = set; then
40882 INSTALL=$ac_cv_path_install
40883 else
40884 # As a last resort, use the slow shell script. We don't cache a
40885 # path for INSTALL within a source directory, because that will
40886 # break other packages using the cache if that directory is
40887 # removed, or if the path is relative.
40888 INSTALL=$ac_install_sh
40889 fi
40890fi
40891echo "$as_me:$LINENO: result: $INSTALL" >&5
40892echo "${ECHO_T}$INSTALL" >&6
40893
40894# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
40895# It thinks the first close brace ends the variable substitution.
40896test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
40897
40898test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
40899
40900test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
40901
40902 echo "$as_me:$LINENO: checking whether ln -s works" >&5
40903echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
40904LN_S=$as_ln_s
40905if test "$LN_S" = "ln -s"; then
40906 echo "$as_me:$LINENO: result: yes" >&5
40907echo "${ECHO_T}yes" >&6
40908else
40909 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
40910echo "${ECHO_T}no, using $LN_S" >&6
40911fi
40912
40913
40914 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40915echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 40916set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
40917if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40918 echo $ECHO_N "(cached) $ECHO_C" >&6
40919else
40920 cat >conftest.make <<\_ACEOF
40921all:
40922 @echo 'ac_maketemp="$(MAKE)"'
40923_ACEOF
40924# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40925eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40926if test -n "$ac_maketemp"; then
40927 eval ac_cv_prog_make_${ac_make}_set=yes
40928else
40929 eval ac_cv_prog_make_${ac_make}_set=no
40930fi
40931rm -f conftest.make
40932fi
40933if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40934 echo "$as_me:$LINENO: result: yes" >&5
40935echo "${ECHO_T}yes" >&6
40936 SET_MAKE=
40937else
40938 echo "$as_me:$LINENO: result: no" >&5
40939echo "${ECHO_T}no" >&6
40940 SET_MAKE="MAKE=${MAKE-make}"
40941fi
40942
40943
40944
40945 if test -n "$ac_tool_prefix"; then
40946 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
40947set dummy ${ac_tool_prefix}ar; ac_word=$2
40948echo "$as_me:$LINENO: checking for $ac_word" >&5
40949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40950if test "${ac_cv_prog_AR+set}" = set; then
40951 echo $ECHO_N "(cached) $ECHO_C" >&6
40952else
40953 if test -n "$AR"; then
40954 ac_cv_prog_AR="$AR" # Let the user override the test.
40955else
40956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40957for as_dir in $PATH
40958do
40959 IFS=$as_save_IFS
40960 test -z "$as_dir" && as_dir=.
40961 for ac_exec_ext in '' $ac_executable_extensions; do
40962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40963 ac_cv_prog_AR="${ac_tool_prefix}ar"
40964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40965 break 2
40966 fi
40967done
40968done
40969
40970fi
40971fi
40972AR=$ac_cv_prog_AR
40973if test -n "$AR"; then
40974 echo "$as_me:$LINENO: result: $AR" >&5
40975echo "${ECHO_T}$AR" >&6
40976else
40977 echo "$as_me:$LINENO: result: no" >&5
40978echo "${ECHO_T}no" >&6
40979fi
40980
40981fi
40982if test -z "$ac_cv_prog_AR"; then
40983 ac_ct_AR=$AR
40984 # Extract the first word of "ar", so it can be a program name with args.
40985set dummy ar; ac_word=$2
40986echo "$as_me:$LINENO: checking for $ac_word" >&5
40987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40988if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
40989 echo $ECHO_N "(cached) $ECHO_C" >&6
40990else
40991 if test -n "$ac_ct_AR"; then
40992 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
40993else
40994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40995for as_dir in $PATH
40996do
40997 IFS=$as_save_IFS
40998 test -z "$as_dir" && as_dir=.
40999 for ac_exec_ext in '' $ac_executable_extensions; do
41000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41001 ac_cv_prog_ac_ct_AR="ar"
41002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41003 break 2
41004 fi
41005done
41006done
41007
41008 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
41009fi
41010fi
41011ac_ct_AR=$ac_cv_prog_ac_ct_AR
41012if test -n "$ac_ct_AR"; then
41013 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
41014echo "${ECHO_T}$ac_ct_AR" >&6
41015else
41016 echo "$as_me:$LINENO: result: no" >&5
41017echo "${ECHO_T}no" >&6
41018fi
41019
41020 AR=$ac_ct_AR
41021else
41022 AR="$ac_cv_prog_AR"
41023fi
41024
41025 if test -n "$ac_tool_prefix"; then
41026 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
41027set dummy ${ac_tool_prefix}strip; ac_word=$2
41028echo "$as_me:$LINENO: checking for $ac_word" >&5
41029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41030if test "${ac_cv_prog_STRIP+set}" = set; then
41031 echo $ECHO_N "(cached) $ECHO_C" >&6
41032else
41033 if test -n "$STRIP"; then
41034 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
41035else
41036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41037for as_dir in $PATH
41038do
41039 IFS=$as_save_IFS
41040 test -z "$as_dir" && as_dir=.
41041 for ac_exec_ext in '' $ac_executable_extensions; do
41042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41043 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
41044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41045 break 2
41046 fi
41047done
41048done
41049
41050fi
41051fi
41052STRIP=$ac_cv_prog_STRIP
41053if test -n "$STRIP"; then
41054 echo "$as_me:$LINENO: result: $STRIP" >&5
41055echo "${ECHO_T}$STRIP" >&6
41056else
41057 echo "$as_me:$LINENO: result: no" >&5
41058echo "${ECHO_T}no" >&6
41059fi
41060
41061fi
41062if test -z "$ac_cv_prog_STRIP"; then
41063 ac_ct_STRIP=$STRIP
41064 # Extract the first word of "strip", so it can be a program name with args.
41065set dummy strip; ac_word=$2
41066echo "$as_me:$LINENO: checking for $ac_word" >&5
41067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41068if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
41069 echo $ECHO_N "(cached) $ECHO_C" >&6
41070else
41071 if test -n "$ac_ct_STRIP"; then
41072 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
41073else
41074as_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 for ac_exec_ext in '' $ac_executable_extensions; do
41080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41081 ac_cv_prog_ac_ct_STRIP="strip"
41082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41083 break 2
41084 fi
41085done
41086done
41087
41088 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
41089fi
41090fi
41091ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
41092if test -n "$ac_ct_STRIP"; then
41093 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
41094echo "${ECHO_T}$ac_ct_STRIP" >&6
41095else
41096 echo "$as_me:$LINENO: result: no" >&5
41097echo "${ECHO_T}no" >&6
41098fi
41099
41100 STRIP=$ac_ct_STRIP
41101else
41102 STRIP="$ac_cv_prog_STRIP"
41103fi
41104
41105 if test -n "$ac_tool_prefix"; then
41106 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
41107set dummy ${ac_tool_prefix}nm; ac_word=$2
41108echo "$as_me:$LINENO: checking for $ac_word" >&5
41109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41110if test "${ac_cv_prog_NM+set}" = set; then
41111 echo $ECHO_N "(cached) $ECHO_C" >&6
41112else
41113 if test -n "$NM"; then
41114 ac_cv_prog_NM="$NM" # Let the user override the test.
41115else
41116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41117for as_dir in $PATH
41118do
41119 IFS=$as_save_IFS
41120 test -z "$as_dir" && as_dir=.
41121 for ac_exec_ext in '' $ac_executable_extensions; do
41122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41123 ac_cv_prog_NM="${ac_tool_prefix}nm"
41124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41125 break 2
41126 fi
41127done
41128done
41129
41130fi
41131fi
41132NM=$ac_cv_prog_NM
41133if test -n "$NM"; then
41134 echo "$as_me:$LINENO: result: $NM" >&5
41135echo "${ECHO_T}$NM" >&6
41136else
41137 echo "$as_me:$LINENO: result: no" >&5
41138echo "${ECHO_T}no" >&6
41139fi
41140
41141fi
41142if test -z "$ac_cv_prog_NM"; then
41143 ac_ct_NM=$NM
41144 # Extract the first word of "nm", so it can be a program name with args.
41145set dummy nm; ac_word=$2
41146echo "$as_me:$LINENO: checking for $ac_word" >&5
41147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41148if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
41149 echo $ECHO_N "(cached) $ECHO_C" >&6
41150else
41151 if test -n "$ac_ct_NM"; then
41152 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
41153else
41154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41155for as_dir in $PATH
41156do
41157 IFS=$as_save_IFS
41158 test -z "$as_dir" && as_dir=.
41159 for ac_exec_ext in '' $ac_executable_extensions; do
41160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41161 ac_cv_prog_ac_ct_NM="nm"
41162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41163 break 2
41164 fi
41165done
41166done
41167
41168 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
41169fi
41170fi
41171ac_ct_NM=$ac_cv_prog_ac_ct_NM
41172if test -n "$ac_ct_NM"; then
41173 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
41174echo "${ECHO_T}$ac_ct_NM" >&6
41175else
41176 echo "$as_me:$LINENO: result: no" >&5
41177echo "${ECHO_T}no" >&6
41178fi
41179
41180 NM=$ac_ct_NM
41181else
41182 NM="$ac_cv_prog_NM"
41183fi
41184
41185
41186 case ${BAKEFILE_HOST} in
41187 *-hp-hpux* )
1e9e8aba 41188 INSTALL_DIR="mkdir -p"
a848cd7e
SC
41189 ;;
41190 *) INSTALL_DIR="$INSTALL -d"
41191 ;;
41192 esac
41193
41194
41195 LDFLAGS_GUI=
41196 case ${BAKEFILE_HOST} in
41197 *-*-cygwin* | *-*-mingw32* )
41198 LDFLAGS_GUI="-mwindows"
41199 esac
41200
41201
41202 fi
41203
41204 echo "$as_me:$LINENO: checking if make is GNU make" >&5
41205echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
41206if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
41207 echo $ECHO_N "(cached) $ECHO_C" >&6
41208else
41209
41210 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
41211 egrep -s GNU > /dev/null); then
41212 bakefile_cv_prog_makeisgnu="yes"
41213 else
41214 bakefile_cv_prog_makeisgnu="no"
41215 fi
41216
41217fi
41218echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
41219echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
41220
41221 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
41222 IF_GNU_MAKE=""
41223 else
41224 IF_GNU_MAKE="#"
41225 fi
41226
41227
41228
41229 PLATFORM_UNIX=0
41230 PLATFORM_WIN32=0
41231 PLATFORM_MSDOS=0
41232 PLATFORM_MAC=0
1e9e8aba 41233 PLATFORM_MACOS=0
a848cd7e
SC
41234 PLATFORM_MACOSX=0
41235 PLATFORM_OS2=0
1e9e8aba 41236 PLATFORM_BEOS=0
a848cd7e
SC
41237
41238 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41239 case "${BAKEFILE_HOST}" in
41240 *-*-cygwin* | *-*-mingw32* )
41241 PLATFORM_WIN32=1
41242 ;;
41243 *-pc-msdosdjgpp )
41244 PLATFORM_MSDOS=1
41245 ;;
41246 *-pc-os2_emx | *-pc-os2-emx )
41247 PLATFORM_OS2=1
41248 ;;
41249 powerpc-*-darwin* )
41250 PLATFORM_MAC=1
41251 PLATFORM_MACOSX=1
41252 ;;
1e9e8aba
DE
41253 *-*-beos* )
41254 PLATFORM_BEOS=1
41255 ;;
41256 powerpc-apple-macos* )
41257 PLATFORM_MAC=1
41258 PLATFORM_MACOS=1
41259 ;;
a848cd7e
SC
41260 * )
41261 PLATFORM_UNIX=1
41262 ;;
41263 esac
41264 else
41265 case "$BAKEFILE_FORCE_PLATFORM" in
41266 win32 )
41267 PLATFORM_WIN32=1
41268 ;;
41269 msdos )
41270 PLATFORM_MSDOS=1
41271 ;;
41272 os2 )
41273 PLATFORM_OS2=1
41274 ;;
41275 darwin )
41276 PLATFORM_MAC=1
41277 PLATFORM_MACOSX=1
41278 ;;
41279 unix )
41280 PLATFORM_UNIX=1
41281 ;;
1e9e8aba
DE
41282 beos )
41283 PLATFORM_BEOS=1
41284 ;;
a848cd7e
SC
41285 * )
41286 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41287echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41288 { (exit 1); exit 1; }; }
41289 ;;
41290 esac
41291 fi
41292
41293
41294
41295
41296
41297
41298
41299
41300
1e9e8aba
DE
41301
41302
a848cd7e
SC
41303 # Check whether --enable-omf or --disable-omf was given.
41304if test "${enable_omf+set}" = set; then
41305 enableval="$enable_omf"
41306 bk_os2_use_omf="$enableval"
41307fi;
41308
41309 case "${BAKEFILE_HOST}" in
41310 *-*-darwin* )
41311 CFLAGS="$CFLAGS -fno-common"
41312 CXXFLAGS="$CXXFLAGS -fno-common"
41313 ;;
41314
41315 *-pc-os2_emx | *-pc-os2-emx )
41316 if test "x$bk_os2_use_omf" = "xyes" ; then
41317 AR=emxomfar
41318 RANLIB=:
41319 LDFLAGS="-Zomf $LDFLAGS"
41320 CFLAGS="-Zomf $CFLAGS"
41321 CXXFLAGS="-Zomf $CXXFLAGS"
41322 OS2_LIBEXT="lib"
41323 else
41324 OS2_LIBEXT="a"
41325 fi
41326 ;;
1e9e8aba
DE
41327
41328 i*86-*-beos* )
41329 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41330 ;;
a848cd7e
SC
41331 esac
41332
41333
41334 SO_SUFFIX="so"
41335 SO_SUFFIX_MODULE="so"
41336 EXEEXT=""
41337 LIBPREFIX="lib"
41338 LIBEXT=".a"
41339 DLLPREFIX="lib"
41340 DLLPREFIX_MODULE=""
41341 DLLIMP_SUFFIX=""
41342
41343 case "${BAKEFILE_HOST}" in
41344 *-hp-hpux* )
41345 SO_SUFFIX="sl"
41346 SO_SUFFIX_MODULE="sl"
41347 ;;
41348 *-*-aix* )
41349 SO_SUFFIX="a"
41350 SO_SUFFIX_MODULE="a"
41351 ;;
41352 *-*-cygwin* | *-*-mingw32* )
41353 SO_SUFFIX="dll"
41354 SO_SUFFIX_MODULE="dll"
41355 DLLIMP_SUFFIX="dll.a"
41356 EXEEXT=".exe"
41357 DLLPREFIX=""
41358 ;;
41359 *-pc-msdosdjgpp )
41360 EXEEXT=".exe"
41361 DLLPREFIX=""
41362 ;;
41363 *-pc-os2_emx | *-pc-os2-emx )
41364 SO_SUFFIX="dll"
41365 SO_SUFFIX_MODULE="dll"
41366 DLLIMP_SUFFIX=$OS2_LIBEXT
41367 EXEEXT=".exe"
41368 DLLPREFIX=""
41369 LIBPREFIX=""
41370 LIBEXT=".$OS2_LIBEXT"
41371 ;;
41372 powerpc-*-darwin* )
41373 SO_SUFFIX="dylib"
41374 SO_SUFFIX_MODULE="bundle"
41375 ;;
41376 esac
41377
41378 if test "x$DLLIMP_SUFFIX" = "x" ; then
41379 DLLIMP_SUFFIX="$SO_SUFFIX"
41380 fi
41381
41382
41383
41384
41385
41386
41387
41388
41389
41390
41391
1e9e8aba
DE
41392 PIC_FLAG=""
41393 if test "x$GCC" = "xyes"; then
a848cd7e
SC
41394 PIC_FLAG="-fPIC"
41395 fi
41396
1e9e8aba
DE
41397 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41398 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41399
a848cd7e
SC
41400 case "${BAKEFILE_HOST}" in
41401 *-hp-hpux* )
1e9e8aba 41402 if test "x$GCC" != "xyes"; then
a848cd7e
SC
41403 LDFLAGS="$LDFLAGS -L/usr/lib"
41404
41405 SHARED_LD_CC="${CC} -b -o"
41406 SHARED_LD_CXX="${CXX} -b -o"
41407 PIC_FLAG="+Z"
41408 fi
41409 ;;
41410
41411 *-*-linux* )
41412 if test "x$GCC" != "xyes"; then
41413 echo "$as_me:$LINENO: checking for Intel compiler" >&5
41414echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41415if test "${bakefile_cv_prog_icc+set}" = set; then
41416 echo $ECHO_N "(cached) $ECHO_C" >&6
41417else
41418
41419 cat >conftest.$ac_ext <<_ACEOF
41420/* confdefs.h. */
41421_ACEOF
41422cat confdefs.h >>conftest.$ac_ext
41423cat >>conftest.$ac_ext <<_ACEOF
41424/* end confdefs.h. */
41425
41426int
41427main ()
41428{
41429
41430 #ifndef __INTEL_COMPILER
41431 #error Not icc
41432 #endif
41433
41434 ;
41435 return 0;
41436}
41437_ACEOF
41438rm -f conftest.$ac_objext
41439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41440 (eval $ac_compile) 2>conftest.er1
a848cd7e 41441 ac_status=$?
ac1cb8d3
VS
41442 grep -v '^ *+' conftest.er1 >conftest.err
41443 rm -f conftest.er1
41444 cat conftest.err >&5
a848cd7e
SC
41445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41446 (exit $ac_status); } &&
9dd0f6c2 41447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41449 (eval $ac_try) 2>&5
41450 ac_status=$?
41451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41452 (exit $ac_status); }; } &&
41453 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41455 (eval $ac_try) 2>&5
41456 ac_status=$?
41457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41458 (exit $ac_status); }; }; then
41459 bakefile_cv_prog_icc=yes
41460else
41461 echo "$as_me: failed program was:" >&5
41462sed 's/^/| /' conftest.$ac_ext >&5
41463
41464bakefile_cv_prog_icc=no
41465
41466fi
ac1cb8d3 41467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41468
41469fi
41470echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
41471echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
41472 if test "$bakefile_cv_prog_icc" = "yes"; then
41473 PIC_FLAG="-KPIC"
41474 fi
41475 fi
41476 ;;
41477
41478 *-*-solaris2* )
41479 if test "x$GCC" != xyes ; then
41480 SHARED_LD_CC="${CC} -G -o"
41481 SHARED_LD_CXX="${CXX} -G -o"
41482 PIC_FLAG="-KPIC"
41483 fi
41484 ;;
41485
41486 *-*-darwin* )
41487
41488 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
41489echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
41490if test "${wx_cv_gcc31+set}" = set; then
41491 echo $ECHO_N "(cached) $ECHO_C" >&6
41492else
41493
41494 cat >conftest.$ac_ext <<_ACEOF
41495/* confdefs.h. */
41496_ACEOF
41497cat confdefs.h >>conftest.$ac_ext
41498cat >>conftest.$ac_ext <<_ACEOF
41499/* end confdefs.h. */
41500
41501int
41502main ()
41503{
41504
41505 #if (__GNUC__ < 3) || \
41506 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
41507 #error old gcc
41508 #endif
41509
41510 ;
41511 return 0;
41512}
41513_ACEOF
41514rm -f conftest.$ac_objext
41515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41516 (eval $ac_compile) 2>conftest.er1
a848cd7e 41517 ac_status=$?
ac1cb8d3
VS
41518 grep -v '^ *+' conftest.er1 >conftest.err
41519 rm -f conftest.er1
41520 cat conftest.err >&5
a848cd7e
SC
41521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41522 (exit $ac_status); } &&
9dd0f6c2 41523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41525 (eval $ac_try) 2>&5
41526 ac_status=$?
41527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41528 (exit $ac_status); }; } &&
41529 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41531 (eval $ac_try) 2>&5
41532 ac_status=$?
41533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41534 (exit $ac_status); }; }; then
41535
41536 wx_cv_gcc31=yes
41537
41538else
41539 echo "$as_me: failed program was:" >&5
41540sed 's/^/| /' conftest.$ac_ext >&5
41541
41542
41543 wx_cv_gcc31=no
41544
41545
41546fi
ac1cb8d3 41547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41548
41549fi
41550echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
41551echo "${ECHO_T}$wx_cv_gcc31" >&6
41552 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
41553
41554D='$'
41555cat <<EOF >shared-ld-sh
a848cd7e
SC
41556#!/bin/sh
41557#-----------------------------------------------------------------------------
41558#-- Name: distrib/mac/shared-ld-sh
41559#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
41560#-- Author: Gilles Depeyrot
41561#-- Copyright: (c) 2002 Gilles Depeyrot
41562#-- Licence: any use permitted
41563#-----------------------------------------------------------------------------
41564
41565verbose=0
41566args=""
41567objects=""
41568linking_flag="-dynamiclib"
41569
473276a9
VS
41570while test ${D}# -gt 0; do
41571 case ${D}1 in
a848cd7e
SC
41572
41573 -v)
41574 verbose=1
41575 ;;
41576
41577 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
41578 # collect these options and values
473276a9 41579 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
41580 shift
41581 ;;
41582
41583 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
41584 # collect these options
473276a9 41585 args="${D}{args} ${D}1"
a848cd7e
SC
41586 ;;
41587
41588 -dynamiclib|-bundle)
473276a9 41589 linking_flag="${D}1"
a848cd7e
SC
41590 ;;
41591
41592 -*)
473276a9 41593 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
41594 exit 1
41595 ;;
41596
41597 *.o | *.a | *.dylib)
41598 # collect object files
473276a9 41599 objects="${D}{objects} ${D}1"
a848cd7e
SC
41600 ;;
41601
41602 *)
473276a9 41603 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
41604 exit 1
41605 ;;
41606
41607 esac
41608 shift
41609done
41610
41611#
41612# Link one module containing all the others
41613#
473276a9
VS
41614if test ${D}{verbose} = 1; then
41615 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 41616fi
473276a9
VS
41617c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
41618status=${D}?
41619if test ${D}{status} != 0; then
41620 exit ${D}{status}
a848cd7e
SC
41621fi
41622
41623#
41624# Link the shared library from the single module created
41625#
473276a9
VS
41626if test ${D}{verbose} = 1; then
41627 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 41628fi
473276a9
VS
41629c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
41630status=${D}?
41631if test ${D}{status} != 0; then
41632 exit ${D}{status}
a848cd7e
SC
41633fi
41634
41635#
41636# Remove intermediate module
41637#
473276a9 41638rm -f master.${D}${D}.o
a848cd7e
SC
41639
41640exit 0
41641EOF
473276a9 41642
a848cd7e
SC
41643 chmod +x shared-ld-sh
41644
41645 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
41646 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
41647 SHARED_LD_CXX="$SHARED_LD_CC"
41648 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
41649 else
41650 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
41651 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
41652 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
41653 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
41654 fi
41655
41656 PIC_FLAG="-dynamic -fPIC"
41657 ;;
41658
41659 *-*-aix* )
41660 if test "x$GCC" != "xyes"; then
41661 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
41662set dummy makeC++SharedLib; ac_word=$2
41663echo "$as_me:$LINENO: checking for $ac_word" >&5
41664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41665if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
41666 echo $ECHO_N "(cached) $ECHO_C" >&6
41667else
41668 if test -n "$AIX_CXX_LD"; then
41669 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
41670else
41671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41672for as_dir in $PATH
41673do
41674 IFS=$as_save_IFS
41675 test -z "$as_dir" && as_dir=.
41676 for ac_exec_ext in '' $ac_executable_extensions; do
41677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41678 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
41679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41680 break 2
41681 fi
41682done
41683done
41684
41685 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
41686fi
41687fi
41688AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
41689if test -n "$AIX_CXX_LD"; then
41690 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
41691echo "${ECHO_T}$AIX_CXX_LD" >&6
41692else
41693 echo "$as_me:$LINENO: result: no" >&5
41694echo "${ECHO_T}no" >&6
41695fi
41696
41697 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
41698 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
41699 fi
41700 ;;
41701
41702 *-*-beos* )
1e9e8aba
DE
41703 SHARED_LD_CC="${LD} -nostart -o"
41704 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
41705 ;;
41706
41707 *-*-irix* )
41708 if test "x$GCC" != "xyes"; then
41709 PIC_FLAG="-KPIC"
41710 fi
41711 ;;
41712
41713 *-*-cygwin* | *-*-mingw32* )
41714 PIC_FLAG=""
1e9e8aba
DE
41715 SHARED_LD_CC="\$(CC) -shared -o"
41716 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
41717 ;;
41718
41719 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
41720 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41721 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 41722 PIC_FLAG=""
473276a9
VS
41723
41724D='$'
41725cat <<EOF >dllar.sh
41726#!/bin/sh
41727#
41728# dllar - a tool to build both a .dll and an .a file
41729# from a set of object (.o) files for EMX/OS2.
41730#
41731# Written by Andrew Zabolotny, bit@freya.etu.ru
41732# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
41733#
41734# This script will accept a set of files on the command line.
41735# All the public symbols from the .o files will be exported into
41736# a .DEF file, then linker will be run (through gcc) against them to
41737# build a shared library consisting of all given .o files. All libraries
41738# (.a) will be first decompressed into component .o files then act as
41739# described above. You can optionally give a description (-d "description")
41740# which will be put into .DLL. To see the list of accepted options (as well
41741# as command-line format) simply run this program without options. The .DLL
41742# is built to be imported by name (there is no guarantee that new versions
41743# of the library you build will have same ordinals for same symbols).
41744#
41745# dllar is free software; you can redistribute it and/or modify
41746# it under the terms of the GNU General Public License as published by
41747# the Free Software Foundation; either version 2, or (at your option)
41748# any later version.
41749#
41750# dllar is distributed in the hope that it will be useful,
41751# but WITHOUT ANY WARRANTY; without even the implied warranty of
41752# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41753# GNU General Public License for more details.
41754#
41755# You should have received a copy of the GNU General Public License
41756# along with dllar; see the file COPYING. If not, write to the Free
41757# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41758# 02111-1307, USA.
41759
41760# To successfuly run this program you will need:
41761# - Current drive should have LFN support (HPFS, ext2, network, etc)
41762# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
41763# - gcc
41764# (used to build the .dll)
41765# - emxexp
41766# (used to create .def file from .o files)
41767# - emximp
41768# (used to create .a file from .def file)
41769# - GNU text utilites (cat, sort, uniq)
41770# used to process emxexp output
41771# - GNU file utilities (mv, rm)
41772# - GNU sed
41773# - lxlite (optional, see flag below)
41774# (used for general .dll cleanup)
41775#
41776
41777flag_USE_LXLITE=1;
41778
41779#
41780# helper functions
41781# basnam, variant of basename, which does _not_ remove the path, _iff_
41782# second argument (suffix to remove) is given
41783basnam(){
41784 case ${D}# in
41785 1)
1e9e8aba 41786 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
41787 ;;
41788 2)
41789 echo ${D}1 | sed 's/'${D}2'${D}//'
41790 ;;
41791 *)
41792 echo "error in basnam ${D}*"
41793 exit 8
41794 ;;
41795 esac
41796}
41797
41798# Cleanup temporary files and output
41799CleanUp() {
41800 cd ${D}curDir
41801 for i in ${D}inputFiles ; do
41802 case ${D}i in
41803 *!)
41804 rm -rf \`basnam ${D}i !\`
41805 ;;
41806 *)
41807 ;;
41808 esac
41809 done
41810
41811 # Kill result in case of failure as there is just to many stupid make/nmake
41812 # things out there which doesn't do this.
1e9e8aba 41813 if [ ${D}# -eq 0 ]; then
473276a9
VS
41814 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
41815 fi
41816}
41817
41818# Print usage and exit script with rc=1.
41819PrintHelp() {
b1d22ded
DE
41820 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
41821 echo ' [-name-mangler-script script.sh]'
41822 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
41823 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
41824 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 41825 echo ' [*.o] [*.a]'
473276a9
VS
41826 echo '*> "output_file" should have no extension.'
41827 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
41828 echo ' The import library name is derived from this and is set to "name".a,'
41829 echo ' unless overridden by -import'
41830 echo '*> "importlib_name" should have no extension.'
41831 echo ' If it has the .o, or .a extension, it is automatically removed.'
41832 echo ' This name is used as the import library name and may be longer and'
41833 echo ' more descriptive than the DLL name which has to follow the old '
41834 echo ' 8.3 convention of FAT.'
b1d22ded
DE
41835 echo '*> "script.sh may be given to override the output_file name by a'
41836 echo ' different name. It is mainly useful if the regular make process'
41837 echo ' of some package does not take into account OS/2 restriction of'
41838 echo ' DLL name lengths. It takes the importlib name as input and is'
41839 echo ' supposed to procude a shorter name as output. The script should'
41840 echo ' expect to get importlib_name without extension and should produce'
41841 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
41842 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
41843 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
41844 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
41845 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
41846 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
41847 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
41848 echo ' If the last character of a symbol is "*", all symbols beginning'
41849 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 41850 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 41851 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 41852 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 41853 echo ' C runtime DLLs.'
b1d22ded 41854 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
41855 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
41856 echo ' unchanged to GCC at the end of command line.'
41857 echo '*> If you create a DLL from a library and you do not specify -o,'
41858 echo ' the basename for DLL and import library will be set to library name,'
41859 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
41860 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
41861 echo ' library will be renamed into gcc_s.a.'
41862 echo '--------'
41863 echo 'Example:'
41864 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
41865 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
41866 CleanUp
41867 exit 1
41868}
41869
41870# Execute a command.
41871# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
41872# @Uses Whatever CleanUp() uses.
41873doCommand() {
41874 echo "${D}*"
41875 eval ${D}*
41876 rcCmd=${D}?
41877
1e9e8aba 41878 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
41879 echo "command failed, exit code="${D}rcCmd
41880 CleanUp
41881 exit ${D}rcCmd
41882 fi
41883}
41884
41885# main routine
41886# setup globals
41887cmdLine=${D}*
41888outFile=""
41889outimpFile=""
41890inputFiles=""
b1d22ded 41891renameScript=""
473276a9
VS
41892description=""
41893CC=gcc.exe
41894CFLAGS="-s -Zcrtdll"
41895EXTRA_CFLAGS=""
41896EXPORT_BY_ORDINALS=0
41897exclude_symbols=""
41898library_flags=""
41899curDir=\`pwd\`
41900curDirS=curDir
41901case ${D}curDirS in
41902*/)
41903 ;;
41904*)
41905 curDirS=${D}{curDirS}"/"
41906 ;;
41907esac
41908# Parse commandline
41909libsToLink=0
b1d22ded 41910omfLinking=0
1e9e8aba 41911while [ ${D}1 ]; do
473276a9
VS
41912 case ${D}1 in
41913 -ord*)
41914 EXPORT_BY_ORDINALS=1;
41915 ;;
41916 -o*)
41917 shift
41918 outFile=${D}1
41919 ;;
41920 -i*)
41921 shift
41922 outimpFile=${D}1
41923 ;;
b1d22ded
DE
41924 -name-mangler-script)
41925 shift
41926 renameScript=${D}1
41927 ;;
473276a9
VS
41928 -d*)
41929 shift
41930 description=${D}1
41931 ;;
41932 -f*)
41933 shift
41934 CFLAGS=${D}1
41935 ;;
41936 -c*)
41937 shift
41938 CC=${D}1
41939 ;;
41940 -h*)
41941 PrintHelp
41942 ;;
41943 -ex*)
41944 shift
41945 exclude_symbols=${D}{exclude_symbols}${D}1" "
41946 ;;
41947 -libf*)
41948 shift
41949 library_flags=${D}{library_flags}${D}1" "
41950 ;;
41951 -nocrt*)
41952 CFLAGS="-s"
41953 ;;
41954 -nolxl*)
41955 flag_USE_LXLITE=0
41956 ;;
41957 -* | /*)
41958 case ${D}1 in
41959 -L* | -l*)
41960 libsToLink=1
41961 ;;
b1d22ded
DE
41962 -Zomf)
41963 omfLinking=1
41964 ;;
473276a9
VS
41965 *)
41966 ;;
41967 esac
41968 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41969 ;;
b1d22ded
DE
41970 *.dll)
41971 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
41972 if [ ${D}omfLinking -eq 1 ]; then
41973 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
41974 else
41975 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
41976 fi
41977 ;;
473276a9
VS
41978 *)
41979 found=0;
1e9e8aba 41980 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
41981 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41982 else
41983 for file in ${D}1 ; do
1e9e8aba 41984 if [ -f ${D}file ]; then
473276a9
VS
41985 inputFiles="${D}{inputFiles} ${D}file"
41986 found=1
41987 fi
41988 done
1e9e8aba 41989 if [ ${D}found -eq 0 ]; then
473276a9
VS
41990 echo "ERROR: No file(s) found: "${D}1
41991 exit 8
41992 fi
41993 fi
41994 ;;
41995 esac
41996 shift
41997done # iterate cmdline words
41998
41999#
1e9e8aba 42000if [ -z "${D}inputFiles" ]; then
473276a9
VS
42001 echo "dllar: no input files"
42002 PrintHelp
42003fi
42004
42005# Now extract all .o files from .a files
42006newInputFiles=""
42007for file in ${D}inputFiles ; do
42008 case ${D}file in
42009 *.a | *.lib)
42010 case ${D}file in
42011 *.a)
42012 suffix=".a"
42013 AR="ar"
42014 ;;
42015 *.lib)
42016 suffix=".lib"
42017 AR="emxomfar"
42018 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
42019 ;;
42020 *)
42021 ;;
42022 esac
42023 dirname=\`basnam ${D}file ${D}suffix\`"_%"
42024 mkdir ${D}dirname
1e9e8aba 42025 if [ ${D}? -ne 0 ]; then
473276a9
VS
42026 echo "Failed to create subdirectory ./${D}dirname"
42027 CleanUp
42028 exit 8;
42029 fi
42030 # Append '!' to indicate archive
42031 newInputFiles="${D}newInputFiles ${D}{dirname}!"
42032 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
42033 cd ${D}curDir
42034 found=0;
42035 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 42036 if [ -f ${D}subfile ]; then
473276a9 42037 found=1
1e9e8aba 42038 if [ -s ${D}subfile ]; then
473276a9
VS
42039 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
42040 newInputFiles="${D}newInputFiles ${D}subfile"
42041 fi
42042 fi
42043 done
1e9e8aba
DE
42044 if [ ${D}found -eq 0 ]; then
42045 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
42046 fi
42047 ;;
42048 *)
42049 newInputFiles="${D}{newInputFiles} ${D}file"
42050 ;;
42051 esac
42052done
42053inputFiles="${D}newInputFiles"
42054
42055# Output filename(s).
42056do_backup=0;
1e9e8aba 42057if [ -z ${D}outFile ]; then
473276a9
VS
42058 do_backup=1;
42059 set outFile ${D}inputFiles; outFile=${D}2
42060fi
42061
42062# If it is an archive, remove the '!' and the '_%' suffixes
42063case ${D}outFile in
42064*_%!)
42065 outFile=\`basnam ${D}outFile _%!\`
42066 ;;
42067*)
42068 ;;
42069esac
42070case ${D}outFile in
42071*.dll)
42072 outFile=\`basnam ${D}outFile .dll\`
42073 ;;
42074*.DLL)
42075 outFile=\`basnam ${D}outFile .DLL\`
42076 ;;
42077*.o)
42078 outFile=\`basnam ${D}outFile .o\`
42079 ;;
42080*.obj)
42081 outFile=\`basnam ${D}outFile .obj\`
42082 ;;
42083*.a)
42084 outFile=\`basnam ${D}outFile .a\`
42085 ;;
42086*.lib)
42087 outFile=\`basnam ${D}outFile .lib\`
42088 ;;
42089*)
42090 ;;
42091esac
42092case ${D}outimpFile in
42093*.a)
42094 outimpFile=\`basnam ${D}outimpFile .a\`
42095 ;;
42096*.lib)
42097 outimpFile=\`basnam ${D}outimpFile .lib\`
42098 ;;
42099*)
42100 ;;
42101esac
1e9e8aba 42102if [ -z ${D}outimpFile ]; then
473276a9
VS
42103 outimpFile=${D}outFile
42104fi
42105defFile="${D}{outFile}.def"
42106arcFile="${D}{outimpFile}.a"
42107arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
42108
42109#create ${D}dllFile as something matching 8.3 restrictions,
42110if [ -z ${D}renameScript ] ; then
42111 dllFile="${D}outFile"
42112else
42113 dllFile=\`${D}renameScript ${D}outimpFile\`
42114fi
473276a9 42115
1e9e8aba
DE
42116if [ ${D}do_backup -ne 0 ] ; then
42117 if [ -f ${D}arcFile ] ; then
473276a9
VS
42118 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
42119 fi
1e9e8aba 42120 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
42121 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
42122 fi
42123fi
42124
42125# Extract public symbols from all the object files.
42126tmpdefFile=${D}{defFile}_%
42127rm -f ${D}tmpdefFile
42128for file in ${D}inputFiles ; do
42129 case ${D}file in
42130 *!)
42131 ;;
42132 *)
42133 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
42134 ;;
42135 esac
42136done
42137
42138# Create the def file.
42139rm -f ${D}defFile
42140echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
42141dllFile="${D}{dllFile}.dll"
42142if [ ! -z ${D}description ]; then
1e9e8aba 42143 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
42144fi
42145echo "EXPORTS" >> ${D}defFile
42146
42147doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
42148grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
42149
42150# Checks if the export is ok or not.
42151for word in ${D}exclude_symbols; do
42152 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
42153 mv ${D}{tmpdefFile}% ${D}tmpdefFile
42154done
42155
42156
1e9e8aba
DE
42157if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
42158 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
42159 sed '
42160 N
42161 : loop
1e9e8aba 42162 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
42163 t loop
42164 ' > ${D}{tmpdefFile}%
42165 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
42166else
42167 rm -f ${D}{tmpdefFile}%
42168fi
42169cat ${D}tmpdefFile >> ${D}defFile
42170rm -f ${D}tmpdefFile
42171
42172# Do linking, create implib, and apply lxlite.
42173gccCmdl="";
42174for file in ${D}inputFiles ; do
42175 case ${D}file in
42176 *!)
42177 ;;
42178 *)
42179 gccCmdl="${D}gccCmdl ${D}file"
42180 ;;
42181 esac
42182done
42183doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
42184touch "${D}{outFile}.dll"
42185
42186doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 42187if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 42188 add_flags="";
1e9e8aba 42189 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
42190 add_flags="-ynd"
42191 fi
42192 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
42193fi
42194doCommand "emxomf -s -l ${D}arcFile"
42195
42196# Successful exit.
42197CleanUp 1
42198exit 0
42199EOF
42200
42201 chmod +x dllar.sh
a848cd7e
SC
42202 ;;
42203
1e9e8aba 42204 powerpc-apple-macos* | \
a848cd7e
SC
42205 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
42206 *-*-sunos4* | \
42207 *-*-osf* | \
42208 *-*-dgux5* | \
42209 *-*-sysv5* )
42210 ;;
42211
42212 *)
42213 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
42214echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
42215 { (exit 1); exit 1; }; }
42216 esac
42217
2057db16
VS
42218 if test "x$PIC_FLAG" != "x" ; then
42219 PIC_FLAG="$PIC_FLAG -DPIC"
42220 fi
42221
a848cd7e
SC
42222 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
42223 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
42224 fi
42225 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
42226 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
42227 fi
42228
42229
42230
42231
42232
42233
42234
42235
42236 USE_SOVERSION=0
42237 USE_SOVERLINUX=0
42238 USE_SOVERSOLARIS=0
42239 USE_SOSYMLINKS=0
42240 USE_MACVERSION=0
42241 SONAME_FLAG=
42242
42243 case "${BAKEFILE_HOST}" in
b1d22ded 42244 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
42245 SONAME_FLAG="-Wl,-soname,"
42246 USE_SOVERSION=1
42247 USE_SOVERLINUX=1
42248 USE_SOSYMLINKS=1
42249 ;;
42250
a848cd7e
SC
42251 *-*-solaris2* )
42252 SONAME_FLAG="-h "
42253 USE_SOVERSION=1
42254 USE_SOVERSOLARIS=1
42255 USE_SOSYMLINKS=1
42256 ;;
42257
42258 *-*-darwin* )
42259 USE_MACVERSION=1
42260 USE_SOVERSION=1
42261 USE_SOSYMLINKS=1
42262 ;;
42263 esac
42264
42265
42266
42267
42268
42269
42270
42271
42272
42273 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42274echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42275 DEPS_TRACKING=0
42276
42277 if test "x$GCC" = "xyes"; then
42278 DEPSMODE=gcc
42279 DEPS_TRACKING=1
42280 case "${BAKEFILE_HOST}" in
42281 powerpc-*-darwin* )
42282 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42283 ;;
42284 * )
42285 DEPSFLAG_GCC="-MMD"
42286 ;;
42287 esac
42288 echo "$as_me:$LINENO: result: gcc" >&5
42289echo "${ECHO_T}gcc" >&6
b1d22ded 42290 elif test "x$MWCC" = "xyes"; then
81f90336 42291 DEPSMODE=mwcc
b1d22ded 42292 DEPS_TRACKING=1
81f90336 42293 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
42294 echo "$as_me:$LINENO: result: mwcc" >&5
42295echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
42296 else
42297 echo "$as_me:$LINENO: result: none" >&5
42298echo "${ECHO_T}none" >&6
42299 fi
42300
42301 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
42302
42303D='$'
42304cat <<EOF >bk-deps
a848cd7e
SC
42305#!/bin/sh
42306
42307# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42308# script. It is used to track C/C++ files dependencies in portable way.
42309#
42310# Permission is given to use this file in any way.
42311
473276a9 42312DEPSMODE=${DEPSMODE}
a848cd7e 42313DEPSDIR=.deps
473276a9 42314DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 42315DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 42316
473276a9 42317mkdir -p ${D}DEPSDIR
a848cd7e 42318
473276a9
VS
42319if test ${D}DEPSMODE = gcc ; then
42320 ${D}* ${D}{DEPSFLAG_GCC}
42321 status=${D}?
42322 if test ${D}{status} != 0 ; then
42323 exit ${D}{status}
a848cd7e
SC
42324 fi
42325 # move created file to the location we want it in:
473276a9
VS
42326 while test ${D}# -gt 0; do
42327 case "${D}1" in
a848cd7e
SC
42328 -o )
42329 shift
473276a9 42330 objfile=${D}1
a848cd7e
SC
42331 ;;
42332 -* )
42333 ;;
42334 * )
473276a9 42335 srcfile=${D}1
a848cd7e
SC
42336 ;;
42337 esac
42338 shift
42339 done
1e9e8aba
DE
42340 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42341 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
42342 if test -f ${D}depfile ; then
42343 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42344 rm -f ${D}depfile
a848cd7e 42345 else
1e9e8aba 42346 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
42347 if test -f ${D}depfile ; then
42348 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42349 rm -f ${D}depfile
a848cd7e
SC
42350 fi
42351 fi
42352 exit 0
81f90336
MW
42353elif test ${D}DEPSMODE = mwcc ; then
42354 ${D}*
42355 status=${D}?
42356 if test ${D}{status} != 0 ; then
42357 exit ${D}{status}
42358 fi
42359 # Run mwcc again with -MM and redirect into the dep file we want
42360 # NOTE: We can't use shift here because we need ${D}* to be valid
42361 prevarg=
42362 for arg in ${D}* ; do
42363 if test "${D}prevarg" = "-o"; then
42364 objfile=${D}arg
42365 else
42366 case "${D}arg" in
42367 -* )
42368 ;;
42369 * )
42370 srcfile=${D}arg
42371 ;;
42372 esac
42373 fi
42374 prevarg="${D}arg"
42375 done
42376 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42377 exit 0
a848cd7e 42378else
473276a9
VS
42379 ${D}*
42380 exit ${D}?
a848cd7e
SC
42381fi
42382EOF
473276a9 42383
a848cd7e
SC
42384 chmod +x bk-deps
42385 fi
42386
42387
42388
42389
42390 RESCOMP=
42391 SETFILE=
42392
42393 case ${BAKEFILE_HOST} in
42394 *-*-cygwin* | *-*-mingw32* )
42395 if test "$build" != "$host" ; then
42396 RESCOMP=$host_alias-windres
42397 else
42398 # Extract the first word of "windres", so it can be a program name with args.
42399set dummy windres; ac_word=$2
42400echo "$as_me:$LINENO: checking for $ac_word" >&5
42401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42402if test "${ac_cv_prog_RESCOMP+set}" = set; then
42403 echo $ECHO_N "(cached) $ECHO_C" >&6
42404else
42405 if test -n "$RESCOMP"; then
42406 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42407else
42408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42409for as_dir in $PATH
42410do
42411 IFS=$as_save_IFS
42412 test -z "$as_dir" && as_dir=.
42413 for ac_exec_ext in '' $ac_executable_extensions; do
42414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42415 ac_cv_prog_RESCOMP="windres"
42416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42417 break 2
42418 fi
42419done
42420done
42421
42422 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42423fi
42424fi
42425RESCOMP=$ac_cv_prog_RESCOMP
42426if test -n "$RESCOMP"; then
42427 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42428echo "${ECHO_T}$RESCOMP" >&6
42429else
42430 echo "$as_me:$LINENO: result: no" >&5
42431echo "${ECHO_T}no" >&6
42432fi
42433
42434 fi
42435 ;;
42436
1e9e8aba 42437 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
42438 # Extract the first word of "Rez", so it can be a program name with args.
42439set dummy Rez; ac_word=$2
42440echo "$as_me:$LINENO: checking for $ac_word" >&5
42441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42442if test "${ac_cv_prog_RESCOMP+set}" = set; then
42443 echo $ECHO_N "(cached) $ECHO_C" >&6
42444else
42445 if test -n "$RESCOMP"; then
42446 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42447else
42448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42449for as_dir in $PATH
42450do
42451 IFS=$as_save_IFS
42452 test -z "$as_dir" && as_dir=.
42453 for ac_exec_ext in '' $ac_executable_extensions; do
42454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42455 ac_cv_prog_RESCOMP="Rez"
42456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42457 break 2
42458 fi
42459done
42460done
42461
42462 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
42463fi
42464fi
42465RESCOMP=$ac_cv_prog_RESCOMP
42466if test -n "$RESCOMP"; then
42467 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42468echo "${ECHO_T}$RESCOMP" >&6
42469else
42470 echo "$as_me:$LINENO: result: no" >&5
42471echo "${ECHO_T}no" >&6
42472fi
42473
42474 # Extract the first word of "SetFile", so it can be a program name with args.
42475set dummy SetFile; ac_word=$2
42476echo "$as_me:$LINENO: checking for $ac_word" >&5
42477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42478if test "${ac_cv_prog_SETFILE+set}" = set; then
42479 echo $ECHO_N "(cached) $ECHO_C" >&6
42480else
42481 if test -n "$SETFILE"; then
42482 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
42483else
42484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42485for as_dir in $PATH
42486do
42487 IFS=$as_save_IFS
42488 test -z "$as_dir" && as_dir=.
42489 for ac_exec_ext in '' $ac_executable_extensions; do
42490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42491 ac_cv_prog_SETFILE="SetFile"
42492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42493 break 2
42494 fi
42495done
42496done
42497
42498 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
42499fi
42500fi
42501SETFILE=$ac_cv_prog_SETFILE
42502if test -n "$SETFILE"; then
42503 echo "$as_me:$LINENO: result: $SETFILE" >&5
42504echo "${ECHO_T}$SETFILE" >&6
42505else
42506 echo "$as_me:$LINENO: result: no" >&5
42507echo "${ECHO_T}no" >&6
42508fi
42509
42510 ;;
42511 esac
42512
42513
42514
42515
42516
fbb7dfff 42517 BAKEFILE_BAKEFILE_M4_VERSION="0.1.8"
a848cd7e 42518
dcc1b6ad 42519
fbb7dfff 42520BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8"
a848cd7e 42521
646b6ec1 42522
74b84332 42523
a848cd7e
SC
42524 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
42525if test "${enable_precomp_headers+set}" = set; then
42526 enableval="$enable_precomp_headers"
42527 bk_use_pch="$enableval"
42528fi;
42529
42530 GCC_PCH=0
42531
42532 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
42533 if test "x$GCC" = "xyes"; then
42534 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
42535echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
42536 cat >conftest.$ac_ext <<_ACEOF
42537/* confdefs.h. */
42538_ACEOF
42539cat confdefs.h >>conftest.$ac_ext
42540cat >>conftest.$ac_ext <<_ACEOF
42541/* end confdefs.h. */
42542
42543int
42544main ()
42545{
42546
42547 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
42548 #error "no pch support"
42549 #endif
42550 #if (__GNUC__ < 3)
42551 #error "no pch support"
42552 #endif
42553 #if (__GNUC__ == 3) && \
42554 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
42555 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
42556 #error "no pch support"
42557 #endif
42558
42559 ;
42560 return 0;
42561}
42562_ACEOF
42563rm -f conftest.$ac_objext
42564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42565 (eval $ac_compile) 2>conftest.er1
a848cd7e 42566 ac_status=$?
ac1cb8d3
VS
42567 grep -v '^ *+' conftest.er1 >conftest.err
42568 rm -f conftest.er1
42569 cat conftest.err >&5
a848cd7e
SC
42570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42571 (exit $ac_status); } &&
9dd0f6c2 42572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42574 (eval $ac_try) 2>&5
42575 ac_status=$?
42576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42577 (exit $ac_status); }; } &&
42578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42580 (eval $ac_try) 2>&5
42581 ac_status=$?
42582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42583 (exit $ac_status); }; }; then
42584
42585 echo "$as_me:$LINENO: result: yes" >&5
42586echo "${ECHO_T}yes" >&6
a848cd7e
SC
42587 GCC_PCH=1
42588
42589else
42590 echo "$as_me: failed program was:" >&5
42591sed 's/^/| /' conftest.$ac_ext >&5
42592
42593
42594 echo "$as_me:$LINENO: result: no" >&5
42595echo "${ECHO_T}no" >&6
42596
42597fi
ac1cb8d3 42598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42599 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
42600
42601D='$'
42602cat <<EOF >bk-make-pch
a848cd7e
SC
42603#!/bin/sh
42604
42605# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42606# script. It is used to generated precompiled headers.
42607#
42608# Permission is given to use this file in any way.
42609
1e9e8aba
DE
42610outfile="${D}{1}"
42611header="${D}{2}"
a848cd7e
SC
42612shift
42613shift
42614
42615compiler=
42616headerfile=
1e9e8aba
DE
42617while test ${D}{#} -gt 0; do
42618 case "${D}{1}" in
a848cd7e 42619 -I* )
1e9e8aba
DE
42620 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
42621 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
42622 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
42623 fi
42624 ;;
42625 esac
1e9e8aba 42626 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
42627 shift
42628done
42629
1e9e8aba
DE
42630if test "x${D}{headerfile}" = "x" ; then
42631 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 42632else
1e9e8aba
DE
42633 if test -f ${D}{outfile} ; then
42634 rm -f ${D}{outfile}
a848cd7e 42635 else
1e9e8aba 42636 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 42637 fi
1e9e8aba 42638 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
42639 mkdir -p .deps
42640 # can do this because gcc is >= 3.4:
1e9e8aba
DE
42641 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
42642 exit ${D}{?}
a848cd7e
SC
42643fi
42644EOF
1e9e8aba 42645
a848cd7e
SC
42646 chmod +x bk-make-pch
42647 fi
42648 fi
42649 fi
42650
42651
42652
a848cd7e
SC
42653 COND_BUILD_DEBUG="#"
42654 if test "x$BUILD" = "xdebug" ; then
42655 COND_BUILD_DEBUG=""
42656 fi
42657
42658 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
42659 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
42660 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
42661 fi
42662
42663 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
42664 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
42665 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
42666 fi
42667
42668 COND_BUILD_DEBUG_UNICODE_0="#"
42669 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
42670 COND_BUILD_DEBUG_UNICODE_0=""
42671 fi
42672
42673 COND_BUILD_DEBUG_UNICODE_1="#"
42674 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
42675 COND_BUILD_DEBUG_UNICODE_1=""
42676 fi
42677
42678 COND_BUILD_RELEASE="#"
42679 if test "x$BUILD" = "xrelease" ; then
42680 COND_BUILD_RELEASE=""
42681 fi
42682
42683 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
42684 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
42685 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
42686 fi
42687
42688 COND_BUILD_RELEASE_UNICODE_0="#"
42689 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
42690 COND_BUILD_RELEASE_UNICODE_0=""
42691 fi
42692
42693 COND_BUILD_RELEASE_UNICODE_1="#"
42694 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
42695 COND_BUILD_RELEASE_UNICODE_1=""
42696 fi
42697
42698 COND_DEBUG_FLAG_1="#"
42699 if test "x$DEBUG_FLAG" = "x1" ; then
42700 COND_DEBUG_FLAG_1=""
42701 fi
42702
42703 COND_DEBUG_INFO_0="#"
42704 if test "x$DEBUG_INFO" = "x0" ; then
42705 COND_DEBUG_INFO_0=""
42706 fi
42707
42708 COND_DEBUG_INFO_1="#"
42709 if test "x$DEBUG_INFO" = "x1" ; then
42710 COND_DEBUG_INFO_1=""
42711 fi
42712
42713 COND_DEPS_TRACKING_0="#"
42714 if test "x$DEPS_TRACKING" = "x0" ; then
42715 COND_DEPS_TRACKING_0=""
42716 fi
42717
42718 COND_DEPS_TRACKING_1="#"
42719 if test "x$DEPS_TRACKING" = "x1" ; then
42720 COND_DEPS_TRACKING_1=""
42721 fi
42722
42723 COND_GCC_PCH_1="#"
42724 if test "x$GCC_PCH" = "x1" ; then
42725 COND_GCC_PCH_1=""
42726 fi
42727
42728 COND_MONOLITHIC_0="#"
42729 if test "x$MONOLITHIC" = "x0" ; then
42730 COND_MONOLITHIC_0=""
42731 fi
42732
42733 COND_MONOLITHIC_0_SHARED_0="#"
42734 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
42735 COND_MONOLITHIC_0_SHARED_0=""
42736 fi
42737
42738 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
42739 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
42740 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
42741 fi
42742
90970d69
DE
42743 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
42744 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42745 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
42746 fi
42747
a848cd7e
SC
42748 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
42749 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42750 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
42751 fi
42752
6671c68b
VZ
42753 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
42754 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42755 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
42756 fi
42757
a848cd7e
SC
42758 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
42759 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
42760 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
42761 fi
42762
ceec2216
RL
42763 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
42764 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42765 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
42766 fi
42767
a848cd7e
SC
42768 COND_MONOLITHIC_0_SHARED_1="#"
42769 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
42770 COND_MONOLITHIC_0_SHARED_1=""
42771 fi
42772
42773 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
42774 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
42775 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
42776 fi
42777
90970d69
DE
42778 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
42779 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42780 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
42781 fi
42782
a848cd7e
SC
42783 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
42784 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42785 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
42786 fi
42787
6671c68b
VZ
42788 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
42789 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42790 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
42791 fi
42792
a848cd7e
SC
42793 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
42794 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
42795 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
42796 fi
42797
ceec2216
RL
42798 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
42799 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
42800 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
42801 fi
42802
a848cd7e
SC
42803 COND_MONOLITHIC_0_USE_ODBC_1="#"
42804 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
42805 COND_MONOLITHIC_0_USE_ODBC_1=""
42806 fi
42807
42808 COND_MONOLITHIC_1="#"
42809 if test "x$MONOLITHIC" = "x1" ; then
42810 COND_MONOLITHIC_1=""
42811 fi
42812
42813 COND_MONOLITHIC_1_SHARED_0="#"
42814 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
42815 COND_MONOLITHIC_1_SHARED_0=""
42816 fi
42817
42818 COND_MONOLITHIC_1_SHARED_1="#"
42819 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
42820 COND_MONOLITHIC_1_SHARED_1=""
42821 fi
42822
42823 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
42824 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
42825 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
42826 fi
42827
42828 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
42829 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
42830 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
42831 fi
42832
42833 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
42834 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
42835 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
42836 fi
42837
42838 COND_PLATFORM_MACOSX_1="#"
42839 if test "x$PLATFORM_MACOSX" = "x1" ; then
42840 COND_PLATFORM_MACOSX_1=""
42841 fi
42842
a30f955f
VS
42843 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
42844 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
42845 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
42846 fi
42847
a848cd7e
SC
42848 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
42849 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
42850 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
42851 fi
42852
42853 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
42854 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
42855 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
42856 fi
42857
42858 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
42859 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
42860 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
42861 fi
42862
fc480dc1
DE
42863 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
42864 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42865 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
42866 fi
42867
1e9e8aba
DE
42868 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42869 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42870 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42871 fi
42872
ebee3cd0
VS
42873 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
42874 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
42875 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
42876 fi
42877
42878 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
42879 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
42880 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
42881 fi
42882
a848cd7e
SC
42883 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
42884 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
42885 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
42886 fi
42887
42888 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
42889 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
42890 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
42891 fi
42892
b48a2016
DE
42893 COND_PLATFORM_MACOS_1="#"
42894 if test "x$PLATFORM_MACOS" = "x1" ; then
42895 COND_PLATFORM_MACOS_1=""
42896 fi
42897
a848cd7e
SC
42898 COND_PLATFORM_MAC_1="#"
42899 if test "x$PLATFORM_MAC" = "x1" ; then
42900 COND_PLATFORM_MAC_1=""
42901 fi
42902
42903 COND_PLATFORM_OS2_1="#"
42904 if test "x$PLATFORM_OS2" = "x1" ; then
42905 COND_PLATFORM_OS2_1=""
42906 fi
42907
42908 COND_PLATFORM_UNIX_0="#"
42909 if test "x$PLATFORM_UNIX" = "x0" ; then
42910 COND_PLATFORM_UNIX_0=""
42911 fi
42912
42913 COND_PLATFORM_UNIX_1="#"
42914 if test "x$PLATFORM_UNIX" = "x1" ; then
42915 COND_PLATFORM_UNIX_1=""
42916 fi
42917
42918 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
42919 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
42920 COND_PLATFORM_UNIX_1_USE_GUI_1=""
42921 fi
42922
42923 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
42924 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
42925 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
42926 fi
42927
42928 COND_PLATFORM_WIN32_0="#"
42929 if test "x$PLATFORM_WIN32" = "x0" ; then
42930 COND_PLATFORM_WIN32_0=""
42931 fi
42932
42933 COND_PLATFORM_WIN32_1="#"
42934 if test "x$PLATFORM_WIN32" = "x1" ; then
42935 COND_PLATFORM_WIN32_1=""
42936 fi
42937
42938 COND_SHARED_0="#"
42939 if test "x$SHARED" = "x0" ; then
42940 COND_SHARED_0=""
42941 fi
42942
ceec2216
RL
42943 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
42944 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
42945 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
42946 fi
42947
42948 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
42949 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
42950 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
42951 fi
42952
42953 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
42954 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
42955 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
42956 fi
42957
a848cd7e
SC
42958 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
42959 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42960 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
42961 fi
42962
42963 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42964 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42965 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42966 fi
42967
42968 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42969 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42970 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42971 fi
42972
42973 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42974 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42975 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42976 fi
42977
52ada004
RL
42978 COND_SHARED_0_USE_XRC_1="#"
42979 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42980 COND_SHARED_0_USE_XRC_1=""
42981 fi
42982
a848cd7e
SC
42983 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
42984 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
42985 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
42986 fi
42987
42988 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
42989 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
42990 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
42991 fi
42992
42993 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
42994 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
42995 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
42996 fi
42997
42998 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
42999 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
43000 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
43001 fi
43002
43003 COND_SHARED_1="#"
43004 if test "x$SHARED" = "x1" ; then
43005 COND_SHARED_1=""
43006 fi
43007
43008 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
43009 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43010 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
43011 fi
43012
52ada004
RL
43013 COND_SHARED_1_USE_XRC_1="#"
43014 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43015 COND_SHARED_1_USE_XRC_1=""
43016 fi
43017
a30f955f
VS
43018 COND_TOOLKIT_="#"
43019 if test "x$TOOLKIT" = "x" ; then
43020 COND_TOOLKIT_=""
43021 fi
43022
a848cd7e
SC
43023 COND_TOOLKIT_COCOA="#"
43024 if test "x$TOOLKIT" = "xCOCOA" ; then
43025 COND_TOOLKIT_COCOA=""
43026 fi
43027
a49baeab
DE
43028 COND_TOOLKIT_COCOA_USE_GUI_1="#"
43029 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
43030 COND_TOOLKIT_COCOA_USE_GUI_1=""
43031 fi
43032
a848cd7e
SC
43033 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
43034 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43035 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
43036 fi
43037
43038 COND_TOOLKIT_GTK="#"
43039 if test "x$TOOLKIT" = "xGTK" ; then
43040 COND_TOOLKIT_GTK=""
43041 fi
43042
43043 COND_TOOLKIT_GTK_USE_GUI_1="#"
43044 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
43045 COND_TOOLKIT_GTK_USE_GUI_1=""
43046 fi
43047
43048 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
43049 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43050 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
43051 fi
43052
43053 COND_TOOLKIT_MAC="#"
43054 if test "x$TOOLKIT" = "xMAC" ; then
43055 COND_TOOLKIT_MAC=""
43056 fi
43057
43058 COND_TOOLKIT_MAC_USE_GUI_1="#"
43059 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43060 COND_TOOLKIT_MAC_USE_GUI_1=""
43061 fi
43062
43063 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43064 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43065 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43066 fi
43067
43068 COND_TOOLKIT_MGL="#"
43069 if test "x$TOOLKIT" = "xMGL" ; then
43070 COND_TOOLKIT_MGL=""
43071 fi
43072
43073 COND_TOOLKIT_MGL_USE_GUI_1="#"
43074 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
43075 COND_TOOLKIT_MGL_USE_GUI_1=""
43076 fi
43077
43078 COND_TOOLKIT_MOTIF="#"
43079 if test "x$TOOLKIT" = "xMOTIF" ; then
43080 COND_TOOLKIT_MOTIF=""
43081 fi
43082
43083 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
43084 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
43085 COND_TOOLKIT_MOTIF_USE_GUI_1=""
43086 fi
43087
43088 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
43089 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43090 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
43091 fi
43092
43093 COND_TOOLKIT_MSW="#"
43094 if test "x$TOOLKIT" = "xMSW" ; then
43095 COND_TOOLKIT_MSW=""
43096 fi
43097
43098 COND_TOOLKIT_MSW_USE_GUI_1="#"
43099 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
43100 COND_TOOLKIT_MSW_USE_GUI_1=""
43101 fi
43102
43103 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
43104 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43105 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
43106 fi
43107
43108 COND_TOOLKIT_PM="#"
43109 if test "x$TOOLKIT" = "xPM" ; then
43110 COND_TOOLKIT_PM=""
43111 fi
43112
43113 COND_TOOLKIT_PM_USE_GUI_1="#"
43114 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
43115 COND_TOOLKIT_PM_USE_GUI_1=""
43116 fi
43117
43118 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
43119 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43120 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
43121 fi
43122
3fd9c298
DE
43123 COND_TOOLKIT_WINCE="#"
43124 if test "x$TOOLKIT" = "xWINCE" ; then
43125 COND_TOOLKIT_WINCE=""
43126 fi
43127
43128 COND_TOOLKIT_WINCE_USE_GUI_1="#"
43129 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
43130 COND_TOOLKIT_WINCE_USE_GUI_1=""
43131 fi
43132
43133 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
43134 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43135 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
43136 fi
43137
a848cd7e
SC
43138 COND_TOOLKIT_X11="#"
43139 if test "x$TOOLKIT" = "xX11" ; then
43140 COND_TOOLKIT_X11=""
43141 fi
43142
43143 COND_TOOLKIT_X11_USE_GUI_1="#"
43144 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
43145 COND_TOOLKIT_X11_USE_GUI_1=""
43146 fi
43147
43148 COND_UNICODE_1="#"
43149 if test "x$UNICODE" = "x1" ; then
43150 COND_UNICODE_1=""
43151 fi
43152
43153 COND_USE_EXCEPTIONS_0="#"
43154 if test "x$USE_EXCEPTIONS" = "x0" ; then
43155 COND_USE_EXCEPTIONS_0=""
43156 fi
43157
43158 COND_USE_EXCEPTIONS_1="#"
43159 if test "x$USE_EXCEPTIONS" = "x1" ; then
43160 COND_USE_EXCEPTIONS_1=""
43161 fi
43162
43163 COND_USE_GUI_0="#"
43164 if test "x$USE_GUI" = "x0" ; then
43165 COND_USE_GUI_0=""
43166 fi
43167
43168 COND_USE_GUI_1="#"
43169 if test "x$USE_GUI" = "x1" ; then
43170 COND_USE_GUI_1=""
43171 fi
43172
43173 COND_USE_GUI_1_WXUNIV_0="#"
43174 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43175 COND_USE_GUI_1_WXUNIV_0=""
43176 fi
43177
43178 COND_USE_GUI_1_WXUNIV_1="#"
43179 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
43180 COND_USE_GUI_1_WXUNIV_1=""
43181 fi
43182
43183 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43184 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43185 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43186 fi
43187
43188 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43189 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43190 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43191 fi
43192
43193 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43194 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43195 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43196 fi
43197
ceec2216
RL
43198 COND_USE_ODBC_1="#"
43199 if test "x$USE_ODBC" = "x1" ; then
43200 COND_USE_ODBC_1=""
43201 fi
43202
ffa0583f
RL
43203 COND_USE_OPENGL_1="#"
43204 if test "x$USE_OPENGL" = "x1" ; then
43205 COND_USE_OPENGL_1=""
43206 fi
43207
a848cd7e
SC
43208 COND_USE_PLUGINS_0="#"
43209 if test "x$USE_PLUGINS" = "x0" ; then
43210 COND_USE_PLUGINS_0=""
43211 fi
43212
0b78747f
MW
43213 COND_USE_RTTI_0="#"
43214 if test "x$USE_RTTI" = "x0" ; then
43215 COND_USE_RTTI_0=""
43216 fi
43217
43218 COND_USE_RTTI_1="#"
43219 if test "x$USE_RTTI" = "x1" ; then
43220 COND_USE_RTTI_1=""
43221 fi
43222
a848cd7e
SC
43223 COND_USE_SOSYMLINKS_1="#"
43224 if test "x$USE_SOSYMLINKS" = "x1" ; then
43225 COND_USE_SOSYMLINKS_1=""
43226 fi
43227
43228 COND_USE_SOVERLINUX_1="#"
43229 if test "x$USE_SOVERLINUX" = "x1" ; then
43230 COND_USE_SOVERLINUX_1=""
43231 fi
43232
43233 COND_USE_SOVERSION_0="#"
43234 if test "x$USE_SOVERSION" = "x0" ; then
43235 COND_USE_SOVERSION_0=""
43236 fi
43237
43238 COND_USE_SOVERSOLARIS_1="#"
43239 if test "x$USE_SOVERSOLARIS" = "x1" ; then
43240 COND_USE_SOVERSOLARIS_1=""
43241 fi
43242
0b78747f
MW
43243 COND_USE_THREADS_0="#"
43244 if test "x$USE_THREADS" = "x0" ; then
43245 COND_USE_THREADS_0=""
43246 fi
43247
43248 COND_USE_THREADS_1="#"
43249 if test "x$USE_THREADS" = "x1" ; then
43250 COND_USE_THREADS_1=""
43251 fi
43252
a13a7f89
RL
43253 COND_USE_XRC_1="#"
43254 if test "x$USE_XRC" = "x1" ; then
43255 COND_USE_XRC_1=""
43256 fi
43257
a848cd7e
SC
43258 COND_WITH_PLUGIN_SDL_1="#"
43259 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43260 COND_WITH_PLUGIN_SDL_1=""
43261 fi
43262
1e6eb025
VZ
43263 COND_WXUNIV_0="#"
43264 if test "x$WXUNIV" = "x0" ; then
43265 COND_WXUNIV_0=""
43266 fi
43267
a848cd7e
SC
43268 COND_WXUNIV_1="#"
43269 if test "x$WXUNIV" = "x1" ; then
43270 COND_WXUNIV_1=""
43271 fi
43272
43273 COND_WXUSE_EXPAT_BUILTIN="#"
43274 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43275 COND_WXUSE_EXPAT_BUILTIN=""
43276 fi
43277
43278 COND_WXUSE_LIBJPEG_BUILTIN="#"
43279 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43280 COND_WXUSE_LIBJPEG_BUILTIN=""
43281 fi
43282
43283 COND_WXUSE_LIBPNG_BUILTIN="#"
43284 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43285 COND_WXUSE_LIBPNG_BUILTIN=""
43286 fi
43287
43288 COND_WXUSE_LIBTIFF_BUILTIN="#"
43289 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43290 COND_WXUSE_LIBTIFF_BUILTIN=""
43291 fi
43292
43293 COND_WXUSE_ODBC_BUILTIN="#"
43294 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43295 COND_WXUSE_ODBC_BUILTIN=""
43296 fi
43297
43298 COND_WXUSE_REGEX_BUILTIN="#"
43299 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43300 COND_WXUSE_REGEX_BUILTIN=""
43301 fi
43302
43303 COND_WXUSE_ZLIB_BUILTIN="#"
43304 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43305 COND_WXUSE_ZLIB_BUILTIN=""
43306 fi
43307
43308
43309
2057db16
VS
43310 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43311 { { 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
43312echo "$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;}
43313 { (exit 1); exit 1; }; }
43314 fi
43315
a848cd7e 43316
ceec2216
RL
43317if test "$wxUSE_SHARED" = "yes"; then
43318
43319 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43320 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43321
5b674b9d
DE
43322 case "${host}" in
43323 *-pc-os2_emx | *-pc-os2-emx )
43324 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43325 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43326 cp -p ${srcdir}/src/os2/dllnames.sh .
43327 cp -p ${srcdir}/src/os2/dllar.sh .
43328 ;;
43329 esac
ceec2216
RL
43330else
43331
43332 EXE_LINKER="$CXX -o"
43333
43334fi
69120ee4
VZ
43335if test "$wxUSE_OMF" = "yes"; then
43336 case "${host}" in
43337 *-pc-os2_emx | *-pc-os2-emx )
43338 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
43339 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43340 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43341 ;;
43342 esac
43343fi
a848cd7e 43344
74b84332 43345GCC_PRAGMA_FLAGS=""
c08ebc62
DE
43346PCH_FLAGS=""
43347if test $GCC_PCH = 1 ; then
43348 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43349 PCH_FLAGS="-DWX_PRECOMP"
43350else
a848cd7e
SC
43351 case "${host}" in
43352 powerpc-*-darwin* )
74b84332 43353 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 43354 ;;
bea8e651 43355 *-*-mingw32* )
1f344abf
VS
43356 if test "$wxUSE_STL" = "yes" -o \
43357 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
43358 "$wxUSE_NO_RTTI" != "yes"; then
43359 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
43360echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
43361 cat >conftest.$ac_ext <<_ACEOF
43362/* confdefs.h. */
43363_ACEOF
43364cat confdefs.h >>conftest.$ac_ext
43365cat >>conftest.$ac_ext <<_ACEOF
43366/* end confdefs.h. */
43367
3314e67b
RR
43368int
43369main ()
43370{
43371#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43372 #error "Not GCC 3.2 or greater"
43373 #endif
43374
43375 ;
43376 return 0;
43377}
43378_ACEOF
43379rm -f conftest.$ac_objext
43380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43381 (eval $ac_compile) 2>conftest.er1
43382 ac_status=$?
43383 grep -v '^ *+' conftest.er1 >conftest.err
43384 rm -f conftest.er1
43385 cat conftest.err >&5
43386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43387 (exit $ac_status); } &&
9dd0f6c2 43388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314e67b
RR
43389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43390 (eval $ac_try) 2>&5
43391 ac_status=$?
43392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43393 (exit $ac_status); }; } &&
43394 { ac_try='test -s conftest.$ac_objext'
43395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43396 (eval $ac_try) 2>&5
43397 ac_status=$?
43398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43399 (exit $ac_status); }; }; then
43400 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43401 echo "$as_me:$LINENO: result: yes" >&5
43402echo "${ECHO_T}yes" >&6
43403else
43404 echo "$as_me: failed program was:" >&5
43405sed 's/^/| /' conftest.$ac_ext >&5
43406
43407echo "$as_me:$LINENO: result: no" >&5
43408echo "${ECHO_T}no" >&6
43409fi
43410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43411 fi
43412 ;;
43413 *-pc-os2_emx | *-pc-os2-emx )
43414 if test "$wxUSE_STL" = "yes"; then
43415 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
43416echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43417 cat >conftest.$ac_ext <<_ACEOF
43418/* confdefs.h. */
43419_ACEOF
43420cat confdefs.h >>conftest.$ac_ext
43421cat >>conftest.$ac_ext <<_ACEOF
43422/* end confdefs.h. */
43423
bea8e651
MB
43424int
43425main ()
43426{
1f344abf 43427#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
43428 #error "Not GCC 3.2 or greater"
43429 #endif
43430
43431 ;
43432 return 0;
43433}
43434_ACEOF
43435rm -f conftest.$ac_objext
43436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43437 (eval $ac_compile) 2>conftest.er1
bea8e651 43438 ac_status=$?
ac1cb8d3
VS
43439 grep -v '^ *+' conftest.er1 >conftest.err
43440 rm -f conftest.er1
43441 cat conftest.err >&5
bea8e651
MB
43442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43443 (exit $ac_status); } &&
9dd0f6c2 43444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43446 (eval $ac_try) 2>&5
43447 ac_status=$?
43448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43449 (exit $ac_status); }; } &&
43450 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
43451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43452 (eval $ac_try) 2>&5
43453 ac_status=$?
43454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43455 (exit $ac_status); }; }; then
74b84332 43456 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
43457 echo "$as_me:$LINENO: result: yes" >&5
43458echo "${ECHO_T}yes" >&6
43459else
43460 echo "$as_me: failed program was:" >&5
43461sed 's/^/| /' conftest.$ac_ext >&5
43462
43463echo "$as_me:$LINENO: result: no" >&5
43464echo "${ECHO_T}no" >&6
43465fi
ac1cb8d3 43466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
43467 fi
43468 ;;
a848cd7e
SC
43469 esac
43470fi
d2083416 43471CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
43472
43473
43474SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43475
43476
43477
43478
43479
43480
43481
43482
43483
43484
43485
43486
43487
43488
43489
43490
43491
43492
43493
43494
43495
43496
43497
43498
43499
43500
43501
43502
43503
43504
43505
43506
43507
43508
43509
43510
43511
43512
43513
43514
43515
43516
a848cd7e
SC
43517
43518
43519
43520
43521
43522
43523
43524
43525
43526
43527
43528
43529
43530
43531
43532
43533
43534
74b84332 43535
a848cd7e
SC
43536
43537
43538echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43539echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43540set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43541if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43542 echo $ECHO_N "(cached) $ECHO_C" >&6
43543else
43544 cat >conftest.make <<\_ACEOF
43545all:
43546 @echo 'ac_maketemp="$(MAKE)"'
43547_ACEOF
43548# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43549eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43550if test -n "$ac_maketemp"; then
43551 eval ac_cv_prog_make_${ac_make}_set=yes
43552else
43553 eval ac_cv_prog_make_${ac_make}_set=no
43554fi
43555rm -f conftest.make
43556fi
43557if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43558 echo "$as_me:$LINENO: result: yes" >&5
43559echo "${ECHO_T}yes" >&6
43560 SET_MAKE=
43561else
43562 echo "$as_me:$LINENO: result: no" >&5
43563echo "${ECHO_T}no" >&6
43564 SET_MAKE="MAKE=${MAKE-make}"
43565fi
43566
43567
a848cd7e 43568
ceec2216
RL
43569 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
43570
a848cd7e 43571
ceec2216 43572 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 43573
a848cd7e 43574
ceec2216 43575 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 43576
ceec2216
RL
43577
43578 ac_config_files="$ac_config_files version-script Makefile"
43579
43580
43581 ac_config_commands="$ac_config_commands wx-config
43582 "
a848cd7e
SC
43583
43584
9103d280
RL
43585
43586
a848cd7e
SC
43587if test "$wxUSE_GUI" = "yes"; then
43588 SUBDIRS="samples demos utils contrib"
43589else SUBDIRS="samples utils"
43590fi
43591
43592
43593
43594# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
43595if test "${with_cppunit_prefix+set}" = set; then
43596 withval="$with_cppunit_prefix"
43597 cppunit_config_prefix="$withval"
43598else
43599 cppunit_config_prefix=""
43600fi;
43601
43602# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
43603if test "${with_cppunit_exec_prefix+set}" = set; then
43604 withval="$with_cppunit_exec_prefix"
43605 cppunit_config_exec_prefix="$withval"
43606else
43607 cppunit_config_exec_prefix=""
43608fi;
43609
43610 if test x$cppunit_config_exec_prefix != x ; then
43611 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
43612 if test x${CPPUNIT_CONFIG+set} != xset ; then
43613 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
43614 fi
43615 fi
43616 if test x$cppunit_config_prefix != x ; then
43617 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
43618 if test x${CPPUNIT_CONFIG+set} != xset ; then
43619 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
43620 fi
43621 fi
43622
43623 # Extract the first word of "cppunit-config", so it can be a program name with args.
43624set dummy cppunit-config; ac_word=$2
43625echo "$as_me:$LINENO: checking for $ac_word" >&5
43626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43627if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
43628 echo $ECHO_N "(cached) $ECHO_C" >&6
43629else
43630 case $CPPUNIT_CONFIG in
43631 [\\/]* | ?:[\\/]*)
43632 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
43633 ;;
43634 *)
43635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43636for as_dir in $PATH
43637do
43638 IFS=$as_save_IFS
43639 test -z "$as_dir" && as_dir=.
43640 for ac_exec_ext in '' $ac_executable_extensions; do
43641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43642 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43644 break 2
43645 fi
43646done
43647done
43648
43649 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
43650 ;;
43651esac
43652fi
43653CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
43654
43655if test -n "$CPPUNIT_CONFIG"; then
43656 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
43657echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
43658else
43659 echo "$as_me:$LINENO: result: no" >&5
43660echo "${ECHO_T}no" >&6
43661fi
43662
43663 cppunit_version_min=1.8.0
43664
43665 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
43666echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
43667 no_cppunit=""
43668 if test "$CPPUNIT_CONFIG" = "no" ; then
43669 no_cppunit=yes
43670 else
43671 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
43672 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
43673 cppunit_version=`$CPPUNIT_CONFIG --version`
43674
43675 cppunit_major_version=`echo $cppunit_version | \
43676 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43677 cppunit_minor_version=`echo $cppunit_version | \
43678 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43679 cppunit_micro_version=`echo $cppunit_version | \
43680 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43681
43682 cppunit_major_min=`echo $cppunit_version_min | \
43683 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43684 cppunit_minor_min=`echo $cppunit_version_min | \
43685 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43686 cppunit_micro_min=`echo $cppunit_version_min | \
43687 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43688
43689 cppunit_version_proper=`expr \
43690 $cppunit_major_version \> $cppunit_major_min \| \
43691 $cppunit_major_version \= $cppunit_major_min \& \
43692 $cppunit_minor_version \> $cppunit_minor_min \| \
43693 $cppunit_major_version \= $cppunit_major_min \& \
43694 $cppunit_minor_version \= $cppunit_minor_min \& \
43695 $cppunit_micro_version \>= $cppunit_micro_min `
43696
43697 if test "$cppunit_version_proper" = "1" ; then
43698 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
43699echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
43700 else
43701 echo "$as_me:$LINENO: result: no" >&5
43702echo "${ECHO_T}no" >&6
43703 no_cppunit=yes
43704 fi
43705 fi
43706
43707 if test "x$no_cppunit" = x ; then
c2218763 43708 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
43709 else
43710 CPPUNIT_CFLAGS=""
43711 CPPUNIT_LIBS=""
c2218763 43712 :
a848cd7e
SC
43713 fi
43714
43715
43716
43717
43718
43719for subdir in `echo $SUBDIRS`; do
43720 if test -d ${srcdir}/${subdir} ; then
43721 if test "$wxUSE_GUI" = "yes"; then
43722 if test ${subdir} = "samples"; then
43723 makefiles="samples/Makefile.in $makefiles"
43724 for sample in `echo $SAMPLES_SUBDIRS`; do
43725 if test -d $srcdir/samples/$sample; then
43726 makefiles="samples/$sample/Makefile.in $makefiles"
43727 fi
43728 done
43729 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43730 fi
43731 else if test ${subdir} = "samples"; then
43732 makefiles="samples/Makefile.in samples/console/Makefile.in"
43733 elif test ${subdir} = "utils"; then
6537ccf8
VS
43734 makefiles=""
43735 for util in HelpGen tex2rtf ; do
43736 if test -d $srcdir/utils/$util ; then
43737 makefiles="utils/$util/Makefile.in \
43738 utils/$util/src/Makefile.in \
43739 $makefiles"
43740 fi
43741 done
a848cd7e
SC
43742 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43743 fi
43744 fi
43745
43746 for mkin in $makefiles ; do
43747 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
43748 ac_config_files="$ac_config_files $mk"
43749
43750 done
43751 fi
43752done
43753
43754
43755cat >confcache <<\_ACEOF
43756# This file is a shell script that caches the results of configure
43757# tests run on this system so they can be shared between configure
43758# scripts and configure runs, see configure's option --config-cache.
43759# It is not useful on other systems. If it contains results you don't
43760# want to keep, you may remove or edit it.
43761#
43762# config.status only pays attention to the cache file if you give it
43763# the --recheck option to rerun configure.
43764#
43765# `ac_cv_env_foo' variables (set or unset) will be overridden when
43766# loading this file, other *unset* `ac_cv_foo' will be assigned the
43767# following values.
43768
43769_ACEOF
43770
43771# The following way of writing the cache mishandles newlines in values,
43772# but we know of no workaround that is simple, portable, and efficient.
43773# So, don't put newlines in cache variables' values.
43774# Ultrix sh set writes to stderr and can't be redirected directly,
43775# and sets the high bit in the cache file unless we assign to the vars.
43776{
43777 (set) 2>&1 |
43778 case `(ac_space=' '; set | grep ac_space) 2>&1` in
43779 *ac_space=\ *)
43780 # `set' does not quote correctly, so add quotes (double-quote
43781 # substitution turns \\\\ into \\, and sed turns \\ into \).
43782 sed -n \
ac1cb8d3
VS
43783 "s/'/'\\\\''/g;
43784 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
43785 ;;
43786 *)
43787 # `set' quotes correctly as required by POSIX, so do not add quotes.
43788 sed -n \
ac1cb8d3 43789 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
43790 ;;
43791 esac;
43792} |
43793 sed '
43794 t clear
43795 : clear
43796 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43797 t end
43798 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43799 : end' >>confcache
43800if diff $cache_file confcache >/dev/null 2>&1; then :; else
43801 if test -w $cache_file; then
43802 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
43803 cat confcache >$cache_file
43804 else
43805 echo "not updating unwritable cache $cache_file"
43806 fi
43807fi
43808rm -f confcache
43809
43810test "x$prefix" = xNONE && prefix=$ac_default_prefix
43811# Let make expand exec_prefix.
43812test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43813
43814# VPATH may cause trouble with some makes, so we remove $(srcdir),
43815# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43816# trailing colons and then remove the whole line if VPATH becomes empty
43817# (actually we leave an empty line to preserve line numbers).
43818if test "x$srcdir" = x.; then
ac1cb8d3 43819 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
43820s/:*\$(srcdir):*/:/;
43821s/:*\${srcdir}:*/:/;
43822s/:*@srcdir@:*/:/;
ac1cb8d3 43823s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 43824s/:*$//;
ac1cb8d3 43825s/^[^=]*=[ ]*$//;
a848cd7e
SC
43826}'
43827fi
43828
43829DEFS=-DHAVE_CONFIG_H
43830
43831ac_libobjs=
43832ac_ltlibobjs=
43833for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43834 # 1. Remove the extension, and $U if already installed.
43835 ac_i=`echo "$ac_i" |
ac1cb8d3 43836 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
43837 # 2. Add them.
43838 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43839 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43840done
43841LIBOBJS=$ac_libobjs
43842
43843LTLIBOBJS=$ac_ltlibobjs
43844
43845
43846
43847: ${CONFIG_STATUS=./config.status}
43848ac_clean_files_save=$ac_clean_files
43849ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43850{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43851echo "$as_me: creating $CONFIG_STATUS" >&6;}
43852cat >$CONFIG_STATUS <<_ACEOF
43853#! $SHELL
43854# Generated by $as_me.
43855# Run this file to recreate the current configuration.
43856# Compiler output produced by configure, useful for debugging
43857# configure, is in config.log if it exists.
43858
43859debug=false
43860ac_cs_recheck=false
43861ac_cs_silent=false
43862SHELL=\${CONFIG_SHELL-$SHELL}
43863_ACEOF
43864
43865cat >>$CONFIG_STATUS <<\_ACEOF
43866## --------------------- ##
43867## M4sh Initialization. ##
43868## --------------------- ##
43869
43870# Be Bourne compatible
43871if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43872 emulate sh
43873 NULLCMD=:
43874 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43875 # is contrary to our usage. Disable this feature.
43876 alias -g '${1+"$@"}'='"$@"'
43877elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43878 set -o posix
43879fi
ac1cb8d3 43880DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
43881
43882# Support unset when possible.
ac1cb8d3 43883if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
43884 as_unset=unset
43885else
43886 as_unset=false
43887fi
43888
43889
43890# Work around bugs in pre-3.0 UWIN ksh.
43891$as_unset ENV MAIL MAILPATH
43892PS1='$ '
43893PS2='> '
43894PS4='+ '
43895
43896# NLS nuisances.
43897for as_var in \
43898 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43899 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43900 LC_TELEPHONE LC_TIME
43901do
ac1cb8d3 43902 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
43903 eval $as_var=C; export $as_var
43904 else
43905 $as_unset $as_var
43906 fi
43907done
43908
43909# Required to use basename.
43910if expr a : '\(a\)' >/dev/null 2>&1; then
43911 as_expr=expr
43912else
43913 as_expr=false
43914fi
43915
43916if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
43917 as_basename=basename
43918else
43919 as_basename=false
43920fi
43921
43922
43923# Name of the executable.
43924as_me=`$as_basename "$0" ||
43925$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43926 X"$0" : 'X\(//\)$' \| \
43927 X"$0" : 'X\(/\)$' \| \
43928 . : '\(.\)' 2>/dev/null ||
43929echo X/"$0" |
43930 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
43931 /^X\/\(\/\/\)$/{ s//\1/; q; }
43932 /^X\/\(\/\).*/{ s//\1/; q; }
43933 s/.*/./; q'`
43934
43935
43936# PATH needs CR, and LINENO needs CR and PATH.
43937# Avoid depending upon Character Ranges.
43938as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43939as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43940as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43941as_cr_digits='0123456789'
43942as_cr_alnum=$as_cr_Letters$as_cr_digits
43943
43944# The user is always right.
43945if test "${PATH_SEPARATOR+set}" != set; then
43946 echo "#! /bin/sh" >conf$$.sh
43947 echo "exit 0" >>conf$$.sh
43948 chmod +x conf$$.sh
43949 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43950 PATH_SEPARATOR=';'
43951 else
43952 PATH_SEPARATOR=:
43953 fi
43954 rm -f conf$$.sh
43955fi
43956
43957
43958 as_lineno_1=$LINENO
43959 as_lineno_2=$LINENO
43960 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43961 test "x$as_lineno_1" != "x$as_lineno_2" &&
43962 test "x$as_lineno_3" = "x$as_lineno_2" || {
43963 # Find who we are. Look in the path if we contain no path at all
43964 # relative or not.
43965 case $0 in
43966 *[\\/]* ) as_myself=$0 ;;
43967 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43968for as_dir in $PATH
43969do
43970 IFS=$as_save_IFS
43971 test -z "$as_dir" && as_dir=.
43972 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43973done
43974
43975 ;;
43976 esac
43977 # We did not find ourselves, most probably we were run as `sh COMMAND'
43978 # in which case we are not to be found in the path.
43979 if test "x$as_myself" = x; then
43980 as_myself=$0
43981 fi
43982 if test ! -f "$as_myself"; then
43983 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
43984echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
43985 { (exit 1); exit 1; }; }
43986 fi
43987 case $CONFIG_SHELL in
43988 '')
43989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43990for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43991do
43992 IFS=$as_save_IFS
43993 test -z "$as_dir" && as_dir=.
43994 for as_base in sh bash ksh sh5; do
43995 case $as_dir in
43996 /*)
43997 if ("$as_dir/$as_base" -c '
43998 as_lineno_1=$LINENO
43999 as_lineno_2=$LINENO
44000 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44001 test "x$as_lineno_1" != "x$as_lineno_2" &&
44002 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
44003 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
44004 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
44005 CONFIG_SHELL=$as_dir/$as_base
44006 export CONFIG_SHELL
44007 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
44008 fi;;
44009 esac
44010 done
44011done
44012;;
44013 esac
44014
44015 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44016 # uniformly replaced by the line number. The first 'sed' inserts a
44017 # line-number line before each line; the second 'sed' does the real
44018 # work. The second script uses 'N' to pair each line-number line
44019 # with the numbered line, and appends trailing '-' during
44020 # substitution so that $LINENO is not a special case at line end.
44021 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44022 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
44023 sed '=' <$as_myself |
44024 sed '
44025 N
44026 s,$,-,
44027 : loop
44028 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
44029 t loop
44030 s,-$,,
44031 s,^['$as_cr_digits']*\n,,
44032 ' >$as_me.lineno &&
44033 chmod +x $as_me.lineno ||
44034 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
44035echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
44036 { (exit 1); exit 1; }; }
44037
44038 # Don't try to exec as it changes $[0], causing all sort of problems
44039 # (the dirname of $[0] is not the place where we might find the
44040 # original and so on. Autoconf is especially sensible to this).
44041 . ./$as_me.lineno
44042 # Exit status is that of the last command.
44043 exit
44044}
44045
44046
44047case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
44048 *c*,-n*) ECHO_N= ECHO_C='
44049' ECHO_T=' ' ;;
44050 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
44051 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
44052esac
44053
44054if expr a : '\(a\)' >/dev/null 2>&1; then
44055 as_expr=expr
44056else
44057 as_expr=false
44058fi
44059
44060rm -f conf$$ conf$$.exe conf$$.file
44061echo >conf$$.file
44062if ln -s conf$$.file conf$$ 2>/dev/null; then
44063 # We could just check for DJGPP; but this test a) works b) is more generic
44064 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
44065 if test -f conf$$.exe; then
44066 # Don't use ln at all; we don't have any links
44067 as_ln_s='cp -p'
44068 else
44069 as_ln_s='ln -s'
44070 fi
44071elif ln conf$$.file conf$$ 2>/dev/null; then
44072 as_ln_s=ln
44073else
44074 as_ln_s='cp -p'
44075fi
44076rm -f conf$$ conf$$.exe conf$$.file
44077
44078if mkdir -p . 2>/dev/null; then
44079 as_mkdir_p=:
44080else
ac1cb8d3 44081 test -d ./-p && rmdir ./-p
a848cd7e
SC
44082 as_mkdir_p=false
44083fi
44084
44085as_executable_p="test -f"
44086
44087# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 44088as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44089
44090# Sed expression to map a string onto a valid variable name.
ac1cb8d3 44091as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44092
44093
44094# IFS
44095# We need space, tab and new line, in precisely that order.
44096as_nl='
44097'
44098IFS=" $as_nl"
44099
44100# CDPATH.
44101$as_unset CDPATH
44102
44103exec 6>&1
44104
44105# Open the log real soon, to keep \$[0] and so on meaningful, and to
44106# report actual input values of CONFIG_FILES etc. instead of their
44107# values after options handling. Logging --version etc. is OK.
44108exec 5>>config.log
44109{
44110 echo
44111 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44112## Running $as_me. ##
44113_ASBOX
44114} >&5
44115cat >&5 <<_CSEOF
44116
e0d84535 44117This file was extended by wxWidgets $as_me 2.6.0, which was
ac1cb8d3 44118generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
44119
44120 CONFIG_FILES = $CONFIG_FILES
44121 CONFIG_HEADERS = $CONFIG_HEADERS
44122 CONFIG_LINKS = $CONFIG_LINKS
44123 CONFIG_COMMANDS = $CONFIG_COMMANDS
44124 $ $0 $@
44125
44126_CSEOF
44127echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
44128echo >&5
44129_ACEOF
44130
44131# Files that config.status was made for.
44132if test -n "$ac_config_files"; then
44133 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
44134fi
44135
44136if test -n "$ac_config_headers"; then
44137 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
44138fi
44139
44140if test -n "$ac_config_links"; then
44141 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
44142fi
44143
44144if test -n "$ac_config_commands"; then
44145 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
44146fi
44147
44148cat >>$CONFIG_STATUS <<\_ACEOF
44149
44150ac_cs_usage="\
44151\`$as_me' instantiates files from templates according to the
44152current configuration.
44153
44154Usage: $0 [OPTIONS] [FILE]...
44155
44156 -h, --help print this help, then exit
44157 -V, --version print version number, then exit
44158 -q, --quiet do not print progress messages
44159 -d, --debug don't remove temporary files
44160 --recheck update $as_me by reconfiguring in the same conditions
44161 --file=FILE[:TEMPLATE]
ac1cb8d3 44162 instantiate the configuration file FILE
a848cd7e 44163 --header=FILE[:TEMPLATE]
ac1cb8d3 44164 instantiate the configuration header FILE
a848cd7e
SC
44165
44166Configuration files:
44167$config_files
44168
44169Configuration headers:
44170$config_headers
44171
44172Configuration commands:
44173$config_commands
44174
44175Report bugs to <bug-autoconf@gnu.org>."
44176_ACEOF
44177
44178cat >>$CONFIG_STATUS <<_ACEOF
44179ac_cs_version="\\
e0d84535 44180wxWidgets config.status 2.6.0
ac1cb8d3 44181configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
44182 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
44183
ac1cb8d3 44184Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
44185This config.status script is free software; the Free Software Foundation
44186gives unlimited permission to copy, distribute and modify it."
44187srcdir=$srcdir
44188INSTALL="$INSTALL"
44189_ACEOF
44190
44191cat >>$CONFIG_STATUS <<\_ACEOF
44192# If no file are specified by the user, then we need to provide default
44193# value. By we need to know if files were specified by the user.
44194ac_need_defaults=:
44195while test $# != 0
44196do
44197 case $1 in
44198 --*=*)
44199 ac_option=`expr "x$1" : 'x\([^=]*\)='`
44200 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
44201 ac_shift=:
44202 ;;
44203 -*)
44204 ac_option=$1
44205 ac_optarg=$2
44206 ac_shift=shift
44207 ;;
44208 *) # This is not an option, so the user has probably given explicit
44209 # arguments.
44210 ac_option=$1
44211 ac_need_defaults=false;;
44212 esac
44213
44214 case $ac_option in
44215 # Handling of the options.
44216_ACEOF
44217cat >>$CONFIG_STATUS <<\_ACEOF
44218 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44219 ac_cs_recheck=: ;;
44220 --version | --vers* | -V )
44221 echo "$ac_cs_version"; exit 0 ;;
44222 --he | --h)
44223 # Conflict between --help and --header
44224 { { echo "$as_me:$LINENO: error: ambiguous option: $1
44225Try \`$0 --help' for more information." >&5
44226echo "$as_me: error: ambiguous option: $1
44227Try \`$0 --help' for more information." >&2;}
44228 { (exit 1); exit 1; }; };;
44229 --help | --hel | -h )
44230 echo "$ac_cs_usage"; exit 0 ;;
44231 --debug | --d* | -d )
44232 debug=: ;;
44233 --file | --fil | --fi | --f )
44234 $ac_shift
44235 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44236 ac_need_defaults=false;;
44237 --header | --heade | --head | --hea )
44238 $ac_shift
44239 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44240 ac_need_defaults=false;;
44241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44242 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44243 ac_cs_silent=: ;;
44244
44245 # This is an error.
44246 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44247Try \`$0 --help' for more information." >&5
44248echo "$as_me: error: unrecognized option: $1
44249Try \`$0 --help' for more information." >&2;}
44250 { (exit 1); exit 1; }; } ;;
44251
44252 *) ac_config_targets="$ac_config_targets $1" ;;
44253
44254 esac
44255 shift
44256done
44257
44258ac_configure_extra_args=
44259
44260if $ac_cs_silent; then
44261 exec 6>/dev/null
44262 ac_configure_extra_args="$ac_configure_extra_args --silent"
44263fi
44264
44265_ACEOF
44266cat >>$CONFIG_STATUS <<_ACEOF
44267if \$ac_cs_recheck; then
44268 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44269 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44270fi
44271
44272_ACEOF
44273
44274cat >>$CONFIG_STATUS <<_ACEOF
44275#
44276# INIT-COMMANDS section.
44277#
44278
ceec2216
RL
44279 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44280 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44281 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44282 LN_S="${LN_S}"
a848cd7e
SC
44283
44284
44285_ACEOF
44286
44287
44288
44289cat >>$CONFIG_STATUS <<\_ACEOF
44290for ac_config_target in $ac_config_targets
44291do
44292 case "$ac_config_target" in
44293 # Handling of arguments.
ceec2216
RL
44294 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44295 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
44296 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44297 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44298 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
44299 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44300 "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
44301 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44302echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44303 { (exit 1); exit 1; }; };;
44304 esac
44305done
44306
44307# If the user did not use the arguments to specify the items to instantiate,
44308# then the envvar interface is used. Set only those that are not.
44309# We use the long form for the default assignment because of an extremely
44310# bizarre bug on SunOS 4.1.3.
44311if $ac_need_defaults; then
44312 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44313 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44314 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44315fi
44316
44317# Have a temporary directory for convenience. Make it in the build tree
44318# simply because there is no reason to put it here, and in addition,
44319# creating and moving files from /tmp can sometimes cause problems.
44320# Create a temporary directory, and hook for its removal unless debugging.
44321$debug ||
44322{
44323 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44324 trap '{ (exit 1); exit 1; }' 1 2 13 15
44325}
44326
44327# Create a (secure) tmp directory for tmp files.
44328
44329{
44330 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44331 test -n "$tmp" && test -d "$tmp"
44332} ||
44333{
44334 tmp=./confstat$$-$RANDOM
44335 (umask 077 && mkdir $tmp)
44336} ||
44337{
44338 echo "$me: cannot create a temporary directory in ." >&2
44339 { (exit 1); exit 1; }
44340}
44341
44342_ACEOF
44343
44344cat >>$CONFIG_STATUS <<_ACEOF
44345
44346#
44347# CONFIG_FILES section.
44348#
44349
44350# No need to generate the scripts if there are no CONFIG_FILES.
44351# This happens for instance when ./config.status config.h
44352if test -n "\$CONFIG_FILES"; then
44353 # Protect against being on the right side of a sed subst in config.status.
44354 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44355 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44356s,@SHELL@,$SHELL,;t t
44357s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44358s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44359s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44360s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44361s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44362s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44363s,@exec_prefix@,$exec_prefix,;t t
44364s,@prefix@,$prefix,;t t
44365s,@program_transform_name@,$program_transform_name,;t t
44366s,@bindir@,$bindir,;t t
44367s,@sbindir@,$sbindir,;t t
44368s,@libexecdir@,$libexecdir,;t t
44369s,@datadir@,$datadir,;t t
44370s,@sysconfdir@,$sysconfdir,;t t
44371s,@sharedstatedir@,$sharedstatedir,;t t
44372s,@localstatedir@,$localstatedir,;t t
44373s,@libdir@,$libdir,;t t
44374s,@includedir@,$includedir,;t t
44375s,@oldincludedir@,$oldincludedir,;t t
44376s,@infodir@,$infodir,;t t
44377s,@mandir@,$mandir,;t t
44378s,@build_alias@,$build_alias,;t t
44379s,@host_alias@,$host_alias,;t t
44380s,@target_alias@,$target_alias,;t t
44381s,@DEFS@,$DEFS,;t t
44382s,@ECHO_C@,$ECHO_C,;t t
44383s,@ECHO_N@,$ECHO_N,;t t
44384s,@ECHO_T@,$ECHO_T,;t t
44385s,@LIBS@,$LIBS,;t t
44386s,@build@,$build,;t t
44387s,@build_cpu@,$build_cpu,;t t
44388s,@build_vendor@,$build_vendor,;t t
44389s,@build_os@,$build_os,;t t
44390s,@host@,$host,;t t
44391s,@host_cpu@,$host_cpu,;t t
44392s,@host_vendor@,$host_vendor,;t t
44393s,@host_os@,$host_os,;t t
44394s,@target@,$target,;t t
44395s,@target_cpu@,$target_cpu,;t t
44396s,@target_vendor@,$target_vendor,;t t
44397s,@target_os@,$target_os,;t t
44398s,@CC@,$CC,;t t
44399s,@CFLAGS@,$CFLAGS,;t t
44400s,@LDFLAGS@,$LDFLAGS,;t t
44401s,@CPPFLAGS@,$CPPFLAGS,;t t
44402s,@ac_ct_CC@,$ac_ct_CC,;t t
44403s,@EXEEXT@,$EXEEXT,;t t
44404s,@OBJEXT@,$OBJEXT,;t t
44405s,@CPP@,$CPP,;t t
44406s,@EGREP@,$EGREP,;t t
44407s,@CXX@,$CXX,;t t
44408s,@CXXFLAGS@,$CXXFLAGS,;t t
44409s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44410s,@RANLIB@,$RANLIB,;t t
44411s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44412s,@AR@,$AR,;t t
44413s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44414s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44415s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44416s,@STRIP@,$STRIP,;t t
44417s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44418s,@LN_S@,$LN_S,;t t
44419s,@CXXCPP@,$CXXCPP,;t t
44420s,@subdirs@,$subdirs,;t t
44421s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44422s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44423s,@GTK_LIBS@,$GTK_LIBS,;t t
44424s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
44425s,@X_CFLAGS@,$X_CFLAGS,;t t
44426s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44427s,@X_LIBS@,$X_LIBS,;t t
44428s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44429s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44430s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
44431s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44432s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
44433s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44434s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44435s,@RESCOMP@,$RESCOMP,;t t
44436s,@DEREZ@,$DEREZ,;t t
44437s,@SETFILE@,$SETFILE,;t t
44438s,@LIBICONV@,$LIBICONV,;t t
44439s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44440s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44441s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44442s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
44443s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44444s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
44445s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44446s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44447s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
44448s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44449s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44450s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44451s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44452s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44453s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44454s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44455s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44456s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44457s,@VENDOR@,$VENDOR,;t t
44458s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
44459s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44460s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
44461s,@WXUNIV@,$WXUNIV,;t t
44462s,@MONOLITHIC@,$MONOLITHIC,;t t
44463s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44464s,@EXTRALIBS@,$EXTRALIBS,;t t
44465s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44466s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44467s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44468s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44469s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44470s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44471s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 44472s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
44473s,@UNICODE@,$UNICODE,;t t
44474s,@BUILD@,$BUILD,;t t
44475s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44476s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
44477s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44478s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44479s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44480s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44481s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44482s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44483s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44484s,@SET_MAKE@,$SET_MAKE,;t t
44485s,@MAKE_SET@,$MAKE_SET,;t t
44486s,@ac_ct_AR@,$ac_ct_AR,;t t
44487s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44488s,@NM@,$NM,;t t
44489s,@ac_ct_NM@,$ac_ct_NM,;t t
44490s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44491s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44492s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44493s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44494s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44495s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 44496s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
44497s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44498s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 44499s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
44500s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44501s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44502s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44503s,@LIBPREFIX@,$LIBPREFIX,;t t
44504s,@LIBEXT@,$LIBEXT,;t t
44505s,@DLLPREFIX@,$DLLPREFIX,;t t
44506s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44507s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44508s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44509s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44510s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44511s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44512s,@PIC_FLAG@,$PIC_FLAG,;t t
44513s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44514s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44515s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44516s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44517s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44518s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44519s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44520s,@GCC_PCH@,$GCC_PCH,;t t
44521s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
44522s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
44523s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
44524s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
44525s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
44526s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
44527s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
44528s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
44529s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
44530s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
44531s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
44532s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
44533s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
44534s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
44535s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
44536s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
44537s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
44538s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 44539s,@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 44540s,@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 44541s,@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 44542s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 44543s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44544s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
44545s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 44546s,@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 44547s,@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 44548s,@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 44549s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 44550s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
44551s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
44552s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
44553s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
44554s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
44555s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
44556s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
44557s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
44558s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 44559s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
44560s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
44561s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
44562s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 44563s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 44564s,@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
44565s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
44566s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
44567s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
44568s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 44569s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
44570s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
44571s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
44572s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
44573s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
44574s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
44575s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
44576s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
44577s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
44578s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
44579s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
44580s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
44581s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
44582s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
44583s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44584s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44585s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
52ada004 44586s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44587s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
44588s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
44589s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
44590s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
44591s,@COND_SHARED_1@,$COND_SHARED_1,;t t
44592s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
52ada004 44593s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 44594s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 44595s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 44596s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
44597s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
44598s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
44599s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
44600s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
44601s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
44602s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
44603s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
44604s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
44605s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
44606s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
44607s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
44608s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
44609s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
44610s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
44611s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
44612s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
44613s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
44614s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
44615s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
44616s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
44617s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
44618s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
44619s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
44620s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
44621s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
44622s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
44623s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
44624s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
44625s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
44626s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
44627s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44628s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44629s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 44630s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 44631s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 44632s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
44633s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
44634s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e
SC
44635s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
44636s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
44637s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
44638s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
44639s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
44640s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 44641s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 44642s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 44643s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
44644s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
44645s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
44646s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
44647s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
44648s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
44649s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
44650s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
44651s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 44652s,@SHARED@,$SHARED,;t t
a848cd7e
SC
44653s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
44654s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
44655s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
44656s,@USE_GUI@,$USE_GUI,;t t
44657s,@AFMINSTALL@,$AFMINSTALL,;t t
44658s,@WIN32INSTALL@,$WIN32INSTALL,;t t
44659s,@TOOLKIT@,$TOOLKIT,;t t
44660s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 44661s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 44662s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
44663s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
44664s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 44665s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
44666s,@WIDGET_SET@,$WIDGET_SET,;t t
44667s,@WX_RELEASE@,$WX_RELEASE,;t t
44668s,@WX_VERSION@,$WX_VERSION,;t t
44669s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
44670s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
44671s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 44672s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
44673s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
44674s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
44675s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
44676s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 44677s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
44678s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
44679s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 44680s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 44681s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
44682s,@DISTDIR@,$DISTDIR,;t t
44683s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
44684s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
44685s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
44686s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
44687s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
44688s,@RESFLAGS@,$RESFLAGS,;t t
44689s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
44690s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
44691s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
44692s,@LIBWXMACRES@,$LIBWXMACRES,;t t
44693s,@MACRESCOMP@,$MACRESCOMP,;t t
44694s,@MACSETFILE@,$MACSETFILE,;t t
44695s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
44696s,@GCC@,$GCC,;t t
a848cd7e 44697s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
44698s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
44699s,@LIBOBJS@,$LIBOBJS,;t t
44700s,@LTLIBOBJS@,$LTLIBOBJS,;t t
44701CEOF
44702
44703_ACEOF
44704
44705 cat >>$CONFIG_STATUS <<\_ACEOF
44706 # Split the substitutions into bite-sized pieces for seds with
44707 # small command number limits, like on Digital OSF/1 and HP-UX.
44708 ac_max_sed_lines=48
44709 ac_sed_frag=1 # Number of current file.
44710 ac_beg=1 # First line for current file.
44711 ac_end=$ac_max_sed_lines # Line after last line for current file.
44712 ac_more_lines=:
44713 ac_sed_cmds=
44714 while $ac_more_lines; do
44715 if test $ac_beg -gt 1; then
44716 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44717 else
44718 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44719 fi
44720 if test ! -s $tmp/subs.frag; then
44721 ac_more_lines=false
44722 else
44723 # The purpose of the label and of the branching condition is to
44724 # speed up the sed processing (if there are no `@' at all, there
44725 # is no need to browse any of the substitutions).
44726 # These are the two extra sed commands mentioned above.
44727 (echo ':t
44728 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44729 if test -z "$ac_sed_cmds"; then
ac1cb8d3 44730 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 44731 else
ac1cb8d3 44732 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
44733 fi
44734 ac_sed_frag=`expr $ac_sed_frag + 1`
44735 ac_beg=$ac_end
44736 ac_end=`expr $ac_end + $ac_max_sed_lines`
44737 fi
44738 done
44739 if test -z "$ac_sed_cmds"; then
44740 ac_sed_cmds=cat
44741 fi
44742fi # test -n "$CONFIG_FILES"
44743
44744_ACEOF
44745cat >>$CONFIG_STATUS <<\_ACEOF
44746for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
44747 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44748 case $ac_file in
44749 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44750 cat >$tmp/stdin
44751 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44752 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44753 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44754 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44755 * ) ac_file_in=$ac_file.in ;;
44756 esac
44757
44758 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
44759 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44760$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44761 X"$ac_file" : 'X\(//\)[^/]' \| \
44762 X"$ac_file" : 'X\(//\)$' \| \
44763 X"$ac_file" : 'X\(/\)' \| \
44764 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44765echo X"$ac_file" |
44766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44767 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44768 /^X\(\/\/\)$/{ s//\1/; q; }
44769 /^X\(\/\).*/{ s//\1/; q; }
44770 s/.*/./; q'`
44771 { if $as_mkdir_p; then
44772 mkdir -p "$ac_dir"
44773 else
44774 as_dir="$ac_dir"
44775 as_dirs=
44776 while test ! -d "$as_dir"; do
44777 as_dirs="$as_dir $as_dirs"
44778 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44779$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44780 X"$as_dir" : 'X\(//\)[^/]' \| \
44781 X"$as_dir" : 'X\(//\)$' \| \
44782 X"$as_dir" : 'X\(/\)' \| \
44783 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44784echo X"$as_dir" |
44785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44786 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44787 /^X\(\/\/\)$/{ s//\1/; q; }
44788 /^X\(\/\).*/{ s//\1/; q; }
44789 s/.*/./; q'`
44790 done
44791 test ! -n "$as_dirs" || mkdir $as_dirs
44792 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44793echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44794 { (exit 1); exit 1; }; }; }
44795
44796 ac_builddir=.
44797
44798if test "$ac_dir" != .; then
44799 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44800 # A "../" for each directory in $ac_dir_suffix.
44801 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44802else
44803 ac_dir_suffix= ac_top_builddir=
44804fi
44805
44806case $srcdir in
44807 .) # No --srcdir option. We are building in place.
44808 ac_srcdir=.
44809 if test -z "$ac_top_builddir"; then
44810 ac_top_srcdir=.
44811 else
44812 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44813 fi ;;
44814 [\\/]* | ?:[\\/]* ) # Absolute path.
44815 ac_srcdir=$srcdir$ac_dir_suffix;
44816 ac_top_srcdir=$srcdir ;;
44817 *) # Relative path.
44818 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44819 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44820esac
ac1cb8d3
VS
44821
44822# Do not use `cd foo && pwd` to compute absolute paths, because
44823# the directories may not exist.
44824case `pwd` in
44825.) ac_abs_builddir="$ac_dir";;
44826*)
44827 case "$ac_dir" in
44828 .) ac_abs_builddir=`pwd`;;
44829 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44830 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44831 esac;;
44832esac
44833case $ac_abs_builddir in
44834.) ac_abs_top_builddir=${ac_top_builddir}.;;
44835*)
44836 case ${ac_top_builddir}. in
44837 .) ac_abs_top_builddir=$ac_abs_builddir;;
44838 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44839 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44840 esac;;
44841esac
44842case $ac_abs_builddir in
44843.) ac_abs_srcdir=$ac_srcdir;;
44844*)
44845 case $ac_srcdir in
44846 .) ac_abs_srcdir=$ac_abs_builddir;;
44847 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44848 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44849 esac;;
44850esac
44851case $ac_abs_builddir in
44852.) ac_abs_top_srcdir=$ac_top_srcdir;;
44853*)
44854 case $ac_top_srcdir in
44855 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44856 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44857 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44858 esac;;
44859esac
a848cd7e
SC
44860
44861
44862 case $INSTALL in
44863 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44864 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
44865 esac
44866
a848cd7e
SC
44867 # Let's still pretend it is `configure' which instantiates (i.e., don't
44868 # use $as_me), people would be surprised to read:
44869 # /* config.h. Generated by config.status. */
44870 if test x"$ac_file" = x-; then
44871 configure_input=
44872 else
44873 configure_input="$ac_file. "
44874 fi
44875 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 44876 sed 's,.*/,,'` by configure."
a848cd7e
SC
44877
44878 # First look for the input files in the build tree, otherwise in the
44879 # src tree.
44880 ac_file_inputs=`IFS=:
44881 for f in $ac_file_in; do
44882 case $f in
44883 -) echo $tmp/stdin ;;
44884 [\\/$]*)
ac1cb8d3
VS
44885 # Absolute (can't be DOS-style, as IFS=:)
44886 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44887echo "$as_me: error: cannot find input file: $f" >&2;}
44888 { (exit 1); exit 1; }; }
ac1cb8d3 44889 echo "$f";;
a848cd7e 44890 *) # Relative
ac1cb8d3
VS
44891 if test -f "$f"; then
44892 # Build tree
44893 echo "$f"
44894 elif test -f "$srcdir/$f"; then
44895 # Source tree
44896 echo "$srcdir/$f"
44897 else
44898 # /dev/null tree
44899 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44900echo "$as_me: error: cannot find input file: $f" >&2;}
44901 { (exit 1); exit 1; }; }
ac1cb8d3 44902 fi;;
a848cd7e
SC
44903 esac
44904 done` || { (exit 1); exit 1; }
9dd0f6c2
DE
44905
44906 if test x"$ac_file" != x-; then
44907 { echo "$as_me:$LINENO: creating $ac_file" >&5
44908echo "$as_me: creating $ac_file" >&6;}
44909 rm -f "$ac_file"
44910 fi
a848cd7e
SC
44911_ACEOF
44912cat >>$CONFIG_STATUS <<_ACEOF
44913 sed "$ac_vpsub
44914$extrasub
44915_ACEOF
44916cat >>$CONFIG_STATUS <<\_ACEOF
44917:t
44918/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44919s,@configure_input@,$configure_input,;t t
44920s,@srcdir@,$ac_srcdir,;t t
44921s,@abs_srcdir@,$ac_abs_srcdir,;t t
44922s,@top_srcdir@,$ac_top_srcdir,;t t
44923s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
44924s,@builddir@,$ac_builddir,;t t
44925s,@abs_builddir@,$ac_abs_builddir,;t t
44926s,@top_builddir@,$ac_top_builddir,;t t
44927s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
44928s,@INSTALL@,$ac_INSTALL,;t t
44929" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
44930 rm -f $tmp/stdin
44931 if test x"$ac_file" != x-; then
44932 mv $tmp/out $ac_file
44933 else
44934 cat $tmp/out
44935 rm -f $tmp/out
44936 fi
44937
ceec2216
RL
44938 # Run the commands associated with the file.
44939 case $ac_file in
44940 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
44941 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
44942 esac
a848cd7e
SC
44943done
44944_ACEOF
44945cat >>$CONFIG_STATUS <<\_ACEOF
44946
44947#
44948# CONFIG_HEADER section.
44949#
44950
44951# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
44952# NAME is the cpp macro being defined and VALUE is the value it is being given.
44953#
44954# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
44955ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
44956ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
44957ac_dC=' '
44958ac_dD=',;t'
44959# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 44960ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
44961ac_uB='$,\1#\2define\3'
44962ac_uC=' '
44963ac_uD=',;t'
44964
44965for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
44966 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44967 case $ac_file in
44968 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44969 cat >$tmp/stdin
44970 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44971 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44972 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44973 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44974 * ) ac_file_in=$ac_file.in ;;
44975 esac
44976
44977 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
44978echo "$as_me: creating $ac_file" >&6;}
44979
44980 # First look for the input files in the build tree, otherwise in the
44981 # src tree.
44982 ac_file_inputs=`IFS=:
44983 for f in $ac_file_in; do
44984 case $f in
44985 -) echo $tmp/stdin ;;
44986 [\\/$]*)
ac1cb8d3
VS
44987 # Absolute (can't be DOS-style, as IFS=:)
44988 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44989echo "$as_me: error: cannot find input file: $f" >&2;}
44990 { (exit 1); exit 1; }; }
ac1cb8d3
VS
44991 # Do quote $f, to prevent DOS paths from being IFS'd.
44992 echo "$f";;
a848cd7e 44993 *) # Relative
ac1cb8d3
VS
44994 if test -f "$f"; then
44995 # Build tree
44996 echo "$f"
44997 elif test -f "$srcdir/$f"; then
44998 # Source tree
44999 echo "$srcdir/$f"
45000 else
45001 # /dev/null tree
45002 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45003echo "$as_me: error: cannot find input file: $f" >&2;}
45004 { (exit 1); exit 1; }; }
ac1cb8d3 45005 fi;;
a848cd7e
SC
45006 esac
45007 done` || { (exit 1); exit 1; }
45008 # Remove the trailing spaces.
ac1cb8d3 45009 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
45010
45011_ACEOF
45012
45013# Transform confdefs.h into two sed scripts, `conftest.defines' and
45014# `conftest.undefs', that substitutes the proper values into
45015# config.h.in to produce config.h. The first handles `#define'
45016# templates, and the second `#undef' templates.
45017# And first: Protect against being on the right side of a sed subst in
45018# config.status. Protect against being in an unquoted here document
45019# in config.status.
45020rm -f conftest.defines conftest.undefs
45021# Using a here document instead of a string reduces the quoting nightmare.
45022# Putting comments in sed scripts is not portable.
45023#
45024# `end' is used to avoid that the second main sed command (meant for
45025# 0-ary CPP macros) applies to n-ary macro definitions.
45026# See the Autoconf documentation for `clear'.
45027cat >confdef2sed.sed <<\_ACEOF
45028s/[\\&,]/\\&/g
45029s,[\\$`],\\&,g
45030t clear
45031: clear
ac1cb8d3 45032s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 45033t end
ac1cb8d3 45034s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
45035: end
45036_ACEOF
45037# If some macros were called several times there might be several times
45038# the same #defines, which is useless. Nevertheless, we may not want to
45039# sort them, since we want the *last* AC-DEFINE to be honored.
45040uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45041sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45042rm -f confdef2sed.sed
45043
45044# This sed command replaces #undef with comments. This is necessary, for
45045# example, in the case of _POSIX_SOURCE, which is predefined and required
45046# on some systems where configure will not decide to define it.
45047cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 45048s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
45049_ACEOF
45050
45051# Break up conftest.defines because some shells have a limit on the size
45052# of here documents, and old seds have small limits too (100 cmds).
45053echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 45054echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
45055echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45056echo ' :' >>$CONFIG_STATUS
45057rm -f conftest.tail
45058while grep . conftest.defines >/dev/null
45059do
45060 # Write a limited-size here document to $tmp/defines.sed.
45061 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45062 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 45063 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
45064 # Work around the forget-to-reset-the-flag bug.
45065 echo 't clr' >>$CONFIG_STATUS
45066 echo ': clr' >>$CONFIG_STATUS
45067 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45068 echo 'CEOF
45069 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45070 rm -f $tmp/in
45071 mv $tmp/out $tmp/in
45072' >>$CONFIG_STATUS
45073 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45074 rm -f conftest.defines
45075 mv conftest.tail conftest.defines
45076done
45077rm -f conftest.defines
45078echo ' fi # grep' >>$CONFIG_STATUS
45079echo >>$CONFIG_STATUS
45080
45081# Break up conftest.undefs because some shells have a limit on the size
45082# of here documents, and old seds have small limits too (100 cmds).
45083echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
45084rm -f conftest.tail
45085while grep . conftest.undefs >/dev/null
45086do
45087 # Write a limited-size here document to $tmp/undefs.sed.
45088 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45089 # Speed up: don't consider the non `#undef'
ac1cb8d3 45090 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
45091 # Work around the forget-to-reset-the-flag bug.
45092 echo 't clr' >>$CONFIG_STATUS
45093 echo ': clr' >>$CONFIG_STATUS
45094 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45095 echo 'CEOF
45096 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45097 rm -f $tmp/in
45098 mv $tmp/out $tmp/in
45099' >>$CONFIG_STATUS
45100 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45101 rm -f conftest.undefs
45102 mv conftest.tail conftest.undefs
45103done
45104rm -f conftest.undefs
45105
45106cat >>$CONFIG_STATUS <<\_ACEOF
45107 # Let's still pretend it is `configure' which instantiates (i.e., don't
45108 # use $as_me), people would be surprised to read:
45109 # /* config.h. Generated by config.status. */
45110 if test x"$ac_file" = x-; then
45111 echo "/* Generated by configure. */" >$tmp/config.h
45112 else
45113 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
45114 fi
45115 cat $tmp/in >>$tmp/config.h
45116 rm -f $tmp/in
45117 if test x"$ac_file" != x-; then
45118 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45119 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45120echo "$as_me: $ac_file is unchanged" >&6;}
45121 else
45122 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45123$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45124 X"$ac_file" : 'X\(//\)[^/]' \| \
45125 X"$ac_file" : 'X\(//\)$' \| \
45126 X"$ac_file" : 'X\(/\)' \| \
45127 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45128echo X"$ac_file" |
45129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45131 /^X\(\/\/\)$/{ s//\1/; q; }
45132 /^X\(\/\).*/{ s//\1/; q; }
45133 s/.*/./; q'`
45134 { if $as_mkdir_p; then
45135 mkdir -p "$ac_dir"
45136 else
45137 as_dir="$ac_dir"
45138 as_dirs=
45139 while test ! -d "$as_dir"; do
45140 as_dirs="$as_dir $as_dirs"
45141 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45142$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45143 X"$as_dir" : 'X\(//\)[^/]' \| \
45144 X"$as_dir" : 'X\(//\)$' \| \
45145 X"$as_dir" : 'X\(/\)' \| \
45146 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45147echo X"$as_dir" |
45148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45150 /^X\(\/\/\)$/{ s//\1/; q; }
45151 /^X\(\/\).*/{ s//\1/; q; }
45152 s/.*/./; q'`
45153 done
45154 test ! -n "$as_dirs" || mkdir $as_dirs
45155 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45156echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45157 { (exit 1); exit 1; }; }; }
45158
45159 rm -f $ac_file
45160 mv $tmp/config.h $ac_file
45161 fi
45162 else
45163 cat $tmp/config.h
45164 rm -f $tmp/config.h
45165 fi
45166done
45167_ACEOF
45168cat >>$CONFIG_STATUS <<\_ACEOF
45169
45170#
45171# CONFIG_COMMANDS section.
45172#
45173for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
45174 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
45175 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
45176 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
45177$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45178 X"$ac_dest" : 'X\(//\)[^/]' \| \
45179 X"$ac_dest" : 'X\(//\)$' \| \
45180 X"$ac_dest" : 'X\(/\)' \| \
45181 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45182echo X"$ac_dest" |
45183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45185 /^X\(\/\/\)$/{ s//\1/; q; }
45186 /^X\(\/\).*/{ s//\1/; q; }
45187 s/.*/./; q'`
ac1cb8d3
VS
45188 { if $as_mkdir_p; then
45189 mkdir -p "$ac_dir"
45190 else
45191 as_dir="$ac_dir"
45192 as_dirs=
45193 while test ! -d "$as_dir"; do
45194 as_dirs="$as_dir $as_dirs"
45195 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45196$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45197 X"$as_dir" : 'X\(//\)[^/]' \| \
45198 X"$as_dir" : 'X\(//\)$' \| \
45199 X"$as_dir" : 'X\(/\)' \| \
45200 . : '\(.\)' 2>/dev/null ||
45201echo X"$as_dir" |
45202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45204 /^X\(\/\/\)$/{ s//\1/; q; }
45205 /^X\(\/\).*/{ s//\1/; q; }
45206 s/.*/./; q'`
45207 done
45208 test ! -n "$as_dirs" || mkdir $as_dirs
45209 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45210echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45211 { (exit 1); exit 1; }; }; }
45212
a848cd7e
SC
45213 ac_builddir=.
45214
45215if test "$ac_dir" != .; then
45216 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45217 # A "../" for each directory in $ac_dir_suffix.
45218 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45219else
45220 ac_dir_suffix= ac_top_builddir=
45221fi
45222
45223case $srcdir in
45224 .) # No --srcdir option. We are building in place.
45225 ac_srcdir=.
45226 if test -z "$ac_top_builddir"; then
45227 ac_top_srcdir=.
45228 else
45229 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45230 fi ;;
45231 [\\/]* | ?:[\\/]* ) # Absolute path.
45232 ac_srcdir=$srcdir$ac_dir_suffix;
45233 ac_top_srcdir=$srcdir ;;
45234 *) # Relative path.
45235 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45236 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45237esac
ac1cb8d3
VS
45238
45239# Do not use `cd foo && pwd` to compute absolute paths, because
45240# the directories may not exist.
45241case `pwd` in
45242.) ac_abs_builddir="$ac_dir";;
45243*)
45244 case "$ac_dir" in
45245 .) ac_abs_builddir=`pwd`;;
45246 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45247 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45248 esac;;
45249esac
45250case $ac_abs_builddir in
45251.) ac_abs_top_builddir=${ac_top_builddir}.;;
45252*)
45253 case ${ac_top_builddir}. in
45254 .) ac_abs_top_builddir=$ac_abs_builddir;;
45255 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45256 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45257 esac;;
45258esac
45259case $ac_abs_builddir in
45260.) ac_abs_srcdir=$ac_srcdir;;
45261*)
45262 case $ac_srcdir in
45263 .) ac_abs_srcdir=$ac_abs_builddir;;
45264 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45265 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45266 esac;;
45267esac
45268case $ac_abs_builddir in
45269.) ac_abs_top_srcdir=$ac_top_srcdir;;
45270*)
45271 case $ac_top_srcdir in
45272 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45273 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45274 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45275 esac;;
45276esac
a848cd7e
SC
45277
45278
45279 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45280echo "$as_me: executing $ac_dest commands" >&6;}
45281 case $ac_dest in
ceec2216
RL
45282 wx-config ) rm -f wx-config
45283 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45284 ;;
a848cd7e
SC
45285 esac
45286done
45287_ACEOF
45288
45289cat >>$CONFIG_STATUS <<\_ACEOF
45290
45291{ (exit 0); exit 0; }
45292_ACEOF
45293chmod +x $CONFIG_STATUS
45294ac_clean_files=$ac_clean_files_save
45295
45296
45297# configure is writing to config.log, and then calls config.status.
45298# config.status does its own redirection, appending to config.log.
45299# Unfortunately, on DOS this fails, as config.log is still kept open
45300# by configure, so config.status won't be able to write to it; its
45301# output is simply discarded. So we exec the FD to /dev/null,
45302# effectively closing config.log, so it can be properly (re)opened and
45303# appended to by config.status. When coming back to configure, we
45304# need to make the FD available again.
45305if test "$no_create" != yes; then
45306 ac_cs_success=:
45307 ac_config_status_args=
45308 test "$silent" = yes &&
45309 ac_config_status_args="$ac_config_status_args --quiet"
45310 exec 5>/dev/null
45311 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45312 exec 5>>config.log
45313 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45314 # would make configure fail if this is the last instruction.
45315 $ac_cs_success || { (exit 1); exit 1; }
45316fi
45317
45318#
45319# CONFIG_SUBDIRS section.
45320#
45321if test "$no_recursion" != yes; then
45322
45323 # Remove --cache-file and --srcdir arguments so they do not pile up.
45324 ac_sub_configure_args=
45325 ac_prev=
45326 for ac_arg in $ac_configure_args; do
45327 if test -n "$ac_prev"; then
45328 ac_prev=
45329 continue
45330 fi
45331 case $ac_arg in
45332 -cache-file | --cache-file | --cache-fil | --cache-fi \
45333 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45334 ac_prev=cache_file ;;
45335 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45336 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45337 | --c=*)
45338 ;;
45339 --config-cache | -C)
45340 ;;
45341 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45342 ac_prev=srcdir ;;
45343 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45344 ;;
45345 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45346 ac_prev=prefix ;;
45347 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45348 ;;
45349 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45350 esac
45351 done
45352
45353 # Always prepend --prefix to ensure using the same prefix
45354 # in subdir configurations.
45355 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45356
45357 ac_popdir=`pwd`
45358 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45359
45360 # Do not complain, so a configure script can configure whichever
45361 # parts of a large source tree are present.
45362 test -d $srcdir/$ac_dir || continue
45363
45364 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45365echo "$as_me: configuring in $ac_dir" >&6;}
45366 { if $as_mkdir_p; then
45367 mkdir -p "$ac_dir"
45368 else
45369 as_dir="$ac_dir"
45370 as_dirs=
45371 while test ! -d "$as_dir"; do
45372 as_dirs="$as_dir $as_dirs"
45373 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45374$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45375 X"$as_dir" : 'X\(//\)[^/]' \| \
45376 X"$as_dir" : 'X\(//\)$' \| \
45377 X"$as_dir" : 'X\(/\)' \| \
45378 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45379echo X"$as_dir" |
45380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45382 /^X\(\/\/\)$/{ s//\1/; q; }
45383 /^X\(\/\).*/{ s//\1/; q; }
45384 s/.*/./; q'`
45385 done
45386 test ! -n "$as_dirs" || mkdir $as_dirs
45387 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45388echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45389 { (exit 1); exit 1; }; }; }
45390
45391 ac_builddir=.
45392
45393if test "$ac_dir" != .; then
45394 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45395 # A "../" for each directory in $ac_dir_suffix.
45396 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45397else
45398 ac_dir_suffix= ac_top_builddir=
45399fi
45400
45401case $srcdir in
45402 .) # No --srcdir option. We are building in place.
45403 ac_srcdir=.
45404 if test -z "$ac_top_builddir"; then
45405 ac_top_srcdir=.
45406 else
45407 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45408 fi ;;
45409 [\\/]* | ?:[\\/]* ) # Absolute path.
45410 ac_srcdir=$srcdir$ac_dir_suffix;
45411 ac_top_srcdir=$srcdir ;;
45412 *) # Relative path.
45413 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45414 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45415esac
ac1cb8d3
VS
45416
45417# Do not use `cd foo && pwd` to compute absolute paths, because
45418# the directories may not exist.
45419case `pwd` in
45420.) ac_abs_builddir="$ac_dir";;
45421*)
45422 case "$ac_dir" in
45423 .) ac_abs_builddir=`pwd`;;
45424 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45425 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45426 esac;;
45427esac
45428case $ac_abs_builddir in
45429.) ac_abs_top_builddir=${ac_top_builddir}.;;
45430*)
45431 case ${ac_top_builddir}. in
45432 .) ac_abs_top_builddir=$ac_abs_builddir;;
45433 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45434 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45435 esac;;
45436esac
45437case $ac_abs_builddir in
45438.) ac_abs_srcdir=$ac_srcdir;;
45439*)
45440 case $ac_srcdir in
45441 .) ac_abs_srcdir=$ac_abs_builddir;;
45442 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45443 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45444 esac;;
45445esac
45446case $ac_abs_builddir in
45447.) ac_abs_top_srcdir=$ac_top_srcdir;;
45448*)
45449 case $ac_top_srcdir in
45450 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45451 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45452 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45453 esac;;
45454esac
a848cd7e
SC
45455
45456
45457 cd $ac_dir
45458
45459 # Check for guested configure; otherwise get Cygnus style configure.
45460 if test -f $ac_srcdir/configure.gnu; then
45461 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45462 elif test -f $ac_srcdir/configure; then
45463 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45464 elif test -f $ac_srcdir/configure.in; then
45465 ac_sub_configure=$ac_configure
45466 else
45467 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45468echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45469 ac_sub_configure=
45470 fi
45471
45472 # The recursion is here.
45473 if test -n "$ac_sub_configure"; then
45474 # Make the cache file name correct relative to the subdirectory.
45475 case $cache_file in
45476 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45477 *) # Relative path.
ac1cb8d3 45478 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
45479 esac
45480
45481 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45482echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45483 # The eval makes quoting arguments work.
45484 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
45485 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45486 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
45487echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45488 { (exit 1); exit 1; }; }
45489 fi
45490
9dd0f6c2 45491 cd "$ac_popdir"
a848cd7e
SC
45492 done
45493fi
45494
45495
45496echo
77ffb593 45497echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 45498echo ""
4d4ff94c 45499echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 45500echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 45501
77ffb593
JS
45502echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
45503echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
45504echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 45505
77ffb593
JS
45506echo " What level of wxWidgets compatibility should be enabled?"
45507echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
45508echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 45509
77ffb593 45510echo " Which libraries should wxWidgets use?"
a848cd7e
SC
45511echo " jpeg ${wxUSE_LIBJPEG-none}"
45512echo " png ${wxUSE_LIBPNG-none}"
45513echo " regex ${wxUSE_REGEX}"
45514echo " tiff ${wxUSE_LIBTIFF-none}"
45515if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45516echo " xpm ${wxUSE_LIBXPM-none}"
45517fi
45518echo " zlib ${wxUSE_ZLIB}"
45519echo " odbc ${wxUSE_ODBC}"
45520echo " expat ${wxUSE_EXPAT}"
45521echo " libmspack ${wxUSE_LIBMSPACK}"
45522echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 45523echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
45524
45525echo ""
45526