]> git.saurik.com Git - wxWidgets.git/blame - configure
Simpler for readable diffs in future new ports.
[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
1729case "${host}" in
1730 *-hp-hpux* )
1731 USE_HPUX=1
1732 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1733 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1734 SO_SUFFIX=sl
1735 cat >>confdefs.h <<\_ACEOF
1736#define __HPUX__ 1
1737_ACEOF
1738
1739 ;;
1740 *-*-linux* )
1741 USE_LINUX=1
1742 cat >>confdefs.h <<\_ACEOF
1743#define __LINUX__ 1
1744_ACEOF
1745
1746 TMP=`uname -m`
1747 if test "x$TMP" = "xalpha"; then
1748 USE_ALPHA=1
1749 cat >>confdefs.h <<\_ACEOF
1750#define __ALPHA__ 1
1751_ACEOF
1752
1753 fi
1754 DEFAULT_DEFAULT_wxUSE_GTK=1
1755 ;;
1756 *-*-gnu* | *-*-k*bsd*-gnu )
1757 USE_GNU=1
1758 TMP=`uname -m`
1759 if test "x$TMP" = "xalpha"; then
1760 USE_ALPHA=1
1761 cat >>confdefs.h <<\_ACEOF
1762#define __ALPHA__ 1
1763_ACEOF
1764
1765 fi
1766 DEFAULT_DEFAULT_wxUSE_GTK=1
1767 ;;
1768 *-*-irix5* | *-*-irix6* )
1769 USE_SGI=1
1770 USE_SVR4=1
1771 cat >>confdefs.h <<\_ACEOF
1772#define __SGI__ 1
1773_ACEOF
1774
1775 cat >>confdefs.h <<\_ACEOF
1776#define __SVR4__ 1
1777_ACEOF
1778
1779 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1780 ;;
1781 *-*-solaris2* )
1782 USE_SUN=1
1783 USE_SOLARIS=1
1784 USE_SVR4=1
1785 cat >>confdefs.h <<\_ACEOF
1786#define __SUN__ 1
1787_ACEOF
1788
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SOLARIS__ 1
1791_ACEOF
1792
1793 cat >>confdefs.h <<\_ACEOF
1794#define __SVR4__ 1
1795_ACEOF
1796
1797 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1798 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1799 ;;
1800 *-*-sunos4* )
1801 USE_SUN=1
1802 USE_SUNOS=1
1803 USE_BSD=1
1804 cat >>confdefs.h <<\_ACEOF
1805#define __SUN__ 1
1806_ACEOF
1807
1808 cat >>confdefs.h <<\_ACEOF
1809#define __SUNOS__ 1
1810_ACEOF
1811
1812 cat >>confdefs.h <<\_ACEOF
1813#define __BSD__ 1
1814_ACEOF
1815
1816 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1817 ;;
1818 *-*-freebsd*)
1819 USE_BSD=1
1820 USE_FREEBSD=1
1821 cat >>confdefs.h <<\_ACEOF
1822#define __FREEBSD__ 1
1823_ACEOF
1824
1825 cat >>confdefs.h <<\_ACEOF
1826#define __BSD__ 1
1827_ACEOF
1828
1829 DEFAULT_DEFAULT_wxUSE_GTK=1
1830 ;;
1831 *-*-openbsd*)
1832 USE_BSD=1
1833 USE_OPENBSD=1
1834 cat >>confdefs.h <<\_ACEOF
1835#define __OPENBSD__ 1
1836_ACEOF
1837
1838 cat >>confdefs.h <<\_ACEOF
1839#define __BSD__ 1
1840_ACEOF
1841
1842 DEFAULT_DEFAULT_wxUSE_GTK=1
1843 ;;
1844 *-*-netbsd*)
1845 USE_BSD=1
1846 USE_NETBSD=1
1847 cat >>confdefs.h <<\_ACEOF
1848#define __NETBSD__ 1
1849_ACEOF
1850
1851 cat >>confdefs.h <<\_ACEOF
1852#define __BSD__ 1
1853_ACEOF
1854
1855 DEFAULT_DEFAULT_wxUSE_GTK=1
1856 ;;
1857 *-*-osf* )
1858 USE_ALPHA=1
1859 USE_OSF=1
1860 cat >>confdefs.h <<\_ACEOF
1861#define __ALPHA__ 1
1862_ACEOF
1863
1864 cat >>confdefs.h <<\_ACEOF
1865#define __OSF__ 1
1866_ACEOF
1867
1868 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1869 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1870 ;;
1871 *-*-dgux5* )
1872 USE_ALPHA=1
1873 USE_SVR4=1
1874 cat >>confdefs.h <<\_ACEOF
1875#define __ALPHA__ 1
1876_ACEOF
1877
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SVR4__ 1
1880_ACEOF
1881
1882 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1883 ;;
1884 *-*-sysv5* )
1885 USE_SYSV=1
1886 USE_SVR4=1
1887 cat >>confdefs.h <<\_ACEOF
1888#define __SYSV__ 1
1889_ACEOF
1890
1891 cat >>confdefs.h <<\_ACEOF
1892#define __SVR4__ 1
1893_ACEOF
1894
1895 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1896 ;;
1897 *-*-aix* )
1898 USE_AIX=1
1899 USE_SYSV=1
1900 USE_SVR4=1
1901 SO_SUFFIX=a
1902 cat >>confdefs.h <<\_ACEOF
1903#define __AIX__ 1
1904_ACEOF
1905
1906 cat >>confdefs.h <<\_ACEOF
1907#define __SYSV__ 1
1908_ACEOF
1909
1910 cat >>confdefs.h <<\_ACEOF
1911#define __SVR4__ 1
1912_ACEOF
1913
1914 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1915 ;;
1916
1917 *-*-*UnixWare*)
1918 USE_SYSV=1
1919 USE_SVR4=1
1920 USE_UNIXWARE=1
1921 cat >>confdefs.h <<\_ACEOF
1922#define __UNIXWARE__ 1
1923_ACEOF
1924
1925 ;;
1926
1927 *-*-cygwin* | *-*-mingw32* )
1928 SO_SUFFIX=dll
1929 PROGRAM_EXT=".exe"
1930 RESCOMP=windres
1931 DEFAULT_DEFAULT_wxUSE_MSW=1
1932 ;;
1933
1934 *-pc-msdosdjgpp )
1935 USE_UNIX=0
1936 USE_DOS=1
1937 cat >>confdefs.h <<\_ACEOF
1938#define __DOS__ 1
1939_ACEOF
1940
1941 PROGRAM_EXT=".exe"
1942 DEFAULT_DEFAULT_wxUSE_MGL=1
1943 LIBS="$LIBS -lstdc++"
1944 ;;
1945
1946 *-pc-os2_emx | *-pc-os2-emx )
1947 cat >>confdefs.h <<\_ACEOF
1948#define __EMX__ 1
1949_ACEOF
1950
1951 USE_OS2=1
1952 cat >>confdefs.h <<\_ACEOF
1953#define __OS2__ 1
1954_ACEOF
1955
1956 PROGRAM_EXT=".exe"
1957 DEFAULT_DEFAULT_wxUSE_PM=1
1958 CXX=gcc
1959 LDFLAGS="$LDFLAGS -Zcrtdll"
1960 ac_executable_extensions=".exe"
1961 export ac_executable_extensions
1962 ac_save_IFS="$IFS"
1963 IFS='\\'
1964 ac_TEMP_PATH=
1965 for ac_dir in $PATH; do
1966 IFS=$ac_save_IFS
1967 if test -z "$ac_TEMP_PATH"; then
1968 ac_TEMP_PATH="$ac_dir"
1969 else
1970 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1971 fi
1972 done
1973 export PATH="$ac_TEMP_PATH"
1974 unset ac_TEMP_PATH
1975 ;;
1976
1977 powerpc-*-darwin* )
1978 USE_BSD=1
1979 USE_DARWIN=1
1980 SO_SUFFIX=dylib
1981 cat >>confdefs.h <<\_ACEOF
1982#define __BSD__ 1
1983_ACEOF
1984
1985 cat >>confdefs.h <<\_ACEOF
1986#define __DARWIN__ 1
a848cd7e
SC
1987_ACEOF
1988
1989 cat >>confdefs.h <<\_ACEOF
1990#define TARGET_CARBON 1
1991_ACEOF
1992
1993 DEFAULT_DEFAULT_wxUSE_MAC=1
1994 ;;
1e9e8aba
DE
1995 powerpc-apple-macos* )
1996 USE_UNIX=0
1997 ac_cv_c_bigendian=yes
1998 SO_SUFFIX=shlib
1999 DEFAULT_DEFAULT_wxUSE_MAC=1
2000 ;;
a848cd7e
SC
2001
2002 *-*-beos* )
2003 USE_BEOS=1
2004 cat >>confdefs.h <<\_ACEOF
2005#define __BEOS__ 1
2006_ACEOF
2007
2008 ;;
2009
2010 *)
2011 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2012echo "$as_me: error: unknown system type ${host}." >&2;}
2013 { (exit 1); exit 1; }; }
2014esac
2015
2016
2017
2018
2019 wx_arg_cache_file="configarg.cache"
2020 echo "loading argument cache $wx_arg_cache_file"
2021 rm -f ${wx_arg_cache_file}.tmp
2022 touch ${wx_arg_cache_file}.tmp
2023 touch ${wx_arg_cache_file}
2024
2025
2026DEBUG_CONFIGURE=0
2027if test $DEBUG_CONFIGURE = 1; then
2028 DEFAULT_wxUSE_UNIVERSAL=no
2029 DEFAULT_wxUSE_STL=no
2030
2031 DEFAULT_wxUSE_NANOX=no
2032
2033 DEFAULT_wxUSE_THREADS=yes
2034
2035 DEFAULT_wxUSE_SHARED=yes
2036 DEFAULT_wxUSE_OPTIMISE=no
2037 DEFAULT_wxUSE_PROFILE=no
2038 DEFAULT_wxUSE_NO_DEPS=no
2039 DEFAULT_wxUSE_NO_RTTI=no
2040 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2041 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2042 DEFAULT_wxUSE_PERMISSIVE=no
2043 DEFAULT_wxUSE_DEBUG_FLAG=yes
2044 DEFAULT_wxUSE_DEBUG_INFO=yes
2045 DEFAULT_wxUSE_DEBUG_GDB=yes
2046 DEFAULT_wxUSE_MEM_TRACING=no
2047 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2048 DEFAULT_wxUSE_DMALLOC=no
2049 DEFAULT_wxUSE_APPLE_IEEE=no
2050
2051 DEFAULT_wxUSE_EXCEPTIONS=no
2052 DEFAULT_wxUSE_LOG=yes
2053 DEFAULT_wxUSE_LOGWINDOW=no
2054 DEFAULT_wxUSE_LOGGUI=no
2055 DEFAULT_wxUSE_LOGDIALOG=no
2056
2057 DEFAULT_wxUSE_GUI=yes
2058 DEFAULT_wxUSE_CONTROLS=no
2059
2060 DEFAULT_wxUSE_REGEX=no
2061 DEFAULT_wxUSE_XML=no
2062 DEFAULT_wxUSE_EXPAT=no
2063 DEFAULT_wxUSE_ZLIB=no
2064 DEFAULT_wxUSE_LIBPNG=no
2065 DEFAULT_wxUSE_LIBJPEG=no
2066 DEFAULT_wxUSE_LIBTIFF=no
2067 DEFAULT_wxUSE_LIBXPM=no
2068 DEFAULT_wxUSE_LIBMSPACK=no
2069 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2070 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2071 DEFAULT_wxUSE_ODBC=no
2072 DEFAULT_wxUSE_OPENGL=no
2073
2074 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2075 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2076 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2077 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2078 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2079 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2080 DEFAULT_wxUSE_CMDLINE_PARSER=no
2081 DEFAULT_wxUSE_DATETIME=no
2082 DEFAULT_wxUSE_TIMER=no
2083 DEFAULT_wxUSE_STOPWATCH=no
2084 DEFAULT_wxUSE_FILE=no
2085 DEFAULT_wxUSE_FFILE=no
07158944 2086 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2087 DEFAULT_wxUSE_TEXTBUFFER=no
2088 DEFAULT_wxUSE_TEXTFILE=no
2089 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2090 DEFAULT_wxUSE_MEDIACTRL=no
2091 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2092 DEFAULT_wxUSE_INTL=no
2093 DEFAULT_wxUSE_CONFIG=no
2094 DEFAULT_wxUSE_FONTMAP=no
2095 DEFAULT_wxUSE_STREAMS=no
2096 DEFAULT_wxUSE_SOCKETS=no
2097 DEFAULT_wxUSE_OLE=no
2098 DEFAULT_wxUSE_DATAOBJ=no
2099 DEFAULT_wxUSE_DIALUP_MANAGER=no
2100 DEFAULT_wxUSE_JOYSTICK=no
2101 DEFAULT_wxUSE_DYNLIB_CLASS=no
2102 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2103 DEFAULT_wxUSE_LONGLONG=no
2104 DEFAULT_wxUSE_GEOMETRY=no
2105
2106 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2107 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2108 DEFAULT_wxUSE_POSTSCRIPT=no
2109
2110 DEFAULT_wxUSE_CLIPBOARD=no
2111 DEFAULT_wxUSE_TOOLTIPS=no
2112 DEFAULT_wxUSE_DRAG_AND_DROP=no
2113 DEFAULT_wxUSE_DRAGIMAGE=no
2114 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2115 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2116
8a7b1113 2117 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2118 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2119 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2120 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2121
2122 DEFAULT_wxUSE_RESOURCES=no
2123 DEFAULT_wxUSE_CONSTRAINTS=no
2124 DEFAULT_wxUSE_IPC=no
2125 DEFAULT_wxUSE_HELP=no
2126 DEFAULT_wxUSE_MS_HTML_HELP=no
2127 DEFAULT_wxUSE_WXHTML_HELP=no
2128 DEFAULT_wxUSE_TREELAYOUT=no
2129 DEFAULT_wxUSE_METAFILE=no
2130 DEFAULT_wxUSE_MIMETYPE=no
2131 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2132 DEFAULT_wxUSE_PROTOCOL=no
2133 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2134 DEFAULT_wxUSE_PROTOCOL_FTP=no
2135 DEFAULT_wxUSE_PROTOCOL_FILE=no
2136 DEFAULT_wxUSE_URL=no
2137
2138 DEFAULT_wxUSE_COMMONDLGS=no
2139 DEFAULT_wxUSE_CHOICEDLG=no
2140 DEFAULT_wxUSE_COLOURDLG=no
2141 DEFAULT_wxUSE_DIRDLG=no
2142 DEFAULT_wxUSE_FILEDLG=no
2143 DEFAULT_wxUSE_FINDREPLDLG=no
2144 DEFAULT_wxUSE_FONTDLG=no
2145 DEFAULT_wxUSE_MSGDLG=no
2146 DEFAULT_wxUSE_NUMBERDLG=no
2147 DEFAULT_wxUSE_TEXTDLG=no
2148 DEFAULT_wxUSE_SPLASH=no
2149 DEFAULT_wxUSE_STARTUP_TIPS=no
2150 DEFAULT_wxUSE_PROGRESSDLG=no
2151 DEFAULT_wxUSE_WIZARDDLG=no
2152
2153 DEFAULT_wxUSE_MENUS=no
2154 DEFAULT_wxUSE_MINIFRAME=no
2155 DEFAULT_wxUSE_HTML=no
9a8f0513 2156 DEFAULT_wxUSE_XRC=no
646b6ec1 2157 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2158 DEFAULT_wxUSE_FILESYSTEM=no
2159 DEFAULT_wxUSE_FS_INET=no
2160 DEFAULT_wxUSE_FS_ZIP=no
2161 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2162 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2163 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2164 DEFAULT_wxUSE_VALIDATORS=no
2165
2166 DEFAULT_wxUSE_ACCEL=no
2167 DEFAULT_wxUSE_BUTTON=no
2168 DEFAULT_wxUSE_BMPBUTTON=no
2169 DEFAULT_wxUSE_CALCTRL=no
2170 DEFAULT_wxUSE_CARET=no
2171 DEFAULT_wxUSE_CHECKBOX=no
2172 DEFAULT_wxUSE_CHECKLST=no
2173 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2174 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2175 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2176 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2177 DEFAULT_wxUSE_DISPLAY=no
2178 DEFAULT_wxUSE_GAUGE=no
2179 DEFAULT_wxUSE_GRID=no
2180 DEFAULT_wxUSE_IMAGLIST=no
2181 DEFAULT_wxUSE_LISTBOOK=no
2182 DEFAULT_wxUSE_LISTBOX=no
2183 DEFAULT_wxUSE_LISTCTRL=no
2184 DEFAULT_wxUSE_NOTEBOOK=no
2185 DEFAULT_wxUSE_RADIOBOX=no
2186 DEFAULT_wxUSE_RADIOBTN=no
2187 DEFAULT_wxUSE_SASH=no
2188 DEFAULT_wxUSE_SCROLLBAR=no
2189 DEFAULT_wxUSE_SLIDER=no
2190 DEFAULT_wxUSE_SPINBTN=no
2191 DEFAULT_wxUSE_SPINCTRL=no
2192 DEFAULT_wxUSE_SPLITTER=no
2193 DEFAULT_wxUSE_STATBMP=no
2194 DEFAULT_wxUSE_STATBOX=no
2195 DEFAULT_wxUSE_STATLINE=no
2196 DEFAULT_wxUSE_STATTEXT=no
2197 DEFAULT_wxUSE_STATUSBAR=yes
2198 DEFAULT_wxUSE_TABDIALOG=no
2199 DEFAULT_wxUSE_TEXTCTRL=no
2200 DEFAULT_wxUSE_TOGGLEBTN=no
2201 DEFAULT_wxUSE_TOOLBAR=no
2202 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2203 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2204 DEFAULT_wxUSE_TREECTRL=no
2205 DEFAULT_wxUSE_POPUPWIN=no
2206 DEFAULT_wxUSE_TIPWINDOW=no
2207
2208 DEFAULT_wxUSE_UNICODE=no
2209 DEFAULT_wxUSE_UNICODE_MSLU=no
2210 DEFAULT_wxUSE_WCSRTOMBS=no
2211
2212 DEFAULT_wxUSE_PALETTE=no
2213 DEFAULT_wxUSE_IMAGE=no
2214 DEFAULT_wxUSE_GIF=no
2215 DEFAULT_wxUSE_PCX=no
2216 DEFAULT_wxUSE_PNM=no
2217 DEFAULT_wxUSE_IFF=no
2218 DEFAULT_wxUSE_XPM=no
2219 DEFAULT_wxUSE_ICO_CUR=no
2220 DEFAULT_wxUSE_ACCESSIBILITY=no
2221
2222 DEFAULT_wxUSE_MONOLITHIC=no
2223 DEFAULT_wxUSE_PLUGINS=no
2224 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2225else
2226 DEFAULT_wxUSE_UNIVERSAL=no
2227 DEFAULT_wxUSE_STL=no
2228
2229 DEFAULT_wxUSE_NANOX=no
2230
2231 DEFAULT_wxUSE_THREADS=yes
2232
2233 DEFAULT_wxUSE_SHARED=yes
2234 DEFAULT_wxUSE_OPTIMISE=yes
2235 DEFAULT_wxUSE_PROFILE=no
2236 DEFAULT_wxUSE_NO_DEPS=no
2237 DEFAULT_wxUSE_NO_RTTI=no
2238 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2239 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2240 DEFAULT_wxUSE_PERMISSIVE=no
2241 DEFAULT_wxUSE_DEBUG_FLAG=no
2242 DEFAULT_wxUSE_DEBUG_INFO=no
2243 DEFAULT_wxUSE_DEBUG_GDB=no
2244 DEFAULT_wxUSE_MEM_TRACING=no
2245 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2246 DEFAULT_wxUSE_DMALLOC=no
2247 DEFAULT_wxUSE_APPLE_IEEE=yes
2248
2249 DEFAULT_wxUSE_EXCEPTIONS=yes
2250 DEFAULT_wxUSE_LOG=yes
2251 DEFAULT_wxUSE_LOGWINDOW=yes
2252 DEFAULT_wxUSE_LOGGUI=yes
2253 DEFAULT_wxUSE_LOGDIALOG=yes
2254
2255 DEFAULT_wxUSE_GUI=yes
2256
2257 DEFAULT_wxUSE_REGEX=yes
2258 DEFAULT_wxUSE_XML=yes
2259 DEFAULT_wxUSE_EXPAT=yes
2260 DEFAULT_wxUSE_ZLIB=yes
2261 DEFAULT_wxUSE_LIBPNG=yes
2262 DEFAULT_wxUSE_LIBJPEG=yes
2263 DEFAULT_wxUSE_LIBTIFF=yes
2264 DEFAULT_wxUSE_LIBXPM=yes
2265 DEFAULT_wxUSE_LIBMSPACK=yes
2266 DEFAULT_wxUSE_LIBSDL=no
52ada004 2267 DEFAULT_wxUSE_LIBGNOMEPRINT=yes
a848cd7e 2268 DEFAULT_wxUSE_ODBC=no
52ada004 2269 DEFAULT_wxUSE_OPENGL=yes
a848cd7e
SC
2270
2271 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2272 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2273 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2274 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
52ada004
RL
2275 DEFAULT_wxUSE_STD_IOSTREAM=yes
2276 DEFAULT_wxUSE_STD_STRING=yes
a848cd7e
SC
2277 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2278 DEFAULT_wxUSE_DATETIME=yes
2279 DEFAULT_wxUSE_TIMER=yes
2280 DEFAULT_wxUSE_STOPWATCH=yes
2281 DEFAULT_wxUSE_FILE=yes
2282 DEFAULT_wxUSE_FFILE=yes
07158944 2283 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2284 DEFAULT_wxUSE_TEXTBUFFER=yes
2285 DEFAULT_wxUSE_TEXTFILE=yes
2286 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2287 DEFAULT_wxUSE_MEDIACTRL=no
2288 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2289 DEFAULT_wxUSE_INTL=yes
2290 DEFAULT_wxUSE_CONFIG=yes
2291 DEFAULT_wxUSE_FONTMAP=yes
2292 DEFAULT_wxUSE_STREAMS=yes
2293 DEFAULT_wxUSE_SOCKETS=yes
2294 DEFAULT_wxUSE_OLE=yes
2295 DEFAULT_wxUSE_DATAOBJ=yes
2296 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2297 DEFAULT_wxUSE_JOYSTICK=yes
2298 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2299 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2300 DEFAULT_wxUSE_LONGLONG=yes
2301 DEFAULT_wxUSE_GEOMETRY=yes
2302
2303 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2304 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2305 DEFAULT_wxUSE_POSTSCRIPT=yes
2306
2307 DEFAULT_wxUSE_CLIPBOARD=yes
2308 DEFAULT_wxUSE_TOOLTIPS=yes
2309 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2310 DEFAULT_wxUSE_DRAGIMAGE=yes
2311 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2312 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2313
8a7b1113 2314 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2315 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2316 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2317 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2318
2319 DEFAULT_wxUSE_RESOURCES=no
2320 DEFAULT_wxUSE_CONSTRAINTS=yes
2321 DEFAULT_wxUSE_IPC=yes
2322 DEFAULT_wxUSE_HELP=yes
2323 DEFAULT_wxUSE_MS_HTML_HELP=yes
2324 DEFAULT_wxUSE_WXHTML_HELP=yes
2325 DEFAULT_wxUSE_TREELAYOUT=yes
2326 DEFAULT_wxUSE_METAFILE=yes
2327 DEFAULT_wxUSE_MIMETYPE=yes
2328 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2329 DEFAULT_wxUSE_PROTOCOL=yes
2330 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2331 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2332 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2333 DEFAULT_wxUSE_URL=yes
2334
2335 DEFAULT_wxUSE_COMMONDLGS=yes
2336 DEFAULT_wxUSE_CHOICEDLG=yes
2337 DEFAULT_wxUSE_COLOURDLG=yes
2338 DEFAULT_wxUSE_DIRDLG=yes
2339 DEFAULT_wxUSE_FILEDLG=yes
2340 DEFAULT_wxUSE_FINDREPLDLG=yes
2341 DEFAULT_wxUSE_FONTDLG=yes
2342 DEFAULT_wxUSE_MSGDLG=yes
2343 DEFAULT_wxUSE_NUMBERDLG=yes
2344 DEFAULT_wxUSE_TEXTDLG=yes
2345 DEFAULT_wxUSE_SPLASH=yes
2346 DEFAULT_wxUSE_STARTUP_TIPS=yes
2347 DEFAULT_wxUSE_PROGRESSDLG=yes
2348 DEFAULT_wxUSE_WIZARDDLG=yes
2349
2350 DEFAULT_wxUSE_MENUS=yes
2351 DEFAULT_wxUSE_MINIFRAME=yes
2352 DEFAULT_wxUSE_HTML=yes
9a8f0513 2353 DEFAULT_wxUSE_XRC=yes
646b6ec1 2354 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2355 DEFAULT_wxUSE_FILESYSTEM=yes
2356 DEFAULT_wxUSE_FS_INET=yes
2357 DEFAULT_wxUSE_FS_ZIP=yes
2358 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2359 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2360 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2361 DEFAULT_wxUSE_VALIDATORS=yes
2362
2363 DEFAULT_wxUSE_ACCEL=yes
2364 DEFAULT_wxUSE_BUTTON=yes
2365 DEFAULT_wxUSE_BMPBUTTON=yes
2366 DEFAULT_wxUSE_CALCTRL=yes
2367 DEFAULT_wxUSE_CARET=yes
2368 DEFAULT_wxUSE_CHECKBOX=yes
2369 DEFAULT_wxUSE_CHECKLST=yes
2370 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2371 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2372 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2373 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2374 DEFAULT_wxUSE_DISPLAY=yes
2375 DEFAULT_wxUSE_GAUGE=yes
2376 DEFAULT_wxUSE_GRID=yes
2377 DEFAULT_wxUSE_IMAGLIST=yes
2378 DEFAULT_wxUSE_LISTBOOK=yes
2379 DEFAULT_wxUSE_LISTBOX=yes
2380 DEFAULT_wxUSE_LISTCTRL=yes
2381 DEFAULT_wxUSE_NOTEBOOK=yes
2382 DEFAULT_wxUSE_RADIOBOX=yes
2383 DEFAULT_wxUSE_RADIOBTN=yes
2384 DEFAULT_wxUSE_SASH=yes
2385 DEFAULT_wxUSE_SCROLLBAR=yes
2386 DEFAULT_wxUSE_SLIDER=yes
2387 DEFAULT_wxUSE_SPINBTN=yes
2388 DEFAULT_wxUSE_SPINCTRL=yes
2389 DEFAULT_wxUSE_SPLITTER=yes
2390 DEFAULT_wxUSE_STATBMP=yes
2391 DEFAULT_wxUSE_STATBOX=yes
2392 DEFAULT_wxUSE_STATLINE=yes
2393 DEFAULT_wxUSE_STATTEXT=yes
2394 DEFAULT_wxUSE_STATUSBAR=yes
2395 DEFAULT_wxUSE_TABDIALOG=no
2396 DEFAULT_wxUSE_TEXTCTRL=yes
2397 DEFAULT_wxUSE_TOGGLEBTN=yes
2398 DEFAULT_wxUSE_TOOLBAR=yes
2399 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2400 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2401 DEFAULT_wxUSE_TREECTRL=yes
2402 DEFAULT_wxUSE_POPUPWIN=yes
2403 DEFAULT_wxUSE_TIPWINDOW=yes
2404
78de529b 2405 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2406 DEFAULT_wxUSE_UNICODE_MSLU=yes
2407 DEFAULT_wxUSE_WCSRTOMBS=no
2408
2409 DEFAULT_wxUSE_PALETTE=yes
2410 DEFAULT_wxUSE_IMAGE=yes
2411 DEFAULT_wxUSE_GIF=yes
2412 DEFAULT_wxUSE_PCX=yes
2413 DEFAULT_wxUSE_IFF=no
2414 DEFAULT_wxUSE_PNM=yes
2415 DEFAULT_wxUSE_XPM=yes
2416 DEFAULT_wxUSE_ICO_CUR=yes
2417 DEFAULT_wxUSE_ACCESSIBILITY=no
2418
2419 DEFAULT_wxUSE_MONOLITHIC=no
2420 DEFAULT_wxUSE_PLUGINS=no
2421 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2422
f34ca037 2423 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2424fi
2425
2426
2427
f34ca037 2428
a848cd7e
SC
2429for toolkit in `echo $ALL_TOOLKITS`; do
2430 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2431 if test "x$LINE" != "x" ; then
2432 has_toolkit_in_cache=1
2433 eval "DEFAULT_$LINE"
2434 eval "CACHE_$toolkit=1"
f34ca037
MW
2435
2436 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2437 if test "x$LINE" != "x" ; then
2438 eval "DEFAULT_$LINE"
2439 fi
a848cd7e
SC
2440 fi
2441done
2442
2443
2444
2445 enablestring=
2446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2447echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2448 no_cache=0
2449 # Check whether --enable-gui or --disable-gui was given.
2450if test "${enable_gui+set}" = set; then
2451 enableval="$enable_gui"
2452
2453 if test "$enableval" = yes; then
2454 ac_cv_use_gui='wxUSE_GUI=yes'
2455 else
2456 ac_cv_use_gui='wxUSE_GUI=no'
2457 fi
2458
2459else
2460
2461 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2462 if test "x$LINE" != x ; then
2463 eval "DEFAULT_$LINE"
2464 else
2465 no_cache=1
2466 fi
2467
2468 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2469
2470fi;
2471
2472 eval "$ac_cv_use_gui"
2473 if test "$no_cache" != 1; then
2474 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2475 fi
2476
2477 if test "$wxUSE_GUI" = yes; then
2478 echo "$as_me:$LINENO: result: yes" >&5
2479echo "${ECHO_T}yes" >&6
2480 else
2481 echo "$as_me:$LINENO: result: no" >&5
2482echo "${ECHO_T}no" >&6
2483 fi
2484
2485
2486 enablestring=
2487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2488echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2489 no_cache=0
2490 # Check whether --enable-monolithic or --disable-monolithic was given.
2491if test "${enable_monolithic+set}" = set; then
2492 enableval="$enable_monolithic"
2493
2494 if test "$enableval" = yes; then
2495 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2496 else
2497 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2498 fi
2499
2500else
2501
2502 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2503 if test "x$LINE" != x ; then
2504 eval "DEFAULT_$LINE"
2505 else
2506 no_cache=1
2507 fi
2508
2509 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2510
2511fi;
2512
2513 eval "$ac_cv_use_monolithic"
2514 if test "$no_cache" != 1; then
2515 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2516 fi
2517
2518 if test "$wxUSE_MONOLITHIC" = yes; then
2519 echo "$as_me:$LINENO: result: yes" >&5
2520echo "${ECHO_T}yes" >&6
2521 else
2522 echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6
2524 fi
2525
2526
2527 enablestring=
2528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2529echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2530 no_cache=0
2531 # Check whether --enable-plugins or --disable-plugins was given.
2532if test "${enable_plugins+set}" = set; then
2533 enableval="$enable_plugins"
2534
2535 if test "$enableval" = yes; then
2536 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2537 else
2538 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2539 fi
2540
2541else
2542
2543 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2544 if test "x$LINE" != x ; then
2545 eval "DEFAULT_$LINE"
2546 else
2547 no_cache=1
2548 fi
2549
2550 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2551
2552fi;
2553
2554 eval "$ac_cv_use_plugins"
2555 if test "$no_cache" != 1; then
2556 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2557 fi
2558
2559 if test "$wxUSE_PLUGINS" = yes; then
2560 echo "$as_me:$LINENO: result: yes" >&5
2561echo "${ECHO_T}yes" >&6
2562 else
2563 echo "$as_me:$LINENO: result: no" >&5
2564echo "${ECHO_T}no" >&6
2565 fi
2566
2567
2568if test "$wxUSE_GUI" = "yes"; then
2569
2570
2571 enablestring=
2572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2573echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2574 no_cache=0
2575 # Check whether --enable-universal or --disable-universal was given.
2576if test "${enable_universal+set}" = set; then
2577 enableval="$enable_universal"
2578
2579 if test "$enableval" = yes; then
2580 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2581 else
2582 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2583 fi
2584
2585else
2586
2587 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2588 if test "x$LINE" != x ; then
2589 eval "DEFAULT_$LINE"
2590 else
2591 no_cache=1
2592 fi
2593
2594 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2595
2596fi;
2597
2598 eval "$ac_cv_use_universal"
2599 if test "$no_cache" != 1; then
2600 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2601 fi
2602
2603 if test "$wxUSE_UNIVERSAL" = yes; then
2604 echo "$as_me:$LINENO: result: yes" >&5
2605echo "${ECHO_T}yes" >&6
2606 else
2607 echo "$as_me:$LINENO: result: no" >&5
2608echo "${ECHO_T}no" >&6
2609 fi
2610
2611
2612# Check whether --with-gtk or --without-gtk was given.
2613if test "${with_gtk+set}" = set; then
2614 withval="$with_gtk"
2615 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2616fi;
2617
2618# Check whether --with-motif or --without-motif was given.
2619if test "${with_motif+set}" = set; then
2620 withval="$with_motif"
2621 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2622fi;
2623
2624# Check whether --with-mac or --without-mac was given.
2625if test "${with_mac+set}" = set; then
2626 withval="$with_mac"
c228d3a4 2627 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2628fi;
2629
2630# Check whether --with-cocoa or --without-cocoa was given.
2631if test "${with_cocoa+set}" = set; then
2632 withval="$with_cocoa"
c228d3a4 2633 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2634fi;
2635
2636# Check whether --with-wine or --without-wine was given.
2637if test "${with_wine+set}" = set; then
2638 withval="$with_wine"
2639 wxUSE_WINE="$withval" CACHE_WINE=1
2640fi;
2641
2642# Check whether --with-msw or --without-msw was given.
2643if test "${with_msw+set}" = set; then
2644 withval="$with_msw"
2645 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2646fi;
2647
2648# Check whether --with-pm or --without-pm was given.
2649if test "${with_pm+set}" = set; then
2650 withval="$with_pm"
2651 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2652fi;
2653
2654# Check whether --with-mgl or --without-mgl was given.
2655if test "${with_mgl+set}" = set; then
2656 withval="$with_mgl"
2657 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2658fi;
2659
2660# Check whether --with-microwin or --without-microwin was given.
2661if test "${with_microwin+set}" = set; then
2662 withval="$with_microwin"
2663 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2664fi;
2665
2666# Check whether --with-x11 or --without-x11 was given.
2667if test "${with_x11+set}" = set; then
2668 withval="$with_x11"
2669 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2670fi;
2671
2672 enablestring=
2673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2674echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2675 no_cache=0
2676 # Check whether --enable-nanox or --disable-nanox was given.
2677if test "${enable_nanox+set}" = set; then
2678 enableval="$enable_nanox"
2679
2680 if test "$enableval" = yes; then
2681 ac_cv_use_nanox='wxUSE_NANOX=yes'
2682 else
2683 ac_cv_use_nanox='wxUSE_NANOX=no'
2684 fi
2685
2686else
2687
2688 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2689 if test "x$LINE" != x ; then
2690 eval "DEFAULT_$LINE"
2691 else
2692 no_cache=1
2693 fi
2694
2695 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2696
2697fi;
2698
2699 eval "$ac_cv_use_nanox"
2700 if test "$no_cache" != 1; then
2701 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2702 fi
2703
2704 if test "$wxUSE_NANOX" = yes; then
2705 echo "$as_me:$LINENO: result: yes" >&5
2706echo "${ECHO_T}yes" >&6
2707 else
2708 echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6
2710 fi
2711
2712
f34ca037
MW
2713# Check whether --enable-gtk2 or --disable-gtk2 was given.
2714if test "${enable_gtk2+set}" = set; then
2715 enableval="$enable_gtk2"
2716 wxUSE_GTK2="$enableval"
2717fi;
a848cd7e 2718
a848cd7e
SC
2719 enablestring=
2720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2721echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2722 no_cache=0
2723 # Check whether --enable-gpe or --disable-gpe was given.
2724if test "${enable_gpe+set}" = set; then
2725 enableval="$enable_gpe"
2726
2727 if test "$enableval" = yes; then
2728 ac_cv_use_gpe='wxUSE_GPE=yes'
2729 else
2730 ac_cv_use_gpe='wxUSE_GPE=no'
2731 fi
2732
2733else
2734
2735 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2736 if test "x$LINE" != x ; then
2737 eval "DEFAULT_$LINE"
2738 else
2739 no_cache=1
2740 fi
2741
2742 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2743
2744fi;
2745
2746 eval "$ac_cv_use_gpe"
2747 if test "$no_cache" != 1; then
2748 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2749 fi
2750
2751 if test "$wxUSE_GPE" = yes; then
2752 echo "$as_me:$LINENO: result: yes" >&5
2753echo "${ECHO_T}yes" >&6
2754 else
2755 echo "$as_me:$LINENO: result: no" >&5
2756echo "${ECHO_T}no" >&6
2757 fi
2758
2759
2760
2761 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2762echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2763 no_cache=0
2764
2765# Check whether --with-libpng or --without-libpng was given.
2766if test "${with_libpng+set}" = set; then
2767 withval="$with_libpng"
2768
2769 if test "$withval" = yes; then
2770 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2771 elif test "$withval" = no; then
2772 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2773 elif test "$withval" = sys; then
2774 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2775 elif test "$withval" = builtin; then
2776 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2777 else
2778 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2779echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2780 { (exit 1); exit 1; }; }
2781 fi
2782
2783else
2784
2785 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2786 if test "x$LINE" != x ; then
2787 eval "DEFAULT_$LINE"
2788 else
2789 no_cache=1
2790 fi
2791
2792 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2793
2794fi;
2795
2796 eval "$ac_cv_use_libpng"
2797 if test "$no_cache" != 1; then
2798 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2799 fi
2800
2801 if test "$wxUSE_LIBPNG" = yes; then
2802 echo "$as_me:$LINENO: result: yes" >&5
2803echo "${ECHO_T}yes" >&6
2804 elif test "$wxUSE_LIBPNG" = no; then
2805 echo "$as_me:$LINENO: result: no" >&5
2806echo "${ECHO_T}no" >&6
2807 elif test "$wxUSE_LIBPNG" = sys; then
2808 echo "$as_me:$LINENO: result: system version" >&5
2809echo "${ECHO_T}system version" >&6
2810 elif test "$wxUSE_LIBPNG" = builtin; then
2811 echo "$as_me:$LINENO: result: builtin version" >&5
2812echo "${ECHO_T}builtin version" >&6
2813 else
2814 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2815echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2816 { (exit 1); exit 1; }; }
2817 fi
2818
2819
2820 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2821echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2822 no_cache=0
2823
2824# Check whether --with-libjpeg or --without-libjpeg was given.
2825if test "${with_libjpeg+set}" = set; then
2826 withval="$with_libjpeg"
2827
2828 if test "$withval" = yes; then
2829 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2830 elif test "$withval" = no; then
2831 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2832 elif test "$withval" = sys; then
2833 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2834 elif test "$withval" = builtin; then
2835 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2836 else
2837 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2838echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2839 { (exit 1); exit 1; }; }
2840 fi
2841
2842else
2843
2844 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2845 if test "x$LINE" != x ; then
2846 eval "DEFAULT_$LINE"
2847 else
2848 no_cache=1
2849 fi
2850
2851 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2852
2853fi;
2854
2855 eval "$ac_cv_use_libjpeg"
2856 if test "$no_cache" != 1; then
2857 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2858 fi
2859
2860 if test "$wxUSE_LIBJPEG" = yes; then
2861 echo "$as_me:$LINENO: result: yes" >&5
2862echo "${ECHO_T}yes" >&6
2863 elif test "$wxUSE_LIBJPEG" = no; then
2864 echo "$as_me:$LINENO: result: no" >&5
2865echo "${ECHO_T}no" >&6
2866 elif test "$wxUSE_LIBJPEG" = sys; then
2867 echo "$as_me:$LINENO: result: system version" >&5
2868echo "${ECHO_T}system version" >&6
2869 elif test "$wxUSE_LIBJPEG" = builtin; then
2870 echo "$as_me:$LINENO: result: builtin version" >&5
2871echo "${ECHO_T}builtin version" >&6
2872 else
2873 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2874echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2875 { (exit 1); exit 1; }; }
2876 fi
2877
2878
2879 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2880echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2881 no_cache=0
2882
2883# Check whether --with-libtiff or --without-libtiff was given.
2884if test "${with_libtiff+set}" = set; then
2885 withval="$with_libtiff"
2886
2887 if test "$withval" = yes; then
2888 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2889 elif test "$withval" = no; then
2890 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2891 elif test "$withval" = sys; then
2892 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2893 elif test "$withval" = builtin; then
2894 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2895 else
2896 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2897echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2898 { (exit 1); exit 1; }; }
2899 fi
2900
2901else
2902
2903 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2904 if test "x$LINE" != x ; then
2905 eval "DEFAULT_$LINE"
2906 else
2907 no_cache=1
2908 fi
2909
2910 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2911
2912fi;
2913
2914 eval "$ac_cv_use_libtiff"
2915 if test "$no_cache" != 1; then
2916 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2917 fi
2918
2919 if test "$wxUSE_LIBTIFF" = yes; then
2920 echo "$as_me:$LINENO: result: yes" >&5
2921echo "${ECHO_T}yes" >&6
2922 elif test "$wxUSE_LIBTIFF" = no; then
2923 echo "$as_me:$LINENO: result: no" >&5
2924echo "${ECHO_T}no" >&6
2925 elif test "$wxUSE_LIBTIFF" = sys; then
2926 echo "$as_me:$LINENO: result: system version" >&5
2927echo "${ECHO_T}system version" >&6
2928 elif test "$wxUSE_LIBTIFF" = builtin; then
2929 echo "$as_me:$LINENO: result: builtin version" >&5
2930echo "${ECHO_T}builtin version" >&6
2931 else
2932 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2933echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2934 { (exit 1); exit 1; }; }
2935 fi
2936
2937
2938 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2939echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2940 no_cache=0
2941
2942# Check whether --with-libxpm or --without-libxpm was given.
2943if test "${with_libxpm+set}" = set; then
2944 withval="$with_libxpm"
2945
2946 if test "$withval" = yes; then
2947 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2948 elif test "$withval" = no; then
2949 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2950 elif test "$withval" = sys; then
2951 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2952 elif test "$withval" = builtin; then
2953 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2954 else
2955 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2956echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2957 { (exit 1); exit 1; }; }
2958 fi
2959
2960else
2961
2962 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2963 if test "x$LINE" != x ; then
2964 eval "DEFAULT_$LINE"
2965 else
2966 no_cache=1
2967 fi
2968
2969 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2970
2971fi;
2972
2973 eval "$ac_cv_use_libxpm"
2974 if test "$no_cache" != 1; then
2975 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2976 fi
2977
2978 if test "$wxUSE_LIBXPM" = yes; then
2979 echo "$as_me:$LINENO: result: yes" >&5
2980echo "${ECHO_T}yes" >&6
2981 elif test "$wxUSE_LIBXPM" = no; then
2982 echo "$as_me:$LINENO: result: no" >&5
2983echo "${ECHO_T}no" >&6
2984 elif test "$wxUSE_LIBXPM" = sys; then
2985 echo "$as_me:$LINENO: result: system version" >&5
2986echo "${ECHO_T}system version" >&6
2987 elif test "$wxUSE_LIBXPM" = builtin; then
2988 echo "$as_me:$LINENO: result: builtin version" >&5
2989echo "${ECHO_T}builtin version" >&6
2990 else
2991 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2992echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2993 { (exit 1); exit 1; }; }
2994 fi
2995
2996
2997 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2998echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2999 no_cache=0
3000
3001# Check whether --with-libmspack or --without-libmspack was given.
3002if test "${with_libmspack+set}" = set; then
3003 withval="$with_libmspack"
3004
3005 if test "$withval" = yes; then
3006 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3007 else
3008 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3009 fi
3010
3011else
3012
3013 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3014 if test "x$LINE" != x ; then
3015 eval "DEFAULT_$LINE"
3016 else
3017 no_cache=1
3018 fi
3019
3020 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3021
3022fi;
3023
3024 eval "$ac_cv_use_libmspack"
3025 if test "$no_cache" != 1; then
3026 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3027 fi
3028
3029 if test "$wxUSE_LIBMSPACK" = yes; then
3030 echo "$as_me:$LINENO: result: yes" >&5
3031echo "${ECHO_T}yes" >&6
3032 else
3033 echo "$as_me:$LINENO: result: no" >&5
3034echo "${ECHO_T}no" >&6
3035 fi
3036
3037
3038 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3039echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3040 no_cache=0
3041
3042# Check whether --with-sdl or --without-sdl was given.
3043if test "${with_sdl+set}" = set; then
3044 withval="$with_sdl"
3045
3046 if test "$withval" = yes; then
3047 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3048 else
3049 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3050 fi
3051
3052else
3053
3054 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3055 if test "x$LINE" != x ; then
3056 eval "DEFAULT_$LINE"
3057 else
3058 no_cache=1
3059 fi
3060
3061 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3062
3063fi;
3064
3065 eval "$ac_cv_use_sdl"
3066 if test "$no_cache" != 1; then
3067 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3068 fi
3069
3070 if test "$wxUSE_LIBSDL" = yes; then
3071 echo "$as_me:$LINENO: result: yes" >&5
3072echo "${ECHO_T}yes" >&6
3073 else
3074 echo "$as_me:$LINENO: result: no" >&5
3075echo "${ECHO_T}no" >&6
3076 fi
3077
3078
d1c38808
VZ
3079 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3080echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3081 no_cache=0
3082
3083# Check whether --with-gnomeprint or --without-gnomeprint was given.
3084if test "${with_gnomeprint+set}" = set; then
3085 withval="$with_gnomeprint"
3086
3087 if test "$withval" = yes; then
3088 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3089 else
3090 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3091 fi
3092
3093else
3094
3095 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3103
3104fi;
3105
3106 eval "$ac_cv_use_gnomeprint"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3112 echo "$as_me:$LINENO: result: yes" >&5
3113echo "${ECHO_T}yes" >&6
3114 else
3115 echo "$as_me:$LINENO: result: no" >&5
3116echo "${ECHO_T}no" >&6
3117 fi
3118
3119
a848cd7e
SC
3120 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3121echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3122 no_cache=0
3123
3124# Check whether --with-opengl or --without-opengl was given.
3125if test "${with_opengl+set}" = set; then
3126 withval="$with_opengl"
3127
3128 if test "$withval" = yes; then
3129 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3130 else
3131 ac_cv_use_opengl='wxUSE_OPENGL=no'
3132 fi
3133
3134else
3135
3136 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3137 if test "x$LINE" != x ; then
3138 eval "DEFAULT_$LINE"
3139 else
3140 no_cache=1
3141 fi
3142
3143 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3144
3145fi;
3146
3147 eval "$ac_cv_use_opengl"
3148 if test "$no_cache" != 1; then
3149 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3150 fi
3151
3152 if test "$wxUSE_OPENGL" = yes; then
3153 echo "$as_me:$LINENO: result: yes" >&5
3154echo "${ECHO_T}yes" >&6
3155 else
3156 echo "$as_me:$LINENO: result: no" >&5
3157echo "${ECHO_T}no" >&6
3158 fi
3159
3160
3161fi
3162
3163
3164 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3165echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3166 no_cache=0
3167
3168# Check whether --with-dmalloc or --without-dmalloc was given.
3169if test "${with_dmalloc+set}" = set; then
3170 withval="$with_dmalloc"
3171
3172 if test "$withval" = yes; then
3173 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3174 else
3175 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3176 fi
3177
3178else
3179
3180 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3181 if test "x$LINE" != x ; then
3182 eval "DEFAULT_$LINE"
3183 else
3184 no_cache=1
3185 fi
3186
3187 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3188
3189fi;
3190
3191 eval "$ac_cv_use_dmalloc"
3192 if test "$no_cache" != 1; then
3193 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3194 fi
3195
3196 if test "$wxUSE_DMALLOC" = yes; then
3197 echo "$as_me:$LINENO: result: yes" >&5
3198echo "${ECHO_T}yes" >&6
3199 else
3200 echo "$as_me:$LINENO: result: no" >&5
3201echo "${ECHO_T}no" >&6
3202 fi
3203
3204
3205 echo "$as_me:$LINENO: checking for --with-regex" >&5
3206echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3207 no_cache=0
3208
3209# Check whether --with-regex or --without-regex was given.
3210if test "${with_regex+set}" = set; then
3211 withval="$with_regex"
3212
3213 if test "$withval" = yes; then
3214 ac_cv_use_regex='wxUSE_REGEX=yes'
3215 elif test "$withval" = no; then
3216 ac_cv_use_regex='wxUSE_REGEX=no'
3217 elif test "$withval" = sys; then
3218 ac_cv_use_regex='wxUSE_REGEX=sys'
3219 elif test "$withval" = builtin; then
3220 ac_cv_use_regex='wxUSE_REGEX=builtin'
3221 else
3222 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3223echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3224 { (exit 1); exit 1; }; }
3225 fi
3226
3227else
3228
3229 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3230 if test "x$LINE" != x ; then
3231 eval "DEFAULT_$LINE"
3232 else
3233 no_cache=1
3234 fi
3235
3236 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3237
3238fi;
3239
3240 eval "$ac_cv_use_regex"
3241 if test "$no_cache" != 1; then
3242 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3243 fi
3244
3245 if test "$wxUSE_REGEX" = yes; then
3246 echo "$as_me:$LINENO: result: yes" >&5
3247echo "${ECHO_T}yes" >&6
3248 elif test "$wxUSE_REGEX" = no; then
3249 echo "$as_me:$LINENO: result: no" >&5
3250echo "${ECHO_T}no" >&6
3251 elif test "$wxUSE_REGEX" = sys; then
3252 echo "$as_me:$LINENO: result: system version" >&5
3253echo "${ECHO_T}system version" >&6
3254 elif test "$wxUSE_REGEX" = builtin; then
3255 echo "$as_me:$LINENO: result: builtin version" >&5
3256echo "${ECHO_T}builtin version" >&6
3257 else
3258 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3259echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3260 { (exit 1); exit 1; }; }
3261 fi
3262
3263
3264 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3265echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3266 no_cache=0
3267
3268# Check whether --with-zlib or --without-zlib was given.
3269if test "${with_zlib+set}" = set; then
3270 withval="$with_zlib"
3271
3272 if test "$withval" = yes; then
3273 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3274 elif test "$withval" = no; then
3275 ac_cv_use_zlib='wxUSE_ZLIB=no'
3276 elif test "$withval" = sys; then
3277 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3278 elif test "$withval" = builtin; then
3279 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3280 else
3281 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3282echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3283 { (exit 1); exit 1; }; }
3284 fi
3285
3286else
3287
3288 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3289 if test "x$LINE" != x ; then
3290 eval "DEFAULT_$LINE"
3291 else
3292 no_cache=1
3293 fi
3294
3295 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3296
3297fi;
3298
3299 eval "$ac_cv_use_zlib"
3300 if test "$no_cache" != 1; then
3301 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3302 fi
3303
3304 if test "$wxUSE_ZLIB" = yes; then
3305 echo "$as_me:$LINENO: result: yes" >&5
3306echo "${ECHO_T}yes" >&6
3307 elif test "$wxUSE_ZLIB" = no; then
3308 echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310 elif test "$wxUSE_ZLIB" = sys; then
3311 echo "$as_me:$LINENO: result: system version" >&5
3312echo "${ECHO_T}system version" >&6
3313 elif test "$wxUSE_ZLIB" = builtin; then
3314 echo "$as_me:$LINENO: result: builtin version" >&5
3315echo "${ECHO_T}builtin version" >&6
3316 else
3317 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3318echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3319 { (exit 1); exit 1; }; }
3320 fi
3321
3322
3323 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3324echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3325 no_cache=0
3326
3327# Check whether --with-odbc or --without-odbc was given.
3328if test "${with_odbc+set}" = set; then
3329 withval="$with_odbc"
3330
3331 if test "$withval" = yes; then
3332 ac_cv_use_odbc='wxUSE_ODBC=yes'
3333 elif test "$withval" = no; then
3334 ac_cv_use_odbc='wxUSE_ODBC=no'
3335 elif test "$withval" = sys; then
3336 ac_cv_use_odbc='wxUSE_ODBC=sys'
3337 elif test "$withval" = builtin; then
3338 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3339 else
3340 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3341echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3342 { (exit 1); exit 1; }; }
3343 fi
3344
3345else
3346
3347 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3348 if test "x$LINE" != x ; then
3349 eval "DEFAULT_$LINE"
3350 else
3351 no_cache=1
3352 fi
3353
3354 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3355
3356fi;
3357
3358 eval "$ac_cv_use_odbc"
3359 if test "$no_cache" != 1; then
3360 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3361 fi
3362
3363 if test "$wxUSE_ODBC" = yes; then
3364 echo "$as_me:$LINENO: result: yes" >&5
3365echo "${ECHO_T}yes" >&6
3366 elif test "$wxUSE_ODBC" = no; then
3367 echo "$as_me:$LINENO: result: no" >&5
3368echo "${ECHO_T}no" >&6
3369 elif test "$wxUSE_ODBC" = sys; then
3370 echo "$as_me:$LINENO: result: system version" >&5
3371echo "${ECHO_T}system version" >&6
3372 elif test "$wxUSE_ODBC" = builtin; then
3373 echo "$as_me:$LINENO: result: builtin version" >&5
3374echo "${ECHO_T}builtin version" >&6
3375 else
3376 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3377echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3378 { (exit 1); exit 1; }; }
3379 fi
3380
3381
3382 echo "$as_me:$LINENO: checking for --with-expat" >&5
3383echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3384 no_cache=0
3385
3386# Check whether --with-expat or --without-expat was given.
3387if test "${with_expat+set}" = set; then
3388 withval="$with_expat"
3389
3390 if test "$withval" = yes; then
3391 ac_cv_use_expat='wxUSE_EXPAT=yes'
3392 elif test "$withval" = no; then
3393 ac_cv_use_expat='wxUSE_EXPAT=no'
3394 elif test "$withval" = sys; then
3395 ac_cv_use_expat='wxUSE_EXPAT=sys'
3396 elif test "$withval" = builtin; then
3397 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3398 else
3399 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3400echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3401 { (exit 1); exit 1; }; }
3402 fi
3403
3404else
3405
3406 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3407 if test "x$LINE" != x ; then
3408 eval "DEFAULT_$LINE"
3409 else
3410 no_cache=1
3411 fi
3412
3413 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3414
3415fi;
3416
3417 eval "$ac_cv_use_expat"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_EXPAT" = yes; then
3423 echo "$as_me:$LINENO: result: yes" >&5
3424echo "${ECHO_T}yes" >&6
3425 elif test "$wxUSE_EXPAT" = no; then
3426 echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6
3428 elif test "$wxUSE_EXPAT" = sys; then
3429 echo "$as_me:$LINENO: result: system version" >&5
3430echo "${ECHO_T}system version" >&6
3431 elif test "$wxUSE_EXPAT" = builtin; then
3432 echo "$as_me:$LINENO: result: builtin version" >&5
3433echo "${ECHO_T}builtin version" >&6
3434 else
3435 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3436echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3437 { (exit 1); exit 1; }; }
3438 fi
3439
3440
3441
3442
3443 enablestring=
3444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3445echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3446 no_cache=0
3447 # Check whether --enable-shared or --disable-shared was given.
3448if test "${enable_shared+set}" = set; then
3449 enableval="$enable_shared"
3450
3451 if test "$enableval" = yes; then
3452 ac_cv_use_shared='wxUSE_SHARED=yes'
3453 else
3454 ac_cv_use_shared='wxUSE_SHARED=no'
3455 fi
3456
3457else
3458
3459 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3460 if test "x$LINE" != x ; then
3461 eval "DEFAULT_$LINE"
3462 else
3463 no_cache=1
3464 fi
3465
3466 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3467
3468fi;
3469
3470 eval "$ac_cv_use_shared"
3471 if test "$no_cache" != 1; then
3472 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3473 fi
3474
3475 if test "$wxUSE_SHARED" = yes; then
3476 echo "$as_me:$LINENO: result: yes" >&5
3477echo "${ECHO_T}yes" >&6
3478 else
3479 echo "$as_me:$LINENO: result: no" >&5
3480echo "${ECHO_T}no" >&6
3481 fi
3482
3483
3484 enablestring=
3485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3486echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3487 no_cache=0
3488 # Check whether --enable-optimise or --disable-optimise was given.
3489if test "${enable_optimise+set}" = set; then
3490 enableval="$enable_optimise"
3491
3492 if test "$enableval" = yes; then
3493 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3494 else
3495 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3496 fi
3497
3498else
3499
3500 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3501 if test "x$LINE" != x ; then
3502 eval "DEFAULT_$LINE"
3503 else
3504 no_cache=1
3505 fi
3506
3507 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3508
3509fi;
3510
3511 eval "$ac_cv_use_optimise"
3512 if test "$no_cache" != 1; then
3513 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3514 fi
3515
3516 if test "$wxUSE_OPTIMISE" = yes; then
3517 echo "$as_me:$LINENO: result: yes" >&5
3518echo "${ECHO_T}yes" >&6
3519 else
3520 echo "$as_me:$LINENO: result: no" >&5
3521echo "${ECHO_T}no" >&6
3522 fi
3523
3524
3525 enablestring=
3526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3527echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3528 no_cache=0
3529 # Check whether --enable-debug or --disable-debug was given.
3530if test "${enable_debug+set}" = set; then
3531 enableval="$enable_debug"
3532
3533 if test "$enableval" = yes; then
3534 ac_cv_use_debug='wxUSE_DEBUG=yes'
3535 else
3536 ac_cv_use_debug='wxUSE_DEBUG=no'
3537 fi
3538
3539else
3540
3541 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3542 if test "x$LINE" != x ; then
3543 eval "DEFAULT_$LINE"
3544 else
3545 no_cache=1
3546 fi
3547
3548 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3549
3550fi;
3551
3552 eval "$ac_cv_use_debug"
3553 if test "$no_cache" != 1; then
3554 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3555 fi
3556
3557 if test "$wxUSE_DEBUG" = yes; then
3558 echo "$as_me:$LINENO: result: yes" >&5
3559echo "${ECHO_T}yes" >&6
3560 else
3561 echo "$as_me:$LINENO: result: no" >&5
3562echo "${ECHO_T}no" >&6
3563 fi
3564
3565
3566 enablestring=
3567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3568echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3569 no_cache=0
3570 # Check whether --enable-stl or --disable-stl was given.
3571if test "${enable_stl+set}" = set; then
3572 enableval="$enable_stl"
3573
3574 if test "$enableval" = yes; then
3575 ac_cv_use_stl='wxUSE_STL=yes'
3576 else
3577 ac_cv_use_stl='wxUSE_STL=no'
3578 fi
3579
3580else
3581
3582 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3583 if test "x$LINE" != x ; then
3584 eval "DEFAULT_$LINE"
3585 else
3586 no_cache=1
3587 fi
3588
3589 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3590
3591fi;
3592
3593 eval "$ac_cv_use_stl"
3594 if test "$no_cache" != 1; then
3595 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3596 fi
3597
3598 if test "$wxUSE_STL" = yes; then
3599 echo "$as_me:$LINENO: result: yes" >&5
3600echo "${ECHO_T}yes" >&6
3601 else
3602 echo "$as_me:$LINENO: result: no" >&5
3603echo "${ECHO_T}no" >&6
3604 fi
3605
3606if test "$USE_OS2" = "1"; then
69120ee4 3607 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3608
3609 enablestring=
3610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3611echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3612 no_cache=0
3613 # Check whether --enable-omf or --disable-omf was given.
3614if test "${enable_omf+set}" = set; then
3615 enableval="$enable_omf"
3616
3617 if test "$enableval" = yes; then
3618 ac_cv_use_omf='wxUSE_OMF=yes'
3619 else
3620 ac_cv_use_omf='wxUSE_OMF=no'
3621 fi
3622
3623else
3624
3625 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3626 if test "x$LINE" != x ; then
3627 eval "DEFAULT_$LINE"
3628 else
3629 no_cache=1
3630 fi
3631
3632 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3633
3634fi;
3635
3636 eval "$ac_cv_use_omf"
3637 if test "$no_cache" != 1; then
3638 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3639 fi
3640
3641 if test "$wxUSE_OMF" = yes; then
3642 echo "$as_me:$LINENO: result: yes" >&5
3643echo "${ECHO_T}yes" >&6
3644 else
3645 echo "$as_me:$LINENO: result: no" >&5
3646echo "${ECHO_T}no" >&6
3647 fi
3648
3649fi
3650
3651if test "$wxUSE_DEBUG" = "yes"; then
3652 DEFAULT_wxUSE_DEBUG_FLAG=yes
3653 DEFAULT_wxUSE_DEBUG_INFO=yes
3654 BUILD=debug
3655elif test "$wxUSE_DEBUG" = "no"; then
3656 DEFAULT_wxUSE_DEBUG_FLAG=no
3657 DEFAULT_wxUSE_DEBUG_INFO=no
3658 BUILD=release
3659fi
3660
3661
3662 enablestring=
3663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3664echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3665 no_cache=0
3666 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3667if test "${enable_debug_flag+set}" = set; then
3668 enableval="$enable_debug_flag"
3669
3670 if test "$enableval" = yes; then
3671 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3672 else
3673 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3674 fi
3675
3676else
3677
3678 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3679 if test "x$LINE" != x ; then
3680 eval "DEFAULT_$LINE"
3681 else
3682 no_cache=1
3683 fi
3684
3685 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3686
3687fi;
3688
3689 eval "$ac_cv_use_debug_flag"
3690 if test "$no_cache" != 1; then
3691 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3692 fi
3693
3694 if test "$wxUSE_DEBUG_FLAG" = yes; then
3695 echo "$as_me:$LINENO: result: yes" >&5
3696echo "${ECHO_T}yes" >&6
3697 else
3698 echo "$as_me:$LINENO: result: no" >&5
3699echo "${ECHO_T}no" >&6
3700 fi
3701
3702
3703 enablestring=
3704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3705echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3706 no_cache=0
3707 # Check whether --enable-debug_info or --disable-debug_info was given.
3708if test "${enable_debug_info+set}" = set; then
3709 enableval="$enable_debug_info"
3710
3711 if test "$enableval" = yes; then
3712 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3713 else
3714 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3715 fi
3716
3717else
3718
3719 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3720 if test "x$LINE" != x ; then
3721 eval "DEFAULT_$LINE"
3722 else
3723 no_cache=1
3724 fi
3725
3726 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3727
3728fi;
3729
3730 eval "$ac_cv_use_debug_info"
3731 if test "$no_cache" != 1; then
3732 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3733 fi
3734
3735 if test "$wxUSE_DEBUG_INFO" = yes; then
3736 echo "$as_me:$LINENO: result: yes" >&5
3737echo "${ECHO_T}yes" >&6
3738 else
3739 echo "$as_me:$LINENO: result: no" >&5
3740echo "${ECHO_T}no" >&6
3741 fi
3742
3743
3744 enablestring=
3745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3746echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3747 no_cache=0
3748 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3749if test "${enable_debug_gdb+set}" = set; then
3750 enableval="$enable_debug_gdb"
3751
3752 if test "$enableval" = yes; then
3753 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3754 else
3755 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3756 fi
3757
3758else
3759
3760 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3761 if test "x$LINE" != x ; then
3762 eval "DEFAULT_$LINE"
3763 else
3764 no_cache=1
3765 fi
3766
3767 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3768
3769fi;
3770
3771 eval "$ac_cv_use_debug_gdb"
3772 if test "$no_cache" != 1; then
3773 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3774 fi
3775
3776 if test "$wxUSE_DEBUG_GDB" = yes; then
3777 echo "$as_me:$LINENO: result: yes" >&5
3778echo "${ECHO_T}yes" >&6
3779 else
3780 echo "$as_me:$LINENO: result: no" >&5
3781echo "${ECHO_T}no" >&6
3782 fi
3783
3784
3785 enablestring=
3786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3787echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3788 no_cache=0
3789 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3790if test "${enable_debug_cntxt+set}" = set; then
3791 enableval="$enable_debug_cntxt"
3792
3793 if test "$enableval" = yes; then
3794 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3795 else
3796 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3797 fi
3798
3799else
3800
3801 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3802 if test "x$LINE" != x ; then
3803 eval "DEFAULT_$LINE"
3804 else
3805 no_cache=1
3806 fi
3807
3808 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3809
3810fi;
3811
3812 eval "$ac_cv_use_debug_cntxt"
3813 if test "$no_cache" != 1; then
3814 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3815 fi
3816
3817 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3818 echo "$as_me:$LINENO: result: yes" >&5
3819echo "${ECHO_T}yes" >&6
3820 else
3821 echo "$as_me:$LINENO: result: no" >&5
3822echo "${ECHO_T}no" >&6
3823 fi
3824
3825
3826 enablestring=
3827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3828echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3829 no_cache=0
3830 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3831if test "${enable_mem_tracing+set}" = set; then
3832 enableval="$enable_mem_tracing"
3833
3834 if test "$enableval" = yes; then
3835 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3836 else
3837 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3838 fi
3839
3840else
3841
3842 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3843 if test "x$LINE" != x ; then
3844 eval "DEFAULT_$LINE"
3845 else
3846 no_cache=1
3847 fi
3848
3849 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3850
3851fi;
3852
3853 eval "$ac_cv_use_mem_tracing"
3854 if test "$no_cache" != 1; then
3855 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3856 fi
3857
3858 if test "$wxUSE_MEM_TRACING" = yes; then
3859 echo "$as_me:$LINENO: result: yes" >&5
3860echo "${ECHO_T}yes" >&6
3861 else
3862 echo "$as_me:$LINENO: result: no" >&5
3863echo "${ECHO_T}no" >&6
3864 fi
3865
3866
3867 enablestring=
3868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3869echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3870 no_cache=0
3871 # Check whether --enable-profile or --disable-profile was given.
3872if test "${enable_profile+set}" = set; then
3873 enableval="$enable_profile"
3874
3875 if test "$enableval" = yes; then
3876 ac_cv_use_profile='wxUSE_PROFILE=yes'
3877 else
3878 ac_cv_use_profile='wxUSE_PROFILE=no'
3879 fi
3880
3881else
3882
3883 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3884 if test "x$LINE" != x ; then
3885 eval "DEFAULT_$LINE"
3886 else
3887 no_cache=1
3888 fi
3889
3890 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3891
3892fi;
3893
3894 eval "$ac_cv_use_profile"
3895 if test "$no_cache" != 1; then
3896 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3897 fi
3898
3899 if test "$wxUSE_PROFILE" = yes; then
3900 echo "$as_me:$LINENO: result: yes" >&5
3901echo "${ECHO_T}yes" >&6
3902 else
3903 echo "$as_me:$LINENO: result: no" >&5
3904echo "${ECHO_T}no" >&6
3905 fi
3906
3907
3908 enablestring=
3909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3910echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3911 no_cache=0
3912 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3913if test "${enable_no_rtti+set}" = set; then
3914 enableval="$enable_no_rtti"
3915
3916 if test "$enableval" = yes; then
3917 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3918 else
3919 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3920 fi
3921
3922else
3923
3924 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3925 if test "x$LINE" != x ; then
3926 eval "DEFAULT_$LINE"
3927 else
3928 no_cache=1
3929 fi
3930
3931 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3932
3933fi;
3934
3935 eval "$ac_cv_use_no_rtti"
3936 if test "$no_cache" != 1; then
3937 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3938 fi
3939
3940 if test "$wxUSE_NO_RTTI" = yes; then
3941 echo "$as_me:$LINENO: result: yes" >&5
3942echo "${ECHO_T}yes" >&6
3943 else
3944 echo "$as_me:$LINENO: result: no" >&5
3945echo "${ECHO_T}no" >&6
3946 fi
3947
3948
3949 enablestring=
3950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3951echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3952 no_cache=0
3953 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3954if test "${enable_no_exceptions+set}" = set; then
3955 enableval="$enable_no_exceptions"
3956
3957 if test "$enableval" = yes; then
3958 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3959 else
3960 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3961 fi
3962
3963else
3964
3965 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3966 if test "x$LINE" != x ; then
3967 eval "DEFAULT_$LINE"
3968 else
3969 no_cache=1
3970 fi
3971
3972 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3973
3974fi;
3975
3976 eval "$ac_cv_use_no_exceptions"
3977 if test "$no_cache" != 1; then
3978 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3979 fi
3980
3981 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3982 echo "$as_me:$LINENO: result: yes" >&5
3983echo "${ECHO_T}yes" >&6
3984 else
3985 echo "$as_me:$LINENO: result: no" >&5
3986echo "${ECHO_T}no" >&6
3987 fi
3988
3989
3990 enablestring=
3991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3992echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3993 no_cache=0
3994 # Check whether --enable-permissive or --disable-permissive was given.
3995if test "${enable_permissive+set}" = set; then
3996 enableval="$enable_permissive"
3997
3998 if test "$enableval" = yes; then
3999 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4000 else
4001 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4002 fi
4003
4004else
4005
4006 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4007 if test "x$LINE" != x ; then
4008 eval "DEFAULT_$LINE"
4009 else
4010 no_cache=1
4011 fi
4012
4013 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4014
4015fi;
4016
4017 eval "$ac_cv_use_permissive"
4018 if test "$no_cache" != 1; then
4019 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4020 fi
4021
4022 if test "$wxUSE_PERMISSIVE" = yes; then
4023 echo "$as_me:$LINENO: result: yes" >&5
4024echo "${ECHO_T}yes" >&6
4025 else
4026 echo "$as_me:$LINENO: result: no" >&5
4027echo "${ECHO_T}no" >&6
4028 fi
4029
4030
4031 enablestring=
4032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4033echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4034 no_cache=0
4035 # Check whether --enable-no_deps or --disable-no_deps was given.
4036if test "${enable_no_deps+set}" = set; then
4037 enableval="$enable_no_deps"
4038
4039 if test "$enableval" = yes; then
4040 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4041 else
4042 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4043 fi
4044
4045else
4046
4047 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4048 if test "x$LINE" != x ; then
4049 eval "DEFAULT_$LINE"
4050 else
4051 no_cache=1
4052 fi
4053
4054 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4055
4056fi;
4057
4058 eval "$ac_cv_use_no_deps"
4059 if test "$no_cache" != 1; then
4060 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4061 fi
4062
4063 if test "$wxUSE_NO_DEPS" = yes; then
4064 echo "$as_me:$LINENO: result: yes" >&5
4065echo "${ECHO_T}yes" >&6
4066 else
4067 echo "$as_me:$LINENO: result: no" >&5
4068echo "${ECHO_T}no" >&6
4069 fi
4070
4071
4072
4073 enablestring=
4074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4075echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4076 no_cache=0
4077 # Check whether --enable-compat22 or --disable-compat22 was given.
4078if test "${enable_compat22+set}" = set; then
4079 enableval="$enable_compat22"
4080
4081 if test "$enableval" = yes; then
4082 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4083 else
4084 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4085 fi
4086
4087else
4088
4089 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4090 if test "x$LINE" != x ; then
4091 eval "DEFAULT_$LINE"
4092 else
4093 no_cache=1
4094 fi
4095
4096 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4097
4098fi;
4099
4100 eval "$ac_cv_use_compat22"
4101 if test "$no_cache" != 1; then
4102 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4103 fi
4104
4105 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4106 echo "$as_me:$LINENO: result: yes" >&5
4107echo "${ECHO_T}yes" >&6
4108 else
4109 echo "$as_me:$LINENO: result: no" >&5
4110echo "${ECHO_T}no" >&6
4111 fi
4112
4113
4114 enablestring=disable
4115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4116echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4117 no_cache=0
4118 # Check whether --enable-compat24 or --disable-compat24 was given.
4119if test "${enable_compat24+set}" = set; then
4120 enableval="$enable_compat24"
4121
4122 if test "$enableval" = yes; then
4123 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4124 else
4125 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4126 fi
4127
4128else
4129
4130 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4131 if test "x$LINE" != x ; then
4132 eval "DEFAULT_$LINE"
4133 else
4134 no_cache=1
4135 fi
4136
4137 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4138
4139fi;
4140
4141 eval "$ac_cv_use_compat24"
4142 if test "$no_cache" != 1; then
4143 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4144 fi
4145
4146 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4147 echo "$as_me:$LINENO: result: yes" >&5
4148echo "${ECHO_T}yes" >&6
4149 else
4150 echo "$as_me:$LINENO: result: no" >&5
4151echo "${ECHO_T}no" >&6
4152 fi
4153
4154
ffa0583f
RL
4155
4156 enablestring=
4157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4158echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4159 no_cache=0
4160 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4161if test "${enable_rpath+set}" = set; then
4162 enableval="$enable_rpath"
ffa0583f
RL
4163
4164 if test "$enableval" = yes; then
4165 ac_cv_use_rpath='wxUSE_RPATH=yes'
4166 else
4167 ac_cv_use_rpath='wxUSE_RPATH=no'
4168 fi
4169
4170else
4171
4172 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4173 if test "x$LINE" != x ; then
4174 eval "DEFAULT_$LINE"
4175 else
4176 no_cache=1
4177 fi
4178
4179 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4180
a848cd7e
SC
4181fi;
4182
ffa0583f
RL
4183 eval "$ac_cv_use_rpath"
4184 if test "$no_cache" != 1; then
4185 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4186 fi
4187
4188 if test "$wxUSE_RPATH" = yes; then
4189 echo "$as_me:$LINENO: result: yes" >&5
4190echo "${ECHO_T}yes" >&6
4191 else
4192 echo "$as_me:$LINENO: result: no" >&5
4193echo "${ECHO_T}no" >&6
4194 fi
4195
a848cd7e
SC
4196
4197
4198
4199
4200 enablestring=
4201 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4202echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4203 no_cache=0
4204 # Check whether --enable-intl or --disable-intl was given.
4205if test "${enable_intl+set}" = set; then
4206 enableval="$enable_intl"
4207
4208 if test "$enableval" = yes; then
4209 ac_cv_use_intl='wxUSE_INTL=yes'
4210 else
4211 ac_cv_use_intl='wxUSE_INTL=no'
4212 fi
4213
4214else
4215
4216 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4217 if test "x$LINE" != x ; then
4218 eval "DEFAULT_$LINE"
4219 else
4220 no_cache=1
4221 fi
4222
4223 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4224
4225fi;
4226
4227 eval "$ac_cv_use_intl"
4228 if test "$no_cache" != 1; then
4229 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4230 fi
4231
4232 if test "$wxUSE_INTL" = yes; then
4233 echo "$as_me:$LINENO: result: yes" >&5
4234echo "${ECHO_T}yes" >&6
4235 else
4236 echo "$as_me:$LINENO: result: no" >&5
4237echo "${ECHO_T}no" >&6
4238 fi
4239
4240
4241 enablestring=
4242 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4243echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4244 no_cache=0
4245 # Check whether --enable-config or --disable-config was given.
4246if test "${enable_config+set}" = set; then
4247 enableval="$enable_config"
4248
4249 if test "$enableval" = yes; then
4250 ac_cv_use_config='wxUSE_CONFIG=yes'
4251 else
4252 ac_cv_use_config='wxUSE_CONFIG=no'
4253 fi
4254
4255else
4256
4257 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4258 if test "x$LINE" != x ; then
4259 eval "DEFAULT_$LINE"
4260 else
4261 no_cache=1
4262 fi
4263
4264 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4265
4266fi;
4267
4268 eval "$ac_cv_use_config"
4269 if test "$no_cache" != 1; then
4270 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4271 fi
4272
4273 if test "$wxUSE_CONFIG" = yes; then
4274 echo "$as_me:$LINENO: result: yes" >&5
4275echo "${ECHO_T}yes" >&6
4276 else
4277 echo "$as_me:$LINENO: result: no" >&5
4278echo "${ECHO_T}no" >&6
4279 fi
4280
4281
4282
4283 enablestring=
4284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4285echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4286 no_cache=0
4287 # Check whether --enable-protocols or --disable-protocols was given.
4288if test "${enable_protocols+set}" = set; then
4289 enableval="$enable_protocols"
4290
4291 if test "$enableval" = yes; then
4292 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4293 else
4294 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4295 fi
4296
4297else
4298
4299 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4300 if test "x$LINE" != x ; then
4301 eval "DEFAULT_$LINE"
4302 else
4303 no_cache=1
4304 fi
4305
4306 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4307
4308fi;
4309
4310 eval "$ac_cv_use_protocols"
4311 if test "$no_cache" != 1; then
4312 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4313 fi
4314
4315 if test "$wxUSE_PROTOCOL" = yes; then
4316 echo "$as_me:$LINENO: result: yes" >&5
4317echo "${ECHO_T}yes" >&6
4318 else
4319 echo "$as_me:$LINENO: result: no" >&5
4320echo "${ECHO_T}no" >&6
4321 fi
4322
4323
4324 enablestring=
4325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4326echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4327 no_cache=0
4328 # Check whether --enable-ftp or --disable-ftp was given.
4329if test "${enable_ftp+set}" = set; then
4330 enableval="$enable_ftp"
4331
4332 if test "$enableval" = yes; then
4333 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4334 else
4335 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4336 fi
4337
4338else
4339
4340 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4341 if test "x$LINE" != x ; then
4342 eval "DEFAULT_$LINE"
4343 else
4344 no_cache=1
4345 fi
4346
4347 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4348
4349fi;
4350
4351 eval "$ac_cv_use_ftp"
4352 if test "$no_cache" != 1; then
4353 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4354 fi
4355
4356 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4357 echo "$as_me:$LINENO: result: yes" >&5
4358echo "${ECHO_T}yes" >&6
4359 else
4360 echo "$as_me:$LINENO: result: no" >&5
4361echo "${ECHO_T}no" >&6
4362 fi
4363
4364
4365 enablestring=
4366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4367echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4368 no_cache=0
4369 # Check whether --enable-http or --disable-http was given.
4370if test "${enable_http+set}" = set; then
4371 enableval="$enable_http"
4372
4373 if test "$enableval" = yes; then
4374 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4375 else
4376 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4377 fi
4378
4379else
4380
4381 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4382 if test "x$LINE" != x ; then
4383 eval "DEFAULT_$LINE"
4384 else
4385 no_cache=1
4386 fi
4387
4388 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4389
4390fi;
4391
4392 eval "$ac_cv_use_http"
4393 if test "$no_cache" != 1; then
4394 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4395 fi
4396
4397 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4398 echo "$as_me:$LINENO: result: yes" >&5
4399echo "${ECHO_T}yes" >&6
4400 else
4401 echo "$as_me:$LINENO: result: no" >&5
4402echo "${ECHO_T}no" >&6
4403 fi
4404
4405
4406 enablestring=
4407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4408echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4409 no_cache=0
4410 # Check whether --enable-fileproto or --disable-fileproto was given.
4411if test "${enable_fileproto+set}" = set; then
4412 enableval="$enable_fileproto"
4413
4414 if test "$enableval" = yes; then
4415 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4416 else
4417 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4418 fi
4419
4420else
4421
4422 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4423 if test "x$LINE" != x ; then
4424 eval "DEFAULT_$LINE"
4425 else
4426 no_cache=1
4427 fi
4428
4429 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4430
4431fi;
4432
4433 eval "$ac_cv_use_fileproto"
4434 if test "$no_cache" != 1; then
4435 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4436 fi
4437
4438 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4439 echo "$as_me:$LINENO: result: yes" >&5
4440echo "${ECHO_T}yes" >&6
4441 else
4442 echo "$as_me:$LINENO: result: no" >&5
4443echo "${ECHO_T}no" >&6
4444 fi
4445
4446
4447 enablestring=
4448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4449echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4450 no_cache=0
4451 # Check whether --enable-sockets or --disable-sockets was given.
4452if test "${enable_sockets+set}" = set; then
4453 enableval="$enable_sockets"
4454
4455 if test "$enableval" = yes; then
4456 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4457 else
4458 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4459 fi
4460
4461else
4462
4463 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4464 if test "x$LINE" != x ; then
4465 eval "DEFAULT_$LINE"
4466 else
4467 no_cache=1
4468 fi
4469
4470 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4471
4472fi;
4473
4474 eval "$ac_cv_use_sockets"
4475 if test "$no_cache" != 1; then
4476 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4477 fi
4478
4479 if test "$wxUSE_SOCKETS" = yes; then
4480 echo "$as_me:$LINENO: result: yes" >&5
4481echo "${ECHO_T}yes" >&6
4482 else
4483 echo "$as_me:$LINENO: result: no" >&5
4484echo "${ECHO_T}no" >&6
4485 fi
4486
4487
4488 enablestring=
4489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4490echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4491 no_cache=0
4492 # Check whether --enable-ole or --disable-ole was given.
4493if test "${enable_ole+set}" = set; then
4494 enableval="$enable_ole"
4495
4496 if test "$enableval" = yes; then
4497 ac_cv_use_ole='wxUSE_OLE=yes'
4498 else
4499 ac_cv_use_ole='wxUSE_OLE=no'
4500 fi
4501
4502else
4503
4504 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4505 if test "x$LINE" != x ; then
4506 eval "DEFAULT_$LINE"
4507 else
4508 no_cache=1
4509 fi
4510
4511 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4512
4513fi;
4514
4515 eval "$ac_cv_use_ole"
4516 if test "$no_cache" != 1; then
4517 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4518 fi
4519
4520 if test "$wxUSE_OLE" = yes; then
4521 echo "$as_me:$LINENO: result: yes" >&5
4522echo "${ECHO_T}yes" >&6
4523 else
4524 echo "$as_me:$LINENO: result: no" >&5
4525echo "${ECHO_T}no" >&6
4526 fi
4527
4528
4529 enablestring=
4530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4531echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4532 no_cache=0
4533 # Check whether --enable-dataobj or --disable-dataobj was given.
4534if test "${enable_dataobj+set}" = set; then
4535 enableval="$enable_dataobj"
4536
4537 if test "$enableval" = yes; then
4538 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4539 else
4540 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4541 fi
4542
4543else
4544
4545 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4546 if test "x$LINE" != x ; then
4547 eval "DEFAULT_$LINE"
4548 else
4549 no_cache=1
4550 fi
4551
4552 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4553
4554fi;
4555
4556 eval "$ac_cv_use_dataobj"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_DATAOBJ" = yes; then
4562 echo "$as_me:$LINENO: result: yes" >&5
4563echo "${ECHO_T}yes" >&6
4564 else
4565 echo "$as_me:$LINENO: result: no" >&5
4566echo "${ECHO_T}no" >&6
4567 fi
4568
4569
4570
4571 enablestring=
4572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4573echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4574 no_cache=0
4575 # Check whether --enable-ipc or --disable-ipc was given.
4576if test "${enable_ipc+set}" = set; then
4577 enableval="$enable_ipc"
4578
4579 if test "$enableval" = yes; then
4580 ac_cv_use_ipc='wxUSE_IPC=yes'
4581 else
4582 ac_cv_use_ipc='wxUSE_IPC=no'
4583 fi
4584
4585else
4586
4587 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4588 if test "x$LINE" != x ; then
4589 eval "DEFAULT_$LINE"
4590 else
4591 no_cache=1
4592 fi
4593
4594 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4595
4596fi;
4597
4598 eval "$ac_cv_use_ipc"
4599 if test "$no_cache" != 1; then
4600 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4601 fi
4602
4603 if test "$wxUSE_IPC" = yes; then
4604 echo "$as_me:$LINENO: result: yes" >&5
4605echo "${ECHO_T}yes" >&6
4606 else
4607 echo "$as_me:$LINENO: result: no" >&5
4608echo "${ECHO_T}no" >&6
4609 fi
4610
4611
4612
4613 enablestring=
4614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4615echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4616 no_cache=0
4617 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4618if test "${enable_apple_ieee+set}" = set; then
4619 enableval="$enable_apple_ieee"
4620
4621 if test "$enableval" = yes; then
4622 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4623 else
4624 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4625 fi
4626
4627else
4628
4629 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4630 if test "x$LINE" != x ; then
4631 eval "DEFAULT_$LINE"
4632 else
4633 no_cache=1
4634 fi
4635
4636 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4637
4638fi;
4639
4640 eval "$ac_cv_use_apple_ieee"
4641 if test "$no_cache" != 1; then
4642 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4643 fi
4644
4645 if test "$wxUSE_APPLE_IEEE" = yes; then
4646 echo "$as_me:$LINENO: result: yes" >&5
4647echo "${ECHO_T}yes" >&6
4648 else
4649 echo "$as_me:$LINENO: result: no" >&5
4650echo "${ECHO_T}no" >&6
4651 fi
4652
4653
81f90336
MW
4654 enablestring=
4655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4656echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4657 no_cache=0
4658 # Check whether --enable-arcstream or --disable-arcstream was given.
4659if test "${enable_arcstream+set}" = set; then
4660 enableval="$enable_arcstream"
4661
4662 if test "$enableval" = yes; then
9e8e867f 4663 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4664 else
9e8e867f 4665 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4666 fi
4667
4668else
4669
9e8e867f 4670 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4671 if test "x$LINE" != x ; then
4672 eval "DEFAULT_$LINE"
4673 else
4674 no_cache=1
4675 fi
4676
9e8e867f 4677 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4678
4679fi;
4680
4681 eval "$ac_cv_use_arcstream"
4682 if test "$no_cache" != 1; then
4683 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4684 fi
4685
9e8e867f 4686 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4687 echo "$as_me:$LINENO: result: yes" >&5
4688echo "${ECHO_T}yes" >&6
4689 else
4690 echo "$as_me:$LINENO: result: no" >&5
4691echo "${ECHO_T}no" >&6
4692 fi
4693
4694
a848cd7e 4695 enablestring=
36b6448c
VZ
4696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4697echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4698 no_cache=0
36b6448c
VZ
4699 # Check whether --enable-backtrace or --disable-backtrace was given.
4700if test "${enable_backtrace+set}" = set; then
4701 enableval="$enable_backtrace"
a848cd7e
SC
4702
4703 if test "$enableval" = yes; then
36b6448c 4704 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4705 else
36b6448c 4706 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4707 fi
4708
4709else
4710
36b6448c 4711 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4712 if test "x$LINE" != x ; then
4713 eval "DEFAULT_$LINE"
4714 else
4715 no_cache=1
4716 fi
4717
36b6448c 4718 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4719
4720fi;
4721
36b6448c 4722 eval "$ac_cv_use_backtrace"
a848cd7e 4723 if test "$no_cache" != 1; then
36b6448c 4724 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4725 fi
4726
36b6448c 4727 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4728 echo "$as_me:$LINENO: result: yes" >&5
4729echo "${ECHO_T}yes" >&6
4730 else
4731 echo "$as_me:$LINENO: result: no" >&5
4732echo "${ECHO_T}no" >&6
4733 fi
4734
4735
eaff0f0d 4736 enablestring=
36b6448c
VZ
4737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4738echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4739 no_cache=0
36b6448c
VZ
4740 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4741if test "${enable_catch_segvs+set}" = set; then
4742 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4743
4744 if test "$enableval" = yes; then
36b6448c 4745 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4746 else
36b6448c 4747 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4748 fi
4749
4750else
4751
36b6448c 4752 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4753 if test "x$LINE" != x ; then
4754 eval "DEFAULT_$LINE"
4755 else
4756 no_cache=1
4757 fi
4758
36b6448c 4759 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4760
4761fi;
4762
36b6448c 4763 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4764 if test "$no_cache" != 1; then
36b6448c 4765 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4766 fi
4767
36b6448c 4768 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4769 echo "$as_me:$LINENO: result: yes" >&5
4770echo "${ECHO_T}yes" >&6
4771 else
4772 echo "$as_me:$LINENO: result: no" >&5
4773echo "${ECHO_T}no" >&6
4774 fi
4775
4776
a848cd7e
SC
4777 enablestring=
4778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4779echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4780 no_cache=0
4781 # Check whether --enable-cmdline or --disable-cmdline was given.
4782if test "${enable_cmdline+set}" = set; then
4783 enableval="$enable_cmdline"
4784
4785 if test "$enableval" = yes; then
4786 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4787 else
4788 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4789 fi
4790
4791else
4792
4793 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4794 if test "x$LINE" != x ; then
4795 eval "DEFAULT_$LINE"
4796 else
4797 no_cache=1
4798 fi
4799
4800 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4801
4802fi;
4803
4804 eval "$ac_cv_use_cmdline"
4805 if test "$no_cache" != 1; then
4806 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4807 fi
4808
4809 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4810 echo "$as_me:$LINENO: result: yes" >&5
4811echo "${ECHO_T}yes" >&6
4812 else
4813 echo "$as_me:$LINENO: result: no" >&5
4814echo "${ECHO_T}no" >&6
4815 fi
4816
4817
4818 enablestring=
4819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4820echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4821 no_cache=0
4822 # Check whether --enable-datetime or --disable-datetime was given.
4823if test "${enable_datetime+set}" = set; then
4824 enableval="$enable_datetime"
4825
4826 if test "$enableval" = yes; then
4827 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4828 else
4829 ac_cv_use_datetime='wxUSE_DATETIME=no'
4830 fi
4831
4832else
4833
4834 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4835 if test "x$LINE" != x ; then
4836 eval "DEFAULT_$LINE"
4837 else
4838 no_cache=1
4839 fi
4840
4841 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4842
4843fi;
4844
4845 eval "$ac_cv_use_datetime"
4846 if test "$no_cache" != 1; then
4847 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4848 fi
4849
4850 if test "$wxUSE_DATETIME" = yes; then
4851 echo "$as_me:$LINENO: result: yes" >&5
4852echo "${ECHO_T}yes" >&6
4853 else
4854 echo "$as_me:$LINENO: result: no" >&5
4855echo "${ECHO_T}no" >&6
4856 fi
4857
4858
36b6448c
VZ
4859 enablestring=
4860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4861echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4862 no_cache=0
4863 # Check whether --enable-debugreport or --disable-debugreport was given.
4864if test "${enable_debugreport+set}" = set; then
4865 enableval="$enable_debugreport"
4866
4867 if test "$enableval" = yes; then
4868 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4869 else
4870 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4871 fi
4872
4873else
4874
4875 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4876 if test "x$LINE" != x ; then
4877 eval "DEFAULT_$LINE"
4878 else
4879 no_cache=1
4880 fi
4881
4882 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4883
4884fi;
4885
4886 eval "$ac_cv_use_debugreport"
4887 if test "$no_cache" != 1; then
4888 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4889 fi
4890
4891 if test "$wxUSE_DEBUGREPORT" = yes; then
4892 echo "$as_me:$LINENO: result: yes" >&5
4893echo "${ECHO_T}yes" >&6
4894 else
4895 echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6
4897 fi
4898
4899
a848cd7e
SC
4900 enablestring=
4901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4902echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4903 no_cache=0
4904 # Check whether --enable-dialupman or --disable-dialupman was given.
4905if test "${enable_dialupman+set}" = set; then
4906 enableval="$enable_dialupman"
4907
4908 if test "$enableval" = yes; then
4909 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4910 else
4911 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4912 fi
4913
4914else
4915
4916 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4917 if test "x$LINE" != x ; then
4918 eval "DEFAULT_$LINE"
4919 else
4920 no_cache=1
4921 fi
4922
4923 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4924
4925fi;
4926
4927 eval "$ac_cv_use_dialupman"
4928 if test "$no_cache" != 1; then
4929 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4930 fi
4931
4932 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4933 echo "$as_me:$LINENO: result: yes" >&5
4934echo "${ECHO_T}yes" >&6
4935 else
4936 echo "$as_me:$LINENO: result: no" >&5
4937echo "${ECHO_T}no" >&6
4938 fi
4939
4940
4941 enablestring=
4942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4943echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4944 no_cache=0
4945 # Check whether --enable-dynlib or --disable-dynlib was given.
4946if test "${enable_dynlib+set}" = set; then
4947 enableval="$enable_dynlib"
4948
4949 if test "$enableval" = yes; then
4950 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4951 else
4952 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4953 fi
4954
4955else
4956
4957 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4958 if test "x$LINE" != x ; then
4959 eval "DEFAULT_$LINE"
4960 else
4961 no_cache=1
4962 fi
4963
4964 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4965
4966fi;
4967
4968 eval "$ac_cv_use_dynlib"
4969 if test "$no_cache" != 1; then
4970 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4971 fi
4972
4973 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4974 echo "$as_me:$LINENO: result: yes" >&5
4975echo "${ECHO_T}yes" >&6
4976 else
4977 echo "$as_me:$LINENO: result: no" >&5
4978echo "${ECHO_T}no" >&6
4979 fi
4980
4981
4982 enablestring=
4983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4984echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4985 no_cache=0
4986 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4987if test "${enable_dynamicloader+set}" = set; then
4988 enableval="$enable_dynamicloader"
4989
4990 if test "$enableval" = yes; then
4991 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4992 else
4993 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4994 fi
4995
4996else
4997
4998 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4999 if test "x$LINE" != x ; then
5000 eval "DEFAULT_$LINE"
5001 else
5002 no_cache=1
5003 fi
5004
5005 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5006
5007fi;
5008
5009 eval "$ac_cv_use_dynamicloader"
5010 if test "$no_cache" != 1; then
5011 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5012 fi
5013
5014 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5015 echo "$as_me:$LINENO: result: yes" >&5
5016echo "${ECHO_T}yes" >&6
5017 else
5018 echo "$as_me:$LINENO: result: no" >&5
5019echo "${ECHO_T}no" >&6
5020 fi
5021
5022
5023 enablestring=
5024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5025echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5026 no_cache=0
5027 # Check whether --enable-exceptions or --disable-exceptions was given.
5028if test "${enable_exceptions+set}" = set; then
5029 enableval="$enable_exceptions"
5030
5031 if test "$enableval" = yes; then
5032 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5033 else
5034 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5035 fi
5036
5037else
5038
5039 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5040 if test "x$LINE" != x ; then
5041 eval "DEFAULT_$LINE"
5042 else
5043 no_cache=1
5044 fi
5045
5046 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5047
5048fi;
5049
5050 eval "$ac_cv_use_exceptions"
5051 if test "$no_cache" != 1; then
5052 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5053 fi
5054
5055 if test "$wxUSE_EXCEPTIONS" = yes; then
5056 echo "$as_me:$LINENO: result: yes" >&5
5057echo "${ECHO_T}yes" >&6
5058 else
5059 echo "$as_me:$LINENO: result: no" >&5
5060echo "${ECHO_T}no" >&6
5061 fi
5062
5063
5064 enablestring=
5065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5066echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5067 no_cache=0
5068 # Check whether --enable-ffile or --disable-ffile was given.
5069if test "${enable_ffile+set}" = set; then
5070 enableval="$enable_ffile"
5071
5072 if test "$enableval" = yes; then
5073 ac_cv_use_ffile='wxUSE_FFILE=yes'
5074 else
5075 ac_cv_use_ffile='wxUSE_FFILE=no'
5076 fi
5077
5078else
5079
5080 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5081 if test "x$LINE" != x ; then
5082 eval "DEFAULT_$LINE"
5083 else
5084 no_cache=1
5085 fi
5086
5087 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5088
5089fi;
5090
5091 eval "$ac_cv_use_ffile"
5092 if test "$no_cache" != 1; then
5093 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5094 fi
5095
5096 if test "$wxUSE_FFILE" = yes; then
5097 echo "$as_me:$LINENO: result: yes" >&5
5098echo "${ECHO_T}yes" >&6
5099 else
5100 echo "$as_me:$LINENO: result: no" >&5
5101echo "${ECHO_T}no" >&6
5102 fi
5103
5104
5105 enablestring=
5106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5107echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5108 no_cache=0
5109 # Check whether --enable-file or --disable-file was given.
5110if test "${enable_file+set}" = set; then
5111 enableval="$enable_file"
5112
5113 if test "$enableval" = yes; then
5114 ac_cv_use_file='wxUSE_FILE=yes'
5115 else
5116 ac_cv_use_file='wxUSE_FILE=no'
5117 fi
5118
5119else
5120
5121 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5122 if test "x$LINE" != x ; then
5123 eval "DEFAULT_$LINE"
5124 else
5125 no_cache=1
5126 fi
5127
5128 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5129
5130fi;
5131
5132 eval "$ac_cv_use_file"
5133 if test "$no_cache" != 1; then
5134 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5135 fi
5136
5137 if test "$wxUSE_FILE" = yes; then
5138 echo "$as_me:$LINENO: result: yes" >&5
5139echo "${ECHO_T}yes" >&6
5140 else
5141 echo "$as_me:$LINENO: result: no" >&5
5142echo "${ECHO_T}no" >&6
5143 fi
5144
5145
5146 enablestring=
5147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5148echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5149 no_cache=0
5150 # Check whether --enable-filesystem or --disable-filesystem was given.
5151if test "${enable_filesystem+set}" = set; then
5152 enableval="$enable_filesystem"
5153
5154 if test "$enableval" = yes; then
5155 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5156 else
5157 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5158 fi
5159
5160else
5161
5162 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5163 if test "x$LINE" != x ; then
5164 eval "DEFAULT_$LINE"
5165 else
5166 no_cache=1
5167 fi
5168
5169 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5170
5171fi;
5172
5173 eval "$ac_cv_use_filesystem"
5174 if test "$no_cache" != 1; then
5175 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5176 fi
5177
5178 if test "$wxUSE_FILESYSTEM" = yes; then
5179 echo "$as_me:$LINENO: result: yes" >&5
5180echo "${ECHO_T}yes" >&6
5181 else
5182 echo "$as_me:$LINENO: result: no" >&5
5183echo "${ECHO_T}no" >&6
5184 fi
5185
5186
5187 enablestring=
5188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5189echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5190 no_cache=0
5191 # Check whether --enable-fontmap or --disable-fontmap was given.
5192if test "${enable_fontmap+set}" = set; then
5193 enableval="$enable_fontmap"
5194
5195 if test "$enableval" = yes; then
5196 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5197 else
5198 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5199 fi
5200
5201else
5202
5203 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5204 if test "x$LINE" != x ; then
5205 eval "DEFAULT_$LINE"
5206 else
5207 no_cache=1
5208 fi
5209
5210 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5211
5212fi;
5213
5214 eval "$ac_cv_use_fontmap"
5215 if test "$no_cache" != 1; then
5216 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5217 fi
5218
5219 if test "$wxUSE_FONTMAP" = yes; then
5220 echo "$as_me:$LINENO: result: yes" >&5
5221echo "${ECHO_T}yes" >&6
5222 else
5223 echo "$as_me:$LINENO: result: no" >&5
5224echo "${ECHO_T}no" >&6
5225 fi
5226
5227
5228 enablestring=
5229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5230echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5231 no_cache=0
5232 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5233if test "${enable_fs_inet+set}" = set; then
5234 enableval="$enable_fs_inet"
5235
5236 if test "$enableval" = yes; then
5237 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5238 else
5239 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5240 fi
5241
5242else
5243
5244 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5245 if test "x$LINE" != x ; then
5246 eval "DEFAULT_$LINE"
5247 else
5248 no_cache=1
5249 fi
5250
5251 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5252
5253fi;
5254
5255 eval "$ac_cv_use_fs_inet"
5256 if test "$no_cache" != 1; then
5257 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5258 fi
5259
5260 if test "$wxUSE_FS_INET" = yes; then
5261 echo "$as_me:$LINENO: result: yes" >&5
5262echo "${ECHO_T}yes" >&6
5263 else
5264 echo "$as_me:$LINENO: result: no" >&5
5265echo "${ECHO_T}no" >&6
5266 fi
5267
5268
5269 enablestring=
5270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5271echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5272 no_cache=0
5273 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5274if test "${enable_fs_zip+set}" = set; then
5275 enableval="$enable_fs_zip"
5276
5277 if test "$enableval" = yes; then
5278 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5279 else
5280 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5281 fi
5282
5283else
5284
5285 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5286 if test "x$LINE" != x ; then
5287 eval "DEFAULT_$LINE"
5288 else
5289 no_cache=1
5290 fi
5291
5292 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5293
5294fi;
5295
5296 eval "$ac_cv_use_fs_zip"
5297 if test "$no_cache" != 1; then
5298 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5299 fi
5300
5301 if test "$wxUSE_FS_ZIP" = yes; then
5302 echo "$as_me:$LINENO: result: yes" >&5
5303echo "${ECHO_T}yes" >&6
5304 else
5305 echo "$as_me:$LINENO: result: no" >&5
5306echo "${ECHO_T}no" >&6
5307 fi
5308
5309
5310 enablestring=
5311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5312echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5313 no_cache=0
5314 # Check whether --enable-geometry or --disable-geometry was given.
5315if test "${enable_geometry+set}" = set; then
5316 enableval="$enable_geometry"
5317
5318 if test "$enableval" = yes; then
5319 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5320 else
5321 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5322 fi
5323
5324else
5325
5326 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5327 if test "x$LINE" != x ; then
5328 eval "DEFAULT_$LINE"
5329 else
5330 no_cache=1
5331 fi
5332
5333 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5334
5335fi;
5336
5337 eval "$ac_cv_use_geometry"
5338 if test "$no_cache" != 1; then
5339 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5340 fi
5341
5342 if test "$wxUSE_GEOMETRY" = yes; then
5343 echo "$as_me:$LINENO: result: yes" >&5
5344echo "${ECHO_T}yes" >&6
5345 else
5346 echo "$as_me:$LINENO: result: no" >&5
5347echo "${ECHO_T}no" >&6
5348 fi
5349
5350
5351 enablestring=
5352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5353echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5354 no_cache=0
5355 # Check whether --enable-log or --disable-log was given.
5356if test "${enable_log+set}" = set; then
5357 enableval="$enable_log"
5358
5359 if test "$enableval" = yes; then
5360 ac_cv_use_log='wxUSE_LOG=yes'
5361 else
5362 ac_cv_use_log='wxUSE_LOG=no'
5363 fi
5364
5365else
5366
5367 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5368 if test "x$LINE" != x ; then
5369 eval "DEFAULT_$LINE"
5370 else
5371 no_cache=1
5372 fi
5373
5374 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5375
5376fi;
5377
5378 eval "$ac_cv_use_log"
5379 if test "$no_cache" != 1; then
5380 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5381 fi
5382
5383 if test "$wxUSE_LOG" = yes; then
5384 echo "$as_me:$LINENO: result: yes" >&5
5385echo "${ECHO_T}yes" >&6
5386 else
5387 echo "$as_me:$LINENO: result: no" >&5
5388echo "${ECHO_T}no" >&6
5389 fi
5390
5391
5392 enablestring=
5393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5394echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5395 no_cache=0
5396 # Check whether --enable-longlong or --disable-longlong was given.
5397if test "${enable_longlong+set}" = set; then
5398 enableval="$enable_longlong"
5399
5400 if test "$enableval" = yes; then
5401 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5402 else
5403 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5404 fi
5405
5406else
5407
5408 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5409 if test "x$LINE" != x ; then
5410 eval "DEFAULT_$LINE"
5411 else
5412 no_cache=1
5413 fi
5414
5415 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5416
5417fi;
5418
5419 eval "$ac_cv_use_longlong"
5420 if test "$no_cache" != 1; then
5421 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5422 fi
5423
5424 if test "$wxUSE_LONGLONG" = yes; then
5425 echo "$as_me:$LINENO: result: yes" >&5
5426echo "${ECHO_T}yes" >&6
5427 else
5428 echo "$as_me:$LINENO: result: no" >&5
5429echo "${ECHO_T}no" >&6
5430 fi
5431
5432
5433 enablestring=
5434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5435echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5436 no_cache=0
5437 # Check whether --enable-mimetype or --disable-mimetype was given.
5438if test "${enable_mimetype+set}" = set; then
5439 enableval="$enable_mimetype"
5440
5441 if test "$enableval" = yes; then
5442 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5443 else
5444 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5445 fi
5446
5447else
5448
5449 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5450 if test "x$LINE" != x ; then
5451 eval "DEFAULT_$LINE"
5452 else
5453 no_cache=1
5454 fi
5455
5456 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5457
5458fi;
5459
5460 eval "$ac_cv_use_mimetype"
5461 if test "$no_cache" != 1; then
5462 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5463 fi
5464
5465 if test "$wxUSE_MIMETYPE" = yes; then
5466 echo "$as_me:$LINENO: result: yes" >&5
5467echo "${ECHO_T}yes" >&6
5468 else
5469 echo "$as_me:$LINENO: result: no" >&5
5470echo "${ECHO_T}no" >&6
5471 fi
5472
5473
5474 enablestring=
5475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5476echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5477 no_cache=0
5478 # Check whether --enable-mslu or --disable-mslu was given.
5479if test "${enable_mslu+set}" = set; then
5480 enableval="$enable_mslu"
5481
5482 if test "$enableval" = yes; then
5483 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5484 else
5485 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5486 fi
5487
5488else
5489
5490 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5491 if test "x$LINE" != x ; then
5492 eval "DEFAULT_$LINE"
5493 else
5494 no_cache=1
5495 fi
5496
5497 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5498
5499fi;
5500
5501 eval "$ac_cv_use_mslu"
5502 if test "$no_cache" != 1; then
5503 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5504 fi
5505
5506 if test "$wxUSE_UNICODE_MSLU" = yes; then
5507 echo "$as_me:$LINENO: result: yes" >&5
5508echo "${ECHO_T}yes" >&6
5509 else
5510 echo "$as_me:$LINENO: result: no" >&5
5511echo "${ECHO_T}no" >&6
5512 fi
5513
5514
5515 enablestring=
5516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5517echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5518 no_cache=0
5519 # Check whether --enable-snglinst or --disable-snglinst was given.
5520if test "${enable_snglinst+set}" = set; then
5521 enableval="$enable_snglinst"
5522
5523 if test "$enableval" = yes; then
5524 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5525 else
5526 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5527 fi
5528
5529else
5530
5531 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5532 if test "x$LINE" != x ; then
5533 eval "DEFAULT_$LINE"
5534 else
5535 no_cache=1
5536 fi
5537
5538 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5539
5540fi;
5541
5542 eval "$ac_cv_use_snglinst"
5543 if test "$no_cache" != 1; then
5544 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5545 fi
5546
5547 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5548 echo "$as_me:$LINENO: result: yes" >&5
5549echo "${ECHO_T}yes" >&6
5550 else
5551 echo "$as_me:$LINENO: result: no" >&5
5552echo "${ECHO_T}no" >&6
5553 fi
5554
5555
5556 enablestring=
07158944
VZ
5557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5558echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5559 no_cache=0
07158944
VZ
5560 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5561if test "${enable_std_iostreams+set}" = set; then
5562 enableval="$enable_std_iostreams"
a848cd7e
SC
5563
5564 if test "$enableval" = yes; then
07158944 5565 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5566 else
07158944 5567 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5568 fi
5569
5570else
5571
07158944 5572 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5573 if test "x$LINE" != x ; then
5574 eval "DEFAULT_$LINE"
5575 else
5576 no_cache=1
5577 fi
5578
07158944 5579 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5580
5581fi;
5582
07158944 5583 eval "$ac_cv_use_std_iostreams"
a848cd7e 5584 if test "$no_cache" != 1; then
07158944 5585 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5586 fi
5587
07158944 5588 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5589 echo "$as_me:$LINENO: result: yes" >&5
5590echo "${ECHO_T}yes" >&6
5591 else
5592 echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6
5594 fi
5595
5596
59746b65
MW
5597 enablestring=
5598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5599echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5600 no_cache=0
5601 # Check whether --enable-std_string or --disable-std_string was given.
5602if test "${enable_std_string+set}" = set; then
5603 enableval="$enable_std_string"
5604
5605 if test "$enableval" = yes; then
5606 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5607 else
5608 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5609 fi
5610
5611else
5612
5613 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5614 if test "x$LINE" != x ; then
5615 eval "DEFAULT_$LINE"
5616 else
5617 no_cache=1
5618 fi
5619
5620 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5621
5622fi;
5623
5624 eval "$ac_cv_use_std_string"
5625 if test "$no_cache" != 1; then
5626 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5627 fi
5628
5629 if test "$wxUSE_STD_STRING" = yes; then
5630 echo "$as_me:$LINENO: result: yes" >&5
5631echo "${ECHO_T}yes" >&6
5632 else
5633 echo "$as_me:$LINENO: result: no" >&5
5634echo "${ECHO_T}no" >&6
5635 fi
5636
5637
a848cd7e 5638 enablestring=
07158944
VZ
5639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5640echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5641 no_cache=0
07158944
VZ
5642 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5643if test "${enable_stdpaths+set}" = set; then
5644 enableval="$enable_stdpaths"
a848cd7e
SC
5645
5646 if test "$enableval" = yes; then
07158944 5647 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5648 else
07158944 5649 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5650 fi
5651
5652else
5653
07158944 5654 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5655 if test "x$LINE" != x ; then
5656 eval "DEFAULT_$LINE"
5657 else
5658 no_cache=1
5659 fi
5660
07158944 5661 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5662
5663fi;
5664
07158944 5665 eval "$ac_cv_use_stdpaths"
a848cd7e 5666 if test "$no_cache" != 1; then
07158944 5667 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5668 fi
5669
07158944 5670 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5671 echo "$as_me:$LINENO: result: yes" >&5
5672echo "${ECHO_T}yes" >&6
5673 else
5674 echo "$as_me:$LINENO: result: no" >&5
5675echo "${ECHO_T}no" >&6
5676 fi
5677
5678
5679 enablestring=
5680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5681echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5682 no_cache=0
5683 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5684if test "${enable_stopwatch+set}" = set; then
5685 enableval="$enable_stopwatch"
5686
5687 if test "$enableval" = yes; then
5688 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5689 else
5690 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5691 fi
5692
5693else
5694
5695 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5696 if test "x$LINE" != x ; then
5697 eval "DEFAULT_$LINE"
5698 else
5699 no_cache=1
5700 fi
5701
5702 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5703
5704fi;
5705
5706 eval "$ac_cv_use_stopwatch"
5707 if test "$no_cache" != 1; then
5708 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5709 fi
5710
5711 if test "$wxUSE_STOPWATCH" = yes; then
5712 echo "$as_me:$LINENO: result: yes" >&5
5713echo "${ECHO_T}yes" >&6
5714 else
5715 echo "$as_me:$LINENO: result: no" >&5
5716echo "${ECHO_T}no" >&6
5717 fi
5718
5719
07158944
VZ
5720 enablestring=
5721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5722echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5723 no_cache=0
5724 # Check whether --enable-streams or --disable-streams was given.
5725if test "${enable_streams+set}" = set; then
5726 enableval="$enable_streams"
5727
5728 if test "$enableval" = yes; then
5729 ac_cv_use_streams='wxUSE_STREAMS=yes'
5730 else
5731 ac_cv_use_streams='wxUSE_STREAMS=no'
5732 fi
5733
5734else
5735
5736 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5737 if test "x$LINE" != x ; then
5738 eval "DEFAULT_$LINE"
5739 else
5740 no_cache=1
5741 fi
5742
5743 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5744
5745fi;
5746
5747 eval "$ac_cv_use_streams"
5748 if test "$no_cache" != 1; then
5749 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5750 fi
5751
5752 if test "$wxUSE_STREAMS" = yes; then
5753 echo "$as_me:$LINENO: result: yes" >&5
5754echo "${ECHO_T}yes" >&6
5755 else
5756 echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6
5758 fi
5759
5760
a848cd7e
SC
5761 enablestring=
5762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5763echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5764 no_cache=0
5765 # Check whether --enable-system_options or --disable-system_options was given.
5766if test "${enable_system_options+set}" = set; then
5767 enableval="$enable_system_options"
5768
5769 if test "$enableval" = yes; then
5770 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5771 else
5772 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5773 fi
5774
5775else
5776
5777 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5778 if test "x$LINE" != x ; then
5779 eval "DEFAULT_$LINE"
5780 else
5781 no_cache=1
5782 fi
5783
5784 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5785
5786fi;
5787
5788 eval "$ac_cv_use_system_options"
5789 if test "$no_cache" != 1; then
5790 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5791 fi
5792
5793 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5794 echo "$as_me:$LINENO: result: yes" >&5
5795echo "${ECHO_T}yes" >&6
5796 else
5797 echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6
5799 fi
5800
5801
5802 enablestring=
5803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5804echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5805 no_cache=0
5806 # Check whether --enable-textbuf or --disable-textbuf was given.
5807if test "${enable_textbuf+set}" = set; then
5808 enableval="$enable_textbuf"
5809
5810 if test "$enableval" = yes; then
5811 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5812 else
5813 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5814 fi
5815
5816else
5817
5818 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5819 if test "x$LINE" != x ; then
5820 eval "DEFAULT_$LINE"
5821 else
5822 no_cache=1
5823 fi
5824
5825 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5826
5827fi;
5828
5829 eval "$ac_cv_use_textbuf"
5830 if test "$no_cache" != 1; then
5831 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5832 fi
5833
5834 if test "$wxUSE_TEXTBUFFER" = yes; then
5835 echo "$as_me:$LINENO: result: yes" >&5
5836echo "${ECHO_T}yes" >&6
5837 else
5838 echo "$as_me:$LINENO: result: no" >&5
5839echo "${ECHO_T}no" >&6
5840 fi
5841
5842
5843 enablestring=
5844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5845echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5846 no_cache=0
5847 # Check whether --enable-textfile or --disable-textfile was given.
5848if test "${enable_textfile+set}" = set; then
5849 enableval="$enable_textfile"
5850
5851 if test "$enableval" = yes; then
5852 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5853 else
5854 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5855 fi
5856
5857else
5858
5859 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5860 if test "x$LINE" != x ; then
5861 eval "DEFAULT_$LINE"
5862 else
5863 no_cache=1
5864 fi
5865
5866 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5867
5868fi;
5869
5870 eval "$ac_cv_use_textfile"
5871 if test "$no_cache" != 1; then
5872 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5873 fi
5874
5875 if test "$wxUSE_TEXTFILE" = yes; then
5876 echo "$as_me:$LINENO: result: yes" >&5
5877echo "${ECHO_T}yes" >&6
5878 else
5879 echo "$as_me:$LINENO: result: no" >&5
5880echo "${ECHO_T}no" >&6
5881 fi
5882
5883
5884 enablestring=
5885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5886echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5887 no_cache=0
5888 # Check whether --enable-timer or --disable-timer was given.
5889if test "${enable_timer+set}" = set; then
5890 enableval="$enable_timer"
5891
5892 if test "$enableval" = yes; then
5893 ac_cv_use_timer='wxUSE_TIMER=yes'
5894 else
5895 ac_cv_use_timer='wxUSE_TIMER=no'
5896 fi
5897
5898else
5899
5900 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5901 if test "x$LINE" != x ; then
5902 eval "DEFAULT_$LINE"
5903 else
5904 no_cache=1
5905 fi
5906
5907 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5908
5909fi;
5910
5911 eval "$ac_cv_use_timer"
5912 if test "$no_cache" != 1; then
5913 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5914 fi
5915
5916 if test "$wxUSE_TIMER" = yes; then
5917 echo "$as_me:$LINENO: result: yes" >&5
5918echo "${ECHO_T}yes" >&6
5919 else
5920 echo "$as_me:$LINENO: result: no" >&5
5921echo "${ECHO_T}no" >&6
5922 fi
5923
5924
5925 enablestring=
5926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5927echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5928 no_cache=0
5929 # Check whether --enable-unicode or --disable-unicode was given.
5930if test "${enable_unicode+set}" = set; then
5931 enableval="$enable_unicode"
5932
5933 if test "$enableval" = yes; then
5934 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5935 else
5936 ac_cv_use_unicode='wxUSE_UNICODE=no'
5937 fi
5938
5939else
5940
5941 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5942 if test "x$LINE" != x ; then
5943 eval "DEFAULT_$LINE"
5944 else
5945 no_cache=1
5946 fi
5947
5948 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5949
5950fi;
5951
5952 eval "$ac_cv_use_unicode"
5953 if test "$no_cache" != 1; then
5954 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5955 fi
5956
5957 if test "$wxUSE_UNICODE" = yes; then
5958 echo "$as_me:$LINENO: result: yes" >&5
5959echo "${ECHO_T}yes" >&6
5960 else
5961 echo "$as_me:$LINENO: result: no" >&5
5962echo "${ECHO_T}no" >&6
5963 fi
5964
5965
5966 enablestring=
5967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5968echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5969 no_cache=0
5970 # Check whether --enable-sound or --disable-sound was given.
5971if test "${enable_sound+set}" = set; then
5972 enableval="$enable_sound"
5973
5974 if test "$enableval" = yes; then
5975 ac_cv_use_sound='wxUSE_SOUND=yes'
5976 else
5977 ac_cv_use_sound='wxUSE_SOUND=no'
5978 fi
5979
5980else
5981
5982 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5983 if test "x$LINE" != x ; then
5984 eval "DEFAULT_$LINE"
5985 else
5986 no_cache=1
5987 fi
5988
5989 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5990
5991fi;
5992
5993 eval "$ac_cv_use_sound"
5994 if test "$no_cache" != 1; then
5995 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5996 fi
5997
5998 if test "$wxUSE_SOUND" = yes; then
5999 echo "$as_me:$LINENO: result: yes" >&5
6000echo "${ECHO_T}yes" >&6
6001 else
6002 echo "$as_me:$LINENO: result: no" >&5
6003echo "${ECHO_T}no" >&6
6004 fi
6005
6006
3b57de8b
RL
6007 enablestring=
6008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6009echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6010 no_cache=0
6011 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6012if test "${enable_mediactrl+set}" = set; then
6013 enableval="$enable_mediactrl"
6014
6015 if test "$enableval" = yes; then
6016 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6017 else
6018 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6019 fi
6020
6021else
6022
6023 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6024 if test "x$LINE" != x ; then
6025 eval "DEFAULT_$LINE"
6026 else
6027 no_cache=1
6028 fi
6029
6030 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6031
6032fi;
6033
6034 eval "$ac_cv_use_mediactrl"
6035 if test "$no_cache" != 1; then
6036 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6037 fi
6038
6039 if test "$wxUSE_MEDIACTRL" = yes; then
6040 echo "$as_me:$LINENO: result: yes" >&5
6041echo "${ECHO_T}yes" >&6
6042 else
6043 echo "$as_me:$LINENO: result: no" >&5
6044echo "${ECHO_T}no" >&6
6045 fi
6046
6047
a848cd7e
SC
6048 enablestring=
6049 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6050echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6051 no_cache=0
6052 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6053if test "${enable_wxprintfv+set}" = set; then
6054 enableval="$enable_wxprintfv"
6055
6056 if test "$enableval" = yes; then
6057 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6058 else
6059 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6060 fi
6061
6062else
6063
6064 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6065 if test "x$LINE" != x ; then
6066 eval "DEFAULT_$LINE"
6067 else
6068 no_cache=1
6069 fi
6070
6071 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6072
6073fi;
6074
6075 eval "$ac_cv_use_wxprintfv"
6076 if test "$no_cache" != 1; then
6077 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6078 fi
6079
6080 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6081 echo "$as_me:$LINENO: result: yes" >&5
6082echo "${ECHO_T}yes" >&6
6083 else
6084 echo "$as_me:$LINENO: result: no" >&5
6085echo "${ECHO_T}no" >&6
6086 fi
6087
6088
6089 enablestring=
6090 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6091echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6092 no_cache=0
6093 # Check whether --enable-zipstream or --disable-zipstream was given.
6094if test "${enable_zipstream+set}" = set; then
6095 enableval="$enable_zipstream"
6096
6097 if test "$enableval" = yes; then
6098 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6099 else
6100 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6101 fi
6102
6103else
6104
6105 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6106 if test "x$LINE" != x ; then
6107 eval "DEFAULT_$LINE"
6108 else
6109 no_cache=1
6110 fi
6111
6112 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6113
6114fi;
6115
6116 eval "$ac_cv_use_zipstream"
6117 if test "$no_cache" != 1; then
6118 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6119 fi
6120
6121 if test "$wxUSE_ZIPSTREAM" = yes; then
6122 echo "$as_me:$LINENO: result: yes" >&5
6123echo "${ECHO_T}yes" >&6
6124 else
6125 echo "$as_me:$LINENO: result: no" >&5
6126echo "${ECHO_T}no" >&6
6127 fi
6128
6129
a848cd7e
SC
6130
6131 enablestring=
6132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6133echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6134 no_cache=0
6135 # Check whether --enable-url or --disable-url was given.
6136if test "${enable_url+set}" = set; then
6137 enableval="$enable_url"
6138
6139 if test "$enableval" = yes; then
6140 ac_cv_use_url='wxUSE_URL=yes'
6141 else
6142 ac_cv_use_url='wxUSE_URL=no'
6143 fi
6144
6145else
6146
6147 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6148 if test "x$LINE" != x ; then
6149 eval "DEFAULT_$LINE"
6150 else
6151 no_cache=1
6152 fi
6153
6154 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6155
6156fi;
6157
6158 eval "$ac_cv_use_url"
6159 if test "$no_cache" != 1; then
6160 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6161 fi
6162
6163 if test "$wxUSE_URL" = yes; then
6164 echo "$as_me:$LINENO: result: yes" >&5
6165echo "${ECHO_T}yes" >&6
6166 else
6167 echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6
6169 fi
6170
6171
6172 enablestring=
6173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6174echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6175 no_cache=0
6176 # Check whether --enable-protocol or --disable-protocol was given.
6177if test "${enable_protocol+set}" = set; then
6178 enableval="$enable_protocol"
6179
6180 if test "$enableval" = yes; then
6181 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6182 else
6183 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6184 fi
6185
6186else
6187
6188 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6189 if test "x$LINE" != x ; then
6190 eval "DEFAULT_$LINE"
6191 else
6192 no_cache=1
6193 fi
6194
6195 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6196
6197fi;
6198
6199 eval "$ac_cv_use_protocol"
6200 if test "$no_cache" != 1; then
6201 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6202 fi
6203
6204 if test "$wxUSE_PROTOCOL" = yes; then
6205 echo "$as_me:$LINENO: result: yes" >&5
6206echo "${ECHO_T}yes" >&6
6207 else
6208 echo "$as_me:$LINENO: result: no" >&5
6209echo "${ECHO_T}no" >&6
6210 fi
6211
6212
6213 enablestring=
6214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6215echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6216 no_cache=0
6217 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6218if test "${enable_protocol_http+set}" = set; then
6219 enableval="$enable_protocol_http"
6220
6221 if test "$enableval" = yes; then
6222 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6223 else
6224 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6225 fi
6226
6227else
6228
6229 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6230 if test "x$LINE" != x ; then
6231 eval "DEFAULT_$LINE"
6232 else
6233 no_cache=1
6234 fi
6235
6236 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6237
6238fi;
6239
6240 eval "$ac_cv_use_protocol_http"
6241 if test "$no_cache" != 1; then
6242 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6243 fi
6244
6245 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6246 echo "$as_me:$LINENO: result: yes" >&5
6247echo "${ECHO_T}yes" >&6
6248 else
6249 echo "$as_me:$LINENO: result: no" >&5
6250echo "${ECHO_T}no" >&6
6251 fi
6252
6253
6254 enablestring=
6255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6256echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6257 no_cache=0
6258 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6259if test "${enable_protocol_ftp+set}" = set; then
6260 enableval="$enable_protocol_ftp"
6261
6262 if test "$enableval" = yes; then
6263 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6264 else
6265 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6266 fi
6267
6268else
6269
6270 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6271 if test "x$LINE" != x ; then
6272 eval "DEFAULT_$LINE"
6273 else
6274 no_cache=1
6275 fi
6276
6277 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6278
6279fi;
6280
6281 eval "$ac_cv_use_protocol_ftp"
6282 if test "$no_cache" != 1; then
6283 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6284 fi
6285
6286 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6287 echo "$as_me:$LINENO: result: yes" >&5
6288echo "${ECHO_T}yes" >&6
6289 else
6290 echo "$as_me:$LINENO: result: no" >&5
6291echo "${ECHO_T}no" >&6
6292 fi
6293
6294
6295 enablestring=
6296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6297echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6298 no_cache=0
6299 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6300if test "${enable_protocol_file+set}" = set; then
6301 enableval="$enable_protocol_file"
6302
6303 if test "$enableval" = yes; then
6304 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6305 else
6306 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6307 fi
6308
6309else
6310
6311 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6312 if test "x$LINE" != x ; then
6313 eval "DEFAULT_$LINE"
6314 else
6315 no_cache=1
6316 fi
6317
6318 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6319
6320fi;
6321
6322 eval "$ac_cv_use_protocol_file"
6323 if test "$no_cache" != 1; then
6324 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6325 fi
6326
6327 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6328 echo "$as_me:$LINENO: result: yes" >&5
6329echo "${ECHO_T}yes" >&6
6330 else
6331 echo "$as_me:$LINENO: result: no" >&5
6332echo "${ECHO_T}no" >&6
6333 fi
6334
6335
6336
6337
6338
6339 enablestring=
6340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6341echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6342 no_cache=0
6343 # Check whether --enable-threads or --disable-threads was given.
6344if test "${enable_threads+set}" = set; then
6345 enableval="$enable_threads"
6346
6347 if test "$enableval" = yes; then
6348 ac_cv_use_threads='wxUSE_THREADS=yes'
6349 else
6350 ac_cv_use_threads='wxUSE_THREADS=no'
6351 fi
6352
6353else
6354
6355 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6356 if test "x$LINE" != x ; then
6357 eval "DEFAULT_$LINE"
6358 else
6359 no_cache=1
6360 fi
6361
6362 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6363
6364fi;
6365
6366 eval "$ac_cv_use_threads"
6367 if test "$no_cache" != 1; then
6368 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6369 fi
6370
6371 if test "$wxUSE_THREADS" = yes; then
6372 echo "$as_me:$LINENO: result: yes" >&5
6373echo "${ECHO_T}yes" >&6
6374 else
6375 echo "$as_me:$LINENO: result: no" >&5
6376echo "${ECHO_T}no" >&6
6377 fi
6378
6379
6380if test "$wxUSE_GUI" = "yes"; then
6381
6382
6383
6384 enablestring=
6385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6386echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6387 no_cache=0
6388 # Check whether --enable-docview or --disable-docview was given.
6389if test "${enable_docview+set}" = set; then
6390 enableval="$enable_docview"
6391
6392 if test "$enableval" = yes; then
6393 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6394 else
6395 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6396 fi
6397
6398else
6399
6400 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6401 if test "x$LINE" != x ; then
6402 eval "DEFAULT_$LINE"
6403 else
6404 no_cache=1
6405 fi
6406
6407 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6408
6409fi;
6410
6411 eval "$ac_cv_use_docview"
6412 if test "$no_cache" != 1; then
6413 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6414 fi
6415
6416 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6417 echo "$as_me:$LINENO: result: yes" >&5
6418echo "${ECHO_T}yes" >&6
6419 else
6420 echo "$as_me:$LINENO: result: no" >&5
6421echo "${ECHO_T}no" >&6
6422 fi
6423
6424
6425 enablestring=
6426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6427echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6428 no_cache=0
6429 # Check whether --enable-help or --disable-help was given.
6430if test "${enable_help+set}" = set; then
6431 enableval="$enable_help"
6432
6433 if test "$enableval" = yes; then
6434 ac_cv_use_help='wxUSE_HELP=yes'
6435 else
6436 ac_cv_use_help='wxUSE_HELP=no'
6437 fi
6438
6439else
6440
6441 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6442 if test "x$LINE" != x ; then
6443 eval "DEFAULT_$LINE"
6444 else
6445 no_cache=1
6446 fi
6447
6448 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6449
6450fi;
6451
6452 eval "$ac_cv_use_help"
6453 if test "$no_cache" != 1; then
6454 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6455 fi
6456
6457 if test "$wxUSE_HELP" = yes; then
6458 echo "$as_me:$LINENO: result: yes" >&5
6459echo "${ECHO_T}yes" >&6
6460 else
6461 echo "$as_me:$LINENO: result: no" >&5
6462echo "${ECHO_T}no" >&6
6463 fi
6464
6465
6466 enablestring=
6467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6468echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6469 no_cache=0
6470 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6471if test "${enable_mshtmlhelp+set}" = set; then
6472 enableval="$enable_mshtmlhelp"
6473
6474 if test "$enableval" = yes; then
6475 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6476 else
6477 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6478 fi
6479
6480else
6481
6482 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6483 if test "x$LINE" != x ; then
6484 eval "DEFAULT_$LINE"
6485 else
6486 no_cache=1
6487 fi
6488
6489 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6490
6491fi;
6492
6493 eval "$ac_cv_use_mshtmlhelp"
6494 if test "$no_cache" != 1; then
6495 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6496 fi
6497
6498 if test "$wxUSE_MS_HTML_HELP" = yes; then
6499 echo "$as_me:$LINENO: result: yes" >&5
6500echo "${ECHO_T}yes" >&6
6501 else
6502 echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6
6504 fi
6505
6506
6507 enablestring=
6508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6509echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6510 no_cache=0
6511 # Check whether --enable-html or --disable-html was given.
6512if test "${enable_html+set}" = set; then
6513 enableval="$enable_html"
6514
6515 if test "$enableval" = yes; then
6516 ac_cv_use_html='wxUSE_HTML=yes'
6517 else
6518 ac_cv_use_html='wxUSE_HTML=no'
6519 fi
6520
6521else
6522
6523 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6524 if test "x$LINE" != x ; then
6525 eval "DEFAULT_$LINE"
6526 else
6527 no_cache=1
6528 fi
6529
6530 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6531
6532fi;
6533
6534 eval "$ac_cv_use_html"
6535 if test "$no_cache" != 1; then
6536 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6537 fi
6538
6539 if test "$wxUSE_HTML" = yes; then
6540 echo "$as_me:$LINENO: result: yes" >&5
6541echo "${ECHO_T}yes" >&6
6542 else
6543 echo "$as_me:$LINENO: result: no" >&5
6544echo "${ECHO_T}no" >&6
6545 fi
6546
6547
6548 enablestring=
6549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6550echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6551 no_cache=0
6552 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6553if test "${enable_htmlhelp+set}" = set; then
6554 enableval="$enable_htmlhelp"
6555
6556 if test "$enableval" = yes; then
6557 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6558 else
6559 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6560 fi
6561
6562else
6563
6564 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6565 if test "x$LINE" != x ; then
6566 eval "DEFAULT_$LINE"
6567 else
6568 no_cache=1
6569 fi
6570
6571 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6572
6573fi;
6574
6575 eval "$ac_cv_use_htmlhelp"
6576 if test "$no_cache" != 1; then
6577 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6578 fi
6579
6580 if test "$wxUSE_WXHTML_HELP" = yes; then
6581 echo "$as_me:$LINENO: result: yes" >&5
6582echo "${ECHO_T}yes" >&6
6583 else
6584 echo "$as_me:$LINENO: result: no" >&5
6585echo "${ECHO_T}no" >&6
6586 fi
6587
6588
9a8f0513
VS
6589 enablestring=
6590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6591echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6592 no_cache=0
6593 # Check whether --enable-xrc or --disable-xrc was given.
6594if test "${enable_xrc+set}" = set; then
6595 enableval="$enable_xrc"
6596
6597 if test "$enableval" = yes; then
6598 ac_cv_use_xrc='wxUSE_XRC=yes'
6599 else
6600 ac_cv_use_xrc='wxUSE_XRC=no'
6601 fi
6602
6603else
6604
6605 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6606 if test "x$LINE" != x ; then
6607 eval "DEFAULT_$LINE"
6608 else
6609 no_cache=1
6610 fi
6611
6612 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6613
6614fi;
6615
6616 eval "$ac_cv_use_xrc"
6617 if test "$no_cache" != 1; then
6618 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6619 fi
6620
6621 if test "$wxUSE_XRC" = yes; then
6622 echo "$as_me:$LINENO: result: yes" >&5
6623echo "${ECHO_T}yes" >&6
6624 else
6625 echo "$as_me:$LINENO: result: no" >&5
6626echo "${ECHO_T}no" >&6
6627 fi
6628
6629
a848cd7e
SC
6630 enablestring=
6631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6632echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6633 no_cache=0
6634 # Check whether --enable-constraints or --disable-constraints was given.
6635if test "${enable_constraints+set}" = set; then
6636 enableval="$enable_constraints"
6637
6638 if test "$enableval" = yes; then
6639 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6640 else
6641 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6642 fi
6643
6644else
6645
6646 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6647 if test "x$LINE" != x ; then
6648 eval "DEFAULT_$LINE"
6649 else
6650 no_cache=1
6651 fi
6652
6653 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6654
6655fi;
6656
6657 eval "$ac_cv_use_constraints"
6658 if test "$no_cache" != 1; then
6659 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6660 fi
6661
6662 if test "$wxUSE_CONSTRAINTS" = yes; then
6663 echo "$as_me:$LINENO: result: yes" >&5
6664echo "${ECHO_T}yes" >&6
6665 else
6666 echo "$as_me:$LINENO: result: no" >&5
6667echo "${ECHO_T}no" >&6
6668 fi
6669
6670
6671 enablestring=
6672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6673echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6674 no_cache=0
6675 # Check whether --enable-printarch or --disable-printarch was given.
6676if test "${enable_printarch+set}" = set; then
6677 enableval="$enable_printarch"
6678
6679 if test "$enableval" = yes; then
6680 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6681 else
6682 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6683 fi
6684
6685else
6686
6687 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6688 if test "x$LINE" != x ; then
6689 eval "DEFAULT_$LINE"
6690 else
6691 no_cache=1
6692 fi
6693
6694 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6695
6696fi;
6697
6698 eval "$ac_cv_use_printarch"
6699 if test "$no_cache" != 1; then
6700 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6701 fi
6702
6703 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6704 echo "$as_me:$LINENO: result: yes" >&5
6705echo "${ECHO_T}yes" >&6
6706 else
6707 echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6
6709 fi
6710
6711
6712 enablestring=
6713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6714echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6715 no_cache=0
6716 # Check whether --enable-mdi or --disable-mdi was given.
6717if test "${enable_mdi+set}" = set; then
6718 enableval="$enable_mdi"
6719
6720 if test "$enableval" = yes; then
8a7b1113 6721 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6722 else
8a7b1113 6723 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6724 fi
6725
6726else
6727
8a7b1113 6728 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6729 if test "x$LINE" != x ; then
6730 eval "DEFAULT_$LINE"
6731 else
6732 no_cache=1
6733 fi
6734
8a7b1113 6735 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6736
6737fi;
6738
6739 eval "$ac_cv_use_mdi"
6740 if test "$no_cache" != 1; then
6741 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6742 fi
6743
8a7b1113
VZ
6744 if test "$wxUSE_MDI" = yes; then
6745 echo "$as_me:$LINENO: result: yes" >&5
6746echo "${ECHO_T}yes" >&6
6747 else
6748 echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6
6750 fi
6751
6752
6753 enablestring=
6754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6755echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6756 no_cache=0
6757 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6758if test "${enable_mdidoc+set}" = set; then
6759 enableval="$enable_mdidoc"
6760
6761 if test "$enableval" = yes; then
6762 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6763 else
6764 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6765 fi
6766
6767else
6768
6769 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6770 if test "x$LINE" != x ; then
6771 eval "DEFAULT_$LINE"
6772 else
6773 no_cache=1
6774 fi
6775
6776 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6777
6778fi;
6779
6780 eval "$ac_cv_use_mdidoc"
6781 if test "$no_cache" != 1; then
6782 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6783 fi
6784
a848cd7e
SC
6785 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6786 echo "$as_me:$LINENO: result: yes" >&5
6787echo "${ECHO_T}yes" >&6
6788 else
6789 echo "$as_me:$LINENO: result: no" >&5
6790echo "${ECHO_T}no" >&6
6791 fi
6792
6793
6794 enablestring=
6795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6796echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6797 no_cache=0
6798 # Check whether --enable-loggui or --disable-loggui was given.
6799if test "${enable_loggui+set}" = set; then
6800 enableval="$enable_loggui"
6801
6802 if test "$enableval" = yes; then
6803 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6804 else
6805 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6806 fi
6807
6808else
6809
6810 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6811 if test "x$LINE" != x ; then
6812 eval "DEFAULT_$LINE"
6813 else
6814 no_cache=1
6815 fi
6816
6817 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6818
6819fi;
6820
6821 eval "$ac_cv_use_loggui"
6822 if test "$no_cache" != 1; then
6823 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6824 fi
6825
6826 if test "$wxUSE_LOGGUI" = yes; then
6827 echo "$as_me:$LINENO: result: yes" >&5
6828echo "${ECHO_T}yes" >&6
6829 else
6830 echo "$as_me:$LINENO: result: no" >&5
6831echo "${ECHO_T}no" >&6
6832 fi
6833
6834
6835 enablestring=
6836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6837echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6838 no_cache=0
6839 # Check whether --enable-logwin or --disable-logwin was given.
6840if test "${enable_logwin+set}" = set; then
6841 enableval="$enable_logwin"
6842
6843 if test "$enableval" = yes; then
6844 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6845 else
6846 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6847 fi
6848
6849else
6850
6851 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6852 if test "x$LINE" != x ; then
6853 eval "DEFAULT_$LINE"
6854 else
6855 no_cache=1
6856 fi
6857
6858 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6859
6860fi;
6861
6862 eval "$ac_cv_use_logwin"
6863 if test "$no_cache" != 1; then
6864 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6865 fi
6866
6867 if test "$wxUSE_LOGWINDOW" = yes; then
6868 echo "$as_me:$LINENO: result: yes" >&5
6869echo "${ECHO_T}yes" >&6
6870 else
6871 echo "$as_me:$LINENO: result: no" >&5
6872echo "${ECHO_T}no" >&6
6873 fi
6874
6875
6876 enablestring=
6877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6878echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6879 no_cache=0
6880 # Check whether --enable-logdialog or --disable-logdialog was given.
6881if test "${enable_logdialog+set}" = set; then
6882 enableval="$enable_logdialog"
6883
6884 if test "$enableval" = yes; then
6885 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6886 else
6887 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6888 fi
6889
6890else
6891
6892 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6893 if test "x$LINE" != x ; then
6894 eval "DEFAULT_$LINE"
6895 else
6896 no_cache=1
6897 fi
6898
6899 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6900
6901fi;
6902
6903 eval "$ac_cv_use_logdialog"
6904 if test "$no_cache" != 1; then
6905 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6906 fi
6907
6908 if test "$wxUSE_LOGDIALOG" = yes; then
6909 echo "$as_me:$LINENO: result: yes" >&5
6910echo "${ECHO_T}yes" >&6
6911 else
6912 echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6
6914 fi
6915
6916
646b6ec1
VS
6917 enablestring=
6918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6919echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6920 no_cache=0
6921 # Check whether --enable-webkit or --disable-webkit was given.
6922if test "${enable_webkit+set}" = set; then
6923 enableval="$enable_webkit"
6924
6925 if test "$enableval" = yes; then
6926 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6927 else
6928 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6929 fi
6930
6931else
6932
6933 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6934 if test "x$LINE" != x ; then
6935 eval "DEFAULT_$LINE"
6936 else
6937 no_cache=1
6938 fi
6939
6940 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6941
6942fi;
6943
6944 eval "$ac_cv_use_webkit"
6945 if test "$no_cache" != 1; then
6946 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6947 fi
6948
6949 if test "$wxUSE_WEBKIT" = yes; then
6950 echo "$as_me:$LINENO: result: yes" >&5
6951echo "${ECHO_T}yes" >&6
6952 else
6953 echo "$as_me:$LINENO: result: no" >&5
6954echo "${ECHO_T}no" >&6
6955 fi
6956
6957
a848cd7e
SC
6958
6959 enablestring=
6960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6961echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6962 no_cache=0
6963 # Check whether --enable-postscript or --disable-postscript was given.
6964if test "${enable_postscript+set}" = set; then
6965 enableval="$enable_postscript"
6966
6967 if test "$enableval" = yes; then
6968 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6969 else
6970 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6971 fi
6972
6973else
6974
6975 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6976 if test "x$LINE" != x ; then
6977 eval "DEFAULT_$LINE"
6978 else
6979 no_cache=1
6980 fi
6981
6982 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6983
6984fi;
6985
6986 eval "$ac_cv_use_postscript"
6987 if test "$no_cache" != 1; then
6988 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6989 fi
6990
6991 if test "$wxUSE_POSTSCRIPT" = yes; then
6992 echo "$as_me:$LINENO: result: yes" >&5
6993echo "${ECHO_T}yes" >&6
6994 else
6995 echo "$as_me:$LINENO: result: no" >&5
6996echo "${ECHO_T}no" >&6
6997 fi
6998
6999
7000
7001
7002
7003 enablestring=
7004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7005echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7006 no_cache=0
7007 # Check whether --enable-prologio or --disable-prologio was given.
7008if test "${enable_prologio+set}" = set; then
7009 enableval="$enable_prologio"
7010
7011 if test "$enableval" = yes; then
7012 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7013 else
7014 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7015 fi
7016
7017else
7018
7019 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7020 if test "x$LINE" != x ; then
7021 eval "DEFAULT_$LINE"
7022 else
7023 no_cache=1
7024 fi
7025
7026 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7027
7028fi;
7029
7030 eval "$ac_cv_use_prologio"
7031 if test "$no_cache" != 1; then
7032 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7033 fi
7034
7035 if test "$wxUSE_PROLOGIO" = yes; then
7036 echo "$as_me:$LINENO: result: yes" >&5
7037echo "${ECHO_T}yes" >&6
7038 else
7039 echo "$as_me:$LINENO: result: no" >&5
7040echo "${ECHO_T}no" >&6
7041 fi
7042
7043
7044 enablestring=
7045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7046echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7047 no_cache=0
7048 # Check whether --enable-resources or --disable-resources was given.
7049if test "${enable_resources+set}" = set; then
7050 enableval="$enable_resources"
7051
7052 if test "$enableval" = yes; then
7053 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7054 else
7055 ac_cv_use_resources='wxUSE_RESOURCES=no'
7056 fi
7057
7058else
7059
7060 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7061 if test "x$LINE" != x ; then
7062 eval "DEFAULT_$LINE"
7063 else
7064 no_cache=1
7065 fi
7066
7067 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7068
7069fi;
7070
7071 eval "$ac_cv_use_resources"
7072 if test "$no_cache" != 1; then
7073 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7074 fi
7075
7076 if test "$wxUSE_RESOURCES" = yes; then
7077 echo "$as_me:$LINENO: result: yes" >&5
7078echo "${ECHO_T}yes" >&6
7079 else
7080 echo "$as_me:$LINENO: result: no" >&5
7081echo "${ECHO_T}no" >&6
7082 fi
7083
7084
7085
7086
7087 enablestring=
7088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7089echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7090 no_cache=0
7091 # Check whether --enable-clipboard or --disable-clipboard was given.
7092if test "${enable_clipboard+set}" = set; then
7093 enableval="$enable_clipboard"
7094
7095 if test "$enableval" = yes; then
7096 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7097 else
7098 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7099 fi
7100
7101else
7102
7103 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7104 if test "x$LINE" != x ; then
7105 eval "DEFAULT_$LINE"
7106 else
7107 no_cache=1
7108 fi
7109
7110 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7111
7112fi;
7113
7114 eval "$ac_cv_use_clipboard"
7115 if test "$no_cache" != 1; then
7116 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7117 fi
7118
7119 if test "$wxUSE_CLIPBOARD" = yes; then
7120 echo "$as_me:$LINENO: result: yes" >&5
7121echo "${ECHO_T}yes" >&6
7122 else
7123 echo "$as_me:$LINENO: result: no" >&5
7124echo "${ECHO_T}no" >&6
7125 fi
7126
7127
7128 enablestring=
7129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7130echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7131 no_cache=0
7132 # Check whether --enable-dnd or --disable-dnd was given.
7133if test "${enable_dnd+set}" = set; then
7134 enableval="$enable_dnd"
7135
7136 if test "$enableval" = yes; then
7137 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7138 else
7139 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7140 fi
7141
7142else
7143
7144 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7145 if test "x$LINE" != x ; then
7146 eval "DEFAULT_$LINE"
7147 else
7148 no_cache=1
7149 fi
7150
7151 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7152
7153fi;
7154
7155 eval "$ac_cv_use_dnd"
7156 if test "$no_cache" != 1; then
7157 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7158 fi
7159
7160 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7161 echo "$as_me:$LINENO: result: yes" >&5
7162echo "${ECHO_T}yes" >&6
7163 else
7164 echo "$as_me:$LINENO: result: no" >&5
7165echo "${ECHO_T}no" >&6
7166 fi
7167
7168
7169 enablestring=
7170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7171echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7172 no_cache=0
7173 # Check whether --enable-metafile or --disable-metafile was given.
7174if test "${enable_metafile+set}" = set; then
7175 enableval="$enable_metafile"
7176
7177 if test "$enableval" = yes; then
7178 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7179 else
7180 ac_cv_use_metafile='wxUSE_METAFILE=no'
7181 fi
7182
7183else
7184
7185 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7186 if test "x$LINE" != x ; then
7187 eval "DEFAULT_$LINE"
7188 else
7189 no_cache=1
7190 fi
7191
7192 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7193
7194fi;
7195
7196 eval "$ac_cv_use_metafile"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_METAFILE" = yes; then
7202 echo "$as_me:$LINENO: result: yes" >&5
7203echo "${ECHO_T}yes" >&6
7204 else
7205 echo "$as_me:$LINENO: result: no" >&5
7206echo "${ECHO_T}no" >&6
7207 fi
7208
7209
7210
7211
7212
7213 enablestring=
7214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7215echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7216 no_cache=0
7217 # Check whether --enable-controls or --disable-controls was given.
7218if test "${enable_controls+set}" = set; then
7219 enableval="$enable_controls"
7220
7221 if test "$enableval" = yes; then
7222 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7223 else
7224 ac_cv_use_controls='wxUSE_CONTROLS=no'
7225 fi
7226
7227else
7228
7229 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7230 if test "x$LINE" != x ; then
7231 eval "DEFAULT_$LINE"
7232 else
7233 no_cache=1
7234 fi
7235
7236 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7237
7238fi;
7239
7240 eval "$ac_cv_use_controls"
7241 if test "$no_cache" != 1; then
7242 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7243 fi
7244
7245 if test "$wxUSE_CONTROLS" = yes; then
7246 echo "$as_me:$LINENO: result: yes" >&5
7247echo "${ECHO_T}yes" >&6
7248 else
7249 echo "$as_me:$LINENO: result: no" >&5
7250echo "${ECHO_T}no" >&6
7251 fi
7252
7253
7254if test "$wxUSE_CONTROLS" = "yes"; then
7255 DEFAULT_wxUSE_ACCEL=yes
7256 DEFAULT_wxUSE_BMPBUTTON=yes
7257 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7258 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7259 DEFAULT_wxUSE_CARET=yes
7260 DEFAULT_wxUSE_COMBOBOX=yes
7261 DEFAULT_wxUSE_CHECKBOX=yes
7262 DEFAULT_wxUSE_CHECKLISTBOX=yes
7263 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7264 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7265 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7266 DEFAULT_wxUSE_GAUGE=yes
7267 DEFAULT_wxUSE_GRID=yes
7268 DEFAULT_wxUSE_IMAGLIST=yes
7269 DEFAULT_wxUSE_LISTBOOK=yes
7270 DEFAULT_wxUSE_LISTBOX=yes
7271 DEFAULT_wxUSE_LISTCTRL=yes
7272 DEFAULT_wxUSE_NOTEBOOK=yes
7273 DEFAULT_wxUSE_RADIOBOX=yes
7274 DEFAULT_wxUSE_RADIOBTN=yes
7275 DEFAULT_wxUSE_SASH=yes
7276 DEFAULT_wxUSE_SCROLLBAR=yes
7277 DEFAULT_wxUSE_SLIDER=yes
7278 DEFAULT_wxUSE_SPINBTN=yes
7279 DEFAULT_wxUSE_SPINCTRL=yes
7280 DEFAULT_wxUSE_SPLITTER=yes
7281 DEFAULT_wxUSE_STATBMP=yes
7282 DEFAULT_wxUSE_STATBOX=yes
7283 DEFAULT_wxUSE_STATLINE=yes
7284 DEFAULT_wxUSE_STATUSBAR=yes
7285 DEFAULT_wxUSE_TAB_DIALOG=yes
7286 DEFAULT_wxUSE_TOGGLEBTN=yes
7287 DEFAULT_wxUSE_TOOLBAR=yes
7288 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7289 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7290 DEFAULT_wxUSE_TOOLTIPS=yes
7291 DEFAULT_wxUSE_TREECTRL=yes
7292 DEFAULT_wxUSE_POPUPWIN=yes
7293 DEFAULT_wxUSE_TIPWINDOW=yes
7294elif test "$wxUSE_CONTROLS" = "no"; then
7295 DEFAULT_wxUSE_ACCEL=no
7296 DEFAULT_wxUSE_BMPBUTTON=no
7297 DEFAULT_wxUSE_BUTTON=no
7298 DEFAULT_wxUSE_CALCTRL=no
7299 DEFAULT_wxUSE_CARET=no
7300 DEFAULT_wxUSE_COMBOBOX=no
7301 DEFAULT_wxUSE_CHECKBOX=no
7302 DEFAULT_wxUSE_CHECKLISTBOX=no
7303 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7304 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7305 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7306 DEFAULT_wxUSE_GAUGE=no
7307 DEFAULT_wxUSE_GRID=no
7308 DEFAULT_wxUSE_IMAGLIST=no
7309 DEFAULT_wxUSE_LISTBOOK=no
7310 DEFAULT_wxUSE_LISTBOX=no
7311 DEFAULT_wxUSE_LISTCTRL=no
7312 DEFAULT_wxUSE_NOTEBOOK=no
7313 DEFAULT_wxUSE_RADIOBOX=no
7314 DEFAULT_wxUSE_RADIOBTN=no
7315 DEFAULT_wxUSE_SASH=no
7316 DEFAULT_wxUSE_SCROLLBAR=no
7317 DEFAULT_wxUSE_SLIDER=no
7318 DEFAULT_wxUSE_SPINBTN=no
7319 DEFAULT_wxUSE_SPINCTRL=no
7320 DEFAULT_wxUSE_SPLITTER=no
7321 DEFAULT_wxUSE_STATBMP=no
7322 DEFAULT_wxUSE_STATBOX=no
7323 DEFAULT_wxUSE_STATLINE=no
7324 DEFAULT_wxUSE_STATUSBAR=no
7325 DEFAULT_wxUSE_TAB_DIALOG=no
7326 DEFAULT_wxUSE_TOGGLEBTN=no
7327 DEFAULT_wxUSE_TOOLBAR=no
7328 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7329 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7330 DEFAULT_wxUSE_TOOLTIPS=no
7331 DEFAULT_wxUSE_TREECTRL=no
7332 DEFAULT_wxUSE_POPUPWIN=no
7333 DEFAULT_wxUSE_TIPWINDOW=no
7334fi
7335
a848cd7e
SC
7336
7337 enablestring=
7338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7339echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7340 no_cache=0
7341 # Check whether --enable-accel or --disable-accel was given.
7342if test "${enable_accel+set}" = set; then
7343 enableval="$enable_accel"
7344
7345 if test "$enableval" = yes; then
7346 ac_cv_use_accel='wxUSE_ACCEL=yes'
7347 else
7348 ac_cv_use_accel='wxUSE_ACCEL=no'
7349 fi
7350
7351else
7352
7353 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7354 if test "x$LINE" != x ; then
7355 eval "DEFAULT_$LINE"
7356 else
7357 no_cache=1
7358 fi
7359
7360 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7361
7362fi;
7363
7364 eval "$ac_cv_use_accel"
7365 if test "$no_cache" != 1; then
7366 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7367 fi
7368
7369 if test "$wxUSE_ACCEL" = yes; then
7370 echo "$as_me:$LINENO: result: yes" >&5
7371echo "${ECHO_T}yes" >&6
7372 else
7373 echo "$as_me:$LINENO: result: no" >&5
7374echo "${ECHO_T}no" >&6
7375 fi
7376
7377
7378 enablestring=
7379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7380echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7381 no_cache=0
7382 # Check whether --enable-button or --disable-button was given.
7383if test "${enable_button+set}" = set; then
7384 enableval="$enable_button"
7385
7386 if test "$enableval" = yes; then
7387 ac_cv_use_button='wxUSE_BUTTON=yes'
7388 else
7389 ac_cv_use_button='wxUSE_BUTTON=no'
7390 fi
7391
7392else
7393
7394 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7395 if test "x$LINE" != x ; then
7396 eval "DEFAULT_$LINE"
7397 else
7398 no_cache=1
7399 fi
7400
7401 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7402
7403fi;
7404
7405 eval "$ac_cv_use_button"
7406 if test "$no_cache" != 1; then
7407 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7408 fi
7409
7410 if test "$wxUSE_BUTTON" = yes; then
7411 echo "$as_me:$LINENO: result: yes" >&5
7412echo "${ECHO_T}yes" >&6
7413 else
7414 echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6
7416 fi
7417
7418
7419 enablestring=
7420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7421echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7422 no_cache=0
7423 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7424if test "${enable_bmpbutton+set}" = set; then
7425 enableval="$enable_bmpbutton"
7426
7427 if test "$enableval" = yes; then
7428 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7429 else
7430 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7431 fi
7432
7433else
7434
7435 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7436 if test "x$LINE" != x ; then
7437 eval "DEFAULT_$LINE"
7438 else
7439 no_cache=1
7440 fi
7441
7442 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7443
7444fi;
7445
7446 eval "$ac_cv_use_bmpbutton"
7447 if test "$no_cache" != 1; then
7448 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7449 fi
7450
7451 if test "$wxUSE_BMPBUTTON" = yes; then
7452 echo "$as_me:$LINENO: result: yes" >&5
7453echo "${ECHO_T}yes" >&6
7454 else
7455 echo "$as_me:$LINENO: result: no" >&5
7456echo "${ECHO_T}no" >&6
7457 fi
7458
7459
7460 enablestring=
7461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7462echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7463 no_cache=0
7464 # Check whether --enable-calendar or --disable-calendar was given.
7465if test "${enable_calendar+set}" = set; then
7466 enableval="$enable_calendar"
7467
7468 if test "$enableval" = yes; then
7469 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7470 else
7471 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7472 fi
7473
7474else
7475
7476 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7477 if test "x$LINE" != x ; then
7478 eval "DEFAULT_$LINE"
7479 else
7480 no_cache=1
7481 fi
7482
7483 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7484
7485fi;
7486
7487 eval "$ac_cv_use_calendar"
7488 if test "$no_cache" != 1; then
7489 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7490 fi
7491
7492 if test "$wxUSE_CALCTRL" = yes; then
7493 echo "$as_me:$LINENO: result: yes" >&5
7494echo "${ECHO_T}yes" >&6
7495 else
7496 echo "$as_me:$LINENO: result: no" >&5
7497echo "${ECHO_T}no" >&6
7498 fi
7499
7500
7501 enablestring=
7502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7503echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7504 no_cache=0
7505 # Check whether --enable-caret or --disable-caret was given.
7506if test "${enable_caret+set}" = set; then
7507 enableval="$enable_caret"
7508
7509 if test "$enableval" = yes; then
7510 ac_cv_use_caret='wxUSE_CARET=yes'
7511 else
7512 ac_cv_use_caret='wxUSE_CARET=no'
7513 fi
7514
7515else
7516
7517 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7518 if test "x$LINE" != x ; then
7519 eval "DEFAULT_$LINE"
7520 else
7521 no_cache=1
7522 fi
7523
7524 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7525
7526fi;
7527
7528 eval "$ac_cv_use_caret"
7529 if test "$no_cache" != 1; then
7530 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7531 fi
7532
7533 if test "$wxUSE_CARET" = yes; then
7534 echo "$as_me:$LINENO: result: yes" >&5
7535echo "${ECHO_T}yes" >&6
7536 else
7537 echo "$as_me:$LINENO: result: no" >&5
7538echo "${ECHO_T}no" >&6
7539 fi
7540
7541
7542 enablestring=
7543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7544echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7545 no_cache=0
7546 # Check whether --enable-checkbox or --disable-checkbox was given.
7547if test "${enable_checkbox+set}" = set; then
7548 enableval="$enable_checkbox"
7549
7550 if test "$enableval" = yes; then
7551 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7552 else
7553 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7554 fi
7555
7556else
7557
7558 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7559 if test "x$LINE" != x ; then
7560 eval "DEFAULT_$LINE"
7561 else
7562 no_cache=1
7563 fi
7564
7565 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7566
7567fi;
7568
7569 eval "$ac_cv_use_checkbox"
7570 if test "$no_cache" != 1; then
7571 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7572 fi
7573
7574 if test "$wxUSE_CHECKBOX" = yes; then
7575 echo "$as_me:$LINENO: result: yes" >&5
7576echo "${ECHO_T}yes" >&6
7577 else
7578 echo "$as_me:$LINENO: result: no" >&5
7579echo "${ECHO_T}no" >&6
7580 fi
7581
7582
7583 enablestring=
7584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7585echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7586 no_cache=0
7587 # Check whether --enable-checklst or --disable-checklst was given.
7588if test "${enable_checklst+set}" = set; then
7589 enableval="$enable_checklst"
7590
7591 if test "$enableval" = yes; then
7592 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7593 else
7594 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7595 fi
7596
7597else
7598
7599 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7600 if test "x$LINE" != x ; then
7601 eval "DEFAULT_$LINE"
7602 else
7603 no_cache=1
7604 fi
7605
7606 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7607
7608fi;
7609
7610 eval "$ac_cv_use_checklst"
7611 if test "$no_cache" != 1; then
7612 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7613 fi
7614
7615 if test "$wxUSE_CHECKLST" = yes; then
7616 echo "$as_me:$LINENO: result: yes" >&5
7617echo "${ECHO_T}yes" >&6
7618 else
7619 echo "$as_me:$LINENO: result: no" >&5
7620echo "${ECHO_T}no" >&6
7621 fi
7622
7623
7624 enablestring=
7625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7626echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7627 no_cache=0
7628 # Check whether --enable-choice or --disable-choice was given.
7629if test "${enable_choice+set}" = set; then
7630 enableval="$enable_choice"
7631
7632 if test "$enableval" = yes; then
7633 ac_cv_use_choice='wxUSE_CHOICE=yes'
7634 else
7635 ac_cv_use_choice='wxUSE_CHOICE=no'
7636 fi
7637
7638else
7639
7640 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7641 if test "x$LINE" != x ; then
7642 eval "DEFAULT_$LINE"
7643 else
7644 no_cache=1
7645 fi
7646
7647 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7648
7649fi;
7650
7651 eval "$ac_cv_use_choice"
7652 if test "$no_cache" != 1; then
7653 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7654 fi
7655
7656 if test "$wxUSE_CHOICE" = yes; then
7657 echo "$as_me:$LINENO: result: yes" >&5
7658echo "${ECHO_T}yes" >&6
7659 else
7660 echo "$as_me:$LINENO: result: no" >&5
7661echo "${ECHO_T}no" >&6
7662 fi
7663
7664
92bbdbcd
WS
7665 enablestring=
7666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7667echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7668 no_cache=0
7669 # Check whether --enable-choicebook or --disable-choicebook was given.
7670if test "${enable_choicebook+set}" = set; then
7671 enableval="$enable_choicebook"
7672
7673 if test "$enableval" = yes; then
7674 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7675 else
7676 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7677 fi
7678
7679else
7680
7681 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7682 if test "x$LINE" != x ; then
7683 eval "DEFAULT_$LINE"
7684 else
7685 no_cache=1
7686 fi
7687
7688 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7689
7690fi;
7691
7692 eval "$ac_cv_use_choicebook"
7693 if test "$no_cache" != 1; then
7694 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7695 fi
7696
7697 if test "$wxUSE_CHOICEBOOK" = yes; then
7698 echo "$as_me:$LINENO: result: yes" >&5
7699echo "${ECHO_T}yes" >&6
7700 else
7701 echo "$as_me:$LINENO: result: no" >&5
7702echo "${ECHO_T}no" >&6
7703 fi
7704
7705
a848cd7e
SC
7706 enablestring=
7707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7708echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7709 no_cache=0
7710 # Check whether --enable-combobox or --disable-combobox was given.
7711if test "${enable_combobox+set}" = set; then
7712 enableval="$enable_combobox"
7713
7714 if test "$enableval" = yes; then
7715 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7716 else
7717 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7718 fi
7719
7720else
7721
7722 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7723 if test "x$LINE" != x ; then
7724 eval "DEFAULT_$LINE"
7725 else
7726 no_cache=1
7727 fi
7728
7729 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7730
7731fi;
7732
7733 eval "$ac_cv_use_combobox"
7734 if test "$no_cache" != 1; then
7735 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7736 fi
7737
7738 if test "$wxUSE_COMBOBOX" = yes; then
7739 echo "$as_me:$LINENO: result: yes" >&5
7740echo "${ECHO_T}yes" >&6
7741 else
7742 echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6
7744 fi
7745
7746
da98e9be
VZ
7747 enablestring=
7748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7749echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7750 no_cache=0
7751 # Check whether --enable-datepick or --disable-datepick was given.
7752if test "${enable_datepick+set}" = set; then
7753 enableval="$enable_datepick"
7754
7755 if test "$enableval" = yes; then
7756 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7757 else
7758 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7759 fi
7760
7761else
7762
7763 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7764 if test "x$LINE" != x ; then
7765 eval "DEFAULT_$LINE"
7766 else
7767 no_cache=1
7768 fi
7769
7770 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7771
7772fi;
7773
7774 eval "$ac_cv_use_datepick"
7775 if test "$no_cache" != 1; then
7776 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7777 fi
7778
7779 if test "$wxUSE_DATEPICKCTRL" = yes; then
7780 echo "$as_me:$LINENO: result: yes" >&5
7781echo "${ECHO_T}yes" >&6
7782 else
7783 echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6
7785 fi
7786
7787
a848cd7e
SC
7788 enablestring=
7789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7790echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7791 no_cache=0
7792 # Check whether --enable-display or --disable-display was given.
7793if test "${enable_display+set}" = set; then
7794 enableval="$enable_display"
7795
7796 if test "$enableval" = yes; then
7797 ac_cv_use_display='wxUSE_DISPLAY=yes'
7798 else
7799 ac_cv_use_display='wxUSE_DISPLAY=no'
7800 fi
7801
7802else
7803
7804 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7805 if test "x$LINE" != x ; then
7806 eval "DEFAULT_$LINE"
7807 else
7808 no_cache=1
7809 fi
7810
7811 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7812
7813fi;
7814
7815 eval "$ac_cv_use_display"
7816 if test "$no_cache" != 1; then
7817 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7818 fi
7819
7820 if test "$wxUSE_DISPLAY" = yes; then
7821 echo "$as_me:$LINENO: result: yes" >&5
7822echo "${ECHO_T}yes" >&6
7823 else
7824 echo "$as_me:$LINENO: result: no" >&5
7825echo "${ECHO_T}no" >&6
7826 fi
7827
7828
7829 enablestring=
7830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7831echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7832 no_cache=0
7833 # Check whether --enable-gauge or --disable-gauge was given.
7834if test "${enable_gauge+set}" = set; then
7835 enableval="$enable_gauge"
7836
7837 if test "$enableval" = yes; then
7838 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7839 else
7840 ac_cv_use_gauge='wxUSE_GAUGE=no'
7841 fi
7842
7843else
7844
7845 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7846 if test "x$LINE" != x ; then
7847 eval "DEFAULT_$LINE"
7848 else
7849 no_cache=1
7850 fi
7851
7852 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7853
7854fi;
7855
7856 eval "$ac_cv_use_gauge"
7857 if test "$no_cache" != 1; then
7858 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7859 fi
7860
7861 if test "$wxUSE_GAUGE" = yes; then
7862 echo "$as_me:$LINENO: result: yes" >&5
7863echo "${ECHO_T}yes" >&6
7864 else
7865 echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6
7867 fi
7868
7869
7870 enablestring=
7871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7872echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7873 no_cache=0
7874 # Check whether --enable-grid or --disable-grid was given.
7875if test "${enable_grid+set}" = set; then
7876 enableval="$enable_grid"
7877
7878 if test "$enableval" = yes; then
7879 ac_cv_use_grid='wxUSE_GRID=yes'
7880 else
7881 ac_cv_use_grid='wxUSE_GRID=no'
7882 fi
7883
7884else
7885
7886 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7887 if test "x$LINE" != x ; then
7888 eval "DEFAULT_$LINE"
7889 else
7890 no_cache=1
7891 fi
7892
7893 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7894
7895fi;
7896
7897 eval "$ac_cv_use_grid"
7898 if test "$no_cache" != 1; then
7899 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7900 fi
7901
7902 if test "$wxUSE_GRID" = yes; then
7903 echo "$as_me:$LINENO: result: yes" >&5
7904echo "${ECHO_T}yes" >&6
7905 else
7906 echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
7908 fi
7909
7910
7911 enablestring=
7912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7913echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7914 no_cache=0
7915 # Check whether --enable-imaglist or --disable-imaglist was given.
7916if test "${enable_imaglist+set}" = set; then
7917 enableval="$enable_imaglist"
7918
7919 if test "$enableval" = yes; then
7920 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7921 else
7922 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7923 fi
7924
7925else
7926
7927 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7928 if test "x$LINE" != x ; then
7929 eval "DEFAULT_$LINE"
7930 else
7931 no_cache=1
7932 fi
7933
7934 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7935
7936fi;
7937
7938 eval "$ac_cv_use_imaglist"
7939 if test "$no_cache" != 1; then
7940 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7941 fi
7942
7943 if test "$wxUSE_IMAGLIST" = yes; then
7944 echo "$as_me:$LINENO: result: yes" >&5
7945echo "${ECHO_T}yes" >&6
7946 else
7947 echo "$as_me:$LINENO: result: no" >&5
7948echo "${ECHO_T}no" >&6
7949 fi
7950
7951
7952 enablestring=
7953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7954echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7955 no_cache=0
7956 # Check whether --enable-listbook or --disable-listbook was given.
7957if test "${enable_listbook+set}" = set; then
7958 enableval="$enable_listbook"
7959
7960 if test "$enableval" = yes; then
7961 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7962 else
7963 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7964 fi
7965
7966else
7967
7968 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7969 if test "x$LINE" != x ; then
7970 eval "DEFAULT_$LINE"
7971 else
7972 no_cache=1
7973 fi
7974
7975 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7976
7977fi;
7978
7979 eval "$ac_cv_use_listbook"
7980 if test "$no_cache" != 1; then
7981 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7982 fi
7983
7984 if test "$wxUSE_LISTBOOK" = yes; then
7985 echo "$as_me:$LINENO: result: yes" >&5
7986echo "${ECHO_T}yes" >&6
7987 else
7988 echo "$as_me:$LINENO: result: no" >&5
7989echo "${ECHO_T}no" >&6
7990 fi
7991
7992
7993 enablestring=
7994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7995echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7996 no_cache=0
7997 # Check whether --enable-listbox or --disable-listbox was given.
7998if test "${enable_listbox+set}" = set; then
7999 enableval="$enable_listbox"
8000
8001 if test "$enableval" = yes; then
8002 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8003 else
8004 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8005 fi
8006
8007else
8008
8009 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8010 if test "x$LINE" != x ; then
8011 eval "DEFAULT_$LINE"
8012 else
8013 no_cache=1
8014 fi
8015
8016 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8017
8018fi;
8019
8020 eval "$ac_cv_use_listbox"
8021 if test "$no_cache" != 1; then
8022 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8023 fi
8024
8025 if test "$wxUSE_LISTBOX" = yes; then
8026 echo "$as_me:$LINENO: result: yes" >&5
8027echo "${ECHO_T}yes" >&6
8028 else
8029 echo "$as_me:$LINENO: result: no" >&5
8030echo "${ECHO_T}no" >&6
8031 fi
8032
8033
8034 enablestring=
8035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8036echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8037 no_cache=0
8038 # Check whether --enable-listctrl or --disable-listctrl was given.
8039if test "${enable_listctrl+set}" = set; then
8040 enableval="$enable_listctrl"
8041
8042 if test "$enableval" = yes; then
8043 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8044 else
8045 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8046 fi
8047
8048else
8049
8050 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8051 if test "x$LINE" != x ; then
8052 eval "DEFAULT_$LINE"
8053 else
8054 no_cache=1
8055 fi
8056
8057 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8058
8059fi;
8060
8061 eval "$ac_cv_use_listctrl"
8062 if test "$no_cache" != 1; then
8063 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8064 fi
8065
8066 if test "$wxUSE_LISTCTRL" = yes; then
8067 echo "$as_me:$LINENO: result: yes" >&5
8068echo "${ECHO_T}yes" >&6
8069 else
8070 echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6
8072 fi
8073
8074
8075 enablestring=
8076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8077echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8078 no_cache=0
8079 # Check whether --enable-notebook or --disable-notebook was given.
8080if test "${enable_notebook+set}" = set; then
8081 enableval="$enable_notebook"
8082
8083 if test "$enableval" = yes; then
8084 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8085 else
8086 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8087 fi
8088
8089else
8090
8091 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8092 if test "x$LINE" != x ; then
8093 eval "DEFAULT_$LINE"
8094 else
8095 no_cache=1
8096 fi
8097
8098 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8099
8100fi;
8101
8102 eval "$ac_cv_use_notebook"
8103 if test "$no_cache" != 1; then
8104 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8105 fi
8106
8107 if test "$wxUSE_NOTEBOOK" = yes; then
8108 echo "$as_me:$LINENO: result: yes" >&5
8109echo "${ECHO_T}yes" >&6
8110 else
8111 echo "$as_me:$LINENO: result: no" >&5
8112echo "${ECHO_T}no" >&6
8113 fi
8114
8115
8116 enablestring=
8117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8118echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8119 no_cache=0
8120 # Check whether --enable-radiobox or --disable-radiobox was given.
8121if test "${enable_radiobox+set}" = set; then
8122 enableval="$enable_radiobox"
8123
8124 if test "$enableval" = yes; then
8125 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8126 else
8127 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8128 fi
8129
8130else
8131
8132 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8133 if test "x$LINE" != x ; then
8134 eval "DEFAULT_$LINE"
8135 else
8136 no_cache=1
8137 fi
8138
8139 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8140
8141fi;
8142
8143 eval "$ac_cv_use_radiobox"
8144 if test "$no_cache" != 1; then
8145 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8146 fi
8147
8148 if test "$wxUSE_RADIOBOX" = yes; then
8149 echo "$as_me:$LINENO: result: yes" >&5
8150echo "${ECHO_T}yes" >&6
8151 else
8152 echo "$as_me:$LINENO: result: no" >&5
8153echo "${ECHO_T}no" >&6
8154 fi
8155
8156
8157 enablestring=
8158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8159echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8160 no_cache=0
8161 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8162if test "${enable_radiobtn+set}" = set; then
8163 enableval="$enable_radiobtn"
8164
8165 if test "$enableval" = yes; then
8166 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8167 else
8168 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8169 fi
8170
8171else
8172
8173 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8174 if test "x$LINE" != x ; then
8175 eval "DEFAULT_$LINE"
8176 else
8177 no_cache=1
8178 fi
8179
8180 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8181
8182fi;
8183
8184 eval "$ac_cv_use_radiobtn"
8185 if test "$no_cache" != 1; then
8186 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8187 fi
8188
8189 if test "$wxUSE_RADIOBTN" = yes; then
8190 echo "$as_me:$LINENO: result: yes" >&5
8191echo "${ECHO_T}yes" >&6
8192 else
8193 echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6
8195 fi
8196
8197
8198 enablestring=
8199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8200echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8201 no_cache=0
8202 # Check whether --enable-sash or --disable-sash was given.
8203if test "${enable_sash+set}" = set; then
8204 enableval="$enable_sash"
8205
8206 if test "$enableval" = yes; then
8207 ac_cv_use_sash='wxUSE_SASH=yes'
8208 else
8209 ac_cv_use_sash='wxUSE_SASH=no'
8210 fi
8211
8212else
8213
8214 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8215 if test "x$LINE" != x ; then
8216 eval "DEFAULT_$LINE"
8217 else
8218 no_cache=1
8219 fi
8220
8221 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8222
8223fi;
8224
8225 eval "$ac_cv_use_sash"
8226 if test "$no_cache" != 1; then
8227 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8228 fi
8229
8230 if test "$wxUSE_SASH" = yes; then
8231 echo "$as_me:$LINENO: result: yes" >&5
8232echo "${ECHO_T}yes" >&6
8233 else
8234 echo "$as_me:$LINENO: result: no" >&5
8235echo "${ECHO_T}no" >&6
8236 fi
8237
8238
8239 enablestring=
8240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8241echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8242 no_cache=0
8243 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8244if test "${enable_scrollbar+set}" = set; then
8245 enableval="$enable_scrollbar"
8246
8247 if test "$enableval" = yes; then
8248 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8249 else
8250 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8251 fi
8252
8253else
8254
8255 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8256 if test "x$LINE" != x ; then
8257 eval "DEFAULT_$LINE"
8258 else
8259 no_cache=1
8260 fi
8261
8262 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8263
8264fi;
8265
8266 eval "$ac_cv_use_scrollbar"
8267 if test "$no_cache" != 1; then
8268 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8269 fi
8270
8271 if test "$wxUSE_SCROLLBAR" = yes; then
8272 echo "$as_me:$LINENO: result: yes" >&5
8273echo "${ECHO_T}yes" >&6
8274 else
8275 echo "$as_me:$LINENO: result: no" >&5
8276echo "${ECHO_T}no" >&6
8277 fi
8278
8279
8280 enablestring=
8281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8282echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8283 no_cache=0
8284 # Check whether --enable-slider or --disable-slider was given.
8285if test "${enable_slider+set}" = set; then
8286 enableval="$enable_slider"
8287
8288 if test "$enableval" = yes; then
8289 ac_cv_use_slider='wxUSE_SLIDER=yes'
8290 else
8291 ac_cv_use_slider='wxUSE_SLIDER=no'
8292 fi
8293
8294else
8295
8296 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8297 if test "x$LINE" != x ; then
8298 eval "DEFAULT_$LINE"
8299 else
8300 no_cache=1
8301 fi
8302
8303 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8304
8305fi;
8306
8307 eval "$ac_cv_use_slider"
8308 if test "$no_cache" != 1; then
8309 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8310 fi
8311
8312 if test "$wxUSE_SLIDER" = yes; then
8313 echo "$as_me:$LINENO: result: yes" >&5
8314echo "${ECHO_T}yes" >&6
8315 else
8316 echo "$as_me:$LINENO: result: no" >&5
8317echo "${ECHO_T}no" >&6
8318 fi
8319
8320
8321 enablestring=
8322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8323echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8324 no_cache=0
8325 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8326if test "${enable_spinbtn+set}" = set; then
8327 enableval="$enable_spinbtn"
8328
8329 if test "$enableval" = yes; then
8330 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8331 else
8332 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8333 fi
8334
8335else
8336
8337 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8338 if test "x$LINE" != x ; then
8339 eval "DEFAULT_$LINE"
8340 else
8341 no_cache=1
8342 fi
8343
8344 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8345
8346fi;
8347
8348 eval "$ac_cv_use_spinbtn"
8349 if test "$no_cache" != 1; then
8350 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8351 fi
8352
8353 if test "$wxUSE_SPINBTN" = yes; then
8354 echo "$as_me:$LINENO: result: yes" >&5
8355echo "${ECHO_T}yes" >&6
8356 else
8357 echo "$as_me:$LINENO: result: no" >&5
8358echo "${ECHO_T}no" >&6
8359 fi
8360
8361
8362 enablestring=
8363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8364echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8365 no_cache=0
8366 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8367if test "${enable_spinctrl+set}" = set; then
8368 enableval="$enable_spinctrl"
8369
8370 if test "$enableval" = yes; then
8371 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8372 else
8373 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8374 fi
8375
8376else
8377
8378 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8379 if test "x$LINE" != x ; then
8380 eval "DEFAULT_$LINE"
8381 else
8382 no_cache=1
8383 fi
8384
8385 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8386
8387fi;
8388
8389 eval "$ac_cv_use_spinctrl"
8390 if test "$no_cache" != 1; then
8391 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8392 fi
8393
8394 if test "$wxUSE_SPINCTRL" = yes; then
8395 echo "$as_me:$LINENO: result: yes" >&5
8396echo "${ECHO_T}yes" >&6
8397 else
8398 echo "$as_me:$LINENO: result: no" >&5
8399echo "${ECHO_T}no" >&6
8400 fi
8401
8402
8403 enablestring=
8404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8405echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8406 no_cache=0
8407 # Check whether --enable-splitter or --disable-splitter was given.
8408if test "${enable_splitter+set}" = set; then
8409 enableval="$enable_splitter"
8410
8411 if test "$enableval" = yes; then
8412 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8413 else
8414 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8415 fi
8416
8417else
8418
8419 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8420 if test "x$LINE" != x ; then
8421 eval "DEFAULT_$LINE"
8422 else
8423 no_cache=1
8424 fi
8425
8426 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8427
8428fi;
8429
8430 eval "$ac_cv_use_splitter"
8431 if test "$no_cache" != 1; then
8432 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8433 fi
8434
8435 if test "$wxUSE_SPLITTER" = yes; then
8436 echo "$as_me:$LINENO: result: yes" >&5
8437echo "${ECHO_T}yes" >&6
8438 else
8439 echo "$as_me:$LINENO: result: no" >&5
8440echo "${ECHO_T}no" >&6
8441 fi
8442
8443
8444 enablestring=
8445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8446echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8447 no_cache=0
8448 # Check whether --enable-statbmp or --disable-statbmp was given.
8449if test "${enable_statbmp+set}" = set; then
8450 enableval="$enable_statbmp"
8451
8452 if test "$enableval" = yes; then
8453 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8454 else
8455 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8456 fi
8457
8458else
8459
8460 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8461 if test "x$LINE" != x ; then
8462 eval "DEFAULT_$LINE"
8463 else
8464 no_cache=1
8465 fi
8466
8467 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8468
8469fi;
8470
8471 eval "$ac_cv_use_statbmp"
8472 if test "$no_cache" != 1; then
8473 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8474 fi
8475
8476 if test "$wxUSE_STATBMP" = yes; then
8477 echo "$as_me:$LINENO: result: yes" >&5
8478echo "${ECHO_T}yes" >&6
8479 else
8480 echo "$as_me:$LINENO: result: no" >&5
8481echo "${ECHO_T}no" >&6
8482 fi
8483
8484
8485 enablestring=
8486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8487echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8488 no_cache=0
8489 # Check whether --enable-statbox or --disable-statbox was given.
8490if test "${enable_statbox+set}" = set; then
8491 enableval="$enable_statbox"
8492
8493 if test "$enableval" = yes; then
8494 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8495 else
8496 ac_cv_use_statbox='wxUSE_STATBOX=no'
8497 fi
8498
8499else
8500
8501 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8502 if test "x$LINE" != x ; then
8503 eval "DEFAULT_$LINE"
8504 else
8505 no_cache=1
8506 fi
8507
8508 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8509
8510fi;
8511
8512 eval "$ac_cv_use_statbox"
8513 if test "$no_cache" != 1; then
8514 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8515 fi
8516
8517 if test "$wxUSE_STATBOX" = yes; then
8518 echo "$as_me:$LINENO: result: yes" >&5
8519echo "${ECHO_T}yes" >&6
8520 else
8521 echo "$as_me:$LINENO: result: no" >&5
8522echo "${ECHO_T}no" >&6
8523 fi
8524
8525
8526 enablestring=
8527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8528echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8529 no_cache=0
8530 # Check whether --enable-statline or --disable-statline was given.
8531if test "${enable_statline+set}" = set; then
8532 enableval="$enable_statline"
8533
8534 if test "$enableval" = yes; then
8535 ac_cv_use_statline='wxUSE_STATLINE=yes'
8536 else
8537 ac_cv_use_statline='wxUSE_STATLINE=no'
8538 fi
8539
8540else
8541
8542 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8543 if test "x$LINE" != x ; then
8544 eval "DEFAULT_$LINE"
8545 else
8546 no_cache=1
8547 fi
8548
8549 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8550
8551fi;
8552
8553 eval "$ac_cv_use_statline"
8554 if test "$no_cache" != 1; then
8555 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8556 fi
8557
8558 if test "$wxUSE_STATLINE" = yes; then
8559 echo "$as_me:$LINENO: result: yes" >&5
8560echo "${ECHO_T}yes" >&6
8561 else
8562 echo "$as_me:$LINENO: result: no" >&5
8563echo "${ECHO_T}no" >&6
8564 fi
8565
8566
8567 enablestring=
8568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8569echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8570 no_cache=0
8571 # Check whether --enable-stattext or --disable-stattext was given.
8572if test "${enable_stattext+set}" = set; then
8573 enableval="$enable_stattext"
8574
8575 if test "$enableval" = yes; then
8576 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8577 else
8578 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8579 fi
8580
8581else
8582
8583 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8584 if test "x$LINE" != x ; then
8585 eval "DEFAULT_$LINE"
8586 else
8587 no_cache=1
8588 fi
8589
8590 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8591
8592fi;
8593
8594 eval "$ac_cv_use_stattext"
8595 if test "$no_cache" != 1; then
8596 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8597 fi
8598
8599 if test "$wxUSE_STATTEXT" = yes; then
8600 echo "$as_me:$LINENO: result: yes" >&5
8601echo "${ECHO_T}yes" >&6
8602 else
8603 echo "$as_me:$LINENO: result: no" >&5
8604echo "${ECHO_T}no" >&6
8605 fi
8606
8607
8608 enablestring=
8609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8610echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8611 no_cache=0
8612 # Check whether --enable-statusbar or --disable-statusbar was given.
8613if test "${enable_statusbar+set}" = set; then
8614 enableval="$enable_statusbar"
8615
8616 if test "$enableval" = yes; then
8617 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8618 else
8619 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8620 fi
8621
8622else
8623
8624 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8625 if test "x$LINE" != x ; then
8626 eval "DEFAULT_$LINE"
8627 else
8628 no_cache=1
8629 fi
8630
8631 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8632
8633fi;
8634
8635 eval "$ac_cv_use_statusbar"
8636 if test "$no_cache" != 1; then
8637 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8638 fi
8639
8640 if test "$wxUSE_STATUSBAR" = yes; then
8641 echo "$as_me:$LINENO: result: yes" >&5
8642echo "${ECHO_T}yes" >&6
8643 else
8644 echo "$as_me:$LINENO: result: no" >&5
8645echo "${ECHO_T}no" >&6
8646 fi
8647
8648
8649 enablestring=
8650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8651echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8652 no_cache=0
8653 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8654if test "${enable_tabdialog+set}" = set; then
8655 enableval="$enable_tabdialog"
8656
8657 if test "$enableval" = yes; then
8658 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8659 else
8660 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8661 fi
8662
8663else
8664
8665 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8666 if test "x$LINE" != x ; then
8667 eval "DEFAULT_$LINE"
8668 else
8669 no_cache=1
8670 fi
8671
8672 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8673
8674fi;
8675
8676 eval "$ac_cv_use_tabdialog"
8677 if test "$no_cache" != 1; then
8678 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8679 fi
8680
8681 if test "$wxUSE_TABDIALOG" = yes; then
8682 echo "$as_me:$LINENO: result: yes" >&5
8683echo "${ECHO_T}yes" >&6
8684 else
8685 echo "$as_me:$LINENO: result: no" >&5
8686echo "${ECHO_T}no" >&6
8687 fi
8688
8689
8690 enablestring=
8691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8692echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8693 no_cache=0
8694 # Check whether --enable-textctrl or --disable-textctrl was given.
8695if test "${enable_textctrl+set}" = set; then
8696 enableval="$enable_textctrl"
8697
8698 if test "$enableval" = yes; then
8699 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8700 else
8701 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8702 fi
8703
8704else
8705
8706 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8707 if test "x$LINE" != x ; then
8708 eval "DEFAULT_$LINE"
8709 else
8710 no_cache=1
8711 fi
8712
8713 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8714
8715fi;
8716
8717 eval "$ac_cv_use_textctrl"
8718 if test "$no_cache" != 1; then
8719 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8720 fi
8721
8722 if test "$wxUSE_TEXTCTRL" = yes; then
8723 echo "$as_me:$LINENO: result: yes" >&5
8724echo "${ECHO_T}yes" >&6
8725 else
8726 echo "$as_me:$LINENO: result: no" >&5
8727echo "${ECHO_T}no" >&6
8728 fi
8729
8730
8731 enablestring=
8732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8733echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8734 no_cache=0
8735 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8736if test "${enable_togglebtn+set}" = set; then
8737 enableval="$enable_togglebtn"
8738
8739 if test "$enableval" = yes; then
8740 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8741 else
8742 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8743 fi
8744
8745else
8746
8747 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8748 if test "x$LINE" != x ; then
8749 eval "DEFAULT_$LINE"
8750 else
8751 no_cache=1
8752 fi
8753
8754 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8755
8756fi;
8757
8758 eval "$ac_cv_use_togglebtn"
8759 if test "$no_cache" != 1; then
8760 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8761 fi
8762
8763 if test "$wxUSE_TOGGLEBTN" = yes; then
8764 echo "$as_me:$LINENO: result: yes" >&5
8765echo "${ECHO_T}yes" >&6
8766 else
8767 echo "$as_me:$LINENO: result: no" >&5
8768echo "${ECHO_T}no" >&6
8769 fi
8770
8771
8772 enablestring=
8773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8774echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8775 no_cache=0
8776 # Check whether --enable-toolbar or --disable-toolbar was given.
8777if test "${enable_toolbar+set}" = set; then
8778 enableval="$enable_toolbar"
8779
8780 if test "$enableval" = yes; then
8781 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8782 else
8783 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8784 fi
8785
8786else
8787
8788 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8789 if test "x$LINE" != x ; then
8790 eval "DEFAULT_$LINE"
8791 else
8792 no_cache=1
8793 fi
8794
8795 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8796
8797fi;
8798
8799 eval "$ac_cv_use_toolbar"
8800 if test "$no_cache" != 1; then
8801 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8802 fi
8803
8804 if test "$wxUSE_TOOLBAR" = yes; then
8805 echo "$as_me:$LINENO: result: yes" >&5
8806echo "${ECHO_T}yes" >&6
8807 else
8808 echo "$as_me:$LINENO: result: no" >&5
8809echo "${ECHO_T}no" >&6
8810 fi
8811
8812
8813 enablestring=
8814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8815echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8816 no_cache=0
8817 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8818if test "${enable_tbarnative+set}" = set; then
8819 enableval="$enable_tbarnative"
8820
8821 if test "$enableval" = yes; then
8822 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8823 else
8824 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8825 fi
8826
8827else
8828
8829 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8830 if test "x$LINE" != x ; then
8831 eval "DEFAULT_$LINE"
8832 else
8833 no_cache=1
8834 fi
8835
8836 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8837
8838fi;
8839
8840 eval "$ac_cv_use_tbarnative"
8841 if test "$no_cache" != 1; then
8842 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8843 fi
8844
8845 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8846 echo "$as_me:$LINENO: result: yes" >&5
8847echo "${ECHO_T}yes" >&6
8848 else
8849 echo "$as_me:$LINENO: result: no" >&5
8850echo "${ECHO_T}no" >&6
8851 fi
8852
8853
8854 enablestring=
8855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8856echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8857 no_cache=0
8858 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8859if test "${enable_tbarsmpl+set}" = set; then
8860 enableval="$enable_tbarsmpl"
8861
8862 if test "$enableval" = yes; then
8863 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8864 else
8865 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8866 fi
8867
8868else
8869
8870 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8871 if test "x$LINE" != x ; then
8872 eval "DEFAULT_$LINE"
8873 else
8874 no_cache=1
8875 fi
8876
8877 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8878
8879fi;
8880
8881 eval "$ac_cv_use_tbarsmpl"
8882 if test "$no_cache" != 1; then
8883 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8884 fi
8885
8886 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8887 echo "$as_me:$LINENO: result: yes" >&5
8888echo "${ECHO_T}yes" >&6
8889 else
8890 echo "$as_me:$LINENO: result: no" >&5
8891echo "${ECHO_T}no" >&6
8892 fi
8893
8894
8895 enablestring=
8896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8897echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8898 no_cache=0
8899 # Check whether --enable-treectrl or --disable-treectrl was given.
8900if test "${enable_treectrl+set}" = set; then
8901 enableval="$enable_treectrl"
8902
8903 if test "$enableval" = yes; then
8904 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8905 else
8906 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8907 fi
8908
8909else
8910
8911 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8912 if test "x$LINE" != x ; then
8913 eval "DEFAULT_$LINE"
8914 else
8915 no_cache=1
8916 fi
8917
8918 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8919
8920fi;
8921
8922 eval "$ac_cv_use_treectrl"
8923 if test "$no_cache" != 1; then
8924 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8925 fi
8926
8927 if test "$wxUSE_TREECTRL" = yes; then
8928 echo "$as_me:$LINENO: result: yes" >&5
8929echo "${ECHO_T}yes" >&6
8930 else
8931 echo "$as_me:$LINENO: result: no" >&5
8932echo "${ECHO_T}no" >&6
8933 fi
8934
8935
8936 enablestring=
8937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8938echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8939 no_cache=0
8940 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8941if test "${enable_tipwindow+set}" = set; then
8942 enableval="$enable_tipwindow"
8943
8944 if test "$enableval" = yes; then
8945 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8946 else
8947 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8948 fi
8949
8950else
8951
8952 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8953 if test "x$LINE" != x ; then
8954 eval "DEFAULT_$LINE"
8955 else
8956 no_cache=1
8957 fi
8958
8959 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8960
8961fi;
8962
8963 eval "$ac_cv_use_tipwindow"
8964 if test "$no_cache" != 1; then
8965 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8966 fi
8967
8968 if test "$wxUSE_TIPWINDOW" = yes; then
8969 echo "$as_me:$LINENO: result: yes" >&5
8970echo "${ECHO_T}yes" >&6
8971 else
8972 echo "$as_me:$LINENO: result: no" >&5
8973echo "${ECHO_T}no" >&6
8974 fi
8975
8976
8977 enablestring=
8978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8979echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8980 no_cache=0
8981 # Check whether --enable-popupwin or --disable-popupwin was given.
8982if test "${enable_popupwin+set}" = set; then
8983 enableval="$enable_popupwin"
8984
8985 if test "$enableval" = yes; then
8986 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8987 else
8988 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8989 fi
8990
8991else
8992
8993 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8994 if test "x$LINE" != x ; then
8995 eval "DEFAULT_$LINE"
8996 else
8997 no_cache=1
8998 fi
8999
9000 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9001
9002fi;
9003
9004 eval "$ac_cv_use_popupwin"
9005 if test "$no_cache" != 1; then
9006 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9007 fi
9008
9009 if test "$wxUSE_POPUPWIN" = yes; then
9010 echo "$as_me:$LINENO: result: yes" >&5
9011echo "${ECHO_T}yes" >&6
9012 else
9013 echo "$as_me:$LINENO: result: no" >&5
9014echo "${ECHO_T}no" >&6
9015 fi
9016
9017
9018
9019
9020 enablestring=
9021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9022echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9023 no_cache=0
9024 # Check whether --enable-commondlg or --disable-commondlg was given.
9025if test "${enable_commondlg+set}" = set; then
9026 enableval="$enable_commondlg"
9027
9028 if test "$enableval" = yes; then
9029 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9030 else
9031 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9032 fi
9033
9034else
9035
9036 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9037 if test "x$LINE" != x ; then
9038 eval "DEFAULT_$LINE"
9039 else
9040 no_cache=1
9041 fi
9042
9043 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9044
9045fi;
9046
9047 eval "$ac_cv_use_commondlg"
9048 if test "$no_cache" != 1; then
9049 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9050 fi
9051
9052 if test "$wxUSE_COMMONDLGS" = yes; then
9053 echo "$as_me:$LINENO: result: yes" >&5
9054echo "${ECHO_T}yes" >&6
9055 else
9056 echo "$as_me:$LINENO: result: no" >&5
9057echo "${ECHO_T}no" >&6
9058 fi
9059
9060
9061 enablestring=
9062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9063echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9064 no_cache=0
9065 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9066if test "${enable_choicedlg+set}" = set; then
9067 enableval="$enable_choicedlg"
9068
9069 if test "$enableval" = yes; then
9070 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9071 else
9072 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9073 fi
9074
9075else
9076
9077 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9078 if test "x$LINE" != x ; then
9079 eval "DEFAULT_$LINE"
9080 else
9081 no_cache=1
9082 fi
9083
9084 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9085
9086fi;
9087
9088 eval "$ac_cv_use_choicedlg"
9089 if test "$no_cache" != 1; then
9090 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9091 fi
9092
9093 if test "$wxUSE_CHOICEDLG" = yes; then
9094 echo "$as_me:$LINENO: result: yes" >&5
9095echo "${ECHO_T}yes" >&6
9096 else
9097 echo "$as_me:$LINENO: result: no" >&5
9098echo "${ECHO_T}no" >&6
9099 fi
9100
9101
9102 enablestring=
9103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9104echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9105 no_cache=0
9106 # Check whether --enable-coldlg or --disable-coldlg was given.
9107if test "${enable_coldlg+set}" = set; then
9108 enableval="$enable_coldlg"
9109
9110 if test "$enableval" = yes; then
9111 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9112 else
9113 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9114 fi
9115
9116else
9117
9118 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9119 if test "x$LINE" != x ; then
9120 eval "DEFAULT_$LINE"
9121 else
9122 no_cache=1
9123 fi
9124
9125 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9126
9127fi;
9128
9129 eval "$ac_cv_use_coldlg"
9130 if test "$no_cache" != 1; then
9131 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9132 fi
9133
9134 if test "$wxUSE_COLOURDLG" = yes; then
9135 echo "$as_me:$LINENO: result: yes" >&5
9136echo "${ECHO_T}yes" >&6
9137 else
9138 echo "$as_me:$LINENO: result: no" >&5
9139echo "${ECHO_T}no" >&6
9140 fi
9141
9142
9143 enablestring=
9144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9145echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9146 no_cache=0
9147 # Check whether --enable-filedlg or --disable-filedlg was given.
9148if test "${enable_filedlg+set}" = set; then
9149 enableval="$enable_filedlg"
9150
9151 if test "$enableval" = yes; then
9152 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9153 else
9154 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9155 fi
9156
9157else
9158
9159 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9160 if test "x$LINE" != x ; then
9161 eval "DEFAULT_$LINE"
9162 else
9163 no_cache=1
9164 fi
9165
9166 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9167
9168fi;
9169
9170 eval "$ac_cv_use_filedlg"
9171 if test "$no_cache" != 1; then
9172 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9173 fi
9174
9175 if test "$wxUSE_FILEDLG" = yes; then
9176 echo "$as_me:$LINENO: result: yes" >&5
9177echo "${ECHO_T}yes" >&6
9178 else
9179 echo "$as_me:$LINENO: result: no" >&5
9180echo "${ECHO_T}no" >&6
9181 fi
9182
9183
9184 enablestring=
9185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9186echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9187 no_cache=0
9188 # Check whether --enable-finddlg or --disable-finddlg was given.
9189if test "${enable_finddlg+set}" = set; then
9190 enableval="$enable_finddlg"
9191
9192 if test "$enableval" = yes; then
9193 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9194 else
9195 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9196 fi
9197
9198else
9199
9200 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9201 if test "x$LINE" != x ; then
9202 eval "DEFAULT_$LINE"
9203 else
9204 no_cache=1
9205 fi
9206
9207 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9208
9209fi;
9210
9211 eval "$ac_cv_use_finddlg"
9212 if test "$no_cache" != 1; then
9213 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9214 fi
9215
9216 if test "$wxUSE_FINDREPLDLG" = yes; then
9217 echo "$as_me:$LINENO: result: yes" >&5
9218echo "${ECHO_T}yes" >&6
9219 else
9220 echo "$as_me:$LINENO: result: no" >&5
9221echo "${ECHO_T}no" >&6
9222 fi
9223
9224
9225 enablestring=
9226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9227echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9228 no_cache=0
9229 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9230if test "${enable_fontdlg+set}" = set; then
9231 enableval="$enable_fontdlg"
9232
9233 if test "$enableval" = yes; then
9234 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9235 else
9236 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9237 fi
9238
9239else
9240
9241 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9242 if test "x$LINE" != x ; then
9243 eval "DEFAULT_$LINE"
9244 else
9245 no_cache=1
9246 fi
9247
9248 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9249
9250fi;
9251
9252 eval "$ac_cv_use_fontdlg"
9253 if test "$no_cache" != 1; then
9254 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9255 fi
9256
9257 if test "$wxUSE_FONTDLG" = yes; then
9258 echo "$as_me:$LINENO: result: yes" >&5
9259echo "${ECHO_T}yes" >&6
9260 else
9261 echo "$as_me:$LINENO: result: no" >&5
9262echo "${ECHO_T}no" >&6
9263 fi
9264
9265
9266 enablestring=
9267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9268echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9269 no_cache=0
9270 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9271if test "${enable_dirdlg+set}" = set; then
9272 enableval="$enable_dirdlg"
9273
9274 if test "$enableval" = yes; then
9275 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9276 else
9277 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9278 fi
9279
9280else
9281
9282 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9283 if test "x$LINE" != x ; then
9284 eval "DEFAULT_$LINE"
9285 else
9286 no_cache=1
9287 fi
9288
9289 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9290
9291fi;
9292
9293 eval "$ac_cv_use_dirdlg"
9294 if test "$no_cache" != 1; then
9295 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9296 fi
9297
9298 if test "$wxUSE_DIRDLG" = yes; then
9299 echo "$as_me:$LINENO: result: yes" >&5
9300echo "${ECHO_T}yes" >&6
9301 else
9302 echo "$as_me:$LINENO: result: no" >&5
9303echo "${ECHO_T}no" >&6
9304 fi
9305
9306
9307 enablestring=
9308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9309echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9310 no_cache=0
9311 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9312if test "${enable_msgdlg+set}" = set; then
9313 enableval="$enable_msgdlg"
9314
9315 if test "$enableval" = yes; then
9316 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9317 else
9318 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9319 fi
9320
9321else
9322
9323 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9324 if test "x$LINE" != x ; then
9325 eval "DEFAULT_$LINE"
9326 else
9327 no_cache=1
9328 fi
9329
9330 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9331
9332fi;
9333
9334 eval "$ac_cv_use_msgdlg"
9335 if test "$no_cache" != 1; then
9336 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9337 fi
9338
9339 if test "$wxUSE_MSGDLG" = yes; then
9340 echo "$as_me:$LINENO: result: yes" >&5
9341echo "${ECHO_T}yes" >&6
9342 else
9343 echo "$as_me:$LINENO: result: no" >&5
9344echo "${ECHO_T}no" >&6
9345 fi
9346
9347
9348 enablestring=
9349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9350echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9351 no_cache=0
9352 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9353if test "${enable_numberdlg+set}" = set; then
9354 enableval="$enable_numberdlg"
9355
9356 if test "$enableval" = yes; then
9357 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9358 else
9359 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9360 fi
9361
9362else
9363
9364 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9365 if test "x$LINE" != x ; then
9366 eval "DEFAULT_$LINE"
9367 else
9368 no_cache=1
9369 fi
9370
9371 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9372
9373fi;
9374
9375 eval "$ac_cv_use_numberdlg"
9376 if test "$no_cache" != 1; then
9377 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9378 fi
9379
9380 if test "$wxUSE_NUMBERDLG" = yes; then
9381 echo "$as_me:$LINENO: result: yes" >&5
9382echo "${ECHO_T}yes" >&6
9383 else
9384 echo "$as_me:$LINENO: result: no" >&5
9385echo "${ECHO_T}no" >&6
9386 fi
9387
9388
9389 enablestring=
9390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9391echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9392 no_cache=0
9393 # Check whether --enable-splash or --disable-splash was given.
9394if test "${enable_splash+set}" = set; then
9395 enableval="$enable_splash"
9396
9397 if test "$enableval" = yes; then
9398 ac_cv_use_splash='wxUSE_SPLASH=yes'
9399 else
9400 ac_cv_use_splash='wxUSE_SPLASH=no'
9401 fi
9402
9403else
9404
9405 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9406 if test "x$LINE" != x ; then
9407 eval "DEFAULT_$LINE"
9408 else
9409 no_cache=1
9410 fi
9411
9412 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9413
9414fi;
9415
9416 eval "$ac_cv_use_splash"
9417 if test "$no_cache" != 1; then
9418 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9419 fi
9420
9421 if test "$wxUSE_SPLASH" = yes; then
9422 echo "$as_me:$LINENO: result: yes" >&5
9423echo "${ECHO_T}yes" >&6
9424 else
9425 echo "$as_me:$LINENO: result: no" >&5
9426echo "${ECHO_T}no" >&6
9427 fi
9428
9429
9430 enablestring=
9431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9432echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9433 no_cache=0
9434 # Check whether --enable-textdlg or --disable-textdlg was given.
9435if test "${enable_textdlg+set}" = set; then
9436 enableval="$enable_textdlg"
9437
9438 if test "$enableval" = yes; then
9439 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9440 else
9441 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9442 fi
9443
9444else
9445
9446 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9447 if test "x$LINE" != x ; then
9448 eval "DEFAULT_$LINE"
9449 else
9450 no_cache=1
9451 fi
9452
9453 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9454
9455fi;
9456
9457 eval "$ac_cv_use_textdlg"
9458 if test "$no_cache" != 1; then
9459 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9460 fi
9461
9462 if test "$wxUSE_TEXTDLG" = yes; then
9463 echo "$as_me:$LINENO: result: yes" >&5
9464echo "${ECHO_T}yes" >&6
9465 else
9466 echo "$as_me:$LINENO: result: no" >&5
9467echo "${ECHO_T}no" >&6
9468 fi
9469
9470
9471 enablestring=
9472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9473echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9474 no_cache=0
9475 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9476if test "${enable_tipdlg+set}" = set; then
9477 enableval="$enable_tipdlg"
9478
9479 if test "$enableval" = yes; then
9480 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9481 else
9482 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9483 fi
9484
9485else
9486
9487 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9488 if test "x$LINE" != x ; then
9489 eval "DEFAULT_$LINE"
9490 else
9491 no_cache=1
9492 fi
9493
9494 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9495
9496fi;
9497
9498 eval "$ac_cv_use_tipdlg"
9499 if test "$no_cache" != 1; then
9500 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9501 fi
9502
9503 if test "$wxUSE_STARTUP_TIPS" = yes; then
9504 echo "$as_me:$LINENO: result: yes" >&5
9505echo "${ECHO_T}yes" >&6
9506 else
9507 echo "$as_me:$LINENO: result: no" >&5
9508echo "${ECHO_T}no" >&6
9509 fi
9510
9511
9512 enablestring=
9513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9514echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9515 no_cache=0
9516 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9517if test "${enable_progressdlg+set}" = set; then
9518 enableval="$enable_progressdlg"
9519
9520 if test "$enableval" = yes; then
9521 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9522 else
9523 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9524 fi
9525
9526else
9527
9528 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9529 if test "x$LINE" != x ; then
9530 eval "DEFAULT_$LINE"
9531 else
9532 no_cache=1
9533 fi
9534
9535 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9536
9537fi;
9538
9539 eval "$ac_cv_use_progressdlg"
9540 if test "$no_cache" != 1; then
9541 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9542 fi
9543
9544 if test "$wxUSE_PROGRESSDLG" = yes; then
9545 echo "$as_me:$LINENO: result: yes" >&5
9546echo "${ECHO_T}yes" >&6
9547 else
9548 echo "$as_me:$LINENO: result: no" >&5
9549echo "${ECHO_T}no" >&6
9550 fi
9551
9552
9553 enablestring=
9554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9555echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9556 no_cache=0
9557 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9558if test "${enable_wizarddlg+set}" = set; then
9559 enableval="$enable_wizarddlg"
9560
9561 if test "$enableval" = yes; then
9562 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9563 else
9564 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9565 fi
9566
9567else
9568
9569 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9570 if test "x$LINE" != x ; then
9571 eval "DEFAULT_$LINE"
9572 else
9573 no_cache=1
9574 fi
9575
9576 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9577
9578fi;
9579
9580 eval "$ac_cv_use_wizarddlg"
9581 if test "$no_cache" != 1; then
9582 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9583 fi
9584
9585 if test "$wxUSE_WIZARDDLG" = yes; then
9586 echo "$as_me:$LINENO: result: yes" >&5
9587echo "${ECHO_T}yes" >&6
9588 else
9589 echo "$as_me:$LINENO: result: no" >&5
9590echo "${ECHO_T}no" >&6
9591 fi
9592
9593
9594
9595
9596 enablestring=
9597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9598echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9599 no_cache=0
9600 # Check whether --enable-menus or --disable-menus was given.
9601if test "${enable_menus+set}" = set; then
9602 enableval="$enable_menus"
9603
9604 if test "$enableval" = yes; then
9605 ac_cv_use_menus='wxUSE_MENUS=yes'
9606 else
9607 ac_cv_use_menus='wxUSE_MENUS=no'
9608 fi
9609
9610else
9611
9612 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9613 if test "x$LINE" != x ; then
9614 eval "DEFAULT_$LINE"
9615 else
9616 no_cache=1
9617 fi
9618
9619 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9620
9621fi;
9622
9623 eval "$ac_cv_use_menus"
9624 if test "$no_cache" != 1; then
9625 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9626 fi
9627
9628 if test "$wxUSE_MENUS" = yes; then
9629 echo "$as_me:$LINENO: result: yes" >&5
9630echo "${ECHO_T}yes" >&6
9631 else
9632 echo "$as_me:$LINENO: result: no" >&5
9633echo "${ECHO_T}no" >&6
9634 fi
9635
9636
9637 enablestring=
9638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9639echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9640 no_cache=0
9641 # Check whether --enable-miniframe or --disable-miniframe was given.
9642if test "${enable_miniframe+set}" = set; then
9643 enableval="$enable_miniframe"
9644
9645 if test "$enableval" = yes; then
9646 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9647 else
9648 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9649 fi
9650
9651else
9652
9653 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9654 if test "x$LINE" != x ; then
9655 eval "DEFAULT_$LINE"
9656 else
9657 no_cache=1
9658 fi
9659
9660 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9661
9662fi;
9663
9664 eval "$ac_cv_use_miniframe"
9665 if test "$no_cache" != 1; then
9666 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9667 fi
9668
9669 if test "$wxUSE_MINIFRAME" = yes; then
9670 echo "$as_me:$LINENO: result: yes" >&5
9671echo "${ECHO_T}yes" >&6
9672 else
9673 echo "$as_me:$LINENO: result: no" >&5
9674echo "${ECHO_T}no" >&6
9675 fi
9676
9677
9678 enablestring=
9679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9680echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9681 no_cache=0
9682 # Check whether --enable-tooltips or --disable-tooltips was given.
9683if test "${enable_tooltips+set}" = set; then
9684 enableval="$enable_tooltips"
9685
9686 if test "$enableval" = yes; then
9687 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9688 else
9689 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9690 fi
9691
9692else
9693
9694 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9695 if test "x$LINE" != x ; then
9696 eval "DEFAULT_$LINE"
9697 else
9698 no_cache=1
9699 fi
9700
9701 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9702
9703fi;
9704
9705 eval "$ac_cv_use_tooltips"
9706 if test "$no_cache" != 1; then
9707 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9708 fi
9709
9710 if test "$wxUSE_TOOLTIPS" = yes; then
9711 echo "$as_me:$LINENO: result: yes" >&5
9712echo "${ECHO_T}yes" >&6
9713 else
9714 echo "$as_me:$LINENO: result: no" >&5
9715echo "${ECHO_T}no" >&6
9716 fi
9717
9718
9719 enablestring=
9720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9721echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9722 no_cache=0
9723 # Check whether --enable-splines or --disable-splines was given.
9724if test "${enable_splines+set}" = set; then
9725 enableval="$enable_splines"
9726
9727 if test "$enableval" = yes; then
9728 ac_cv_use_splines='wxUSE_SPLINES=yes'
9729 else
9730 ac_cv_use_splines='wxUSE_SPLINES=no'
9731 fi
9732
9733else
9734
9735 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9736 if test "x$LINE" != x ; then
9737 eval "DEFAULT_$LINE"
9738 else
9739 no_cache=1
9740 fi
9741
9742 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9743
9744fi;
9745
9746 eval "$ac_cv_use_splines"
9747 if test "$no_cache" != 1; then
9748 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9749 fi
9750
9751 if test "$wxUSE_SPLINES" = yes; then
9752 echo "$as_me:$LINENO: result: yes" >&5
9753echo "${ECHO_T}yes" >&6
9754 else
9755 echo "$as_me:$LINENO: result: no" >&5
9756echo "${ECHO_T}no" >&6
9757 fi
9758
9759
fbe2ca43
SN
9760 enablestring=
9761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9762echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9763 no_cache=0
9764 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9765if test "${enable_mousewheel+set}" = set; then
9766 enableval="$enable_mousewheel"
9767
9768 if test "$enableval" = yes; then
9769 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9770 else
9771 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9772 fi
9773
9774else
9775
9776 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9777 if test "x$LINE" != x ; then
9778 eval "DEFAULT_$LINE"
9779 else
9780 no_cache=1
9781 fi
9782
9783 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9784
9785fi;
9786
9787 eval "$ac_cv_use_mousewheel"
9788 if test "$no_cache" != 1; then
9789 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9790 fi
9791
9792 if test "$wxUSE_MOUSEWHEEL" = yes; then
9793 echo "$as_me:$LINENO: result: yes" >&5
9794echo "${ECHO_T}yes" >&6
9795 else
9796 echo "$as_me:$LINENO: result: no" >&5
9797echo "${ECHO_T}no" >&6
9798 fi
9799
9800
a848cd7e
SC
9801 enablestring=
9802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9803echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9804 no_cache=0
9805 # Check whether --enable-validators or --disable-validators was given.
9806if test "${enable_validators+set}" = set; then
9807 enableval="$enable_validators"
9808
9809 if test "$enableval" = yes; then
9810 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9811 else
9812 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9813 fi
9814
9815else
9816
9817 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9818 if test "x$LINE" != x ; then
9819 eval "DEFAULT_$LINE"
9820 else
9821 no_cache=1
9822 fi
9823
9824 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9825
9826fi;
9827
9828 eval "$ac_cv_use_validators"
9829 if test "$no_cache" != 1; then
9830 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9831 fi
9832
9833 if test "$wxUSE_VALIDATORS" = yes; then
9834 echo "$as_me:$LINENO: result: yes" >&5
9835echo "${ECHO_T}yes" >&6
9836 else
9837 echo "$as_me:$LINENO: result: no" >&5
9838echo "${ECHO_T}no" >&6
9839 fi
9840
9841
9842 enablestring=
9843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9844echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9845 no_cache=0
9846 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9847if test "${enable_busyinfo+set}" = set; then
9848 enableval="$enable_busyinfo"
9849
9850 if test "$enableval" = yes; then
9851 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9852 else
9853 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9854 fi
9855
9856else
9857
9858 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9859 if test "x$LINE" != x ; then
9860 eval "DEFAULT_$LINE"
9861 else
9862 no_cache=1
9863 fi
9864
9865 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9866
9867fi;
9868
9869 eval "$ac_cv_use_busyinfo"
9870 if test "$no_cache" != 1; then
9871 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9872 fi
9873
9874 if test "$wxUSE_BUSYINFO" = yes; then
9875 echo "$as_me:$LINENO: result: yes" >&5
9876echo "${ECHO_T}yes" >&6
9877 else
9878 echo "$as_me:$LINENO: result: no" >&5
9879echo "${ECHO_T}no" >&6
9880 fi
9881
9882
9883 enablestring=
9884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9885echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9886 no_cache=0
9887 # Check whether --enable-joystick or --disable-joystick was given.
9888if test "${enable_joystick+set}" = set; then
9889 enableval="$enable_joystick"
9890
9891 if test "$enableval" = yes; then
9892 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9893 else
9894 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9895 fi
9896
9897else
9898
9899 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9900 if test "x$LINE" != x ; then
9901 eval "DEFAULT_$LINE"
9902 else
9903 no_cache=1
9904 fi
9905
9906 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9907
9908fi;
9909
9910 eval "$ac_cv_use_joystick"
9911 if test "$no_cache" != 1; then
9912 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9913 fi
9914
9915 if test "$wxUSE_JOYSTICK" = yes; then
9916 echo "$as_me:$LINENO: result: yes" >&5
9917echo "${ECHO_T}yes" >&6
9918 else
9919 echo "$as_me:$LINENO: result: no" >&5
9920echo "${ECHO_T}no" >&6
9921 fi
9922
9923
9924 enablestring=
9925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9926echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9927 no_cache=0
9928 # Check whether --enable-metafile or --disable-metafile was given.
9929if test "${enable_metafile+set}" = set; then
9930 enableval="$enable_metafile"
9931
9932 if test "$enableval" = yes; then
9933 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9934 else
9935 ac_cv_use_metafile='wxUSE_METAFILE=no'
9936 fi
9937
9938else
9939
9940 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9941 if test "x$LINE" != x ; then
9942 eval "DEFAULT_$LINE"
9943 else
9944 no_cache=1
9945 fi
9946
9947 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9948
9949fi;
9950
9951 eval "$ac_cv_use_metafile"
9952 if test "$no_cache" != 1; then
9953 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9954 fi
9955
9956 if test "$wxUSE_METAFILE" = yes; then
9957 echo "$as_me:$LINENO: result: yes" >&5
9958echo "${ECHO_T}yes" >&6
9959 else
9960 echo "$as_me:$LINENO: result: no" >&5
9961echo "${ECHO_T}no" >&6
9962 fi
9963
9964
9965 enablestring=
9966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9967echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9968 no_cache=0
9969 # Check whether --enable-dragimage or --disable-dragimage was given.
9970if test "${enable_dragimage+set}" = set; then
9971 enableval="$enable_dragimage"
9972
9973 if test "$enableval" = yes; then
9974 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9975 else
9976 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9977 fi
9978
9979else
9980
9981 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9982 if test "x$LINE" != x ; then
9983 eval "DEFAULT_$LINE"
9984 else
9985 no_cache=1
9986 fi
9987
9988 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9989
9990fi;
9991
9992 eval "$ac_cv_use_dragimage"
9993 if test "$no_cache" != 1; then
9994 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9995 fi
9996
9997 if test "$wxUSE_DRAGIMAGE" = yes; then
9998 echo "$as_me:$LINENO: result: yes" >&5
9999echo "${ECHO_T}yes" >&6
10000 else
10001 echo "$as_me:$LINENO: result: no" >&5
10002echo "${ECHO_T}no" >&6
10003 fi
10004
10005
10006 enablestring=
10007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10008echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10009 no_cache=0
10010 # Check whether --enable-accessibility or --disable-accessibility was given.
10011if test "${enable_accessibility+set}" = set; then
10012 enableval="$enable_accessibility"
10013
10014 if test "$enableval" = yes; then
10015 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10016 else
10017 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10018 fi
10019
10020else
10021
10022 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10023 if test "x$LINE" != x ; then
10024 eval "DEFAULT_$LINE"
10025 else
10026 no_cache=1
10027 fi
10028
10029 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10030
10031fi;
10032
10033 eval "$ac_cv_use_accessibility"
10034 if test "$no_cache" != 1; then
10035 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10036 fi
10037
10038 if test "$wxUSE_ACCESSIBILITY" = yes; then
10039 echo "$as_me:$LINENO: result: yes" >&5
10040echo "${ECHO_T}yes" >&6
10041 else
10042 echo "$as_me:$LINENO: result: no" >&5
10043echo "${ECHO_T}no" >&6
10044 fi
10045
10046
10047
10048
10049 enablestring=
10050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10051echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10052 no_cache=0
10053 # Check whether --enable-palette or --disable-palette was given.
10054if test "${enable_palette+set}" = set; then
10055 enableval="$enable_palette"
10056
10057 if test "$enableval" = yes; then
10058 ac_cv_use_palette='wxUSE_PALETTE=yes'
10059 else
10060 ac_cv_use_palette='wxUSE_PALETTE=no'
10061 fi
10062
10063else
10064
10065 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10066 if test "x$LINE" != x ; then
10067 eval "DEFAULT_$LINE"
10068 else
10069 no_cache=1
10070 fi
10071
10072 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10073
10074fi;
10075
10076 eval "$ac_cv_use_palette"
10077 if test "$no_cache" != 1; then
10078 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10079 fi
10080
10081 if test "$wxUSE_PALETTE" = yes; then
10082 echo "$as_me:$LINENO: result: yes" >&5
10083echo "${ECHO_T}yes" >&6
10084 else
10085 echo "$as_me:$LINENO: result: no" >&5
10086echo "${ECHO_T}no" >&6
10087 fi
10088
10089
10090 enablestring=
10091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10092echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10093 no_cache=0
10094 # Check whether --enable-image or --disable-image was given.
10095if test "${enable_image+set}" = set; then
10096 enableval="$enable_image"
10097
10098 if test "$enableval" = yes; then
10099 ac_cv_use_image='wxUSE_IMAGE=yes'
10100 else
10101 ac_cv_use_image='wxUSE_IMAGE=no'
10102 fi
10103
10104else
10105
10106 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10107 if test "x$LINE" != x ; then
10108 eval "DEFAULT_$LINE"
10109 else
10110 no_cache=1
10111 fi
10112
10113 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10114
10115fi;
10116
10117 eval "$ac_cv_use_image"
10118 if test "$no_cache" != 1; then
10119 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10120 fi
10121
10122 if test "$wxUSE_IMAGE" = yes; then
10123 echo "$as_me:$LINENO: result: yes" >&5
10124echo "${ECHO_T}yes" >&6
10125 else
10126 echo "$as_me:$LINENO: result: no" >&5
10127echo "${ECHO_T}no" >&6
10128 fi
10129
10130
10131 enablestring=
10132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10133echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10134 no_cache=0
10135 # Check whether --enable-gif or --disable-gif was given.
10136if test "${enable_gif+set}" = set; then
10137 enableval="$enable_gif"
10138
10139 if test "$enableval" = yes; then
10140 ac_cv_use_gif='wxUSE_GIF=yes'
10141 else
10142 ac_cv_use_gif='wxUSE_GIF=no'
10143 fi
10144
10145else
10146
10147 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10148 if test "x$LINE" != x ; then
10149 eval "DEFAULT_$LINE"
10150 else
10151 no_cache=1
10152 fi
10153
10154 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10155
10156fi;
10157
10158 eval "$ac_cv_use_gif"
10159 if test "$no_cache" != 1; then
10160 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10161 fi
10162
10163 if test "$wxUSE_GIF" = yes; then
10164 echo "$as_me:$LINENO: result: yes" >&5
10165echo "${ECHO_T}yes" >&6
10166 else
10167 echo "$as_me:$LINENO: result: no" >&5
10168echo "${ECHO_T}no" >&6
10169 fi
10170
10171
10172 enablestring=
10173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10174echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10175 no_cache=0
10176 # Check whether --enable-pcx or --disable-pcx was given.
10177if test "${enable_pcx+set}" = set; then
10178 enableval="$enable_pcx"
10179
10180 if test "$enableval" = yes; then
10181 ac_cv_use_pcx='wxUSE_PCX=yes'
10182 else
10183 ac_cv_use_pcx='wxUSE_PCX=no'
10184 fi
10185
10186else
10187
10188 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10189 if test "x$LINE" != x ; then
10190 eval "DEFAULT_$LINE"
10191 else
10192 no_cache=1
10193 fi
10194
10195 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10196
10197fi;
10198
10199 eval "$ac_cv_use_pcx"
10200 if test "$no_cache" != 1; then
10201 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10202 fi
10203
10204 if test "$wxUSE_PCX" = yes; then
10205 echo "$as_me:$LINENO: result: yes" >&5
10206echo "${ECHO_T}yes" >&6
10207 else
10208 echo "$as_me:$LINENO: result: no" >&5
10209echo "${ECHO_T}no" >&6
10210 fi
10211
10212
10213 enablestring=
10214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10215echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10216 no_cache=0
10217 # Check whether --enable-iff or --disable-iff was given.
10218if test "${enable_iff+set}" = set; then
10219 enableval="$enable_iff"
10220
10221 if test "$enableval" = yes; then
10222 ac_cv_use_iff='wxUSE_IFF=yes'
10223 else
10224 ac_cv_use_iff='wxUSE_IFF=no'
10225 fi
10226
10227else
10228
10229 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10230 if test "x$LINE" != x ; then
10231 eval "DEFAULT_$LINE"
10232 else
10233 no_cache=1
10234 fi
10235
10236 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10237
10238fi;
10239
10240 eval "$ac_cv_use_iff"
10241 if test "$no_cache" != 1; then
10242 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10243 fi
10244
10245 if test "$wxUSE_IFF" = yes; then
10246 echo "$as_me:$LINENO: result: yes" >&5
10247echo "${ECHO_T}yes" >&6
10248 else
10249 echo "$as_me:$LINENO: result: no" >&5
10250echo "${ECHO_T}no" >&6
10251 fi
10252
10253
10254 enablestring=
10255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10256echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10257 no_cache=0
10258 # Check whether --enable-pnm or --disable-pnm was given.
10259if test "${enable_pnm+set}" = set; then
10260 enableval="$enable_pnm"
10261
10262 if test "$enableval" = yes; then
10263 ac_cv_use_pnm='wxUSE_PNM=yes'
10264 else
10265 ac_cv_use_pnm='wxUSE_PNM=no'
10266 fi
10267
10268else
10269
10270 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10271 if test "x$LINE" != x ; then
10272 eval "DEFAULT_$LINE"
10273 else
10274 no_cache=1
10275 fi
10276
10277 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10278
10279fi;
10280
10281 eval "$ac_cv_use_pnm"
10282 if test "$no_cache" != 1; then
10283 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10284 fi
10285
10286 if test "$wxUSE_PNM" = yes; then
10287 echo "$as_me:$LINENO: result: yes" >&5
10288echo "${ECHO_T}yes" >&6
10289 else
10290 echo "$as_me:$LINENO: result: no" >&5
10291echo "${ECHO_T}no" >&6
10292 fi
10293
10294
10295 enablestring=
10296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10297echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10298 no_cache=0
10299 # Check whether --enable-xpm or --disable-xpm was given.
10300if test "${enable_xpm+set}" = set; then
10301 enableval="$enable_xpm"
10302
10303 if test "$enableval" = yes; then
10304 ac_cv_use_xpm='wxUSE_XPM=yes'
10305 else
10306 ac_cv_use_xpm='wxUSE_XPM=no'
10307 fi
10308
10309else
10310
10311 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10312 if test "x$LINE" != x ; then
10313 eval "DEFAULT_$LINE"
10314 else
10315 no_cache=1
10316 fi
10317
10318 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10319
10320fi;
10321
10322 eval "$ac_cv_use_xpm"
10323 if test "$no_cache" != 1; then
10324 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10325 fi
10326
10327 if test "$wxUSE_XPM" = yes; then
10328 echo "$as_me:$LINENO: result: yes" >&5
10329echo "${ECHO_T}yes" >&6
10330 else
10331 echo "$as_me:$LINENO: result: no" >&5
10332echo "${ECHO_T}no" >&6
10333 fi
10334
10335
10336 enablestring=
10337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10338echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10339 no_cache=0
10340 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10341if test "${enable_ico_cur+set}" = set; then
10342 enableval="$enable_ico_cur"
10343
10344 if test "$enableval" = yes; then
10345 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10346 else
10347 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10348 fi
10349
10350else
10351
10352 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10353 if test "x$LINE" != x ; then
10354 eval "DEFAULT_$LINE"
10355 else
10356 no_cache=1
10357 fi
10358
10359 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10360
10361fi;
10362
10363 eval "$ac_cv_use_ico_cur"
10364 if test "$no_cache" != 1; then
10365 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10366 fi
10367
10368 if test "$wxUSE_ICO_CUR" = yes; then
10369 echo "$as_me:$LINENO: result: yes" >&5
10370echo "${ECHO_T}yes" >&6
10371 else
10372 echo "$as_me:$LINENO: result: no" >&5
10373echo "${ECHO_T}no" >&6
10374 fi
10375
10376
10377fi
10378
10379
10380
ceec2216
RL
10381# Check whether --with-flavour or --without-flavour was given.
10382if test "${with_flavour+set}" = set; then
10383 withval="$with_flavour"
10384 WX_FLAVOUR="$withval"
10385fi;
10386
10387
10388
a848cd7e
SC
10389 enablestring=
10390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10391echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10392 no_cache=0
10393 # Check whether --enable-official_build or --disable-official_build was given.
10394if test "${enable_official_build+set}" = set; then
10395 enableval="$enable_official_build"
10396
10397 if test "$enableval" = yes; then
10398 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10399 else
10400 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10401 fi
10402
10403else
10404
10405 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10406 if test "x$LINE" != x ; then
10407 eval "DEFAULT_$LINE"
10408 else
10409 no_cache=1
10410 fi
10411
10412 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10413
10414fi;
10415
10416 eval "$ac_cv_use_official_build"
10417 if test "$no_cache" != 1; then
10418 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10419 fi
10420
10421 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10422 echo "$as_me:$LINENO: result: yes" >&5
10423echo "${ECHO_T}yes" >&6
10424 else
10425 echo "$as_me:$LINENO: result: no" >&5
10426echo "${ECHO_T}no" >&6
10427 fi
10428
10429# Check whether --enable-vendor or --disable-vendor was given.
10430if test "${enable_vendor+set}" = set; then
10431 enableval="$enable_vendor"
10432 VENDOR="$enableval"
10433fi;
10434if test "x$VENDOR" = "x"; then
10435 VENDOR="custom"
10436fi
10437
a848cd7e
SC
10438
10439
10440
10441 echo "saving argument cache $wx_arg_cache_file"
10442 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10443
10444
10445
10446echo "$as_me:$LINENO: checking for toolkit" >&5
10447echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10448
10449# In Wine, we need to default to MSW, not GTK or MOTIF
10450if test "$wxUSE_WINE" = "yes"; then
10451 DEFAULT_DEFAULT_wxUSE_GTK=0
10452 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10453 DEFAULT_DEFAULT_wxUSE_MSW=1
10454 wxUSE_SHARED=no
10455fi
10456
f597b41c 10457
a848cd7e
SC
10458if test "$wxUSE_GUI" = "yes"; then
10459
10460 if test "$USE_BEOS" = 1; then
10461 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10462echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10463 { (exit 1); exit 1; }; }
10464 fi
10465
10466 if test "$TOOLKIT_GIVEN" = 1; then
10467 for toolkit in `echo $ALL_TOOLKITS`; do
10468 var=wxUSE_$toolkit
10469 eval "value=\$${var}"
f34ca037
MW
10470 if test "x$value" = "xno"; then
10471 eval "$var=0"
10472 elif test "x$value" != "x"; then
10473 eval "$var=1"
10474 fi
10475
10476 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10477 eval "wx${toolkit}_VERSION=$value"
10478 fi
a848cd7e
SC
10479 done
10480 else
10481 for toolkit in `echo $ALL_TOOLKITS`; do
10482 if test "$has_toolkit_in_cache" != 1; then
10483 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10484 else
10485 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10486
10487 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10488 if test "x$version" != "x"; then
10489 eval "wx${toolkit}_VERSION=$version"
10490 fi
a848cd7e
SC
10491 fi
10492 eval "wxUSE_$toolkit=\$${var}"
10493 done
10494 fi
10495
10496 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10497 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10498 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10499
10500 case "${host}" in
10501 *-pc-os2_emx | *-pc-os2-emx )
10502 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10503 esac
10504
10505 case "$NUM_TOOLKITS" in
10506 1)
10507 ;;
10508 0)
10509 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10510echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10511 { (exit 1); exit 1; }; }
10512 ;;
10513 *)
10514 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10515echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10516 { (exit 1); exit 1; }; }
10517 esac
10518
f34ca037
MW
10519 # to be removed when --disable-gtk2 isn't needed
10520 if test "x$wxUSE_GTK2" = "xyes"; then
10521 wxGTK_VERSION=2
10522 elif test "x$wxUSE_GTK2" = "xno"; then
10523 wxGTK_VERSION=1
10524 fi
10525
a848cd7e
SC
10526 for toolkit in `echo $ALL_TOOLKITS`; do
10527 var=wxUSE_$toolkit
10528 eval "value=\$${var}"
10529 if test "x$value" != x; then
10530 cache_var=CACHE_$toolkit
10531 eval "cache=\$${cache_var}"
10532 if test "$cache" = 1; then
10533 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10534 eval "version=\$wx${toolkit}_VERSION"
10535 if test "x$version" != "x"; then
10536 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10537 fi
a848cd7e
SC
10538 fi
10539 if test "$value" = 1; then
10540 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10541 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10542echo "${ECHO_T}$toolkit_echo" >&6
10543 fi
10544 fi
10545 done
10546else
10547 if test "x$host_alias" != "x"; then
10548 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10549echo "${ECHO_T}base ($host_alias hosted) only" >&6
10550 else
10551 echo "$as_me:$LINENO: result: base only" >&5
10552echo "${ECHO_T}base only" >&6
10553 fi
10554fi
10555
10556wants_win32=0
10557doesnt_want_win32=0
10558case "${host}" in
10559 *-*-cygwin*)
10560 if test "$wxUSE_MSW" = 1 ; then
10561 wants_win32=1
10562 else
10563 doesnt_want_win32=1
10564 fi
10565 ;;
10566 *-*-mingw*)
10567 wants_win32=1
10568 ;;
10569esac
10570
10571if test "$wxUSE_WINE" = "yes"; then
10572 wants_win32=1
10573 CC=winegcc
10574 CXX=wineg++
10575 RESCOMP=wrc
10576 LDFLAGS_GUI="-mwindows"
10577fi
10578
10579if test "$wants_win32" = 1 ; then
10580 USE_UNIX=0
10581 USE_WIN32=1
10582 cat >>confdefs.h <<\_ACEOF
10583#define __WIN32__ 1
10584_ACEOF
10585
10586 cat >>confdefs.h <<\_ACEOF
10587#define __WIN95__ 1
10588_ACEOF
10589
10590 cat >>confdefs.h <<\_ACEOF
10591#define __WINDOWS__ 1
10592_ACEOF
10593
10594 cat >>confdefs.h <<\_ACEOF
10595#define __GNUWIN32__ 1
10596_ACEOF
10597
10598 cat >>confdefs.h <<\_ACEOF
10599#define STRICT 1
10600_ACEOF
10601
10602 cat >>confdefs.h <<\_ACEOF
10603#define WINVER 0x0400
10604_ACEOF
10605
10606fi
10607if test "$doesnt_want_win32" = 1 ; then
10608 USE_UNIX=1
10609 USE_WIN32=0
10610fi
10611
10612if test "$USE_UNIX" = 1 ; then
10613 wxUSE_UNIX=yes
10614 cat >>confdefs.h <<\_ACEOF
10615#define __UNIX__ 1
10616_ACEOF
10617
10618fi
10619
10620
10621cat >confcache <<\_ACEOF
10622# This file is a shell script that caches the results of configure
10623# tests run on this system so they can be shared between configure
10624# scripts and configure runs, see configure's option --config-cache.
10625# It is not useful on other systems. If it contains results you don't
10626# want to keep, you may remove or edit it.
10627#
10628# config.status only pays attention to the cache file if you give it
10629# the --recheck option to rerun configure.
10630#
10631# `ac_cv_env_foo' variables (set or unset) will be overridden when
10632# loading this file, other *unset* `ac_cv_foo' will be assigned the
10633# following values.
10634
10635_ACEOF
10636
10637# The following way of writing the cache mishandles newlines in values,
10638# but we know of no workaround that is simple, portable, and efficient.
10639# So, don't put newlines in cache variables' values.
10640# Ultrix sh set writes to stderr and can't be redirected directly,
10641# and sets the high bit in the cache file unless we assign to the vars.
10642{
10643 (set) 2>&1 |
10644 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10645 *ac_space=\ *)
10646 # `set' does not quote correctly, so add quotes (double-quote
10647 # substitution turns \\\\ into \\, and sed turns \\ into \).
10648 sed -n \
ac1cb8d3
VS
10649 "s/'/'\\\\''/g;
10650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10651 ;;
10652 *)
10653 # `set' quotes correctly as required by POSIX, so do not add quotes.
10654 sed -n \
ac1cb8d3 10655 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10656 ;;
10657 esac;
10658} |
10659 sed '
10660 t clear
10661 : clear
10662 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10663 t end
10664 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10665 : end' >>confcache
10666if diff $cache_file confcache >/dev/null 2>&1; then :; else
10667 if test -w $cache_file; then
10668 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10669 cat confcache >$cache_file
10670 else
10671 echo "not updating unwritable cache $cache_file"
10672 fi
10673fi
10674rm -f confcache
10675
10676if test "$build" != "$host" ; then
1e9e8aba 10677 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10678 CC=$host_alias-gcc
10679 CXX=$host_alias-c++
10680 AR=$host_alias-ar
10681 RANLIB=$host_alias-ranlib
10682 DLLTOOL=$host_alias-dlltool
10683 RESCOMP=$host_alias-windres
a848cd7e 10684 STRIP=$host_alias-strip
1e9e8aba
DE
10685 elif test "x$CC" '!=' "x"; then
10686 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10687 else
10688 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10689echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10690 { (exit 1); exit 1; }; }
10691 fi
10692fi
10693
10694CFLAGS=${CFLAGS:=}
6dcfc289
DE
10695
10696
10697 ac_ext=c
a848cd7e
SC
10698ac_cpp='$CPP $CPPFLAGS'
10699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10701ac_compiler_gnu=$ac_cv_c_compiler_gnu
10702if test -n "$ac_tool_prefix"; then
10703 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10704set dummy ${ac_tool_prefix}gcc; ac_word=$2
10705echo "$as_me:$LINENO: checking for $ac_word" >&5
10706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10707if test "${ac_cv_prog_CC+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10709else
10710 if test -n "$CC"; then
10711 ac_cv_prog_CC="$CC" # Let the user override the test.
10712else
10713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714for as_dir in $PATH
10715do
10716 IFS=$as_save_IFS
10717 test -z "$as_dir" && as_dir=.
10718 for ac_exec_ext in '' $ac_executable_extensions; do
10719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10720 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10722 break 2
10723 fi
10724done
10725done
10726
10727fi
10728fi
10729CC=$ac_cv_prog_CC
10730if test -n "$CC"; then
10731 echo "$as_me:$LINENO: result: $CC" >&5
10732echo "${ECHO_T}$CC" >&6
10733else
10734 echo "$as_me:$LINENO: result: no" >&5
10735echo "${ECHO_T}no" >&6
10736fi
10737
10738fi
10739if test -z "$ac_cv_prog_CC"; then
10740 ac_ct_CC=$CC
10741 # Extract the first word of "gcc", so it can be a program name with args.
10742set dummy gcc; ac_word=$2
10743echo "$as_me:$LINENO: checking for $ac_word" >&5
10744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10745if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10747else
10748 if test -n "$ac_ct_CC"; then
10749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10750else
10751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752for as_dir in $PATH
10753do
10754 IFS=$as_save_IFS
10755 test -z "$as_dir" && as_dir=.
10756 for ac_exec_ext in '' $ac_executable_extensions; do
10757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10758 ac_cv_prog_ac_ct_CC="gcc"
10759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10760 break 2
10761 fi
10762done
10763done
10764
10765fi
10766fi
10767ac_ct_CC=$ac_cv_prog_ac_ct_CC
10768if test -n "$ac_ct_CC"; then
10769 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10770echo "${ECHO_T}$ac_ct_CC" >&6
10771else
10772 echo "$as_me:$LINENO: result: no" >&5
10773echo "${ECHO_T}no" >&6
10774fi
10775
10776 CC=$ac_ct_CC
10777else
10778 CC="$ac_cv_prog_CC"
10779fi
10780
10781if test -z "$CC"; then
10782 if test -n "$ac_tool_prefix"; then
10783 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10784set dummy ${ac_tool_prefix}cc; ac_word=$2
10785echo "$as_me:$LINENO: checking for $ac_word" >&5
10786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10787if test "${ac_cv_prog_CC+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10789else
10790 if test -n "$CC"; then
10791 ac_cv_prog_CC="$CC" # Let the user override the test.
10792else
10793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10794for as_dir in $PATH
10795do
10796 IFS=$as_save_IFS
10797 test -z "$as_dir" && as_dir=.
10798 for ac_exec_ext in '' $ac_executable_extensions; do
10799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10800 ac_cv_prog_CC="${ac_tool_prefix}cc"
10801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10802 break 2
10803 fi
10804done
10805done
10806
10807fi
10808fi
10809CC=$ac_cv_prog_CC
10810if test -n "$CC"; then
10811 echo "$as_me:$LINENO: result: $CC" >&5
10812echo "${ECHO_T}$CC" >&6
10813else
10814 echo "$as_me:$LINENO: result: no" >&5
10815echo "${ECHO_T}no" >&6
10816fi
10817
10818fi
10819if test -z "$ac_cv_prog_CC"; then
10820 ac_ct_CC=$CC
10821 # Extract the first word of "cc", so it can be a program name with args.
10822set dummy cc; ac_word=$2
10823echo "$as_me:$LINENO: checking for $ac_word" >&5
10824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10825if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10827else
10828 if test -n "$ac_ct_CC"; then
10829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10830else
10831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832for as_dir in $PATH
10833do
10834 IFS=$as_save_IFS
10835 test -z "$as_dir" && as_dir=.
10836 for ac_exec_ext in '' $ac_executable_extensions; do
10837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10838 ac_cv_prog_ac_ct_CC="cc"
10839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10840 break 2
10841 fi
10842done
10843done
10844
10845fi
10846fi
10847ac_ct_CC=$ac_cv_prog_ac_ct_CC
10848if test -n "$ac_ct_CC"; then
10849 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10850echo "${ECHO_T}$ac_ct_CC" >&6
10851else
10852 echo "$as_me:$LINENO: result: no" >&5
10853echo "${ECHO_T}no" >&6
10854fi
10855
10856 CC=$ac_ct_CC
10857else
10858 CC="$ac_cv_prog_CC"
10859fi
10860
10861fi
10862if test -z "$CC"; then
10863 # Extract the first word of "cc", so it can be a program name with args.
10864set dummy cc; ac_word=$2
10865echo "$as_me:$LINENO: checking for $ac_word" >&5
10866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10867if test "${ac_cv_prog_CC+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869else
10870 if test -n "$CC"; then
10871 ac_cv_prog_CC="$CC" # Let the user override the test.
10872else
10873 ac_prog_rejected=no
10874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875for as_dir in $PATH
10876do
10877 IFS=$as_save_IFS
10878 test -z "$as_dir" && as_dir=.
10879 for ac_exec_ext in '' $ac_executable_extensions; do
10880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10881 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10882 ac_prog_rejected=yes
10883 continue
10884 fi
10885 ac_cv_prog_CC="cc"
10886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10887 break 2
10888 fi
10889done
10890done
10891
10892if test $ac_prog_rejected = yes; then
10893 # We found a bogon in the path, so make sure we never use it.
10894 set dummy $ac_cv_prog_CC
10895 shift
10896 if test $# != 0; then
10897 # We chose a different compiler from the bogus one.
10898 # However, it has the same basename, so the bogon will be chosen
10899 # first if we set CC to just the basename; use the full file name.
10900 shift
10901 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10902 fi
10903fi
10904fi
10905fi
10906CC=$ac_cv_prog_CC
10907if test -n "$CC"; then
10908 echo "$as_me:$LINENO: result: $CC" >&5
10909echo "${ECHO_T}$CC" >&6
10910else
10911 echo "$as_me:$LINENO: result: no" >&5
10912echo "${ECHO_T}no" >&6
10913fi
10914
10915fi
10916if test -z "$CC"; then
10917 if test -n "$ac_tool_prefix"; then
10918 for ac_prog in cl
10919 do
10920 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10921set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10922echo "$as_me:$LINENO: checking for $ac_word" >&5
10923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10924if test "${ac_cv_prog_CC+set}" = set; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10926else
10927 if test -n "$CC"; then
10928 ac_cv_prog_CC="$CC" # Let the user override the test.
10929else
10930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10931for as_dir in $PATH
10932do
10933 IFS=$as_save_IFS
10934 test -z "$as_dir" && as_dir=.
10935 for ac_exec_ext in '' $ac_executable_extensions; do
10936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10937 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10939 break 2
10940 fi
10941done
10942done
10943
10944fi
10945fi
10946CC=$ac_cv_prog_CC
10947if test -n "$CC"; then
10948 echo "$as_me:$LINENO: result: $CC" >&5
10949echo "${ECHO_T}$CC" >&6
10950else
10951 echo "$as_me:$LINENO: result: no" >&5
10952echo "${ECHO_T}no" >&6
10953fi
10954
10955 test -n "$CC" && break
10956 done
10957fi
10958if test -z "$CC"; then
10959 ac_ct_CC=$CC
10960 for ac_prog in cl
10961do
10962 # Extract the first word of "$ac_prog", so it can be a program name with args.
10963set dummy $ac_prog; ac_word=$2
10964echo "$as_me:$LINENO: checking for $ac_word" >&5
10965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10966if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10968else
10969 if test -n "$ac_ct_CC"; then
10970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10971else
10972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973for as_dir in $PATH
10974do
10975 IFS=$as_save_IFS
10976 test -z "$as_dir" && as_dir=.
10977 for ac_exec_ext in '' $ac_executable_extensions; do
10978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10979 ac_cv_prog_ac_ct_CC="$ac_prog"
10980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10981 break 2
10982 fi
10983done
10984done
10985
10986fi
10987fi
10988ac_ct_CC=$ac_cv_prog_ac_ct_CC
10989if test -n "$ac_ct_CC"; then
10990 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10991echo "${ECHO_T}$ac_ct_CC" >&6
10992else
10993 echo "$as_me:$LINENO: result: no" >&5
10994echo "${ECHO_T}no" >&6
10995fi
10996
10997 test -n "$ac_ct_CC" && break
10998done
10999
11000 CC=$ac_ct_CC
11001fi
11002
11003fi
11004
11005
11006test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11007See \`config.log' for more details." >&5
11008echo "$as_me: error: no acceptable C compiler found in \$PATH
11009See \`config.log' for more details." >&2;}
11010 { (exit 1); exit 1; }; }
11011
11012# Provide some information about the compiler.
11013echo "$as_me:$LINENO:" \
11014 "checking for C compiler version" >&5
11015ac_compiler=`set X $ac_compile; echo $2`
11016{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11017 (eval $ac_compiler --version </dev/null >&5) 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }
11021{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11022 (eval $ac_compiler -v </dev/null >&5) 2>&5
11023 ac_status=$?
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }
11026{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11027 (eval $ac_compiler -V </dev/null >&5) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }
11031
11032cat >conftest.$ac_ext <<_ACEOF
11033/* confdefs.h. */
11034_ACEOF
11035cat confdefs.h >>conftest.$ac_ext
11036cat >>conftest.$ac_ext <<_ACEOF
11037/* end confdefs.h. */
11038
11039int
11040main ()
11041{
11042
11043 ;
11044 return 0;
11045}
11046_ACEOF
11047ac_clean_files_save=$ac_clean_files
11048ac_clean_files="$ac_clean_files a.out a.exe b.out"
11049# Try to create an executable without -o first, disregard a.out.
11050# It will help us diagnose broken compilers, and finding out an intuition
11051# of exeext.
ac1cb8d3
VS
11052echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11053echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11054ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11055if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11056 (eval $ac_link_default) 2>&5
11057 ac_status=$?
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; then
11060 # Find the output, starting from the most likely. This scheme is
11061# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11062# resort.
11063
11064# Be careful to initialize this variable, since it used to be cached.
11065# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11066ac_cv_exeext=
11067# b.out is created by i960 compilers.
11068for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11069do
11070 test -f "$ac_file" || continue
11071 case $ac_file in
11072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11073 ;;
a848cd7e 11074 conftest.$ac_ext )
ac1cb8d3
VS
11075 # This is the source file.
11076 ;;
a848cd7e 11077 [ab].out )
ac1cb8d3
VS
11078 # We found the default executable, but exeext='' is most
11079 # certainly right.
11080 break;;
a848cd7e 11081 *.* )
ac1cb8d3
VS
11082 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11083 # FIXME: I believe we export ac_cv_exeext for Libtool,
11084 # but it would be cool to find out if it's true. Does anybody
11085 # maintain Libtool? --akim.
11086 export ac_cv_exeext
11087 break;;
a848cd7e 11088 * )
ac1cb8d3 11089 break;;
a848cd7e
SC
11090 esac
11091done
11092else
11093 echo "$as_me: failed program was:" >&5
11094sed 's/^/| /' conftest.$ac_ext >&5
11095
11096{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11097See \`config.log' for more details." >&5
11098echo "$as_me: error: C compiler cannot create executables
11099See \`config.log' for more details." >&2;}
11100 { (exit 77); exit 77; }; }
11101fi
11102
11103ac_exeext=$ac_cv_exeext
11104echo "$as_me:$LINENO: result: $ac_file" >&5
11105echo "${ECHO_T}$ac_file" >&6
11106
11107# Check the compiler produces executables we can run. If not, either
11108# the compiler is broken, or we cross compile.
11109echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11110echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11111# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11112# If not cross compiling, check that we can run a simple program.
11113if test "$cross_compiling" != yes; then
11114 if { ac_try='./$ac_file'
11115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11116 (eval $ac_try) 2>&5
11117 ac_status=$?
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); }; }; then
11120 cross_compiling=no
11121 else
11122 if test "$cross_compiling" = maybe; then
11123 cross_compiling=yes
11124 else
11125 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11126If you meant to cross compile, use \`--host'.
11127See \`config.log' for more details." >&5
11128echo "$as_me: error: cannot run C compiled programs.
11129If you meant to cross compile, use \`--host'.
11130See \`config.log' for more details." >&2;}
11131 { (exit 1); exit 1; }; }
11132 fi
11133 fi
11134fi
11135echo "$as_me:$LINENO: result: yes" >&5
11136echo "${ECHO_T}yes" >&6
11137
11138rm -f a.out a.exe conftest$ac_cv_exeext b.out
11139ac_clean_files=$ac_clean_files_save
11140# Check the compiler produces executables we can run. If not, either
11141# the compiler is broken, or we cross compile.
11142echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11143echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11144echo "$as_me:$LINENO: result: $cross_compiling" >&5
11145echo "${ECHO_T}$cross_compiling" >&6
11146
11147echo "$as_me:$LINENO: checking for suffix of executables" >&5
11148echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11150 (eval $ac_link) 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; then
11154 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11155# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11156# work properly (i.e., refer to `conftest.exe'), while it won't with
11157# `rm'.
11158for ac_file in conftest.exe conftest conftest.*; do
11159 test -f "$ac_file" || continue
11160 case $ac_file in
11161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11162 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11163 export ac_cv_exeext
11164 break;;
a848cd7e
SC
11165 * ) break;;
11166 esac
11167done
11168else
11169 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11170See \`config.log' for more details." >&5
11171echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11172See \`config.log' for more details." >&2;}
11173 { (exit 1); exit 1; }; }
11174fi
11175
11176rm -f conftest$ac_cv_exeext
11177echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11178echo "${ECHO_T}$ac_cv_exeext" >&6
11179
11180rm -f conftest.$ac_ext
11181EXEEXT=$ac_cv_exeext
11182ac_exeext=$EXEEXT
11183echo "$as_me:$LINENO: checking for suffix of object files" >&5
11184echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11185if test "${ac_cv_objext+set}" = set; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11187else
11188 cat >conftest.$ac_ext <<_ACEOF
11189/* confdefs.h. */
11190_ACEOF
11191cat confdefs.h >>conftest.$ac_ext
11192cat >>conftest.$ac_ext <<_ACEOF
11193/* end confdefs.h. */
11194
11195int
11196main ()
11197{
11198
11199 ;
11200 return 0;
11201}
11202_ACEOF
11203rm -f conftest.o conftest.obj
11204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11205 (eval $ac_compile) 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; then
11209 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11210 case $ac_file in
11211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11212 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11213 break;;
11214 esac
11215done
11216else
11217 echo "$as_me: failed program was:" >&5
11218sed 's/^/| /' conftest.$ac_ext >&5
11219
11220{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11221See \`config.log' for more details." >&5
11222echo "$as_me: error: cannot compute suffix of object files: cannot compile
11223See \`config.log' for more details." >&2;}
11224 { (exit 1); exit 1; }; }
11225fi
11226
11227rm -f conftest.$ac_cv_objext conftest.$ac_ext
11228fi
11229echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11230echo "${ECHO_T}$ac_cv_objext" >&6
11231OBJEXT=$ac_cv_objext
11232ac_objext=$OBJEXT
11233echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11234echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11235if test "${ac_cv_c_compiler_gnu+set}" = set; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11237else
11238 cat >conftest.$ac_ext <<_ACEOF
11239/* confdefs.h. */
11240_ACEOF
11241cat confdefs.h >>conftest.$ac_ext
11242cat >>conftest.$ac_ext <<_ACEOF
11243/* end confdefs.h. */
11244
11245int
11246main ()
11247{
11248#ifndef __GNUC__
11249 choke me
11250#endif
11251
11252 ;
11253 return 0;
11254}
11255_ACEOF
11256rm -f conftest.$ac_objext
11257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11258 (eval $ac_compile) 2>conftest.er1
a848cd7e 11259 ac_status=$?
ac1cb8d3
VS
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
a848cd7e
SC
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
9dd0f6c2 11265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11268 ac_status=$?
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; } &&
11271 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
11277 ac_compiler_gnu=yes
11278else
11279 echo "$as_me: failed program was:" >&5
11280sed 's/^/| /' conftest.$ac_ext >&5
11281
11282ac_compiler_gnu=no
11283fi
ac1cb8d3 11284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11285ac_cv_c_compiler_gnu=$ac_compiler_gnu
11286
11287fi
11288echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11289echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11290GCC=`test $ac_compiler_gnu = yes && echo yes`
11291ac_test_CFLAGS=${CFLAGS+set}
11292ac_save_CFLAGS=$CFLAGS
52ada004 11293CFLAGS="-g"
a848cd7e
SC
11294echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11295echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11296if test "${ac_cv_prog_cc_g+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11298else
11299 cat >conftest.$ac_ext <<_ACEOF
11300/* confdefs.h. */
11301_ACEOF
11302cat confdefs.h >>conftest.$ac_ext
11303cat >>conftest.$ac_ext <<_ACEOF
11304/* end confdefs.h. */
11305
11306int
11307main ()
11308{
11309
11310 ;
11311 return 0;
11312}
11313_ACEOF
11314rm -f conftest.$ac_objext
11315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11316 (eval $ac_compile) 2>conftest.er1
a848cd7e 11317 ac_status=$?
ac1cb8d3
VS
11318 grep -v '^ *+' conftest.er1 >conftest.err
11319 rm -f conftest.er1
11320 cat conftest.err >&5
a848cd7e
SC
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
9dd0f6c2 11323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; } &&
11329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
11335 ac_cv_prog_cc_g=yes
11336else
11337 echo "$as_me: failed program was:" >&5
11338sed 's/^/| /' conftest.$ac_ext >&5
11339
11340ac_cv_prog_cc_g=no
11341fi
ac1cb8d3 11342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11343fi
11344echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11345echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11346if test "$ac_test_CFLAGS" = set; then
11347 CFLAGS=$ac_save_CFLAGS
11348elif test $ac_cv_prog_cc_g = yes; then
11349 if test "$GCC" = yes; then
11350 CFLAGS="-g -O2"
11351 else
11352 CFLAGS="-g"
11353 fi
11354else
11355 if test "$GCC" = yes; then
11356 CFLAGS="-O2"
11357 else
11358 CFLAGS=
11359 fi
11360fi
11361echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11362echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11363if test "${ac_cv_prog_cc_stdc+set}" = set; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11365else
11366 ac_cv_prog_cc_stdc=no
11367ac_save_CC=$CC
11368cat >conftest.$ac_ext <<_ACEOF
11369/* confdefs.h. */
11370_ACEOF
11371cat confdefs.h >>conftest.$ac_ext
11372cat >>conftest.$ac_ext <<_ACEOF
11373/* end confdefs.h. */
11374#include <stdarg.h>
11375#include <stdio.h>
11376#include <sys/types.h>
11377#include <sys/stat.h>
11378/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11379struct buf { int x; };
11380FILE * (*rcsopen) (struct buf *, struct stat *, int);
11381static char *e (p, i)
11382 char **p;
11383 int i;
11384{
11385 return p[i];
11386}
11387static char *f (char * (*g) (char **, int), char **p, ...)
11388{
11389 char *s;
11390 va_list v;
11391 va_start (v,p);
11392 s = g (p, va_arg (v,int));
11393 va_end (v);
11394 return s;
11395}
ac1cb8d3
VS
11396
11397/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11398 function prototypes and stuff, but not '\xHH' hex character constants.
11399 These don't provoke an error unfortunately, instead are silently treated
11400 as 'x'. The following induces an error, until -std1 is added to get
11401 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11402 array size at least. It's necessary to write '\x00'==0 to get something
11403 that's true only with -std1. */
11404int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11405
a848cd7e
SC
11406int test (int i, double x);
11407struct s1 {int (*f) (int a);};
11408struct s2 {int (*f) (double a);};
11409int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11410int argc;
11411char **argv;
11412int
11413main ()
11414{
11415return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11416 ;
11417 return 0;
11418}
11419_ACEOF
11420# Don't try gcc -ansi; that turns off useful extensions and
11421# breaks some systems' header files.
11422# AIX -qlanglvl=ansi
11423# Ultrix and OSF/1 -std1
11424# HP-UX 10.20 and later -Ae
11425# HP-UX older versions -Aa -D_HPUX_SOURCE
11426# SVR4 -Xc -D__EXTENSIONS__
11427for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11428do
11429 CC="$ac_save_CC $ac_arg"
11430 rm -f conftest.$ac_objext
11431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11432 (eval $ac_compile) 2>conftest.er1
a848cd7e 11433 ac_status=$?
ac1cb8d3
VS
11434 grep -v '^ *+' conftest.er1 >conftest.err
11435 rm -f conftest.er1
11436 cat conftest.err >&5
a848cd7e
SC
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
9dd0f6c2 11439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; } &&
11445 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
11451 ac_cv_prog_cc_stdc=$ac_arg
11452break
11453else
11454 echo "$as_me: failed program was:" >&5
11455sed 's/^/| /' conftest.$ac_ext >&5
11456
11457fi
ac1cb8d3 11458rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11459done
11460rm -f conftest.$ac_ext conftest.$ac_objext
11461CC=$ac_save_CC
11462
11463fi
11464
11465case "x$ac_cv_prog_cc_stdc" in
11466 x|xno)
11467 echo "$as_me:$LINENO: result: none needed" >&5
11468echo "${ECHO_T}none needed" >&6 ;;
11469 *)
11470 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11471echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11472 CC="$CC $ac_cv_prog_cc_stdc" ;;
11473esac
11474
11475# Some people use a C++ compiler to compile C. Since we use `exit',
11476# in C++ we need to declare it. In case someone uses the same compiler
11477# for both compiling C and C++ we need to have the C++ compiler decide
11478# the declaration of exit, since it's the most demanding environment.
11479cat >conftest.$ac_ext <<_ACEOF
11480#ifndef __cplusplus
11481 choke me
11482#endif
11483_ACEOF
11484rm -f conftest.$ac_objext
11485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11486 (eval $ac_compile) 2>conftest.er1
a848cd7e 11487 ac_status=$?
ac1cb8d3
VS
11488 grep -v '^ *+' conftest.er1 >conftest.err
11489 rm -f conftest.er1
11490 cat conftest.err >&5
a848cd7e
SC
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } &&
9dd0f6c2 11493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; } &&
11499 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
11505 for ac_declaration in \
ac1cb8d3 11506 '' \
a848cd7e
SC
11507 'extern "C" void std::exit (int) throw (); using std::exit;' \
11508 'extern "C" void std::exit (int); using std::exit;' \
11509 'extern "C" void exit (int) throw ();' \
11510 'extern "C" void exit (int);' \
11511 'void exit (int);'
11512do
11513 cat >conftest.$ac_ext <<_ACEOF
11514/* confdefs.h. */
11515_ACEOF
11516cat confdefs.h >>conftest.$ac_ext
11517cat >>conftest.$ac_ext <<_ACEOF
11518/* end confdefs.h. */
de59c161 11519$ac_declaration
ac1cb8d3 11520#include <stdlib.h>
a848cd7e
SC
11521int
11522main ()
11523{
11524exit (42);
11525 ;
11526 return 0;
11527}
11528_ACEOF
11529rm -f conftest.$ac_objext
11530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11531 (eval $ac_compile) 2>conftest.er1
a848cd7e 11532 ac_status=$?
ac1cb8d3
VS
11533 grep -v '^ *+' conftest.er1 >conftest.err
11534 rm -f conftest.er1
11535 cat conftest.err >&5
a848cd7e
SC
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } &&
9dd0f6c2 11538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11541 ac_status=$?
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; } &&
11544 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
11550 :
11551else
11552 echo "$as_me: failed program was:" >&5
11553sed 's/^/| /' conftest.$ac_ext >&5
11554
11555continue
11556fi
ac1cb8d3 11557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11558 cat >conftest.$ac_ext <<_ACEOF
11559/* confdefs.h. */
11560_ACEOF
11561cat confdefs.h >>conftest.$ac_ext
11562cat >>conftest.$ac_ext <<_ACEOF
11563/* end confdefs.h. */
11564$ac_declaration
11565int
11566main ()
11567{
11568exit (42);
11569 ;
11570 return 0;
11571}
11572_ACEOF
11573rm -f conftest.$ac_objext
11574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11575 (eval $ac_compile) 2>conftest.er1
a848cd7e 11576 ac_status=$?
ac1cb8d3
VS
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
a848cd7e
SC
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
9dd0f6c2 11582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11585 ac_status=$?
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; } &&
11588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
11594 break
11595else
11596 echo "$as_me: failed program was:" >&5
11597sed 's/^/| /' conftest.$ac_ext >&5
11598
11599fi
ac1cb8d3 11600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11601done
11602rm -f conftest*
11603if test -n "$ac_declaration"; then
11604 echo '#ifdef __cplusplus' >>confdefs.h
11605 echo $ac_declaration >>confdefs.h
11606 echo '#endif' >>confdefs.h
11607fi
11608
11609else
11610 echo "$as_me: failed program was:" >&5
11611sed 's/^/| /' conftest.$ac_ext >&5
11612
11613fi
ac1cb8d3 11614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11615ac_ext=c
11616ac_cpp='$CPP $CPPFLAGS'
11617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11619ac_compiler_gnu=$ac_cv_c_compiler_gnu
11620
6dcfc289 11621 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11622echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11623if test "${wx_cv_c_exto+set}" = set; then
11624 echo $ECHO_N "(cached) $ECHO_C" >&6
11625else
11626 cat >conftest.$ac_ext <<_ACEOF
11627/* confdefs.h. */
11628_ACEOF
11629cat confdefs.h >>conftest.$ac_ext
11630cat >>conftest.$ac_ext <<_ACEOF
11631/* end confdefs.h. */
11632
11633int
11634main ()
11635{
11636
11637 ;
11638 return 0;
11639}
11640_ACEOF
11641rm -f conftest.$ac_objext conftest.$ac_ext.o
11642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11643 (eval $ac_compile) 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; then
11647 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11648 case $ac_file in
11649 conftest.$ac_ext.o)
11650 wx_cv_c_exto="-ext o"
11651 ;;
11652 *)
11653 ;;
11654 esac
11655done
11656else
11657 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11658See \`config.log' for more details." >&5
11659echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11660See \`config.log' for more details." >&2;}
11661 { (exit 1); exit 1; }; }
11662
11663fi
11664
11665rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11666
11667fi
11668echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11669echo "${ECHO_T}$wx_cv_c_exto" >&6
11670if test "x$wx_cv_c_exto" '!=' "x"; then
11671 if test "c" = "c"; then
11672 CFLAGS="$wx_cv_c_exto $CFLAGS"
11673 fi
11674 if test "c" = "cxx"; then
11675 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11676 fi
11677fi
11678
6dcfc289
DE
11679 if test "x$wx_cv_c_exto" '!=' "x"; then
11680 unset ac_cv_prog_cc_g
11681 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11682ac_save_CFLAGS=$CFLAGS
52ada004 11683CFLAGS="-g"
480ccd21
DE
11684echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11685echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11686if test "${ac_cv_prog_cc_g+set}" = set; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11688else
11689 cat >conftest.$ac_ext <<_ACEOF
11690/* confdefs.h. */
11691_ACEOF
11692cat confdefs.h >>conftest.$ac_ext
11693cat >>conftest.$ac_ext <<_ACEOF
11694/* end confdefs.h. */
11695
11696int
11697main ()
11698{
11699
11700 ;
11701 return 0;
11702}
11703_ACEOF
11704rm -f conftest.$ac_objext
11705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11706 (eval $ac_compile) 2>conftest.er1
11707 ac_status=$?
11708 grep -v '^ *+' conftest.er1 >conftest.err
11709 rm -f conftest.er1
11710 cat conftest.err >&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } &&
9dd0f6c2 11713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11716 ac_status=$?
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; } &&
11719 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11725 ac_cv_prog_cc_g=yes
11726else
11727 echo "$as_me: failed program was:" >&5
11728sed 's/^/| /' conftest.$ac_ext >&5
11729
11730ac_cv_prog_cc_g=no
11731fi
11732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11733fi
11734echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11735echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11736if test "$ac_test_CFLAGS" = set; then
11737 CFLAGS=$ac_save_CFLAGS
11738elif test $ac_cv_prog_cc_g = yes; then
11739 if test "$GCC" = yes; then
11740 CFLAGS="-g -O2"
11741 else
11742 CFLAGS="-g"
11743 fi
11744else
11745 if test "$GCC" = yes; then
11746 CFLAGS="-O2"
11747 else
11748 CFLAGS=
11749 fi
11750fi
6dcfc289
DE
11751 fi
11752 ac_ext=c
95986553
DE
11753ac_cpp='$CPP $CPPFLAGS'
11754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11756ac_compiler_gnu=$ac_cv_c_compiler_gnu
11757
11758echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11759echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11760if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11762else
11763 cat >conftest.$ac_ext <<_ACEOF
11764/* confdefs.h. */
11765_ACEOF
11766cat confdefs.h >>conftest.$ac_ext
11767cat >>conftest.$ac_ext <<_ACEOF
11768/* end confdefs.h. */
11769
11770int
11771main ()
11772{
11773#ifndef __MWERKS__
11774 choke me
11775#endif
11776
11777 ;
11778 return 0;
11779}
11780_ACEOF
11781rm -f conftest.$ac_objext
11782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11783 (eval $ac_compile) 2>conftest.er1
11784 ac_status=$?
11785 grep -v '^ *+' conftest.er1 >conftest.err
11786 rm -f conftest.er1
11787 cat conftest.err >&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } &&
9dd0f6c2 11790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; } &&
11796 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11802 bakefile_compiler_mwerks=yes
11803else
11804 echo "$as_me: failed program was:" >&5
11805sed 's/^/| /' conftest.$ac_ext >&5
11806
11807bakefile_compiler_mwerks=no
11808fi
11809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11810 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11811
11812fi
11813echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11814echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11815
0e6fa1d9 11816MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11817ac_ext=c
11818ac_cpp='$CPP $CPPFLAGS'
11819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11821ac_compiler_gnu=$ac_cv_c_compiler_gnu
11822
11823
6dcfc289 11824 ac_ext=c
9273ffba
DE
11825ac_cpp='$CPP $CPPFLAGS'
11826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11828ac_compiler_gnu=$ac_cv_c_compiler_gnu
11829
11830echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11831echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11832if test "${wx_cv_c_compiler_xlc+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11834else
11835 cat >conftest.$ac_ext <<_ACEOF
11836/* confdefs.h. */
11837_ACEOF
11838cat confdefs.h >>conftest.$ac_ext
11839cat >>conftest.$ac_ext <<_ACEOF
11840/* end confdefs.h. */
11841
11842int
11843main ()
11844{
11845#ifndef __xlC__
11846 choke me
11847#endif
11848
11849 ;
11850 return 0;
11851}
11852_ACEOF
11853rm -f conftest.$ac_objext
11854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11855 (eval $ac_compile) 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
9dd0f6c2 11862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11865 ac_status=$?
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; } &&
11868 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11874 wx_compiler_xlc=yes
11875else
11876 echo "$as_me: failed program was:" >&5
11877sed 's/^/| /' conftest.$ac_ext >&5
11878
11879wx_compiler_xlc=no
11880fi
11881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11882 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11883
11884fi
11885echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11886echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11887
0e6fa1d9 11888XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11889ac_ext=c
11890ac_cpp='$CPP $CPPFLAGS'
11891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11893ac_compiler_gnu=$ac_cv_c_compiler_gnu
11894
11895
a848cd7e 11896
6dcfc289 11897
a848cd7e
SC
11898ac_ext=c
11899ac_cpp='$CPP $CPPFLAGS'
11900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11902ac_compiler_gnu=$ac_cv_c_compiler_gnu
11903echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11904echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11905# On Suns, sometimes $CPP names a directory.
11906if test -n "$CPP" && test -d "$CPP"; then
11907 CPP=
11908fi
11909if test -z "$CPP"; then
11910 if test "${ac_cv_prog_CPP+set}" = set; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11912else
11913 # Double quotes because CPP needs to be expanded
11914 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11915 do
11916 ac_preproc_ok=false
11917for ac_c_preproc_warn_flag in '' yes
11918do
11919 # Use a header file that comes with gcc, so configuring glibc
11920 # with a fresh cross-compiler works.
11921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11922 # <limits.h> exists even on freestanding compilers.
11923 # On the NeXT, cc -E runs the code through the compiler's parser,
11924 # not just through cpp. "Syntax error" is here to catch this case.
11925 cat >conftest.$ac_ext <<_ACEOF
11926/* confdefs.h. */
11927_ACEOF
11928cat confdefs.h >>conftest.$ac_ext
11929cat >>conftest.$ac_ext <<_ACEOF
11930/* end confdefs.h. */
11931#ifdef __STDC__
11932# include <limits.h>
11933#else
11934# include <assert.h>
11935#endif
ac1cb8d3 11936 Syntax error
a848cd7e
SC
11937_ACEOF
11938if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11940 ac_status=$?
11941 grep -v '^ *+' conftest.er1 >conftest.err
11942 rm -f conftest.er1
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } >/dev/null; then
11946 if test -s conftest.err; then
11947 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11949 else
11950 ac_cpp_err=
11951 fi
11952else
11953 ac_cpp_err=yes
11954fi
11955if test -z "$ac_cpp_err"; then
11956 :
11957else
11958 echo "$as_me: failed program was:" >&5
11959sed 's/^/| /' conftest.$ac_ext >&5
11960
11961 # Broken: fails on valid input.
11962continue
11963fi
11964rm -f conftest.err conftest.$ac_ext
11965
11966 # OK, works on sane cases. Now check whether non-existent headers
11967 # can be detected and how.
11968 cat >conftest.$ac_ext <<_ACEOF
11969/* confdefs.h. */
11970_ACEOF
11971cat confdefs.h >>conftest.$ac_ext
11972cat >>conftest.$ac_ext <<_ACEOF
11973/* end confdefs.h. */
11974#include <ac_nonexistent.h>
11975_ACEOF
11976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11978 ac_status=$?
11979 grep -v '^ *+' conftest.er1 >conftest.err
11980 rm -f conftest.er1
11981 cat conftest.err >&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } >/dev/null; then
11984 if test -s conftest.err; then
11985 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11987 else
11988 ac_cpp_err=
11989 fi
11990else
11991 ac_cpp_err=yes
11992fi
11993if test -z "$ac_cpp_err"; then
11994 # Broken: success on invalid input.
11995continue
11996else
11997 echo "$as_me: failed program was:" >&5
11998sed 's/^/| /' conftest.$ac_ext >&5
11999
12000 # Passes both tests.
12001ac_preproc_ok=:
12002break
12003fi
12004rm -f conftest.err conftest.$ac_ext
12005
12006done
12007# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12008rm -f conftest.err conftest.$ac_ext
12009if $ac_preproc_ok; then
12010 break
12011fi
12012
12013 done
12014 ac_cv_prog_CPP=$CPP
12015
12016fi
12017 CPP=$ac_cv_prog_CPP
12018else
12019 ac_cv_prog_CPP=$CPP
12020fi
12021echo "$as_me:$LINENO: result: $CPP" >&5
12022echo "${ECHO_T}$CPP" >&6
12023ac_preproc_ok=false
12024for ac_c_preproc_warn_flag in '' yes
12025do
12026 # Use a header file that comes with gcc, so configuring glibc
12027 # with a fresh cross-compiler works.
12028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12029 # <limits.h> exists even on freestanding compilers.
12030 # On the NeXT, cc -E runs the code through the compiler's parser,
12031 # not just through cpp. "Syntax error" is here to catch this case.
12032 cat >conftest.$ac_ext <<_ACEOF
12033/* confdefs.h. */
12034_ACEOF
12035cat confdefs.h >>conftest.$ac_ext
12036cat >>conftest.$ac_ext <<_ACEOF
12037/* end confdefs.h. */
12038#ifdef __STDC__
12039# include <limits.h>
12040#else
12041# include <assert.h>
12042#endif
ac1cb8d3 12043 Syntax error
a848cd7e
SC
12044_ACEOF
12045if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12047 ac_status=$?
12048 grep -v '^ *+' conftest.er1 >conftest.err
12049 rm -f conftest.er1
12050 cat conftest.err >&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); } >/dev/null; then
12053 if test -s conftest.err; then
12054 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12056 else
12057 ac_cpp_err=
12058 fi
12059else
12060 ac_cpp_err=yes
12061fi
12062if test -z "$ac_cpp_err"; then
12063 :
12064else
12065 echo "$as_me: failed program was:" >&5
12066sed 's/^/| /' conftest.$ac_ext >&5
12067
12068 # Broken: fails on valid input.
12069continue
12070fi
12071rm -f conftest.err conftest.$ac_ext
12072
12073 # OK, works on sane cases. Now check whether non-existent headers
12074 # can be detected and how.
12075 cat >conftest.$ac_ext <<_ACEOF
12076/* confdefs.h. */
12077_ACEOF
12078cat confdefs.h >>conftest.$ac_ext
12079cat >>conftest.$ac_ext <<_ACEOF
12080/* end confdefs.h. */
12081#include <ac_nonexistent.h>
12082_ACEOF
12083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12085 ac_status=$?
12086 grep -v '^ *+' conftest.er1 >conftest.err
12087 rm -f conftest.er1
12088 cat conftest.err >&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); } >/dev/null; then
12091 if test -s conftest.err; then
12092 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12094 else
12095 ac_cpp_err=
12096 fi
12097else
12098 ac_cpp_err=yes
12099fi
12100if test -z "$ac_cpp_err"; then
12101 # Broken: success on invalid input.
12102continue
12103else
12104 echo "$as_me: failed program was:" >&5
12105sed 's/^/| /' conftest.$ac_ext >&5
12106
12107 # Passes both tests.
12108ac_preproc_ok=:
12109break
12110fi
12111rm -f conftest.err conftest.$ac_ext
12112
12113done
12114# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12115rm -f conftest.err conftest.$ac_ext
12116if $ac_preproc_ok; then
12117 :
12118else
12119 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12120See \`config.log' for more details." >&5
12121echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12122See \`config.log' for more details." >&2;}
12123 { (exit 1); exit 1; }; }
12124fi
12125
12126ac_ext=c
12127ac_cpp='$CPP $CPPFLAGS'
12128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12130ac_compiler_gnu=$ac_cv_c_compiler_gnu
12131
12132
12133echo "$as_me:$LINENO: checking for egrep" >&5
12134echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12135if test "${ac_cv_prog_egrep+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12137else
12138 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12139 then ac_cv_prog_egrep='grep -E'
12140 else ac_cv_prog_egrep='egrep'
12141 fi
12142fi
12143echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12144echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12145 EGREP=$ac_cv_prog_egrep
12146
12147
12148if test $ac_cv_c_compiler_gnu = yes; then
12149 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12150echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12151if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12153else
12154 ac_pattern="Autoconf.*'x'"
12155 cat >conftest.$ac_ext <<_ACEOF
12156/* confdefs.h. */
12157_ACEOF
12158cat confdefs.h >>conftest.$ac_ext
12159cat >>conftest.$ac_ext <<_ACEOF
12160/* end confdefs.h. */
12161#include <sgtty.h>
12162Autoconf TIOCGETP
12163_ACEOF
12164if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12165 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12166 ac_cv_prog_gcc_traditional=yes
12167else
12168 ac_cv_prog_gcc_traditional=no
12169fi
12170rm -f conftest*
12171
12172
12173 if test $ac_cv_prog_gcc_traditional = no; then
12174 cat >conftest.$ac_ext <<_ACEOF
12175/* confdefs.h. */
12176_ACEOF
12177cat confdefs.h >>conftest.$ac_ext
12178cat >>conftest.$ac_ext <<_ACEOF
12179/* end confdefs.h. */
12180#include <termio.h>
12181Autoconf TCGETA
12182_ACEOF
12183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12184 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12185 ac_cv_prog_gcc_traditional=yes
12186fi
12187rm -f conftest*
12188
12189 fi
12190fi
12191echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12192echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12193 if test $ac_cv_prog_gcc_traditional = yes; then
12194 CC="$CC -traditional"
12195 fi
12196fi
12197
12198
12199
12200
12201ac_ext=cc
12202ac_cpp='$CXXCPP $CPPFLAGS'
12203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12206
12207
12208CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12209
12210
12211 ac_ext=cc
a848cd7e
SC
12212ac_cpp='$CXXCPP $CPPFLAGS'
12213ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12214ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12215ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12216if test -n "$ac_tool_prefix"; then
12217 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12218 do
12219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12220set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12221echo "$as_me:$LINENO: checking for $ac_word" >&5
12222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12223if test "${ac_cv_prog_CXX+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225else
12226 if test -n "$CXX"; then
12227 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12228else
12229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230for as_dir in $PATH
12231do
12232 IFS=$as_save_IFS
12233 test -z "$as_dir" && as_dir=.
12234 for ac_exec_ext in '' $ac_executable_extensions; do
12235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12236 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12238 break 2
12239 fi
12240done
12241done
12242
12243fi
12244fi
12245CXX=$ac_cv_prog_CXX
12246if test -n "$CXX"; then
12247 echo "$as_me:$LINENO: result: $CXX" >&5
12248echo "${ECHO_T}$CXX" >&6
12249else
12250 echo "$as_me:$LINENO: result: no" >&5
12251echo "${ECHO_T}no" >&6
12252fi
12253
12254 test -n "$CXX" && break
12255 done
12256fi
12257if test -z "$CXX"; then
12258 ac_ct_CXX=$CXX
12259 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12260do
12261 # Extract the first word of "$ac_prog", so it can be a program name with args.
12262set dummy $ac_prog; ac_word=$2
12263echo "$as_me:$LINENO: checking for $ac_word" >&5
12264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12265if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12267else
12268 if test -n "$ac_ct_CXX"; then
12269 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12270else
12271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272for as_dir in $PATH
12273do
12274 IFS=$as_save_IFS
12275 test -z "$as_dir" && as_dir=.
12276 for ac_exec_ext in '' $ac_executable_extensions; do
12277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12278 ac_cv_prog_ac_ct_CXX="$ac_prog"
12279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12280 break 2
12281 fi
12282done
12283done
12284
12285fi
12286fi
12287ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12288if test -n "$ac_ct_CXX"; then
12289 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12290echo "${ECHO_T}$ac_ct_CXX" >&6
12291else
12292 echo "$as_me:$LINENO: result: no" >&5
12293echo "${ECHO_T}no" >&6
12294fi
12295
12296 test -n "$ac_ct_CXX" && break
12297done
12298test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12299
12300 CXX=$ac_ct_CXX
12301fi
12302
12303
12304# Provide some information about the compiler.
12305echo "$as_me:$LINENO:" \
12306 "checking for C++ compiler version" >&5
12307ac_compiler=`set X $ac_compile; echo $2`
12308{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12309 (eval $ac_compiler --version </dev/null >&5) 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }
12313{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12314 (eval $ac_compiler -v </dev/null >&5) 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }
12318{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12319 (eval $ac_compiler -V </dev/null >&5) 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }
12323
12324echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12325echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12326if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12328else
12329 cat >conftest.$ac_ext <<_ACEOF
12330/* confdefs.h. */
12331_ACEOF
12332cat confdefs.h >>conftest.$ac_ext
12333cat >>conftest.$ac_ext <<_ACEOF
12334/* end confdefs.h. */
12335
12336int
12337main ()
12338{
12339#ifndef __GNUC__
12340 choke me
12341#endif
12342
12343 ;
12344 return 0;
12345}
12346_ACEOF
12347rm -f conftest.$ac_objext
12348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12349 (eval $ac_compile) 2>conftest.er1
a848cd7e 12350 ac_status=$?
ac1cb8d3
VS
12351 grep -v '^ *+' conftest.er1 >conftest.err
12352 rm -f conftest.er1
12353 cat conftest.err >&5
a848cd7e
SC
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } &&
9dd0f6c2 12356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; } &&
12362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
12368 ac_compiler_gnu=yes
12369else
12370 echo "$as_me: failed program was:" >&5
12371sed 's/^/| /' conftest.$ac_ext >&5
12372
12373ac_compiler_gnu=no
12374fi
ac1cb8d3 12375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12376ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12377
12378fi
12379echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12380echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12381GXX=`test $ac_compiler_gnu = yes && echo yes`
12382ac_test_CXXFLAGS=${CXXFLAGS+set}
12383ac_save_CXXFLAGS=$CXXFLAGS
12384CXXFLAGS="-g"
12385echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12386echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12387if test "${ac_cv_prog_cxx_g+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12389else
12390 cat >conftest.$ac_ext <<_ACEOF
12391/* confdefs.h. */
12392_ACEOF
12393cat confdefs.h >>conftest.$ac_ext
12394cat >>conftest.$ac_ext <<_ACEOF
12395/* end confdefs.h. */
12396
12397int
12398main ()
12399{
12400
12401 ;
12402 return 0;
12403}
12404_ACEOF
12405rm -f conftest.$ac_objext
12406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12407 (eval $ac_compile) 2>conftest.er1
a848cd7e 12408 ac_status=$?
ac1cb8d3
VS
12409 grep -v '^ *+' conftest.er1 >conftest.err
12410 rm -f conftest.er1
12411 cat conftest.err >&5
a848cd7e
SC
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } &&
9dd0f6c2 12414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; } &&
12420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
12426 ac_cv_prog_cxx_g=yes
12427else
12428 echo "$as_me: failed program was:" >&5
12429sed 's/^/| /' conftest.$ac_ext >&5
12430
12431ac_cv_prog_cxx_g=no
12432fi
ac1cb8d3 12433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12434fi
12435echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12436echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12437if test "$ac_test_CXXFLAGS" = set; then
12438 CXXFLAGS=$ac_save_CXXFLAGS
12439elif test $ac_cv_prog_cxx_g = yes; then
12440 if test "$GXX" = yes; then
52ada004 12441 CXXFLAGS="-g -O2"
a848cd7e 12442 else
52ada004 12443 CXXFLAGS="-g"
a848cd7e
SC
12444 fi
12445else
12446 if test "$GXX" = yes; then
12447 CXXFLAGS="-O2"
12448 else
12449 CXXFLAGS=
12450 fi
12451fi
12452for ac_declaration in \
ac1cb8d3 12453 '' \
a848cd7e
SC
12454 'extern "C" void std::exit (int) throw (); using std::exit;' \
12455 'extern "C" void std::exit (int); using std::exit;' \
12456 'extern "C" void exit (int) throw ();' \
12457 'extern "C" void exit (int);' \
12458 'void exit (int);'
12459do
12460 cat >conftest.$ac_ext <<_ACEOF
12461/* confdefs.h. */
12462_ACEOF
12463cat confdefs.h >>conftest.$ac_ext
12464cat >>conftest.$ac_ext <<_ACEOF
12465/* end confdefs.h. */
de59c161 12466$ac_declaration
ac1cb8d3 12467#include <stdlib.h>
a848cd7e
SC
12468int
12469main ()
12470{
12471exit (42);
12472 ;
12473 return 0;
12474}
12475_ACEOF
12476rm -f conftest.$ac_objext
12477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12478 (eval $ac_compile) 2>conftest.er1
a848cd7e 12479 ac_status=$?
ac1cb8d3
VS
12480 grep -v '^ *+' conftest.er1 >conftest.err
12481 rm -f conftest.er1
12482 cat conftest.err >&5
a848cd7e
SC
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); } &&
9dd0f6c2 12485 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12488 ac_status=$?
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; } &&
12491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
12497 :
12498else
12499 echo "$as_me: failed program was:" >&5
12500sed 's/^/| /' conftest.$ac_ext >&5
12501
12502continue
12503fi
ac1cb8d3 12504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12505 cat >conftest.$ac_ext <<_ACEOF
12506/* confdefs.h. */
12507_ACEOF
12508cat confdefs.h >>conftest.$ac_ext
12509cat >>conftest.$ac_ext <<_ACEOF
12510/* end confdefs.h. */
12511$ac_declaration
12512int
12513main ()
12514{
12515exit (42);
12516 ;
12517 return 0;
12518}
12519_ACEOF
12520rm -f conftest.$ac_objext
12521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12522 (eval $ac_compile) 2>conftest.er1
a848cd7e 12523 ac_status=$?
ac1cb8d3
VS
12524 grep -v '^ *+' conftest.er1 >conftest.err
12525 rm -f conftest.er1
12526 cat conftest.err >&5
a848cd7e
SC
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } &&
9dd0f6c2 12529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12532 ac_status=$?
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; } &&
12535 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
12541 break
12542else
12543 echo "$as_me: failed program was:" >&5
12544sed 's/^/| /' conftest.$ac_ext >&5
12545
12546fi
ac1cb8d3 12547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12548done
12549rm -f conftest*
12550if test -n "$ac_declaration"; then
12551 echo '#ifdef __cplusplus' >>confdefs.h
12552 echo $ac_declaration >>confdefs.h
12553 echo '#endif' >>confdefs.h
12554fi
12555
12556ac_ext=cc
12557ac_cpp='$CXXCPP $CPPFLAGS'
12558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12561
6dcfc289 12562 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12563echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12564if test "${wx_cv_cxx_exto+set}" = set; then
12565 echo $ECHO_N "(cached) $ECHO_C" >&6
12566else
12567 cat >conftest.$ac_ext <<_ACEOF
12568/* confdefs.h. */
12569_ACEOF
12570cat confdefs.h >>conftest.$ac_ext
12571cat >>conftest.$ac_ext <<_ACEOF
12572/* end confdefs.h. */
12573
12574int
12575main ()
12576{
12577
12578 ;
12579 return 0;
12580}
12581_ACEOF
12582rm -f conftest.$ac_objext conftest.$ac_ext.o
12583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12584 (eval $ac_compile) 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; then
12588 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12589 case $ac_file in
12590 conftest.$ac_ext.o)
12591 wx_cv_cxx_exto="-ext o"
12592 ;;
12593 *)
12594 ;;
12595 esac
12596done
12597else
12598 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12599See \`config.log' for more details." >&5
12600echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12601See \`config.log' for more details." >&2;}
12602 { (exit 1); exit 1; }; }
12603
12604fi
12605
12606rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12607
12608fi
12609echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12610echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12611if test "x$wx_cv_cxx_exto" '!=' "x"; then
12612 if test "cxx" = "c"; then
12613 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12614 fi
12615 if test "cxx" = "cxx"; then
12616 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12617 fi
12618fi
12619
6dcfc289
DE
12620 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12621 unset ac_cv_prog_cxx_g
12622 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12623ac_save_CXXFLAGS=$CXXFLAGS
12624CXXFLAGS="-g"
12625echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12626echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12627if test "${ac_cv_prog_cxx_g+set}" = set; then
12628 echo $ECHO_N "(cached) $ECHO_C" >&6
12629else
12630 cat >conftest.$ac_ext <<_ACEOF
12631/* confdefs.h. */
12632_ACEOF
12633cat confdefs.h >>conftest.$ac_ext
12634cat >>conftest.$ac_ext <<_ACEOF
12635/* end confdefs.h. */
12636
12637int
12638main ()
12639{
12640
12641 ;
12642 return 0;
12643}
12644_ACEOF
12645rm -f conftest.$ac_objext
12646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12647 (eval $ac_compile) 2>conftest.er1
12648 ac_status=$?
12649 grep -v '^ *+' conftest.er1 >conftest.err
12650 rm -f conftest.er1
12651 cat conftest.err >&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } &&
9dd0f6c2 12654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12657 ac_status=$?
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; } &&
12660 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12666 ac_cv_prog_cxx_g=yes
12667else
12668 echo "$as_me: failed program was:" >&5
12669sed 's/^/| /' conftest.$ac_ext >&5
12670
12671ac_cv_prog_cxx_g=no
12672fi
12673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12674fi
12675echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12676echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12677if test "$ac_test_CXXFLAGS" = set; then
12678 CXXFLAGS=$ac_save_CXXFLAGS
12679elif test $ac_cv_prog_cxx_g = yes; then
12680 if test "$GXX" = yes; then
52ada004 12681 CXXFLAGS="-g -O2"
480ccd21 12682 else
52ada004 12683 CXXFLAGS="-g"
480ccd21
DE
12684 fi
12685else
12686 if test "$GXX" = yes; then
12687 CXXFLAGS="-O2"
12688 else
12689 CXXFLAGS=
12690 fi
12691fi
6dcfc289
DE
12692 fi
12693 ac_ext=cc
95986553
DE
12694ac_cpp='$CXXCPP $CPPFLAGS'
12695ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12696ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12697ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12698
12699echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12700echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12701if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12703else
12704 cat >conftest.$ac_ext <<_ACEOF
12705/* confdefs.h. */
12706_ACEOF
12707cat confdefs.h >>conftest.$ac_ext
12708cat >>conftest.$ac_ext <<_ACEOF
12709/* end confdefs.h. */
12710
12711int
12712main ()
12713{
12714#ifndef __MWERKS__
12715 choke me
12716#endif
12717
12718 ;
12719 return 0;
12720}
12721_ACEOF
12722rm -f conftest.$ac_objext
12723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12724 (eval $ac_compile) 2>conftest.er1
12725 ac_status=$?
12726 grep -v '^ *+' conftest.er1 >conftest.err
12727 rm -f conftest.er1
12728 cat conftest.err >&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); } &&
9dd0f6c2 12731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12734 ac_status=$?
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; } &&
12737 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12743 bakefile_compiler_mwerks=yes
12744else
12745 echo "$as_me: failed program was:" >&5
12746sed 's/^/| /' conftest.$ac_ext >&5
12747
12748bakefile_compiler_mwerks=no
12749fi
12750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12751 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12752
12753fi
12754echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12755echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12756
0e6fa1d9 12757MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12758ac_ext=cc
12759ac_cpp='$CXXCPP $CPPFLAGS'
12760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12763
12764
6dcfc289 12765 ac_ext=cc
9273ffba
DE
12766ac_cpp='$CXXCPP $CPPFLAGS'
12767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12770
12771echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12772echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12773if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12775else
12776 cat >conftest.$ac_ext <<_ACEOF
12777/* confdefs.h. */
12778_ACEOF
12779cat confdefs.h >>conftest.$ac_ext
12780cat >>conftest.$ac_ext <<_ACEOF
12781/* end confdefs.h. */
12782
12783int
12784main ()
12785{
12786#ifndef __xlC__
12787 choke me
12788#endif
12789
12790 ;
12791 return 0;
12792}
12793_ACEOF
12794rm -f conftest.$ac_objext
12795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12796 (eval $ac_compile) 2>conftest.er1
12797 ac_status=$?
12798 grep -v '^ *+' conftest.er1 >conftest.err
12799 rm -f conftest.er1
12800 cat conftest.err >&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } &&
9dd0f6c2 12803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; } &&
12809 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12815 wx_compiler_xlc=yes
12816else
12817 echo "$as_me: failed program was:" >&5
12818sed 's/^/| /' conftest.$ac_ext >&5
12819
12820wx_compiler_xlc=no
12821fi
12822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12823 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12824
12825fi
12826echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12827echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12828
0e6fa1d9 12829XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12830ac_ext=cc
12831ac_cpp='$CXXCPP $CPPFLAGS'
12832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12835
12836
95986553 12837
6dcfc289 12838
a848cd7e
SC
12839ac_ext=c
12840ac_cpp='$CPP $CPPFLAGS'
12841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12843ac_compiler_gnu=$ac_cv_c_compiler_gnu
12844
12845
a848cd7e
SC
12846if test -n "$ac_tool_prefix"; then
12847 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12848set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12849echo "$as_me:$LINENO: checking for $ac_word" >&5
12850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12851if test "${ac_cv_prog_RANLIB+set}" = set; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
12853else
12854 if test -n "$RANLIB"; then
12855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12856else
12857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12858for as_dir in $PATH
12859do
12860 IFS=$as_save_IFS
12861 test -z "$as_dir" && as_dir=.
12862 for ac_exec_ext in '' $ac_executable_extensions; do
12863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12864 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12866 break 2
12867 fi
12868done
12869done
12870
12871fi
12872fi
12873RANLIB=$ac_cv_prog_RANLIB
12874if test -n "$RANLIB"; then
12875 echo "$as_me:$LINENO: result: $RANLIB" >&5
12876echo "${ECHO_T}$RANLIB" >&6
12877else
12878 echo "$as_me:$LINENO: result: no" >&5
12879echo "${ECHO_T}no" >&6
12880fi
12881
12882fi
12883if test -z "$ac_cv_prog_RANLIB"; then
12884 ac_ct_RANLIB=$RANLIB
12885 # Extract the first word of "ranlib", so it can be a program name with args.
12886set dummy ranlib; ac_word=$2
12887echo "$as_me:$LINENO: checking for $ac_word" >&5
12888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12889if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12890 echo $ECHO_N "(cached) $ECHO_C" >&6
12891else
12892 if test -n "$ac_ct_RANLIB"; then
12893 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12894else
12895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896for as_dir in $PATH
12897do
12898 IFS=$as_save_IFS
12899 test -z "$as_dir" && as_dir=.
12900 for ac_exec_ext in '' $ac_executable_extensions; do
12901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12902 ac_cv_prog_ac_ct_RANLIB="ranlib"
12903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12904 break 2
12905 fi
12906done
12907done
12908
12909 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12910fi
12911fi
12912ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12913if test -n "$ac_ct_RANLIB"; then
12914 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12915echo "${ECHO_T}$ac_ct_RANLIB" >&6
12916else
12917 echo "$as_me:$LINENO: result: no" >&5
12918echo "${ECHO_T}no" >&6
12919fi
12920
12921 RANLIB=$ac_ct_RANLIB
12922else
12923 RANLIB="$ac_cv_prog_RANLIB"
12924fi
12925
12926
12927# Extract the first word of "ar", so it can be a program name with args.
12928set dummy ar; ac_word=$2
12929echo "$as_me:$LINENO: checking for $ac_word" >&5
12930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12931if test "${ac_cv_prog_AR+set}" = set; then
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12933else
12934 if test -n "$AR"; then
12935 ac_cv_prog_AR="$AR" # Let the user override the test.
12936else
12937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12938for as_dir in $PATH
12939do
12940 IFS=$as_save_IFS
12941 test -z "$as_dir" && as_dir=.
12942 for ac_exec_ext in '' $ac_executable_extensions; do
12943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12944 ac_cv_prog_AR="ar"
12945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12946 break 2
12947 fi
12948done
12949done
12950
12951fi
12952fi
12953AR=$ac_cv_prog_AR
12954if test -n "$AR"; then
12955 echo "$as_me:$LINENO: result: $AR" >&5
12956echo "${ECHO_T}$AR" >&6
12957else
12958 echo "$as_me:$LINENO: result: no" >&5
12959echo "${ECHO_T}no" >&6
12960fi
12961
12962if test "x$AR" = "x" ; then
77ffb593
JS
12963 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12964echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12965 { (exit 1); exit 1; }; }
12966fi
12967
12968# Find a good install program. We prefer a C program (faster),
12969# so one script is as good as another. But avoid the broken or
12970# incompatible versions:
12971# SysV /etc/install, /usr/sbin/install
12972# SunOS /usr/etc/install
12973# IRIX /sbin/install
12974# AIX /bin/install
12975# AmigaOS /C/install, which installs bootblocks on floppy discs
12976# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12977# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12978# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12979# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12980# ./install, which can be erroneously created by make from ./install.sh.
12981echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12982echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12983if test -z "$INSTALL"; then
12984if test "${ac_cv_path_install+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12986else
12987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12988for as_dir in $PATH
12989do
12990 IFS=$as_save_IFS
12991 test -z "$as_dir" && as_dir=.
12992 # Account for people who put trailing slashes in PATH elements.
12993case $as_dir/ in
12994 ./ | .// | /cC/* | \
12995 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12996 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12997 /usr/ucb/* ) ;;
12998 *)
12999 # OSF1 and SCO ODT 3.0 have their own names for install.
13000 # Don't use installbsd from OSF since it installs stuff as root
13001 # by default.
13002 for ac_prog in ginstall scoinst install; do
13003 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13004 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13005 if test $ac_prog = install &&
13006 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13007 # AIX install. It has an incompatible calling convention.
13008 :
13009 elif test $ac_prog = install &&
13010 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13011 # program-specific install script used by HP pwplus--don't use.
13012 :
13013 else
13014 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13015 break 3
13016 fi
13017 fi
a848cd7e
SC
13018 done
13019 done
13020 ;;
13021esac
13022done
13023
13024
13025fi
13026 if test "${ac_cv_path_install+set}" = set; then
13027 INSTALL=$ac_cv_path_install
13028 else
13029 # As a last resort, use the slow shell script. We don't cache a
13030 # path for INSTALL within a source directory, because that will
13031 # break other packages using the cache if that directory is
13032 # removed, or if the path is relative.
13033 INSTALL=$ac_install_sh
13034 fi
13035fi
13036echo "$as_me:$LINENO: result: $INSTALL" >&5
13037echo "${ECHO_T}$INSTALL" >&6
13038
13039# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13040# It thinks the first close brace ends the variable substitution.
13041test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13042
13043test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13044
13045test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13046
13047
13048case ${INSTALL} in
13049 /* ) # Absolute
13050 ;;
13051 ?:* ) # Drive letter, considered as absolute.
13052 ;;
13053 *)
13054 INSTALL=`pwd`/${INSTALL} ;;
13055esac
13056
a848cd7e
SC
13057
13058case "${host}" in
13059
13060 powerpc-*-darwin* )
13061 INSTALL_PROGRAM="cp -fp"
13062 INSTALL_DATA="cp -fp"
13063 ;;
13064 *)
13065 ;;
13066esac
13067
13068# Extract the first word of "strip", so it can be a program name with args.
13069set dummy strip; ac_word=$2
13070echo "$as_me:$LINENO: checking for $ac_word" >&5
13071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13072if test "${ac_cv_prog_STRIP+set}" = set; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
13074else
13075 if test -n "$STRIP"; then
13076 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13077else
13078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13079for as_dir in $PATH
13080do
13081 IFS=$as_save_IFS
13082 test -z "$as_dir" && as_dir=.
13083 for ac_exec_ext in '' $ac_executable_extensions; do
13084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13085 ac_cv_prog_STRIP="strip"
13086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13087 break 2
13088 fi
13089done
13090done
13091
13092 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13093fi
13094fi
13095STRIP=$ac_cv_prog_STRIP
13096if test -n "$STRIP"; then
13097 echo "$as_me:$LINENO: result: $STRIP" >&5
13098echo "${ECHO_T}$STRIP" >&6
13099else
13100 echo "$as_me:$LINENO: result: no" >&5
13101echo "${ECHO_T}no" >&6
13102fi
13103
13104
13105echo "$as_me:$LINENO: checking if make is GNU make" >&5
13106echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13107if test "${wx_cv_prog_makeisgnu+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13109else
13110
13111 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13112 egrep -s GNU > /dev/null); then
13113 wx_cv_prog_makeisgnu="yes"
13114 else
13115 wx_cv_prog_makeisgnu="no"
13116 fi
13117
13118fi
13119echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13120echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13121
13122if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13123 IF_GNU_MAKE=""
13124else
13125 IF_GNU_MAKE="#"
13126fi
13127
13128
13129
13130if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13131echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13132echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13133if test "${wx_cv_prog_makevpath+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13135else
13136
13137cat - << EOF > confMake
13138check : file
13139 cp \$? \$@
13140 cp \$? final_file
13141EOF
13142
13143if test ! -d sub ; then
13144 mkdir sub
13145fi
13146echo dummy > sub/file
13147${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13148RESULT=$?
13149rm -f sub/file check final_file confMake
13150rmdir sub
13151if test "$RESULT" = 0; then
13152 wx_cv_prog_makevpath="yes"
13153else
13154 wx_cv_prog_makevpath="no"
13155fi
13156
13157fi
13158echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13159echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13160
13161if test "x$wx_cv_prog_makevpath" != "xyes"; then
13162{ { echo "$as_me:$LINENO: error:
13163You need a make-utility that is able to use the variable
13164VPATH correctly.
13165If your version of make does not support VPATH correctly,
13166please install GNU-make (possibly as gmake), and start
13167configure with the following command:
13168export MAKE=gmake; ./configure for sh-type shells
13169setenv MAKE gmake; ./configure for csh-type shells
13170Also please do remember to use gmake in this case every time
13171you are trying to compile.
13172" >&5
13173echo "$as_me: error:
13174You need a make-utility that is able to use the variable
13175VPATH correctly.
13176If your version of make does not support VPATH correctly,
13177please install GNU-make (possibly as gmake), and start
13178configure with the following command:
13179export MAKE=gmake; ./configure for sh-type shells
13180setenv MAKE gmake; ./configure for csh-type shells
13181Also please do remember to use gmake in this case every time
13182you are trying to compile.
13183" >&2;}
13184 { (exit 1); exit 1; }; }
13185fi fi
13186echo "$as_me:$LINENO: checking whether ln -s works" >&5
13187echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13188LN_S=$as_ln_s
13189if test "$LN_S" = "ln -s"; then
13190 echo "$as_me:$LINENO: result: yes" >&5
13191echo "${ECHO_T}yes" >&6
13192else
13193 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13194echo "${ECHO_T}no, using $LN_S" >&6
13195fi
13196
13197
13198
9273ffba
DE
13199if test "x$XLCXX" = "xyes"; then
13200 CXXFLAGS="$CXXFLAGS -qunique"
13201fi
13202
13203
4d7ec9f1
DE
13204case "${host}" in
13205 powerpc-*-darwin* )
13206 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13207echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13208 cat >conftest.$ac_ext <<_ACEOF
13209/* confdefs.h. */
13210_ACEOF
13211cat confdefs.h >>conftest.$ac_ext
13212cat >>conftest.$ac_ext <<_ACEOF
13213/* end confdefs.h. */
13214
13215int
13216main ()
13217{
13218#ifndef __POWERPC__
13219 choke me for lack of PowerPC
13220#endif
13221
13222 ;
13223 return 0;
13224}
13225_ACEOF
13226rm -f conftest.$ac_objext
13227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13228 (eval $ac_compile) 2>conftest.er1
13229 ac_status=$?
13230 grep -v '^ *+' conftest.er1 >conftest.err
13231 rm -f conftest.er1
13232 cat conftest.err >&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } &&
9dd0f6c2 13235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237 (eval $ac_try) 2>&5
13238 ac_status=$?
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; } &&
13241 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13247 echo "$as_me:$LINENO: result: yes" >&5
13248echo "${ECHO_T}yes" >&6
13249else
13250 echo "$as_me: failed program was:" >&5
13251sed 's/^/| /' conftest.$ac_ext >&5
13252
13253echo "$as_me:$LINENO: result: no" >&5
13254echo "${ECHO_T}no" >&6
13255 cat >>confdefs.h <<\_ACEOF
13256#define __POWERPC__ 1
13257_ACEOF
13258
13259
13260fi
13261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13262 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13263echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13264 cat >conftest.$ac_ext <<_ACEOF
13265/* confdefs.h. */
13266_ACEOF
13267cat confdefs.h >>conftest.$ac_ext
13268cat >>conftest.$ac_ext <<_ACEOF
13269/* end confdefs.h. */
13270#include <CoreFoundation/CFBase.h>
13271
13272int
13273main ()
13274{
13275
13276 ;
13277 return 0;
13278}
13279_ACEOF
13280rm -f conftest.$ac_objext
13281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13282 (eval $ac_compile) 2>conftest.er1
13283 ac_status=$?
13284 grep -v '^ *+' conftest.er1 >conftest.err
13285 rm -f conftest.er1
13286 cat conftest.err >&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } &&
9dd0f6c2 13289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291 (eval $ac_try) 2>&5
13292 ac_status=$?
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; } &&
13295 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13301 echo "$as_me:$LINENO: result: yes" >&5
13302echo "${ECHO_T}yes" >&6
13303else
13304 echo "$as_me: failed program was:" >&5
13305sed 's/^/| /' conftest.$ac_ext >&5
13306
13307echo "$as_me:$LINENO: result: no" >&5
13308echo "${ECHO_T}no" >&6
13309 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13310echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13311 cat >conftest.$ac_ext <<_ACEOF
13312/* confdefs.h. */
13313_ACEOF
13314cat confdefs.h >>conftest.$ac_ext
13315cat >>conftest.$ac_ext <<_ACEOF
13316/* end confdefs.h. */
13317#define __CF_USE_FRAMEWORK_INCLUDES__
13318#include <CoreFoundation/CFBase.h>
13319
13320int
13321main ()
13322{
13323
13324 ;
13325 return 0;
13326}
13327_ACEOF
13328rm -f conftest.$ac_objext
13329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13330 (eval $ac_compile) 2>conftest.er1
13331 ac_status=$?
13332 grep -v '^ *+' conftest.er1 >conftest.err
13333 rm -f conftest.er1
13334 cat conftest.err >&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } &&
9dd0f6c2 13337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13339 (eval $ac_try) 2>&5
13340 ac_status=$?
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); }; } &&
13343 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13349 echo "$as_me:$LINENO: result: yes" >&5
13350echo "${ECHO_T}yes" >&6
13351 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13352else
13353 echo "$as_me: failed program was:" >&5
13354sed 's/^/| /' conftest.$ac_ext >&5
13355
13356{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13357See \`config.log' for more details." >&5
13358echo "$as_me: error: no. CoreFoundation not available.
13359See \`config.log' for more details." >&2;}
13360 { (exit 1); exit 1; }; }
13361
13362fi
13363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13364
13365
13366fi
13367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13368 ;;
13369esac
13370
a848cd7e
SC
13371case "${host}" in
13372 *-pc-os2_emx | *-pc-os2-emx )
13373 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13374 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13375echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13376if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13378else
13379 ac_check_lib_save_LIBS=$LIBS
13380LIBS="-lcExt $LIBS"
13381cat >conftest.$ac_ext <<_ACEOF
13382/* confdefs.h. */
13383_ACEOF
13384cat confdefs.h >>conftest.$ac_ext
13385cat >>conftest.$ac_ext <<_ACEOF
13386/* end confdefs.h. */
13387
13388/* Override any gcc2 internal prototype to avoid an error. */
13389#ifdef __cplusplus
13390extern "C"
13391#endif
13392/* We use char because int might match the return type of a gcc2
13393 builtin and then its argument prototype would still apply. */
13394char drand48 ();
13395int
13396main ()
13397{
13398drand48 ();
13399 ;
13400 return 0;
13401}
13402_ACEOF
13403rm -f conftest.$ac_objext conftest$ac_exeext
13404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13405 (eval $ac_link) 2>conftest.er1
a848cd7e 13406 ac_status=$?
ac1cb8d3
VS
13407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
a848cd7e
SC
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
9dd0f6c2 13412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; } &&
13418 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
13424 ac_cv_lib_cExt_drand48=yes
13425else
13426 echo "$as_me: failed program was:" >&5
13427sed 's/^/| /' conftest.$ac_ext >&5
13428
13429ac_cv_lib_cExt_drand48=no
13430fi
ac1cb8d3
VS
13431rm -f conftest.err conftest.$ac_objext \
13432 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13433LIBS=$ac_check_lib_save_LIBS
13434fi
13435echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13436echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13437if test $ac_cv_lib_cExt_drand48 = yes; then
13438 LIBS="$LIBS -lcExt"
13439fi
13440
13441 else
13442 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13443 fi
69120ee4
VZ
13444 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13445echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13446if test "${wx_cv_gccversion+set}" = set; then
13447 echo $ECHO_N "(cached) $ECHO_C" >&6
13448else
13449
391a765e
VS
13450 if test "$cross_compiling" = yes; then
13451 wx_cv_gccversion="EMX2"
13452
13453else
13454 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13455/* confdefs.h. */
13456_ACEOF
13457cat confdefs.h >>conftest.$ac_ext
13458cat >>conftest.$ac_ext <<_ACEOF
13459/* end confdefs.h. */
13460
391a765e 13461 #include <stdio.h>
a848cd7e 13462
391a765e
VS
13463 int main()
13464 {
13465 FILE *f=fopen("conftestval", "w");
13466 if (!f) exit(1);
13467 fprintf(f,
a848cd7e 13468 #if (__GNUC__ < 3)
391a765e
VS
13469 "EMX2"
13470 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13471 "EMX3"
13472 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13473 "Innotek5"
13474 #else
13475 "Innotek6"
a848cd7e 13476 #endif
391a765e
VS
13477 );
13478 exit(0);
13479 }
a848cd7e 13480
a848cd7e 13481_ACEOF
391a765e
VS
13482rm -f conftest$ac_exeext
13483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13484 (eval $ac_link) 2>&5
ac1cb8d3
VS
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; }; then
391a765e 13493 wx_cv_gccversion=`cat conftestval`
a848cd7e 13494else
391a765e
VS
13495 echo "$as_me: program exited with status $ac_status" >&5
13496echo "$as_me: failed program was:" >&5
a848cd7e
SC
13497sed 's/^/| /' conftest.$ac_ext >&5
13498
391a765e
VS
13499( exit $ac_status )
13500wx_cv_gccversion="EMX2"
a848cd7e 13501fi
391a765e 13502rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13503fi
a848cd7e
SC
13504
13505fi
13506echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13507echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13508 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13509 LIBS="$LIBS -lstdcpp"
13510 LDFLAGS="$LDFLAGS -Zsysv-signals"
13511 else
391a765e 13512 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13513 LIBS="$LIBS -lstdcxx"
13514 LDFLAGS="$LDFLAGS -Zsysv-signals"
13515 else
13516 LIBS="$LIBS -lstdc++"
13517 fi
13518 fi
94acd38e
DE
13519 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13520 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13521echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13522 wxUSE_OMF=yes
2da0c077 13523 enable_omf=yes
a848cd7e
SC
13524 fi
13525 ;;
13526 *)
13527
13528
13529
13530 ac_ext=cc
13531ac_cpp='$CXXCPP $CPPFLAGS'
13532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13535
13536
95986553 13537 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13538echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13539if test "${ac_cv_string_strcasecmp+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13541else
13542
13543 cat >conftest.$ac_ext <<_ACEOF
13544/* confdefs.h. */
13545_ACEOF
13546cat confdefs.h >>conftest.$ac_ext
13547cat >>conftest.$ac_ext <<_ACEOF
13548/* end confdefs.h. */
13549
13550 #include <string.h>
13551
13552int
13553main ()
13554{
13555
13556 strcasecmp("foo", "bar");
13557
13558 ;
13559 return 0;
13560}
13561_ACEOF
13562rm -f conftest.$ac_objext conftest$ac_exeext
13563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13564 (eval $ac_link) 2>conftest.er1
a848cd7e 13565 ac_status=$?
ac1cb8d3
VS
13566 grep -v '^ *+' conftest.er1 >conftest.err
13567 rm -f conftest.er1
13568 cat conftest.err >&5
a848cd7e
SC
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } &&
9dd0f6c2 13571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573 (eval $ac_try) 2>&5
13574 ac_status=$?
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; } &&
13577 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
13583 ac_cv_string_strcasecmp=yes
13584else
13585 echo "$as_me: failed program was:" >&5
13586sed 's/^/| /' conftest.$ac_ext >&5
13587
13588ac_cv_string_strcasecmp=no
13589
13590fi
ac1cb8d3
VS
13591rm -f conftest.err conftest.$ac_objext \
13592 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13593
13594fi
13595echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13596echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13597
13598 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13599 cat >>confdefs.h <<\_ACEOF
13600#define HAVE_STRCASECMP_IN_STRING_H 1
13601_ACEOF
13602
13603 else
13604 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13605echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13606if test "${ac_cv_strings_strcasecmp+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13608else
13609
13610 cat >conftest.$ac_ext <<_ACEOF
13611/* confdefs.h. */
13612_ACEOF
13613cat confdefs.h >>conftest.$ac_ext
13614cat >>conftest.$ac_ext <<_ACEOF
13615/* end confdefs.h. */
13616
13617 #include <strings.h>
13618
13619int
13620main ()
13621{
13622
13623 strcasecmp("foo", "bar");
13624
13625 ;
13626 return 0;
13627}
13628_ACEOF
13629rm -f conftest.$ac_objext conftest$ac_exeext
13630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13631 (eval $ac_link) 2>conftest.er1
a848cd7e 13632 ac_status=$?
ac1cb8d3
VS
13633 grep -v '^ *+' conftest.er1 >conftest.err
13634 rm -f conftest.er1
13635 cat conftest.err >&5
a848cd7e
SC
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } &&
9dd0f6c2 13638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; } &&
13644 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
13650 ac_cv_strings_strcasecmp=yes
13651else
13652 echo "$as_me: failed program was:" >&5
13653sed 's/^/| /' conftest.$ac_ext >&5
13654
13655ac_cv_strings_strcasecmp=no
13656
13657fi
ac1cb8d3
VS
13658rm -f conftest.err conftest.$ac_objext \
13659 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13660
13661fi
13662echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13663echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13664
0c3c69fc 13665 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13666 cat >>confdefs.h <<\_ACEOF
13667#define HAVE_STRCASECMP_IN_STRINGS_H 1
13668_ACEOF
13669
13670 else
13671 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13672echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13673 { (exit 1); exit 1; }; }
13674 fi
13675 fi
13676
13677 ac_ext=c
13678ac_cpp='$CPP $CPPFLAGS'
13679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13681ac_compiler_gnu=$ac_cv_c_compiler_gnu
13682
13683 ;;
13684esac
13685
13686
13687echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13688echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13689if test "${ac_cv_header_stdc+set}" = set; then
13690 echo $ECHO_N "(cached) $ECHO_C" >&6
13691else
13692 cat >conftest.$ac_ext <<_ACEOF
13693/* confdefs.h. */
13694_ACEOF
13695cat confdefs.h >>conftest.$ac_ext
13696cat >>conftest.$ac_ext <<_ACEOF
13697/* end confdefs.h. */
13698#include <stdlib.h>
13699#include <stdarg.h>
13700#include <string.h>
13701#include <float.h>
13702
13703int
13704main ()
13705{
13706
13707 ;
13708 return 0;
13709}
13710_ACEOF
13711rm -f conftest.$ac_objext
13712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13713 (eval $ac_compile) 2>conftest.er1
a848cd7e 13714 ac_status=$?
ac1cb8d3
VS
13715 grep -v '^ *+' conftest.er1 >conftest.err
13716 rm -f conftest.er1
13717 cat conftest.err >&5
a848cd7e
SC
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } &&
9dd0f6c2 13720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; } &&
13726 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
13732 ac_cv_header_stdc=yes
13733else
13734 echo "$as_me: failed program was:" >&5
13735sed 's/^/| /' conftest.$ac_ext >&5
13736
13737ac_cv_header_stdc=no
13738fi
ac1cb8d3 13739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13740
13741if test $ac_cv_header_stdc = yes; then
13742 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13743 cat >conftest.$ac_ext <<_ACEOF
13744/* confdefs.h. */
13745_ACEOF
13746cat confdefs.h >>conftest.$ac_ext
13747cat >>conftest.$ac_ext <<_ACEOF
13748/* end confdefs.h. */
13749#include <string.h>
13750
13751_ACEOF
13752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13753 $EGREP "memchr" >/dev/null 2>&1; then
13754 :
13755else
13756 ac_cv_header_stdc=no
13757fi
13758rm -f conftest*
13759
13760fi
13761
13762if test $ac_cv_header_stdc = yes; then
13763 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13764 cat >conftest.$ac_ext <<_ACEOF
13765/* confdefs.h. */
13766_ACEOF
13767cat confdefs.h >>conftest.$ac_ext
13768cat >>conftest.$ac_ext <<_ACEOF
13769/* end confdefs.h. */
13770#include <stdlib.h>
13771
13772_ACEOF
13773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13774 $EGREP "free" >/dev/null 2>&1; then
13775 :
13776else
13777 ac_cv_header_stdc=no
13778fi
13779rm -f conftest*
13780
13781fi
13782
13783if test $ac_cv_header_stdc = yes; then
13784 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13785 if test "$cross_compiling" = yes; then
13786 :
13787else
13788 cat >conftest.$ac_ext <<_ACEOF
13789/* confdefs.h. */
13790_ACEOF
13791cat confdefs.h >>conftest.$ac_ext
13792cat >>conftest.$ac_ext <<_ACEOF
13793/* end confdefs.h. */
13794#include <ctype.h>
13795#if ((' ' & 0x0FF) == 0x020)
13796# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13797# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13798#else
13799# define ISLOWER(c) \
ac1cb8d3
VS
13800 (('a' <= (c) && (c) <= 'i') \
13801 || ('j' <= (c) && (c) <= 'r') \
13802 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13803# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13804#endif
13805
13806#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13807int
13808main ()
13809{
13810 int i;
13811 for (i = 0; i < 256; i++)
13812 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13813 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13814 exit(2);
13815 exit (0);
13816}
13817_ACEOF
13818rm -f conftest$ac_exeext
13819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13820 (eval $ac_link) 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13825 (eval $ac_try) 2>&5
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; }; then
13829 :
13830else
13831 echo "$as_me: program exited with status $ac_status" >&5
13832echo "$as_me: failed program was:" >&5
13833sed 's/^/| /' conftest.$ac_ext >&5
13834
13835( exit $ac_status )
13836ac_cv_header_stdc=no
13837fi
ac1cb8d3 13838rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13839fi
13840fi
13841fi
13842echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13843echo "${ECHO_T}$ac_cv_header_stdc" >&6
13844if test $ac_cv_header_stdc = yes; then
13845
13846cat >>confdefs.h <<\_ACEOF
13847#define STDC_HEADERS 1
13848_ACEOF
13849
13850fi
13851
13852# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13863 inttypes.h stdint.h unistd.h
a848cd7e
SC
13864do
13865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13866echo "$as_me:$LINENO: checking for $ac_header" >&5
13867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13868if eval "test \"\${$as_ac_Header+set}\" = set"; then
13869 echo $ECHO_N "(cached) $ECHO_C" >&6
13870else
13871 cat >conftest.$ac_ext <<_ACEOF
13872/* confdefs.h. */
13873_ACEOF
13874cat confdefs.h >>conftest.$ac_ext
13875cat >>conftest.$ac_ext <<_ACEOF
13876/* end confdefs.h. */
13877$ac_includes_default
13878
13879#include <$ac_header>
13880_ACEOF
13881rm -f conftest.$ac_objext
13882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13883 (eval $ac_compile) 2>conftest.er1
a848cd7e 13884 ac_status=$?
ac1cb8d3
VS
13885 grep -v '^ *+' conftest.er1 >conftest.err
13886 rm -f conftest.er1
13887 cat conftest.err >&5
a848cd7e
SC
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); } &&
9dd0f6c2 13890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; } &&
13896 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
13902 eval "$as_ac_Header=yes"
13903else
13904 echo "$as_me: failed program was:" >&5
13905sed 's/^/| /' conftest.$ac_ext >&5
13906
13907eval "$as_ac_Header=no"
13908fi
ac1cb8d3 13909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13910fi
13911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13913if test `eval echo '${'$as_ac_Header'}'` = yes; then
13914 cat >>confdefs.h <<_ACEOF
13915#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13916_ACEOF
13917
13918fi
13919
13920done
13921
13922
13923
13924for ac_header in stdlib.h
13925do
13926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13927if eval "test \"\${$as_ac_Header+set}\" = set"; then
13928 echo "$as_me:$LINENO: checking for $ac_header" >&5
13929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13930if eval "test \"\${$as_ac_Header+set}\" = set"; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13932fi
13933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13935else
13936 # Is the header compilable?
13937echo "$as_me:$LINENO: checking $ac_header usability" >&5
13938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13939cat >conftest.$ac_ext <<_ACEOF
13940/* confdefs.h. */
13941_ACEOF
13942cat confdefs.h >>conftest.$ac_ext
13943cat >>conftest.$ac_ext <<_ACEOF
13944/* end confdefs.h. */
13945$ac_includes_default
13946#include <$ac_header>
13947_ACEOF
13948rm -f conftest.$ac_objext
13949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13950 (eval $ac_compile) 2>conftest.er1
a848cd7e 13951 ac_status=$?
ac1cb8d3
VS
13952 grep -v '^ *+' conftest.er1 >conftest.err
13953 rm -f conftest.er1
13954 cat conftest.err >&5
a848cd7e
SC
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); } &&
9dd0f6c2 13957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13959 (eval $ac_try) 2>&5
13960 ac_status=$?
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; } &&
13963 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
13969 ac_header_compiler=yes
13970else
13971 echo "$as_me: failed program was:" >&5
13972sed 's/^/| /' conftest.$ac_ext >&5
13973
13974ac_header_compiler=no
13975fi
ac1cb8d3 13976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13977echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13978echo "${ECHO_T}$ac_header_compiler" >&6
13979
13980# Is the header present?
13981echo "$as_me:$LINENO: checking $ac_header presence" >&5
13982echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13983cat >conftest.$ac_ext <<_ACEOF
13984/* confdefs.h. */
13985_ACEOF
13986cat confdefs.h >>conftest.$ac_ext
13987cat >>conftest.$ac_ext <<_ACEOF
13988/* end confdefs.h. */
13989#include <$ac_header>
13990_ACEOF
13991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13993 ac_status=$?
13994 grep -v '^ *+' conftest.er1 >conftest.err
13995 rm -f conftest.er1
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } >/dev/null; then
13999 if test -s conftest.err; then
14000 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14002 else
14003 ac_cpp_err=
14004 fi
14005else
14006 ac_cpp_err=yes
14007fi
14008if test -z "$ac_cpp_err"; then
14009 ac_header_preproc=yes
14010else
14011 echo "$as_me: failed program was:" >&5
14012sed 's/^/| /' conftest.$ac_ext >&5
14013
14014 ac_header_preproc=no
14015fi
14016rm -f conftest.err conftest.$ac_ext
14017echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14018echo "${ECHO_T}$ac_header_preproc" >&6
14019
14020# So? What about this header?
ac1cb8d3
VS
14021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14022 yes:no: )
a848cd7e
SC
14023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14024echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14026echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14027 ac_header_preproc=yes
a848cd7e 14028 ;;
ac1cb8d3 14029 no:yes:* )
a848cd7e
SC
14030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14031echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14033echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14035echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14037echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14039echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14041echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14042 (
14043 cat <<\_ASBOX
ac1cb8d3
VS
14044## ----------------------------------------- ##
14045## Report this to wx-dev@lists.wxwidgets.org ##
14046## ----------------------------------------- ##
a848cd7e
SC
14047_ASBOX
14048 ) |
14049 sed "s/^/$as_me: WARNING: /" >&2
14050 ;;
14051esac
14052echo "$as_me:$LINENO: checking for $ac_header" >&5
14053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14054if eval "test \"\${$as_ac_Header+set}\" = set"; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14056else
ac1cb8d3 14057 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14058fi
14059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14060echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14061
14062fi
14063if test `eval echo '${'$as_ac_Header'}'` = yes; then
14064 cat >>confdefs.h <<_ACEOF
14065#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14066_ACEOF
14067
14068fi
14069
14070done
14071
14072
14073for ac_header in malloc.h
14074do
14075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14076if eval "test \"\${$as_ac_Header+set}\" = set"; then
14077 echo "$as_me:$LINENO: checking for $ac_header" >&5
14078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14079if eval "test \"\${$as_ac_Header+set}\" = set"; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14081fi
14082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14083echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14084else
14085 # Is the header compilable?
14086echo "$as_me:$LINENO: checking $ac_header usability" >&5
14087echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14088cat >conftest.$ac_ext <<_ACEOF
14089/* confdefs.h. */
14090_ACEOF
14091cat confdefs.h >>conftest.$ac_ext
14092cat >>conftest.$ac_ext <<_ACEOF
14093/* end confdefs.h. */
14094$ac_includes_default
14095#include <$ac_header>
14096_ACEOF
14097rm -f conftest.$ac_objext
14098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14099 (eval $ac_compile) 2>conftest.er1
a848cd7e 14100 ac_status=$?
ac1cb8d3
VS
14101 grep -v '^ *+' conftest.er1 >conftest.err
14102 rm -f conftest.er1
14103 cat conftest.err >&5
a848cd7e
SC
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
9dd0f6c2 14106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14109 ac_status=$?
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; } &&
14112 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
14118 ac_header_compiler=yes
14119else
14120 echo "$as_me: failed program was:" >&5
14121sed 's/^/| /' conftest.$ac_ext >&5
14122
14123ac_header_compiler=no
14124fi
ac1cb8d3 14125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14126echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14127echo "${ECHO_T}$ac_header_compiler" >&6
14128
14129# Is the header present?
14130echo "$as_me:$LINENO: checking $ac_header presence" >&5
14131echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14132cat >conftest.$ac_ext <<_ACEOF
14133/* confdefs.h. */
14134_ACEOF
14135cat confdefs.h >>conftest.$ac_ext
14136cat >>conftest.$ac_ext <<_ACEOF
14137/* end confdefs.h. */
14138#include <$ac_header>
14139_ACEOF
14140if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14142 ac_status=$?
14143 grep -v '^ *+' conftest.er1 >conftest.err
14144 rm -f conftest.er1
14145 cat conftest.err >&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } >/dev/null; then
14148 if test -s conftest.err; then
14149 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14151 else
14152 ac_cpp_err=
14153 fi
14154else
14155 ac_cpp_err=yes
14156fi
14157if test -z "$ac_cpp_err"; then
14158 ac_header_preproc=yes
14159else
14160 echo "$as_me: failed program was:" >&5
14161sed 's/^/| /' conftest.$ac_ext >&5
14162
14163 ac_header_preproc=no
14164fi
14165rm -f conftest.err conftest.$ac_ext
14166echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14167echo "${ECHO_T}$ac_header_preproc" >&6
14168
14169# So? What about this header?
ac1cb8d3
VS
14170case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14171 yes:no: )
a848cd7e
SC
14172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14173echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14175echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14176 ac_header_preproc=yes
a848cd7e 14177 ;;
ac1cb8d3 14178 no:yes:* )
a848cd7e
SC
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14180echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14182echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14184echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14186echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14188echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14190echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14191 (
14192 cat <<\_ASBOX
ac1cb8d3
VS
14193## ----------------------------------------- ##
14194## Report this to wx-dev@lists.wxwidgets.org ##
14195## ----------------------------------------- ##
a848cd7e
SC
14196_ASBOX
14197 ) |
14198 sed "s/^/$as_me: WARNING: /" >&2
14199 ;;
14200esac
14201echo "$as_me:$LINENO: checking for $ac_header" >&5
14202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14203if eval "test \"\${$as_ac_Header+set}\" = set"; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14205else
ac1cb8d3 14206 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14207fi
14208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14209echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14210
14211fi
14212if test `eval echo '${'$as_ac_Header'}'` = yes; then
14213 cat >>confdefs.h <<_ACEOF
14214#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14215_ACEOF
14216
14217fi
14218
14219done
14220
14221
14222for ac_header in unistd.h
14223do
14224as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14225if eval "test \"\${$as_ac_Header+set}\" = set"; then
14226 echo "$as_me:$LINENO: checking for $ac_header" >&5
14227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14228if eval "test \"\${$as_ac_Header+set}\" = set"; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14230fi
14231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14233else
14234 # Is the header compilable?
14235echo "$as_me:$LINENO: checking $ac_header usability" >&5
14236echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14237cat >conftest.$ac_ext <<_ACEOF
14238/* confdefs.h. */
14239_ACEOF
14240cat confdefs.h >>conftest.$ac_ext
14241cat >>conftest.$ac_ext <<_ACEOF
14242/* end confdefs.h. */
14243$ac_includes_default
14244#include <$ac_header>
14245_ACEOF
14246rm -f conftest.$ac_objext
14247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14248 (eval $ac_compile) 2>conftest.er1
a848cd7e 14249 ac_status=$?
ac1cb8d3
VS
14250 grep -v '^ *+' conftest.er1 >conftest.err
14251 rm -f conftest.er1
14252 cat conftest.err >&5
a848cd7e
SC
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } &&
9dd0f6c2 14255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14258 ac_status=$?
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; } &&
14261 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
14267 ac_header_compiler=yes
14268else
14269 echo "$as_me: failed program was:" >&5
14270sed 's/^/| /' conftest.$ac_ext >&5
14271
14272ac_header_compiler=no
14273fi
ac1cb8d3 14274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14275echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14276echo "${ECHO_T}$ac_header_compiler" >&6
14277
14278# Is the header present?
14279echo "$as_me:$LINENO: checking $ac_header presence" >&5
14280echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14281cat >conftest.$ac_ext <<_ACEOF
14282/* confdefs.h. */
14283_ACEOF
14284cat confdefs.h >>conftest.$ac_ext
14285cat >>conftest.$ac_ext <<_ACEOF
14286/* end confdefs.h. */
14287#include <$ac_header>
14288_ACEOF
14289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14291 ac_status=$?
14292 grep -v '^ *+' conftest.er1 >conftest.err
14293 rm -f conftest.er1
14294 cat conftest.err >&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } >/dev/null; then
14297 if test -s conftest.err; then
14298 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14300 else
14301 ac_cpp_err=
14302 fi
14303else
14304 ac_cpp_err=yes
14305fi
14306if test -z "$ac_cpp_err"; then
14307 ac_header_preproc=yes
14308else
14309 echo "$as_me: failed program was:" >&5
14310sed 's/^/| /' conftest.$ac_ext >&5
14311
14312 ac_header_preproc=no
14313fi
14314rm -f conftest.err conftest.$ac_ext
14315echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14316echo "${ECHO_T}$ac_header_preproc" >&6
14317
14318# So? What about this header?
ac1cb8d3
VS
14319case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14320 yes:no: )
a848cd7e
SC
14321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14322echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14324echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14325 ac_header_preproc=yes
a848cd7e 14326 ;;
ac1cb8d3 14327 no:yes:* )
a848cd7e
SC
14328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14329echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14331echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14333echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14335echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14337echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14339echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14340 (
14341 cat <<\_ASBOX
ac1cb8d3
VS
14342## ----------------------------------------- ##
14343## Report this to wx-dev@lists.wxwidgets.org ##
14344## ----------------------------------------- ##
a848cd7e
SC
14345_ASBOX
14346 ) |
14347 sed "s/^/$as_me: WARNING: /" >&2
14348 ;;
14349esac
14350echo "$as_me:$LINENO: checking for $ac_header" >&5
14351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14352if eval "test \"\${$as_ac_Header+set}\" = set"; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14354else
ac1cb8d3 14355 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14356fi
14357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14359
14360fi
14361if test `eval echo '${'$as_ac_Header'}'` = yes; then
14362 cat >>confdefs.h <<_ACEOF
14363#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14364_ACEOF
14365
14366fi
14367
14368done
14369
14370
14371for ac_header in wchar.h
14372do
14373as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14374if eval "test \"\${$as_ac_Header+set}\" = set"; then
14375 echo "$as_me:$LINENO: checking for $ac_header" >&5
14376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14377if eval "test \"\${$as_ac_Header+set}\" = set"; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14379fi
14380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14381echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14382else
14383 # Is the header compilable?
14384echo "$as_me:$LINENO: checking $ac_header usability" >&5
14385echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14386cat >conftest.$ac_ext <<_ACEOF
14387/* confdefs.h. */
14388_ACEOF
14389cat confdefs.h >>conftest.$ac_ext
14390cat >>conftest.$ac_ext <<_ACEOF
14391/* end confdefs.h. */
14392$ac_includes_default
14393#include <$ac_header>
14394_ACEOF
14395rm -f conftest.$ac_objext
14396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14397 (eval $ac_compile) 2>conftest.er1
a848cd7e 14398 ac_status=$?
ac1cb8d3
VS
14399 grep -v '^ *+' conftest.er1 >conftest.err
14400 rm -f conftest.er1
14401 cat conftest.err >&5
a848cd7e
SC
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } &&
9dd0f6c2 14404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14407 ac_status=$?
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; } &&
14410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
14416 ac_header_compiler=yes
14417else
14418 echo "$as_me: failed program was:" >&5
14419sed 's/^/| /' conftest.$ac_ext >&5
14420
14421ac_header_compiler=no
14422fi
ac1cb8d3 14423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14424echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14425echo "${ECHO_T}$ac_header_compiler" >&6
14426
14427# Is the header present?
14428echo "$as_me:$LINENO: checking $ac_header presence" >&5
14429echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14430cat >conftest.$ac_ext <<_ACEOF
14431/* confdefs.h. */
14432_ACEOF
14433cat confdefs.h >>conftest.$ac_ext
14434cat >>conftest.$ac_ext <<_ACEOF
14435/* end confdefs.h. */
14436#include <$ac_header>
14437_ACEOF
14438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14440 ac_status=$?
14441 grep -v '^ *+' conftest.er1 >conftest.err
14442 rm -f conftest.er1
14443 cat conftest.err >&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } >/dev/null; then
14446 if test -s conftest.err; then
14447 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14449 else
14450 ac_cpp_err=
14451 fi
14452else
14453 ac_cpp_err=yes
14454fi
14455if test -z "$ac_cpp_err"; then
14456 ac_header_preproc=yes
14457else
14458 echo "$as_me: failed program was:" >&5
14459sed 's/^/| /' conftest.$ac_ext >&5
14460
14461 ac_header_preproc=no
14462fi
14463rm -f conftest.err conftest.$ac_ext
14464echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14465echo "${ECHO_T}$ac_header_preproc" >&6
14466
14467# So? What about this header?
ac1cb8d3
VS
14468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14469 yes:no: )
a848cd7e
SC
14470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14471echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14473echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14474 ac_header_preproc=yes
a848cd7e 14475 ;;
ac1cb8d3 14476 no:yes:* )
a848cd7e
SC
14477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14478echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14480echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14482echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14484echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14486echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14488echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14489 (
14490 cat <<\_ASBOX
ac1cb8d3
VS
14491## ----------------------------------------- ##
14492## Report this to wx-dev@lists.wxwidgets.org ##
14493## ----------------------------------------- ##
a848cd7e
SC
14494_ASBOX
14495 ) |
14496 sed "s/^/$as_me: WARNING: /" >&2
14497 ;;
14498esac
14499echo "$as_me:$LINENO: checking for $ac_header" >&5
14500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14501if eval "test \"\${$as_ac_Header+set}\" = set"; then
14502 echo $ECHO_N "(cached) $ECHO_C" >&6
14503else
ac1cb8d3 14504 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14505fi
14506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14508
14509fi
14510if test `eval echo '${'$as_ac_Header'}'` = yes; then
14511 cat >>confdefs.h <<_ACEOF
14512#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14513_ACEOF
14514
14515fi
14516
14517done
14518
14519
14520if test "$ac_cv_header_wchar_h" != "yes"; then
14521
14522for ac_header in wcstr.h
14523do
14524as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14525if eval "test \"\${$as_ac_Header+set}\" = set"; then
14526 echo "$as_me:$LINENO: checking for $ac_header" >&5
14527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14528if eval "test \"\${$as_ac_Header+set}\" = set"; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14530fi
14531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14532echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14533else
14534 # Is the header compilable?
14535echo "$as_me:$LINENO: checking $ac_header usability" >&5
14536echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14537cat >conftest.$ac_ext <<_ACEOF
14538/* confdefs.h. */
14539_ACEOF
14540cat confdefs.h >>conftest.$ac_ext
14541cat >>conftest.$ac_ext <<_ACEOF
14542/* end confdefs.h. */
14543$ac_includes_default
14544#include <$ac_header>
14545_ACEOF
14546rm -f conftest.$ac_objext
14547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14548 (eval $ac_compile) 2>conftest.er1
a848cd7e 14549 ac_status=$?
ac1cb8d3
VS
14550 grep -v '^ *+' conftest.er1 >conftest.err
14551 rm -f conftest.er1
14552 cat conftest.err >&5
a848cd7e
SC
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } &&
9dd0f6c2 14555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; } &&
14561 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
14567 ac_header_compiler=yes
14568else
14569 echo "$as_me: failed program was:" >&5
14570sed 's/^/| /' conftest.$ac_ext >&5
14571
14572ac_header_compiler=no
14573fi
ac1cb8d3 14574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14575echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14576echo "${ECHO_T}$ac_header_compiler" >&6
14577
14578# Is the header present?
14579echo "$as_me:$LINENO: checking $ac_header presence" >&5
14580echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14581cat >conftest.$ac_ext <<_ACEOF
14582/* confdefs.h. */
14583_ACEOF
14584cat confdefs.h >>conftest.$ac_ext
14585cat >>conftest.$ac_ext <<_ACEOF
14586/* end confdefs.h. */
14587#include <$ac_header>
14588_ACEOF
14589if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14591 ac_status=$?
14592 grep -v '^ *+' conftest.er1 >conftest.err
14593 rm -f conftest.er1
14594 cat conftest.err >&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } >/dev/null; then
14597 if test -s conftest.err; then
14598 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14600 else
14601 ac_cpp_err=
14602 fi
14603else
14604 ac_cpp_err=yes
14605fi
14606if test -z "$ac_cpp_err"; then
14607 ac_header_preproc=yes
14608else
14609 echo "$as_me: failed program was:" >&5
14610sed 's/^/| /' conftest.$ac_ext >&5
14611
14612 ac_header_preproc=no
14613fi
14614rm -f conftest.err conftest.$ac_ext
14615echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14616echo "${ECHO_T}$ac_header_preproc" >&6
14617
14618# So? What about this header?
ac1cb8d3
VS
14619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14620 yes:no: )
a848cd7e
SC
14621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14622echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14624echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14625 ac_header_preproc=yes
a848cd7e 14626 ;;
ac1cb8d3 14627 no:yes:* )
a848cd7e
SC
14628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14629echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14631echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14633echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14635echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14637echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14639echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14640 (
14641 cat <<\_ASBOX
ac1cb8d3
VS
14642## ----------------------------------------- ##
14643## Report this to wx-dev@lists.wxwidgets.org ##
14644## ----------------------------------------- ##
a848cd7e
SC
14645_ASBOX
14646 ) |
14647 sed "s/^/$as_me: WARNING: /" >&2
14648 ;;
14649esac
14650echo "$as_me:$LINENO: checking for $ac_header" >&5
14651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14652if eval "test \"\${$as_ac_Header+set}\" = set"; then
14653 echo $ECHO_N "(cached) $ECHO_C" >&6
14654else
ac1cb8d3 14655 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14656fi
14657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14658echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14659
14660fi
14661if test `eval echo '${'$as_ac_Header'}'` = yes; then
14662 cat >>confdefs.h <<_ACEOF
14663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14664_ACEOF
14665
14666fi
14667
14668done
14669
14670fi
14671
14672
14673for ac_header in fnmatch.h
14674do
14675as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14676if eval "test \"\${$as_ac_Header+set}\" = set"; then
14677 echo "$as_me:$LINENO: checking for $ac_header" >&5
14678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14679if eval "test \"\${$as_ac_Header+set}\" = set"; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
14681fi
14682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14683echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14684else
14685 # Is the header compilable?
14686echo "$as_me:$LINENO: checking $ac_header usability" >&5
14687echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14688cat >conftest.$ac_ext <<_ACEOF
14689/* confdefs.h. */
14690_ACEOF
14691cat confdefs.h >>conftest.$ac_ext
14692cat >>conftest.$ac_ext <<_ACEOF
14693/* end confdefs.h. */
14694$ac_includes_default
14695#include <$ac_header>
14696_ACEOF
14697rm -f conftest.$ac_objext
14698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14699 (eval $ac_compile) 2>conftest.er1
a848cd7e 14700 ac_status=$?
ac1cb8d3
VS
14701 grep -v '^ *+' conftest.er1 >conftest.err
14702 rm -f conftest.er1
14703 cat conftest.err >&5
a848cd7e
SC
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } &&
9dd0f6c2 14706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; } &&
14712 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
14718 ac_header_compiler=yes
14719else
14720 echo "$as_me: failed program was:" >&5
14721sed 's/^/| /' conftest.$ac_ext >&5
14722
14723ac_header_compiler=no
14724fi
ac1cb8d3 14725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14726echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14727echo "${ECHO_T}$ac_header_compiler" >&6
14728
14729# Is the header present?
14730echo "$as_me:$LINENO: checking $ac_header presence" >&5
14731echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14732cat >conftest.$ac_ext <<_ACEOF
14733/* confdefs.h. */
14734_ACEOF
14735cat confdefs.h >>conftest.$ac_ext
14736cat >>conftest.$ac_ext <<_ACEOF
14737/* end confdefs.h. */
14738#include <$ac_header>
14739_ACEOF
14740if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14742 ac_status=$?
14743 grep -v '^ *+' conftest.er1 >conftest.err
14744 rm -f conftest.er1
14745 cat conftest.err >&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } >/dev/null; then
14748 if test -s conftest.err; then
14749 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14751 else
14752 ac_cpp_err=
14753 fi
14754else
14755 ac_cpp_err=yes
14756fi
14757if test -z "$ac_cpp_err"; then
14758 ac_header_preproc=yes
14759else
14760 echo "$as_me: failed program was:" >&5
14761sed 's/^/| /' conftest.$ac_ext >&5
14762
14763 ac_header_preproc=no
14764fi
14765rm -f conftest.err conftest.$ac_ext
14766echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14767echo "${ECHO_T}$ac_header_preproc" >&6
14768
14769# So? What about this header?
ac1cb8d3
VS
14770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14771 yes:no: )
a848cd7e
SC
14772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14773echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14775echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14776 ac_header_preproc=yes
a848cd7e 14777 ;;
ac1cb8d3 14778 no:yes:* )
a848cd7e
SC
14779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14780echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14782echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14784echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14786echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14788echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14790echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14791 (
14792 cat <<\_ASBOX
ac1cb8d3
VS
14793## ----------------------------------------- ##
14794## Report this to wx-dev@lists.wxwidgets.org ##
14795## ----------------------------------------- ##
a848cd7e
SC
14796_ASBOX
14797 ) |
14798 sed "s/^/$as_me: WARNING: /" >&2
14799 ;;
14800esac
14801echo "$as_me:$LINENO: checking for $ac_header" >&5
14802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14803if eval "test \"\${$as_ac_Header+set}\" = set"; then
14804 echo $ECHO_N "(cached) $ECHO_C" >&6
14805else
ac1cb8d3 14806 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14807fi
14808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14810
14811fi
14812if test `eval echo '${'$as_ac_Header'}'` = yes; then
14813 cat >>confdefs.h <<_ACEOF
14814#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14815_ACEOF
14816
14817fi
14818
14819done
14820
14821
14822if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14823
14824for ac_func in fnmatch
14825do
14826as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14827echo "$as_me:$LINENO: checking for $ac_func" >&5
14828echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14829if eval "test \"\${$as_ac_var+set}\" = set"; then
14830 echo $ECHO_N "(cached) $ECHO_C" >&6
14831else
14832 cat >conftest.$ac_ext <<_ACEOF
14833/* confdefs.h. */
14834_ACEOF
14835cat confdefs.h >>conftest.$ac_ext
14836cat >>conftest.$ac_ext <<_ACEOF
14837/* end confdefs.h. */
ac1cb8d3
VS
14838/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14840#define $ac_func innocuous_$ac_func
14841
a848cd7e
SC
14842/* System header to define __stub macros and hopefully few prototypes,
14843 which can conflict with char $ac_func (); below.
14844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14845 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14846
a848cd7e
SC
14847#ifdef __STDC__
14848# include <limits.h>
14849#else
14850# include <assert.h>
14851#endif
ac1cb8d3
VS
14852
14853#undef $ac_func
14854
a848cd7e
SC
14855/* Override any gcc2 internal prototype to avoid an error. */
14856#ifdef __cplusplus
14857extern "C"
14858{
14859#endif
14860/* We use char because int might match the return type of a gcc2
14861 builtin and then its argument prototype would still apply. */
14862char $ac_func ();
14863/* The GNU C library defines this for functions which it implements
14864 to always fail with ENOSYS. Some functions are actually named
14865 something starting with __ and the normal name is an alias. */
14866#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14867choke me
14868#else
14869char (*f) () = $ac_func;
14870#endif
14871#ifdef __cplusplus
14872}
14873#endif
14874
14875int
14876main ()
14877{
14878return f != $ac_func;
14879 ;
14880 return 0;
14881}
14882_ACEOF
14883rm -f conftest.$ac_objext conftest$ac_exeext
14884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14885 (eval $ac_link) 2>conftest.er1
a848cd7e 14886 ac_status=$?
ac1cb8d3
VS
14887 grep -v '^ *+' conftest.er1 >conftest.err
14888 rm -f conftest.er1
14889 cat conftest.err >&5
a848cd7e
SC
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } &&
9dd0f6c2 14892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894 (eval $ac_try) 2>&5
14895 ac_status=$?
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); }; } &&
14898 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
14904 eval "$as_ac_var=yes"
14905else
14906 echo "$as_me: failed program was:" >&5
14907sed 's/^/| /' conftest.$ac_ext >&5
14908
14909eval "$as_ac_var=no"
14910fi
ac1cb8d3
VS
14911rm -f conftest.err conftest.$ac_objext \
14912 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14913fi
14914echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14915echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14916if test `eval echo '${'$as_ac_var'}'` = yes; then
14917 cat >>confdefs.h <<_ACEOF
14918#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14919_ACEOF
14920
14921fi
14922done
14923
14924fi
14925
14926
14927for ac_header in langinfo.h
14928do
14929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14930if eval "test \"\${$as_ac_Header+set}\" = set"; then
14931 echo "$as_me:$LINENO: checking for $ac_header" >&5
14932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14933if eval "test \"\${$as_ac_Header+set}\" = set"; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14935fi
14936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14938else
14939 # Is the header compilable?
14940echo "$as_me:$LINENO: checking $ac_header usability" >&5
14941echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14942cat >conftest.$ac_ext <<_ACEOF
14943/* confdefs.h. */
14944_ACEOF
14945cat confdefs.h >>conftest.$ac_ext
14946cat >>conftest.$ac_ext <<_ACEOF
14947/* end confdefs.h. */
14948$ac_includes_default
14949#include <$ac_header>
14950_ACEOF
14951rm -f conftest.$ac_objext
14952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14953 (eval $ac_compile) 2>conftest.er1
a848cd7e 14954 ac_status=$?
ac1cb8d3
VS
14955 grep -v '^ *+' conftest.er1 >conftest.err
14956 rm -f conftest.er1
14957 cat conftest.err >&5
a848cd7e
SC
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } &&
9dd0f6c2 14960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14962 (eval $ac_try) 2>&5
14963 ac_status=$?
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); }; } &&
14966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
14972 ac_header_compiler=yes
14973else
14974 echo "$as_me: failed program was:" >&5
14975sed 's/^/| /' conftest.$ac_ext >&5
14976
14977ac_header_compiler=no
14978fi
ac1cb8d3 14979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14980echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14981echo "${ECHO_T}$ac_header_compiler" >&6
14982
14983# Is the header present?
14984echo "$as_me:$LINENO: checking $ac_header presence" >&5
14985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14986cat >conftest.$ac_ext <<_ACEOF
14987/* confdefs.h. */
14988_ACEOF
14989cat confdefs.h >>conftest.$ac_ext
14990cat >>conftest.$ac_ext <<_ACEOF
14991/* end confdefs.h. */
14992#include <$ac_header>
14993_ACEOF
14994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14996 ac_status=$?
14997 grep -v '^ *+' conftest.er1 >conftest.err
14998 rm -f conftest.er1
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } >/dev/null; then
15002 if test -s conftest.err; then
15003 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15005 else
15006 ac_cpp_err=
15007 fi
15008else
15009 ac_cpp_err=yes
15010fi
15011if test -z "$ac_cpp_err"; then
15012 ac_header_preproc=yes
15013else
15014 echo "$as_me: failed program was:" >&5
15015sed 's/^/| /' conftest.$ac_ext >&5
15016
15017 ac_header_preproc=no
15018fi
15019rm -f conftest.err conftest.$ac_ext
15020echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15021echo "${ECHO_T}$ac_header_preproc" >&6
15022
15023# So? What about this header?
ac1cb8d3
VS
15024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15025 yes:no: )
a848cd7e
SC
15026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15027echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15029echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15030 ac_header_preproc=yes
a848cd7e 15031 ;;
ac1cb8d3 15032 no:yes:* )
a848cd7e
SC
15033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15034echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15036echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15038echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15040echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15042echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15044echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15045 (
15046 cat <<\_ASBOX
ac1cb8d3
VS
15047## ----------------------------------------- ##
15048## Report this to wx-dev@lists.wxwidgets.org ##
15049## ----------------------------------------- ##
a848cd7e
SC
15050_ASBOX
15051 ) |
15052 sed "s/^/$as_me: WARNING: /" >&2
15053 ;;
15054esac
15055echo "$as_me:$LINENO: checking for $ac_header" >&5
15056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15057if eval "test \"\${$as_ac_Header+set}\" = set"; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
15059else
ac1cb8d3 15060 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15061fi
15062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15063echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15064
15065fi
15066if test `eval echo '${'$as_ac_Header'}'` = yes; then
15067 cat >>confdefs.h <<_ACEOF
15068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15069_ACEOF
15070
15071fi
15072
15073done
15074
15075
15076case "${host}" in
15077 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15078 if test $ac_cv_header_langinfo_h = "yes" \
15079 -a \( "$wx_cv_gccversion" = "EMX2" \
15080 -o "$wx_cv_gccversion" = "EMX3" \
15081 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15082 LIBS="$LIBS -lintl"
15083 fi
15084 ;;
15085esac
15086
15087if test "$wxUSE_GUI" = "yes"; then
15088 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15089
15090for ac_header in X11/Xlib.h
15091do
15092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15093if eval "test \"\${$as_ac_Header+set}\" = set"; then
15094 echo "$as_me:$LINENO: checking for $ac_header" >&5
15095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15096if eval "test \"\${$as_ac_Header+set}\" = set"; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15098fi
15099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15101else
15102 # Is the header compilable?
15103echo "$as_me:$LINENO: checking $ac_header usability" >&5
15104echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15105cat >conftest.$ac_ext <<_ACEOF
15106/* confdefs.h. */
15107_ACEOF
15108cat confdefs.h >>conftest.$ac_ext
15109cat >>conftest.$ac_ext <<_ACEOF
15110/* end confdefs.h. */
15111$ac_includes_default
15112#include <$ac_header>
15113_ACEOF
15114rm -f conftest.$ac_objext
15115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15116 (eval $ac_compile) 2>conftest.er1
a848cd7e 15117 ac_status=$?
ac1cb8d3
VS
15118 grep -v '^ *+' conftest.er1 >conftest.err
15119 rm -f conftest.er1
15120 cat conftest.err >&5
a848cd7e
SC
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } &&
9dd0f6c2 15123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125 (eval $ac_try) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; } &&
15129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15135 ac_header_compiler=yes
15136else
15137 echo "$as_me: failed program was:" >&5
15138sed 's/^/| /' conftest.$ac_ext >&5
15139
15140ac_header_compiler=no
15141fi
ac1cb8d3 15142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15143echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15144echo "${ECHO_T}$ac_header_compiler" >&6
15145
15146# Is the header present?
15147echo "$as_me:$LINENO: checking $ac_header presence" >&5
15148echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15149cat >conftest.$ac_ext <<_ACEOF
15150/* confdefs.h. */
15151_ACEOF
15152cat confdefs.h >>conftest.$ac_ext
15153cat >>conftest.$ac_ext <<_ACEOF
15154/* end confdefs.h. */
15155#include <$ac_header>
15156_ACEOF
15157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15159 ac_status=$?
15160 grep -v '^ *+' conftest.er1 >conftest.err
15161 rm -f conftest.er1
15162 cat conftest.err >&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } >/dev/null; then
15165 if test -s conftest.err; then
15166 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15168 else
15169 ac_cpp_err=
15170 fi
15171else
15172 ac_cpp_err=yes
15173fi
15174if test -z "$ac_cpp_err"; then
15175 ac_header_preproc=yes
15176else
15177 echo "$as_me: failed program was:" >&5
15178sed 's/^/| /' conftest.$ac_ext >&5
15179
15180 ac_header_preproc=no
15181fi
15182rm -f conftest.err conftest.$ac_ext
15183echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15184echo "${ECHO_T}$ac_header_preproc" >&6
15185
15186# So? What about this header?
ac1cb8d3
VS
15187case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15188 yes:no: )
a848cd7e
SC
15189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15190echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15192echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15193 ac_header_preproc=yes
a848cd7e 15194 ;;
ac1cb8d3 15195 no:yes:* )
a848cd7e
SC
15196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15199echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15201echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15203echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15207echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15208 (
15209 cat <<\_ASBOX
ac1cb8d3
VS
15210## ----------------------------------------- ##
15211## Report this to wx-dev@lists.wxwidgets.org ##
15212## ----------------------------------------- ##
a848cd7e
SC
15213_ASBOX
15214 ) |
15215 sed "s/^/$as_me: WARNING: /" >&2
15216 ;;
15217esac
15218echo "$as_me:$LINENO: checking for $ac_header" >&5
15219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15220if eval "test \"\${$as_ac_Header+set}\" = set"; then
15221 echo $ECHO_N "(cached) $ECHO_C" >&6
15222else
ac1cb8d3 15223 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15224fi
15225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15226echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15227
15228fi
15229if test `eval echo '${'$as_ac_Header'}'` = yes; then
15230 cat >>confdefs.h <<_ACEOF
15231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15232_ACEOF
15233
15234fi
15235
15236done
15237
15238
15239for ac_header in X11/XKBlib.h
15240do
15241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15242echo "$as_me:$LINENO: checking for $ac_header" >&5
15243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15244if eval "test \"\${$as_ac_Header+set}\" = set"; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
15246else
15247 cat >conftest.$ac_ext <<_ACEOF
15248/* confdefs.h. */
15249_ACEOF
15250cat confdefs.h >>conftest.$ac_ext
15251cat >>conftest.$ac_ext <<_ACEOF
15252/* end confdefs.h. */
15253
15254 #if HAVE_X11_XLIB_H
15255 #include <X11/Xlib.h>
15256 #endif
15257
15258
15259#include <$ac_header>
15260_ACEOF
15261rm -f conftest.$ac_objext
15262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15263 (eval $ac_compile) 2>conftest.er1
a848cd7e 15264 ac_status=$?
ac1cb8d3
VS
15265 grep -v '^ *+' conftest.er1 >conftest.err
15266 rm -f conftest.er1
15267 cat conftest.err >&5
a848cd7e
SC
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); } &&
9dd0f6c2 15270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15273 ac_status=$?
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; } &&
15276 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15282 eval "$as_ac_Header=yes"
15283else
15284 echo "$as_me: failed program was:" >&5
15285sed 's/^/| /' conftest.$ac_ext >&5
15286
15287eval "$as_ac_Header=no"
15288fi
ac1cb8d3 15289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15290fi
15291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15292echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15293if test `eval echo '${'$as_ac_Header'}'` = yes; then
15294 cat >>confdefs.h <<_ACEOF
15295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15296_ACEOF
15297
15298fi
15299
15300done
15301
15302 fi
15303fi
15304
15305
15306echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15307echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15308if test "${ac_cv_c_const+set}" = set; then
15309 echo $ECHO_N "(cached) $ECHO_C" >&6
15310else
15311 cat >conftest.$ac_ext <<_ACEOF
15312/* confdefs.h. */
15313_ACEOF
15314cat confdefs.h >>conftest.$ac_ext
15315cat >>conftest.$ac_ext <<_ACEOF
15316/* end confdefs.h. */
15317
15318int
15319main ()
15320{
15321/* FIXME: Include the comments suggested by Paul. */
15322#ifndef __cplusplus
15323 /* Ultrix mips cc rejects this. */
15324 typedef int charset[2];
15325 const charset x;
15326 /* SunOS 4.1.1 cc rejects this. */
15327 char const *const *ccp;
15328 char **p;
15329 /* NEC SVR4.0.2 mips cc rejects this. */
15330 struct point {int x, y;};
15331 static struct point const zero = {0,0};
15332 /* AIX XL C 1.02.0.0 rejects this.
15333 It does not let you subtract one const X* pointer from another in
15334 an arm of an if-expression whose if-part is not a constant
15335 expression */
15336 const char *g = "string";
15337 ccp = &g + (g ? g-g : 0);
15338 /* HPUX 7.0 cc rejects these. */
15339 ++ccp;
15340 p = (char**) ccp;
15341 ccp = (char const *const *) p;
15342 { /* SCO 3.2v4 cc rejects this. */
15343 char *t;
15344 char const *s = 0 ? (char *) 0 : (char const *) 0;
15345
15346 *t++ = 0;
15347 }
15348 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15349 int x[] = {25, 17};
15350 const int *foo = &x[0];
15351 ++foo;
15352 }
15353 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15354 typedef const int *iptr;
15355 iptr p = 0;
15356 ++p;
15357 }
15358 { /* AIX XL C 1.02.0.0 rejects this saying
15359 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15360 struct s { int j; const int *ap[3]; };
15361 struct s *b; b->j = 5;
15362 }
15363 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15364 const int foo = 10;
15365 }
15366#endif
15367
15368 ;
15369 return 0;
15370}
15371_ACEOF
15372rm -f conftest.$ac_objext
15373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15374 (eval $ac_compile) 2>conftest.er1
a848cd7e 15375 ac_status=$?
ac1cb8d3
VS
15376 grep -v '^ *+' conftest.er1 >conftest.err
15377 rm -f conftest.er1
15378 cat conftest.err >&5
a848cd7e
SC
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } &&
9dd0f6c2 15381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15384 ac_status=$?
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; } &&
15387 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15393 ac_cv_c_const=yes
15394else
15395 echo "$as_me: failed program was:" >&5
15396sed 's/^/| /' conftest.$ac_ext >&5
15397
15398ac_cv_c_const=no
15399fi
ac1cb8d3 15400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15401fi
15402echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15403echo "${ECHO_T}$ac_cv_c_const" >&6
15404if test $ac_cv_c_const = no; then
15405
15406cat >>confdefs.h <<\_ACEOF
15407#define const
15408_ACEOF
15409
15410fi
15411
15412echo "$as_me:$LINENO: checking for inline" >&5
15413echo $ECHO_N "checking for inline... $ECHO_C" >&6
15414if test "${ac_cv_c_inline+set}" = set; then
15415 echo $ECHO_N "(cached) $ECHO_C" >&6
15416else
15417 ac_cv_c_inline=no
15418for ac_kw in inline __inline__ __inline; do
15419 cat >conftest.$ac_ext <<_ACEOF
15420/* confdefs.h. */
15421_ACEOF
15422cat confdefs.h >>conftest.$ac_ext
15423cat >>conftest.$ac_ext <<_ACEOF
15424/* end confdefs.h. */
15425#ifndef __cplusplus
15426typedef int foo_t;
15427static $ac_kw foo_t static_foo () {return 0; }
15428$ac_kw foo_t foo () {return 0; }
15429#endif
15430
15431_ACEOF
15432rm -f conftest.$ac_objext
15433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15434 (eval $ac_compile) 2>conftest.er1
a848cd7e 15435 ac_status=$?
ac1cb8d3
VS
15436 grep -v '^ *+' conftest.er1 >conftest.err
15437 rm -f conftest.er1
15438 cat conftest.err >&5
a848cd7e
SC
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } &&
9dd0f6c2 15441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; } &&
15447 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15453 ac_cv_c_inline=$ac_kw; break
15454else
15455 echo "$as_me: failed program was:" >&5
15456sed 's/^/| /' conftest.$ac_ext >&5
15457
15458fi
ac1cb8d3 15459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15460done
15461
15462fi
15463echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15464echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15465
15466
a848cd7e
SC
15467case $ac_cv_c_inline in
15468 inline | yes) ;;
ac1cb8d3
VS
15469 *)
15470 case $ac_cv_c_inline in
15471 no) ac_val=;;
15472 *) ac_val=$ac_cv_c_inline;;
15473 esac
15474 cat >>confdefs.h <<_ACEOF
15475#ifndef __cplusplus
15476#define inline $ac_val
15477#endif
de59c161 15478_ACEOF
ac1cb8d3 15479 ;;
a848cd7e
SC
15480esac
15481
15482
15483echo "$as_me:$LINENO: checking for char" >&5
15484echo $ECHO_N "checking for char... $ECHO_C" >&6
15485if test "${ac_cv_type_char+set}" = set; then
15486 echo $ECHO_N "(cached) $ECHO_C" >&6
15487else
15488 cat >conftest.$ac_ext <<_ACEOF
15489/* confdefs.h. */
15490_ACEOF
15491cat confdefs.h >>conftest.$ac_ext
15492cat >>conftest.$ac_ext <<_ACEOF
15493/* end confdefs.h. */
15494$ac_includes_default
15495int
15496main ()
15497{
15498if ((char *) 0)
15499 return 0;
15500if (sizeof (char))
15501 return 0;
15502 ;
15503 return 0;
15504}
15505_ACEOF
15506rm -f conftest.$ac_objext
15507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15508 (eval $ac_compile) 2>conftest.er1
a848cd7e 15509 ac_status=$?
ac1cb8d3
VS
15510 grep -v '^ *+' conftest.er1 >conftest.err
15511 rm -f conftest.er1
15512 cat conftest.err >&5
a848cd7e
SC
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } &&
9dd0f6c2 15515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15518 ac_status=$?
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; } &&
15521 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15527 ac_cv_type_char=yes
15528else
15529 echo "$as_me: failed program was:" >&5
15530sed 's/^/| /' conftest.$ac_ext >&5
15531
15532ac_cv_type_char=no
15533fi
ac1cb8d3 15534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15535fi
15536echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15537echo "${ECHO_T}$ac_cv_type_char" >&6
15538
15539echo "$as_me:$LINENO: checking size of char" >&5
15540echo $ECHO_N "checking size of char... $ECHO_C" >&6
15541if test "${ac_cv_sizeof_char+set}" = set; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6
15543else
15544 if test "$ac_cv_type_char" = yes; then
15545 # The cast to unsigned long works around a bug in the HP C Compiler
15546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15548 # This bug is HP SR number 8606223364.
15549 if test "$cross_compiling" = yes; then
15550 # Depending upon the size, compute the lo and hi bounds.
15551cat >conftest.$ac_ext <<_ACEOF
15552/* confdefs.h. */
15553_ACEOF
15554cat confdefs.h >>conftest.$ac_ext
15555cat >>conftest.$ac_ext <<_ACEOF
15556/* end confdefs.h. */
15557$ac_includes_default
15558int
15559main ()
15560{
15561static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15562test_array [0] = 0
15563
15564 ;
15565 return 0;
15566}
15567_ACEOF
15568rm -f conftest.$ac_objext
15569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15570 (eval $ac_compile) 2>conftest.er1
a848cd7e 15571 ac_status=$?
ac1cb8d3
VS
15572 grep -v '^ *+' conftest.er1 >conftest.err
15573 rm -f conftest.er1
15574 cat conftest.err >&5
a848cd7e
SC
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); } &&
9dd0f6c2 15577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15580 ac_status=$?
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; } &&
15583 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15589 ac_lo=0 ac_mid=0
15590 while :; do
15591 cat >conftest.$ac_ext <<_ACEOF
15592/* confdefs.h. */
15593_ACEOF
15594cat confdefs.h >>conftest.$ac_ext
15595cat >>conftest.$ac_ext <<_ACEOF
15596/* end confdefs.h. */
15597$ac_includes_default
15598int
15599main ()
15600{
15601static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15602test_array [0] = 0
15603
15604 ;
15605 return 0;
15606}
15607_ACEOF
15608rm -f conftest.$ac_objext
15609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15610 (eval $ac_compile) 2>conftest.er1
a848cd7e 15611 ac_status=$?
ac1cb8d3
VS
15612 grep -v '^ *+' conftest.er1 >conftest.err
15613 rm -f conftest.er1
15614 cat conftest.err >&5
a848cd7e
SC
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); } &&
9dd0f6c2 15617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15619 (eval $ac_try) 2>&5
15620 ac_status=$?
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); }; } &&
15623 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15629 ac_hi=$ac_mid; break
15630else
15631 echo "$as_me: failed program was:" >&5
15632sed 's/^/| /' conftest.$ac_ext >&5
15633
15634ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15635 if test $ac_lo -le $ac_mid; then
15636 ac_lo= ac_hi=
15637 break
15638 fi
15639 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15640fi
ac1cb8d3 15641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15642 done
15643else
15644 echo "$as_me: failed program was:" >&5
15645sed 's/^/| /' conftest.$ac_ext >&5
15646
15647cat >conftest.$ac_ext <<_ACEOF
15648/* confdefs.h. */
15649_ACEOF
15650cat confdefs.h >>conftest.$ac_ext
15651cat >>conftest.$ac_ext <<_ACEOF
15652/* end confdefs.h. */
15653$ac_includes_default
15654int
15655main ()
15656{
15657static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15658test_array [0] = 0
15659
15660 ;
15661 return 0;
15662}
15663_ACEOF
15664rm -f conftest.$ac_objext
15665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15666 (eval $ac_compile) 2>conftest.er1
a848cd7e 15667 ac_status=$?
ac1cb8d3
VS
15668 grep -v '^ *+' conftest.er1 >conftest.err
15669 rm -f conftest.er1
15670 cat conftest.err >&5
a848cd7e
SC
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } &&
9dd0f6c2 15673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675 (eval $ac_try) 2>&5
15676 ac_status=$?
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; } &&
15679 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15685 ac_hi=-1 ac_mid=-1
15686 while :; do
15687 cat >conftest.$ac_ext <<_ACEOF
15688/* confdefs.h. */
15689_ACEOF
15690cat confdefs.h >>conftest.$ac_ext
15691cat >>conftest.$ac_ext <<_ACEOF
15692/* end confdefs.h. */
15693$ac_includes_default
15694int
15695main ()
15696{
15697static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15698test_array [0] = 0
15699
15700 ;
15701 return 0;
15702}
15703_ACEOF
15704rm -f conftest.$ac_objext
15705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15706 (eval $ac_compile) 2>conftest.er1
a848cd7e 15707 ac_status=$?
ac1cb8d3
VS
15708 grep -v '^ *+' conftest.er1 >conftest.err
15709 rm -f conftest.er1
15710 cat conftest.err >&5
a848cd7e
SC
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } &&
9dd0f6c2 15713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15715 (eval $ac_try) 2>&5
15716 ac_status=$?
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); }; } &&
15719 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15725 ac_lo=$ac_mid; break
15726else
15727 echo "$as_me: failed program was:" >&5
15728sed 's/^/| /' conftest.$ac_ext >&5
15729
15730ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15731 if test $ac_mid -le $ac_hi; then
15732 ac_lo= ac_hi=
15733 break
15734 fi
15735 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15736fi
ac1cb8d3 15737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15738 done
15739else
15740 echo "$as_me: failed program was:" >&5
15741sed 's/^/| /' conftest.$ac_ext >&5
15742
15743ac_lo= ac_hi=
15744fi
ac1cb8d3 15745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15746fi
ac1cb8d3 15747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15748# Binary search between lo and hi bounds.
15749while test "x$ac_lo" != "x$ac_hi"; do
15750 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15751 cat >conftest.$ac_ext <<_ACEOF
15752/* confdefs.h. */
15753_ACEOF
15754cat confdefs.h >>conftest.$ac_ext
15755cat >>conftest.$ac_ext <<_ACEOF
15756/* end confdefs.h. */
15757$ac_includes_default
15758int
15759main ()
15760{
15761static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15762test_array [0] = 0
15763
15764 ;
15765 return 0;
15766}
15767_ACEOF
15768rm -f conftest.$ac_objext
15769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15770 (eval $ac_compile) 2>conftest.er1
a848cd7e 15771 ac_status=$?
ac1cb8d3
VS
15772 grep -v '^ *+' conftest.er1 >conftest.err
15773 rm -f conftest.er1
15774 cat conftest.err >&5
a848cd7e
SC
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } &&
9dd0f6c2 15777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779 (eval $ac_try) 2>&5
15780 ac_status=$?
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; } &&
15783 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15789 ac_hi=$ac_mid
15790else
15791 echo "$as_me: failed program was:" >&5
15792sed 's/^/| /' conftest.$ac_ext >&5
15793
15794ac_lo=`expr '(' $ac_mid ')' + 1`
15795fi
ac1cb8d3 15796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15797done
15798case $ac_lo in
15799?*) ac_cv_sizeof_char=$ac_lo;;
15800'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15801See \`config.log' for more details." >&5
15802echo "$as_me: error: cannot compute sizeof (char), 77
15803See \`config.log' for more details." >&2;}
15804 { (exit 1); exit 1; }; } ;;
15805esac
15806else
15807 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
15808 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15809echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15810 { (exit 1); exit 1; }; }
15811else
15812 cat >conftest.$ac_ext <<_ACEOF
15813/* confdefs.h. */
15814_ACEOF
15815cat confdefs.h >>conftest.$ac_ext
15816cat >>conftest.$ac_ext <<_ACEOF
15817/* end confdefs.h. */
15818$ac_includes_default
15819long longval () { return (long) (sizeof (char)); }
15820unsigned long ulongval () { return (long) (sizeof (char)); }
15821#include <stdio.h>
15822#include <stdlib.h>
15823int
15824main ()
15825{
15826
15827 FILE *f = fopen ("conftest.val", "w");
15828 if (! f)
15829 exit (1);
15830 if (((long) (sizeof (char))) < 0)
15831 {
15832 long i = longval ();
15833 if (i != ((long) (sizeof (char))))
15834 exit (1);
15835 fprintf (f, "%ld\n", i);
15836 }
15837 else
15838 {
15839 unsigned long i = ulongval ();
15840 if (i != ((long) (sizeof (char))))
15841 exit (1);
15842 fprintf (f, "%lu\n", i);
15843 }
15844 exit (ferror (f) || fclose (f) != 0);
15845
15846 ;
15847 return 0;
15848}
15849_ACEOF
15850rm -f conftest$ac_exeext
15851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15852 (eval $ac_link) 2>&5
15853 ac_status=$?
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857 (eval $ac_try) 2>&5
15858 ac_status=$?
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; }; then
15861 ac_cv_sizeof_char=`cat conftest.val`
15862else
15863 echo "$as_me: program exited with status $ac_status" >&5
15864echo "$as_me: failed program was:" >&5
15865sed 's/^/| /' conftest.$ac_ext >&5
15866
15867( exit $ac_status )
15868{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15869See \`config.log' for more details." >&5
15870echo "$as_me: error: cannot compute sizeof (char), 77
15871See \`config.log' for more details." >&2;}
15872 { (exit 1); exit 1; }; }
15873fi
ac1cb8d3 15874rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15875fi
15876fi
15877rm -f conftest.val
15878else
15879 ac_cv_sizeof_char=0
15880fi
15881fi
15882echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15883echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15884cat >>confdefs.h <<_ACEOF
15885#define SIZEOF_CHAR $ac_cv_sizeof_char
15886_ACEOF
15887
15888
15889echo "$as_me:$LINENO: checking for short" >&5
15890echo $ECHO_N "checking for short... $ECHO_C" >&6
15891if test "${ac_cv_type_short+set}" = set; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15893else
15894 cat >conftest.$ac_ext <<_ACEOF
15895/* confdefs.h. */
15896_ACEOF
15897cat confdefs.h >>conftest.$ac_ext
15898cat >>conftest.$ac_ext <<_ACEOF
15899/* end confdefs.h. */
15900$ac_includes_default
15901int
15902main ()
15903{
15904if ((short *) 0)
15905 return 0;
15906if (sizeof (short))
15907 return 0;
15908 ;
15909 return 0;
15910}
15911_ACEOF
15912rm -f conftest.$ac_objext
15913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15914 (eval $ac_compile) 2>conftest.er1
a848cd7e 15915 ac_status=$?
ac1cb8d3
VS
15916 grep -v '^ *+' conftest.er1 >conftest.err
15917 rm -f conftest.er1
15918 cat conftest.err >&5
a848cd7e
SC
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } &&
9dd0f6c2 15921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; } &&
15927 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15933 ac_cv_type_short=yes
15934else
15935 echo "$as_me: failed program was:" >&5
15936sed 's/^/| /' conftest.$ac_ext >&5
15937
15938ac_cv_type_short=no
15939fi
ac1cb8d3 15940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15941fi
15942echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15943echo "${ECHO_T}$ac_cv_type_short" >&6
15944
15945echo "$as_me:$LINENO: checking size of short" >&5
15946echo $ECHO_N "checking size of short... $ECHO_C" >&6
15947if test "${ac_cv_sizeof_short+set}" = set; then
15948 echo $ECHO_N "(cached) $ECHO_C" >&6
15949else
15950 if test "$ac_cv_type_short" = yes; then
15951 # The cast to unsigned long works around a bug in the HP C Compiler
15952 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15953 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15954 # This bug is HP SR number 8606223364.
15955 if test "$cross_compiling" = yes; then
15956 # Depending upon the size, compute the lo and hi bounds.
15957cat >conftest.$ac_ext <<_ACEOF
15958/* confdefs.h. */
15959_ACEOF
15960cat confdefs.h >>conftest.$ac_ext
15961cat >>conftest.$ac_ext <<_ACEOF
15962/* end confdefs.h. */
15963$ac_includes_default
15964int
15965main ()
15966{
15967static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15968test_array [0] = 0
15969
15970 ;
15971 return 0;
15972}
15973_ACEOF
15974rm -f conftest.$ac_objext
15975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15976 (eval $ac_compile) 2>conftest.er1
a848cd7e 15977 ac_status=$?
ac1cb8d3
VS
15978 grep -v '^ *+' conftest.er1 >conftest.err
15979 rm -f conftest.er1
15980 cat conftest.err >&5
a848cd7e
SC
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } &&
9dd0f6c2 15983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15986 ac_status=$?
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; } &&
15989 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15995 ac_lo=0 ac_mid=0
15996 while :; do
15997 cat >conftest.$ac_ext <<_ACEOF
15998/* confdefs.h. */
15999_ACEOF
16000cat confdefs.h >>conftest.$ac_ext
16001cat >>conftest.$ac_ext <<_ACEOF
16002/* end confdefs.h. */
16003$ac_includes_default
16004int
16005main ()
16006{
16007static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16008test_array [0] = 0
16009
16010 ;
16011 return 0;
16012}
16013_ACEOF
16014rm -f conftest.$ac_objext
16015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16016 (eval $ac_compile) 2>conftest.er1
a848cd7e 16017 ac_status=$?
ac1cb8d3
VS
16018 grep -v '^ *+' conftest.er1 >conftest.err
16019 rm -f conftest.er1
16020 cat conftest.err >&5
a848cd7e
SC
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); } &&
9dd0f6c2 16023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025 (eval $ac_try) 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; } &&
16029 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16035 ac_hi=$ac_mid; break
16036else
16037 echo "$as_me: failed program was:" >&5
16038sed 's/^/| /' conftest.$ac_ext >&5
16039
16040ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16041 if test $ac_lo -le $ac_mid; then
16042 ac_lo= ac_hi=
16043 break
16044 fi
16045 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16046fi
ac1cb8d3 16047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16048 done
16049else
16050 echo "$as_me: failed program was:" >&5
16051sed 's/^/| /' conftest.$ac_ext >&5
16052
16053cat >conftest.$ac_ext <<_ACEOF
16054/* confdefs.h. */
16055_ACEOF
16056cat confdefs.h >>conftest.$ac_ext
16057cat >>conftest.$ac_ext <<_ACEOF
16058/* end confdefs.h. */
16059$ac_includes_default
16060int
16061main ()
16062{
16063static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16064test_array [0] = 0
16065
16066 ;
16067 return 0;
16068}
16069_ACEOF
16070rm -f conftest.$ac_objext
16071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16072 (eval $ac_compile) 2>conftest.er1
a848cd7e 16073 ac_status=$?
ac1cb8d3
VS
16074 grep -v '^ *+' conftest.er1 >conftest.err
16075 rm -f conftest.er1
16076 cat conftest.err >&5
a848cd7e
SC
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } &&
9dd0f6c2 16079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081 (eval $ac_try) 2>&5
16082 ac_status=$?
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); }; } &&
16085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16091 ac_hi=-1 ac_mid=-1
16092 while :; do
16093 cat >conftest.$ac_ext <<_ACEOF
16094/* confdefs.h. */
16095_ACEOF
16096cat confdefs.h >>conftest.$ac_ext
16097cat >>conftest.$ac_ext <<_ACEOF
16098/* end confdefs.h. */
16099$ac_includes_default
16100int
16101main ()
16102{
16103static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16104test_array [0] = 0
16105
16106 ;
16107 return 0;
16108}
16109_ACEOF
16110rm -f conftest.$ac_objext
16111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16112 (eval $ac_compile) 2>conftest.er1
a848cd7e 16113 ac_status=$?
ac1cb8d3
VS
16114 grep -v '^ *+' conftest.er1 >conftest.err
16115 rm -f conftest.er1
16116 cat conftest.err >&5
a848cd7e
SC
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); } &&
9dd0f6c2 16119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121 (eval $ac_try) 2>&5
16122 ac_status=$?
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; } &&
16125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16131 ac_lo=$ac_mid; break
16132else
16133 echo "$as_me: failed program was:" >&5
16134sed 's/^/| /' conftest.$ac_ext >&5
16135
16136ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16137 if test $ac_mid -le $ac_hi; then
16138 ac_lo= ac_hi=
16139 break
16140 fi
16141 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16142fi
ac1cb8d3 16143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16144 done
16145else
16146 echo "$as_me: failed program was:" >&5
16147sed 's/^/| /' conftest.$ac_ext >&5
16148
16149ac_lo= ac_hi=
16150fi
ac1cb8d3 16151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16152fi
ac1cb8d3 16153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16154# Binary search between lo and hi bounds.
16155while test "x$ac_lo" != "x$ac_hi"; do
16156 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16157 cat >conftest.$ac_ext <<_ACEOF
16158/* confdefs.h. */
16159_ACEOF
16160cat confdefs.h >>conftest.$ac_ext
16161cat >>conftest.$ac_ext <<_ACEOF
16162/* end confdefs.h. */
16163$ac_includes_default
16164int
16165main ()
16166{
16167static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16168test_array [0] = 0
16169
16170 ;
16171 return 0;
16172}
16173_ACEOF
16174rm -f conftest.$ac_objext
16175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16176 (eval $ac_compile) 2>conftest.er1
a848cd7e 16177 ac_status=$?
ac1cb8d3
VS
16178 grep -v '^ *+' conftest.er1 >conftest.err
16179 rm -f conftest.er1
16180 cat conftest.err >&5
a848cd7e
SC
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } &&
9dd0f6c2 16183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16186 ac_status=$?
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; } &&
16189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16195 ac_hi=$ac_mid
16196else
16197 echo "$as_me: failed program was:" >&5
16198sed 's/^/| /' conftest.$ac_ext >&5
16199
16200ac_lo=`expr '(' $ac_mid ')' + 1`
16201fi
ac1cb8d3 16202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16203done
16204case $ac_lo in
16205?*) ac_cv_sizeof_short=$ac_lo;;
16206'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16207See \`config.log' for more details." >&5
16208echo "$as_me: error: cannot compute sizeof (short), 77
16209See \`config.log' for more details." >&2;}
16210 { (exit 1); exit 1; }; } ;;
16211esac
16212else
16213 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
16214 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16215echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16216 { (exit 1); exit 1; }; }
16217else
16218 cat >conftest.$ac_ext <<_ACEOF
16219/* confdefs.h. */
16220_ACEOF
16221cat confdefs.h >>conftest.$ac_ext
16222cat >>conftest.$ac_ext <<_ACEOF
16223/* end confdefs.h. */
16224$ac_includes_default
16225long longval () { return (long) (sizeof (short)); }
16226unsigned long ulongval () { return (long) (sizeof (short)); }
16227#include <stdio.h>
16228#include <stdlib.h>
16229int
16230main ()
16231{
16232
16233 FILE *f = fopen ("conftest.val", "w");
16234 if (! f)
16235 exit (1);
16236 if (((long) (sizeof (short))) < 0)
16237 {
16238 long i = longval ();
16239 if (i != ((long) (sizeof (short))))
16240 exit (1);
16241 fprintf (f, "%ld\n", i);
16242 }
16243 else
16244 {
16245 unsigned long i = ulongval ();
16246 if (i != ((long) (sizeof (short))))
16247 exit (1);
16248 fprintf (f, "%lu\n", i);
16249 }
16250 exit (ferror (f) || fclose (f) != 0);
16251
16252 ;
16253 return 0;
16254}
16255_ACEOF
16256rm -f conftest$ac_exeext
16257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16258 (eval $ac_link) 2>&5
16259 ac_status=$?
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263 (eval $ac_try) 2>&5
16264 ac_status=$?
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); }; }; then
16267 ac_cv_sizeof_short=`cat conftest.val`
16268else
16269 echo "$as_me: program exited with status $ac_status" >&5
16270echo "$as_me: failed program was:" >&5
16271sed 's/^/| /' conftest.$ac_ext >&5
16272
16273( exit $ac_status )
16274{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16275See \`config.log' for more details." >&5
16276echo "$as_me: error: cannot compute sizeof (short), 77
16277See \`config.log' for more details." >&2;}
16278 { (exit 1); exit 1; }; }
16279fi
ac1cb8d3 16280rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16281fi
16282fi
16283rm -f conftest.val
16284else
16285 ac_cv_sizeof_short=0
16286fi
16287fi
16288echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16289echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16290cat >>confdefs.h <<_ACEOF
16291#define SIZEOF_SHORT $ac_cv_sizeof_short
16292_ACEOF
16293
16294
16295echo "$as_me:$LINENO: checking for void *" >&5
16296echo $ECHO_N "checking for void *... $ECHO_C" >&6
16297if test "${ac_cv_type_void_p+set}" = set; then
16298 echo $ECHO_N "(cached) $ECHO_C" >&6
16299else
16300 cat >conftest.$ac_ext <<_ACEOF
16301/* confdefs.h. */
16302_ACEOF
16303cat confdefs.h >>conftest.$ac_ext
16304cat >>conftest.$ac_ext <<_ACEOF
16305/* end confdefs.h. */
16306$ac_includes_default
16307int
16308main ()
16309{
16310if ((void * *) 0)
16311 return 0;
16312if (sizeof (void *))
16313 return 0;
16314 ;
16315 return 0;
16316}
16317_ACEOF
16318rm -f conftest.$ac_objext
16319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16320 (eval $ac_compile) 2>conftest.er1
a848cd7e 16321 ac_status=$?
ac1cb8d3
VS
16322 grep -v '^ *+' conftest.er1 >conftest.err
16323 rm -f conftest.er1
16324 cat conftest.err >&5
a848cd7e
SC
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } &&
9dd0f6c2 16327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16329 (eval $ac_try) 2>&5
16330 ac_status=$?
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); }; } &&
16333 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16339 ac_cv_type_void_p=yes
16340else
16341 echo "$as_me: failed program was:" >&5
16342sed 's/^/| /' conftest.$ac_ext >&5
16343
16344ac_cv_type_void_p=no
16345fi
ac1cb8d3 16346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16347fi
16348echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16349echo "${ECHO_T}$ac_cv_type_void_p" >&6
16350
16351echo "$as_me:$LINENO: checking size of void *" >&5
16352echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16353if test "${ac_cv_sizeof_void_p+set}" = set; then
16354 echo $ECHO_N "(cached) $ECHO_C" >&6
16355else
16356 if test "$ac_cv_type_void_p" = yes; then
16357 # The cast to unsigned long works around a bug in the HP C Compiler
16358 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16359 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16360 # This bug is HP SR number 8606223364.
16361 if test "$cross_compiling" = yes; then
16362 # Depending upon the size, compute the lo and hi bounds.
16363cat >conftest.$ac_ext <<_ACEOF
16364/* confdefs.h. */
16365_ACEOF
16366cat confdefs.h >>conftest.$ac_ext
16367cat >>conftest.$ac_ext <<_ACEOF
16368/* end confdefs.h. */
16369$ac_includes_default
16370int
16371main ()
16372{
16373static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16374test_array [0] = 0
16375
16376 ;
16377 return 0;
16378}
16379_ACEOF
16380rm -f conftest.$ac_objext
16381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16382 (eval $ac_compile) 2>conftest.er1
a848cd7e 16383 ac_status=$?
ac1cb8d3
VS
16384 grep -v '^ *+' conftest.er1 >conftest.err
16385 rm -f conftest.er1
16386 cat conftest.err >&5
a848cd7e
SC
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
9dd0f6c2 16389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16392 ac_status=$?
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; } &&
16395 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16401 ac_lo=0 ac_mid=0
16402 while :; do
16403 cat >conftest.$ac_ext <<_ACEOF
16404/* confdefs.h. */
16405_ACEOF
16406cat confdefs.h >>conftest.$ac_ext
16407cat >>conftest.$ac_ext <<_ACEOF
16408/* end confdefs.h. */
16409$ac_includes_default
16410int
16411main ()
16412{
16413static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16414test_array [0] = 0
16415
16416 ;
16417 return 0;
16418}
16419_ACEOF
16420rm -f conftest.$ac_objext
16421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16422 (eval $ac_compile) 2>conftest.er1
a848cd7e 16423 ac_status=$?
ac1cb8d3
VS
16424 grep -v '^ *+' conftest.er1 >conftest.err
16425 rm -f conftest.er1
16426 cat conftest.err >&5
a848cd7e
SC
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } &&
9dd0f6c2 16429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16431 (eval $ac_try) 2>&5
16432 ac_status=$?
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); }; } &&
16435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16441 ac_hi=$ac_mid; break
16442else
16443 echo "$as_me: failed program was:" >&5
16444sed 's/^/| /' conftest.$ac_ext >&5
16445
16446ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16447 if test $ac_lo -le $ac_mid; then
16448 ac_lo= ac_hi=
16449 break
16450 fi
16451 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16452fi
ac1cb8d3 16453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16454 done
16455else
16456 echo "$as_me: failed program was:" >&5
16457sed 's/^/| /' conftest.$ac_ext >&5
16458
16459cat >conftest.$ac_ext <<_ACEOF
16460/* confdefs.h. */
16461_ACEOF
16462cat confdefs.h >>conftest.$ac_ext
16463cat >>conftest.$ac_ext <<_ACEOF
16464/* end confdefs.h. */
16465$ac_includes_default
16466int
16467main ()
16468{
16469static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16470test_array [0] = 0
16471
16472 ;
16473 return 0;
16474}
16475_ACEOF
16476rm -f conftest.$ac_objext
16477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16478 (eval $ac_compile) 2>conftest.er1
a848cd7e 16479 ac_status=$?
ac1cb8d3
VS
16480 grep -v '^ *+' conftest.er1 >conftest.err
16481 rm -f conftest.er1
16482 cat conftest.err >&5
a848cd7e
SC
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } &&
9dd0f6c2 16485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16487 (eval $ac_try) 2>&5
16488 ac_status=$?
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); }; } &&
16491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; }; then
16497 ac_hi=-1 ac_mid=-1
16498 while :; do
16499 cat >conftest.$ac_ext <<_ACEOF
16500/* confdefs.h. */
16501_ACEOF
16502cat confdefs.h >>conftest.$ac_ext
16503cat >>conftest.$ac_ext <<_ACEOF
16504/* end confdefs.h. */
16505$ac_includes_default
16506int
16507main ()
16508{
16509static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16510test_array [0] = 0
16511
16512 ;
16513 return 0;
16514}
16515_ACEOF
16516rm -f conftest.$ac_objext
16517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16518 (eval $ac_compile) 2>conftest.er1
a848cd7e 16519 ac_status=$?
ac1cb8d3
VS
16520 grep -v '^ *+' conftest.er1 >conftest.err
16521 rm -f conftest.er1
16522 cat conftest.err >&5
a848cd7e
SC
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } &&
9dd0f6c2 16525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527 (eval $ac_try) 2>&5
16528 ac_status=$?
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; } &&
16531 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16537 ac_lo=$ac_mid; break
16538else
16539 echo "$as_me: failed program was:" >&5
16540sed 's/^/| /' conftest.$ac_ext >&5
16541
16542ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16543 if test $ac_mid -le $ac_hi; then
16544 ac_lo= ac_hi=
16545 break
16546 fi
16547 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16548fi
ac1cb8d3 16549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16550 done
16551else
16552 echo "$as_me: failed program was:" >&5
16553sed 's/^/| /' conftest.$ac_ext >&5
16554
16555ac_lo= ac_hi=
16556fi
ac1cb8d3 16557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16558fi
ac1cb8d3 16559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16560# Binary search between lo and hi bounds.
16561while test "x$ac_lo" != "x$ac_hi"; do
16562 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16563 cat >conftest.$ac_ext <<_ACEOF
16564/* confdefs.h. */
16565_ACEOF
16566cat confdefs.h >>conftest.$ac_ext
16567cat >>conftest.$ac_ext <<_ACEOF
16568/* end confdefs.h. */
16569$ac_includes_default
16570int
16571main ()
16572{
16573static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16574test_array [0] = 0
16575
16576 ;
16577 return 0;
16578}
16579_ACEOF
16580rm -f conftest.$ac_objext
16581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16582 (eval $ac_compile) 2>conftest.er1
a848cd7e 16583 ac_status=$?
ac1cb8d3
VS
16584 grep -v '^ *+' conftest.er1 >conftest.err
16585 rm -f conftest.er1
16586 cat conftest.err >&5
a848cd7e
SC
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } &&
9dd0f6c2 16589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16591 (eval $ac_try) 2>&5
16592 ac_status=$?
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; } &&
16595 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16601 ac_hi=$ac_mid
16602else
16603 echo "$as_me: failed program was:" >&5
16604sed 's/^/| /' conftest.$ac_ext >&5
16605
16606ac_lo=`expr '(' $ac_mid ')' + 1`
16607fi
ac1cb8d3 16608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16609done
16610case $ac_lo in
16611?*) ac_cv_sizeof_void_p=$ac_lo;;
16612'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16613See \`config.log' for more details." >&5
16614echo "$as_me: error: cannot compute sizeof (void *), 77
16615See \`config.log' for more details." >&2;}
16616 { (exit 1); exit 1; }; } ;;
16617esac
16618else
16619 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
16620 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16621echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16622 { (exit 1); exit 1; }; }
16623else
16624 cat >conftest.$ac_ext <<_ACEOF
16625/* confdefs.h. */
16626_ACEOF
16627cat confdefs.h >>conftest.$ac_ext
16628cat >>conftest.$ac_ext <<_ACEOF
16629/* end confdefs.h. */
16630$ac_includes_default
16631long longval () { return (long) (sizeof (void *)); }
16632unsigned long ulongval () { return (long) (sizeof (void *)); }
16633#include <stdio.h>
16634#include <stdlib.h>
16635int
16636main ()
16637{
16638
16639 FILE *f = fopen ("conftest.val", "w");
16640 if (! f)
16641 exit (1);
16642 if (((long) (sizeof (void *))) < 0)
16643 {
16644 long i = longval ();
16645 if (i != ((long) (sizeof (void *))))
16646 exit (1);
16647 fprintf (f, "%ld\n", i);
16648 }
16649 else
16650 {
16651 unsigned long i = ulongval ();
16652 if (i != ((long) (sizeof (void *))))
16653 exit (1);
16654 fprintf (f, "%lu\n", i);
16655 }
16656 exit (ferror (f) || fclose (f) != 0);
16657
16658 ;
16659 return 0;
16660}
16661_ACEOF
16662rm -f conftest$ac_exeext
16663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16664 (eval $ac_link) 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
16673 ac_cv_sizeof_void_p=`cat conftest.val`
16674else
16675 echo "$as_me: program exited with status $ac_status" >&5
16676echo "$as_me: failed program was:" >&5
16677sed 's/^/| /' conftest.$ac_ext >&5
16678
16679( exit $ac_status )
16680{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16681See \`config.log' for more details." >&5
16682echo "$as_me: error: cannot compute sizeof (void *), 77
16683See \`config.log' for more details." >&2;}
16684 { (exit 1); exit 1; }; }
16685fi
ac1cb8d3 16686rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16687fi
16688fi
16689rm -f conftest.val
16690else
16691 ac_cv_sizeof_void_p=0
16692fi
16693fi
16694echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16695echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16696cat >>confdefs.h <<_ACEOF
16697#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16698_ACEOF
16699
16700
16701echo "$as_me:$LINENO: checking for int" >&5
16702echo $ECHO_N "checking for int... $ECHO_C" >&6
16703if test "${ac_cv_type_int+set}" = set; then
16704 echo $ECHO_N "(cached) $ECHO_C" >&6
16705else
16706 cat >conftest.$ac_ext <<_ACEOF
16707/* confdefs.h. */
16708_ACEOF
16709cat confdefs.h >>conftest.$ac_ext
16710cat >>conftest.$ac_ext <<_ACEOF
16711/* end confdefs.h. */
16712$ac_includes_default
16713int
16714main ()
16715{
16716if ((int *) 0)
16717 return 0;
16718if (sizeof (int))
16719 return 0;
16720 ;
16721 return 0;
16722}
16723_ACEOF
16724rm -f conftest.$ac_objext
16725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16726 (eval $ac_compile) 2>conftest.er1
a848cd7e 16727 ac_status=$?
ac1cb8d3
VS
16728 grep -v '^ *+' conftest.er1 >conftest.err
16729 rm -f conftest.er1
16730 cat conftest.err >&5
a848cd7e
SC
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
9dd0f6c2 16733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; } &&
16739 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16745 ac_cv_type_int=yes
16746else
16747 echo "$as_me: failed program was:" >&5
16748sed 's/^/| /' conftest.$ac_ext >&5
16749
16750ac_cv_type_int=no
16751fi
ac1cb8d3 16752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16753fi
16754echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16755echo "${ECHO_T}$ac_cv_type_int" >&6
16756
16757echo "$as_me:$LINENO: checking size of int" >&5
16758echo $ECHO_N "checking size of int... $ECHO_C" >&6
16759if test "${ac_cv_sizeof_int+set}" = set; then
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16761else
16762 if test "$ac_cv_type_int" = yes; then
16763 # The cast to unsigned long works around a bug in the HP C Compiler
16764 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16765 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16766 # This bug is HP SR number 8606223364.
16767 if test "$cross_compiling" = yes; then
16768 # Depending upon the size, compute the lo and hi bounds.
16769cat >conftest.$ac_ext <<_ACEOF
16770/* confdefs.h. */
16771_ACEOF
16772cat confdefs.h >>conftest.$ac_ext
16773cat >>conftest.$ac_ext <<_ACEOF
16774/* end confdefs.h. */
16775$ac_includes_default
16776int
16777main ()
16778{
16779static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16780test_array [0] = 0
16781
16782 ;
16783 return 0;
16784}
16785_ACEOF
16786rm -f conftest.$ac_objext
16787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16788 (eval $ac_compile) 2>conftest.er1
a848cd7e 16789 ac_status=$?
ac1cb8d3
VS
16790 grep -v '^ *+' conftest.er1 >conftest.err
16791 rm -f conftest.er1
16792 cat conftest.err >&5
a848cd7e
SC
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } &&
9dd0f6c2 16795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; } &&
16801 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16807 ac_lo=0 ac_mid=0
16808 while :; do
16809 cat >conftest.$ac_ext <<_ACEOF
16810/* confdefs.h. */
16811_ACEOF
16812cat confdefs.h >>conftest.$ac_ext
16813cat >>conftest.$ac_ext <<_ACEOF
16814/* end confdefs.h. */
16815$ac_includes_default
16816int
16817main ()
16818{
16819static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16820test_array [0] = 0
16821
16822 ;
16823 return 0;
16824}
16825_ACEOF
16826rm -f conftest.$ac_objext
16827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16828 (eval $ac_compile) 2>conftest.er1
a848cd7e 16829 ac_status=$?
ac1cb8d3
VS
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
a848cd7e
SC
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
9dd0f6c2 16835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16838 ac_status=$?
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; } &&
16841 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16847 ac_hi=$ac_mid; break
16848else
16849 echo "$as_me: failed program was:" >&5
16850sed 's/^/| /' conftest.$ac_ext >&5
16851
16852ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16853 if test $ac_lo -le $ac_mid; then
16854 ac_lo= ac_hi=
16855 break
16856 fi
16857 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16858fi
ac1cb8d3 16859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16860 done
16861else
16862 echo "$as_me: failed program was:" >&5
16863sed 's/^/| /' conftest.$ac_ext >&5
16864
16865cat >conftest.$ac_ext <<_ACEOF
16866/* confdefs.h. */
16867_ACEOF
16868cat confdefs.h >>conftest.$ac_ext
16869cat >>conftest.$ac_ext <<_ACEOF
16870/* end confdefs.h. */
16871$ac_includes_default
16872int
16873main ()
16874{
16875static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16876test_array [0] = 0
16877
16878 ;
16879 return 0;
16880}
16881_ACEOF
16882rm -f conftest.$ac_objext
16883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16884 (eval $ac_compile) 2>conftest.er1
a848cd7e 16885 ac_status=$?
ac1cb8d3
VS
16886 grep -v '^ *+' conftest.er1 >conftest.err
16887 rm -f conftest.er1
16888 cat conftest.err >&5
a848cd7e
SC
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } &&
9dd0f6c2 16891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893 (eval $ac_try) 2>&5
16894 ac_status=$?
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; } &&
16897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16903 ac_hi=-1 ac_mid=-1
16904 while :; do
16905 cat >conftest.$ac_ext <<_ACEOF
16906/* confdefs.h. */
16907_ACEOF
16908cat confdefs.h >>conftest.$ac_ext
16909cat >>conftest.$ac_ext <<_ACEOF
16910/* end confdefs.h. */
16911$ac_includes_default
16912int
16913main ()
16914{
16915static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16916test_array [0] = 0
16917
16918 ;
16919 return 0;
16920}
16921_ACEOF
16922rm -f conftest.$ac_objext
16923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16924 (eval $ac_compile) 2>conftest.er1
a848cd7e 16925 ac_status=$?
ac1cb8d3
VS
16926 grep -v '^ *+' conftest.er1 >conftest.err
16927 rm -f conftest.er1
16928 cat conftest.err >&5
a848cd7e
SC
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } &&
9dd0f6c2 16931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16943 ac_lo=$ac_mid; break
16944else
16945 echo "$as_me: failed program was:" >&5
16946sed 's/^/| /' conftest.$ac_ext >&5
16947
16948ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16949 if test $ac_mid -le $ac_hi; then
16950 ac_lo= ac_hi=
16951 break
16952 fi
16953 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16954fi
ac1cb8d3 16955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16956 done
16957else
16958 echo "$as_me: failed program was:" >&5
16959sed 's/^/| /' conftest.$ac_ext >&5
16960
16961ac_lo= ac_hi=
16962fi
ac1cb8d3 16963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16964fi
ac1cb8d3 16965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16966# Binary search between lo and hi bounds.
16967while test "x$ac_lo" != "x$ac_hi"; do
16968 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16969 cat >conftest.$ac_ext <<_ACEOF
16970/* confdefs.h. */
16971_ACEOF
16972cat confdefs.h >>conftest.$ac_ext
16973cat >>conftest.$ac_ext <<_ACEOF
16974/* end confdefs.h. */
16975$ac_includes_default
16976int
16977main ()
16978{
16979static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16980test_array [0] = 0
16981
16982 ;
16983 return 0;
16984}
16985_ACEOF
16986rm -f conftest.$ac_objext
16987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16988 (eval $ac_compile) 2>conftest.er1
a848cd7e 16989 ac_status=$?
ac1cb8d3
VS
16990 grep -v '^ *+' conftest.er1 >conftest.err
16991 rm -f conftest.er1
16992 cat conftest.err >&5
a848cd7e
SC
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } &&
9dd0f6c2 16995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16997 (eval $ac_try) 2>&5
16998 ac_status=$?
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); }; } &&
17001 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17007 ac_hi=$ac_mid
17008else
17009 echo "$as_me: failed program was:" >&5
17010sed 's/^/| /' conftest.$ac_ext >&5
17011
17012ac_lo=`expr '(' $ac_mid ')' + 1`
17013fi
ac1cb8d3 17014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17015done
17016case $ac_lo in
17017?*) ac_cv_sizeof_int=$ac_lo;;
17018'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17019See \`config.log' for more details." >&5
17020echo "$as_me: error: cannot compute sizeof (int), 77
17021See \`config.log' for more details." >&2;}
17022 { (exit 1); exit 1; }; } ;;
17023esac
17024else
17025 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17026 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17027echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17028 { (exit 1); exit 1; }; }
17029else
17030 cat >conftest.$ac_ext <<_ACEOF
17031/* confdefs.h. */
17032_ACEOF
17033cat confdefs.h >>conftest.$ac_ext
17034cat >>conftest.$ac_ext <<_ACEOF
17035/* end confdefs.h. */
17036$ac_includes_default
17037long longval () { return (long) (sizeof (int)); }
17038unsigned long ulongval () { return (long) (sizeof (int)); }
17039#include <stdio.h>
17040#include <stdlib.h>
17041int
17042main ()
17043{
17044
17045 FILE *f = fopen ("conftest.val", "w");
17046 if (! f)
17047 exit (1);
17048 if (((long) (sizeof (int))) < 0)
17049 {
17050 long i = longval ();
17051 if (i != ((long) (sizeof (int))))
17052 exit (1);
17053 fprintf (f, "%ld\n", i);
17054 }
17055 else
17056 {
17057 unsigned long i = ulongval ();
17058 if (i != ((long) (sizeof (int))))
17059 exit (1);
17060 fprintf (f, "%lu\n", i);
17061 }
17062 exit (ferror (f) || fclose (f) != 0);
17063
17064 ;
17065 return 0;
17066}
17067_ACEOF
17068rm -f conftest$ac_exeext
17069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17070 (eval $ac_link) 2>&5
17071 ac_status=$?
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; }; then
17079 ac_cv_sizeof_int=`cat conftest.val`
17080else
17081 echo "$as_me: program exited with status $ac_status" >&5
17082echo "$as_me: failed program was:" >&5
17083sed 's/^/| /' conftest.$ac_ext >&5
17084
17085( exit $ac_status )
17086{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17087See \`config.log' for more details." >&5
17088echo "$as_me: error: cannot compute sizeof (int), 77
17089See \`config.log' for more details." >&2;}
17090 { (exit 1); exit 1; }; }
17091fi
ac1cb8d3 17092rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17093fi
17094fi
17095rm -f conftest.val
17096else
17097 ac_cv_sizeof_int=0
17098fi
17099fi
17100echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17101echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17102cat >>confdefs.h <<_ACEOF
17103#define SIZEOF_INT $ac_cv_sizeof_int
17104_ACEOF
17105
17106
17107echo "$as_me:$LINENO: checking for long" >&5
17108echo $ECHO_N "checking for long... $ECHO_C" >&6
17109if test "${ac_cv_type_long+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17111else
17112 cat >conftest.$ac_ext <<_ACEOF
17113/* confdefs.h. */
17114_ACEOF
17115cat confdefs.h >>conftest.$ac_ext
17116cat >>conftest.$ac_ext <<_ACEOF
17117/* end confdefs.h. */
17118$ac_includes_default
17119int
17120main ()
17121{
17122if ((long *) 0)
17123 return 0;
17124if (sizeof (long))
17125 return 0;
17126 ;
17127 return 0;
17128}
17129_ACEOF
17130rm -f conftest.$ac_objext
17131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17132 (eval $ac_compile) 2>conftest.er1
a848cd7e 17133 ac_status=$?
ac1cb8d3
VS
17134 grep -v '^ *+' conftest.er1 >conftest.err
17135 rm -f conftest.er1
17136 cat conftest.err >&5
a848cd7e
SC
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } &&
9dd0f6c2 17139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; } &&
17145 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17151 ac_cv_type_long=yes
17152else
17153 echo "$as_me: failed program was:" >&5
17154sed 's/^/| /' conftest.$ac_ext >&5
17155
17156ac_cv_type_long=no
17157fi
ac1cb8d3 17158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17159fi
17160echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17161echo "${ECHO_T}$ac_cv_type_long" >&6
17162
17163echo "$as_me:$LINENO: checking size of long" >&5
17164echo $ECHO_N "checking size of long... $ECHO_C" >&6
17165if test "${ac_cv_sizeof_long+set}" = set; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17167else
17168 if test "$ac_cv_type_long" = yes; then
17169 # The cast to unsigned long works around a bug in the HP C Compiler
17170 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17171 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17172 # This bug is HP SR number 8606223364.
17173 if test "$cross_compiling" = yes; then
17174 # Depending upon the size, compute the lo and hi bounds.
17175cat >conftest.$ac_ext <<_ACEOF
17176/* confdefs.h. */
17177_ACEOF
17178cat confdefs.h >>conftest.$ac_ext
17179cat >>conftest.$ac_ext <<_ACEOF
17180/* end confdefs.h. */
17181$ac_includes_default
17182int
17183main ()
17184{
17185static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17186test_array [0] = 0
17187
17188 ;
17189 return 0;
17190}
17191_ACEOF
17192rm -f conftest.$ac_objext
17193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17194 (eval $ac_compile) 2>conftest.er1
a848cd7e 17195 ac_status=$?
ac1cb8d3
VS
17196 grep -v '^ *+' conftest.er1 >conftest.err
17197 rm -f conftest.er1
17198 cat conftest.err >&5
a848cd7e
SC
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); } &&
9dd0f6c2 17201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203 (eval $ac_try) 2>&5
17204 ac_status=$?
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; } &&
17207 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17213 ac_lo=0 ac_mid=0
17214 while :; do
17215 cat >conftest.$ac_ext <<_ACEOF
17216/* confdefs.h. */
17217_ACEOF
17218cat confdefs.h >>conftest.$ac_ext
17219cat >>conftest.$ac_ext <<_ACEOF
17220/* end confdefs.h. */
17221$ac_includes_default
17222int
17223main ()
17224{
17225static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17226test_array [0] = 0
17227
17228 ;
17229 return 0;
17230}
17231_ACEOF
17232rm -f conftest.$ac_objext
17233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17234 (eval $ac_compile) 2>conftest.er1
a848cd7e 17235 ac_status=$?
ac1cb8d3
VS
17236 grep -v '^ *+' conftest.er1 >conftest.err
17237 rm -f conftest.er1
17238 cat conftest.err >&5
a848cd7e
SC
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } &&
9dd0f6c2 17241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17243 (eval $ac_try) 2>&5
17244 ac_status=$?
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; } &&
17247 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17253 ac_hi=$ac_mid; break
17254else
17255 echo "$as_me: failed program was:" >&5
17256sed 's/^/| /' conftest.$ac_ext >&5
17257
17258ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17259 if test $ac_lo -le $ac_mid; then
17260 ac_lo= ac_hi=
17261 break
17262 fi
17263 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17264fi
ac1cb8d3 17265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17266 done
17267else
17268 echo "$as_me: failed program was:" >&5
17269sed 's/^/| /' conftest.$ac_ext >&5
17270
17271cat >conftest.$ac_ext <<_ACEOF
17272/* confdefs.h. */
17273_ACEOF
17274cat confdefs.h >>conftest.$ac_ext
17275cat >>conftest.$ac_ext <<_ACEOF
17276/* end confdefs.h. */
17277$ac_includes_default
17278int
17279main ()
17280{
17281static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17282test_array [0] = 0
17283
17284 ;
17285 return 0;
17286}
17287_ACEOF
17288rm -f conftest.$ac_objext
17289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17290 (eval $ac_compile) 2>conftest.er1
a848cd7e 17291 ac_status=$?
ac1cb8d3
VS
17292 grep -v '^ *+' conftest.er1 >conftest.err
17293 rm -f conftest.er1
17294 cat conftest.err >&5
a848cd7e
SC
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } &&
9dd0f6c2 17297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; } &&
17303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17309 ac_hi=-1 ac_mid=-1
17310 while :; do
17311 cat >conftest.$ac_ext <<_ACEOF
17312/* confdefs.h. */
17313_ACEOF
17314cat confdefs.h >>conftest.$ac_ext
17315cat >>conftest.$ac_ext <<_ACEOF
17316/* end confdefs.h. */
17317$ac_includes_default
17318int
17319main ()
17320{
17321static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17322test_array [0] = 0
17323
17324 ;
17325 return 0;
17326}
17327_ACEOF
17328rm -f conftest.$ac_objext
17329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17330 (eval $ac_compile) 2>conftest.er1
a848cd7e 17331 ac_status=$?
ac1cb8d3
VS
17332 grep -v '^ *+' conftest.er1 >conftest.err
17333 rm -f conftest.er1
17334 cat conftest.err >&5
a848cd7e
SC
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); } &&
9dd0f6c2 17337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; } &&
17343 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17349 ac_lo=$ac_mid; break
17350else
17351 echo "$as_me: failed program was:" >&5
17352sed 's/^/| /' conftest.$ac_ext >&5
17353
17354ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17355 if test $ac_mid -le $ac_hi; then
17356 ac_lo= ac_hi=
17357 break
17358 fi
17359 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17360fi
ac1cb8d3 17361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17362 done
17363else
17364 echo "$as_me: failed program was:" >&5
17365sed 's/^/| /' conftest.$ac_ext >&5
17366
17367ac_lo= ac_hi=
17368fi
ac1cb8d3 17369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17370fi
ac1cb8d3 17371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17372# Binary search between lo and hi bounds.
17373while test "x$ac_lo" != "x$ac_hi"; do
17374 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17375 cat >conftest.$ac_ext <<_ACEOF
17376/* confdefs.h. */
17377_ACEOF
17378cat confdefs.h >>conftest.$ac_ext
17379cat >>conftest.$ac_ext <<_ACEOF
17380/* end confdefs.h. */
17381$ac_includes_default
17382int
17383main ()
17384{
17385static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17386test_array [0] = 0
17387
17388 ;
17389 return 0;
17390}
17391_ACEOF
17392rm -f conftest.$ac_objext
17393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17394 (eval $ac_compile) 2>conftest.er1
a848cd7e 17395 ac_status=$?
ac1cb8d3
VS
17396 grep -v '^ *+' conftest.er1 >conftest.err
17397 rm -f conftest.er1
17398 cat conftest.err >&5
a848cd7e
SC
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); } &&
9dd0f6c2 17401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; } &&
17407 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17413 ac_hi=$ac_mid
17414else
17415 echo "$as_me: failed program was:" >&5
17416sed 's/^/| /' conftest.$ac_ext >&5
17417
17418ac_lo=`expr '(' $ac_mid ')' + 1`
17419fi
ac1cb8d3 17420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17421done
17422case $ac_lo in
17423?*) ac_cv_sizeof_long=$ac_lo;;
17424'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17425See \`config.log' for more details." >&5
17426echo "$as_me: error: cannot compute sizeof (long), 77
17427See \`config.log' for more details." >&2;}
17428 { (exit 1); exit 1; }; } ;;
17429esac
17430else
17431 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17432 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17433echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17434 { (exit 1); exit 1; }; }
17435else
17436 cat >conftest.$ac_ext <<_ACEOF
17437/* confdefs.h. */
17438_ACEOF
17439cat confdefs.h >>conftest.$ac_ext
17440cat >>conftest.$ac_ext <<_ACEOF
17441/* end confdefs.h. */
17442$ac_includes_default
17443long longval () { return (long) (sizeof (long)); }
17444unsigned long ulongval () { return (long) (sizeof (long)); }
17445#include <stdio.h>
17446#include <stdlib.h>
17447int
17448main ()
17449{
17450
17451 FILE *f = fopen ("conftest.val", "w");
17452 if (! f)
17453 exit (1);
17454 if (((long) (sizeof (long))) < 0)
17455 {
17456 long i = longval ();
17457 if (i != ((long) (sizeof (long))))
17458 exit (1);
17459 fprintf (f, "%ld\n", i);
17460 }
17461 else
17462 {
17463 unsigned long i = ulongval ();
17464 if (i != ((long) (sizeof (long))))
17465 exit (1);
17466 fprintf (f, "%lu\n", i);
17467 }
17468 exit (ferror (f) || fclose (f) != 0);
17469
17470 ;
17471 return 0;
17472}
17473_ACEOF
17474rm -f conftest$ac_exeext
17475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17476 (eval $ac_link) 2>&5
17477 ac_status=$?
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; }; then
17485 ac_cv_sizeof_long=`cat conftest.val`
17486else
17487 echo "$as_me: program exited with status $ac_status" >&5
17488echo "$as_me: failed program was:" >&5
17489sed 's/^/| /' conftest.$ac_ext >&5
17490
17491( exit $ac_status )
17492{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17493See \`config.log' for more details." >&5
17494echo "$as_me: error: cannot compute sizeof (long), 77
17495See \`config.log' for more details." >&2;}
17496 { (exit 1); exit 1; }; }
17497fi
ac1cb8d3 17498rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17499fi
17500fi
17501rm -f conftest.val
17502else
17503 ac_cv_sizeof_long=0
17504fi
17505fi
17506echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17507echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17508cat >>confdefs.h <<_ACEOF
17509#define SIZEOF_LONG $ac_cv_sizeof_long
17510_ACEOF
17511
17512
17513echo "$as_me:$LINENO: checking for size_t" >&5
17514echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17515if test "${ac_cv_type_size_t+set}" = set; then
17516 echo $ECHO_N "(cached) $ECHO_C" >&6
17517else
17518 cat >conftest.$ac_ext <<_ACEOF
17519/* confdefs.h. */
17520_ACEOF
17521cat confdefs.h >>conftest.$ac_ext
17522cat >>conftest.$ac_ext <<_ACEOF
17523/* end confdefs.h. */
17524$ac_includes_default
17525int
17526main ()
17527{
17528if ((size_t *) 0)
17529 return 0;
17530if (sizeof (size_t))
17531 return 0;
17532 ;
17533 return 0;
17534}
17535_ACEOF
17536rm -f conftest.$ac_objext
17537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17538 (eval $ac_compile) 2>conftest.er1
a848cd7e 17539 ac_status=$?
ac1cb8d3
VS
17540 grep -v '^ *+' conftest.er1 >conftest.err
17541 rm -f conftest.er1
17542 cat conftest.err >&5
a848cd7e
SC
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } &&
9dd0f6c2 17545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17548 ac_status=$?
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; } &&
17551 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17557 ac_cv_type_size_t=yes
17558else
17559 echo "$as_me: failed program was:" >&5
17560sed 's/^/| /' conftest.$ac_ext >&5
17561
17562ac_cv_type_size_t=no
17563fi
ac1cb8d3 17564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17565fi
17566echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17567echo "${ECHO_T}$ac_cv_type_size_t" >&6
17568
17569echo "$as_me:$LINENO: checking size of size_t" >&5
17570echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17571if test "${ac_cv_sizeof_size_t+set}" = set; then
17572 echo $ECHO_N "(cached) $ECHO_C" >&6
17573else
17574 if test "$ac_cv_type_size_t" = yes; then
17575 # The cast to unsigned long works around a bug in the HP C Compiler
17576 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17577 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17578 # This bug is HP SR number 8606223364.
17579 if test "$cross_compiling" = yes; then
17580 # Depending upon the size, compute the lo and hi bounds.
17581cat >conftest.$ac_ext <<_ACEOF
17582/* confdefs.h. */
17583_ACEOF
17584cat confdefs.h >>conftest.$ac_ext
17585cat >>conftest.$ac_ext <<_ACEOF
17586/* end confdefs.h. */
17587$ac_includes_default
17588int
17589main ()
17590{
17591static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17592test_array [0] = 0
17593
17594 ;
17595 return 0;
17596}
17597_ACEOF
17598rm -f conftest.$ac_objext
17599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17600 (eval $ac_compile) 2>conftest.er1
a848cd7e 17601 ac_status=$?
ac1cb8d3
VS
17602 grep -v '^ *+' conftest.er1 >conftest.err
17603 rm -f conftest.er1
17604 cat conftest.err >&5
a848cd7e
SC
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } &&
9dd0f6c2 17607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609 (eval $ac_try) 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; } &&
17613 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17619 ac_lo=0 ac_mid=0
17620 while :; do
17621 cat >conftest.$ac_ext <<_ACEOF
17622/* confdefs.h. */
17623_ACEOF
17624cat confdefs.h >>conftest.$ac_ext
17625cat >>conftest.$ac_ext <<_ACEOF
17626/* end confdefs.h. */
17627$ac_includes_default
17628int
17629main ()
17630{
17631static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17632test_array [0] = 0
17633
17634 ;
17635 return 0;
17636}
17637_ACEOF
17638rm -f conftest.$ac_objext
17639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17640 (eval $ac_compile) 2>conftest.er1
a848cd7e 17641 ac_status=$?
ac1cb8d3
VS
17642 grep -v '^ *+' conftest.er1 >conftest.err
17643 rm -f conftest.er1
17644 cat conftest.err >&5
a848cd7e
SC
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } &&
9dd0f6c2 17647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; } &&
17653 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17659 ac_hi=$ac_mid; break
17660else
17661 echo "$as_me: failed program was:" >&5
17662sed 's/^/| /' conftest.$ac_ext >&5
17663
17664ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17665 if test $ac_lo -le $ac_mid; then
17666 ac_lo= ac_hi=
17667 break
17668 fi
17669 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17670fi
ac1cb8d3 17671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17672 done
17673else
17674 echo "$as_me: failed program was:" >&5
17675sed 's/^/| /' conftest.$ac_ext >&5
17676
17677cat >conftest.$ac_ext <<_ACEOF
17678/* confdefs.h. */
17679_ACEOF
17680cat confdefs.h >>conftest.$ac_ext
17681cat >>conftest.$ac_ext <<_ACEOF
17682/* end confdefs.h. */
17683$ac_includes_default
17684int
17685main ()
17686{
17687static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17688test_array [0] = 0
17689
17690 ;
17691 return 0;
17692}
17693_ACEOF
17694rm -f conftest.$ac_objext
17695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17696 (eval $ac_compile) 2>conftest.er1
a848cd7e 17697 ac_status=$?
ac1cb8d3
VS
17698 grep -v '^ *+' conftest.er1 >conftest.err
17699 rm -f conftest.er1
17700 cat conftest.err >&5
a848cd7e
SC
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); } &&
9dd0f6c2 17703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } &&
17709 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17715 ac_hi=-1 ac_mid=-1
17716 while :; do
17717 cat >conftest.$ac_ext <<_ACEOF
17718/* confdefs.h. */
17719_ACEOF
17720cat confdefs.h >>conftest.$ac_ext
17721cat >>conftest.$ac_ext <<_ACEOF
17722/* end confdefs.h. */
17723$ac_includes_default
17724int
17725main ()
17726{
17727static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17728test_array [0] = 0
17729
17730 ;
17731 return 0;
17732}
17733_ACEOF
17734rm -f conftest.$ac_objext
17735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17736 (eval $ac_compile) 2>conftest.er1
a848cd7e 17737 ac_status=$?
ac1cb8d3
VS
17738 grep -v '^ *+' conftest.er1 >conftest.err
17739 rm -f conftest.er1
17740 cat conftest.err >&5
a848cd7e
SC
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); } &&
9dd0f6c2 17743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17746 ac_status=$?
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; } &&
17749 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17755 ac_lo=$ac_mid; break
17756else
17757 echo "$as_me: failed program was:" >&5
17758sed 's/^/| /' conftest.$ac_ext >&5
17759
17760ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17761 if test $ac_mid -le $ac_hi; then
17762 ac_lo= ac_hi=
17763 break
17764 fi
17765 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17766fi
ac1cb8d3 17767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17768 done
17769else
17770 echo "$as_me: failed program was:" >&5
17771sed 's/^/| /' conftest.$ac_ext >&5
17772
17773ac_lo= ac_hi=
17774fi
ac1cb8d3 17775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17776fi
ac1cb8d3 17777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17778# Binary search between lo and hi bounds.
17779while test "x$ac_lo" != "x$ac_hi"; do
17780 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17781 cat >conftest.$ac_ext <<_ACEOF
17782/* confdefs.h. */
17783_ACEOF
17784cat confdefs.h >>conftest.$ac_ext
17785cat >>conftest.$ac_ext <<_ACEOF
17786/* end confdefs.h. */
17787$ac_includes_default
17788int
17789main ()
17790{
17791static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17792test_array [0] = 0
17793
17794 ;
17795 return 0;
17796}
17797_ACEOF
17798rm -f conftest.$ac_objext
17799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17800 (eval $ac_compile) 2>conftest.er1
a848cd7e 17801 ac_status=$?
ac1cb8d3
VS
17802 grep -v '^ *+' conftest.er1 >conftest.err
17803 rm -f conftest.er1
17804 cat conftest.err >&5
a848cd7e
SC
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } &&
9dd0f6c2 17807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809 (eval $ac_try) 2>&5
17810 ac_status=$?
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); }; } &&
17813 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17819 ac_hi=$ac_mid
17820else
17821 echo "$as_me: failed program was:" >&5
17822sed 's/^/| /' conftest.$ac_ext >&5
17823
17824ac_lo=`expr '(' $ac_mid ')' + 1`
17825fi
ac1cb8d3 17826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17827done
17828case $ac_lo in
17829?*) ac_cv_sizeof_size_t=$ac_lo;;
17830'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17831See \`config.log' for more details." >&5
17832echo "$as_me: error: cannot compute sizeof (size_t), 77
17833See \`config.log' for more details." >&2;}
17834 { (exit 1); exit 1; }; } ;;
17835esac
17836else
17837 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
17838 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17839echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17840 { (exit 1); exit 1; }; }
17841else
17842 cat >conftest.$ac_ext <<_ACEOF
17843/* confdefs.h. */
17844_ACEOF
17845cat confdefs.h >>conftest.$ac_ext
17846cat >>conftest.$ac_ext <<_ACEOF
17847/* end confdefs.h. */
17848$ac_includes_default
17849long longval () { return (long) (sizeof (size_t)); }
17850unsigned long ulongval () { return (long) (sizeof (size_t)); }
17851#include <stdio.h>
17852#include <stdlib.h>
17853int
17854main ()
17855{
17856
17857 FILE *f = fopen ("conftest.val", "w");
17858 if (! f)
17859 exit (1);
17860 if (((long) (sizeof (size_t))) < 0)
17861 {
17862 long i = longval ();
17863 if (i != ((long) (sizeof (size_t))))
17864 exit (1);
17865 fprintf (f, "%ld\n", i);
17866 }
17867 else
17868 {
17869 unsigned long i = ulongval ();
17870 if (i != ((long) (sizeof (size_t))))
17871 exit (1);
17872 fprintf (f, "%lu\n", i);
17873 }
17874 exit (ferror (f) || fclose (f) != 0);
17875
17876 ;
17877 return 0;
17878}
17879_ACEOF
17880rm -f conftest$ac_exeext
17881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17882 (eval $ac_link) 2>&5
17883 ac_status=$?
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17887 (eval $ac_try) 2>&5
17888 ac_status=$?
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }; }; then
17891 ac_cv_sizeof_size_t=`cat conftest.val`
17892else
17893 echo "$as_me: program exited with status $ac_status" >&5
17894echo "$as_me: failed program was:" >&5
17895sed 's/^/| /' conftest.$ac_ext >&5
17896
17897( exit $ac_status )
17898{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17899See \`config.log' for more details." >&5
17900echo "$as_me: error: cannot compute sizeof (size_t), 77
17901See \`config.log' for more details." >&2;}
17902 { (exit 1); exit 1; }; }
17903fi
ac1cb8d3 17904rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17905fi
17906fi
17907rm -f conftest.val
17908else
17909 ac_cv_sizeof_size_t=0
17910fi
17911fi
17912echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17913echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17914cat >>confdefs.h <<_ACEOF
17915#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17916_ACEOF
17917
17918
17919
17920case "${host}" in
17921 arm-*-linux* )
17922 echo "$as_me:$LINENO: checking for long long" >&5
17923echo $ECHO_N "checking for long long... $ECHO_C" >&6
17924if test "${ac_cv_type_long_long+set}" = set; then
17925 echo $ECHO_N "(cached) $ECHO_C" >&6
17926else
17927 cat >conftest.$ac_ext <<_ACEOF
17928/* confdefs.h. */
17929_ACEOF
17930cat confdefs.h >>conftest.$ac_ext
17931cat >>conftest.$ac_ext <<_ACEOF
17932/* end confdefs.h. */
17933$ac_includes_default
17934int
17935main ()
17936{
17937if ((long long *) 0)
17938 return 0;
17939if (sizeof (long long))
17940 return 0;
17941 ;
17942 return 0;
17943}
17944_ACEOF
17945rm -f conftest.$ac_objext
17946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17947 (eval $ac_compile) 2>conftest.er1
a848cd7e 17948 ac_status=$?
ac1cb8d3
VS
17949 grep -v '^ *+' conftest.er1 >conftest.err
17950 rm -f conftest.er1
17951 cat conftest.err >&5
a848cd7e
SC
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } &&
9dd0f6c2 17954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956 (eval $ac_try) 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; } &&
17960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17966 ac_cv_type_long_long=yes
17967else
17968 echo "$as_me: failed program was:" >&5
17969sed 's/^/| /' conftest.$ac_ext >&5
17970
17971ac_cv_type_long_long=no
17972fi
ac1cb8d3 17973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17974fi
17975echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17976echo "${ECHO_T}$ac_cv_type_long_long" >&6
17977
17978echo "$as_me:$LINENO: checking size of long long" >&5
17979echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17980if test "${ac_cv_sizeof_long_long+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17982else
17983 if test "$ac_cv_type_long_long" = yes; then
17984 # The cast to unsigned long works around a bug in the HP C Compiler
17985 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17986 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17987 # This bug is HP SR number 8606223364.
17988 if test "$cross_compiling" = yes; then
17989 # Depending upon the size, compute the lo and hi bounds.
17990cat >conftest.$ac_ext <<_ACEOF
17991/* confdefs.h. */
17992_ACEOF
17993cat confdefs.h >>conftest.$ac_ext
17994cat >>conftest.$ac_ext <<_ACEOF
17995/* end confdefs.h. */
17996$ac_includes_default
17997int
17998main ()
17999{
18000static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18001test_array [0] = 0
18002
18003 ;
18004 return 0;
18005}
18006_ACEOF
18007rm -f conftest.$ac_objext
18008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18009 (eval $ac_compile) 2>conftest.er1
a848cd7e 18010 ac_status=$?
ac1cb8d3
VS
18011 grep -v '^ *+' conftest.er1 >conftest.err
18012 rm -f conftest.er1
18013 cat conftest.err >&5
a848cd7e
SC
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } &&
9dd0f6c2 18016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; } &&
18022 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18028 ac_lo=0 ac_mid=0
18029 while :; do
18030 cat >conftest.$ac_ext <<_ACEOF
18031/* confdefs.h. */
18032_ACEOF
18033cat confdefs.h >>conftest.$ac_ext
18034cat >>conftest.$ac_ext <<_ACEOF
18035/* end confdefs.h. */
18036$ac_includes_default
18037int
18038main ()
18039{
18040static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18041test_array [0] = 0
18042
18043 ;
18044 return 0;
18045}
18046_ACEOF
18047rm -f conftest.$ac_objext
18048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18049 (eval $ac_compile) 2>conftest.er1
a848cd7e 18050 ac_status=$?
ac1cb8d3
VS
18051 grep -v '^ *+' conftest.er1 >conftest.err
18052 rm -f conftest.er1
18053 cat conftest.err >&5
a848cd7e
SC
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
9dd0f6c2 18056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058 (eval $ac_try) 2>&5
18059 ac_status=$?
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; } &&
18062 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18068 ac_hi=$ac_mid; break
18069else
18070 echo "$as_me: failed program was:" >&5
18071sed 's/^/| /' conftest.$ac_ext >&5
18072
18073ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18074 if test $ac_lo -le $ac_mid; then
18075 ac_lo= ac_hi=
18076 break
18077 fi
18078 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18079fi
ac1cb8d3 18080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18081 done
18082else
18083 echo "$as_me: failed program was:" >&5
18084sed 's/^/| /' conftest.$ac_ext >&5
18085
18086cat >conftest.$ac_ext <<_ACEOF
18087/* confdefs.h. */
18088_ACEOF
18089cat confdefs.h >>conftest.$ac_ext
18090cat >>conftest.$ac_ext <<_ACEOF
18091/* end confdefs.h. */
18092$ac_includes_default
18093int
18094main ()
18095{
18096static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18097test_array [0] = 0
18098
18099 ;
18100 return 0;
18101}
18102_ACEOF
18103rm -f conftest.$ac_objext
18104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18105 (eval $ac_compile) 2>conftest.er1
a848cd7e 18106 ac_status=$?
ac1cb8d3
VS
18107 grep -v '^ *+' conftest.er1 >conftest.err
18108 rm -f conftest.er1
18109 cat conftest.err >&5
a848cd7e
SC
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); } &&
9dd0f6c2 18112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18115 ac_status=$?
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; } &&
18118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18124 ac_hi=-1 ac_mid=-1
18125 while :; do
18126 cat >conftest.$ac_ext <<_ACEOF
18127/* confdefs.h. */
18128_ACEOF
18129cat confdefs.h >>conftest.$ac_ext
18130cat >>conftest.$ac_ext <<_ACEOF
18131/* end confdefs.h. */
18132$ac_includes_default
18133int
18134main ()
18135{
18136static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18137test_array [0] = 0
18138
18139 ;
18140 return 0;
18141}
18142_ACEOF
18143rm -f conftest.$ac_objext
18144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18145 (eval $ac_compile) 2>conftest.er1
a848cd7e 18146 ac_status=$?
ac1cb8d3
VS
18147 grep -v '^ *+' conftest.er1 >conftest.err
18148 rm -f conftest.er1
18149 cat conftest.err >&5
a848cd7e
SC
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } &&
9dd0f6c2 18152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154 (eval $ac_try) 2>&5
18155 ac_status=$?
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); }; } &&
18158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18164 ac_lo=$ac_mid; break
18165else
18166 echo "$as_me: failed program was:" >&5
18167sed 's/^/| /' conftest.$ac_ext >&5
18168
18169ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18170 if test $ac_mid -le $ac_hi; then
18171 ac_lo= ac_hi=
18172 break
18173 fi
18174 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18175fi
ac1cb8d3 18176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18177 done
18178else
18179 echo "$as_me: failed program was:" >&5
18180sed 's/^/| /' conftest.$ac_ext >&5
18181
18182ac_lo= ac_hi=
18183fi
ac1cb8d3 18184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18185fi
ac1cb8d3 18186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18187# Binary search between lo and hi bounds.
18188while test "x$ac_lo" != "x$ac_hi"; do
18189 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18190 cat >conftest.$ac_ext <<_ACEOF
18191/* confdefs.h. */
18192_ACEOF
18193cat confdefs.h >>conftest.$ac_ext
18194cat >>conftest.$ac_ext <<_ACEOF
18195/* end confdefs.h. */
18196$ac_includes_default
18197int
18198main ()
18199{
18200static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18201test_array [0] = 0
18202
18203 ;
18204 return 0;
18205}
18206_ACEOF
18207rm -f conftest.$ac_objext
18208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18209 (eval $ac_compile) 2>conftest.er1
a848cd7e 18210 ac_status=$?
ac1cb8d3
VS
18211 grep -v '^ *+' conftest.er1 >conftest.err
18212 rm -f conftest.er1
18213 cat conftest.err >&5
a848cd7e
SC
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } &&
9dd0f6c2 18216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18219 ac_status=$?
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; } &&
18222 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18228 ac_hi=$ac_mid
18229else
18230 echo "$as_me: failed program was:" >&5
18231sed 's/^/| /' conftest.$ac_ext >&5
18232
18233ac_lo=`expr '(' $ac_mid ')' + 1`
18234fi
ac1cb8d3 18235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18236done
18237case $ac_lo in
18238?*) ac_cv_sizeof_long_long=$ac_lo;;
18239'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18240See \`config.log' for more details." >&5
18241echo "$as_me: error: cannot compute sizeof (long long), 77
18242See \`config.log' for more details." >&2;}
18243 { (exit 1); exit 1; }; } ;;
18244esac
18245else
18246 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
18247 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18248echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18249 { (exit 1); exit 1; }; }
18250else
18251 cat >conftest.$ac_ext <<_ACEOF
18252/* confdefs.h. */
18253_ACEOF
18254cat confdefs.h >>conftest.$ac_ext
18255cat >>conftest.$ac_ext <<_ACEOF
18256/* end confdefs.h. */
18257$ac_includes_default
18258long longval () { return (long) (sizeof (long long)); }
18259unsigned long ulongval () { return (long) (sizeof (long long)); }
18260#include <stdio.h>
18261#include <stdlib.h>
18262int
18263main ()
18264{
18265
18266 FILE *f = fopen ("conftest.val", "w");
18267 if (! f)
18268 exit (1);
18269 if (((long) (sizeof (long long))) < 0)
18270 {
18271 long i = longval ();
18272 if (i != ((long) (sizeof (long long))))
18273 exit (1);
18274 fprintf (f, "%ld\n", i);
18275 }
18276 else
18277 {
18278 unsigned long i = ulongval ();
18279 if (i != ((long) (sizeof (long long))))
18280 exit (1);
18281 fprintf (f, "%lu\n", i);
18282 }
18283 exit (ferror (f) || fclose (f) != 0);
18284
18285 ;
18286 return 0;
18287}
18288_ACEOF
18289rm -f conftest$ac_exeext
18290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18291 (eval $ac_link) 2>&5
18292 ac_status=$?
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; }; then
18300 ac_cv_sizeof_long_long=`cat conftest.val`
18301else
18302 echo "$as_me: program exited with status $ac_status" >&5
18303echo "$as_me: failed program was:" >&5
18304sed 's/^/| /' conftest.$ac_ext >&5
18305
18306( exit $ac_status )
18307{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18308See \`config.log' for more details." >&5
18309echo "$as_me: error: cannot compute sizeof (long long), 77
18310See \`config.log' for more details." >&2;}
18311 { (exit 1); exit 1; }; }
18312fi
ac1cb8d3 18313rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18314fi
18315fi
18316rm -f conftest.val
18317else
18318 ac_cv_sizeof_long_long=0
18319fi
18320fi
18321echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18322echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18323cat >>confdefs.h <<_ACEOF
18324#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18325_ACEOF
18326
18327
18328 ;;
18329 *-hp-hpux* )
18330 echo "$as_me:$LINENO: checking for long long" >&5
18331echo $ECHO_N "checking for long long... $ECHO_C" >&6
18332if test "${ac_cv_type_long_long+set}" = set; then
18333 echo $ECHO_N "(cached) $ECHO_C" >&6
18334else
18335 cat >conftest.$ac_ext <<_ACEOF
18336/* confdefs.h. */
18337_ACEOF
18338cat confdefs.h >>conftest.$ac_ext
18339cat >>conftest.$ac_ext <<_ACEOF
18340/* end confdefs.h. */
18341$ac_includes_default
18342int
18343main ()
18344{
18345if ((long long *) 0)
18346 return 0;
18347if (sizeof (long long))
18348 return 0;
18349 ;
18350 return 0;
18351}
18352_ACEOF
18353rm -f conftest.$ac_objext
18354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18355 (eval $ac_compile) 2>conftest.er1
a848cd7e 18356 ac_status=$?
ac1cb8d3
VS
18357 grep -v '^ *+' conftest.er1 >conftest.err
18358 rm -f conftest.er1
18359 cat conftest.err >&5
a848cd7e
SC
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
9dd0f6c2 18362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18364 (eval $ac_try) 2>&5
18365 ac_status=$?
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); }; } &&
18368 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18374 ac_cv_type_long_long=yes
18375else
18376 echo "$as_me: failed program was:" >&5
18377sed 's/^/| /' conftest.$ac_ext >&5
18378
18379ac_cv_type_long_long=no
18380fi
ac1cb8d3 18381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18382fi
18383echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18384echo "${ECHO_T}$ac_cv_type_long_long" >&6
18385
18386echo "$as_me:$LINENO: checking size of long long" >&5
18387echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18388if test "${ac_cv_sizeof_long_long+set}" = set; then
18389 echo $ECHO_N "(cached) $ECHO_C" >&6
18390else
18391 if test "$ac_cv_type_long_long" = yes; then
18392 # The cast to unsigned long works around a bug in the HP C Compiler
18393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18395 # This bug is HP SR number 8606223364.
18396 if test "$cross_compiling" = yes; then
18397 # Depending upon the size, compute the lo and hi bounds.
18398cat >conftest.$ac_ext <<_ACEOF
18399/* confdefs.h. */
18400_ACEOF
18401cat confdefs.h >>conftest.$ac_ext
18402cat >>conftest.$ac_ext <<_ACEOF
18403/* end confdefs.h. */
18404$ac_includes_default
18405int
18406main ()
18407{
18408static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18409test_array [0] = 0
18410
18411 ;
18412 return 0;
18413}
18414_ACEOF
18415rm -f conftest.$ac_objext
18416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18417 (eval $ac_compile) 2>conftest.er1
a848cd7e 18418 ac_status=$?
ac1cb8d3
VS
18419 grep -v '^ *+' conftest.er1 >conftest.err
18420 rm -f conftest.er1
18421 cat conftest.err >&5
a848cd7e
SC
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); } &&
9dd0f6c2 18424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18426 (eval $ac_try) 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; } &&
18430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18436 ac_lo=0 ac_mid=0
18437 while :; do
18438 cat >conftest.$ac_ext <<_ACEOF
18439/* confdefs.h. */
18440_ACEOF
18441cat confdefs.h >>conftest.$ac_ext
18442cat >>conftest.$ac_ext <<_ACEOF
18443/* end confdefs.h. */
18444$ac_includes_default
18445int
18446main ()
18447{
18448static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18449test_array [0] = 0
18450
18451 ;
18452 return 0;
18453}
18454_ACEOF
18455rm -f conftest.$ac_objext
18456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18457 (eval $ac_compile) 2>conftest.er1
a848cd7e 18458 ac_status=$?
ac1cb8d3
VS
18459 grep -v '^ *+' conftest.er1 >conftest.err
18460 rm -f conftest.er1
18461 cat conftest.err >&5
a848cd7e
SC
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); } &&
9dd0f6c2 18464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; } &&
18470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18476 ac_hi=$ac_mid; break
18477else
18478 echo "$as_me: failed program was:" >&5
18479sed 's/^/| /' conftest.$ac_ext >&5
18480
18481ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18482 if test $ac_lo -le $ac_mid; then
18483 ac_lo= ac_hi=
18484 break
18485 fi
18486 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18487fi
ac1cb8d3 18488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18489 done
18490else
18491 echo "$as_me: failed program was:" >&5
18492sed 's/^/| /' conftest.$ac_ext >&5
18493
18494cat >conftest.$ac_ext <<_ACEOF
18495/* confdefs.h. */
18496_ACEOF
18497cat confdefs.h >>conftest.$ac_ext
18498cat >>conftest.$ac_ext <<_ACEOF
18499/* end confdefs.h. */
18500$ac_includes_default
18501int
18502main ()
18503{
18504static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18505test_array [0] = 0
18506
18507 ;
18508 return 0;
18509}
18510_ACEOF
18511rm -f conftest.$ac_objext
18512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18513 (eval $ac_compile) 2>conftest.er1
a848cd7e 18514 ac_status=$?
ac1cb8d3
VS
18515 grep -v '^ *+' conftest.er1 >conftest.err
18516 rm -f conftest.er1
18517 cat conftest.err >&5
a848cd7e
SC
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } &&
9dd0f6c2 18520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522 (eval $ac_try) 2>&5
18523 ac_status=$?
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; } &&
18526 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18532 ac_hi=-1 ac_mid=-1
18533 while :; do
18534 cat >conftest.$ac_ext <<_ACEOF
18535/* confdefs.h. */
18536_ACEOF
18537cat confdefs.h >>conftest.$ac_ext
18538cat >>conftest.$ac_ext <<_ACEOF
18539/* end confdefs.h. */
18540$ac_includes_default
18541int
18542main ()
18543{
18544static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18545test_array [0] = 0
18546
18547 ;
18548 return 0;
18549}
18550_ACEOF
18551rm -f conftest.$ac_objext
18552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18553 (eval $ac_compile) 2>conftest.er1
a848cd7e 18554 ac_status=$?
ac1cb8d3
VS
18555 grep -v '^ *+' conftest.er1 >conftest.err
18556 rm -f conftest.er1
18557 cat conftest.err >&5
a848cd7e
SC
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); } &&
9dd0f6c2 18560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18562 (eval $ac_try) 2>&5
18563 ac_status=$?
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; } &&
18566 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18572 ac_lo=$ac_mid; break
18573else
18574 echo "$as_me: failed program was:" >&5
18575sed 's/^/| /' conftest.$ac_ext >&5
18576
18577ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18578 if test $ac_mid -le $ac_hi; then
18579 ac_lo= ac_hi=
18580 break
18581 fi
18582 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18583fi
ac1cb8d3 18584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18585 done
18586else
18587 echo "$as_me: failed program was:" >&5
18588sed 's/^/| /' conftest.$ac_ext >&5
18589
18590ac_lo= ac_hi=
18591fi
ac1cb8d3 18592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18593fi
ac1cb8d3 18594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18595# Binary search between lo and hi bounds.
18596while test "x$ac_lo" != "x$ac_hi"; do
18597 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18598 cat >conftest.$ac_ext <<_ACEOF
18599/* confdefs.h. */
18600_ACEOF
18601cat confdefs.h >>conftest.$ac_ext
18602cat >>conftest.$ac_ext <<_ACEOF
18603/* end confdefs.h. */
18604$ac_includes_default
18605int
18606main ()
18607{
18608static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18609test_array [0] = 0
18610
18611 ;
18612 return 0;
18613}
18614_ACEOF
18615rm -f conftest.$ac_objext
18616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18617 (eval $ac_compile) 2>conftest.er1
a848cd7e 18618 ac_status=$?
ac1cb8d3
VS
18619 grep -v '^ *+' conftest.er1 >conftest.err
18620 rm -f conftest.er1
18621 cat conftest.err >&5
a848cd7e
SC
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } &&
9dd0f6c2 18624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626 (eval $ac_try) 2>&5
18627 ac_status=$?
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; } &&
18630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18636 ac_hi=$ac_mid
18637else
18638 echo "$as_me: failed program was:" >&5
18639sed 's/^/| /' conftest.$ac_ext >&5
18640
18641ac_lo=`expr '(' $ac_mid ')' + 1`
18642fi
ac1cb8d3 18643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18644done
18645case $ac_lo in
18646?*) ac_cv_sizeof_long_long=$ac_lo;;
18647'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18648See \`config.log' for more details." >&5
18649echo "$as_me: error: cannot compute sizeof (long long), 77
18650See \`config.log' for more details." >&2;}
18651 { (exit 1); exit 1; }; } ;;
18652esac
18653else
18654 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
18655 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18656echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18657 { (exit 1); exit 1; }; }
18658else
18659 cat >conftest.$ac_ext <<_ACEOF
18660/* confdefs.h. */
18661_ACEOF
18662cat confdefs.h >>conftest.$ac_ext
18663cat >>conftest.$ac_ext <<_ACEOF
18664/* end confdefs.h. */
18665$ac_includes_default
18666long longval () { return (long) (sizeof (long long)); }
18667unsigned long ulongval () { return (long) (sizeof (long long)); }
18668#include <stdio.h>
18669#include <stdlib.h>
18670int
18671main ()
18672{
18673
18674 FILE *f = fopen ("conftest.val", "w");
18675 if (! f)
18676 exit (1);
18677 if (((long) (sizeof (long long))) < 0)
18678 {
18679 long i = longval ();
18680 if (i != ((long) (sizeof (long long))))
18681 exit (1);
18682 fprintf (f, "%ld\n", i);
18683 }
18684 else
18685 {
18686 unsigned long i = ulongval ();
18687 if (i != ((long) (sizeof (long long))))
18688 exit (1);
18689 fprintf (f, "%lu\n", i);
18690 }
18691 exit (ferror (f) || fclose (f) != 0);
18692
18693 ;
18694 return 0;
18695}
18696_ACEOF
18697rm -f conftest$ac_exeext
18698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18699 (eval $ac_link) 2>&5
18700 ac_status=$?
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18704 (eval $ac_try) 2>&5
18705 ac_status=$?
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; }; then
18708 ac_cv_sizeof_long_long=`cat conftest.val`
18709else
18710 echo "$as_me: program exited with status $ac_status" >&5
18711echo "$as_me: failed program was:" >&5
18712sed 's/^/| /' conftest.$ac_ext >&5
18713
18714( exit $ac_status )
18715{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18716See \`config.log' for more details." >&5
18717echo "$as_me: error: cannot compute sizeof (long long), 77
18718See \`config.log' for more details." >&2;}
18719 { (exit 1); exit 1; }; }
18720fi
ac1cb8d3 18721rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18722fi
18723fi
18724rm -f conftest.val
18725else
18726 ac_cv_sizeof_long_long=0
18727fi
18728fi
18729echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18730echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18731cat >>confdefs.h <<_ACEOF
18732#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18733_ACEOF
18734
18735
18736 if test "$ac_cv_sizeof_long_long" != "0"; then
18737 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18738 fi
18739 ;;
18740 * )
18741 echo "$as_me:$LINENO: checking for long long" >&5
18742echo $ECHO_N "checking for long long... $ECHO_C" >&6
18743if test "${ac_cv_type_long_long+set}" = set; then
18744 echo $ECHO_N "(cached) $ECHO_C" >&6
18745else
18746 cat >conftest.$ac_ext <<_ACEOF
18747/* confdefs.h. */
18748_ACEOF
18749cat confdefs.h >>conftest.$ac_ext
18750cat >>conftest.$ac_ext <<_ACEOF
18751/* end confdefs.h. */
18752$ac_includes_default
18753int
18754main ()
18755{
18756if ((long long *) 0)
18757 return 0;
18758if (sizeof (long long))
18759 return 0;
18760 ;
18761 return 0;
18762}
18763_ACEOF
18764rm -f conftest.$ac_objext
18765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18766 (eval $ac_compile) 2>conftest.er1
a848cd7e 18767 ac_status=$?
ac1cb8d3
VS
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
a848cd7e
SC
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } &&
9dd0f6c2 18773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775 (eval $ac_try) 2>&5
18776 ac_status=$?
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; } &&
18779 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18785 ac_cv_type_long_long=yes
18786else
18787 echo "$as_me: failed program was:" >&5
18788sed 's/^/| /' conftest.$ac_ext >&5
18789
18790ac_cv_type_long_long=no
18791fi
ac1cb8d3 18792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18793fi
18794echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18795echo "${ECHO_T}$ac_cv_type_long_long" >&6
18796
18797echo "$as_me:$LINENO: checking size of long long" >&5
18798echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18799if test "${ac_cv_sizeof_long_long+set}" = set; then
18800 echo $ECHO_N "(cached) $ECHO_C" >&6
18801else
18802 if test "$ac_cv_type_long_long" = yes; then
18803 # The cast to unsigned long works around a bug in the HP C Compiler
18804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18806 # This bug is HP SR number 8606223364.
18807 if test "$cross_compiling" = yes; then
18808 # Depending upon the size, compute the lo and hi bounds.
18809cat >conftest.$ac_ext <<_ACEOF
18810/* confdefs.h. */
18811_ACEOF
18812cat confdefs.h >>conftest.$ac_ext
18813cat >>conftest.$ac_ext <<_ACEOF
18814/* end confdefs.h. */
18815$ac_includes_default
18816int
18817main ()
18818{
18819static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18820test_array [0] = 0
18821
18822 ;
18823 return 0;
18824}
18825_ACEOF
18826rm -f conftest.$ac_objext
18827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18828 (eval $ac_compile) 2>conftest.er1
a848cd7e 18829 ac_status=$?
ac1cb8d3
VS
18830 grep -v '^ *+' conftest.er1 >conftest.err
18831 rm -f conftest.er1
18832 cat conftest.err >&5
a848cd7e
SC
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } &&
9dd0f6c2 18835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18838 ac_status=$?
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; } &&
18841 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18847 ac_lo=0 ac_mid=0
18848 while :; do
18849 cat >conftest.$ac_ext <<_ACEOF
18850/* confdefs.h. */
18851_ACEOF
18852cat confdefs.h >>conftest.$ac_ext
18853cat >>conftest.$ac_ext <<_ACEOF
18854/* end confdefs.h. */
18855$ac_includes_default
18856int
18857main ()
18858{
18859static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18860test_array [0] = 0
18861
18862 ;
18863 return 0;
18864}
18865_ACEOF
18866rm -f conftest.$ac_objext
18867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18868 (eval $ac_compile) 2>conftest.er1
a848cd7e 18869 ac_status=$?
ac1cb8d3
VS
18870 grep -v '^ *+' conftest.er1 >conftest.err
18871 rm -f conftest.er1
18872 cat conftest.err >&5
a848cd7e
SC
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); } &&
9dd0f6c2 18875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877 (eval $ac_try) 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; } &&
18881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18887 ac_hi=$ac_mid; break
18888else
18889 echo "$as_me: failed program was:" >&5
18890sed 's/^/| /' conftest.$ac_ext >&5
18891
18892ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18893 if test $ac_lo -le $ac_mid; then
18894 ac_lo= ac_hi=
18895 break
18896 fi
18897 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18898fi
ac1cb8d3 18899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18900 done
18901else
18902 echo "$as_me: failed program was:" >&5
18903sed 's/^/| /' conftest.$ac_ext >&5
18904
18905cat >conftest.$ac_ext <<_ACEOF
18906/* confdefs.h. */
18907_ACEOF
18908cat confdefs.h >>conftest.$ac_ext
18909cat >>conftest.$ac_ext <<_ACEOF
18910/* end confdefs.h. */
18911$ac_includes_default
18912int
18913main ()
18914{
18915static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18916test_array [0] = 0
18917
18918 ;
18919 return 0;
18920}
18921_ACEOF
18922rm -f conftest.$ac_objext
18923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18924 (eval $ac_compile) 2>conftest.er1
a848cd7e 18925 ac_status=$?
ac1cb8d3
VS
18926 grep -v '^ *+' conftest.er1 >conftest.err
18927 rm -f conftest.er1
18928 cat conftest.err >&5
a848cd7e
SC
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } &&
9dd0f6c2 18931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18934 ac_status=$?
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; } &&
18937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18943 ac_hi=-1 ac_mid=-1
18944 while :; do
18945 cat >conftest.$ac_ext <<_ACEOF
18946/* confdefs.h. */
18947_ACEOF
18948cat confdefs.h >>conftest.$ac_ext
18949cat >>conftest.$ac_ext <<_ACEOF
18950/* end confdefs.h. */
18951$ac_includes_default
18952int
18953main ()
18954{
18955static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18956test_array [0] = 0
18957
18958 ;
18959 return 0;
18960}
18961_ACEOF
18962rm -f conftest.$ac_objext
18963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18964 (eval $ac_compile) 2>conftest.er1
a848cd7e 18965 ac_status=$?
ac1cb8d3
VS
18966 grep -v '^ *+' conftest.er1 >conftest.err
18967 rm -f conftest.er1
18968 cat conftest.err >&5
a848cd7e
SC
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); } &&
9dd0f6c2 18971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } &&
18977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
18983 ac_lo=$ac_mid; break
18984else
18985 echo "$as_me: failed program was:" >&5
18986sed 's/^/| /' conftest.$ac_ext >&5
18987
18988ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18989 if test $ac_mid -le $ac_hi; then
18990 ac_lo= ac_hi=
18991 break
18992 fi
18993 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18994fi
ac1cb8d3 18995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18996 done
18997else
18998 echo "$as_me: failed program was:" >&5
18999sed 's/^/| /' conftest.$ac_ext >&5
19000
19001ac_lo= ac_hi=
19002fi
ac1cb8d3 19003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19004fi
ac1cb8d3 19005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19006# Binary search between lo and hi bounds.
19007while test "x$ac_lo" != "x$ac_hi"; do
19008 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19009 cat >conftest.$ac_ext <<_ACEOF
19010/* confdefs.h. */
19011_ACEOF
19012cat confdefs.h >>conftest.$ac_ext
19013cat >>conftest.$ac_ext <<_ACEOF
19014/* end confdefs.h. */
19015$ac_includes_default
19016int
19017main ()
19018{
19019static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19020test_array [0] = 0
19021
19022 ;
19023 return 0;
19024}
19025_ACEOF
19026rm -f conftest.$ac_objext
19027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19028 (eval $ac_compile) 2>conftest.er1
a848cd7e 19029 ac_status=$?
ac1cb8d3
VS
19030 grep -v '^ *+' conftest.er1 >conftest.err
19031 rm -f conftest.er1
19032 cat conftest.err >&5
a848cd7e
SC
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); } &&
9dd0f6c2 19035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19038 ac_status=$?
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; } &&
19041 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
19047 ac_hi=$ac_mid
19048else
19049 echo "$as_me: failed program was:" >&5
19050sed 's/^/| /' conftest.$ac_ext >&5
19051
19052ac_lo=`expr '(' $ac_mid ')' + 1`
19053fi
ac1cb8d3 19054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19055done
19056case $ac_lo in
19057?*) ac_cv_sizeof_long_long=$ac_lo;;
19058'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19059See \`config.log' for more details." >&5
19060echo "$as_me: error: cannot compute sizeof (long long), 77
19061See \`config.log' for more details." >&2;}
19062 { (exit 1); exit 1; }; } ;;
19063esac
19064else
19065 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
19066 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19067echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19068 { (exit 1); exit 1; }; }
19069else
19070 cat >conftest.$ac_ext <<_ACEOF
19071/* confdefs.h. */
19072_ACEOF
19073cat confdefs.h >>conftest.$ac_ext
19074cat >>conftest.$ac_ext <<_ACEOF
19075/* end confdefs.h. */
19076$ac_includes_default
19077long longval () { return (long) (sizeof (long long)); }
19078unsigned long ulongval () { return (long) (sizeof (long long)); }
19079#include <stdio.h>
19080#include <stdlib.h>
19081int
19082main ()
19083{
19084
19085 FILE *f = fopen ("conftest.val", "w");
19086 if (! f)
19087 exit (1);
19088 if (((long) (sizeof (long long))) < 0)
19089 {
19090 long i = longval ();
19091 if (i != ((long) (sizeof (long long))))
19092 exit (1);
19093 fprintf (f, "%ld\n", i);
19094 }
19095 else
19096 {
19097 unsigned long i = ulongval ();
19098 if (i != ((long) (sizeof (long long))))
19099 exit (1);
19100 fprintf (f, "%lu\n", i);
19101 }
19102 exit (ferror (f) || fclose (f) != 0);
19103
19104 ;
19105 return 0;
19106}
19107_ACEOF
19108rm -f conftest$ac_exeext
19109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19110 (eval $ac_link) 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; }; then
19119 ac_cv_sizeof_long_long=`cat conftest.val`
19120else
19121 echo "$as_me: program exited with status $ac_status" >&5
19122echo "$as_me: failed program was:" >&5
19123sed 's/^/| /' conftest.$ac_ext >&5
19124
19125( exit $ac_status )
19126{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19127See \`config.log' for more details." >&5
19128echo "$as_me: error: cannot compute sizeof (long long), 77
19129See \`config.log' for more details." >&2;}
19130 { (exit 1); exit 1; }; }
19131fi
ac1cb8d3 19132rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19133fi
19134fi
19135rm -f conftest.val
19136else
19137 ac_cv_sizeof_long_long=0
19138fi
19139fi
19140echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19141echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19142cat >>confdefs.h <<_ACEOF
19143#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19144_ACEOF
19145
19146
19147esac
19148
238ecede
MW
19149echo "$as_me:$LINENO: checking for wchar_t" >&5
19150echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19151if test "${ac_cv_type_wchar_t+set}" = set; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
19153else
19154 cat >conftest.$ac_ext <<_ACEOF
19155/* confdefs.h. */
19156_ACEOF
19157cat confdefs.h >>conftest.$ac_ext
19158cat >>conftest.$ac_ext <<_ACEOF
19159/* end confdefs.h. */
19160
19161 /* DJGPP only has fake wchar_t: */
19162 #ifdef __DJGPP__
19163 # error "fake wchar_t"
19164 #endif
19165 #ifdef HAVE_WCHAR_H
19166 # ifdef __CYGWIN__
19167 # include <stddef.h>
19168 # endif
19169 # include <wchar.h>
19170 #endif
19171 #ifdef HAVE_STDLIB_H
19172 # include <stdlib.h>
19173 #endif
19174 #include <stdio.h>
19175
19176
19177
19178int
19179main ()
19180{
19181if ((wchar_t *) 0)
19182 return 0;
19183if (sizeof (wchar_t))
19184 return 0;
19185 ;
19186 return 0;
19187}
19188_ACEOF
19189rm -f conftest.$ac_objext
19190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19191 (eval $ac_compile) 2>conftest.er1
19192 ac_status=$?
19193 grep -v '^ *+' conftest.er1 >conftest.err
19194 rm -f conftest.er1
19195 cat conftest.err >&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } &&
9dd0f6c2 19198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; } &&
19204 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19210 ac_cv_type_wchar_t=yes
19211else
19212 echo "$as_me: failed program was:" >&5
19213sed 's/^/| /' conftest.$ac_ext >&5
19214
19215ac_cv_type_wchar_t=no
19216fi
19217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19218fi
19219echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19220echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19221
a848cd7e
SC
19222echo "$as_me:$LINENO: checking size of wchar_t" >&5
19223echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19224if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19225 echo $ECHO_N "(cached) $ECHO_C" >&6
19226else
238ecede
MW
19227 if test "$ac_cv_type_wchar_t" = yes; then
19228 # The cast to unsigned long works around a bug in the HP C Compiler
19229 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19230 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19231 # This bug is HP SR number 8606223364.
19232 if test "$cross_compiling" = yes; then
19233 # Depending upon the size, compute the lo and hi bounds.
19234cat >conftest.$ac_ext <<_ACEOF
19235/* confdefs.h. */
19236_ACEOF
19237cat confdefs.h >>conftest.$ac_ext
19238cat >>conftest.$ac_ext <<_ACEOF
19239/* end confdefs.h. */
19240
19241 /* DJGPP only has fake wchar_t: */
19242 #ifdef __DJGPP__
19243 # error "fake wchar_t"
19244 #endif
19245 #ifdef HAVE_WCHAR_H
19246 # ifdef __CYGWIN__
19247 # include <stddef.h>
19248 # endif
19249 # include <wchar.h>
19250 #endif
19251 #ifdef HAVE_STDLIB_H
19252 # include <stdlib.h>
19253 #endif
19254 #include <stdio.h>
19255
19256
19257
19258int
19259main ()
19260{
19261static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19262test_array [0] = 0
19263
19264 ;
19265 return 0;
19266}
19267_ACEOF
19268rm -f conftest.$ac_objext
19269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19270 (eval $ac_compile) 2>conftest.er1
19271 ac_status=$?
19272 grep -v '^ *+' conftest.er1 >conftest.err
19273 rm -f conftest.er1
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } &&
9dd0f6c2 19277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279 (eval $ac_try) 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; } &&
19283 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19289 ac_lo=0 ac_mid=0
19290 while :; do
19291 cat >conftest.$ac_ext <<_ACEOF
19292/* confdefs.h. */
19293_ACEOF
19294cat confdefs.h >>conftest.$ac_ext
19295cat >>conftest.$ac_ext <<_ACEOF
19296/* end confdefs.h. */
19297
19298 /* DJGPP only has fake wchar_t: */
19299 #ifdef __DJGPP__
19300 # error "fake wchar_t"
19301 #endif
19302 #ifdef HAVE_WCHAR_H
19303 # ifdef __CYGWIN__
19304 # include <stddef.h>
19305 # endif
19306 # include <wchar.h>
19307 #endif
19308 #ifdef HAVE_STDLIB_H
19309 # include <stdlib.h>
19310 #endif
19311 #include <stdio.h>
19312
19313
19314
19315int
19316main ()
19317{
19318static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19319test_array [0] = 0
19320
19321 ;
19322 return 0;
19323}
19324_ACEOF
19325rm -f conftest.$ac_objext
19326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19327 (eval $ac_compile) 2>conftest.er1
19328 ac_status=$?
19329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } &&
9dd0f6c2 19334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19337 ac_status=$?
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19346 ac_hi=$ac_mid; break
19347else
19348 echo "$as_me: failed program was:" >&5
19349sed 's/^/| /' conftest.$ac_ext >&5
19350
19351ac_lo=`expr $ac_mid + 1`
19352 if test $ac_lo -le $ac_mid; then
19353 ac_lo= ac_hi=
19354 break
19355 fi
19356 ac_mid=`expr 2 '*' $ac_mid + 1`
19357fi
19358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19359 done
19360else
19361 echo "$as_me: failed program was:" >&5
19362sed 's/^/| /' conftest.$ac_ext >&5
19363
19364cat >conftest.$ac_ext <<_ACEOF
19365/* confdefs.h. */
19366_ACEOF
19367cat confdefs.h >>conftest.$ac_ext
19368cat >>conftest.$ac_ext <<_ACEOF
19369/* end confdefs.h. */
19370
19371 /* DJGPP only has fake wchar_t: */
19372 #ifdef __DJGPP__
19373 # error "fake wchar_t"
19374 #endif
19375 #ifdef HAVE_WCHAR_H
19376 # ifdef __CYGWIN__
19377 # include <stddef.h>
19378 # endif
19379 # include <wchar.h>
19380 #endif
19381 #ifdef HAVE_STDLIB_H
19382 # include <stdlib.h>
19383 #endif
19384 #include <stdio.h>
19385
19386
19387
19388int
19389main ()
19390{
19391static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19392test_array [0] = 0
19393
19394 ;
19395 return 0;
19396}
19397_ACEOF
19398rm -f conftest.$ac_objext
19399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19400 (eval $ac_compile) 2>conftest.er1
19401 ac_status=$?
19402 grep -v '^ *+' conftest.er1 >conftest.err
19403 rm -f conftest.er1
19404 cat conftest.err >&5
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); } &&
9dd0f6c2 19407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409 (eval $ac_try) 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; } &&
19413 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19419 ac_hi=-1 ac_mid=-1
19420 while :; do
19421 cat >conftest.$ac_ext <<_ACEOF
19422/* confdefs.h. */
19423_ACEOF
19424cat confdefs.h >>conftest.$ac_ext
19425cat >>conftest.$ac_ext <<_ACEOF
19426/* end confdefs.h. */
19427
19428 /* DJGPP only has fake wchar_t: */
19429 #ifdef __DJGPP__
19430 # error "fake wchar_t"
19431 #endif
19432 #ifdef HAVE_WCHAR_H
19433 # ifdef __CYGWIN__
19434 # include <stddef.h>
19435 # endif
19436 # include <wchar.h>
19437 #endif
19438 #ifdef HAVE_STDLIB_H
19439 # include <stdlib.h>
19440 #endif
19441 #include <stdio.h>
19442
19443
19444
19445int
19446main ()
19447{
19448static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19449test_array [0] = 0
19450
19451 ;
19452 return 0;
19453}
19454_ACEOF
19455rm -f conftest.$ac_objext
19456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19457 (eval $ac_compile) 2>conftest.er1
19458 ac_status=$?
19459 grep -v '^ *+' conftest.er1 >conftest.err
19460 rm -f conftest.er1
19461 cat conftest.err >&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } &&
9dd0f6c2 19464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19467 ac_status=$?
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; } &&
19470 { ac_try='test -s conftest.$ac_objext'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19476 ac_lo=$ac_mid; break
19477else
19478 echo "$as_me: failed program was:" >&5
19479sed 's/^/| /' conftest.$ac_ext >&5
19480
19481ac_hi=`expr '(' $ac_mid ')' - 1`
19482 if test $ac_mid -le $ac_hi; then
19483 ac_lo= ac_hi=
19484 break
19485 fi
19486 ac_mid=`expr 2 '*' $ac_mid`
19487fi
19488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19489 done
19490else
19491 echo "$as_me: failed program was:" >&5
19492sed 's/^/| /' conftest.$ac_ext >&5
19493
19494ac_lo= ac_hi=
19495fi
19496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19497fi
19498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19499# Binary search between lo and hi bounds.
19500while test "x$ac_lo" != "x$ac_hi"; do
19501 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19502 cat >conftest.$ac_ext <<_ACEOF
19503/* confdefs.h. */
19504_ACEOF
19505cat confdefs.h >>conftest.$ac_ext
19506cat >>conftest.$ac_ext <<_ACEOF
19507/* end confdefs.h. */
19508
19509 /* DJGPP only has fake wchar_t: */
19510 #ifdef __DJGPP__
19511 # error "fake wchar_t"
19512 #endif
19513 #ifdef HAVE_WCHAR_H
19514 # ifdef __CYGWIN__
19515 # include <stddef.h>
19516 # endif
19517 # include <wchar.h>
19518 #endif
19519 #ifdef HAVE_STDLIB_H
19520 # include <stdlib.h>
19521 #endif
19522 #include <stdio.h>
a848cd7e 19523
a848cd7e 19524
a848cd7e 19525
238ecede
MW
19526int
19527main ()
19528{
19529static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19530test_array [0] = 0
a848cd7e 19531
238ecede
MW
19532 ;
19533 return 0;
19534}
19535_ACEOF
19536rm -f conftest.$ac_objext
19537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19538 (eval $ac_compile) 2>conftest.er1
19539 ac_status=$?
19540 grep -v '^ *+' conftest.er1 >conftest.err
19541 rm -f conftest.er1
19542 cat conftest.err >&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } &&
9dd0f6c2 19545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19547 (eval $ac_try) 2>&5
19548 ac_status=$?
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }; } &&
19551 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19557 ac_hi=$ac_mid
19558else
19559 echo "$as_me: failed program was:" >&5
19560sed 's/^/| /' conftest.$ac_ext >&5
19561
19562ac_lo=`expr '(' $ac_mid ')' + 1`
19563fi
19564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19565done
19566case $ac_lo in
19567?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19568'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19569See \`config.log' for more details." >&5
19570echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19571See \`config.log' for more details." >&2;}
19572 { (exit 1); exit 1; }; } ;;
19573esac
19574else
19575 if test "$cross_compiling" = yes; then
9dd0f6c2
DE
19576 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19577echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19578 { (exit 1); exit 1; }; }
a848cd7e
SC
19579else
19580 cat >conftest.$ac_ext <<_ACEOF
19581/* confdefs.h. */
19582_ACEOF
19583cat confdefs.h >>conftest.$ac_ext
19584cat >>conftest.$ac_ext <<_ACEOF
19585/* end confdefs.h. */
19586
238ecede
MW
19587 /* DJGPP only has fake wchar_t: */
19588 #ifdef __DJGPP__
19589 # error "fake wchar_t"
19590 #endif
19591 #ifdef HAVE_WCHAR_H
19592 # ifdef __CYGWIN__
19593 # include <stddef.h>
19594 # endif
19595 # include <wchar.h>
19596 #endif
19597 #ifdef HAVE_STDLIB_H
19598 # include <stdlib.h>
19599 #endif
19600 #include <stdio.h>
19601
19602
19603
19604long longval () { return (long) (sizeof (wchar_t)); }
19605unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19606#include <stdio.h>
19607#include <stdlib.h>
19608int
19609main ()
19610{
a848cd7e 19611
238ecede
MW
19612 FILE *f = fopen ("conftest.val", "w");
19613 if (! f)
19614 exit (1);
19615 if (((long) (sizeof (wchar_t))) < 0)
19616 {
19617 long i = longval ();
19618 if (i != ((long) (sizeof (wchar_t))))
19619 exit (1);
19620 fprintf (f, "%ld\n", i);
19621 }
19622 else
19623 {
19624 unsigned long i = ulongval ();
19625 if (i != ((long) (sizeof (wchar_t))))
19626 exit (1);
19627 fprintf (f, "%lu\n", i);
19628 }
19629 exit (ferror (f) || fclose (f) != 0);
19630
19631 ;
19632 return 0;
19633}
a848cd7e
SC
19634_ACEOF
19635rm -f conftest$ac_exeext
19636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19637 (eval $ac_link) 2>&5
19638 ac_status=$?
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; }; then
238ecede 19646 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19647else
19648 echo "$as_me: program exited with status $ac_status" >&5
19649echo "$as_me: failed program was:" >&5
19650sed 's/^/| /' conftest.$ac_ext >&5
19651
19652( exit $ac_status )
238ecede
MW
19653{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19654See \`config.log' for more details." >&5
19655echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19656See \`config.log' for more details." >&2;}
19657 { (exit 1); exit 1; }; }
a848cd7e 19658fi
ac1cb8d3 19659rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19660fi
a848cd7e 19661fi
238ecede
MW
19662rm -f conftest.val
19663else
19664 ac_cv_sizeof_wchar_t=0
19665fi
19666fi
19667echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19668echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19669cat >>confdefs.h <<_ACEOF
238ecede 19670#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19671_ACEOF
19672
19673
238ecede 19674
ba3d13e1
VZ
19675echo "$as_me:$LINENO: checking for va_copy" >&5
19676echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19677if test "${wx_cv_func_va_copy+set}" = set; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
19679else
19680
19681 cat >conftest.$ac_ext <<_ACEOF
19682
19683 #include <stdarg.h>
19684 void foo(char *f, ...)
19685 {
19686 va_list ap1, ap2;
19687 va_start(ap1, f);
19688 va_copy(ap2, ap1);
19689 va_end(ap2);
19690 va_end(ap1);
19691 }
5886b072
VZ
19692 int main()
19693 {
b902e639
VZ
19694 foo("hi", 17);
19695 return 0;
5886b072 19696 }
ba3d13e1
VZ
19697_ACEOF
19698rm -f conftest.$ac_objext conftest$ac_exeext
19699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19700 (eval $ac_link) 2>conftest.er1
19701 ac_status=$?
19702 grep -v '^ *+' conftest.er1 >conftest.err
19703 rm -f conftest.er1
19704 cat conftest.err >&5
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); } &&
9dd0f6c2 19707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19710 ac_status=$?
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; } &&
19713 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19719 wx_cv_func_va_copy=yes
19720else
19721 echo "$as_me: failed program was:" >&5
19722sed 's/^/| /' conftest.$ac_ext >&5
19723
19724wx_cv_func_va_copy=no
19725
19726fi
19727rm -f conftest.err conftest.$ac_objext \
19728 conftest$ac_exeext conftest.$ac_ext
19729
19730
19731fi
19732echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19733echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19734
19735if test $wx_cv_func_va_copy = "yes"; then
19736 cat >>confdefs.h <<\_ACEOF
19737#define HAVE_VA_COPY 1
19738_ACEOF
19739
19740else
19741 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19742echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19743if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19744 echo $ECHO_N "(cached) $ECHO_C" >&6
19745else
19746
19747 if test "$cross_compiling" = yes; then
19748 wx_cv_type_va_list_lvalue=yes
19749
19750else
19751 cat >conftest.$ac_ext <<_ACEOF
19752
19753 #include <stdarg.h>
19754 int foo(char *f, ...)
19755 {
19756 va_list ap1, ap2;
19757 va_start(ap1, f);
19758 ap2 = ap1;
19759 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19760 return 1;
19761 va_end(ap2);
19762 va_end(ap1);
19763 return 0;
19764 }
19765 int main()
19766 {
19767 return foo("hi", 17);
19768 }
19769_ACEOF
19770rm -f conftest$ac_exeext
19771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19772 (eval $ac_link) 2>&5
19773 ac_status=$?
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19778 ac_status=$?
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; }; then
19781 wx_cv_type_va_list_lvalue=yes
19782else
19783 echo "$as_me: program exited with status $ac_status" >&5
19784echo "$as_me: failed program was:" >&5
19785sed 's/^/| /' conftest.$ac_ext >&5
19786
19787( exit $ac_status )
19788wx_cv_type_va_list_lvalue=no
19789fi
19790rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19791fi
19792
19793
19794fi
19795echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19796echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19797
19798 if test $wx_cv_type_va_list_lvalue != "yes"; then
19799 cat >>confdefs.h <<\_ACEOF
19800#define VA_LIST_IS_ARRAY 1
19801_ACEOF
19802
19803 fi
19804fi
19805
a848cd7e
SC
19806# Check whether --enable-largefile or --disable-largefile was given.
19807if test "${enable_largefile+set}" = set; then
19808 enableval="$enable_largefile"
19809
19810fi;
19811if test "$enable_largefile" != no; then
19812 wx_largefile=no
19813
19814 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19815echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19816if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19817 echo $ECHO_N "(cached) $ECHO_C" >&6
19818else
19819
19820 cat >conftest.$ac_ext <<_ACEOF
19821/* confdefs.h. */
19822_ACEOF
19823cat confdefs.h >>conftest.$ac_ext
19824cat >>conftest.$ac_ext <<_ACEOF
19825/* end confdefs.h. */
19826#define _FILE_OFFSET_BITS 64
19827 #include <sys/types.h>
19828int
19829main ()
19830{
19831typedef struct {
19832 unsigned int field: sizeof(off_t) == 8;
19833} wxlf;
19834
19835 ;
19836 return 0;
19837}
19838_ACEOF
19839rm -f conftest.$ac_objext
19840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19841 (eval $ac_compile) 2>conftest.er1
a848cd7e 19842 ac_status=$?
ac1cb8d3
VS
19843 grep -v '^ *+' conftest.er1 >conftest.err
19844 rm -f conftest.er1
19845 cat conftest.err >&5
a848cd7e
SC
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } &&
9dd0f6c2 19848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850 (eval $ac_try) 2>&5
19851 ac_status=$?
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; } &&
19854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
19860 ac_cv_sys_file_offset_bits=64
19861else
19862 echo "$as_me: failed program was:" >&5
19863sed 's/^/| /' conftest.$ac_ext >&5
19864
19865ac_cv_sys_file_offset_bits=no
19866fi
ac1cb8d3 19867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19868
19869
19870fi
19871echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19872echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19873
19874 if test "$ac_cv_sys_file_offset_bits" != no; then
19875 wx_largefile=yes
19876 cat >>confdefs.h <<_ACEOF
19877#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19878_ACEOF
19879
19880 fi
19881
19882 if test "x$wx_largefile" != "xyes"; then
19883
19884 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19885echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19886if test "${ac_cv_sys_large_files+set}" = set; then
19887 echo $ECHO_N "(cached) $ECHO_C" >&6
19888else
19889
19890 cat >conftest.$ac_ext <<_ACEOF
19891/* confdefs.h. */
19892_ACEOF
19893cat confdefs.h >>conftest.$ac_ext
19894cat >>conftest.$ac_ext <<_ACEOF
19895/* end confdefs.h. */
19896#define _LARGE_FILES 1
19897 #include <sys/types.h>
19898int
19899main ()
19900{
19901typedef struct {
19902 unsigned int field: sizeof(off_t) == 8;
19903} wxlf;
19904
19905 ;
19906 return 0;
19907}
19908_ACEOF
19909rm -f conftest.$ac_objext
19910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19911 (eval $ac_compile) 2>conftest.er1
a848cd7e 19912 ac_status=$?
ac1cb8d3
VS
19913 grep -v '^ *+' conftest.er1 >conftest.err
19914 rm -f conftest.er1
19915 cat conftest.err >&5
a848cd7e
SC
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } &&
9dd0f6c2 19918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19921 ac_status=$?
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; } &&
19924 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
19930 ac_cv_sys_large_files=1
19931else
19932 echo "$as_me: failed program was:" >&5
19933sed 's/^/| /' conftest.$ac_ext >&5
19934
19935ac_cv_sys_large_files=no
19936fi
ac1cb8d3 19937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19938
19939
19940fi
19941echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19942echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19943
19944 if test "$ac_cv_sys_large_files" != no; then
19945 wx_largefile=yes
19946 cat >>confdefs.h <<_ACEOF
19947#define _LARGE_FILES $ac_cv_sys_large_files
19948_ACEOF
19949
19950 fi
19951
19952 fi
19953
19954 echo "$as_me:$LINENO: checking if large file support is available" >&5
19955echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19956 if test "x$wx_largefile" = "xyes"; then
19957 cat >>confdefs.h <<\_ACEOF
19958#define HAVE_LARGEFILE_SUPPORT 1
19959_ACEOF
19960
19961 fi
19962 echo "$as_me:$LINENO: result: $wx_largefile" >&5
19963echo "${ECHO_T}$wx_largefile" >&6
19964fi
19965
5b674b9d
DE
19966
19967if test "x$wx_largefile" = "xyes"; then
19968 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19969 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
19970 else
19971 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19972 fi
19973 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
19974echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19975if test "${ac_cv_sys_largefile_source+set}" = set; then
19976 echo $ECHO_N "(cached) $ECHO_C" >&6
19977else
19978 while :; do
19979 ac_cv_sys_largefile_source=no
19980 cat >conftest.$ac_ext <<_ACEOF
19981/* confdefs.h. */
19982_ACEOF
19983cat confdefs.h >>conftest.$ac_ext
19984cat >>conftest.$ac_ext <<_ACEOF
19985/* end confdefs.h. */
19986#include <stdio.h>
19987int
19988main ()
19989{
19990return !fseeko;
19991 ;
19992 return 0;
19993}
19994_ACEOF
19995rm -f conftest.$ac_objext
19996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19997 (eval $ac_compile) 2>conftest.er1
19998 ac_status=$?
19999 grep -v '^ *+' conftest.er1 >conftest.err
20000 rm -f conftest.er1
20001 cat conftest.err >&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } &&
9dd0f6c2 20004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006 (eval $ac_try) 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; } &&
20010 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20016 break
20017else
20018 echo "$as_me: failed program was:" >&5
20019sed 's/^/| /' conftest.$ac_ext >&5
20020
20021fi
20022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20023 cat >conftest.$ac_ext <<_ACEOF
20024/* confdefs.h. */
20025_ACEOF
20026cat confdefs.h >>conftest.$ac_ext
20027cat >>conftest.$ac_ext <<_ACEOF
20028/* end confdefs.h. */
20029#define _LARGEFILE_SOURCE 1
20030#include <stdio.h>
20031int
20032main ()
20033{
20034return !fseeko;
20035 ;
20036 return 0;
20037}
20038_ACEOF
20039rm -f conftest.$ac_objext
20040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20041 (eval $ac_compile) 2>conftest.er1
20042 ac_status=$?
20043 grep -v '^ *+' conftest.er1 >conftest.err
20044 rm -f conftest.er1
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
9dd0f6c2 20048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20051 ac_status=$?
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; } &&
20054 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20060 ac_cv_sys_largefile_source=1; break
20061else
20062 echo "$as_me: failed program was:" >&5
20063sed 's/^/| /' conftest.$ac_ext >&5
20064
20065fi
20066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20067 break
20068done
20069fi
20070echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20071echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20072if test "$ac_cv_sys_largefile_source" != no; then
20073
20074cat >>confdefs.h <<_ACEOF
20075#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20076_ACEOF
20077
20078fi
20079rm -f conftest*
20080
20081# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20082# in glibc 2.1.3, but that breaks too many other things.
20083# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20084echo "$as_me:$LINENO: checking for fseeko" >&5
20085echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20086if test "${ac_cv_func_fseeko+set}" = set; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20088else
20089 cat >conftest.$ac_ext <<_ACEOF
20090/* confdefs.h. */
20091_ACEOF
20092cat confdefs.h >>conftest.$ac_ext
20093cat >>conftest.$ac_ext <<_ACEOF
20094/* end confdefs.h. */
20095#include <stdio.h>
20096int
20097main ()
20098{
20099return fseeko && fseeko (stdin, 0, 0);
20100 ;
20101 return 0;
20102}
20103_ACEOF
20104rm -f conftest.$ac_objext conftest$ac_exeext
20105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20106 (eval $ac_link) 2>conftest.er1
20107 ac_status=$?
20108 grep -v '^ *+' conftest.er1 >conftest.err
20109 rm -f conftest.er1
20110 cat conftest.err >&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); } &&
9dd0f6c2 20113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115 (eval $ac_try) 2>&5
20116 ac_status=$?
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; } &&
20119 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20125 ac_cv_func_fseeko=yes
20126else
20127 echo "$as_me: failed program was:" >&5
20128sed 's/^/| /' conftest.$ac_ext >&5
20129
20130ac_cv_func_fseeko=no
20131fi
20132rm -f conftest.err conftest.$ac_objext \
20133 conftest$ac_exeext conftest.$ac_ext
20134fi
20135echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20136echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20137if test $ac_cv_func_fseeko = yes; then
20138
20139cat >>confdefs.h <<\_ACEOF
20140#define HAVE_FSEEKO 1
20141_ACEOF
20142
20143fi
20144
5b674b9d
DE
20145 if test "$ac_cv_sys_largefile_source" != no; then
20146 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20147 fi
20148 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20149fi
20150
20151echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20152echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20153if test "${ac_cv_c_bigendian+set}" = set; then
20154 echo $ECHO_N "(cached) $ECHO_C" >&6
20155else
20156 ac_cv_c_bigendian=unknown
20157# See if sys/param.h defines the BYTE_ORDER macro.
20158cat >conftest.$ac_ext <<_ACEOF
20159/* confdefs.h. */
20160_ACEOF
20161cat confdefs.h >>conftest.$ac_ext
20162cat >>conftest.$ac_ext <<_ACEOF
20163/* end confdefs.h. */
20164#include <sys/types.h>
20165#include <sys/param.h>
20166int
20167main ()
20168{
20169
20170#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20171 bogus endian macros
20172#endif
20173 ;
20174 return 0;
20175}
20176_ACEOF
20177rm -f conftest.$ac_objext
20178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20179 (eval $ac_compile) 2>conftest.er1
a848cd7e 20180 ac_status=$?
ac1cb8d3
VS
20181 grep -v '^ *+' conftest.er1 >conftest.err
20182 rm -f conftest.er1
20183 cat conftest.err >&5
a848cd7e
SC
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); } &&
9dd0f6c2 20186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188 (eval $ac_try) 2>&5
20189 ac_status=$?
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; } &&
20192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
20198 # It does; now see whether it defined to BIG_ENDIAN or not.
20199cat >conftest.$ac_ext <<_ACEOF
20200/* confdefs.h. */
20201_ACEOF
20202cat confdefs.h >>conftest.$ac_ext
20203cat >>conftest.$ac_ext <<_ACEOF
20204/* end confdefs.h. */
20205#include <sys/types.h>
20206#include <sys/param.h>
20207int
20208main ()
20209{
20210
20211#if BYTE_ORDER != BIG_ENDIAN
20212 not big endian
20213#endif
20214 ;
20215 return 0;
20216}
20217_ACEOF
20218rm -f conftest.$ac_objext
20219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20220 (eval $ac_compile) 2>conftest.er1
a848cd7e 20221 ac_status=$?
ac1cb8d3
VS
20222 grep -v '^ *+' conftest.er1 >conftest.err
20223 rm -f conftest.er1
20224 cat conftest.err >&5
a848cd7e
SC
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } &&
9dd0f6c2 20227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229 (eval $ac_try) 2>&5
20230 ac_status=$?
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); }; } &&
20233 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
20239 ac_cv_c_bigendian=yes
20240else
20241 echo "$as_me: failed program was:" >&5
20242sed 's/^/| /' conftest.$ac_ext >&5
20243
20244ac_cv_c_bigendian=no
20245fi
ac1cb8d3 20246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20247else
20248 echo "$as_me: failed program was:" >&5
20249sed 's/^/| /' conftest.$ac_ext >&5
20250
20251fi
ac1cb8d3 20252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20253if test $ac_cv_c_bigendian = unknown; then
20254if test "$cross_compiling" = yes; then
20255 ac_cv_c_bigendian=unknown
20256else
20257 cat >conftest.$ac_ext <<_ACEOF
20258/* confdefs.h. */
20259_ACEOF
20260cat confdefs.h >>conftest.$ac_ext
20261cat >>conftest.$ac_ext <<_ACEOF
20262/* end confdefs.h. */
20263main () {
20264 /* Are we little or big endian? From Harbison&Steele. */
20265 union
20266 {
20267 long l;
20268 char c[sizeof (long)];
20269 } u;
20270 u.l = 1;
20271 exit (u.c[sizeof (long) - 1] == 1);
20272}
20273_ACEOF
20274rm -f conftest$ac_exeext
20275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20276 (eval $ac_link) 2>&5
20277 ac_status=$?
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281 (eval $ac_try) 2>&5
20282 ac_status=$?
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); }; }; then
20285 ac_cv_c_bigendian=no
20286else
20287 echo "$as_me: program exited with status $ac_status" >&5
20288echo "$as_me: failed program was:" >&5
20289sed 's/^/| /' conftest.$ac_ext >&5
20290
20291( exit $ac_status )
20292ac_cv_c_bigendian=yes
20293fi
ac1cb8d3 20294rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20295fi
20296fi
20297fi
20298echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20299echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20300if test $ac_cv_c_bigendian = unknown; then
20301 { 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
20302echo "$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;}
20303fi
20304if test $ac_cv_c_bigendian = yes; then
20305 cat >>confdefs.h <<\_ACEOF
20306#define WORDS_BIGENDIAN 1
20307_ACEOF
20308
20309fi
20310
20311
20312ac_ext=cc
20313ac_cpp='$CXXCPP $CPPFLAGS'
20314ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20315ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20316ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20317echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20318echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20319if test -z "$CXXCPP"; then
20320 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20322else
20323 # Double quotes because CXXCPP needs to be expanded
20324 for CXXCPP in "$CXX -E" "/lib/cpp"
20325 do
20326 ac_preproc_ok=false
20327for ac_cxx_preproc_warn_flag in '' yes
20328do
20329 # Use a header file that comes with gcc, so configuring glibc
20330 # with a fresh cross-compiler works.
20331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20332 # <limits.h> exists even on freestanding compilers.
20333 # On the NeXT, cc -E runs the code through the compiler's parser,
20334 # not just through cpp. "Syntax error" is here to catch this case.
20335 cat >conftest.$ac_ext <<_ACEOF
20336/* confdefs.h. */
20337_ACEOF
20338cat confdefs.h >>conftest.$ac_ext
20339cat >>conftest.$ac_ext <<_ACEOF
20340/* end confdefs.h. */
20341#ifdef __STDC__
20342# include <limits.h>
20343#else
20344# include <assert.h>
20345#endif
ac1cb8d3 20346 Syntax error
a848cd7e
SC
20347_ACEOF
20348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20350 ac_status=$?
20351 grep -v '^ *+' conftest.er1 >conftest.err
20352 rm -f conftest.er1
20353 cat conftest.err >&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } >/dev/null; then
20356 if test -s conftest.err; then
20357 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20358 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20359 else
20360 ac_cpp_err=
20361 fi
20362else
20363 ac_cpp_err=yes
20364fi
20365if test -z "$ac_cpp_err"; then
20366 :
20367else
20368 echo "$as_me: failed program was:" >&5
20369sed 's/^/| /' conftest.$ac_ext >&5
20370
20371 # Broken: fails on valid input.
20372continue
20373fi
20374rm -f conftest.err conftest.$ac_ext
20375
20376 # OK, works on sane cases. Now check whether non-existent headers
20377 # can be detected and how.
20378 cat >conftest.$ac_ext <<_ACEOF
20379/* confdefs.h. */
20380_ACEOF
20381cat confdefs.h >>conftest.$ac_ext
20382cat >>conftest.$ac_ext <<_ACEOF
20383/* end confdefs.h. */
20384#include <ac_nonexistent.h>
20385_ACEOF
20386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20388 ac_status=$?
20389 grep -v '^ *+' conftest.er1 >conftest.err
20390 rm -f conftest.er1
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } >/dev/null; then
20394 if test -s conftest.err; then
20395 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20396 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20397 else
20398 ac_cpp_err=
20399 fi
20400else
20401 ac_cpp_err=yes
20402fi
20403if test -z "$ac_cpp_err"; then
20404 # Broken: success on invalid input.
20405continue
20406else
20407 echo "$as_me: failed program was:" >&5
20408sed 's/^/| /' conftest.$ac_ext >&5
20409
20410 # Passes both tests.
20411ac_preproc_ok=:
20412break
20413fi
20414rm -f conftest.err conftest.$ac_ext
20415
20416done
20417# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20418rm -f conftest.err conftest.$ac_ext
20419if $ac_preproc_ok; then
20420 break
20421fi
20422
20423 done
20424 ac_cv_prog_CXXCPP=$CXXCPP
20425
20426fi
20427 CXXCPP=$ac_cv_prog_CXXCPP
20428else
20429 ac_cv_prog_CXXCPP=$CXXCPP
20430fi
20431echo "$as_me:$LINENO: result: $CXXCPP" >&5
20432echo "${ECHO_T}$CXXCPP" >&6
20433ac_preproc_ok=false
20434for ac_cxx_preproc_warn_flag in '' yes
20435do
20436 # Use a header file that comes with gcc, so configuring glibc
20437 # with a fresh cross-compiler works.
20438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20439 # <limits.h> exists even on freestanding compilers.
20440 # On the NeXT, cc -E runs the code through the compiler's parser,
20441 # not just through cpp. "Syntax error" is here to catch this case.
20442 cat >conftest.$ac_ext <<_ACEOF
20443/* confdefs.h. */
20444_ACEOF
20445cat confdefs.h >>conftest.$ac_ext
20446cat >>conftest.$ac_ext <<_ACEOF
20447/* end confdefs.h. */
20448#ifdef __STDC__
20449# include <limits.h>
20450#else
20451# include <assert.h>
20452#endif
ac1cb8d3 20453 Syntax error
a848cd7e
SC
20454_ACEOF
20455if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20457 ac_status=$?
20458 grep -v '^ *+' conftest.er1 >conftest.err
20459 rm -f conftest.er1
20460 cat conftest.err >&5
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); } >/dev/null; then
20463 if test -s conftest.err; then
20464 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20465 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20466 else
20467 ac_cpp_err=
20468 fi
20469else
20470 ac_cpp_err=yes
20471fi
20472if test -z "$ac_cpp_err"; then
20473 :
20474else
20475 echo "$as_me: failed program was:" >&5
20476sed 's/^/| /' conftest.$ac_ext >&5
20477
20478 # Broken: fails on valid input.
20479continue
20480fi
20481rm -f conftest.err conftest.$ac_ext
20482
20483 # OK, works on sane cases. Now check whether non-existent headers
20484 # can be detected and how.
20485 cat >conftest.$ac_ext <<_ACEOF
20486/* confdefs.h. */
20487_ACEOF
20488cat confdefs.h >>conftest.$ac_ext
20489cat >>conftest.$ac_ext <<_ACEOF
20490/* end confdefs.h. */
20491#include <ac_nonexistent.h>
20492_ACEOF
20493if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20495 ac_status=$?
20496 grep -v '^ *+' conftest.er1 >conftest.err
20497 rm -f conftest.er1
20498 cat conftest.err >&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } >/dev/null; then
20501 if test -s conftest.err; then
20502 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20503 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20504 else
20505 ac_cpp_err=
20506 fi
20507else
20508 ac_cpp_err=yes
20509fi
20510if test -z "$ac_cpp_err"; then
20511 # Broken: success on invalid input.
20512continue
20513else
20514 echo "$as_me: failed program was:" >&5
20515sed 's/^/| /' conftest.$ac_ext >&5
20516
20517 # Passes both tests.
20518ac_preproc_ok=:
20519break
20520fi
20521rm -f conftest.err conftest.$ac_ext
20522
20523done
20524# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20525rm -f conftest.err conftest.$ac_ext
20526if $ac_preproc_ok; then
20527 :
20528else
20529 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20530See \`config.log' for more details." >&5
20531echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20532See \`config.log' for more details." >&2;}
20533 { (exit 1); exit 1; }; }
20534fi
20535
20536ac_ext=cc
20537ac_cpp='$CXXCPP $CPPFLAGS'
20538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20541
20542
20543
20544
20545
20546 ac_ext=cc
20547ac_cpp='$CXXCPP $CPPFLAGS'
20548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20551
20552
20553
20554for ac_header in iostream
20555do
20556as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20557if eval "test \"\${$as_ac_Header+set}\" = set"; then
20558 echo "$as_me:$LINENO: checking for $ac_header" >&5
20559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20560if eval "test \"\${$as_ac_Header+set}\" = set"; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20562fi
20563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20565else
20566 # Is the header compilable?
20567echo "$as_me:$LINENO: checking $ac_header usability" >&5
20568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20569cat >conftest.$ac_ext <<_ACEOF
20570/* confdefs.h. */
20571_ACEOF
20572cat confdefs.h >>conftest.$ac_ext
20573cat >>conftest.$ac_ext <<_ACEOF
20574/* end confdefs.h. */
20575$ac_includes_default
20576#include <$ac_header>
20577_ACEOF
20578rm -f conftest.$ac_objext
20579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20580 (eval $ac_compile) 2>conftest.er1
a848cd7e 20581 ac_status=$?
ac1cb8d3
VS
20582 grep -v '^ *+' conftest.er1 >conftest.err
20583 rm -f conftest.er1
20584 cat conftest.err >&5
a848cd7e
SC
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); } &&
9dd0f6c2 20587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20589 (eval $ac_try) 2>&5
20590 ac_status=$?
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); }; } &&
20593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
20599 ac_header_compiler=yes
20600else
20601 echo "$as_me: failed program was:" >&5
20602sed 's/^/| /' conftest.$ac_ext >&5
20603
20604ac_header_compiler=no
20605fi
ac1cb8d3 20606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20607echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20608echo "${ECHO_T}$ac_header_compiler" >&6
20609
20610# Is the header present?
20611echo "$as_me:$LINENO: checking $ac_header presence" >&5
20612echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20613cat >conftest.$ac_ext <<_ACEOF
20614/* confdefs.h. */
20615_ACEOF
20616cat confdefs.h >>conftest.$ac_ext
20617cat >>conftest.$ac_ext <<_ACEOF
20618/* end confdefs.h. */
20619#include <$ac_header>
20620_ACEOF
20621if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20623 ac_status=$?
20624 grep -v '^ *+' conftest.er1 >conftest.err
20625 rm -f conftest.er1
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } >/dev/null; then
20629 if test -s conftest.err; then
20630 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20631 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20632 else
20633 ac_cpp_err=
20634 fi
20635else
20636 ac_cpp_err=yes
20637fi
20638if test -z "$ac_cpp_err"; then
20639 ac_header_preproc=yes
20640else
20641 echo "$as_me: failed program was:" >&5
20642sed 's/^/| /' conftest.$ac_ext >&5
20643
20644 ac_header_preproc=no
20645fi
20646rm -f conftest.err conftest.$ac_ext
20647echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20648echo "${ECHO_T}$ac_header_preproc" >&6
20649
20650# So? What about this header?
ac1cb8d3
VS
20651case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20652 yes:no: )
a848cd7e
SC
20653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20654echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20656echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20657 ac_header_preproc=yes
a848cd7e 20658 ;;
ac1cb8d3 20659 no:yes:* )
a848cd7e
SC
20660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20661echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20663echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20665echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20667echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20669echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20671echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20672 (
20673 cat <<\_ASBOX
ac1cb8d3
VS
20674## ----------------------------------------- ##
20675## Report this to wx-dev@lists.wxwidgets.org ##
20676## ----------------------------------------- ##
a848cd7e
SC
20677_ASBOX
20678 ) |
20679 sed "s/^/$as_me: WARNING: /" >&2
20680 ;;
20681esac
20682echo "$as_me:$LINENO: checking for $ac_header" >&5
20683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20684if eval "test \"\${$as_ac_Header+set}\" = set"; then
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20686else
ac1cb8d3 20687 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20688fi
20689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20690echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20691
20692fi
20693if test `eval echo '${'$as_ac_Header'}'` = yes; then
20694 cat >>confdefs.h <<_ACEOF
20695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20696_ACEOF
20697
20698fi
20699
20700done
20701
20702
20703 if test "$ac_cv_header_iostream" = "yes" ; then
20704 :
20705 else
20706 cat >>confdefs.h <<\_ACEOF
20707#define wxUSE_IOSTREAMH 1
20708_ACEOF
20709
20710 fi
20711
20712 ac_ext=c
20713ac_cpp='$CPP $CPPFLAGS'
20714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20716ac_compiler_gnu=$ac_cv_c_compiler_gnu
20717
20718
20719
20720
20721 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20722echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20723if test "${wx_cv_cpp_bool+set}" = set; then
20724 echo $ECHO_N "(cached) $ECHO_C" >&6
20725else
20726
20727
20728
20729 ac_ext=cc
20730ac_cpp='$CXXCPP $CPPFLAGS'
20731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20734
20735
20736 cat >conftest.$ac_ext <<_ACEOF
20737/* confdefs.h. */
20738_ACEOF
20739cat confdefs.h >>conftest.$ac_ext
20740cat >>conftest.$ac_ext <<_ACEOF
20741/* end confdefs.h. */
20742
20743
20744int
20745main ()
20746{
20747
20748 bool b = true;
20749
20750 return 0;
20751
20752 ;
20753 return 0;
20754}
20755_ACEOF
20756rm -f conftest.$ac_objext
20757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20758 (eval $ac_compile) 2>conftest.er1
a848cd7e 20759 ac_status=$?
ac1cb8d3
VS
20760 grep -v '^ *+' conftest.er1 >conftest.err
20761 rm -f conftest.er1
20762 cat conftest.err >&5
a848cd7e
SC
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } &&
9dd0f6c2 20765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767 (eval $ac_try) 2>&5
20768 ac_status=$?
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; } &&
20771 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
20777
20778 wx_cv_cpp_bool=yes
20779
20780else
20781 echo "$as_me: failed program was:" >&5
20782sed 's/^/| /' conftest.$ac_ext >&5
20783
20784
20785 wx_cv_cpp_bool=no
20786
20787
20788fi
ac1cb8d3 20789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20790
20791 ac_ext=c
20792ac_cpp='$CPP $CPPFLAGS'
20793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20795ac_compiler_gnu=$ac_cv_c_compiler_gnu
20796
20797
20798fi
20799echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20800echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20801
20802 if test "$wx_cv_cpp_bool" = "yes"; then
20803 cat >>confdefs.h <<\_ACEOF
20804#define HAVE_BOOL 1
20805_ACEOF
20806
20807 fi
20808
20809
20810
20811 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20812echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20813if test "${wx_cv_explicit+set}" = set; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20815else
20816
20817
20818
20819 ac_ext=cc
20820ac_cpp='$CXXCPP $CPPFLAGS'
20821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20824
20825
20826 cat >conftest.$ac_ext <<_ACEOF
20827/* confdefs.h. */
20828_ACEOF
20829cat confdefs.h >>conftest.$ac_ext
20830cat >>conftest.$ac_ext <<_ACEOF
20831/* end confdefs.h. */
20832
20833 class Foo { public: explicit Foo(int) {} };
20834
20835int
20836main ()
20837{
20838
20839 return 0;
20840
20841 ;
20842 return 0;
20843}
20844_ACEOF
20845rm -f conftest.$ac_objext
20846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20847 (eval $ac_compile) 2>conftest.er1
a848cd7e 20848 ac_status=$?
ac1cb8d3
VS
20849 grep -v '^ *+' conftest.er1 >conftest.err
20850 rm -f conftest.er1
20851 cat conftest.err >&5
a848cd7e
SC
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); } &&
9dd0f6c2 20854 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20856 (eval $ac_try) 2>&5
20857 ac_status=$?
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); }; } &&
20860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
20866
20867 cat >conftest.$ac_ext <<_ACEOF
20868/* confdefs.h. */
20869_ACEOF
20870cat confdefs.h >>conftest.$ac_ext
20871cat >>conftest.$ac_ext <<_ACEOF
20872/* end confdefs.h. */
20873
20874 class Foo { public: explicit Foo(int) {} };
20875 static void TakeFoo(const Foo& foo) { }
20876
20877int
20878main ()
20879{
20880
20881 TakeFoo(17);
20882 return 0;
20883
20884 ;
20885 return 0;
20886}
20887_ACEOF
20888rm -f conftest.$ac_objext
20889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20890 (eval $ac_compile) 2>conftest.er1
a848cd7e 20891 ac_status=$?
ac1cb8d3
VS
20892 grep -v '^ *+' conftest.er1 >conftest.err
20893 rm -f conftest.er1
20894 cat conftest.err >&5
a848cd7e
SC
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } &&
9dd0f6c2 20897 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20899 (eval $ac_try) 2>&5
20900 ac_status=$?
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); }; } &&
20903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
20909 wx_cv_explicit=no
20910else
20911 echo "$as_me: failed program was:" >&5
20912sed 's/^/| /' conftest.$ac_ext >&5
20913
20914wx_cv_explicit=yes
20915
20916fi
ac1cb8d3 20917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20918
20919else
20920 echo "$as_me: failed program was:" >&5
20921sed 's/^/| /' conftest.$ac_ext >&5
20922
20923wx_cv_explicit=no
20924
20925fi
ac1cb8d3 20926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20927
20928 ac_ext=c
20929ac_cpp='$CPP $CPPFLAGS'
20930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932ac_compiler_gnu=$ac_cv_c_compiler_gnu
20933
20934
20935fi
20936echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20937echo "${ECHO_T}$wx_cv_explicit" >&6
20938
20939 if test "$wx_cv_explicit" = "yes"; then
20940 cat >>confdefs.h <<\_ACEOF
20941#define HAVE_EXPLICIT 1
20942_ACEOF
20943
20944 fi
20945
20946
20947echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20948echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20949if test "${ac_cv_cxx_const_cast+set}" = set; then
20950 echo $ECHO_N "(cached) $ECHO_C" >&6
20951else
20952
20953
20954 ac_ext=cc
20955ac_cpp='$CXXCPP $CPPFLAGS'
20956ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20957ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20958ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20959
20960 cat >conftest.$ac_ext <<_ACEOF
20961/* confdefs.h. */
20962_ACEOF
20963cat confdefs.h >>conftest.$ac_ext
20964cat >>conftest.$ac_ext <<_ACEOF
20965/* end confdefs.h. */
20966
20967int
20968main ()
20969{
20970int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20971 ;
20972 return 0;
20973}
20974_ACEOF
20975rm -f conftest.$ac_objext
20976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20977 (eval $ac_compile) 2>conftest.er1
a848cd7e 20978 ac_status=$?
ac1cb8d3
VS
20979 grep -v '^ *+' conftest.er1 >conftest.err
20980 rm -f conftest.er1
20981 cat conftest.err >&5
a848cd7e
SC
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } &&
9dd0f6c2 20984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986 (eval $ac_try) 2>&5
20987 ac_status=$?
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; } &&
20990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
20996 ac_cv_cxx_const_cast=yes
20997else
20998 echo "$as_me: failed program was:" >&5
20999sed 's/^/| /' conftest.$ac_ext >&5
21000
21001ac_cv_cxx_const_cast=no
21002fi
ac1cb8d3 21003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21004 ac_ext=c
21005ac_cpp='$CPP $CPPFLAGS'
21006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21008ac_compiler_gnu=$ac_cv_c_compiler_gnu
21009
21010
21011fi
21012echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21013echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21014if test "$ac_cv_cxx_const_cast" = yes; then
21015
21016cat >>confdefs.h <<\_ACEOF
21017#define HAVE_CONST_CAST
21018_ACEOF
21019
21020fi
21021
7714864e
RL
21022echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21023echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21024if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21025 echo $ECHO_N "(cached) $ECHO_C" >&6
21026else
21027
21028
21029 ac_ext=cc
21030ac_cpp='$CXXCPP $CPPFLAGS'
21031ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21032ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21033ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21034
21035 cat >conftest.$ac_ext <<_ACEOF
21036/* confdefs.h. */
21037_ACEOF
21038cat confdefs.h >>conftest.$ac_ext
21039cat >>conftest.$ac_ext <<_ACEOF
21040/* end confdefs.h. */
21041#include <typeinfo>
21042class Base { public : Base () {} virtual void f () = 0;};
21043class Derived : public Base { public : Derived () {} virtual void f () {} };
21044class Unrelated { public : Unrelated () {} };
21045int g (Unrelated&) { return 0; }
21046int
21047main ()
21048{
21049
21050Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21051 ;
21052 return 0;
21053}
21054_ACEOF
21055rm -f conftest.$ac_objext
21056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21057 (eval $ac_compile) 2>conftest.er1
21058 ac_status=$?
21059 grep -v '^ *+' conftest.er1 >conftest.err
21060 rm -f conftest.er1
21061 cat conftest.err >&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } &&
9dd0f6c2 21064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21067 ac_status=$?
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; } &&
21070 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21076 ac_cv_cxx_reinterpret_cast=yes
21077else
21078 echo "$as_me: failed program was:" >&5
21079sed 's/^/| /' conftest.$ac_ext >&5
21080
21081ac_cv_cxx_reinterpret_cast=no
21082fi
21083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21084 ac_ext=c
21085ac_cpp='$CPP $CPPFLAGS'
21086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21088ac_compiler_gnu=$ac_cv_c_compiler_gnu
21089
21090
21091fi
21092echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21093echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21094if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21095
21096cat >>confdefs.h <<\_ACEOF
21097#define HAVE_REINTERPRET_CAST
21098_ACEOF
21099
21100fi
21101
a848cd7e
SC
21102echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21103echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21104if test "${ac_cv_cxx_static_cast+set}" = set; then
21105 echo $ECHO_N "(cached) $ECHO_C" >&6
21106else
21107
21108
21109 ac_ext=cc
21110ac_cpp='$CXXCPP $CPPFLAGS'
21111ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21112ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21113ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21114
21115 cat >conftest.$ac_ext <<_ACEOF
21116/* confdefs.h. */
21117_ACEOF
21118cat confdefs.h >>conftest.$ac_ext
21119cat >>conftest.$ac_ext <<_ACEOF
21120/* end confdefs.h. */
21121#include <typeinfo>
21122class Base { public : Base () {} virtual void f () = 0; };
21123class Derived : public Base { public : Derived () {} virtual void f () {} };
21124int g (Derived&) { return 0; }
21125int
21126main ()
21127{
21128
21129Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21130 ;
21131 return 0;
21132}
21133_ACEOF
21134rm -f conftest.$ac_objext
21135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21136 (eval $ac_compile) 2>conftest.er1
a848cd7e 21137 ac_status=$?
ac1cb8d3
VS
21138 grep -v '^ *+' conftest.er1 >conftest.err
21139 rm -f conftest.er1
21140 cat conftest.err >&5
a848cd7e
SC
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } &&
9dd0f6c2 21143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145 (eval $ac_try) 2>&5
21146 ac_status=$?
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; } &&
21149 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21152 ac_status=$?
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21155 ac_cv_cxx_static_cast=yes
21156else
21157 echo "$as_me: failed program was:" >&5
21158sed 's/^/| /' conftest.$ac_ext >&5
21159
21160ac_cv_cxx_static_cast=no
21161fi
ac1cb8d3 21162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21163 ac_ext=c
21164ac_cpp='$CPP $CPPFLAGS'
21165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21167ac_compiler_gnu=$ac_cv_c_compiler_gnu
21168
21169
21170fi
21171echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21172echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21173if test "$ac_cv_cxx_static_cast" = yes; then
21174
21175cat >>confdefs.h <<\_ACEOF
21176#define HAVE_STATIC_CAST
21177_ACEOF
21178
21179fi
21180
21181
0a08f02a
MB
21182if test "$wxUSE_UNICODE" = "yes" -a \
21183 \( "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes" \); then
a848cd7e
SC
21184 ac_ext=cc
21185ac_cpp='$CXXCPP $CPPFLAGS'
21186ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21187ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21188ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21189
21190
0a08f02a
MB
21191 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
21192echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
a848cd7e
SC
21193 cat >conftest.$ac_ext <<_ACEOF
21194/* confdefs.h. */
21195_ACEOF
21196cat confdefs.h >>conftest.$ac_ext
21197cat >>conftest.$ac_ext <<_ACEOF
21198/* end confdefs.h. */
21199#include <string>
a848cd7e
SC
21200int
21201main ()
21202{
0a08f02a 21203std::wstring foo;
a848cd7e
SC
21204 ;
21205 return 0;
21206}
21207_ACEOF
21208rm -f conftest.$ac_objext
21209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21210 (eval $ac_compile) 2>conftest.er1
a848cd7e 21211 ac_status=$?
ac1cb8d3
VS
21212 grep -v '^ *+' conftest.er1 >conftest.err
21213 rm -f conftest.er1
21214 cat conftest.err >&5
a848cd7e
SC
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } &&
9dd0f6c2 21217 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21220 ac_status=$?
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; } &&
21223 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
21229 echo "$as_me:$LINENO: result: yes" >&5
21230echo "${ECHO_T}yes" >&6
0a08f02a
MB
21231 cat >>confdefs.h <<\_ACEOF
21232#define HAVE_STD_WSTRING 1
21233_ACEOF
21234
a848cd7e
SC
21235else
21236 echo "$as_me: failed program was:" >&5
21237sed 's/^/| /' conftest.$ac_ext >&5
21238
21239echo "$as_me:$LINENO: result: no" >&5
21240echo "${ECHO_T}no" >&6
0a08f02a
MB
21241 echo "$as_me:$LINENO: checking if std::basic_string<wchar_t> works" >&5
21242echo $ECHO_N "checking if std::basic_string<wchar_t> works... $ECHO_C" >&6
21243 cat >conftest.$ac_ext <<_ACEOF
21244/* confdefs.h. */
21245_ACEOF
21246cat confdefs.h >>conftest.$ac_ext
21247cat >>conftest.$ac_ext <<_ACEOF
21248/* end confdefs.h. */
21249
21250 #ifdef HAVE_WCHAR_H
21251 # ifdef __CYGWIN__
21252 # include <stddef.h>
21253 # endif
21254 # include <wchar.h>
21255 #endif
21256 #ifdef HAVE_STDLIB_H
21257 # include <stdlib.h>
21258 #endif
21259 #include <stdio.h>
21260 #include <string>
21261
21262int
21263main ()
21264{
21265std::basic_string<wchar_t> foo;
21266 const wchar_t* dummy = foo.c_str();
21267 ;
21268 return 0;
21269}
21270_ACEOF
21271rm -f conftest.$ac_objext
21272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21273 (eval $ac_compile) 2>conftest.er1
21274 ac_status=$?
21275 grep -v '^ *+' conftest.er1 >conftest.err
21276 rm -f conftest.er1
21277 cat conftest.err >&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } &&
21280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21282 (eval $ac_try) 2>&5
21283 ac_status=$?
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); }; } &&
21286 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21292 echo "$as_me:$LINENO: result: yes" >&5
21293echo "${ECHO_T}yes" >&6
21294else
21295 echo "$as_me: failed program was:" >&5
21296sed 's/^/| /' conftest.$ac_ext >&5
21297
21298echo "$as_me:$LINENO: result: no" >&5
21299echo "${ECHO_T}no" >&6
21300 { { echo "$as_me:$LINENO: error: Can't compile without unicode string class" >&5
21301echo "$as_me: error: Can't compile without unicode string class" >&2;}
a848cd7e 21302 { (exit 1); exit 1; }; }
0a08f02a 21303
a848cd7e 21304fi
ac1cb8d3 21305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21306
0a08f02a
MB
21307fi
21308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21309
21310 ac_ext=c
21311ac_cpp='$CPP $CPPFLAGS'
21312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21314ac_compiler_gnu=$ac_cv_c_compiler_gnu
21315
21316fi
21317
21318if test "$wxUSE_STL" = "yes"; then
21319 ac_ext=cc
21320ac_cpp='$CXXCPP $CPPFLAGS'
21321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21324
21325
21326 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21327echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21328 cat >conftest.$ac_ext <<_ACEOF
21329/* confdefs.h. */
21330_ACEOF
21331cat confdefs.h >>conftest.$ac_ext
21332cat >>conftest.$ac_ext <<_ACEOF
21333/* end confdefs.h. */
21334#include <string>
0a08f02a
MB
21335 #include <functional>
21336 #include <algorithm>
21337 #include <vector>
21338 #include <list>
a848cd7e
SC
21339int
21340main ()
21341{
0a08f02a
MB
21342std::vector<int> moo;
21343 std::list<int> foo;
21344 std::vector<int>::iterator it =
21345 std::find_if(moo.begin(), moo.end(),
21346 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21347 ;
21348 return 0;
21349}
21350_ACEOF
21351rm -f conftest.$ac_objext
21352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21353 (eval $ac_compile) 2>conftest.er1
a848cd7e 21354 ac_status=$?
ac1cb8d3
VS
21355 grep -v '^ *+' conftest.er1 >conftest.err
21356 rm -f conftest.er1
21357 cat conftest.err >&5
a848cd7e
SC
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); } &&
9dd0f6c2 21360 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21362 (eval $ac_try) 2>&5
21363 ac_status=$?
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); }; } &&
21366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
21372 echo "$as_me:$LINENO: result: yes" >&5
21373echo "${ECHO_T}yes" >&6
a848cd7e
SC
21374else
21375 echo "$as_me: failed program was:" >&5
21376sed 's/^/| /' conftest.$ac_ext >&5
21377
21378echo "$as_me:$LINENO: result: no" >&5
21379echo "${ECHO_T}no" >&6
0a08f02a
MB
21380 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21381echo "$as_me: error: Basic STL functionality missing" >&2;}
21382 { (exit 1); exit 1; }; }
a848cd7e 21383fi
ac1cb8d3 21384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21385
21386 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21387echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21388 cat >conftest.$ac_ext <<_ACEOF
21389/* confdefs.h. */
21390_ACEOF
21391cat confdefs.h >>conftest.$ac_ext
21392cat >>conftest.$ac_ext <<_ACEOF
21393/* end confdefs.h. */
21394#include <string>
21395int
21396main ()
21397{
21398std::string foo, bar;
21399 foo.compare(bar);
21400 foo.compare(1, 1, bar);
21401 foo.compare(1, 1, bar, 1, 1);
21402 foo.compare("");
21403 foo.compare(1, 1, "");
21404 foo.compare(1, 1, "", 2);
21405 ;
21406 return 0;
21407}
21408_ACEOF
21409rm -f conftest.$ac_objext
21410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21411 (eval $ac_compile) 2>conftest.er1
a848cd7e 21412 ac_status=$?
ac1cb8d3
VS
21413 grep -v '^ *+' conftest.er1 >conftest.err
21414 rm -f conftest.er1
21415 cat conftest.err >&5
a848cd7e
SC
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } &&
9dd0f6c2 21418 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420 (eval $ac_try) 2>&5
21421 ac_status=$?
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); }; } &&
21424 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
21430 echo "$as_me:$LINENO: result: yes" >&5
21431echo "${ECHO_T}yes" >&6
21432 cat >>confdefs.h <<\_ACEOF
21433#define HAVE_STD_STRING_COMPARE 1
21434_ACEOF
21435
21436else
21437 echo "$as_me: failed program was:" >&5
21438sed 's/^/| /' conftest.$ac_ext >&5
21439
21440echo "$as_me:$LINENO: result: no" >&5
21441echo "${ECHO_T}no" >&6
21442fi
ac1cb8d3 21443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21444
21445 if test "${ac_cv_header_hash_map+set}" = set; then
21446 echo "$as_me:$LINENO: checking for hash_map" >&5
21447echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21448if test "${ac_cv_header_hash_map+set}" = set; then
21449 echo $ECHO_N "(cached) $ECHO_C" >&6
21450fi
21451echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21452echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21453else
21454 # Is the header compilable?
21455echo "$as_me:$LINENO: checking hash_map usability" >&5
21456echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21457cat >conftest.$ac_ext <<_ACEOF
21458/* confdefs.h. */
21459_ACEOF
21460cat confdefs.h >>conftest.$ac_ext
21461cat >>conftest.$ac_ext <<_ACEOF
21462/* end confdefs.h. */
21463$ac_includes_default
21464#include <hash_map>
21465_ACEOF
21466rm -f conftest.$ac_objext
21467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21468 (eval $ac_compile) 2>conftest.er1
bdcade0a 21469 ac_status=$?
ac1cb8d3
VS
21470 grep -v '^ *+' conftest.er1 >conftest.err
21471 rm -f conftest.er1
21472 cat conftest.err >&5
bdcade0a
MB
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } &&
9dd0f6c2 21475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477 (eval $ac_try) 2>&5
21478 ac_status=$?
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; } &&
21481 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
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); }; }; then
21487 ac_header_compiler=yes
21488else
21489 echo "$as_me: failed program was:" >&5
21490sed 's/^/| /' conftest.$ac_ext >&5
21491
21492ac_header_compiler=no
21493fi
ac1cb8d3 21494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21495echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21496echo "${ECHO_T}$ac_header_compiler" >&6
21497
21498# Is the header present?
21499echo "$as_me:$LINENO: checking hash_map presence" >&5
21500echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21501cat >conftest.$ac_ext <<_ACEOF
21502/* confdefs.h. */
21503_ACEOF
21504cat confdefs.h >>conftest.$ac_ext
21505cat >>conftest.$ac_ext <<_ACEOF
21506/* end confdefs.h. */
21507#include <hash_map>
21508_ACEOF
21509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21511 ac_status=$?
21512 grep -v '^ *+' conftest.er1 >conftest.err
21513 rm -f conftest.er1
21514 cat conftest.err >&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); } >/dev/null; then
21517 if test -s conftest.err; then
21518 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21519 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21520 else
21521 ac_cpp_err=
21522 fi
21523else
21524 ac_cpp_err=yes
21525fi
21526if test -z "$ac_cpp_err"; then
21527 ac_header_preproc=yes
21528else
21529 echo "$as_me: failed program was:" >&5
21530sed 's/^/| /' conftest.$ac_ext >&5
21531
21532 ac_header_preproc=no
21533fi
21534rm -f conftest.err conftest.$ac_ext
21535echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21536echo "${ECHO_T}$ac_header_preproc" >&6
21537
21538# So? What about this header?
ac1cb8d3
VS
21539case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21540 yes:no: )
bdcade0a
MB
21541 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21542echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21543 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21544echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21545 ac_header_preproc=yes
bdcade0a 21546 ;;
ac1cb8d3 21547 no:yes:* )
bdcade0a
MB
21548 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21549echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21550 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21551echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21552 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21553echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21554 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21555echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21556 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21557echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21558 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21559echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21560 (
21561 cat <<\_ASBOX
ac1cb8d3
VS
21562## ----------------------------------------- ##
21563## Report this to wx-dev@lists.wxwidgets.org ##
21564## ----------------------------------------- ##
bdcade0a
MB
21565_ASBOX
21566 ) |
21567 sed "s/^/$as_me: WARNING: /" >&2
21568 ;;
21569esac
21570echo "$as_me:$LINENO: checking for hash_map" >&5
21571echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21572if test "${ac_cv_header_hash_map+set}" = set; then
21573 echo $ECHO_N "(cached) $ECHO_C" >&6
21574else
21575 ac_cv_header_hash_map=$ac_header_preproc
21576fi
21577echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21578echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21579
21580fi
21581if test $ac_cv_header_hash_map = yes; then
21582 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21583echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21584 cat >conftest.$ac_ext <<_ACEOF
21585/* confdefs.h. */
21586_ACEOF
21587cat confdefs.h >>conftest.$ac_ext
21588cat >>conftest.$ac_ext <<_ACEOF
21589/* end confdefs.h. */
21590#include <hash_map>
21591 #include <hash_set>
21592int
21593main ()
21594{
21595std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21596 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21597 ;
21598 return 0;
21599}
21600_ACEOF
21601rm -f conftest.$ac_objext
21602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21603 (eval $ac_compile) 2>conftest.er1
bdcade0a 21604 ac_status=$?
ac1cb8d3
VS
21605 grep -v '^ *+' conftest.er1 >conftest.err
21606 rm -f conftest.er1
21607 cat conftest.err >&5
bdcade0a
MB
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); } &&
9dd0f6c2 21610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21612 (eval $ac_try) 2>&5
21613 ac_status=$?
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; } &&
21616 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
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); }; }; then
21622 echo "$as_me:$LINENO: result: yes" >&5
21623echo "${ECHO_T}yes" >&6
21624 cat >>confdefs.h <<\_ACEOF
21625#define HAVE_HASH_MAP 1
21626_ACEOF
21627
21628 cat >>confdefs.h <<\_ACEOF
21629#define HAVE_STD_HASH_MAP 1
21630_ACEOF
21631
21632else
21633 echo "$as_me: failed program was:" >&5
21634sed 's/^/| /' conftest.$ac_ext >&5
21635
21636echo "$as_me:$LINENO: result: no" >&5
21637echo "${ECHO_T}no" >&6
21638fi
ac1cb8d3 21639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21640
21641fi
21642
21643
21644
21645 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21646 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21647echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21648if test "${ac_cv_header_ext_hash_map+set}" = set; then
21649 echo $ECHO_N "(cached) $ECHO_C" >&6
21650fi
21651echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21652echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21653else
21654 # Is the header compilable?
21655echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21656echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21657cat >conftest.$ac_ext <<_ACEOF
21658/* confdefs.h. */
21659_ACEOF
21660cat confdefs.h >>conftest.$ac_ext
21661cat >>conftest.$ac_ext <<_ACEOF
21662/* end confdefs.h. */
21663$ac_includes_default
21664#include <ext/hash_map>
21665_ACEOF
21666rm -f conftest.$ac_objext
21667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21668 (eval $ac_compile) 2>conftest.er1
bdcade0a 21669 ac_status=$?
ac1cb8d3
VS
21670 grep -v '^ *+' conftest.er1 >conftest.err
21671 rm -f conftest.er1
21672 cat conftest.err >&5
bdcade0a
MB
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } &&
9dd0f6c2 21675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677 (eval $ac_try) 2>&5
21678 ac_status=$?
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; } &&
21681 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
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); }; }; then
21687 ac_header_compiler=yes
21688else
21689 echo "$as_me: failed program was:" >&5
21690sed 's/^/| /' conftest.$ac_ext >&5
21691
21692ac_header_compiler=no
21693fi
ac1cb8d3 21694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21696echo "${ECHO_T}$ac_header_compiler" >&6
21697
21698# Is the header present?
21699echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21700echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21701cat >conftest.$ac_ext <<_ACEOF
21702/* confdefs.h. */
21703_ACEOF
21704cat confdefs.h >>conftest.$ac_ext
21705cat >>conftest.$ac_ext <<_ACEOF
21706/* end confdefs.h. */
21707#include <ext/hash_map>
21708_ACEOF
21709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21711 ac_status=$?
21712 grep -v '^ *+' conftest.er1 >conftest.err
21713 rm -f conftest.er1
21714 cat conftest.err >&5
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); } >/dev/null; then
21717 if test -s conftest.err; then
21718 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21719 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21720 else
21721 ac_cpp_err=
21722 fi
21723else
21724 ac_cpp_err=yes
21725fi
21726if test -z "$ac_cpp_err"; then
21727 ac_header_preproc=yes
21728else
21729 echo "$as_me: failed program was:" >&5
21730sed 's/^/| /' conftest.$ac_ext >&5
21731
21732 ac_header_preproc=no
21733fi
21734rm -f conftest.err conftest.$ac_ext
21735echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21736echo "${ECHO_T}$ac_header_preproc" >&6
21737
21738# So? What about this header?
ac1cb8d3
VS
21739case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21740 yes:no: )
bdcade0a
MB
21741 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21742echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21743 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21744echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21745 ac_header_preproc=yes
bdcade0a 21746 ;;
ac1cb8d3 21747 no:yes:* )
bdcade0a
MB
21748 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21749echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21750 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21751echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21752 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21753echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21754 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21755echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21756 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21757echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21758 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21759echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21760 (
21761 cat <<\_ASBOX
ac1cb8d3
VS
21762## ----------------------------------------- ##
21763## Report this to wx-dev@lists.wxwidgets.org ##
21764## ----------------------------------------- ##
bdcade0a
MB
21765_ASBOX
21766 ) |
21767 sed "s/^/$as_me: WARNING: /" >&2
21768 ;;
21769esac
21770echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21771echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21772if test "${ac_cv_header_ext_hash_map+set}" = set; then
21773 echo $ECHO_N "(cached) $ECHO_C" >&6
21774else
21775 ac_cv_header_ext_hash_map=$ac_header_preproc
21776fi
21777echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21778echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21779
21780fi
21781if test $ac_cv_header_ext_hash_map = yes; then
21782 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21783echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21784 cat >conftest.$ac_ext <<_ACEOF
21785/* confdefs.h. */
21786_ACEOF
21787cat confdefs.h >>conftest.$ac_ext
21788cat >>conftest.$ac_ext <<_ACEOF
21789/* end confdefs.h. */
21790#include <ext/hash_map>
21791 #include <ext/hash_set>
21792int
21793main ()
21794{
21795__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21796 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21797 ;
21798 return 0;
21799}
21800_ACEOF
21801rm -f conftest.$ac_objext
21802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21803 (eval $ac_compile) 2>conftest.er1
bdcade0a 21804 ac_status=$?
ac1cb8d3
VS
21805 grep -v '^ *+' conftest.er1 >conftest.err
21806 rm -f conftest.er1
21807 cat conftest.err >&5
bdcade0a
MB
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } &&
9dd0f6c2 21810 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812 (eval $ac_try) 2>&5
21813 ac_status=$?
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); }; } &&
21816 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
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); }; }; then
21822 echo "$as_me:$LINENO: result: yes" >&5
21823echo "${ECHO_T}yes" >&6
21824 cat >>confdefs.h <<\_ACEOF
21825#define HAVE_EXT_HASH_MAP 1
21826_ACEOF
21827
21828 cat >>confdefs.h <<\_ACEOF
21829#define HAVE_GNU_CXX_HASH_MAP 1
21830_ACEOF
21831
21832else
21833 echo "$as_me: failed program was:" >&5
21834sed 's/^/| /' conftest.$ac_ext >&5
21835
21836echo "$as_me:$LINENO: result: no" >&5
21837echo "${ECHO_T}no" >&6
21838fi
ac1cb8d3 21839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21840
21841fi
21842
21843
a848cd7e
SC
21844
21845 ac_ext=c
21846ac_cpp='$CPP $CPPFLAGS'
21847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21849ac_compiler_gnu=$ac_cv_c_compiler_gnu
21850
21851fi
21852
21853
21854SEARCH_INCLUDE="\
21855 /usr/local/include \
21856 \
21857 /usr/Motif-2.1/include \
21858 /usr/Motif-1.2/include \
21859 /usr/include/Motif1.2 \
21860 /opt/xpm/include/X11 \
21861 /opt/GBxpm/include/ \
21862 /opt/GBxpm/X11/include/ \
21863 \
21864 /usr/dt/include \
21865 /usr/openwin/include \
21866 \
21867 /usr/include/Xm \
21868 \
21869 /usr/X11R6/include \
21870 /usr/X11R6.4/include \
21871 /usr/X11R5/include \
21872 /usr/X11R4/include \
21873 \
21874 /usr/include/X11R6 \
21875 /usr/include/X11R5 \
21876 /usr/include/X11R4 \
21877 \
21878 /usr/local/X11R6/include \
21879 /usr/local/X11R5/include \
21880 /usr/local/X11R4/include \
21881 \
21882 /usr/local/include/X11R6 \
21883 /usr/local/include/X11R5 \
21884 /usr/local/include/X11R4 \
21885 \
21886 /usr/X11/include \
21887 /usr/include/X11 \
21888 /usr/local/X11/include \
21889 /usr/local/include/X11 \
21890 \
21891 /usr/X386/include \
21892 /usr/x386/include \
21893 /usr/XFree86/include/X11 \
21894 \
21895 X:/XFree86/include \
21896 X:/XFree86/include/X11 \
21897 \
21898 /usr/include/gtk \
21899 /usr/local/include/gtk \
21900 /usr/include/glib \
21901 /usr/local/include/glib \
21902 \
21903 /usr/include/qt \
21904 /usr/local/include/qt \
21905 \
21906 /usr/local/arm/3.3.2/include \
21907 \
21908 /usr/include/windows \
21909 /usr/include/wine \
21910 /usr/local/include/wine \
21911 \
21912 /usr/unsupported/include \
21913 /usr/athena/include \
21914 /usr/local/x11r5/include \
21915 /usr/lpp/Xamples/include \
21916 \
21917 /usr/openwin/share/include"
21918
07158944 21919SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e
SC
21920
21921
21922cat >confcache <<\_ACEOF
21923# This file is a shell script that caches the results of configure
21924# tests run on this system so they can be shared between configure
21925# scripts and configure runs, see configure's option --config-cache.
21926# It is not useful on other systems. If it contains results you don't
21927# want to keep, you may remove or edit it.
21928#
21929# config.status only pays attention to the cache file if you give it
21930# the --recheck option to rerun configure.
21931#
21932# `ac_cv_env_foo' variables (set or unset) will be overridden when
21933# loading this file, other *unset* `ac_cv_foo' will be assigned the
21934# following values.
21935
21936_ACEOF
21937
21938# The following way of writing the cache mishandles newlines in values,
21939# but we know of no workaround that is simple, portable, and efficient.
21940# So, don't put newlines in cache variables' values.
21941# Ultrix sh set writes to stderr and can't be redirected directly,
21942# and sets the high bit in the cache file unless we assign to the vars.
21943{
21944 (set) 2>&1 |
21945 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21946 *ac_space=\ *)
21947 # `set' does not quote correctly, so add quotes (double-quote
21948 # substitution turns \\\\ into \\, and sed turns \\ into \).
21949 sed -n \
ac1cb8d3
VS
21950 "s/'/'\\\\''/g;
21951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
21952 ;;
21953 *)
21954 # `set' quotes correctly as required by POSIX, so do not add quotes.
21955 sed -n \
ac1cb8d3 21956 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
21957 ;;
21958 esac;
21959} |
21960 sed '
21961 t clear
21962 : clear
21963 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21964 t end
21965 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21966 : end' >>confcache
21967if diff $cache_file confcache >/dev/null 2>&1; then :; else
21968 if test -w $cache_file; then
21969 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21970 cat confcache >$cache_file
21971 else
21972 echo "not updating unwritable cache $cache_file"
21973 fi
21974fi
21975rm -f confcache
21976
21977if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
21978 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
21979echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
21980if test "${wx_cv_lib_glibc21+set}" = set; then
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21982else
21983
21984 cat >conftest.$ac_ext <<_ACEOF
21985/* confdefs.h. */
21986_ACEOF
21987cat confdefs.h >>conftest.$ac_ext
21988cat >>conftest.$ac_ext <<_ACEOF
21989/* end confdefs.h. */
21990#include <features.h>
21991int
21992main ()
21993{
21994
21995 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
21996 #error not glibc2.1
21997 #endif
21998
21999 ;
22000 return 0;
22001}
22002_ACEOF
22003rm -f conftest.$ac_objext
22004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22005 (eval $ac_compile) 2>conftest.er1
a848cd7e 22006 ac_status=$?
ac1cb8d3
VS
22007 grep -v '^ *+' conftest.er1 >conftest.err
22008 rm -f conftest.er1
22009 cat conftest.err >&5
a848cd7e
SC
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); } &&
9dd0f6c2 22012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22014 (eval $ac_try) 2>&5
22015 ac_status=$?
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); }; } &&
22018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
22024
22025 wx_cv_lib_glibc21=yes
22026
22027else
22028 echo "$as_me: failed program was:" >&5
22029sed 's/^/| /' conftest.$ac_ext >&5
22030
22031
22032 wx_cv_lib_glibc21=no
22033
22034
22035fi
ac1cb8d3 22036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22037
22038fi
22039echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22040echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22041 if test "$wx_cv_lib_glibc21" = "yes"; then
22042 cat >>confdefs.h <<\_ACEOF
22043#define wxHAVE_GLIBC2 1
22044_ACEOF
22045
22046 fi
22047fi
22048
22049if test "x$wx_cv_lib_glibc21" = "xyes"; then
22050 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22051 cat >>confdefs.h <<\_ACEOF
22052#define _GNU_SOURCE 1
22053_ACEOF
22054
22055 fi
22056fi
22057
22058
22059
22060if test "$wxUSE_REGEX" != "no"; then
22061 cat >>confdefs.h <<\_ACEOF
22062#define wxUSE_REGEX 1
22063_ACEOF
22064
22065
22066 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22067 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22068echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22069 wxUSE_REGEX=builtin
22070 fi
22071
22072 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22073 if test "${ac_cv_header_regex_h+set}" = set; then
22074 echo "$as_me:$LINENO: checking for regex.h" >&5
22075echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22076if test "${ac_cv_header_regex_h+set}" = set; then
22077 echo $ECHO_N "(cached) $ECHO_C" >&6
22078fi
22079echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22080echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22081else
22082 # Is the header compilable?
22083echo "$as_me:$LINENO: checking regex.h usability" >&5
22084echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22085cat >conftest.$ac_ext <<_ACEOF
22086/* confdefs.h. */
22087_ACEOF
22088cat confdefs.h >>conftest.$ac_ext
22089cat >>conftest.$ac_ext <<_ACEOF
22090/* end confdefs.h. */
22091$ac_includes_default
22092#include <regex.h>
22093_ACEOF
22094rm -f conftest.$ac_objext
22095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22096 (eval $ac_compile) 2>conftest.er1
a848cd7e 22097 ac_status=$?
ac1cb8d3
VS
22098 grep -v '^ *+' conftest.er1 >conftest.err
22099 rm -f conftest.er1
22100 cat conftest.err >&5
a848cd7e
SC
22101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102 (exit $ac_status); } &&
9dd0f6c2 22103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22105 (eval $ac_try) 2>&5
22106 ac_status=$?
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); }; } &&
22109 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
22115 ac_header_compiler=yes
22116else
22117 echo "$as_me: failed program was:" >&5
22118sed 's/^/| /' conftest.$ac_ext >&5
22119
22120ac_header_compiler=no
22121fi
ac1cb8d3 22122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22123echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22124echo "${ECHO_T}$ac_header_compiler" >&6
22125
22126# Is the header present?
22127echo "$as_me:$LINENO: checking regex.h presence" >&5
22128echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22129cat >conftest.$ac_ext <<_ACEOF
22130/* confdefs.h. */
22131_ACEOF
22132cat confdefs.h >>conftest.$ac_ext
22133cat >>conftest.$ac_ext <<_ACEOF
22134/* end confdefs.h. */
22135#include <regex.h>
22136_ACEOF
22137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22139 ac_status=$?
22140 grep -v '^ *+' conftest.er1 >conftest.err
22141 rm -f conftest.er1
22142 cat conftest.err >&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } >/dev/null; then
22145 if test -s conftest.err; then
22146 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22148 else
22149 ac_cpp_err=
22150 fi
22151else
22152 ac_cpp_err=yes
22153fi
22154if test -z "$ac_cpp_err"; then
22155 ac_header_preproc=yes
22156else
22157 echo "$as_me: failed program was:" >&5
22158sed 's/^/| /' conftest.$ac_ext >&5
22159
22160 ac_header_preproc=no
22161fi
22162rm -f conftest.err conftest.$ac_ext
22163echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22164echo "${ECHO_T}$ac_header_preproc" >&6
22165
22166# So? What about this header?
ac1cb8d3
VS
22167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22168 yes:no: )
a848cd7e
SC
22169 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22170echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22171 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22172echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22173 ac_header_preproc=yes
a848cd7e 22174 ;;
ac1cb8d3 22175 no:yes:* )
a848cd7e
SC
22176 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22177echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22178 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22179echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22180 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22181echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22182 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22183echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22184 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22185echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22186 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22187echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22188 (
22189 cat <<\_ASBOX
ac1cb8d3
VS
22190## ----------------------------------------- ##
22191## Report this to wx-dev@lists.wxwidgets.org ##
22192## ----------------------------------------- ##
a848cd7e
SC
22193_ASBOX
22194 ) |
22195 sed "s/^/$as_me: WARNING: /" >&2
22196 ;;
22197esac
22198echo "$as_me:$LINENO: checking for regex.h" >&5
22199echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22200if test "${ac_cv_header_regex_h+set}" = set; then
22201 echo $ECHO_N "(cached) $ECHO_C" >&6
22202else
22203 ac_cv_header_regex_h=$ac_header_preproc
22204fi
22205echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22206echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22207
22208fi
22209if test $ac_cv_header_regex_h = yes; then
22210
22211for ac_func in regcomp
22212do
22213as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22214echo "$as_me:$LINENO: checking for $ac_func" >&5
22215echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22216if eval "test \"\${$as_ac_var+set}\" = set"; then
22217 echo $ECHO_N "(cached) $ECHO_C" >&6
22218else
22219 cat >conftest.$ac_ext <<_ACEOF
22220/* confdefs.h. */
22221_ACEOF
22222cat confdefs.h >>conftest.$ac_ext
22223cat >>conftest.$ac_ext <<_ACEOF
22224/* end confdefs.h. */
ac1cb8d3
VS
22225/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22227#define $ac_func innocuous_$ac_func
22228
a848cd7e
SC
22229/* System header to define __stub macros and hopefully few prototypes,
22230 which can conflict with char $ac_func (); below.
22231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22232 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22233
a848cd7e
SC
22234#ifdef __STDC__
22235# include <limits.h>
22236#else
22237# include <assert.h>
22238#endif
ac1cb8d3
VS
22239
22240#undef $ac_func
22241
a848cd7e
SC
22242/* Override any gcc2 internal prototype to avoid an error. */
22243#ifdef __cplusplus
22244extern "C"
22245{
22246#endif
22247/* We use char because int might match the return type of a gcc2
22248 builtin and then its argument prototype would still apply. */
22249char $ac_func ();
22250/* The GNU C library defines this for functions which it implements
22251 to always fail with ENOSYS. Some functions are actually named
22252 something starting with __ and the normal name is an alias. */
22253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22254choke me
22255#else
22256char (*f) () = $ac_func;
22257#endif
22258#ifdef __cplusplus
22259}
22260#endif
22261
22262int
22263main ()
22264{
22265return f != $ac_func;
22266 ;
22267 return 0;
22268}
22269_ACEOF
22270rm -f conftest.$ac_objext conftest$ac_exeext
22271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22272 (eval $ac_link) 2>conftest.er1
a848cd7e 22273 ac_status=$?
ac1cb8d3
VS
22274 grep -v '^ *+' conftest.er1 >conftest.err
22275 rm -f conftest.er1
22276 cat conftest.err >&5
a848cd7e
SC
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); } &&
9dd0f6c2 22279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22281 (eval $ac_try) 2>&5
22282 ac_status=$?
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); }; } &&
22285 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
22291 eval "$as_ac_var=yes"
22292else
22293 echo "$as_me: failed program was:" >&5
22294sed 's/^/| /' conftest.$ac_ext >&5
22295
22296eval "$as_ac_var=no"
22297fi
ac1cb8d3
VS
22298rm -f conftest.err conftest.$ac_objext \
22299 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22300fi
22301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22302echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22303if test `eval echo '${'$as_ac_var'}'` = yes; then
22304 cat >>confdefs.h <<_ACEOF
22305#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22306_ACEOF
22307
22308fi
22309done
22310
22311fi
22312
22313
22314
22315 if test "x$ac_cv_func_regcomp" != "xyes"; then
22316 if test "$wxUSE_REGEX" = "sys" ; then
22317 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22318echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22319 { (exit 1); exit 1; }; }
22320 else
22321 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22322echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22323 wxUSE_REGEX=builtin
22324 fi
22325 else
22326 wxUSE_REGEX=sys
22327 cat >>confdefs.h <<\_ACEOF
22328#define WX_NO_REGEX_ADVANCED 1
22329_ACEOF
22330
22331 fi
22332 fi
22333fi
22334
22335
22336ZLIB_LINK=
22337if test "$wxUSE_ZLIB" != "no" ; then
22338 cat >>confdefs.h <<\_ACEOF
22339#define wxUSE_ZLIB 1
22340_ACEOF
22341
22342
22343 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22344 if test "$USE_DARWIN" = 1; then
22345 system_zlib_h_ok="yes"
22346 else
22347 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22348echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22349if test "${ac_cv_header_zlib_h+set}" = set; then
22350 echo $ECHO_N "(cached) $ECHO_C" >&6
22351else
22352 if test "$cross_compiling" = yes; then
22353 unset ac_cv_header_zlib_h
22354
22355else
22356 cat >conftest.$ac_ext <<_ACEOF
22357/* confdefs.h. */
22358_ACEOF
22359cat confdefs.h >>conftest.$ac_ext
22360cat >>conftest.$ac_ext <<_ACEOF
22361/* end confdefs.h. */
22362
22363 #include <zlib.h>
22364 #include <stdio.h>
22365
22366 int main()
22367 {
22368 FILE *f=fopen("conftestval", "w");
22369 if (!f) exit(1);
22370 fprintf(f, "%s",
22371 ZLIB_VERSION[0] == '1' &&
22372 (ZLIB_VERSION[2] > '1' ||
22373 (ZLIB_VERSION[2] == '1' &&
22374 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22375 exit(0);
22376 }
22377
22378_ACEOF
22379rm -f conftest$ac_exeext
22380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22381 (eval $ac_link) 2>&5
22382 ac_status=$?
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386 (eval $ac_try) 2>&5
22387 ac_status=$?
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); }; }; then
22390 ac_cv_header_zlib_h=`cat conftestval`
22391else
22392 echo "$as_me: program exited with status $ac_status" >&5
22393echo "$as_me: failed program was:" >&5
22394sed 's/^/| /' conftest.$ac_ext >&5
22395
22396( exit $ac_status )
22397ac_cv_header_zlib_h=no
22398fi
ac1cb8d3 22399rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22400fi
22401
22402fi
22403echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22404echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22405 if test "${ac_cv_header_zlib_h+set}" = set; then
22406 echo "$as_me:$LINENO: checking for zlib.h" >&5
22407echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22408if test "${ac_cv_header_zlib_h+set}" = set; then
22409 echo $ECHO_N "(cached) $ECHO_C" >&6
22410fi
22411echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22412echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22413else
22414 # Is the header compilable?
22415echo "$as_me:$LINENO: checking zlib.h usability" >&5
22416echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22417cat >conftest.$ac_ext <<_ACEOF
22418/* confdefs.h. */
22419_ACEOF
22420cat confdefs.h >>conftest.$ac_ext
22421cat >>conftest.$ac_ext <<_ACEOF
22422/* end confdefs.h. */
22423$ac_includes_default
22424#include <zlib.h>
22425_ACEOF
22426rm -f conftest.$ac_objext
22427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22428 (eval $ac_compile) 2>conftest.er1
a848cd7e 22429 ac_status=$?
ac1cb8d3
VS
22430 grep -v '^ *+' conftest.er1 >conftest.err
22431 rm -f conftest.er1
22432 cat conftest.err >&5
a848cd7e
SC
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); } &&
9dd0f6c2 22435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22437 (eval $ac_try) 2>&5
22438 ac_status=$?
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); }; } &&
22441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
22447 ac_header_compiler=yes
22448else
22449 echo "$as_me: failed program was:" >&5
22450sed 's/^/| /' conftest.$ac_ext >&5
22451
22452ac_header_compiler=no
22453fi
ac1cb8d3 22454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22455echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22456echo "${ECHO_T}$ac_header_compiler" >&6
22457
22458# Is the header present?
22459echo "$as_me:$LINENO: checking zlib.h presence" >&5
22460echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22461cat >conftest.$ac_ext <<_ACEOF
22462/* confdefs.h. */
22463_ACEOF
22464cat confdefs.h >>conftest.$ac_ext
22465cat >>conftest.$ac_ext <<_ACEOF
22466/* end confdefs.h. */
22467#include <zlib.h>
22468_ACEOF
22469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22471 ac_status=$?
22472 grep -v '^ *+' conftest.er1 >conftest.err
22473 rm -f conftest.er1
22474 cat conftest.err >&5
22475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476 (exit $ac_status); } >/dev/null; then
22477 if test -s conftest.err; then
22478 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22480 else
22481 ac_cpp_err=
22482 fi
22483else
22484 ac_cpp_err=yes
22485fi
22486if test -z "$ac_cpp_err"; then
22487 ac_header_preproc=yes
22488else
22489 echo "$as_me: failed program was:" >&5
22490sed 's/^/| /' conftest.$ac_ext >&5
22491
22492 ac_header_preproc=no
22493fi
22494rm -f conftest.err conftest.$ac_ext
22495echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22496echo "${ECHO_T}$ac_header_preproc" >&6
22497
22498# So? What about this header?
ac1cb8d3
VS
22499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22500 yes:no: )
a848cd7e
SC
22501 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22502echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22503 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22504echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22505 ac_header_preproc=yes
a848cd7e 22506 ;;
ac1cb8d3 22507 no:yes:* )
a848cd7e
SC
22508 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22509echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22510 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22511echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22512 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22513echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22514 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22515echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22516 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22517echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22518 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22519echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22520 (
22521 cat <<\_ASBOX
ac1cb8d3
VS
22522## ----------------------------------------- ##
22523## Report this to wx-dev@lists.wxwidgets.org ##
22524## ----------------------------------------- ##
a848cd7e
SC
22525_ASBOX
22526 ) |
22527 sed "s/^/$as_me: WARNING: /" >&2
22528 ;;
22529esac
22530echo "$as_me:$LINENO: checking for zlib.h" >&5
22531echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22532if test "${ac_cv_header_zlib_h+set}" = set; then
22533 echo $ECHO_N "(cached) $ECHO_C" >&6
22534else
22535 ac_cv_header_zlib_h=$ac_header_preproc
22536fi
22537echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22538echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22539
22540fi
22541
22542
22543
22544 system_zlib_h_ok=$ac_cv_header_zlib_h
22545 fi
22546
22547 if test "$system_zlib_h_ok" = "yes"; then
22548 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22549echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22550if test "${ac_cv_lib_z_deflate+set}" = set; then
22551 echo $ECHO_N "(cached) $ECHO_C" >&6
22552else
22553 ac_check_lib_save_LIBS=$LIBS
22554LIBS="-lz $LIBS"
22555cat >conftest.$ac_ext <<_ACEOF
22556/* confdefs.h. */
22557_ACEOF
22558cat confdefs.h >>conftest.$ac_ext
22559cat >>conftest.$ac_ext <<_ACEOF
22560/* end confdefs.h. */
22561
22562/* Override any gcc2 internal prototype to avoid an error. */
22563#ifdef __cplusplus
22564extern "C"
22565#endif
22566/* We use char because int might match the return type of a gcc2
22567 builtin and then its argument prototype would still apply. */
22568char deflate ();
22569int
22570main ()
22571{
22572deflate ();
22573 ;
22574 return 0;
22575}
22576_ACEOF
22577rm -f conftest.$ac_objext conftest$ac_exeext
22578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22579 (eval $ac_link) 2>conftest.er1
a848cd7e 22580 ac_status=$?
ac1cb8d3
VS
22581 grep -v '^ *+' conftest.er1 >conftest.err
22582 rm -f conftest.er1
22583 cat conftest.err >&5
a848cd7e
SC
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); } &&
9dd0f6c2 22586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22588 (eval $ac_try) 2>&5
22589 ac_status=$?
22590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591 (exit $ac_status); }; } &&
22592 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
22598 ac_cv_lib_z_deflate=yes
22599else
22600 echo "$as_me: failed program was:" >&5
22601sed 's/^/| /' conftest.$ac_ext >&5
22602
22603ac_cv_lib_z_deflate=no
22604fi
ac1cb8d3
VS
22605rm -f conftest.err conftest.$ac_objext \
22606 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22607LIBS=$ac_check_lib_save_LIBS
22608fi
22609echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22610echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22611if test $ac_cv_lib_z_deflate = yes; then
22612 ZLIB_LINK=" -lz"
22613fi
22614
22615 fi
22616
22617 if test "x$ZLIB_LINK" = "x" ; then
22618 if test "$wxUSE_ZLIB" = "sys" ; then
22619 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22620echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22621 { (exit 1); exit 1; }; }
22622 else
22623 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22624echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22625 wxUSE_ZLIB=builtin
22626 fi
22627 else
22628 wxUSE_ZLIB=sys
22629 fi
22630 fi
22631fi
22632
22633
22634PNG_LINK=
22635if test "$wxUSE_LIBPNG" != "no" ; then
22636 cat >>confdefs.h <<\_ACEOF
22637#define wxUSE_LIBPNG 1
22638_ACEOF
22639
22640
22641 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22642 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22643echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22644 wxUSE_LIBPNG=sys
22645 fi
22646
22647 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22648 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22649echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22650 wxUSE_LIBPNG=builtin
22651 fi
22652
22653 if test "$wxUSE_MGL" != 1 ; then
22654 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22655 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22656echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22657if test "${ac_cv_header_png_h+set}" = set; then
22658 echo $ECHO_N "(cached) $ECHO_C" >&6
22659else
22660 if test "$cross_compiling" = yes; then
22661 unset ac_cv_header_png_h
22662
22663else
22664 cat >conftest.$ac_ext <<_ACEOF
22665/* confdefs.h. */
22666_ACEOF
22667cat confdefs.h >>conftest.$ac_ext
22668cat >>conftest.$ac_ext <<_ACEOF
22669/* end confdefs.h. */
22670
22671 #include <png.h>
22672 #include <stdio.h>
22673
22674 int main()
22675 {
22676 FILE *f=fopen("conftestval", "w");
22677 if (!f) exit(1);
22678 fprintf(f, "%s",
22679 PNG_LIBPNG_VER > 90 ? "yes" : "no");
22680 exit(0);
22681 }
22682
22683_ACEOF
22684rm -f conftest$ac_exeext
22685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22686 (eval $ac_link) 2>&5
22687 ac_status=$?
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22691 (eval $ac_try) 2>&5
22692 ac_status=$?
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); }; }; then
22695 ac_cv_header_png_h=`cat conftestval`
22696else
22697 echo "$as_me: program exited with status $ac_status" >&5
22698echo "$as_me: failed program was:" >&5
22699sed 's/^/| /' conftest.$ac_ext >&5
22700
22701( exit $ac_status )
22702ac_cv_header_png_h=no
22703fi
ac1cb8d3 22704rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22705fi
22706
22707fi
22708echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22709echo "${ECHO_T}$ac_cv_header_png_h" >&6
22710 if test "${ac_cv_header_png_h+set}" = set; then
22711 echo "$as_me:$LINENO: checking for png.h" >&5
22712echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22713if test "${ac_cv_header_png_h+set}" = set; then
22714 echo $ECHO_N "(cached) $ECHO_C" >&6
22715fi
22716echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22717echo "${ECHO_T}$ac_cv_header_png_h" >&6
22718else
22719 # Is the header compilable?
22720echo "$as_me:$LINENO: checking png.h usability" >&5
22721echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22722cat >conftest.$ac_ext <<_ACEOF
22723/* confdefs.h. */
22724_ACEOF
22725cat confdefs.h >>conftest.$ac_ext
22726cat >>conftest.$ac_ext <<_ACEOF
22727/* end confdefs.h. */
22728$ac_includes_default
22729#include <png.h>
22730_ACEOF
22731rm -f conftest.$ac_objext
22732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22733 (eval $ac_compile) 2>conftest.er1
a848cd7e 22734 ac_status=$?
ac1cb8d3
VS
22735 grep -v '^ *+' conftest.er1 >conftest.err
22736 rm -f conftest.er1
22737 cat conftest.err >&5
a848cd7e
SC
22738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); } &&
9dd0f6c2 22740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22742 (eval $ac_try) 2>&5
22743 ac_status=$?
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); }; } &&
22746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
22752 ac_header_compiler=yes
22753else
22754 echo "$as_me: failed program was:" >&5
22755sed 's/^/| /' conftest.$ac_ext >&5
22756
22757ac_header_compiler=no
22758fi
ac1cb8d3 22759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22760echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22761echo "${ECHO_T}$ac_header_compiler" >&6
22762
22763# Is the header present?
22764echo "$as_me:$LINENO: checking png.h presence" >&5
22765echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22766cat >conftest.$ac_ext <<_ACEOF
22767/* confdefs.h. */
22768_ACEOF
22769cat confdefs.h >>conftest.$ac_ext
22770cat >>conftest.$ac_ext <<_ACEOF
22771/* end confdefs.h. */
22772#include <png.h>
22773_ACEOF
22774if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22776 ac_status=$?
22777 grep -v '^ *+' conftest.er1 >conftest.err
22778 rm -f conftest.er1
22779 cat conftest.err >&5
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); } >/dev/null; then
22782 if test -s conftest.err; then
22783 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22785 else
22786 ac_cpp_err=
22787 fi
22788else
22789 ac_cpp_err=yes
22790fi
22791if test -z "$ac_cpp_err"; then
22792 ac_header_preproc=yes
22793else
22794 echo "$as_me: failed program was:" >&5
22795sed 's/^/| /' conftest.$ac_ext >&5
22796
22797 ac_header_preproc=no
22798fi
22799rm -f conftest.err conftest.$ac_ext
22800echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22801echo "${ECHO_T}$ac_header_preproc" >&6
22802
22803# So? What about this header?
ac1cb8d3
VS
22804case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22805 yes:no: )
a848cd7e
SC
22806 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22807echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22808 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22809echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
22810 ac_header_preproc=yes
a848cd7e 22811 ;;
ac1cb8d3 22812 no:yes:* )
a848cd7e
SC
22813 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
22814echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22815 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
22816echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
22817 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
22818echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
22819 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
22820echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22821 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
22822echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22823 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
22824echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22825 (
22826 cat <<\_ASBOX
ac1cb8d3
VS
22827## ----------------------------------------- ##
22828## Report this to wx-dev@lists.wxwidgets.org ##
22829## ----------------------------------------- ##
a848cd7e
SC
22830_ASBOX
22831 ) |
22832 sed "s/^/$as_me: WARNING: /" >&2
22833 ;;
22834esac
22835echo "$as_me:$LINENO: checking for png.h" >&5
22836echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22837if test "${ac_cv_header_png_h+set}" = set; then
22838 echo $ECHO_N "(cached) $ECHO_C" >&6
22839else
22840 ac_cv_header_png_h=$ac_header_preproc
22841fi
22842echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22843echo "${ECHO_T}$ac_cv_header_png_h" >&6
22844
22845fi
22846
22847
22848
22849 if test "$ac_cv_header_png_h" = "yes"; then
22850 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
22851echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
22852if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
22853 echo $ECHO_N "(cached) $ECHO_C" >&6
22854else
22855 ac_check_lib_save_LIBS=$LIBS
22856LIBS="-lpng -lz -lm $LIBS"
22857cat >conftest.$ac_ext <<_ACEOF
22858/* confdefs.h. */
22859_ACEOF
22860cat confdefs.h >>conftest.$ac_ext
22861cat >>conftest.$ac_ext <<_ACEOF
22862/* end confdefs.h. */
22863
22864/* Override any gcc2 internal prototype to avoid an error. */
22865#ifdef __cplusplus
22866extern "C"
22867#endif
22868/* We use char because int might match the return type of a gcc2
22869 builtin and then its argument prototype would still apply. */
22870char png_check_sig ();
22871int
22872main ()
22873{
22874png_check_sig ();
22875 ;
22876 return 0;
22877}
22878_ACEOF
22879rm -f conftest.$ac_objext conftest$ac_exeext
22880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22881 (eval $ac_link) 2>conftest.er1
a848cd7e 22882 ac_status=$?
ac1cb8d3
VS
22883 grep -v '^ *+' conftest.er1 >conftest.err
22884 rm -f conftest.er1
22885 cat conftest.err >&5
a848cd7e
SC
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); } &&
9dd0f6c2 22888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22890 (eval $ac_try) 2>&5
22891 ac_status=$?
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); }; } &&
22894 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
22900 ac_cv_lib_png_png_check_sig=yes
22901else
22902 echo "$as_me: failed program was:" >&5
22903sed 's/^/| /' conftest.$ac_ext >&5
22904
22905ac_cv_lib_png_png_check_sig=no
22906fi
ac1cb8d3
VS
22907rm -f conftest.err conftest.$ac_objext \
22908 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22909LIBS=$ac_check_lib_save_LIBS
22910fi
22911echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
22912echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
22913if test $ac_cv_lib_png_png_check_sig = yes; then
22914 PNG_LINK=" -lpng -lz"
22915fi
22916
22917 fi
22918
22919 if test "x$PNG_LINK" = "x" ; then
22920 if test "$wxUSE_LIBPNG" = "sys" ; then
22921 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
22922echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
22923 { (exit 1); exit 1; }; }
22924 else
22925 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
22926echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
22927 wxUSE_LIBPNG=builtin
22928 fi
22929 else
22930 wxUSE_LIBPNG=sys
22931 fi
22932 fi
22933 fi
22934
22935 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
22936fi
22937
22938
22939JPEG_LINK=
22940if test "$wxUSE_LIBJPEG" != "no" ; then
22941 cat >>confdefs.h <<\_ACEOF
22942#define wxUSE_LIBJPEG 1
22943_ACEOF
22944
22945
22946 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
22947 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
22948echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
22949 wxUSE_LIBJPEG=sys
22950 fi
22951
22952 if test "$wxUSE_MGL" != 1 ; then
22953 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
22954 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22955echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
22956 if test "${ac_cv_header_jpeglib_h+set}" = set; then
22957 echo $ECHO_N "(cached) $ECHO_C" >&6
22958else
22959 cat >conftest.$ac_ext <<_ACEOF
22960/* confdefs.h. */
22961_ACEOF
22962cat confdefs.h >>conftest.$ac_ext
22963cat >>conftest.$ac_ext <<_ACEOF
22964/* end confdefs.h. */
22965
22966 #undef HAVE_STDLIB_H
22967 #include <stdio.h>
22968 #include <jpeglib.h>
22969
22970int
22971main ()
22972{
22973
22974
22975 ;
22976 return 0;
22977}
22978_ACEOF
22979rm -f conftest.$ac_objext
22980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22981 (eval $ac_compile) 2>conftest.er1
a848cd7e 22982 ac_status=$?
ac1cb8d3
VS
22983 grep -v '^ *+' conftest.er1 >conftest.err
22984 rm -f conftest.er1
22985 cat conftest.err >&5
a848cd7e
SC
22986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 (exit $ac_status); } &&
9dd0f6c2 22988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22990 (eval $ac_try) 2>&5
22991 ac_status=$?
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); }; } &&
22994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
23000 ac_cv_header_jpeglib_h=yes
23001else
23002 echo "$as_me: failed program was:" >&5
23003sed 's/^/| /' conftest.$ac_ext >&5
23004
23005ac_cv_header_jpeglib_h=no
23006
23007fi
ac1cb8d3 23008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23009
23010fi
23011
23012 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23013echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23014
23015 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23016 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23017echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23018if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23019 echo $ECHO_N "(cached) $ECHO_C" >&6
23020else
23021 ac_check_lib_save_LIBS=$LIBS
23022LIBS="-ljpeg $LIBS"
23023cat >conftest.$ac_ext <<_ACEOF
23024/* confdefs.h. */
23025_ACEOF
23026cat confdefs.h >>conftest.$ac_ext
23027cat >>conftest.$ac_ext <<_ACEOF
23028/* end confdefs.h. */
23029
23030/* Override any gcc2 internal prototype to avoid an error. */
23031#ifdef __cplusplus
23032extern "C"
23033#endif
23034/* We use char because int might match the return type of a gcc2
23035 builtin and then its argument prototype would still apply. */
23036char jpeg_read_header ();
23037int
23038main ()
23039{
23040jpeg_read_header ();
23041 ;
23042 return 0;
23043}
23044_ACEOF
23045rm -f conftest.$ac_objext conftest$ac_exeext
23046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23047 (eval $ac_link) 2>conftest.er1
a848cd7e 23048 ac_status=$?
ac1cb8d3
VS
23049 grep -v '^ *+' conftest.er1 >conftest.err
23050 rm -f conftest.er1
23051 cat conftest.err >&5
a848cd7e
SC
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); } &&
9dd0f6c2 23054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23056 (eval $ac_try) 2>&5
23057 ac_status=$?
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); }; } &&
23060 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
23066 ac_cv_lib_jpeg_jpeg_read_header=yes
23067else
23068 echo "$as_me: failed program was:" >&5
23069sed 's/^/| /' conftest.$ac_ext >&5
23070
23071ac_cv_lib_jpeg_jpeg_read_header=no
23072fi
ac1cb8d3
VS
23073rm -f conftest.err conftest.$ac_objext \
23074 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23075LIBS=$ac_check_lib_save_LIBS
23076fi
23077echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23078echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23079if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23080 JPEG_LINK=" -ljpeg"
23081fi
23082
23083 fi
23084
23085 if test "x$JPEG_LINK" = "x" ; then
23086 if test "$wxUSE_LIBJPEG" = "sys" ; then
23087 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23088echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23089 { (exit 1); exit 1; }; }
23090 else
23091 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23092echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23093 wxUSE_LIBJPEG=builtin
23094 fi
23095 else
23096 wxUSE_LIBJPEG=sys
23097 fi
23098 fi
23099 fi
23100fi
23101
23102
23103TIFF_LINK=
23104TIFF_PREREQ_LINKS=-lm
23105if test "$wxUSE_LIBTIFF" != "no" ; then
23106 cat >>confdefs.h <<\_ACEOF
23107#define wxUSE_LIBTIFF 1
23108_ACEOF
23109
23110
23111 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23112 if test "$wxUSE_LIBJPEG" = "sys"; then
23113 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23114 fi
23115 if test "$wxUSE_ZLIB" = "sys"; then
23116 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23117 fi
23118 if test "${ac_cv_header_tiffio_h+set}" = set; then
23119 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23120echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23121if test "${ac_cv_header_tiffio_h+set}" = set; then
23122 echo $ECHO_N "(cached) $ECHO_C" >&6
23123fi
23124echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23125echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23126else
23127 # Is the header compilable?
23128echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23129echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23130cat >conftest.$ac_ext <<_ACEOF
23131/* confdefs.h. */
23132_ACEOF
23133cat confdefs.h >>conftest.$ac_ext
23134cat >>conftest.$ac_ext <<_ACEOF
23135/* end confdefs.h. */
23136$ac_includes_default
23137#include <tiffio.h>
23138_ACEOF
23139rm -f conftest.$ac_objext
23140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23141 (eval $ac_compile) 2>conftest.er1
a848cd7e 23142 ac_status=$?
ac1cb8d3
VS
23143 grep -v '^ *+' conftest.er1 >conftest.err
23144 rm -f conftest.er1
23145 cat conftest.err >&5
a848cd7e
SC
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); } &&
9dd0f6c2 23148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; } &&
23154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
23160 ac_header_compiler=yes
23161else
23162 echo "$as_me: failed program was:" >&5
23163sed 's/^/| /' conftest.$ac_ext >&5
23164
23165ac_header_compiler=no
23166fi
ac1cb8d3 23167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23168echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23169echo "${ECHO_T}$ac_header_compiler" >&6
23170
23171# Is the header present?
23172echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23173echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23174cat >conftest.$ac_ext <<_ACEOF
23175/* confdefs.h. */
23176_ACEOF
23177cat confdefs.h >>conftest.$ac_ext
23178cat >>conftest.$ac_ext <<_ACEOF
23179/* end confdefs.h. */
23180#include <tiffio.h>
23181_ACEOF
23182if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23184 ac_status=$?
23185 grep -v '^ *+' conftest.er1 >conftest.err
23186 rm -f conftest.er1
23187 cat conftest.err >&5
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); } >/dev/null; then
23190 if test -s conftest.err; then
23191 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23193 else
23194 ac_cpp_err=
23195 fi
23196else
23197 ac_cpp_err=yes
23198fi
23199if test -z "$ac_cpp_err"; then
23200 ac_header_preproc=yes
23201else
23202 echo "$as_me: failed program was:" >&5
23203sed 's/^/| /' conftest.$ac_ext >&5
23204
23205 ac_header_preproc=no
23206fi
23207rm -f conftest.err conftest.$ac_ext
23208echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23209echo "${ECHO_T}$ac_header_preproc" >&6
23210
23211# So? What about this header?
ac1cb8d3
VS
23212case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23213 yes:no: )
a848cd7e
SC
23214 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23215echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23216 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23217echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23218 ac_header_preproc=yes
a848cd7e 23219 ;;
ac1cb8d3 23220 no:yes:* )
a848cd7e
SC
23221 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23222echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23223 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23224echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23225 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23226echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23227 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23228echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23229 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23230echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23231 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23232echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23233 (
23234 cat <<\_ASBOX
ac1cb8d3
VS
23235## ----------------------------------------- ##
23236## Report this to wx-dev@lists.wxwidgets.org ##
23237## ----------------------------------------- ##
a848cd7e
SC
23238_ASBOX
23239 ) |
23240 sed "s/^/$as_me: WARNING: /" >&2
23241 ;;
23242esac
23243echo "$as_me:$LINENO: checking for tiffio.h" >&5
23244echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23245if test "${ac_cv_header_tiffio_h+set}" = set; then
23246 echo $ECHO_N "(cached) $ECHO_C" >&6
23247else
23248 ac_cv_header_tiffio_h=$ac_header_preproc
23249fi
23250echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23251echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23252
23253fi
23254if test $ac_cv_header_tiffio_h = yes; then
23255
23256 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23257echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23258if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23259 echo $ECHO_N "(cached) $ECHO_C" >&6
23260else
23261 ac_check_lib_save_LIBS=$LIBS
23262LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23263cat >conftest.$ac_ext <<_ACEOF
23264/* confdefs.h. */
23265_ACEOF
23266cat confdefs.h >>conftest.$ac_ext
23267cat >>conftest.$ac_ext <<_ACEOF
23268/* end confdefs.h. */
23269
23270/* Override any gcc2 internal prototype to avoid an error. */
23271#ifdef __cplusplus
23272extern "C"
23273#endif
23274/* We use char because int might match the return type of a gcc2
23275 builtin and then its argument prototype would still apply. */
23276char TIFFError ();
23277int
23278main ()
23279{
23280TIFFError ();
23281 ;
23282 return 0;
23283}
23284_ACEOF
23285rm -f conftest.$ac_objext conftest$ac_exeext
23286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23287 (eval $ac_link) 2>conftest.er1
a848cd7e 23288 ac_status=$?
ac1cb8d3
VS
23289 grep -v '^ *+' conftest.er1 >conftest.err
23290 rm -f conftest.er1
23291 cat conftest.err >&5
a848cd7e
SC
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); } &&
9dd0f6c2 23294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296 (eval $ac_try) 2>&5
23297 ac_status=$?
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); }; } &&
23300 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
23306 ac_cv_lib_tiff_TIFFError=yes
23307else
23308 echo "$as_me: failed program was:" >&5
23309sed 's/^/| /' conftest.$ac_ext >&5
23310
23311ac_cv_lib_tiff_TIFFError=no
23312fi
ac1cb8d3
VS
23313rm -f conftest.err conftest.$ac_objext \
23314 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23315LIBS=$ac_check_lib_save_LIBS
23316fi
23317echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23318echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23319if test $ac_cv_lib_tiff_TIFFError = yes; then
23320 TIFF_LINK=" -ltiff"
23321fi
23322
23323
23324
23325fi
23326
23327
23328
23329 if test "x$TIFF_LINK" = "x" ; then
23330 if test "$wxUSE_LIBTIFF" = "sys" ; then
23331 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23332echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23333 { (exit 1); exit 1; }; }
23334 else
23335 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23336echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23337 wxUSE_LIBTIFF=builtin
23338 fi
23339 else
23340 wxUSE_LIBTIFF=sys
23341 fi
23342 fi
23343fi
23344
23345
23346if test "$wxUSE_EXPAT" != "no"; then
23347 wxUSE_XML=yes
23348 cat >>confdefs.h <<\_ACEOF
23349#define wxUSE_EXPAT 1
23350_ACEOF
23351
23352 cat >>confdefs.h <<\_ACEOF
23353#define wxUSE_XML 1
23354_ACEOF
23355
23356
23357 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23358 if test "${ac_cv_header_expat_h+set}" = set; then
23359 echo "$as_me:$LINENO: checking for expat.h" >&5
23360echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23361if test "${ac_cv_header_expat_h+set}" = set; then
23362 echo $ECHO_N "(cached) $ECHO_C" >&6
23363fi
23364echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23365echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23366else
23367 # Is the header compilable?
23368echo "$as_me:$LINENO: checking expat.h usability" >&5
23369echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23370cat >conftest.$ac_ext <<_ACEOF
23371/* confdefs.h. */
23372_ACEOF
23373cat confdefs.h >>conftest.$ac_ext
23374cat >>conftest.$ac_ext <<_ACEOF
23375/* end confdefs.h. */
23376$ac_includes_default
23377#include <expat.h>
23378_ACEOF
23379rm -f conftest.$ac_objext
23380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23381 (eval $ac_compile) 2>conftest.er1
a848cd7e 23382 ac_status=$?
ac1cb8d3
VS
23383 grep -v '^ *+' conftest.er1 >conftest.err
23384 rm -f conftest.er1
23385 cat conftest.err >&5
a848cd7e
SC
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); } &&
9dd0f6c2 23388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390 (eval $ac_try) 2>&5
23391 ac_status=$?
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }; } &&
23394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
23400 ac_header_compiler=yes
23401else
23402 echo "$as_me: failed program was:" >&5
23403sed 's/^/| /' conftest.$ac_ext >&5
23404
23405ac_header_compiler=no
23406fi
ac1cb8d3 23407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23408echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23409echo "${ECHO_T}$ac_header_compiler" >&6
23410
23411# Is the header present?
23412echo "$as_me:$LINENO: checking expat.h presence" >&5
23413echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23414cat >conftest.$ac_ext <<_ACEOF
23415/* confdefs.h. */
23416_ACEOF
23417cat confdefs.h >>conftest.$ac_ext
23418cat >>conftest.$ac_ext <<_ACEOF
23419/* end confdefs.h. */
23420#include <expat.h>
23421_ACEOF
23422if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23424 ac_status=$?
23425 grep -v '^ *+' conftest.er1 >conftest.err
23426 rm -f conftest.er1
23427 cat conftest.err >&5
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); } >/dev/null; then
23430 if test -s conftest.err; then
23431 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23433 else
23434 ac_cpp_err=
23435 fi
23436else
23437 ac_cpp_err=yes
23438fi
23439if test -z "$ac_cpp_err"; then
23440 ac_header_preproc=yes
23441else
23442 echo "$as_me: failed program was:" >&5
23443sed 's/^/| /' conftest.$ac_ext >&5
23444
23445 ac_header_preproc=no
23446fi
23447rm -f conftest.err conftest.$ac_ext
23448echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23449echo "${ECHO_T}$ac_header_preproc" >&6
23450
23451# So? What about this header?
ac1cb8d3
VS
23452case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23453 yes:no: )
a848cd7e
SC
23454 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23455echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23456 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23457echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23458 ac_header_preproc=yes
a848cd7e 23459 ;;
ac1cb8d3 23460 no:yes:* )
a848cd7e
SC
23461 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23462echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23463 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23464echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23465 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23466echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23467 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23468echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23469 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23470echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23471 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23472echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23473 (
23474 cat <<\_ASBOX
ac1cb8d3
VS
23475## ----------------------------------------- ##
23476## Report this to wx-dev@lists.wxwidgets.org ##
23477## ----------------------------------------- ##
a848cd7e
SC
23478_ASBOX
23479 ) |
23480 sed "s/^/$as_me: WARNING: /" >&2
23481 ;;
23482esac
23483echo "$as_me:$LINENO: checking for expat.h" >&5
23484echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23485if test "${ac_cv_header_expat_h+set}" = set; then
23486 echo $ECHO_N "(cached) $ECHO_C" >&6
23487else
23488 ac_cv_header_expat_h=$ac_header_preproc
23489fi
23490echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23491echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23492
23493fi
23494if test $ac_cv_header_expat_h = yes; then
23495 found_expat_h=1
23496fi
23497
23498
23499 if test "x$found_expat_h" = "x1"; then
23500 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23501echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23502if test "${wx_cv_expat_is_not_broken+set}" = set; then
23503 echo $ECHO_N "(cached) $ECHO_C" >&6
23504else
23505
23506
23507
23508 ac_ext=cc
23509ac_cpp='$CXXCPP $CPPFLAGS'
23510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23513
23514 cat >conftest.$ac_ext <<_ACEOF
23515/* confdefs.h. */
23516_ACEOF
23517cat confdefs.h >>conftest.$ac_ext
23518cat >>conftest.$ac_ext <<_ACEOF
23519/* end confdefs.h. */
23520#include <expat.h>
23521int
23522main ()
23523{
23524
23525 ;
23526 return 0;
23527}
23528_ACEOF
23529rm -f conftest.$ac_objext
23530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23531 (eval $ac_compile) 2>conftest.er1
a848cd7e 23532 ac_status=$?
ac1cb8d3
VS
23533 grep -v '^ *+' conftest.er1 >conftest.err
23534 rm -f conftest.er1
23535 cat conftest.err >&5
a848cd7e
SC
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); } &&
9dd0f6c2 23538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23540 (eval $ac_try) 2>&5
23541 ac_status=$?
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); }; } &&
23544 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
23550 wx_cv_expat_is_not_broken=yes
23551else
23552 echo "$as_me: failed program was:" >&5
23553sed 's/^/| /' conftest.$ac_ext >&5
23554
23555wx_cv_expat_is_not_broken=no
23556
23557fi
ac1cb8d3 23558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23559 ac_ext=c
23560ac_cpp='$CPP $CPPFLAGS'
23561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23563ac_compiler_gnu=$ac_cv_c_compiler_gnu
23564
23565
23566
23567fi
23568echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23569echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23570 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23571 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23572echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23573if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23574 echo $ECHO_N "(cached) $ECHO_C" >&6
23575else
23576 ac_check_lib_save_LIBS=$LIBS
23577LIBS="-lexpat $LIBS"
23578cat >conftest.$ac_ext <<_ACEOF
23579/* confdefs.h. */
23580_ACEOF
23581cat confdefs.h >>conftest.$ac_ext
23582cat >>conftest.$ac_ext <<_ACEOF
23583/* end confdefs.h. */
23584
23585/* Override any gcc2 internal prototype to avoid an error. */
23586#ifdef __cplusplus
23587extern "C"
23588#endif
23589/* We use char because int might match the return type of a gcc2
23590 builtin and then its argument prototype would still apply. */
23591char XML_ParserCreate ();
23592int
23593main ()
23594{
23595XML_ParserCreate ();
23596 ;
23597 return 0;
23598}
23599_ACEOF
23600rm -f conftest.$ac_objext conftest$ac_exeext
23601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23602 (eval $ac_link) 2>conftest.er1
a848cd7e 23603 ac_status=$?
ac1cb8d3
VS
23604 grep -v '^ *+' conftest.er1 >conftest.err
23605 rm -f conftest.er1
23606 cat conftest.err >&5
a848cd7e
SC
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); } &&
9dd0f6c2 23609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23611 (eval $ac_try) 2>&5
23612 ac_status=$?
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); }; } &&
23615 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
23621 ac_cv_lib_expat_XML_ParserCreate=yes
23622else
23623 echo "$as_me: failed program was:" >&5
23624sed 's/^/| /' conftest.$ac_ext >&5
23625
23626ac_cv_lib_expat_XML_ParserCreate=no
23627fi
ac1cb8d3
VS
23628rm -f conftest.err conftest.$ac_objext \
23629 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23630LIBS=$ac_check_lib_save_LIBS
23631fi
23632echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23633echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23634if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23635 EXPAT_LINK=" -lexpat"
23636fi
23637
23638 fi
23639 fi
23640 if test "x$EXPAT_LINK" = "x" ; then
23641 if test "$wxUSE_EXPAT" = "sys" ; then
23642 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23643echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23644 { (exit 1); exit 1; }; }
23645 else
23646 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23647echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23648 wxUSE_EXPAT=builtin
23649 fi
23650 else
23651 wxUSE_EXPAT=sys
23652 fi
23653 fi
23654 if test "$wxUSE_EXPAT" = "builtin" ; then
23655
23656
23657subdirs="$subdirs src/expat"
23658
23659 fi
23660fi
23661
23662
23663
23664if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
23665 if test "${ac_cv_header_mspack_h+set}" = set; then
23666 echo "$as_me:$LINENO: checking for mspack.h" >&5
23667echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23668if test "${ac_cv_header_mspack_h+set}" = set; then
23669 echo $ECHO_N "(cached) $ECHO_C" >&6
23670fi
23671echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23672echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23673else
23674 # Is the header compilable?
23675echo "$as_me:$LINENO: checking mspack.h usability" >&5
23676echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23677cat >conftest.$ac_ext <<_ACEOF
23678/* confdefs.h. */
23679_ACEOF
23680cat confdefs.h >>conftest.$ac_ext
23681cat >>conftest.$ac_ext <<_ACEOF
23682/* end confdefs.h. */
23683$ac_includes_default
23684#include <mspack.h>
23685_ACEOF
23686rm -f conftest.$ac_objext
23687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23688 (eval $ac_compile) 2>conftest.er1
a848cd7e 23689 ac_status=$?
ac1cb8d3
VS
23690 grep -v '^ *+' conftest.er1 >conftest.err
23691 rm -f conftest.er1
23692 cat conftest.err >&5
a848cd7e
SC
23693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694 (exit $ac_status); } &&
9dd0f6c2 23695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23697 (eval $ac_try) 2>&5
23698 ac_status=$?
23699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700 (exit $ac_status); }; } &&
23701 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
23707 ac_header_compiler=yes
23708else
23709 echo "$as_me: failed program was:" >&5
23710sed 's/^/| /' conftest.$ac_ext >&5
23711
23712ac_header_compiler=no
23713fi
ac1cb8d3 23714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23715echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23716echo "${ECHO_T}$ac_header_compiler" >&6
23717
23718# Is the header present?
23719echo "$as_me:$LINENO: checking mspack.h presence" >&5
23720echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23721cat >conftest.$ac_ext <<_ACEOF
23722/* confdefs.h. */
23723_ACEOF
23724cat confdefs.h >>conftest.$ac_ext
23725cat >>conftest.$ac_ext <<_ACEOF
23726/* end confdefs.h. */
23727#include <mspack.h>
23728_ACEOF
23729if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23731 ac_status=$?
23732 grep -v '^ *+' conftest.er1 >conftest.err
23733 rm -f conftest.er1
23734 cat conftest.err >&5
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); } >/dev/null; then
23737 if test -s conftest.err; then
23738 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23740 else
23741 ac_cpp_err=
23742 fi
23743else
23744 ac_cpp_err=yes
23745fi
23746if test -z "$ac_cpp_err"; then
23747 ac_header_preproc=yes
23748else
23749 echo "$as_me: failed program was:" >&5
23750sed 's/^/| /' conftest.$ac_ext >&5
23751
23752 ac_header_preproc=no
23753fi
23754rm -f conftest.err conftest.$ac_ext
23755echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23756echo "${ECHO_T}$ac_header_preproc" >&6
23757
23758# So? What about this header?
ac1cb8d3
VS
23759case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23760 yes:no: )
a848cd7e
SC
23761 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23762echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23763 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23764echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23765 ac_header_preproc=yes
a848cd7e 23766 ;;
ac1cb8d3 23767 no:yes:* )
a848cd7e
SC
23768 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23769echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23770 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
23771echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
23772 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23773echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23774 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
23775echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23776 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23777echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23778 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23779echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23780 (
23781 cat <<\_ASBOX
ac1cb8d3
VS
23782## ----------------------------------------- ##
23783## Report this to wx-dev@lists.wxwidgets.org ##
23784## ----------------------------------------- ##
a848cd7e
SC
23785_ASBOX
23786 ) |
23787 sed "s/^/$as_me: WARNING: /" >&2
23788 ;;
23789esac
23790echo "$as_me:$LINENO: checking for mspack.h" >&5
23791echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23792if test "${ac_cv_header_mspack_h+set}" = set; then
23793 echo $ECHO_N "(cached) $ECHO_C" >&6
23794else
23795 ac_cv_header_mspack_h=$ac_header_preproc
23796fi
23797echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23798echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23799
23800fi
23801if test $ac_cv_header_mspack_h = yes; then
23802 found_mspack_h=1
23803fi
23804
23805
23806 if test "x$found_mspack_h" = "x1"; then
23807 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
23808echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
23809if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
23810 echo $ECHO_N "(cached) $ECHO_C" >&6
23811else
23812 ac_check_lib_save_LIBS=$LIBS
23813LIBS="-lmspack $LIBS"
23814cat >conftest.$ac_ext <<_ACEOF
23815/* confdefs.h. */
23816_ACEOF
23817cat confdefs.h >>conftest.$ac_ext
23818cat >>conftest.$ac_ext <<_ACEOF
23819/* end confdefs.h. */
23820
23821/* Override any gcc2 internal prototype to avoid an error. */
23822#ifdef __cplusplus
23823extern "C"
23824#endif
23825/* We use char because int might match the return type of a gcc2
23826 builtin and then its argument prototype would still apply. */
23827char mspack_create_chm_decompressor ();
23828int
23829main ()
23830{
23831mspack_create_chm_decompressor ();
23832 ;
23833 return 0;
23834}
23835_ACEOF
23836rm -f conftest.$ac_objext conftest$ac_exeext
23837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23838 (eval $ac_link) 2>conftest.er1
a848cd7e 23839 ac_status=$?
ac1cb8d3
VS
23840 grep -v '^ *+' conftest.er1 >conftest.err
23841 rm -f conftest.er1
23842 cat conftest.err >&5
a848cd7e
SC
23843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); } &&
9dd0f6c2 23845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23847 (eval $ac_try) 2>&5
23848 ac_status=$?
23849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850 (exit $ac_status); }; } &&
23851 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
23857 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
23858else
23859 echo "$as_me: failed program was:" >&5
23860sed 's/^/| /' conftest.$ac_ext >&5
23861
23862ac_cv_lib_mspack_mspack_create_chm_decompressor=no
23863fi
ac1cb8d3
VS
23864rm -f conftest.err conftest.$ac_objext \
23865 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23866LIBS=$ac_check_lib_save_LIBS
23867fi
23868echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
23869echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
23870if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
23871 MSPACK_LINK=" -lmspack"
23872fi
23873
23874 fi
23875 if test "x$MSPACK_LINK" = "x" ; then
23876 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
23877 fi
23878fi
23879
23880if test "$wxUSE_LIBMSPACK" != "no"; then
23881 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
23882#define wxUSE_LIBMSPACK 1
23883_ACEOF
23884
a848cd7e
SC
23885fi
23886
23887
23888
23889AFMINSTALL=
23890WIN32INSTALL=
23891
23892TOOLKIT=
23893TOOLKIT_INCLUDE=
23894WIDGET_SET=
23895
23896if test "$USE_WIN32" = 1 ; then
23897
23898for ac_header in w32api.h
23899do
23900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23901if eval "test \"\${$as_ac_Header+set}\" = set"; then
23902 echo "$as_me:$LINENO: checking for $ac_header" >&5
23903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23904if eval "test \"\${$as_ac_Header+set}\" = set"; then
23905 echo $ECHO_N "(cached) $ECHO_C" >&6
23906fi
23907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23909else
23910 # Is the header compilable?
23911echo "$as_me:$LINENO: checking $ac_header usability" >&5
23912echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23913cat >conftest.$ac_ext <<_ACEOF
23914/* confdefs.h. */
23915_ACEOF
23916cat confdefs.h >>conftest.$ac_ext
23917cat >>conftest.$ac_ext <<_ACEOF
23918/* end confdefs.h. */
23919$ac_includes_default
23920#include <$ac_header>
23921_ACEOF
23922rm -f conftest.$ac_objext
23923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23924 (eval $ac_compile) 2>conftest.er1
a848cd7e 23925 ac_status=$?
ac1cb8d3
VS
23926 grep -v '^ *+' conftest.er1 >conftest.err
23927 rm -f conftest.er1
23928 cat conftest.err >&5
a848cd7e
SC
23929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); } &&
9dd0f6c2 23931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23933 (eval $ac_try) 2>&5
23934 ac_status=$?
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); }; } &&
23937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
23943 ac_header_compiler=yes
23944else
23945 echo "$as_me: failed program was:" >&5
23946sed 's/^/| /' conftest.$ac_ext >&5
23947
23948ac_header_compiler=no
23949fi
ac1cb8d3 23950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23951echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23952echo "${ECHO_T}$ac_header_compiler" >&6
23953
23954# Is the header present?
23955echo "$as_me:$LINENO: checking $ac_header presence" >&5
23956echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23957cat >conftest.$ac_ext <<_ACEOF
23958/* confdefs.h. */
23959_ACEOF
23960cat confdefs.h >>conftest.$ac_ext
23961cat >>conftest.$ac_ext <<_ACEOF
23962/* end confdefs.h. */
23963#include <$ac_header>
23964_ACEOF
23965if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23967 ac_status=$?
23968 grep -v '^ *+' conftest.er1 >conftest.err
23969 rm -f conftest.er1
23970 cat conftest.err >&5
23971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 (exit $ac_status); } >/dev/null; then
23973 if test -s conftest.err; then
23974 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23976 else
23977 ac_cpp_err=
23978 fi
23979else
23980 ac_cpp_err=yes
23981fi
23982if test -z "$ac_cpp_err"; then
23983 ac_header_preproc=yes
23984else
23985 echo "$as_me: failed program was:" >&5
23986sed 's/^/| /' conftest.$ac_ext >&5
23987
23988 ac_header_preproc=no
23989fi
23990rm -f conftest.err conftest.$ac_ext
23991echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23992echo "${ECHO_T}$ac_header_preproc" >&6
23993
23994# So? What about this header?
ac1cb8d3
VS
23995case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23996 yes:no: )
a848cd7e
SC
23997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23998echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24000echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24001 ac_header_preproc=yes
a848cd7e 24002 ;;
ac1cb8d3 24003 no:yes:* )
a848cd7e
SC
24004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24005echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24007echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24009echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24011echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24013echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24015echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24016 (
24017 cat <<\_ASBOX
ac1cb8d3
VS
24018## ----------------------------------------- ##
24019## Report this to wx-dev@lists.wxwidgets.org ##
24020## ----------------------------------------- ##
a848cd7e
SC
24021_ASBOX
24022 ) |
24023 sed "s/^/$as_me: WARNING: /" >&2
24024 ;;
24025esac
24026echo "$as_me:$LINENO: checking for $ac_header" >&5
24027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24028if eval "test \"\${$as_ac_Header+set}\" = set"; then
24029 echo $ECHO_N "(cached) $ECHO_C" >&6
24030else
ac1cb8d3 24031 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24032fi
24033echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24034echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24035
24036fi
24037if test `eval echo '${'$as_ac_Header'}'` = yes; then
24038 cat >>confdefs.h <<_ACEOF
24039#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24040_ACEOF
24041
24042fi
24043
24044done
24045
24046 if test "${ac_cv_header_windows_h+set}" = set; then
24047 echo "$as_me:$LINENO: checking for windows.h" >&5
24048echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24049if test "${ac_cv_header_windows_h+set}" = set; then
24050 echo $ECHO_N "(cached) $ECHO_C" >&6
24051fi
24052echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24053echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24054else
24055 # Is the header compilable?
24056echo "$as_me:$LINENO: checking windows.h usability" >&5
24057echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24058cat >conftest.$ac_ext <<_ACEOF
24059/* confdefs.h. */
24060_ACEOF
24061cat confdefs.h >>conftest.$ac_ext
24062cat >>conftest.$ac_ext <<_ACEOF
24063/* end confdefs.h. */
24064$ac_includes_default
24065#include <windows.h>
24066_ACEOF
24067rm -f conftest.$ac_objext
24068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24069 (eval $ac_compile) 2>conftest.er1
a848cd7e 24070 ac_status=$?
ac1cb8d3
VS
24071 grep -v '^ *+' conftest.er1 >conftest.err
24072 rm -f conftest.er1
24073 cat conftest.err >&5
a848cd7e
SC
24074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075 (exit $ac_status); } &&
9dd0f6c2 24076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24078 (eval $ac_try) 2>&5
24079 ac_status=$?
24080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 (exit $ac_status); }; } &&
24082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
24088 ac_header_compiler=yes
24089else
24090 echo "$as_me: failed program was:" >&5
24091sed 's/^/| /' conftest.$ac_ext >&5
24092
24093ac_header_compiler=no
24094fi
ac1cb8d3 24095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24096echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24097echo "${ECHO_T}$ac_header_compiler" >&6
24098
24099# Is the header present?
24100echo "$as_me:$LINENO: checking windows.h presence" >&5
24101echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24102cat >conftest.$ac_ext <<_ACEOF
24103/* confdefs.h. */
24104_ACEOF
24105cat confdefs.h >>conftest.$ac_ext
24106cat >>conftest.$ac_ext <<_ACEOF
24107/* end confdefs.h. */
24108#include <windows.h>
24109_ACEOF
24110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24112 ac_status=$?
24113 grep -v '^ *+' conftest.er1 >conftest.err
24114 rm -f conftest.er1
24115 cat conftest.err >&5
24116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117 (exit $ac_status); } >/dev/null; then
24118 if test -s conftest.err; then
24119 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24121 else
24122 ac_cpp_err=
24123 fi
24124else
24125 ac_cpp_err=yes
24126fi
24127if test -z "$ac_cpp_err"; then
24128 ac_header_preproc=yes
24129else
24130 echo "$as_me: failed program was:" >&5
24131sed 's/^/| /' conftest.$ac_ext >&5
24132
24133 ac_header_preproc=no
24134fi
24135rm -f conftest.err conftest.$ac_ext
24136echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24137echo "${ECHO_T}$ac_header_preproc" >&6
24138
24139# So? What about this header?
ac1cb8d3
VS
24140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24141 yes:no: )
a848cd7e
SC
24142 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24143echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24144 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24145echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24146 ac_header_preproc=yes
a848cd7e 24147 ;;
ac1cb8d3 24148 no:yes:* )
a848cd7e
SC
24149 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24150echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24151 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24152echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24153 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24154echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24155 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24156echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24157 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24158echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24159 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24160echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24161 (
24162 cat <<\_ASBOX
ac1cb8d3
VS
24163## ----------------------------------------- ##
24164## Report this to wx-dev@lists.wxwidgets.org ##
24165## ----------------------------------------- ##
a848cd7e
SC
24166_ASBOX
24167 ) |
24168 sed "s/^/$as_me: WARNING: /" >&2
24169 ;;
24170esac
24171echo "$as_me:$LINENO: checking for windows.h" >&5
24172echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24173if test "${ac_cv_header_windows_h+set}" = set; then
24174 echo $ECHO_N "(cached) $ECHO_C" >&6
24175else
24176 ac_cv_header_windows_h=$ac_header_preproc
24177fi
24178echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24179echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24180
24181fi
24182if test $ac_cv_header_windows_h = yes; then
24183 :
24184else
24185
24186 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24187echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24188 { (exit 1); exit 1; }; }
24189
24190fi
24191
24192
24193
24194 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24195
24196 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24197 LIBS="$LIBS -loleacc"
24198 fi
24199
24200 case "${host}" in
24201 *-*-cygwin* )
24202 LIBS="$LIBS -lkernel32 -luser32"
24203 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24204 esac
24205
24206 if test "$wxUSE_ODBC" = "sys" ; then
24207 wxUSE_ODBC = "yes"
24208 fi
24209 if test "$wxUSE_ODBC" = "yes" ; then
24210 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24211 cat >>confdefs.h <<\_ACEOF
24212#define wxUSE_ODBC 1
24213_ACEOF
24214
24215 fi
24216
24217 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24218 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24219
24220 WIN32INSTALL=win32install
24221fi
24222
24223if test "$wxUSE_GUI" = "yes"; then
24224 USE_GUI=1
24225
24226 GUI_TK_LIBRARY=
24227
24228 WXGTK12=
24229 WXGTK127=
24230 WXGTK20=
24231 WXGPE=
24232
207bc66c
RN
24233 if test "$wxUSE_COCOA" = 1 ; then
24234 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24235 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24236echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24237 wxUSE_PRINTING_ARCHITECTURE=no
24238 fi
24239 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24240 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24241echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24242 wxUSE_DRAG_AND_DROP=no
24243 fi
24244 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24245 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24246echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24247 wxUSE_DRAGIMAGE=no
24248 fi
24249 fi
24250
a848cd7e
SC
24251 if test "$wxUSE_MSW" = 1 ; then
24252 TOOLKIT=MSW
24253 GUIDIST=MSW_DIST
24254
ceec2216 24255 case "${host}" in
a848cd7e
SC
24256 *-*-mingw32* )
24257 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24258 esac
24259 fi
24260
24261 if test "$wxUSE_GTK" = 1; then
24262 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24263echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24264
24265 gtk_version_cached=1
24266 if test "${wx_cv_lib_gtk+set}" = set; then
24267 echo $ECHO_N "(cached) $ECHO_C" >&6
24268else
24269
24270 gtk_version_cached=0
24271 echo "$as_me:$LINENO: result: " >&5
24272echo "${ECHO_T}" >&6
24273
24274 GTK_MODULES=
24275 if test "$wxUSE_THREADS" = "yes"; then
24276 GTK_MODULES=gthread
24277 fi
24278
f597b41c 24279 wx_cv_lib_gtk=
f34ca037 24280 if test "x$wxGTK_VERSION" != "x1"; then
a848cd7e
SC
24281 # Check whether --enable-gtktest or --disable-gtktest was given.
24282if test "${enable_gtktest+set}" = set; then
24283 enableval="$enable_gtktest"
24284
24285else
24286 enable_gtktest=yes
24287fi;
24288
24289 pkg_config_args=gtk+-2.0
24290 for module in . $GTK_MODULES
24291 do
24292 case "$module" in
24293 gthread)
24294 pkg_config_args="$pkg_config_args gthread-2.0"
24295 ;;
24296 esac
24297 done
24298
24299 no_gtk=""
24300
24301 # Extract the first word of "pkg-config", so it can be a program name with args.
24302set dummy pkg-config; ac_word=$2
24303echo "$as_me:$LINENO: checking for $ac_word" >&5
24304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24305if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24306 echo $ECHO_N "(cached) $ECHO_C" >&6
24307else
24308 case $PKG_CONFIG in
24309 [\\/]* | ?:[\\/]*)
24310 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24311 ;;
24312 *)
24313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24314for as_dir in $PATH
24315do
24316 IFS=$as_save_IFS
24317 test -z "$as_dir" && as_dir=.
24318 for ac_exec_ext in '' $ac_executable_extensions; do
24319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24320 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24322 break 2
24323 fi
24324done
24325done
24326
24327 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24328 ;;
24329esac
24330fi
24331PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24332
24333if test -n "$PKG_CONFIG"; then
24334 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24335echo "${ECHO_T}$PKG_CONFIG" >&6
24336else
24337 echo "$as_me:$LINENO: result: no" >&5
24338echo "${ECHO_T}no" >&6
24339fi
24340
24341
24342 if test x$PKG_CONFIG != xno ; then
24343 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24344 :
24345 else
c2218763 24346 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24347 no_gtk=yes
24348 PKG_CONFIG=no
24349 fi
24350 else
24351 no_gtk=yes
24352 fi
24353
24354 min_gtk_version=2.0.0
24355 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24356echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24357
24358 if test x$PKG_CONFIG != xno ; then
24359 ## don't try to run the test against uninstalled libtool libs
24360 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24361 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24362 enable_gtktest=no
24363 fi
24364
24365 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24366 :
24367 else
24368 no_gtk=yes
24369 fi
24370 fi
24371
24372 if test x"$no_gtk" = x ; then
24373 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24374 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24375 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24376 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24377 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24378 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24379 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24380 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24381 if test "x$enable_gtktest" = "xyes" ; then
24382 ac_save_CFLAGS="$CFLAGS"
24383 ac_save_LIBS="$LIBS"
24384 CFLAGS="$CFLAGS $GTK_CFLAGS"
24385 LIBS="$GTK_LIBS $LIBS"
24386 rm -f conf.gtktest
24387 if test "$cross_compiling" = yes; then
24388 echo $ac_n "cross compiling; assumed OK... $ac_c"
24389else
24390 cat >conftest.$ac_ext <<_ACEOF
24391/* confdefs.h. */
24392_ACEOF
24393cat confdefs.h >>conftest.$ac_ext
24394cat >>conftest.$ac_ext <<_ACEOF
24395/* end confdefs.h. */
24396
24397#include <gtk/gtk.h>
24398#include <stdio.h>
24399#include <stdlib.h>
24400
24401int
24402main ()
24403{
24404 int major, minor, micro;
24405 char *tmp_version;
24406
24407 system ("touch conf.gtktest");
24408
24409 /* HP/UX 9 (%@#!) writes to sscanf strings */
24410 tmp_version = g_strdup("$min_gtk_version");
24411 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24412 printf("%s, bad version string\n", "$min_gtk_version");
24413 exit(1);
24414 }
24415
24416 if ((gtk_major_version != $gtk_config_major_version) ||
24417 (gtk_minor_version != $gtk_config_minor_version) ||
24418 (gtk_micro_version != $gtk_config_micro_version))
24419 {
24420 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24421 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24422 gtk_major_version, gtk_minor_version, gtk_micro_version);
24423 printf ("*** was found! If pkg-config was correct, then it is best\n");
24424 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24425 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24426 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24427 printf("*** required on your system.\n");
24428 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24429 printf("*** to point to the correct configuration files\n");
24430 }
24431 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24432 (gtk_minor_version != GTK_MINOR_VERSION) ||
24433 (gtk_micro_version != GTK_MICRO_VERSION))
24434 {
24435 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24436 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24437 printf("*** library (version %d.%d.%d)\n",
24438 gtk_major_version, gtk_minor_version, gtk_micro_version);
24439 }
24440 else
24441 {
24442 if ((gtk_major_version > major) ||
24443 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24444 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24445 {
24446 return 0;
24447 }
24448 else
24449 {
24450 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24451 gtk_major_version, gtk_minor_version, gtk_micro_version);
24452 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24453 major, minor, micro);
24454 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24455 printf("***\n");
24456 printf("*** If you have already installed a sufficiently new version, this error\n");
24457 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24458 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24459 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24460 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24461 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24462 printf("*** so that the correct libraries are found at run-time))\n");
24463 }
24464 }
24465 return 1;
24466}
24467
24468_ACEOF
24469rm -f conftest$ac_exeext
24470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24471 (eval $ac_link) 2>&5
24472 ac_status=$?
24473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24476 (eval $ac_try) 2>&5
24477 ac_status=$?
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); }; }; then
24480 :
24481else
24482 echo "$as_me: program exited with status $ac_status" >&5
24483echo "$as_me: failed program was:" >&5
24484sed 's/^/| /' conftest.$ac_ext >&5
24485
24486( exit $ac_status )
24487no_gtk=yes
24488fi
ac1cb8d3 24489rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24490fi
24491 CFLAGS="$ac_save_CFLAGS"
24492 LIBS="$ac_save_LIBS"
24493 fi
24494 fi
24495 if test "x$no_gtk" = x ; then
24496 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24497echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24498 wx_cv_lib_gtk=2.0
24499 else
24500 echo "$as_me:$LINENO: result: no" >&5
24501echo "${ECHO_T}no" >&6
24502 if test "$PKG_CONFIG" = "no" ; then
24503 echo "*** A new enough version of pkg-config was not found."
24504 echo "*** See http://pkgconfig.sourceforge.net"
24505 else
24506 if test -f conf.gtktest ; then
24507 :
24508 else
24509 echo "*** Could not run GTK+ test program, checking why..."
24510 ac_save_CFLAGS="$CFLAGS"
24511 ac_save_LIBS="$LIBS"
24512 CFLAGS="$CFLAGS $GTK_CFLAGS"
24513 LIBS="$LIBS $GTK_LIBS"
24514 cat >conftest.$ac_ext <<_ACEOF
24515/* confdefs.h. */
24516_ACEOF
24517cat confdefs.h >>conftest.$ac_ext
24518cat >>conftest.$ac_ext <<_ACEOF
24519/* end confdefs.h. */
24520
24521#include <gtk/gtk.h>
24522#include <stdio.h>
24523
24524int
24525main ()
24526{
24527 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24528 ;
24529 return 0;
24530}
24531_ACEOF
24532rm -f conftest.$ac_objext conftest$ac_exeext
24533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24534 (eval $ac_link) 2>conftest.er1
a848cd7e 24535 ac_status=$?
ac1cb8d3
VS
24536 grep -v '^ *+' conftest.er1 >conftest.err
24537 rm -f conftest.er1
24538 cat conftest.err >&5
a848cd7e
SC
24539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540 (exit $ac_status); } &&
9dd0f6c2 24541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543 (eval $ac_try) 2>&5
24544 ac_status=$?
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); }; } &&
24547 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
24553 echo "*** The test program compiled, but did not run. This usually means"
24554 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24555 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24556 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24557 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24558 echo "*** is required on your system"
24559 echo "***"
24560 echo "*** If you have an old version installed, it is best to remove it, although"
24561 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24562else
24563 echo "$as_me: failed program was:" >&5
24564sed 's/^/| /' conftest.$ac_ext >&5
24565
24566 echo "*** The test program failed to compile or link. See the file config.log for the"
24567 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24568fi
ac1cb8d3
VS
24569rm -f conftest.err conftest.$ac_objext \
24570 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24571 CFLAGS="$ac_save_CFLAGS"
24572 LIBS="$ac_save_LIBS"
24573 fi
24574 fi
24575 GTK_CFLAGS=""
24576 GTK_LIBS=""
24577 :
24578 fi
24579
24580
24581 rm -f conf.gtktest
24582
f597b41c
MW
24583 fi
24584
f34ca037
MW
24585 if test -z "$wx_cv_lib_gtk"; then
24586 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
24587
24588# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24589if test "${with_gtk_prefix+set}" = set; then
24590 withval="$with_gtk_prefix"
24591 gtk_config_prefix="$withval"
24592else
24593 gtk_config_prefix=""
24594fi;
24595
24596# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24597if test "${with_gtk_exec_prefix+set}" = set; then
24598 withval="$with_gtk_exec_prefix"
24599 gtk_config_exec_prefix="$withval"
24600else
24601 gtk_config_exec_prefix=""
24602fi;
24603# Check whether --enable-gtktest or --disable-gtktest was given.
24604if test "${enable_gtktest+set}" = set; then
24605 enableval="$enable_gtktest"
24606
24607else
24608 enable_gtktest=yes
24609fi;
24610
24611 for module in . $GTK_MODULES
24612 do
24613 case "$module" in
24614 gthread)
24615 gtk_config_args="$gtk_config_args gthread"
24616 ;;
24617 esac
24618 done
24619
24620 if test x$gtk_config_exec_prefix != x ; then
24621 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24622 if test x${GTK_CONFIG+set} != xset ; then
24623 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24624 fi
24625 fi
24626 if test x$gtk_config_prefix != x ; then
24627 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24628 if test x${GTK_CONFIG+set} != xset ; then
24629 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24630 fi
24631 fi
24632
24633 # Extract the first word of "gtk-config", so it can be a program name with args.
24634set dummy gtk-config; ac_word=$2
24635echo "$as_me:$LINENO: checking for $ac_word" >&5
24636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24637if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24638 echo $ECHO_N "(cached) $ECHO_C" >&6
24639else
24640 case $GTK_CONFIG in
24641 [\\/]* | ?:[\\/]*)
24642 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24643 ;;
24644 *)
24645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24646for as_dir in $PATH
24647do
24648 IFS=$as_save_IFS
24649 test -z "$as_dir" && as_dir=.
24650 for ac_exec_ext in '' $ac_executable_extensions; do
24651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24652 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24654 break 2
24655 fi
24656done
24657done
24658
24659 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24660 ;;
24661esac
24662fi
24663GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24664
24665if test -n "$GTK_CONFIG"; then
24666 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24667echo "${ECHO_T}$GTK_CONFIG" >&6
24668else
24669 echo "$as_me:$LINENO: result: no" >&5
24670echo "${ECHO_T}no" >&6
24671fi
24672
24673 min_gtk_version=1.2.7
24674 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24675echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24676 no_gtk=""
24677 if test "$GTK_CONFIG" = "no" ; then
24678 no_gtk=yes
24679 else
24680 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24681 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24682 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24683 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24684 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24685 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24686 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24687 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24688 if test "x$enable_gtktest" = "xyes" ; then
24689 ac_save_CFLAGS="$CFLAGS"
24690 ac_save_LIBS="$LIBS"
24691 CFLAGS="$CFLAGS $GTK_CFLAGS"
24692 LIBS="$GTK_LIBS $LIBS"
24693 rm -f conf.gtktest
24694 if test "$cross_compiling" = yes; then
24695 echo $ac_n "cross compiling; assumed OK... $ac_c"
24696else
24697 cat >conftest.$ac_ext <<_ACEOF
24698/* confdefs.h. */
24699_ACEOF
24700cat confdefs.h >>conftest.$ac_ext
24701cat >>conftest.$ac_ext <<_ACEOF
24702/* end confdefs.h. */
24703
24704#include <gtk/gtk.h>
24705#include <stdio.h>
24706#include <stdlib.h>
24707
24708int
24709main ()
24710{
24711 int major, minor, micro;
24712 char *tmp_version;
24713
24714 system ("touch conf.gtktest");
24715
24716 /* HP/UX 9 (%@#!) writes to sscanf strings */
24717 tmp_version = g_strdup("$min_gtk_version");
24718 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24719 printf("%s, bad version string\n", "$min_gtk_version");
24720 exit(1);
24721 }
24722
24723 if ((gtk_major_version != $gtk_config_major_version) ||
24724 (gtk_minor_version != $gtk_config_minor_version) ||
24725 (gtk_micro_version != $gtk_config_micro_version))
24726 {
24727 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24728 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24729 gtk_major_version, gtk_minor_version, gtk_micro_version);
24730 printf ("*** was found! If gtk-config was correct, then it is best\n");
24731 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24732 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24733 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24734 printf("*** required on your system.\n");
24735 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24736 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24737 printf("*** before re-running configure\n");
24738 }
24739#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24740 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24741 (gtk_minor_version != GTK_MINOR_VERSION) ||
24742 (gtk_micro_version != GTK_MICRO_VERSION))
24743 {
24744 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24745 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24746 printf("*** library (version %d.%d.%d)\n",
24747 gtk_major_version, gtk_minor_version, gtk_micro_version);
24748 }
24749#endif /* defined (GTK_MAJOR_VERSION) ... */
24750 else
24751 {
24752 if ((gtk_major_version > major) ||
24753 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24754 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24755 {
24756 return 0;
24757 }
24758 else
24759 {
24760 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24761 gtk_major_version, gtk_minor_version, gtk_micro_version);
24762 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24763 major, minor, micro);
24764 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24765 printf("***\n");
24766 printf("*** If you have already installed a sufficiently new version, this error\n");
24767 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24768 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24769 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24770 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24771 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24772 printf("*** so that the correct libraries are found at run-time))\n");
24773 }
24774 }
24775 return 1;
24776}
24777
24778_ACEOF
24779rm -f conftest$ac_exeext
24780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24781 (eval $ac_link) 2>&5
24782 ac_status=$?
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786 (eval $ac_try) 2>&5
24787 ac_status=$?
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); }; }; then
24790 :
24791else
24792 echo "$as_me: program exited with status $ac_status" >&5
24793echo "$as_me: failed program was:" >&5
24794sed 's/^/| /' conftest.$ac_ext >&5
24795
24796( exit $ac_status )
24797no_gtk=yes
24798fi
ac1cb8d3 24799rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24800fi
24801 CFLAGS="$ac_save_CFLAGS"
24802 LIBS="$ac_save_LIBS"
24803 fi
24804 fi
24805 if test "x$no_gtk" = x ; then
24806 echo "$as_me:$LINENO: result: yes" >&5
24807echo "${ECHO_T}yes" >&6
24808 wx_cv_lib_gtk=1.2.7
24809 else
24810 echo "$as_me:$LINENO: result: no" >&5
24811echo "${ECHO_T}no" >&6
24812 if test "$GTK_CONFIG" = "no" ; then
24813 echo "*** The gtk-config script installed by GTK could not be found"
24814 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24815 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24816 echo "*** full path to gtk-config."
24817 else
24818 if test -f conf.gtktest ; then
24819 :
24820 else
24821 echo "*** Could not run GTK test program, checking why..."
24822 CFLAGS="$CFLAGS $GTK_CFLAGS"
24823 LIBS="$LIBS $GTK_LIBS"
24824 cat >conftest.$ac_ext <<_ACEOF
24825/* confdefs.h. */
24826_ACEOF
24827cat confdefs.h >>conftest.$ac_ext
24828cat >>conftest.$ac_ext <<_ACEOF
24829/* end confdefs.h. */
24830
24831#include <gtk/gtk.h>
24832#include <stdio.h>
24833
24834int
24835main ()
24836{
24837 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24838 ;
24839 return 0;
24840}
24841_ACEOF
24842rm -f conftest.$ac_objext conftest$ac_exeext
24843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24844 (eval $ac_link) 2>conftest.er1
a848cd7e 24845 ac_status=$?
ac1cb8d3
VS
24846 grep -v '^ *+' conftest.er1 >conftest.err
24847 rm -f conftest.er1
24848 cat conftest.err >&5
a848cd7e
SC
24849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850 (exit $ac_status); } &&
9dd0f6c2 24851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853 (eval $ac_try) 2>&5
24854 ac_status=$?
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); }; } &&
24857 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
24863 echo "*** The test program compiled, but did not run. This usually means"
24864 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24865 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24866 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24867 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24868 echo "*** is required on your system"
24869 echo "***"
24870 echo "*** If you have an old version installed, it is best to remove it, although"
24871 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24872 echo "***"
24873 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24874 echo "*** came with the system with the command"
24875 echo "***"
24876 echo "*** rpm --erase --nodeps gtk gtk-devel"
24877else
24878 echo "$as_me: failed program was:" >&5
24879sed 's/^/| /' conftest.$ac_ext >&5
24880
24881 echo "*** The test program failed to compile or link. See the file config.log for the"
24882 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24883 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24884 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24885fi
ac1cb8d3
VS
24886rm -f conftest.err conftest.$ac_objext \
24887 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24888 CFLAGS="$ac_save_CFLAGS"
24889 LIBS="$ac_save_LIBS"
24890 fi
24891 fi
24892 GTK_CFLAGS=""
24893 GTK_LIBS=""
24894 :
24895 fi
24896
24897
24898 rm -f conf.gtktest
24899
24900
f34ca037 24901 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
24902
24903# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24904if test "${with_gtk_prefix+set}" = set; then
24905 withval="$with_gtk_prefix"
24906 gtk_config_prefix="$withval"
24907else
24908 gtk_config_prefix=""
24909fi;
24910
24911# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24912if test "${with_gtk_exec_prefix+set}" = set; then
24913 withval="$with_gtk_exec_prefix"
24914 gtk_config_exec_prefix="$withval"
24915else
24916 gtk_config_exec_prefix=""
24917fi;
24918# Check whether --enable-gtktest or --disable-gtktest was given.
24919if test "${enable_gtktest+set}" = set; then
24920 enableval="$enable_gtktest"
24921
24922else
24923 enable_gtktest=yes
24924fi;
24925
24926 for module in . $GTK_MODULES
24927 do
24928 case "$module" in
24929 gthread)
24930 gtk_config_args="$gtk_config_args gthread"
24931 ;;
24932 esac
24933 done
24934
24935 if test x$gtk_config_exec_prefix != x ; then
24936 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24937 if test x${GTK_CONFIG+set} != xset ; then
24938 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24939 fi
24940 fi
24941 if test x$gtk_config_prefix != x ; then
24942 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24943 if test x${GTK_CONFIG+set} != xset ; then
24944 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24945 fi
24946 fi
24947
24948 # Extract the first word of "gtk-config", so it can be a program name with args.
24949set dummy gtk-config; ac_word=$2
24950echo "$as_me:$LINENO: checking for $ac_word" >&5
24951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24952if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24953 echo $ECHO_N "(cached) $ECHO_C" >&6
24954else
24955 case $GTK_CONFIG in
24956 [\\/]* | ?:[\\/]*)
24957 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24958 ;;
24959 *)
24960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24961for as_dir in $PATH
24962do
24963 IFS=$as_save_IFS
24964 test -z "$as_dir" && as_dir=.
24965 for ac_exec_ext in '' $ac_executable_extensions; do
24966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24967 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24969 break 2
24970 fi
24971done
24972done
24973
24974 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24975 ;;
24976esac
24977fi
24978GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24979
24980if test -n "$GTK_CONFIG"; then
24981 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24982echo "${ECHO_T}$GTK_CONFIG" >&6
24983else
24984 echo "$as_me:$LINENO: result: no" >&5
24985echo "${ECHO_T}no" >&6
24986fi
24987
24988 min_gtk_version=1.2.3
24989 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24990echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24991 no_gtk=""
24992 if test "$GTK_CONFIG" = "no" ; then
24993 no_gtk=yes
24994 else
24995 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24996 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24997 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24998 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24999 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25000 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25001 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25002 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25003 if test "x$enable_gtktest" = "xyes" ; then
25004 ac_save_CFLAGS="$CFLAGS"
25005 ac_save_LIBS="$LIBS"
25006 CFLAGS="$CFLAGS $GTK_CFLAGS"
25007 LIBS="$GTK_LIBS $LIBS"
25008 rm -f conf.gtktest
25009 if test "$cross_compiling" = yes; then
25010 echo $ac_n "cross compiling; assumed OK... $ac_c"
25011else
25012 cat >conftest.$ac_ext <<_ACEOF
25013/* confdefs.h. */
25014_ACEOF
25015cat confdefs.h >>conftest.$ac_ext
25016cat >>conftest.$ac_ext <<_ACEOF
25017/* end confdefs.h. */
25018
25019#include <gtk/gtk.h>
25020#include <stdio.h>
25021#include <stdlib.h>
25022
25023int
25024main ()
25025{
25026 int major, minor, micro;
25027 char *tmp_version;
25028
25029 system ("touch conf.gtktest");
25030
25031 /* HP/UX 9 (%@#!) writes to sscanf strings */
25032 tmp_version = g_strdup("$min_gtk_version");
25033 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25034 printf("%s, bad version string\n", "$min_gtk_version");
25035 exit(1);
25036 }
25037
25038 if ((gtk_major_version != $gtk_config_major_version) ||
25039 (gtk_minor_version != $gtk_config_minor_version) ||
25040 (gtk_micro_version != $gtk_config_micro_version))
25041 {
25042 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25043 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25044 gtk_major_version, gtk_minor_version, gtk_micro_version);
25045 printf ("*** was found! If gtk-config was correct, then it is best\n");
25046 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25047 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25048 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25049 printf("*** required on your system.\n");
25050 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25051 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25052 printf("*** before re-running configure\n");
25053 }
25054#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25055 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25056 (gtk_minor_version != GTK_MINOR_VERSION) ||
25057 (gtk_micro_version != GTK_MICRO_VERSION))
25058 {
25059 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25060 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25061 printf("*** library (version %d.%d.%d)\n",
25062 gtk_major_version, gtk_minor_version, gtk_micro_version);
25063 }
25064#endif /* defined (GTK_MAJOR_VERSION) ... */
25065 else
25066 {
25067 if ((gtk_major_version > major) ||
25068 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25069 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25070 {
25071 return 0;
25072 }
25073 else
25074 {
25075 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25076 gtk_major_version, gtk_minor_version, gtk_micro_version);
25077 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25078 major, minor, micro);
25079 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25080 printf("***\n");
25081 printf("*** If you have already installed a sufficiently new version, this error\n");
25082 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25083 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25084 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25085 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25086 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25087 printf("*** so that the correct libraries are found at run-time))\n");
25088 }
25089 }
25090 return 1;
25091}
25092
25093_ACEOF
25094rm -f conftest$ac_exeext
25095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25096 (eval $ac_link) 2>&5
25097 ac_status=$?
25098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25101 (eval $ac_try) 2>&5
25102 ac_status=$?
25103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); }; }; then
25105 :
25106else
25107 echo "$as_me: program exited with status $ac_status" >&5
25108echo "$as_me: failed program was:" >&5
25109sed 's/^/| /' conftest.$ac_ext >&5
25110
25111( exit $ac_status )
25112no_gtk=yes
25113fi
ac1cb8d3 25114rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25115fi
25116 CFLAGS="$ac_save_CFLAGS"
25117 LIBS="$ac_save_LIBS"
25118 fi
25119 fi
25120 if test "x$no_gtk" = x ; then
25121 echo "$as_me:$LINENO: result: yes" >&5
25122echo "${ECHO_T}yes" >&6
25123 wx_cv_lib_gtk=1.2.3
25124 else
25125 echo "$as_me:$LINENO: result: no" >&5
25126echo "${ECHO_T}no" >&6
25127 if test "$GTK_CONFIG" = "no" ; then
25128 echo "*** The gtk-config script installed by GTK could not be found"
25129 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25130 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25131 echo "*** full path to gtk-config."
25132 else
25133 if test -f conf.gtktest ; then
25134 :
25135 else
25136 echo "*** Could not run GTK test program, checking why..."
25137 CFLAGS="$CFLAGS $GTK_CFLAGS"
25138 LIBS="$LIBS $GTK_LIBS"
25139 cat >conftest.$ac_ext <<_ACEOF
25140/* confdefs.h. */
25141_ACEOF
25142cat confdefs.h >>conftest.$ac_ext
25143cat >>conftest.$ac_ext <<_ACEOF
25144/* end confdefs.h. */
25145
25146#include <gtk/gtk.h>
25147#include <stdio.h>
25148
25149int
25150main ()
25151{
25152 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25153 ;
25154 return 0;
25155}
25156_ACEOF
25157rm -f conftest.$ac_objext conftest$ac_exeext
25158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25159 (eval $ac_link) 2>conftest.er1
a848cd7e 25160 ac_status=$?
ac1cb8d3
VS
25161 grep -v '^ *+' conftest.er1 >conftest.err
25162 rm -f conftest.er1
25163 cat conftest.err >&5
a848cd7e
SC
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); } &&
9dd0f6c2 25166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25168 (eval $ac_try) 2>&5
25169 ac_status=$?
25170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); }; } &&
25172 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
25178 echo "*** The test program compiled, but did not run. This usually means"
25179 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25180 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25181 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25182 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25183 echo "*** is required on your system"
25184 echo "***"
25185 echo "*** If you have an old version installed, it is best to remove it, although"
25186 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25187 echo "***"
25188 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25189 echo "*** came with the system with the command"
25190 echo "***"
25191 echo "*** rpm --erase --nodeps gtk gtk-devel"
25192else
25193 echo "$as_me: failed program was:" >&5
25194sed 's/^/| /' conftest.$ac_ext >&5
25195
25196 echo "*** The test program failed to compile or link. See the file config.log for the"
25197 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25198 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25199 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25200fi
ac1cb8d3
VS
25201rm -f conftest.err conftest.$ac_objext \
25202 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25203 CFLAGS="$ac_save_CFLAGS"
25204 LIBS="$ac_save_LIBS"
25205 fi
25206 fi
25207 GTK_CFLAGS=""
25208 GTK_LIBS=""
25209 :
25210 fi
25211
25212
25213 rm -f conf.gtktest
25214
f34ca037 25215 fi
a848cd7e
SC
25216 fi
25217 fi
25218
25219 if test -z "$wx_cv_lib_gtk"; then
25220 wx_cv_lib_gtk=none
25221 else
25222 wx_cv_cflags_gtk=$GTK_CFLAGS
25223 wx_cv_libs_gtk=$GTK_LIBS
25224 fi
25225
25226
25227fi
25228
25229
25230 if test "$gtk_version_cached" = 1; then
25231 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25232echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25233 fi
25234
25235 case "$wx_cv_lib_gtk" in
25236 2.0) WXGTK20=1
25237 TOOLKIT_VERSION=2
25238 ;;
25239 1.2.7) WXGTK127=1
25240 WXGTK12=1
25241 ;;
25242 1.2.3) WXGTK12=1
25243 ;;
25244 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
25245The development files for GTK+ were not found. For GTK+ 2, please
25246ensure that pkg-config is in the path and that gtk+-2.0.pc is
25247installed. For GTK+ 1.2 please check that gtk-config is in the path,
25248and that the version is 1.2.3 or above. Also check that the
25249libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25250--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25251 " >&5
25252echo "$as_me: error:
f597b41c
MW
25253The development files for GTK+ were not found. For GTK+ 2, please
25254ensure that pkg-config is in the path and that gtk+-2.0.pc is
25255installed. For GTK+ 1.2 please check that gtk-config is in the path,
25256and that the version is 1.2.3 or above. Also check that the
25257libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25258--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25259 " >&2;}
25260 { (exit 1); exit 1; }; }
25261 ;;
25262 esac
25263
25264 if test "$WXGTK20" = 1; then
304205f1
VS
25265 save_CFLAGS="$CFLAGS"
25266 save_LIBS="$LIBS"
9d271838
VZ
25267 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
25268 LIBS="$LIBS $wx_cv_lib_gtk"
304205f1 25269
9755e73b 25270
304205f1
VS
25271for ac_func in pango_font_family_is_monospace
25272do
25273as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25274echo "$as_me:$LINENO: checking for $ac_func" >&5
25275echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25276if eval "test \"\${$as_ac_var+set}\" = set"; then
25277 echo $ECHO_N "(cached) $ECHO_C" >&6
25278else
25279 cat >conftest.$ac_ext <<_ACEOF
25280/* confdefs.h. */
25281_ACEOF
25282cat confdefs.h >>conftest.$ac_ext
25283cat >>conftest.$ac_ext <<_ACEOF
25284/* end confdefs.h. */
25285/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25287#define $ac_func innocuous_$ac_func
25288
25289/* System header to define __stub macros and hopefully few prototypes,
25290 which can conflict with char $ac_func (); below.
25291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25292 <limits.h> exists even on freestanding compilers. */
25293
25294#ifdef __STDC__
25295# include <limits.h>
25296#else
25297# include <assert.h>
25298#endif
25299
25300#undef $ac_func
25301
25302/* Override any gcc2 internal prototype to avoid an error. */
25303#ifdef __cplusplus
25304extern "C"
25305{
25306#endif
25307/* We use char because int might match the return type of a gcc2
25308 builtin and then its argument prototype would still apply. */
25309char $ac_func ();
25310/* The GNU C library defines this for functions which it implements
25311 to always fail with ENOSYS. Some functions are actually named
25312 something starting with __ and the normal name is an alias. */
25313#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25314choke me
25315#else
25316char (*f) () = $ac_func;
25317#endif
25318#ifdef __cplusplus
25319}
25320#endif
25321
25322int
25323main ()
25324{
25325return f != $ac_func;
25326 ;
25327 return 0;
25328}
25329_ACEOF
25330rm -f conftest.$ac_objext conftest$ac_exeext
25331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25332 (eval $ac_link) 2>conftest.er1
25333 ac_status=$?
25334 grep -v '^ *+' conftest.er1 >conftest.err
25335 rm -f conftest.er1
25336 cat conftest.err >&5
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); } &&
9dd0f6c2 25339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25341 (eval $ac_try) 2>&5
25342 ac_status=$?
25343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); }; } &&
25345 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
25351 eval "$as_ac_var=yes"
25352else
25353 echo "$as_me: failed program was:" >&5
25354sed 's/^/| /' conftest.$ac_ext >&5
25355
25356eval "$as_ac_var=no"
25357fi
25358rm -f conftest.err conftest.$ac_objext \
25359 conftest$ac_exeext conftest.$ac_ext
25360fi
25361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25362echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25363if test `eval echo '${'$as_ac_var'}'` = yes; then
25364 cat >>confdefs.h <<_ACEOF
25365#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25366_ACEOF
25367
25368fi
25369done
25370
9755e73b
VS
25371
25372 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25373echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25374 cat >conftest.$ac_ext <<_ACEOF
25375/* confdefs.h. */
25376_ACEOF
25377cat confdefs.h >>conftest.$ac_ext
25378cat >>conftest.$ac_ext <<_ACEOF
25379/* end confdefs.h. */
25380
25381 #include <gtk/gtk.h>
25382
25383int
25384main ()
25385{
25386
25387 #if !GTK_CHECK_VERSION(2,4,0)
25388 #error "Not GTK+ 2.4"
25389 #endif
25390
25391 ;
25392 return 0;
25393}
25394_ACEOF
25395rm -f conftest.$ac_objext
25396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25397 (eval $ac_compile) 2>conftest.er1
25398 ac_status=$?
25399 grep -v '^ *+' conftest.er1 >conftest.err
25400 rm -f conftest.er1
25401 cat conftest.err >&5
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); } &&
9dd0f6c2 25404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25406 (eval $ac_try) 2>&5
25407 ac_status=$?
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); }; } &&
25410 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25416
25417 cat >>confdefs.h <<\_ACEOF
25418#define __WXGTK24__ 1
25419_ACEOF
25420
25421 echo "$as_me:$LINENO: result: yes" >&5
25422echo "${ECHO_T}yes" >&6
25423
25424else
25425 echo "$as_me: failed program was:" >&5
25426sed 's/^/| /' conftest.$ac_ext >&5
25427
25428
25429 echo "$as_me:$LINENO: result: no" >&5
25430echo "${ECHO_T}no" >&6
25431
25432fi
25433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25434
304205f1
VS
25435 CFLAGS="$save_CFLAGS"
25436 LIBS="$save_LIBS"
a848cd7e
SC
25437 else
25438 if test "$wxUSE_UNICODE" = "yes"; then
25439 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25440echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25441 wxUSE_UNICODE=no
25442 fi
25443 fi
25444
25445 if test "$USE_DARWIN" != 1; then
25446
25447for ac_func in poll
25448do
25449as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25450echo "$as_me:$LINENO: checking for $ac_func" >&5
25451echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25452if eval "test \"\${$as_ac_var+set}\" = set"; then
25453 echo $ECHO_N "(cached) $ECHO_C" >&6
25454else
25455 cat >conftest.$ac_ext <<_ACEOF
25456/* confdefs.h. */
25457_ACEOF
25458cat confdefs.h >>conftest.$ac_ext
25459cat >>conftest.$ac_ext <<_ACEOF
25460/* end confdefs.h. */
ac1cb8d3
VS
25461/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25463#define $ac_func innocuous_$ac_func
25464
a848cd7e
SC
25465/* System header to define __stub macros and hopefully few prototypes,
25466 which can conflict with char $ac_func (); below.
25467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25468 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25469
a848cd7e
SC
25470#ifdef __STDC__
25471# include <limits.h>
25472#else
25473# include <assert.h>
25474#endif
ac1cb8d3
VS
25475
25476#undef $ac_func
25477
a848cd7e
SC
25478/* Override any gcc2 internal prototype to avoid an error. */
25479#ifdef __cplusplus
25480extern "C"
25481{
25482#endif
25483/* We use char because int might match the return type of a gcc2
25484 builtin and then its argument prototype would still apply. */
25485char $ac_func ();
25486/* The GNU C library defines this for functions which it implements
25487 to always fail with ENOSYS. Some functions are actually named
25488 something starting with __ and the normal name is an alias. */
25489#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25490choke me
25491#else
25492char (*f) () = $ac_func;
25493#endif
25494#ifdef __cplusplus
25495}
25496#endif
25497
25498int
25499main ()
25500{
25501return f != $ac_func;
25502 ;
25503 return 0;
25504}
25505_ACEOF
25506rm -f conftest.$ac_objext conftest$ac_exeext
25507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25508 (eval $ac_link) 2>conftest.er1
a848cd7e 25509 ac_status=$?
ac1cb8d3
VS
25510 grep -v '^ *+' conftest.er1 >conftest.err
25511 rm -f conftest.er1
25512 cat conftest.err >&5
a848cd7e
SC
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); } &&
9dd0f6c2 25515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25517 (eval $ac_try) 2>&5
25518 ac_status=$?
25519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520 (exit $ac_status); }; } &&
25521 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
25527 eval "$as_ac_var=yes"
25528else
25529 echo "$as_me: failed program was:" >&5
25530sed 's/^/| /' conftest.$ac_ext >&5
25531
25532eval "$as_ac_var=no"
25533fi
ac1cb8d3
VS
25534rm -f conftest.err conftest.$ac_objext \
25535 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25536fi
25537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25538echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25539if test `eval echo '${'$as_ac_var'}'` = yes; then
25540 cat >>confdefs.h <<_ACEOF
25541#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25542_ACEOF
25543
25544fi
25545done
25546
25547 fi
25548
25549 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25550 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25551
25552 AFMINSTALL=afminstall
25553 TOOLKIT=GTK
25554 GUIDIST=GTK_DIST
25555
25556 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25557echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25558if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25559 echo $ECHO_N "(cached) $ECHO_C" >&6
25560else
25561 ac_check_lib_save_LIBS=$LIBS
25562LIBS="-lgdk $LIBS"
25563cat >conftest.$ac_ext <<_ACEOF
25564/* confdefs.h. */
25565_ACEOF
25566cat confdefs.h >>conftest.$ac_ext
25567cat >>conftest.$ac_ext <<_ACEOF
25568/* end confdefs.h. */
25569
25570/* Override any gcc2 internal prototype to avoid an error. */
25571#ifdef __cplusplus
25572extern "C"
25573#endif
25574/* We use char because int might match the return type of a gcc2
25575 builtin and then its argument prototype would still apply. */
25576char gdk_im_open ();
25577int
25578main ()
25579{
25580gdk_im_open ();
25581 ;
25582 return 0;
25583}
25584_ACEOF
25585rm -f conftest.$ac_objext conftest$ac_exeext
25586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25587 (eval $ac_link) 2>conftest.er1
a848cd7e 25588 ac_status=$?
ac1cb8d3
VS
25589 grep -v '^ *+' conftest.er1 >conftest.err
25590 rm -f conftest.er1
25591 cat conftest.err >&5
a848cd7e
SC
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); } &&
9dd0f6c2 25594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25596 (eval $ac_try) 2>&5
25597 ac_status=$?
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); }; } &&
25600 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
25606 ac_cv_lib_gdk_gdk_im_open=yes
25607else
25608 echo "$as_me: failed program was:" >&5
25609sed 's/^/| /' conftest.$ac_ext >&5
25610
25611ac_cv_lib_gdk_gdk_im_open=no
25612fi
ac1cb8d3
VS
25613rm -f conftest.err conftest.$ac_objext \
25614 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25615LIBS=$ac_check_lib_save_LIBS
25616fi
25617echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25618echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25619if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25620 cat >>confdefs.h <<\_ACEOF
25621#define HAVE_XIM 1
25622_ACEOF
25623
25624fi
25625
25626
25627
25628 if test "$wxUSE_GPE" = "yes"; then
25629 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25630echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25631
25632ac_find_libraries=
25633for ac_dir in $SEARCH_LIB /usr/lib;
25634 do
25635 for ac_extension in a so sl dylib; do
25636 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25637 ac_find_libraries=$ac_dir
25638 break 2
25639 fi
25640 done
25641 done
25642
25643 if test "$ac_find_libraries" != "" ; then
25644
25645 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25646 result=$?
25647 if test $result = 0; then
25648 ac_path_to_link=""
25649 else
25650 ac_path_to_link=" -L$ac_find_libraries"
25651 fi
25652
25653 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25654 WXGPE=1
25655 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25656echo "${ECHO_T}found at $ac_find_libraries" >&6
25657 else
25658 echo "$as_me:$LINENO: result: not found" >&5
25659echo "${ECHO_T}not found" >&6
25660 fi
25661
25662 fi
25663 fi
25664
25665 if test "$wxUSE_MGL" = 1; then
25666 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25667echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25668 if test "x$MGL_ROOT" = x ; then
25669 echo "$as_me:$LINENO: result: not found" >&5
25670echo "${ECHO_T}not found" >&6
25671 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25672echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25673 { (exit 1); exit 1; }; }
25674 else
25675 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25676echo "${ECHO_T}$MGL_ROOT" >&6
25677 fi
25678
25679 echo "$as_me:$LINENO: checking for libmgl location" >&5
25680echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25681 case "${host}" in
25682 *-*-linux* )
25683 if test "x$wxUSE_SHARED" = xyes ; then
25684 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25685 else
25686 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25687 fi
25688 ;;
25689 *-pc-msdosdjgpp )
25690 mgl_os_candidates="dos32/dj2"
25691 ;;
25692 *)
25693 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25694echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25695 { (exit 1); exit 1; }; }
25696 esac
25697
25698 mgl_lib_type=""
25699 mgl_os=""
25700
25701 for mgl_os_i in $mgl_os_candidates ; do
25702 if test "x$mgl_os" = x ; then
25703 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25704 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25705 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25706 mgl_lib_type=debug
25707 mgl_os=$mgl_os_i
25708 fi
25709 fi
25710 if test "x$mgl_lib_type" = x ; then
25711 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25712 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25713 mgl_lib_type=release
25714 mgl_os=$mgl_os_i
25715 fi
25716 fi
25717 fi
25718 done
25719
25720 if test "x$mgl_os" = x ; then
25721 echo "$as_me:$LINENO: result: not found" >&5
25722echo "${ECHO_T}not found" >&6
25723 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25724echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25725 { (exit 1); exit 1; }; }
25726 fi
25727 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25728echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25729
25730 wxUSE_UNIVERSAL="yes"
25731
25732 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25733 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25734
25735 AFMINSTALL=afminstall
25736 TOOLKIT=MGL
25737 GUIDIST=MGL_DIST
25738 fi
25739
25740 if test "$wxUSE_MICROWIN" = 1; then
25741 echo "$as_me:$LINENO: checking for MicroWindows" >&5
25742echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25743 if test "x$MICROWINDOWS" = x ; then
25744 echo "$as_me:$LINENO: result: not found" >&5
25745echo "${ECHO_T}not found" >&6
25746 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25747echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25748 { (exit 1); exit 1; }; }
25749 else
25750 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25751echo "${ECHO_T}$MICROWINDOWS" >&6
25752 fi
25753
25754 if test -f $MICROWINDOWS/lib/libmwin.a; then
25755 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25756echo "${ECHO_T}MicroWindows' libraries found." >&6
25757 else
25758 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25759echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25760 { (exit 1); exit 1; }; }
25761 fi
25762
25763 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25764 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25765
25766 wxUSE_UNIVERSAL="yes"
25767
25768 AFMINSTALL=afminstall
25769 TOOLKIT=MICROWIN
25770 GUIDIST=MICROWIN_DIST
25771
25772 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25773 fi
25774
74b84332 25775 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
9dd0f6c2
DE
25776
25777if test "x$ac_path_x_has_been_run" != xyes; then
25778 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
25779echo $ECHO_N "checking for X... $ECHO_C" >&6
25780
9dd0f6c2 25781ac_path_x_has_been_run=yes
a848cd7e
SC
25782
25783# Check whether --with-x or --without-x was given.
25784if test "${with_x+set}" = set; then
25785 withval="$with_x"
25786
25787fi;
25788# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25789if test "x$with_x" = xno; then
25790 # The user explicitly disabled X.
25791 have_x=disabled
25792else
25793 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25794 # Both variables are already set.
25795 have_x=yes
25796 else
25797 if test "${ac_cv_have_x+set}" = set; then
25798 echo $ECHO_N "(cached) $ECHO_C" >&6
25799else
25800 # One or both of the vars are not set, and there is no cached value.
25801ac_x_includes=no ac_x_libraries=no
25802rm -fr conftest.dir
25803if mkdir conftest.dir; then
25804 cd conftest.dir
25805 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25806 cat >Imakefile <<'_ACEOF'
25807acfindx:
25808 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25809_ACEOF
25810 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25812 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25813 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25814 for ac_extension in a so sl; do
25815 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
25816 test -f $ac_im_libdir/libX11.$ac_extension; then
25817 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
25818 fi
25819 done
25820 # Screen out bogus values from the imake configuration. They are
25821 # bogus both because they are the default anyway, and because
25822 # using them would break gcc on systems where it needs fixed includes.
25823 case $ac_im_incroot in
25824 /usr/include) ;;
25825 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25826 esac
25827 case $ac_im_usrlibdir in
25828 /usr/lib | /lib) ;;
25829 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25830 esac
25831 fi
25832 cd ..
25833 rm -fr conftest.dir
25834fi
25835
25836# Standard set of common directories for X headers.
25837# Check X11 before X11Rn because it is often a symlink to the current release.
25838ac_x_header_dirs='
25839/usr/X11/include
25840/usr/X11R6/include
25841/usr/X11R5/include
25842/usr/X11R4/include
25843
25844/usr/include/X11
25845/usr/include/X11R6
25846/usr/include/X11R5
25847/usr/include/X11R4
25848
25849/usr/local/X11/include
25850/usr/local/X11R6/include
25851/usr/local/X11R5/include
25852/usr/local/X11R4/include
25853
25854/usr/local/include/X11
25855/usr/local/include/X11R6
25856/usr/local/include/X11R5
25857/usr/local/include/X11R4
25858
25859/usr/X386/include
25860/usr/x386/include
25861/usr/XFree86/include/X11
25862
25863/usr/include
25864/usr/local/include
25865/usr/unsupported/include
25866/usr/athena/include
25867/usr/local/x11r5/include
25868/usr/lpp/Xamples/include
25869
25870/usr/openwin/include
25871/usr/openwin/share/include'
25872
25873if test "$ac_x_includes" = no; then
9dd0f6c2 25874 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
25875 # First, try using that file with no special directory specified.
25876 cat >conftest.$ac_ext <<_ACEOF
25877/* confdefs.h. */
25878_ACEOF
25879cat confdefs.h >>conftest.$ac_ext
25880cat >>conftest.$ac_ext <<_ACEOF
25881/* end confdefs.h. */
25882#include <X11/Intrinsic.h>
25883_ACEOF
25884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25886 ac_status=$?
25887 grep -v '^ *+' conftest.er1 >conftest.err
25888 rm -f conftest.er1
25889 cat conftest.err >&5
25890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891 (exit $ac_status); } >/dev/null; then
25892 if test -s conftest.err; then
25893 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25895 else
25896 ac_cpp_err=
25897 fi
25898else
25899 ac_cpp_err=yes
25900fi
25901if test -z "$ac_cpp_err"; then
25902 # We can compile using X headers with no special include directory.
25903ac_x_includes=
25904else
25905 echo "$as_me: failed program was:" >&5
25906sed 's/^/| /' conftest.$ac_ext >&5
25907
25908 for ac_dir in $ac_x_header_dirs; do
25909 if test -r "$ac_dir/X11/Intrinsic.h"; then
25910 ac_x_includes=$ac_dir
25911 break
25912 fi
25913done
25914fi
25915rm -f conftest.err conftest.$ac_ext
25916fi # $ac_x_includes = no
25917
25918if test "$ac_x_libraries" = no; then
25919 # Check for the libraries.
25920 # See if we find them without any special options.
25921 # Don't add to $LIBS permanently.
25922 ac_save_LIBS=$LIBS
25923 LIBS="-lXt $LIBS"
25924 cat >conftest.$ac_ext <<_ACEOF
25925/* confdefs.h. */
25926_ACEOF
25927cat confdefs.h >>conftest.$ac_ext
25928cat >>conftest.$ac_ext <<_ACEOF
25929/* end confdefs.h. */
25930#include <X11/Intrinsic.h>
25931int
25932main ()
25933{
25934XtMalloc (0)
25935 ;
25936 return 0;
25937}
25938_ACEOF
25939rm -f conftest.$ac_objext conftest$ac_exeext
25940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25941 (eval $ac_link) 2>conftest.er1
a848cd7e 25942 ac_status=$?
ac1cb8d3
VS
25943 grep -v '^ *+' conftest.er1 >conftest.err
25944 rm -f conftest.er1
25945 cat conftest.err >&5
a848cd7e
SC
25946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); } &&
9dd0f6c2 25948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25950 (eval $ac_try) 2>&5
25951 ac_status=$?
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); }; } &&
25954 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
25960 LIBS=$ac_save_LIBS
25961# We can link X programs with no special library path.
25962ac_x_libraries=
25963else
25964 echo "$as_me: failed program was:" >&5
25965sed 's/^/| /' conftest.$ac_ext >&5
25966
25967LIBS=$ac_save_LIBS
25968for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25969do
25970 # Don't even attempt the hair of trying to link an X program!
25971 for ac_extension in a so sl; do
25972 if test -r $ac_dir/libXt.$ac_extension; then
25973 ac_x_libraries=$ac_dir
25974 break 2
25975 fi
25976 done
25977done
25978fi
ac1cb8d3
VS
25979rm -f conftest.err conftest.$ac_objext \
25980 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25981fi # $ac_x_libraries = no
25982
25983if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25984 # Didn't find X anywhere. Cache the known absence of X.
25985 ac_cv_have_x="have_x=no"
25986else
25987 # Record where we found X for the cache.
25988 ac_cv_have_x="have_x=yes \
ac1cb8d3 25989 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
25990fi
25991fi
25992
25993 fi
25994 eval "$ac_cv_have_x"
25995fi # $with_x != no
25996
25997if test "$have_x" != yes; then
25998 echo "$as_me:$LINENO: result: $have_x" >&5
25999echo "${ECHO_T}$have_x" >&6
26000 no_x=yes
26001else
26002 # If each of the values was on the command line, it overrides each guess.
26003 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26004 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26005 # Update the cache value to reflect the command line values.
26006 ac_cv_have_x="have_x=yes \
26007 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9dd0f6c2
DE
26008 # It might be that x_includes is empty (headers are found in the
26009 # standard search path. Then output the corresponding message
26010 ac_out_x_includes=$x_includes
26011 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26012 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26013echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26014fi
26015
9dd0f6c2 26016fi
a848cd7e
SC
26017if test "$no_x" = yes; then
26018 # Not all programs may use this symbol, but it does not hurt to define it.
26019
26020cat >>confdefs.h <<\_ACEOF
26021#define X_DISPLAY_MISSING 1
26022_ACEOF
26023
26024 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26025else
26026 if test -n "$x_includes"; then
26027 X_CFLAGS="$X_CFLAGS -I$x_includes"
26028 fi
26029
26030 # It would also be nice to do this for all -L options, not just this one.
26031 if test -n "$x_libraries"; then
26032 X_LIBS="$X_LIBS -L$x_libraries"
26033 # For Solaris; some versions of Sun CC require a space after -R and
26034 # others require no space. Words are not sufficient . . . .
26035 case `(uname -sr) 2>/dev/null` in
26036 "SunOS 5"*)
26037 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26038echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26039 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26040 cat >conftest.$ac_ext <<_ACEOF
26041/* confdefs.h. */
26042_ACEOF
26043cat confdefs.h >>conftest.$ac_ext
26044cat >>conftest.$ac_ext <<_ACEOF
26045/* end confdefs.h. */
26046
26047int
26048main ()
26049{
26050
26051 ;
26052 return 0;
26053}
26054_ACEOF
26055rm -f conftest.$ac_objext conftest$ac_exeext
26056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26057 (eval $ac_link) 2>conftest.er1
a848cd7e 26058 ac_status=$?
ac1cb8d3
VS
26059 grep -v '^ *+' conftest.er1 >conftest.err
26060 rm -f conftest.er1
26061 cat conftest.err >&5
a848cd7e
SC
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); } &&
9dd0f6c2 26064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26066 (eval $ac_try) 2>&5
26067 ac_status=$?
26068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); }; } &&
26070 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
26076 ac_R_nospace=yes
26077else
26078 echo "$as_me: failed program was:" >&5
26079sed 's/^/| /' conftest.$ac_ext >&5
26080
26081ac_R_nospace=no
26082fi
ac1cb8d3
VS
26083rm -f conftest.err conftest.$ac_objext \
26084 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26085 if test $ac_R_nospace = yes; then
26086 echo "$as_me:$LINENO: result: no" >&5
26087echo "${ECHO_T}no" >&6
26088 X_LIBS="$X_LIBS -R$x_libraries"
26089 else
26090 LIBS="$ac_xsave_LIBS -R $x_libraries"
26091 cat >conftest.$ac_ext <<_ACEOF
26092/* confdefs.h. */
26093_ACEOF
26094cat confdefs.h >>conftest.$ac_ext
26095cat >>conftest.$ac_ext <<_ACEOF
26096/* end confdefs.h. */
26097
26098int
26099main ()
26100{
26101
26102 ;
26103 return 0;
26104}
26105_ACEOF
26106rm -f conftest.$ac_objext conftest$ac_exeext
26107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26108 (eval $ac_link) 2>conftest.er1
a848cd7e 26109 ac_status=$?
ac1cb8d3
VS
26110 grep -v '^ *+' conftest.er1 >conftest.err
26111 rm -f conftest.er1
26112 cat conftest.err >&5
a848cd7e
SC
26113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114 (exit $ac_status); } &&
9dd0f6c2 26115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26117 (eval $ac_try) 2>&5
26118 ac_status=$?
26119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120 (exit $ac_status); }; } &&
26121 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
26127 ac_R_space=yes
26128else
26129 echo "$as_me: failed program was:" >&5
26130sed 's/^/| /' conftest.$ac_ext >&5
26131
26132ac_R_space=no
26133fi
ac1cb8d3
VS
26134rm -f conftest.err conftest.$ac_objext \
26135 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26136 if test $ac_R_space = yes; then
26137 echo "$as_me:$LINENO: result: yes" >&5
26138echo "${ECHO_T}yes" >&6
26139 X_LIBS="$X_LIBS -R $x_libraries"
26140 else
26141 echo "$as_me:$LINENO: result: neither works" >&5
26142echo "${ECHO_T}neither works" >&6
26143 fi
26144 fi
26145 LIBS=$ac_xsave_LIBS
26146 esac
26147 fi
26148
26149 # Check for system-dependent libraries X programs must link with.
26150 # Do this before checking for the system-independent R6 libraries
26151 # (-lICE), since we may need -lsocket or whatever for X linking.
26152
26153 if test "$ISC" = yes; then
26154 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26155 else
26156 # Martyn Johnson says this is needed for Ultrix, if the X
26157 # libraries were built with DECnet support. And Karl Berry says
26158 # the Alpha needs dnet_stub (dnet does not exist).
26159 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26160 cat >conftest.$ac_ext <<_ACEOF
26161/* confdefs.h. */
26162_ACEOF
26163cat confdefs.h >>conftest.$ac_ext
26164cat >>conftest.$ac_ext <<_ACEOF
26165/* end confdefs.h. */
26166
26167/* Override any gcc2 internal prototype to avoid an error. */
26168#ifdef __cplusplus
26169extern "C"
26170#endif
26171/* We use char because int might match the return type of a gcc2
26172 builtin and then its argument prototype would still apply. */
26173char XOpenDisplay ();
26174int
26175main ()
26176{
26177XOpenDisplay ();
26178 ;
26179 return 0;
26180}
26181_ACEOF
26182rm -f conftest.$ac_objext conftest$ac_exeext
26183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26184 (eval $ac_link) 2>conftest.er1
a848cd7e 26185 ac_status=$?
ac1cb8d3
VS
26186 grep -v '^ *+' conftest.er1 >conftest.err
26187 rm -f conftest.er1
26188 cat conftest.err >&5
a848cd7e
SC
26189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190 (exit $ac_status); } &&
9dd0f6c2 26191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26193 (eval $ac_try) 2>&5
26194 ac_status=$?
26195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196 (exit $ac_status); }; } &&
26197 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
26203 :
26204else
26205 echo "$as_me: failed program was:" >&5
26206sed 's/^/| /' conftest.$ac_ext >&5
26207
26208echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26209echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26210if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26211 echo $ECHO_N "(cached) $ECHO_C" >&6
26212else
26213 ac_check_lib_save_LIBS=$LIBS
26214LIBS="-ldnet $LIBS"
26215cat >conftest.$ac_ext <<_ACEOF
26216/* confdefs.h. */
26217_ACEOF
26218cat confdefs.h >>conftest.$ac_ext
26219cat >>conftest.$ac_ext <<_ACEOF
26220/* end confdefs.h. */
26221
26222/* Override any gcc2 internal prototype to avoid an error. */
26223#ifdef __cplusplus
26224extern "C"
26225#endif
26226/* We use char because int might match the return type of a gcc2
26227 builtin and then its argument prototype would still apply. */
26228char dnet_ntoa ();
26229int
26230main ()
26231{
26232dnet_ntoa ();
26233 ;
26234 return 0;
26235}
26236_ACEOF
26237rm -f conftest.$ac_objext conftest$ac_exeext
26238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26239 (eval $ac_link) 2>conftest.er1
a848cd7e 26240 ac_status=$?
ac1cb8d3
VS
26241 grep -v '^ *+' conftest.er1 >conftest.err
26242 rm -f conftest.er1
26243 cat conftest.err >&5
a848cd7e
SC
26244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245 (exit $ac_status); } &&
9dd0f6c2 26246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26248 (eval $ac_try) 2>&5
26249 ac_status=$?
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); }; } &&
26252 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
26258 ac_cv_lib_dnet_dnet_ntoa=yes
26259else
26260 echo "$as_me: failed program was:" >&5
26261sed 's/^/| /' conftest.$ac_ext >&5
26262
26263ac_cv_lib_dnet_dnet_ntoa=no
26264fi
ac1cb8d3
VS
26265rm -f conftest.err conftest.$ac_objext \
26266 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26267LIBS=$ac_check_lib_save_LIBS
26268fi
26269echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26270echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26271if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26272 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26273fi
26274
26275 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26276 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26277echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26278if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26279 echo $ECHO_N "(cached) $ECHO_C" >&6
26280else
26281 ac_check_lib_save_LIBS=$LIBS
26282LIBS="-ldnet_stub $LIBS"
26283cat >conftest.$ac_ext <<_ACEOF
26284/* confdefs.h. */
26285_ACEOF
26286cat confdefs.h >>conftest.$ac_ext
26287cat >>conftest.$ac_ext <<_ACEOF
26288/* end confdefs.h. */
26289
26290/* Override any gcc2 internal prototype to avoid an error. */
26291#ifdef __cplusplus
26292extern "C"
26293#endif
26294/* We use char because int might match the return type of a gcc2
26295 builtin and then its argument prototype would still apply. */
26296char dnet_ntoa ();
26297int
26298main ()
26299{
26300dnet_ntoa ();
26301 ;
26302 return 0;
26303}
26304_ACEOF
26305rm -f conftest.$ac_objext conftest$ac_exeext
26306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26307 (eval $ac_link) 2>conftest.er1
a848cd7e 26308 ac_status=$?
ac1cb8d3
VS
26309 grep -v '^ *+' conftest.er1 >conftest.err
26310 rm -f conftest.er1
26311 cat conftest.err >&5
a848cd7e
SC
26312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313 (exit $ac_status); } &&
9dd0f6c2 26314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26316 (eval $ac_try) 2>&5
26317 ac_status=$?
26318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319 (exit $ac_status); }; } &&
26320 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26322 (eval $ac_try) 2>&5
26323 ac_status=$?
26324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); }; }; then
26326 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26327else
26328 echo "$as_me: failed program was:" >&5
26329sed 's/^/| /' conftest.$ac_ext >&5
26330
26331ac_cv_lib_dnet_stub_dnet_ntoa=no
26332fi
ac1cb8d3
VS
26333rm -f conftest.err conftest.$ac_objext \
26334 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26335LIBS=$ac_check_lib_save_LIBS
26336fi
26337echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26338echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26339if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26340 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26341fi
26342
26343 fi
26344fi
ac1cb8d3
VS
26345rm -f conftest.err conftest.$ac_objext \
26346 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26347 LIBS="$ac_xsave_LIBS"
26348
26349 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26350 # to get the SysV transport functions.
26351 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26352 # needs -lnsl.
26353 # The nsl library prevents programs from opening the X display
26354 # on Irix 5.2, according to T.E. Dickey.
26355 # The functions gethostbyname, getservbyname, and inet_addr are
26356 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26357 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26358echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26359if test "${ac_cv_func_gethostbyname+set}" = set; then
26360 echo $ECHO_N "(cached) $ECHO_C" >&6
26361else
26362 cat >conftest.$ac_ext <<_ACEOF
26363/* confdefs.h. */
26364_ACEOF
26365cat confdefs.h >>conftest.$ac_ext
26366cat >>conftest.$ac_ext <<_ACEOF
26367/* end confdefs.h. */
ac1cb8d3
VS
26368/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26370#define gethostbyname innocuous_gethostbyname
26371
a848cd7e
SC
26372/* System header to define __stub macros and hopefully few prototypes,
26373 which can conflict with char gethostbyname (); below.
26374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26375 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26376
a848cd7e
SC
26377#ifdef __STDC__
26378# include <limits.h>
26379#else
26380# include <assert.h>
26381#endif
ac1cb8d3
VS
26382
26383#undef gethostbyname
26384
a848cd7e
SC
26385/* Override any gcc2 internal prototype to avoid an error. */
26386#ifdef __cplusplus
26387extern "C"
26388{
26389#endif
26390/* We use char because int might match the return type of a gcc2
26391 builtin and then its argument prototype would still apply. */
26392char gethostbyname ();
26393/* The GNU C library defines this for functions which it implements
26394 to always fail with ENOSYS. Some functions are actually named
26395 something starting with __ and the normal name is an alias. */
26396#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26397choke me
26398#else
26399char (*f) () = gethostbyname;
26400#endif
26401#ifdef __cplusplus
26402}
26403#endif
26404
26405int
26406main ()
26407{
26408return f != gethostbyname;
26409 ;
26410 return 0;
26411}
26412_ACEOF
26413rm -f conftest.$ac_objext conftest$ac_exeext
26414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26415 (eval $ac_link) 2>conftest.er1
a848cd7e 26416 ac_status=$?
ac1cb8d3
VS
26417 grep -v '^ *+' conftest.er1 >conftest.err
26418 rm -f conftest.er1
26419 cat conftest.err >&5
a848cd7e
SC
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); } &&
9dd0f6c2 26422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26424 (eval $ac_try) 2>&5
26425 ac_status=$?
26426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26427 (exit $ac_status); }; } &&
26428 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
26434 ac_cv_func_gethostbyname=yes
26435else
26436 echo "$as_me: failed program was:" >&5
26437sed 's/^/| /' conftest.$ac_ext >&5
26438
26439ac_cv_func_gethostbyname=no
26440fi
ac1cb8d3
VS
26441rm -f conftest.err conftest.$ac_objext \
26442 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26443fi
26444echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26445echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26446
26447 if test $ac_cv_func_gethostbyname = no; then
26448 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26449echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26450if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26451 echo $ECHO_N "(cached) $ECHO_C" >&6
26452else
26453 ac_check_lib_save_LIBS=$LIBS
26454LIBS="-lnsl $LIBS"
26455cat >conftest.$ac_ext <<_ACEOF
26456/* confdefs.h. */
26457_ACEOF
26458cat confdefs.h >>conftest.$ac_ext
26459cat >>conftest.$ac_ext <<_ACEOF
26460/* end confdefs.h. */
26461
26462/* Override any gcc2 internal prototype to avoid an error. */
26463#ifdef __cplusplus
26464extern "C"
26465#endif
26466/* We use char because int might match the return type of a gcc2
26467 builtin and then its argument prototype would still apply. */
26468char gethostbyname ();
26469int
26470main ()
26471{
26472gethostbyname ();
26473 ;
26474 return 0;
26475}
26476_ACEOF
26477rm -f conftest.$ac_objext conftest$ac_exeext
26478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26479 (eval $ac_link) 2>conftest.er1
26480 ac_status=$?
26481 grep -v '^ *+' conftest.er1 >conftest.err
26482 rm -f conftest.er1
26483 cat conftest.err >&5
26484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); } &&
9dd0f6c2 26486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26488 (eval $ac_try) 2>&5
26489 ac_status=$?
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); }; } &&
26492 { ac_try='test -s conftest$ac_exeext'
26493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26494 (eval $ac_try) 2>&5
26495 ac_status=$?
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); }; }; then
26498 ac_cv_lib_nsl_gethostbyname=yes
26499else
26500 echo "$as_me: failed program was:" >&5
26501sed 's/^/| /' conftest.$ac_ext >&5
26502
26503ac_cv_lib_nsl_gethostbyname=no
26504fi
26505rm -f conftest.err conftest.$ac_objext \
26506 conftest$ac_exeext conftest.$ac_ext
26507LIBS=$ac_check_lib_save_LIBS
26508fi
26509echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26510echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26511if test $ac_cv_lib_nsl_gethostbyname = yes; then
26512 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26513fi
26514
26515 if test $ac_cv_lib_nsl_gethostbyname = no; then
26516 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26517echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26518if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26519 echo $ECHO_N "(cached) $ECHO_C" >&6
26520else
26521 ac_check_lib_save_LIBS=$LIBS
26522LIBS="-lbsd $LIBS"
26523cat >conftest.$ac_ext <<_ACEOF
26524/* confdefs.h. */
26525_ACEOF
26526cat confdefs.h >>conftest.$ac_ext
26527cat >>conftest.$ac_ext <<_ACEOF
26528/* end confdefs.h. */
26529
26530/* Override any gcc2 internal prototype to avoid an error. */
26531#ifdef __cplusplus
26532extern "C"
26533#endif
26534/* We use char because int might match the return type of a gcc2
26535 builtin and then its argument prototype would still apply. */
26536char gethostbyname ();
26537int
26538main ()
26539{
26540gethostbyname ();
26541 ;
26542 return 0;
26543}
26544_ACEOF
26545rm -f conftest.$ac_objext conftest$ac_exeext
26546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26547 (eval $ac_link) 2>conftest.er1
a848cd7e 26548 ac_status=$?
ac1cb8d3
VS
26549 grep -v '^ *+' conftest.er1 >conftest.err
26550 rm -f conftest.er1
26551 cat conftest.err >&5
a848cd7e
SC
26552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26553 (exit $ac_status); } &&
9dd0f6c2 26554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26556 (eval $ac_try) 2>&5
26557 ac_status=$?
26558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26559 (exit $ac_status); }; } &&
26560 { ac_try='test -s conftest$ac_exeext'
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
26565 (exit $ac_status); }; }; then
26566 ac_cv_lib_bsd_gethostbyname=yes
26567else
26568 echo "$as_me: failed program was:" >&5
26569sed 's/^/| /' conftest.$ac_ext >&5
26570
26571ac_cv_lib_bsd_gethostbyname=no
26572fi
ac1cb8d3
VS
26573rm -f conftest.err conftest.$ac_objext \
26574 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26575LIBS=$ac_check_lib_save_LIBS
26576fi
26577echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26578echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26579if test $ac_cv_lib_bsd_gethostbyname = yes; then
26580 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26581fi
26582
26583 fi
26584 fi
26585
26586 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26587 # socket/setsockopt and other routines are undefined under SCO ODT
26588 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26589 # on later versions), says Simon Leinen: it contains gethostby*
26590 # variants that don't use the name server (or something). -lsocket
26591 # must be given before -lnsl if both are needed. We assume that
26592 # if connect needs -lnsl, so does gethostbyname.
26593 echo "$as_me:$LINENO: checking for connect" >&5
26594echo $ECHO_N "checking for connect... $ECHO_C" >&6
26595if test "${ac_cv_func_connect+set}" = set; then
26596 echo $ECHO_N "(cached) $ECHO_C" >&6
26597else
26598 cat >conftest.$ac_ext <<_ACEOF
26599/* confdefs.h. */
26600_ACEOF
26601cat confdefs.h >>conftest.$ac_ext
26602cat >>conftest.$ac_ext <<_ACEOF
26603/* end confdefs.h. */
ac1cb8d3
VS
26604/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26606#define connect innocuous_connect
26607
a848cd7e
SC
26608/* System header to define __stub macros and hopefully few prototypes,
26609 which can conflict with char connect (); below.
26610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26611 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26612
a848cd7e
SC
26613#ifdef __STDC__
26614# include <limits.h>
26615#else
26616# include <assert.h>
26617#endif
ac1cb8d3
VS
26618
26619#undef connect
26620
a848cd7e
SC
26621/* Override any gcc2 internal prototype to avoid an error. */
26622#ifdef __cplusplus
26623extern "C"
26624{
26625#endif
26626/* We use char because int might match the return type of a gcc2
26627 builtin and then its argument prototype would still apply. */
26628char connect ();
26629/* The GNU C library defines this for functions which it implements
26630 to always fail with ENOSYS. Some functions are actually named
26631 something starting with __ and the normal name is an alias. */
26632#if defined (__stub_connect) || defined (__stub___connect)
26633choke me
26634#else
26635char (*f) () = connect;
26636#endif
26637#ifdef __cplusplus
26638}
26639#endif
26640
26641int
26642main ()
26643{
26644return f != connect;
26645 ;
26646 return 0;
26647}
26648_ACEOF
26649rm -f conftest.$ac_objext conftest$ac_exeext
26650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26651 (eval $ac_link) 2>conftest.er1
a848cd7e 26652 ac_status=$?
ac1cb8d3
VS
26653 grep -v '^ *+' conftest.er1 >conftest.err
26654 rm -f conftest.er1
26655 cat conftest.err >&5
a848cd7e
SC
26656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657 (exit $ac_status); } &&
9dd0f6c2 26658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26660 (eval $ac_try) 2>&5
26661 ac_status=$?
26662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663 (exit $ac_status); }; } &&
26664 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
26670 ac_cv_func_connect=yes
26671else
26672 echo "$as_me: failed program was:" >&5
26673sed 's/^/| /' conftest.$ac_ext >&5
26674
26675ac_cv_func_connect=no
26676fi
ac1cb8d3
VS
26677rm -f conftest.err conftest.$ac_objext \
26678 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26679fi
26680echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26681echo "${ECHO_T}$ac_cv_func_connect" >&6
26682
26683 if test $ac_cv_func_connect = no; then
26684 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26685echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26686if test "${ac_cv_lib_socket_connect+set}" = set; then
26687 echo $ECHO_N "(cached) $ECHO_C" >&6
26688else
26689 ac_check_lib_save_LIBS=$LIBS
26690LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26691cat >conftest.$ac_ext <<_ACEOF
26692/* confdefs.h. */
26693_ACEOF
26694cat confdefs.h >>conftest.$ac_ext
26695cat >>conftest.$ac_ext <<_ACEOF
26696/* end confdefs.h. */
26697
26698/* Override any gcc2 internal prototype to avoid an error. */
26699#ifdef __cplusplus
26700extern "C"
26701#endif
26702/* We use char because int might match the return type of a gcc2
26703 builtin and then its argument prototype would still apply. */
26704char connect ();
26705int
26706main ()
26707{
26708connect ();
26709 ;
26710 return 0;
26711}
26712_ACEOF
26713rm -f conftest.$ac_objext conftest$ac_exeext
26714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26715 (eval $ac_link) 2>conftest.er1
a848cd7e 26716 ac_status=$?
ac1cb8d3
VS
26717 grep -v '^ *+' conftest.er1 >conftest.err
26718 rm -f conftest.er1
26719 cat conftest.err >&5
a848cd7e
SC
26720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721 (exit $ac_status); } &&
9dd0f6c2 26722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26724 (eval $ac_try) 2>&5
26725 ac_status=$?
26726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727 (exit $ac_status); }; } &&
26728 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
26734 ac_cv_lib_socket_connect=yes
26735else
26736 echo "$as_me: failed program was:" >&5
26737sed 's/^/| /' conftest.$ac_ext >&5
26738
26739ac_cv_lib_socket_connect=no
26740fi
ac1cb8d3
VS
26741rm -f conftest.err conftest.$ac_objext \
26742 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26743LIBS=$ac_check_lib_save_LIBS
26744fi
26745echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26746echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26747if test $ac_cv_lib_socket_connect = yes; then
26748 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26749fi
26750
26751 fi
26752
26753 # Guillermo Gomez says -lposix is necessary on A/UX.
26754 echo "$as_me:$LINENO: checking for remove" >&5
26755echo $ECHO_N "checking for remove... $ECHO_C" >&6
26756if test "${ac_cv_func_remove+set}" = set; then
26757 echo $ECHO_N "(cached) $ECHO_C" >&6
26758else
26759 cat >conftest.$ac_ext <<_ACEOF
26760/* confdefs.h. */
26761_ACEOF
26762cat confdefs.h >>conftest.$ac_ext
26763cat >>conftest.$ac_ext <<_ACEOF
26764/* end confdefs.h. */
ac1cb8d3
VS
26765/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26767#define remove innocuous_remove
26768
a848cd7e
SC
26769/* System header to define __stub macros and hopefully few prototypes,
26770 which can conflict with char remove (); below.
26771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26772 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26773
a848cd7e
SC
26774#ifdef __STDC__
26775# include <limits.h>
26776#else
26777# include <assert.h>
26778#endif
ac1cb8d3
VS
26779
26780#undef remove
26781
a848cd7e
SC
26782/* Override any gcc2 internal prototype to avoid an error. */
26783#ifdef __cplusplus
26784extern "C"
26785{
26786#endif
26787/* We use char because int might match the return type of a gcc2
26788 builtin and then its argument prototype would still apply. */
26789char remove ();
26790/* The GNU C library defines this for functions which it implements
26791 to always fail with ENOSYS. Some functions are actually named
26792 something starting with __ and the normal name is an alias. */
26793#if defined (__stub_remove) || defined (__stub___remove)
26794choke me
26795#else
26796char (*f) () = remove;
26797#endif
26798#ifdef __cplusplus
26799}
26800#endif
26801
26802int
26803main ()
26804{
26805return f != remove;
26806 ;
26807 return 0;
26808}
26809_ACEOF
26810rm -f conftest.$ac_objext conftest$ac_exeext
26811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26812 (eval $ac_link) 2>conftest.er1
a848cd7e 26813 ac_status=$?
ac1cb8d3
VS
26814 grep -v '^ *+' conftest.er1 >conftest.err
26815 rm -f conftest.er1
26816 cat conftest.err >&5
a848cd7e
SC
26817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818 (exit $ac_status); } &&
9dd0f6c2 26819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26821 (eval $ac_try) 2>&5
26822 ac_status=$?
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); }; } &&
26825 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
26831 ac_cv_func_remove=yes
26832else
26833 echo "$as_me: failed program was:" >&5
26834sed 's/^/| /' conftest.$ac_ext >&5
26835
26836ac_cv_func_remove=no
26837fi
ac1cb8d3
VS
26838rm -f conftest.err conftest.$ac_objext \
26839 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26840fi
26841echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26842echo "${ECHO_T}$ac_cv_func_remove" >&6
26843
26844 if test $ac_cv_func_remove = no; then
26845 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26846echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26847if test "${ac_cv_lib_posix_remove+set}" = set; then
26848 echo $ECHO_N "(cached) $ECHO_C" >&6
26849else
26850 ac_check_lib_save_LIBS=$LIBS
26851LIBS="-lposix $LIBS"
26852cat >conftest.$ac_ext <<_ACEOF
26853/* confdefs.h. */
26854_ACEOF
26855cat confdefs.h >>conftest.$ac_ext
26856cat >>conftest.$ac_ext <<_ACEOF
26857/* end confdefs.h. */
26858
26859/* Override any gcc2 internal prototype to avoid an error. */
26860#ifdef __cplusplus
26861extern "C"
26862#endif
26863/* We use char because int might match the return type of a gcc2
26864 builtin and then its argument prototype would still apply. */
26865char remove ();
26866int
26867main ()
26868{
26869remove ();
26870 ;
26871 return 0;
26872}
26873_ACEOF
26874rm -f conftest.$ac_objext conftest$ac_exeext
26875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26876 (eval $ac_link) 2>conftest.er1
a848cd7e 26877 ac_status=$?
ac1cb8d3
VS
26878 grep -v '^ *+' conftest.er1 >conftest.err
26879 rm -f conftest.er1
26880 cat conftest.err >&5
a848cd7e
SC
26881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882 (exit $ac_status); } &&
9dd0f6c2 26883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26885 (eval $ac_try) 2>&5
26886 ac_status=$?
26887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888 (exit $ac_status); }; } &&
26889 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
26895 ac_cv_lib_posix_remove=yes
26896else
26897 echo "$as_me: failed program was:" >&5
26898sed 's/^/| /' conftest.$ac_ext >&5
26899
26900ac_cv_lib_posix_remove=no
26901fi
ac1cb8d3
VS
26902rm -f conftest.err conftest.$ac_objext \
26903 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26904LIBS=$ac_check_lib_save_LIBS
26905fi
26906echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26907echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26908if test $ac_cv_lib_posix_remove = yes; then
26909 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26910fi
26911
26912 fi
26913
26914 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26915 echo "$as_me:$LINENO: checking for shmat" >&5
26916echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26917if test "${ac_cv_func_shmat+set}" = set; then
26918 echo $ECHO_N "(cached) $ECHO_C" >&6
26919else
26920 cat >conftest.$ac_ext <<_ACEOF
26921/* confdefs.h. */
26922_ACEOF
26923cat confdefs.h >>conftest.$ac_ext
26924cat >>conftest.$ac_ext <<_ACEOF
26925/* end confdefs.h. */
ac1cb8d3
VS
26926/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26928#define shmat innocuous_shmat
26929
a848cd7e
SC
26930/* System header to define __stub macros and hopefully few prototypes,
26931 which can conflict with char shmat (); below.
26932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26933 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26934
a848cd7e
SC
26935#ifdef __STDC__
26936# include <limits.h>
26937#else
26938# include <assert.h>
26939#endif
ac1cb8d3
VS
26940
26941#undef shmat
26942
a848cd7e
SC
26943/* Override any gcc2 internal prototype to avoid an error. */
26944#ifdef __cplusplus
26945extern "C"
26946{
26947#endif
26948/* We use char because int might match the return type of a gcc2
26949 builtin and then its argument prototype would still apply. */
26950char shmat ();
26951/* The GNU C library defines this for functions which it implements
26952 to always fail with ENOSYS. Some functions are actually named
26953 something starting with __ and the normal name is an alias. */
26954#if defined (__stub_shmat) || defined (__stub___shmat)
26955choke me
26956#else
26957char (*f) () = shmat;
26958#endif
26959#ifdef __cplusplus
26960}
26961#endif
26962
26963int
26964main ()
26965{
26966return f != shmat;
26967 ;
26968 return 0;
26969}
26970_ACEOF
26971rm -f conftest.$ac_objext conftest$ac_exeext
26972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26973 (eval $ac_link) 2>conftest.er1
a848cd7e 26974 ac_status=$?
ac1cb8d3
VS
26975 grep -v '^ *+' conftest.er1 >conftest.err
26976 rm -f conftest.er1
26977 cat conftest.err >&5
a848cd7e
SC
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); } &&
9dd0f6c2 26980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26982 (eval $ac_try) 2>&5
26983 ac_status=$?
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); }; } &&
26986 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
26992 ac_cv_func_shmat=yes
26993else
26994 echo "$as_me: failed program was:" >&5
26995sed 's/^/| /' conftest.$ac_ext >&5
26996
26997ac_cv_func_shmat=no
26998fi
ac1cb8d3
VS
26999rm -f conftest.err conftest.$ac_objext \
27000 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27001fi
27002echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27003echo "${ECHO_T}$ac_cv_func_shmat" >&6
27004
27005 if test $ac_cv_func_shmat = no; then
27006 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27007echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27008if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27009 echo $ECHO_N "(cached) $ECHO_C" >&6
27010else
27011 ac_check_lib_save_LIBS=$LIBS
27012LIBS="-lipc $LIBS"
27013cat >conftest.$ac_ext <<_ACEOF
27014/* confdefs.h. */
27015_ACEOF
27016cat confdefs.h >>conftest.$ac_ext
27017cat >>conftest.$ac_ext <<_ACEOF
27018/* end confdefs.h. */
27019
27020/* Override any gcc2 internal prototype to avoid an error. */
27021#ifdef __cplusplus
27022extern "C"
27023#endif
27024/* We use char because int might match the return type of a gcc2
27025 builtin and then its argument prototype would still apply. */
27026char shmat ();
27027int
27028main ()
27029{
27030shmat ();
27031 ;
27032 return 0;
27033}
27034_ACEOF
27035rm -f conftest.$ac_objext conftest$ac_exeext
27036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27037 (eval $ac_link) 2>conftest.er1
a848cd7e 27038 ac_status=$?
ac1cb8d3
VS
27039 grep -v '^ *+' conftest.er1 >conftest.err
27040 rm -f conftest.er1
27041 cat conftest.err >&5
a848cd7e
SC
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); } &&
9dd0f6c2 27044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27046 (eval $ac_try) 2>&5
27047 ac_status=$?
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); }; } &&
27050 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
27056 ac_cv_lib_ipc_shmat=yes
27057else
27058 echo "$as_me: failed program was:" >&5
27059sed 's/^/| /' conftest.$ac_ext >&5
27060
27061ac_cv_lib_ipc_shmat=no
27062fi
ac1cb8d3
VS
27063rm -f conftest.err conftest.$ac_objext \
27064 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27065LIBS=$ac_check_lib_save_LIBS
27066fi
27067echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27068echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27069if test $ac_cv_lib_ipc_shmat = yes; then
27070 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27071fi
27072
27073 fi
27074 fi
27075
27076 # Check for libraries that X11R6 Xt/Xaw programs need.
27077 ac_save_LDFLAGS=$LDFLAGS
27078 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27079 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27080 # check for ICE first), but we must link in the order -lSM -lICE or
27081 # we get undefined symbols. So assume we have SM if we have ICE.
27082 # These have to be linked with before -lX11, unlike the other
27083 # libraries we check for below, so use a different variable.
27084 # John Interrante, Karl Berry
27085 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27086echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27087if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27088 echo $ECHO_N "(cached) $ECHO_C" >&6
27089else
27090 ac_check_lib_save_LIBS=$LIBS
27091LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27092cat >conftest.$ac_ext <<_ACEOF
27093/* confdefs.h. */
27094_ACEOF
27095cat confdefs.h >>conftest.$ac_ext
27096cat >>conftest.$ac_ext <<_ACEOF
27097/* end confdefs.h. */
27098
27099/* Override any gcc2 internal prototype to avoid an error. */
27100#ifdef __cplusplus
27101extern "C"
27102#endif
27103/* We use char because int might match the return type of a gcc2
27104 builtin and then its argument prototype would still apply. */
27105char IceConnectionNumber ();
27106int
27107main ()
27108{
27109IceConnectionNumber ();
27110 ;
27111 return 0;
27112}
27113_ACEOF
27114rm -f conftest.$ac_objext conftest$ac_exeext
27115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27116 (eval $ac_link) 2>conftest.er1
a848cd7e 27117 ac_status=$?
ac1cb8d3
VS
27118 grep -v '^ *+' conftest.er1 >conftest.err
27119 rm -f conftest.er1
27120 cat conftest.err >&5
a848cd7e
SC
27121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122 (exit $ac_status); } &&
9dd0f6c2 27123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27125 (eval $ac_try) 2>&5
27126 ac_status=$?
27127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); }; } &&
27129 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
27135 ac_cv_lib_ICE_IceConnectionNumber=yes
27136else
27137 echo "$as_me: failed program was:" >&5
27138sed 's/^/| /' conftest.$ac_ext >&5
27139
27140ac_cv_lib_ICE_IceConnectionNumber=no
27141fi
ac1cb8d3
VS
27142rm -f conftest.err conftest.$ac_objext \
27143 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27144LIBS=$ac_check_lib_save_LIBS
27145fi
27146echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27147echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27148if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27149 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27150fi
27151
27152 LDFLAGS=$ac_save_LDFLAGS
27153
27154fi
27155
27156
27157 if test "$no_x" = "yes"; then
27158 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27159echo "$as_me: error: X11 not found" >&2;}
27160 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27161 fi
27162
74b84332
VS
27163 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27164 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27165 AFMINSTALL=afminstall
27166 COMPILED_X_PROGRAM=0
27167
74b84332
VS
27168 fi
27169
27170 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27171 if test "$wxUSE_NANOX" = "yes"; then
27172 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27173echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27174 if test "x$MICROWIN" = x ; then
27175 echo "$as_me:$LINENO: result: not found" >&5
27176echo "${ECHO_T}not found" >&6
27177 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27178echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27179 { (exit 1); exit 1; }; }
27180 else
27181 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27182echo "${ECHO_T}$MICROWIN" >&6
27183 cat >>confdefs.h <<\_ACEOF
27184#define wxUSE_NANOX 1
27185_ACEOF
27186
27187 fi
27188 fi
27189
27190 if test "$wxUSE_UNICODE" = "yes"; then
27191
27192 succeeded=no
27193
27194 if test -z "$PKG_CONFIG"; then
27195 # Extract the first word of "pkg-config", so it can be a program name with args.
27196set dummy pkg-config; ac_word=$2
27197echo "$as_me:$LINENO: checking for $ac_word" >&5
27198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27199if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27200 echo $ECHO_N "(cached) $ECHO_C" >&6
27201else
27202 case $PKG_CONFIG in
27203 [\\/]* | ?:[\\/]*)
27204 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27205 ;;
27206 *)
27207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27208for as_dir in $PATH
27209do
27210 IFS=$as_save_IFS
27211 test -z "$as_dir" && as_dir=.
27212 for ac_exec_ext in '' $ac_executable_extensions; do
27213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27214 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27216 break 2
27217 fi
27218done
27219done
27220
27221 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27222 ;;
27223esac
27224fi
27225PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27226
27227if test -n "$PKG_CONFIG"; then
27228 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27229echo "${ECHO_T}$PKG_CONFIG" >&6
27230else
27231 echo "$as_me:$LINENO: result: no" >&5
27232echo "${ECHO_T}no" >&6
27233fi
27234
27235 fi
27236
27237 if test "$PKG_CONFIG" = "no" ; then
27238 echo "*** The pkg-config script could not be found. Make sure it is"
27239 echo "*** in your path, or set the PKG_CONFIG environment variable"
27240 echo "*** to the full path to pkg-config."
27241 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27242 else
27243 PKG_CONFIG_MIN_VERSION=0.9.0
27244 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27245 echo "$as_me:$LINENO: checking for pangox" >&5
27246echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27247
27248 if $PKG_CONFIG --exists "pangox" ; then
27249 echo "$as_me:$LINENO: result: yes" >&5
27250echo "${ECHO_T}yes" >&6
27251 succeeded=yes
27252
27253 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27254echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27255 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27256 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27257echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27258
27259 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27260echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27261 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27262 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27263echo "${ECHO_T}$PANGOX_LIBS" >&6
27264 else
27265 PANGOX_CFLAGS=""
27266 PANGOX_LIBS=""
27267 ## If we have a custom action on failure, don't print errors, but
27268 ## do set a variable so people can do so.
27269 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27270
27271 fi
27272
27273
27274
27275 else
27276 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27277 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27278 fi
27279 fi
27280
27281 if test $succeeded = yes; then
27282
27283 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27284 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27285
27286 else
27287
27288 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27289echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27290 { (exit 1); exit 1; }; }
27291
27292
27293 fi
27294
27295
27296 succeeded=no
27297
27298 if test -z "$PKG_CONFIG"; then
27299 # Extract the first word of "pkg-config", so it can be a program name with args.
27300set dummy pkg-config; ac_word=$2
27301echo "$as_me:$LINENO: checking for $ac_word" >&5
27302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27303if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27304 echo $ECHO_N "(cached) $ECHO_C" >&6
27305else
27306 case $PKG_CONFIG in
27307 [\\/]* | ?:[\\/]*)
27308 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27309 ;;
27310 *)
27311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27312for as_dir in $PATH
27313do
27314 IFS=$as_save_IFS
27315 test -z "$as_dir" && as_dir=.
27316 for ac_exec_ext in '' $ac_executable_extensions; do
27317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27318 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27320 break 2
27321 fi
27322done
27323done
27324
27325 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27326 ;;
27327esac
27328fi
27329PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27330
27331if test -n "$PKG_CONFIG"; then
27332 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27333echo "${ECHO_T}$PKG_CONFIG" >&6
27334else
27335 echo "$as_me:$LINENO: result: no" >&5
27336echo "${ECHO_T}no" >&6
27337fi
27338
27339 fi
27340
27341 if test "$PKG_CONFIG" = "no" ; then
27342 echo "*** The pkg-config script could not be found. Make sure it is"
27343 echo "*** in your path, or set the PKG_CONFIG environment variable"
27344 echo "*** to the full path to pkg-config."
27345 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27346 else
27347 PKG_CONFIG_MIN_VERSION=0.9.0
27348 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27349 echo "$as_me:$LINENO: checking for pangoft2" >&5
27350echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27351
27352 if $PKG_CONFIG --exists "pangoft2" ; then
27353 echo "$as_me:$LINENO: result: yes" >&5
27354echo "${ECHO_T}yes" >&6
27355 succeeded=yes
27356
27357 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27358echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27359 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27360 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27361echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27362
27363 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27364echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27365 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27366 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27367echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27368 else
27369 PANGOFT2_CFLAGS=""
27370 PANGOFT2_LIBS=""
27371 ## If we have a custom action on failure, don't print errors, but
27372 ## do set a variable so people can do so.
27373 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27374
27375 fi
27376
27377
27378
27379 else
27380 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27381 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27382 fi
27383 fi
27384
27385 if test $succeeded = yes; then
27386
27387 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27388 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27389
27390 else
27391
27392 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27393echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27394 wxUSE_PRINTING_ARCHITECTURE="no"
27395
27396
27397 fi
27398
27399
27400 succeeded=no
27401
27402 if test -z "$PKG_CONFIG"; then
27403 # Extract the first word of "pkg-config", so it can be a program name with args.
27404set dummy pkg-config; ac_word=$2
27405echo "$as_me:$LINENO: checking for $ac_word" >&5
27406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27407if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27408 echo $ECHO_N "(cached) $ECHO_C" >&6
27409else
27410 case $PKG_CONFIG in
27411 [\\/]* | ?:[\\/]*)
27412 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27413 ;;
27414 *)
27415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27416for as_dir in $PATH
27417do
27418 IFS=$as_save_IFS
27419 test -z "$as_dir" && as_dir=.
27420 for ac_exec_ext in '' $ac_executable_extensions; do
27421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27422 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27424 break 2
27425 fi
27426done
27427done
27428
27429 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27430 ;;
27431esac
27432fi
27433PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27434
27435if test -n "$PKG_CONFIG"; then
27436 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27437echo "${ECHO_T}$PKG_CONFIG" >&6
27438else
27439 echo "$as_me:$LINENO: result: no" >&5
27440echo "${ECHO_T}no" >&6
27441fi
27442
27443 fi
27444
27445 if test "$PKG_CONFIG" = "no" ; then
27446 echo "*** The pkg-config script could not be found. Make sure it is"
27447 echo "*** in your path, or set the PKG_CONFIG environment variable"
27448 echo "*** to the full path to pkg-config."
27449 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27450 else
27451 PKG_CONFIG_MIN_VERSION=0.9.0
27452 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27453 echo "$as_me:$LINENO: checking for pangoxft" >&5
27454echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27455
27456 if $PKG_CONFIG --exists "pangoxft" ; then
27457 echo "$as_me:$LINENO: result: yes" >&5
27458echo "${ECHO_T}yes" >&6
27459 succeeded=yes
27460
27461 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27462echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27463 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27464 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27465echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27466
27467 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27468echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27469 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27470 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27471echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27472 else
27473 PANGOXFT_CFLAGS=""
27474 PANGOXFT_LIBS=""
27475 ## If we have a custom action on failure, don't print errors, but
27476 ## do set a variable so people can do so.
27477 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27478
27479 fi
27480
27481
27482
27483 else
27484 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27485 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27486 fi
27487 fi
27488
27489 if test $succeeded = yes; then
27490
4ae1af05
MB
27491 cat >>confdefs.h <<\_ACEOF
27492#define HAVE_PANGO_XFT 1
27493_ACEOF
27494
a848cd7e
SC
27495 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27496 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27497
27498 else
27499
27500 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27501echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27502
27503
27504 fi
27505
304205f1
VS
27506 save_CFLAGS="$CFLAGS"
27507 save_LIBS="$LIBS"
27508 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27509 LIBS="$LIBS $PANGOX_LIBS"
27510
27511for ac_func in pango_font_family_is_monospace
27512do
27513as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27514echo "$as_me:$LINENO: checking for $ac_func" >&5
27515echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27516if eval "test \"\${$as_ac_var+set}\" = set"; then
27517 echo $ECHO_N "(cached) $ECHO_C" >&6
27518else
27519 cat >conftest.$ac_ext <<_ACEOF
27520/* confdefs.h. */
27521_ACEOF
27522cat confdefs.h >>conftest.$ac_ext
27523cat >>conftest.$ac_ext <<_ACEOF
27524/* end confdefs.h. */
27525/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27527#define $ac_func innocuous_$ac_func
27528
27529/* System header to define __stub macros and hopefully few prototypes,
27530 which can conflict with char $ac_func (); below.
27531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27532 <limits.h> exists even on freestanding compilers. */
27533
27534#ifdef __STDC__
27535# include <limits.h>
27536#else
27537# include <assert.h>
27538#endif
27539
27540#undef $ac_func
27541
27542/* Override any gcc2 internal prototype to avoid an error. */
27543#ifdef __cplusplus
27544extern "C"
27545{
27546#endif
27547/* We use char because int might match the return type of a gcc2
27548 builtin and then its argument prototype would still apply. */
27549char $ac_func ();
27550/* The GNU C library defines this for functions which it implements
27551 to always fail with ENOSYS. Some functions are actually named
27552 something starting with __ and the normal name is an alias. */
27553#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27554choke me
27555#else
27556char (*f) () = $ac_func;
27557#endif
27558#ifdef __cplusplus
27559}
27560#endif
27561
27562int
27563main ()
27564{
27565return f != $ac_func;
27566 ;
27567 return 0;
27568}
27569_ACEOF
27570rm -f conftest.$ac_objext conftest$ac_exeext
27571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27572 (eval $ac_link) 2>conftest.er1
27573 ac_status=$?
27574 grep -v '^ *+' conftest.er1 >conftest.err
27575 rm -f conftest.er1
27576 cat conftest.err >&5
27577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578 (exit $ac_status); } &&
9dd0f6c2 27579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
27580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27581 (eval $ac_try) 2>&5
27582 ac_status=$?
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); }; } &&
27585 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27591 eval "$as_ac_var=yes"
27592else
27593 echo "$as_me: failed program was:" >&5
27594sed 's/^/| /' conftest.$ac_ext >&5
27595
27596eval "$as_ac_var=no"
27597fi
27598rm -f conftest.err conftest.$ac_objext \
27599 conftest$ac_exeext conftest.$ac_ext
27600fi
27601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27602echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27603if test `eval echo '${'$as_ac_var'}'` = yes; then
27604 cat >>confdefs.h <<_ACEOF
27605#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27606_ACEOF
27607
27608fi
27609done
27610
27611 CFLAGS="$save_CFLAGS"
27612 LIBS="$save_LIBS"
a848cd7e
SC
27613 fi
27614
27615 wxUSE_UNIVERSAL="yes"
27616
27617 if test "$wxUSE_NANOX" = "yes"; then
27618 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27619 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"
27620 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27621 else
27622 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27623 fi
27624
a848cd7e
SC
27625 TOOLKIT=X11
27626 GUIDIST=X11_DIST
27627 fi
27628
27629 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
27630 if test "$wxUSE_UNICODE" = "yes"; then
27631 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
27632echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
27633 { (exit 1); exit 1; }; }
27634 fi
27635
74b84332
VS
27636 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27637echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 27638
74b84332
VS
27639ac_find_includes=
27640for ac_dir in $SEARCH_INCLUDE /usr/include;
27641 do
27642 if test -f "$ac_dir/Xm/Xm.h"; then
27643 ac_find_includes=$ac_dir
27644 break
27645 fi
27646 done
a848cd7e 27647
74b84332
VS
27648 if test "$ac_find_includes" != "" ; then
27649 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27650echo "${ECHO_T}found in $ac_find_includes" >&6
27651
27652 if test "x$ac_find_includes" = "x/usr/include"; then
27653 ac_path_to_include=""
27654 else
27655 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27656 result=$?
27657 if test $result = 0; then
27658 ac_path_to_include=""
27659 else
27660 ac_path_to_include=" -I$ac_find_includes"
27661 fi
a848cd7e
SC
27662 fi
27663
74b84332
VS
27664 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27665 else
27666 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27667/* confdefs.h. */
27668_ACEOF
27669cat confdefs.h >>conftest.$ac_ext
27670cat >>conftest.$ac_ext <<_ACEOF
27671/* end confdefs.h. */
27672
74b84332
VS
27673 #include <Xm/Xm.h>
27674
a848cd7e
SC
27675int
27676main ()
27677{
27678
74b84332
VS
27679 int version;
27680 version = xmUseVersion;
27681
a848cd7e
SC
27682 ;
27683 return 0;
27684}
27685_ACEOF
74b84332
VS
27686rm -f conftest.$ac_objext
27687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27688 (eval $ac_compile) 2>conftest.er1
a848cd7e 27689 ac_status=$?
ac1cb8d3
VS
27690 grep -v '^ *+' conftest.er1 >conftest.err
27691 rm -f conftest.er1
27692 cat conftest.err >&5
a848cd7e
SC
27693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694 (exit $ac_status); } &&
9dd0f6c2 27695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27697 (eval $ac_try) 2>&5
27698 ac_status=$?
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); }; } &&
74b84332 27701 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
74b84332
VS
27707
27708 echo "$as_me:$LINENO: result: found in default search path" >&5
27709echo "${ECHO_T}found in default search path" >&6
27710 COMPILED_X_PROGRAM=1
27711
a848cd7e
SC
27712else
27713 echo "$as_me: failed program was:" >&5
27714sed 's/^/| /' conftest.$ac_ext >&5
27715
a848cd7e 27716
74b84332
VS
27717 echo "$as_me:$LINENO: result: no" >&5
27718echo "${ECHO_T}no" >&6
27719 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27720echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27721 { (exit 1); exit 1; }; }
a848cd7e 27722
a848cd7e 27723
a848cd7e 27724fi
74b84332
VS
27725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27726 fi
27727
27728 if test "$COMPILED_X_PROGRAM" = 0; then
27729 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27730echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27731
27732ac_find_libraries=
27733for ac_dir in $SEARCH_LIB /usr/lib;
27734 do
27735 for ac_extension in a so sl dylib; do
27736 if test -f "$ac_dir/libXm.$ac_extension"; then
27737 ac_find_libraries=$ac_dir
27738 break 2
a848cd7e 27739 fi
74b84332
VS
27740 done
27741 done
a848cd7e 27742
74b84332
VS
27743 if test "$ac_find_libraries" != "" ; then
27744 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27745echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 27746
74b84332
VS
27747
27748 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27749 result=$?
27750 if test $result = 0; then
27751 ac_path_to_link=""
a848cd7e 27752 else
74b84332
VS
27753 ac_path_to_link=" -L$ac_find_libraries"
27754 fi
27755
27756 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27757 else
27758 save_CFLAGS=$CFLAGS
27759 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27760
27761 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27762/* confdefs.h. */
27763_ACEOF
27764cat confdefs.h >>conftest.$ac_ext
27765cat >>conftest.$ac_ext <<_ACEOF
27766/* end confdefs.h. */
27767
74b84332
VS
27768 #include <Xm/Xm.h>
27769
a848cd7e
SC
27770int
27771main ()
27772{
74b84332
VS
27773
27774 int version;
27775 version = xmUseVersion;
27776
a848cd7e
SC
27777 ;
27778 return 0;
27779}
27780_ACEOF
74b84332
VS
27781rm -f conftest.$ac_objext
27782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27783 (eval $ac_compile) 2>conftest.er1
a848cd7e 27784 ac_status=$?
ac1cb8d3
VS
27785 grep -v '^ *+' conftest.er1 >conftest.err
27786 rm -f conftest.er1
27787 cat conftest.err >&5
a848cd7e
SC
27788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789 (exit $ac_status); } &&
9dd0f6c2 27790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27792 (eval $ac_try) 2>&5
27793 ac_status=$?
27794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27795 (exit $ac_status); }; } &&
74b84332 27796 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
74b84332
VS
27802
27803 echo "$as_me:$LINENO: result: found in default search path" >&5
27804echo "${ECHO_T}found in default search path" >&6
27805 COMPILED_X_PROGRAM=1
27806
a848cd7e
SC
27807else
27808 echo "$as_me: failed program was:" >&5
27809sed 's/^/| /' conftest.$ac_ext >&5
27810
74b84332
VS
27811
27812 echo "$as_me:$LINENO: result: no" >&5
27813echo "${ECHO_T}no" >&6
27814 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27815echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27816 { (exit 1); exit 1; }; }
27817
27818
27819fi
27820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27821
27822 CFLAGS=$save_CFLAGS
27823 fi
27824 fi
27825
27826 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27827echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27828 libp_link=""
27829 libsm_ice_link=""
27830 libs_found=0
27831 for libp in "" " -lXp"; do
27832 if test "$libs_found" = "0"; then
27833 for libsm_ice in "" " -lSM -lICE"; do
27834 if test "$libs_found" = "0"; then
27835 save_LIBS="$LIBS"
27836 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27837 save_CFLAGS=$CFLAGS
27838 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27839
27840 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27841/* confdefs.h. */
27842_ACEOF
27843cat confdefs.h >>conftest.$ac_ext
27844cat >>conftest.$ac_ext <<_ACEOF
27845/* end confdefs.h. */
27846
74b84332
VS
27847 #include <Xm/Xm.h>
27848 #include <Xm/List.h>
27849
a848cd7e
SC
27850int
27851main ()
27852{
74b84332
VS
27853
27854 XmString string = NULL;
27855 Widget w = NULL;
27856 int position = 0;
27857 XmListAddItem(w, string, position);
27858
a848cd7e
SC
27859 ;
27860 return 0;
27861}
27862_ACEOF
27863rm -f conftest.$ac_objext conftest$ac_exeext
27864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27865 (eval $ac_link) 2>conftest.er1
a848cd7e 27866 ac_status=$?
ac1cb8d3
VS
27867 grep -v '^ *+' conftest.er1 >conftest.err
27868 rm -f conftest.er1
27869 cat conftest.err >&5
a848cd7e
SC
27870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871 (exit $ac_status); } &&
9dd0f6c2 27872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27874 (eval $ac_try) 2>&5
27875 ac_status=$?
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); }; } &&
27878 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
27884
27885 libp_link="$libp"
27886 libsm_ice_link="$libsm_ice"
27887 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27888echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27889 libs_found=1
27890
27891else
27892 echo "$as_me: failed program was:" >&5
27893sed 's/^/| /' conftest.$ac_ext >&5
27894
27895
27896
27897fi
ac1cb8d3
VS
27898rm -f conftest.err conftest.$ac_objext \
27899 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27900
27901 LIBS="$save_LIBS"
27902 CFLAGS=$save_CFLAGS
27903 fi
27904 done
27905 fi
27906 done
27907
27908 if test "$libs_found" = "0"; then
27909 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27910echo "${ECHO_T}can't find the right libraries" >&6
27911 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27912echo "$as_me: error: can't link a simple motif program" >&2;}
27913 { (exit 1); exit 1; }; }
27914 fi
27915
27916 save_CFLAGS=$CFLAGS
27917 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27918 echo "$as_me:$LINENO: checking for Motif 2" >&5
27919echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27920 cat >conftest.$ac_ext <<_ACEOF
27921/* confdefs.h. */
27922_ACEOF
27923cat confdefs.h >>conftest.$ac_ext
27924cat >>conftest.$ac_ext <<_ACEOF
27925/* end confdefs.h. */
27926
27927 #include <Xm/Xm.h>
27928
27929int
27930main ()
27931{
27932
27933 #if XmVersion < 2000
27934 #error "Not Motif 2"
27935 #endif
27936
27937 ;
27938 return 0;
27939}
27940_ACEOF
27941rm -f conftest.$ac_objext
27942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27943 (eval $ac_compile) 2>conftest.er1
a848cd7e 27944 ac_status=$?
ac1cb8d3
VS
27945 grep -v '^ *+' conftest.er1 >conftest.err
27946 rm -f conftest.er1
27947 cat conftest.err >&5
a848cd7e
SC
27948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949 (exit $ac_status); } &&
9dd0f6c2 27950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27952 (eval $ac_try) 2>&5
27953 ac_status=$?
27954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955 (exit $ac_status); }; } &&
27956 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
27962
27963 cat >>confdefs.h <<\_ACEOF
27964#define __WXMOTIF20__ 1
27965_ACEOF
27966
27967 echo "$as_me:$LINENO: result: found" >&5
27968echo "${ECHO_T}found" >&6
27969
27970else
27971 echo "$as_me: failed program was:" >&5
27972sed 's/^/| /' conftest.$ac_ext >&5
27973
27974
27975 cat >>confdefs.h <<\_ACEOF
27976#define __WXMOTIF20__ 0
27977_ACEOF
27978
27979 echo "$as_me:$LINENO: result: not found" >&5
27980echo "${ECHO_T}not found" >&6
27981
27982fi
ac1cb8d3 27983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27984 CFLAGS=$save_CFLAGS
27985
27986 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
27987 TOOLKIT=MOTIF
27988 GUIDIST=MOTIF_DIST
27989 fi
27990
74b84332 27991 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
27992 if test "$wxUSE_LIBXPM" = "sys"; then
27993 echo "$as_me:$LINENO: checking for Xpm library" >&5
27994echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
27995
27996ac_find_libraries=
27997for ac_dir in $SEARCH_LIB /usr/lib;
27998 do
27999 for ac_extension in a so sl dylib; do
28000 if test -f "$ac_dir/libXpm.$ac_extension"; then
28001 ac_find_libraries=$ac_dir
28002 break 2
28003 fi
28004 done
28005 done
28006
28007 if test "$ac_find_libraries" != "" ; then
28008
28009 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28010 result=$?
28011 if test $result = 0; then
28012 ac_path_to_link=""
28013 else
28014 ac_path_to_link=" -L$ac_find_libraries"
28015 fi
28016
28017 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28018 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28019echo "${ECHO_T}found at $ac_find_libraries" >&6
28020
28021 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28022echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28023if test "${wx_cv_x11_xpm_h+set}" = set; then
28024 echo $ECHO_N "(cached) $ECHO_C" >&6
28025else
28026
28027 save_CFLAGS=$CFLAGS
28028 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28029
28030 cat >conftest.$ac_ext <<_ACEOF
28031/* confdefs.h. */
28032_ACEOF
28033cat confdefs.h >>conftest.$ac_ext
28034cat >>conftest.$ac_ext <<_ACEOF
28035/* end confdefs.h. */
28036
28037 #include <X11/xpm.h>
28038
28039int
28040main ()
28041{
28042
28043 int version;
28044 version = XpmLibraryVersion();
28045
28046 ;
28047 return 0;
28048}
28049_ACEOF
28050rm -f conftest.$ac_objext
28051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28052 (eval $ac_compile) 2>conftest.er1
a848cd7e 28053 ac_status=$?
ac1cb8d3
VS
28054 grep -v '^ *+' conftest.er1 >conftest.err
28055 rm -f conftest.er1
28056 cat conftest.err >&5
a848cd7e
SC
28057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); } &&
9dd0f6c2 28059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28061 (eval $ac_try) 2>&5
28062 ac_status=$?
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); }; } &&
28065 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
28071 wx_cv_x11_xpm_h=yes
28072else
28073 echo "$as_me: failed program was:" >&5
28074sed 's/^/| /' conftest.$ac_ext >&5
28075
28076wx_cv_x11_xpm_h=no
28077
28078fi
ac1cb8d3 28079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28080
28081 CFLAGS=$save_CFLAGS
28082
28083
28084fi
28085echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28086echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28087
28088 if test $wx_cv_x11_xpm_h = "yes"; then
28089 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28090 cat >>confdefs.h <<\_ACEOF
28091#define wxHAVE_LIB_XPM 1
28092_ACEOF
28093
28094 else
28095 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28096echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28097 fi
28098 fi
28099
28100 fi
28101
28102 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28103echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28104if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28105 echo $ECHO_N "(cached) $ECHO_C" >&6
28106else
28107 ac_check_lib_save_LIBS=$LIBS
28108LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28109cat >conftest.$ac_ext <<_ACEOF
28110/* confdefs.h. */
28111_ACEOF
28112cat confdefs.h >>conftest.$ac_ext
28113cat >>conftest.$ac_ext <<_ACEOF
28114/* end confdefs.h. */
28115
28116/* Override any gcc2 internal prototype to avoid an error. */
28117#ifdef __cplusplus
28118extern "C"
28119#endif
28120/* We use char because int might match the return type of a gcc2
28121 builtin and then its argument prototype would still apply. */
28122char XShapeQueryExtension ();
28123int
28124main ()
28125{
28126XShapeQueryExtension ();
28127 ;
28128 return 0;
28129}
28130_ACEOF
28131rm -f conftest.$ac_objext conftest$ac_exeext
28132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28133 (eval $ac_link) 2>conftest.er1
a848cd7e 28134 ac_status=$?
ac1cb8d3
VS
28135 grep -v '^ *+' conftest.er1 >conftest.err
28136 rm -f conftest.er1
28137 cat conftest.err >&5
a848cd7e
SC
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); } &&
9dd0f6c2 28140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28142 (eval $ac_try) 2>&5
28143 ac_status=$?
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); }; } &&
28146 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
28152 ac_cv_lib_Xext_XShapeQueryExtension=yes
28153else
28154 echo "$as_me: failed program was:" >&5
28155sed 's/^/| /' conftest.$ac_ext >&5
28156
28157ac_cv_lib_Xext_XShapeQueryExtension=no
28158fi
ac1cb8d3
VS
28159rm -f conftest.err conftest.$ac_objext \
28160 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28161LIBS=$ac_check_lib_save_LIBS
28162fi
28163echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28164echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28165if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28166
28167 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28168 wxHAVE_XEXT_LIB=1
28169
28170fi
28171
28172
28173 if test "$wxHAVE_XEXT_LIB" = 1; then
28174 save_CFLAGS="$CFLAGS"
28175 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28176
28177 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28178echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28179 cat >conftest.$ac_ext <<_ACEOF
28180/* confdefs.h. */
28181_ACEOF
28182cat confdefs.h >>conftest.$ac_ext
28183cat >>conftest.$ac_ext <<_ACEOF
28184/* end confdefs.h. */
28185
28186 #include <X11/Xlib.h>
28187 #include <X11/extensions/shape.h>
28188
28189int
28190main ()
28191{
28192
28193 int dummy1, dummy2;
28194 XShapeQueryExtension((Display*)NULL,
28195 (int*)NULL, (int*)NULL);
28196
28197 ;
28198 return 0;
28199}
28200_ACEOF
28201rm -f conftest.$ac_objext
28202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28203 (eval $ac_compile) 2>conftest.er1
a848cd7e 28204 ac_status=$?
ac1cb8d3
VS
28205 grep -v '^ *+' conftest.er1 >conftest.err
28206 rm -f conftest.er1
28207 cat conftest.err >&5
a848cd7e
SC
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); } &&
9dd0f6c2 28210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28212 (eval $ac_try) 2>&5
28213 ac_status=$?
28214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215 (exit $ac_status); }; } &&
28216 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
28222
28223 cat >>confdefs.h <<\_ACEOF
28224#define HAVE_XSHAPE 1
28225_ACEOF
28226
28227 echo "$as_me:$LINENO: result: found" >&5
28228echo "${ECHO_T}found" >&6
28229
28230else
28231 echo "$as_me: failed program was:" >&5
28232sed 's/^/| /' conftest.$ac_ext >&5
28233
28234
28235 echo "$as_me:$LINENO: result: not found" >&5
28236echo "${ECHO_T}not found" >&6
28237
28238fi
ac1cb8d3 28239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28240 CFLAGS="$save_CFLAGS"
28241
28242 fi
28243 fi
28244
28245 if test "$wxUSE_MAC" = 1; then
28246 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28247echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28248 if test "$GCC" = yes; then
28249 echo "$as_me:$LINENO: result: gcc" >&5
28250echo "${ECHO_T}gcc" >&6
28251 CPPFLAGS_PASCAL="-fpascal-strings"
28252 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28253 echo "$as_me:$LINENO: result: xlc" >&5
28254echo "${ECHO_T}xlc" >&6
28255 CPPFLAGS_PASCAL="-qmacpstr"
28256 else
28257 echo "$as_me:$LINENO: result: none" >&5
28258echo "${ECHO_T}none" >&6
28259 fi
28260
1e9e8aba
DE
28261 if test "x$wxUSE_UNIX" = "xyes"; then
28262 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28263 else
28264 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28265 fi
a848cd7e 28266
a848cd7e
SC
28267 TOOLKIT=MAC
28268 GUIDIST=MACX_DIST
dd21ced8 28269 WXBASEPORT="_carbon"
a848cd7e
SC
28270 fi
28271
28272 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28273 TOOLKIT=COCOA
28274 GUIDIST=COCOA_DIST
28275 fi
28276
28277 if test "$wxUSE_PM" = 1; then
28278 TOOLKIT=PM
de59c161
RD
28279 GUIDIST=PM_DIST
28280 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28281echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28282if test "${wx_cv_spbcdata+set}" = set; then
28283 echo $ECHO_N "(cached) $ECHO_C" >&6
28284else
28285
28286 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28287/* confdefs.h. */
28288_ACEOF
28289cat confdefs.h >>conftest.$ac_ext
28290cat >>conftest.$ac_ext <<_ACEOF
28291/* end confdefs.h. */
28292
28293 #define INCL_PM
28294 #include <os2.h>
28295
28296int
28297main ()
28298{
28299
28300 SPBCDATA test;
28301
28302 ;
28303 return 0;
28304}
28305_ACEOF
28306rm -f conftest.$ac_objext
28307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28308 (eval $ac_compile) 2>conftest.er1
de59c161 28309 ac_status=$?
ac1cb8d3
VS
28310 grep -v '^ *+' conftest.er1 >conftest.err
28311 rm -f conftest.er1
28312 cat conftest.err >&5
de59c161
RD
28313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314 (exit $ac_status); } &&
9dd0f6c2 28315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28317 (eval $ac_try) 2>&5
28318 ac_status=$?
28319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320 (exit $ac_status); }; } &&
28321 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
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); }; }; then
28327 wx_cv_spbcdata=yes
28328else
28329 echo "$as_me: failed program was:" >&5
28330sed 's/^/| /' conftest.$ac_ext >&5
28331
28332wx_cv_spbcdata=no
28333
28334fi
ac1cb8d3 28335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28336
28337
28338fi
28339echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28340echo "${ECHO_T}$wx_cv_spbcdata" >&6
28341
28342 if test $wx_cv_spbcdata = "yes"; then
28343 cat >>confdefs.h <<\_ACEOF
28344#define HAVE_SPBCDATA 1
28345_ACEOF
28346
28347 fi
a848cd7e
SC
28348 fi
28349
28350 if test "$TOOLKIT" = "PM" ; then
28351 TOOLKIT_DIR="os2"
28352 else
28353 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28354 fi
28355
a848cd7e 28356 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28357 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28358 WIDGET_SET=univ
a848cd7e
SC
28359 fi
28360
28361 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28362 DISTDIR="wx\$(TOOLKIT)"
28363else
28364 USE_GUI=0
28365
28366 TOOLKIT_DIR="base"
28367
28368 if test "$USE_WIN32" = 1 ; then
a848cd7e 28369 TOOLKIT="MSW"
a848cd7e
SC
28370 fi
28371
a848cd7e
SC
28372 GUIDIST="BASE_DIST"
28373 DISTDIR="wxBase"
28374fi
28375
28376
28377
28378
28379IODBC_C_SRC=""
28380
28381
28382if test "$TOOLKIT" != "MSW" ; then
28383
28384 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28385
28386 if test "${ac_cv_header_sql_h+set}" = set; then
28387 echo "$as_me:$LINENO: checking for sql.h" >&5
28388echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28389if test "${ac_cv_header_sql_h+set}" = set; then
28390 echo $ECHO_N "(cached) $ECHO_C" >&6
28391fi
28392echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28393echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28394else
28395 # Is the header compilable?
28396echo "$as_me:$LINENO: checking sql.h usability" >&5
28397echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28398cat >conftest.$ac_ext <<_ACEOF
28399/* confdefs.h. */
28400_ACEOF
28401cat confdefs.h >>conftest.$ac_ext
28402cat >>conftest.$ac_ext <<_ACEOF
28403/* end confdefs.h. */
28404$ac_includes_default
28405#include <sql.h>
28406_ACEOF
28407rm -f conftest.$ac_objext
28408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28409 (eval $ac_compile) 2>conftest.er1
a848cd7e 28410 ac_status=$?
ac1cb8d3
VS
28411 grep -v '^ *+' conftest.er1 >conftest.err
28412 rm -f conftest.er1
28413 cat conftest.err >&5
a848cd7e
SC
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); } &&
9dd0f6c2 28416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28418 (eval $ac_try) 2>&5
28419 ac_status=$?
28420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421 (exit $ac_status); }; } &&
28422 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
28428 ac_header_compiler=yes
28429else
28430 echo "$as_me: failed program was:" >&5
28431sed 's/^/| /' conftest.$ac_ext >&5
28432
28433ac_header_compiler=no
28434fi
ac1cb8d3 28435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28436echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28437echo "${ECHO_T}$ac_header_compiler" >&6
28438
28439# Is the header present?
28440echo "$as_me:$LINENO: checking sql.h presence" >&5
28441echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28442cat >conftest.$ac_ext <<_ACEOF
28443/* confdefs.h. */
28444_ACEOF
28445cat confdefs.h >>conftest.$ac_ext
28446cat >>conftest.$ac_ext <<_ACEOF
28447/* end confdefs.h. */
28448#include <sql.h>
28449_ACEOF
28450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28452 ac_status=$?
28453 grep -v '^ *+' conftest.er1 >conftest.err
28454 rm -f conftest.er1
28455 cat conftest.err >&5
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); } >/dev/null; then
28458 if test -s conftest.err; then
28459 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28461 else
28462 ac_cpp_err=
28463 fi
28464else
28465 ac_cpp_err=yes
28466fi
28467if test -z "$ac_cpp_err"; then
28468 ac_header_preproc=yes
28469else
28470 echo "$as_me: failed program was:" >&5
28471sed 's/^/| /' conftest.$ac_ext >&5
28472
28473 ac_header_preproc=no
28474fi
28475rm -f conftest.err conftest.$ac_ext
28476echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28477echo "${ECHO_T}$ac_header_preproc" >&6
28478
28479# So? What about this header?
ac1cb8d3
VS
28480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28481 yes:no: )
a848cd7e
SC
28482 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28483echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28484 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28485echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28486 ac_header_preproc=yes
a848cd7e 28487 ;;
ac1cb8d3 28488 no:yes:* )
a848cd7e
SC
28489 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28490echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28491 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28492echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28493 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28494echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28495 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28496echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28497 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28498echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28499 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28500echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28501 (
28502 cat <<\_ASBOX
ac1cb8d3
VS
28503## ----------------------------------------- ##
28504## Report this to wx-dev@lists.wxwidgets.org ##
28505## ----------------------------------------- ##
a848cd7e
SC
28506_ASBOX
28507 ) |
28508 sed "s/^/$as_me: WARNING: /" >&2
28509 ;;
28510esac
28511echo "$as_me:$LINENO: checking for sql.h" >&5
28512echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28513if test "${ac_cv_header_sql_h+set}" = set; then
28514 echo $ECHO_N "(cached) $ECHO_C" >&6
28515else
28516 ac_cv_header_sql_h=$ac_header_preproc
28517fi
28518echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28519echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28520
28521fi
28522if test $ac_cv_header_sql_h = yes; then
28523 found_sql_h=1
28524fi
28525
28526
28527 if test "x$found_sql_h" = "x1" ; then
28528 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28529echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28530if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28531 echo $ECHO_N "(cached) $ECHO_C" >&6
28532else
28533 ac_check_lib_save_LIBS=$LIBS
28534LIBS="-liodbc $LIBS"
28535cat >conftest.$ac_ext <<_ACEOF
28536/* confdefs.h. */
28537_ACEOF
28538cat confdefs.h >>conftest.$ac_ext
28539cat >>conftest.$ac_ext <<_ACEOF
28540/* end confdefs.h. */
28541
28542/* Override any gcc2 internal prototype to avoid an error. */
28543#ifdef __cplusplus
28544extern "C"
28545#endif
28546/* We use char because int might match the return type of a gcc2
28547 builtin and then its argument prototype would still apply. */
28548char SQLAllocEnv ();
28549int
28550main ()
28551{
28552SQLAllocEnv ();
28553 ;
28554 return 0;
28555}
28556_ACEOF
28557rm -f conftest.$ac_objext conftest$ac_exeext
28558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28559 (eval $ac_link) 2>conftest.er1
a848cd7e 28560 ac_status=$?
ac1cb8d3
VS
28561 grep -v '^ *+' conftest.er1 >conftest.err
28562 rm -f conftest.er1
28563 cat conftest.err >&5
a848cd7e
SC
28564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); } &&
9dd0f6c2 28566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28568 (eval $ac_try) 2>&5
28569 ac_status=$?
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); }; } &&
28572 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
28578 ac_cv_lib_iodbc_SQLAllocEnv=yes
28579else
28580 echo "$as_me: failed program was:" >&5
28581sed 's/^/| /' conftest.$ac_ext >&5
28582
28583ac_cv_lib_iodbc_SQLAllocEnv=no
28584fi
ac1cb8d3
VS
28585rm -f conftest.err conftest.$ac_objext \
28586 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28587LIBS=$ac_check_lib_save_LIBS
28588fi
28589echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28590echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28591if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28592 ODBC_LINK=" -liodbc"
28593else
28594
28595 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28596echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28597if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28598 echo $ECHO_N "(cached) $ECHO_C" >&6
28599else
28600 ac_check_lib_save_LIBS=$LIBS
28601LIBS="-lunixodbc $LIBS"
28602cat >conftest.$ac_ext <<_ACEOF
28603/* confdefs.h. */
28604_ACEOF
28605cat confdefs.h >>conftest.$ac_ext
28606cat >>conftest.$ac_ext <<_ACEOF
28607/* end confdefs.h. */
28608
28609/* Override any gcc2 internal prototype to avoid an error. */
28610#ifdef __cplusplus
28611extern "C"
28612#endif
28613/* We use char because int might match the return type of a gcc2
28614 builtin and then its argument prototype would still apply. */
28615char SQLAllocEnv ();
28616int
28617main ()
28618{
28619SQLAllocEnv ();
28620 ;
28621 return 0;
28622}
28623_ACEOF
28624rm -f conftest.$ac_objext conftest$ac_exeext
28625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28626 (eval $ac_link) 2>conftest.er1
a848cd7e 28627 ac_status=$?
ac1cb8d3
VS
28628 grep -v '^ *+' conftest.er1 >conftest.err
28629 rm -f conftest.er1
28630 cat conftest.err >&5
a848cd7e
SC
28631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); } &&
9dd0f6c2 28633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28635 (eval $ac_try) 2>&5
28636 ac_status=$?
28637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638 (exit $ac_status); }; } &&
28639 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
28645 ac_cv_lib_unixodbc_SQLAllocEnv=yes
28646else
28647 echo "$as_me: failed program was:" >&5
28648sed 's/^/| /' conftest.$ac_ext >&5
28649
28650ac_cv_lib_unixodbc_SQLAllocEnv=no
28651fi
ac1cb8d3
VS
28652rm -f conftest.err conftest.$ac_objext \
28653 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28654LIBS=$ac_check_lib_save_LIBS
28655fi
28656echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
28657echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
28658if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
28659 ODBC_LINK=" -lunixodbc"
28660else
28661
28662 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
28663echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
28664if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
28665 echo $ECHO_N "(cached) $ECHO_C" >&6
28666else
28667 ac_check_lib_save_LIBS=$LIBS
28668LIBS="-lodbc $LIBS"
28669cat >conftest.$ac_ext <<_ACEOF
28670/* confdefs.h. */
28671_ACEOF
28672cat confdefs.h >>conftest.$ac_ext
28673cat >>conftest.$ac_ext <<_ACEOF
28674/* end confdefs.h. */
28675
28676/* Override any gcc2 internal prototype to avoid an error. */
28677#ifdef __cplusplus
28678extern "C"
28679#endif
28680/* We use char because int might match the return type of a gcc2
28681 builtin and then its argument prototype would still apply. */
28682char SQLAllocEnv ();
28683int
28684main ()
28685{
28686SQLAllocEnv ();
28687 ;
28688 return 0;
28689}
28690_ACEOF
28691rm -f conftest.$ac_objext conftest$ac_exeext
28692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28693 (eval $ac_link) 2>conftest.er1
a848cd7e 28694 ac_status=$?
ac1cb8d3
VS
28695 grep -v '^ *+' conftest.er1 >conftest.err
28696 rm -f conftest.er1
28697 cat conftest.err >&5
a848cd7e
SC
28698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699 (exit $ac_status); } &&
9dd0f6c2 28700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28702 (eval $ac_try) 2>&5
28703 ac_status=$?
28704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705 (exit $ac_status); }; } &&
28706 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
28712 ac_cv_lib_odbc_SQLAllocEnv=yes
28713else
28714 echo "$as_me: failed program was:" >&5
28715sed 's/^/| /' conftest.$ac_ext >&5
28716
28717ac_cv_lib_odbc_SQLAllocEnv=no
28718fi
ac1cb8d3
VS
28719rm -f conftest.err conftest.$ac_objext \
28720 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28721LIBS=$ac_check_lib_save_LIBS
28722fi
28723echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28724echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28725if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28726 ODBC_LINK=" -lodbc"
28727fi
28728
28729
28730fi
28731
28732
28733fi
28734
28735 fi
28736 if test "x$ODBC_LINK" = "x" ; then
28737 if test "$wxUSE_ODBC" = "sys" ; then
28738 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28739echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28740 { (exit 1); exit 1; }; }
28741 else
28742 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28743echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28744 wxUSE_ODBC=builtin
28745 fi
28746 else
28747 wxUSE_ODBC=sys
28748 fi
28749 fi
a848cd7e 28750
2da0c077
RD
28751 if test "$wxUSE_ODBC" = "builtin" ; then
28752 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28753#define wxUSE_BUILTIN_IODBC 1
28754_ACEOF
28755
a848cd7e
SC
28756 fi
28757fi
28758
2da0c077
RD
28759if test "$wxUSE_ODBC" != "no" ; then
28760 cat >>confdefs.h <<\_ACEOF
28761#define wxUSE_ODBC 1
28762_ACEOF
28763
28764 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28765
28766 WXODBCFLAG="-D_IODBC_"
28767fi
a848cd7e 28768
01cb68df 28769
a848cd7e 28770if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 28771 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
28772 echo "$as_me:$LINENO: checking for Xinerama" >&5
28773echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28774
28775ac_find_libraries=
28776for ac_dir in $SEARCH_LIB /usr/lib;
28777 do
28778 for ac_extension in a so sl dylib; do
28779 if test -f "$ac_dir/libXinerama.$ac_extension"; then
28780 ac_find_libraries=$ac_dir
28781 break 2
28782 fi
28783 done
28784 done
28785
28786 if test "$ac_find_libraries" != "" ; then
28787
28788 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28789 result=$?
28790 if test $result = 0; then
28791 ac_path_to_link=""
28792 else
28793 ac_path_to_link=" -L$ac_find_libraries"
28794 fi
28795
28796 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28797 LDFLAGS="$LDFLAGS $ac_path_to_link"
28798 fi
28799 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28800 echo "$as_me:$LINENO: result: yes" >&5
28801echo "${ECHO_T}yes" >&6
28802
28803 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28804echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28805
28806ac_find_libraries=
28807for ac_dir in $SEARCH_LIB /usr/lib;
28808 do
28809 for ac_extension in a so sl dylib; do
28810 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28811 ac_find_libraries=$ac_dir
28812 break 2
28813 fi
28814 done
28815 done
28816
28817 if test "$ac_find_libraries" != "" ; then
28818 echo "$as_me:$LINENO: result: yes" >&5
28819echo "${ECHO_T}yes" >&6
28820
28821for ac_header in X11/extensions/xf86vmode.h
28822do
28823as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28824echo "$as_me:$LINENO: checking for $ac_header" >&5
28825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28826if eval "test \"\${$as_ac_Header+set}\" = set"; then
28827 echo $ECHO_N "(cached) $ECHO_C" >&6
28828else
28829 cat >conftest.$ac_ext <<_ACEOF
28830/* confdefs.h. */
28831_ACEOF
28832cat confdefs.h >>conftest.$ac_ext
28833cat >>conftest.$ac_ext <<_ACEOF
28834/* end confdefs.h. */
28835
28836 #if HAVE_X11_XLIB_H
28837 #include <X11/Xlib.h>
28838 #endif
28839
28840
28841#include <$ac_header>
28842_ACEOF
28843rm -f conftest.$ac_objext
28844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28845 (eval $ac_compile) 2>conftest.er1
a848cd7e 28846 ac_status=$?
ac1cb8d3
VS
28847 grep -v '^ *+' conftest.er1 >conftest.err
28848 rm -f conftest.er1
28849 cat conftest.err >&5
a848cd7e
SC
28850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28851 (exit $ac_status); } &&
9dd0f6c2 28852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28854 (eval $ac_try) 2>&5
28855 ac_status=$?
28856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857 (exit $ac_status); }; } &&
28858 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
28864 eval "$as_ac_Header=yes"
28865else
28866 echo "$as_me: failed program was:" >&5
28867sed 's/^/| /' conftest.$ac_ext >&5
28868
28869eval "$as_ac_Header=no"
28870fi
ac1cb8d3 28871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28872fi
28873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28874echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28875if test `eval echo '${'$as_ac_Header'}'` = yes; then
28876 cat >>confdefs.h <<_ACEOF
28877#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28878_ACEOF
28879
28880 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28881
28882fi
28883
28884done
28885
28886 else
28887 echo "$as_me:$LINENO: result: no" >&5
28888echo "${ECHO_T}no" >&6
28889 fi
28890
28891 else
28892 echo "$as_me:$LINENO: result: no" >&5
28893echo "${ECHO_T}no" >&6
dcc1b6ad
VS
28894 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28895echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
28896 wxUSE_DISPLAY="no"
28897 fi
01cb68df
RG
28898 elif test "$wxUSE_MSW" = 1; then
28899
28900
28901for ac_header in multimon.h ddraw.h
28902do
28903as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 28904echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
28905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28906if eval "test \"\${$as_ac_Header+set}\" = set"; then
28907 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 28908else
5294a27e 28909 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
28910/* confdefs.h. */
28911_ACEOF
28912cat confdefs.h >>conftest.$ac_ext
28913cat >>conftest.$ac_ext <<_ACEOF
28914/* end confdefs.h. */
5294a27e
VZ
28915#include <windows.h>
28916
01cb68df
RG
28917#include <$ac_header>
28918_ACEOF
28919rm -f conftest.$ac_objext
28920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28921 (eval $ac_compile) 2>conftest.er1
01cb68df 28922 ac_status=$?
ac1cb8d3
VS
28923 grep -v '^ *+' conftest.er1 >conftest.err
28924 rm -f conftest.er1
28925 cat conftest.err >&5
01cb68df
RG
28926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927 (exit $ac_status); } &&
9dd0f6c2 28928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28930 (eval $ac_try) 2>&5
28931 ac_status=$?
28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933 (exit $ac_status); }; } &&
28934 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
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); }; }; then
5294a27e 28940 eval "$as_ac_Header=yes"
01cb68df
RG
28941else
28942 echo "$as_me: failed program was:" >&5
28943sed 's/^/| /' conftest.$ac_ext >&5
28944
5294a27e 28945eval "$as_ac_Header=no"
01cb68df 28946fi
ac1cb8d3 28947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
28948fi
28949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
28951if test `eval echo '${'$as_ac_Header'}'` = yes; then
28952 cat >>confdefs.h <<_ACEOF
28953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28954_ACEOF
28955
28956else
28957
5294a27e
VZ
28958 wxUSE_DISPLAY="no"
28959 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 28960echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
28961
28962fi
28963
28964done
28965
a848cd7e
SC
28966 fi
28967fi
28968
28969
28970USE_OPENGL=0
28971if test "$wxUSE_OPENGL" = "yes"; then
28972 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28973 OPENGL_LIBS="-framework OpenGL -framework AGL"
28974 elif test "$wxUSE_MSW" = 1; then
28975 OPENGL_LIBS="-lopengl32 -lglu32"
28976 else
28977
28978
28979ac_find_includes=
28980for ac_dir in $SEARCH_INCLUDE /usr/include;
28981 do
28982 if test -f "$ac_dir/GL/gl.h"; then
28983 ac_find_includes=$ac_dir
28984 break
28985 fi
28986 done
28987
28988 if test "$ac_find_includes" != "" ; then
28989 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28990echo "${ECHO_T}found in $ac_find_includes" >&6
28991
28992 if test "x$ac_find_includes" = "x/usr/include"; then
28993 ac_path_to_include=""
28994 else
28995 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
28996 result=$?
28997 if test $result = 0; then
28998 ac_path_to_include=""
28999 else
29000 ac_path_to_include=" -I$ac_find_includes"
29001 fi
29002 fi
29003
29004 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29005 fi
29006
29007 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29008 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29009echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29010if test "${ac_cv_header_GL_gl_h+set}" = set; then
29011 echo $ECHO_N "(cached) $ECHO_C" >&6
29012fi
29013echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29014echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29015else
29016 # Is the header compilable?
29017echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29018echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29019cat >conftest.$ac_ext <<_ACEOF
29020/* confdefs.h. */
29021_ACEOF
29022cat confdefs.h >>conftest.$ac_ext
29023cat >>conftest.$ac_ext <<_ACEOF
29024/* end confdefs.h. */
29025$ac_includes_default
29026#include <GL/gl.h>
29027_ACEOF
29028rm -f conftest.$ac_objext
29029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29030 (eval $ac_compile) 2>conftest.er1
a848cd7e 29031 ac_status=$?
ac1cb8d3
VS
29032 grep -v '^ *+' conftest.er1 >conftest.err
29033 rm -f conftest.er1
29034 cat conftest.err >&5
a848cd7e
SC
29035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036 (exit $ac_status); } &&
9dd0f6c2 29037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29039 (eval $ac_try) 2>&5
29040 ac_status=$?
29041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042 (exit $ac_status); }; } &&
29043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
29049 ac_header_compiler=yes
29050else
29051 echo "$as_me: failed program was:" >&5
29052sed 's/^/| /' conftest.$ac_ext >&5
29053
29054ac_header_compiler=no
29055fi
ac1cb8d3 29056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29057echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29058echo "${ECHO_T}$ac_header_compiler" >&6
29059
29060# Is the header present?
29061echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29062echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29063cat >conftest.$ac_ext <<_ACEOF
29064/* confdefs.h. */
29065_ACEOF
29066cat confdefs.h >>conftest.$ac_ext
29067cat >>conftest.$ac_ext <<_ACEOF
29068/* end confdefs.h. */
29069#include <GL/gl.h>
29070_ACEOF
29071if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29073 ac_status=$?
29074 grep -v '^ *+' conftest.er1 >conftest.err
29075 rm -f conftest.er1
29076 cat conftest.err >&5
29077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078 (exit $ac_status); } >/dev/null; then
29079 if test -s conftest.err; then
29080 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29082 else
29083 ac_cpp_err=
29084 fi
29085else
29086 ac_cpp_err=yes
29087fi
29088if test -z "$ac_cpp_err"; then
29089 ac_header_preproc=yes
29090else
29091 echo "$as_me: failed program was:" >&5
29092sed 's/^/| /' conftest.$ac_ext >&5
29093
29094 ac_header_preproc=no
29095fi
29096rm -f conftest.err conftest.$ac_ext
29097echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29098echo "${ECHO_T}$ac_header_preproc" >&6
29099
29100# So? What about this header?
ac1cb8d3
VS
29101case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29102 yes:no: )
a848cd7e
SC
29103 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29104echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29105 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29106echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29107 ac_header_preproc=yes
a848cd7e 29108 ;;
ac1cb8d3 29109 no:yes:* )
a848cd7e
SC
29110 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29111echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29112 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29113echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29114 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29115echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29116 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29117echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29118 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29119echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29120 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29121echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29122 (
29123 cat <<\_ASBOX
ac1cb8d3
VS
29124## ----------------------------------------- ##
29125## Report this to wx-dev@lists.wxwidgets.org ##
29126## ----------------------------------------- ##
a848cd7e
SC
29127_ASBOX
29128 ) |
29129 sed "s/^/$as_me: WARNING: /" >&2
29130 ;;
29131esac
29132echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29133echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29134if test "${ac_cv_header_GL_gl_h+set}" = set; then
29135 echo $ECHO_N "(cached) $ECHO_C" >&6
29136else
29137 ac_cv_header_GL_gl_h=$ac_header_preproc
29138fi
29139echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29140echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29141
29142fi
29143if test $ac_cv_header_GL_gl_h = yes; then
29144
29145 found_gl=0
29146
29147 echo "$as_me:$LINENO: checking for -lGL" >&5
29148echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29149
29150ac_find_libraries=
29151for ac_dir in $SEARCH_LIB /usr/lib;
29152 do
29153 for ac_extension in a so sl dylib; do
29154 if test -f "$ac_dir/libGL.$ac_extension"; then
29155 ac_find_libraries=$ac_dir
29156 break 2
29157 fi
29158 done
29159 done
29160
29161 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29162 echo "$as_me:$LINENO: result: yes" >&5
29163echo "${ECHO_T}yes" >&6
29164
a848cd7e
SC
29165
29166 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29167 result=$?
29168 if test $result = 0; then
29169 ac_path_to_link=""
29170 else
29171 ac_path_to_link=" -L$ac_find_libraries"
29172 fi
29173
29174 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29175 LDFLAGS_GL="$ac_path_to_link"
29176 fi
29177
69120ee4
VZ
29178 echo "$as_me:$LINENO: checking for -lGLU" >&5
29179echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29180
29181ac_find_libraries=
29182for ac_dir in $SEARCH_LIB /usr/lib;
29183 do
29184 for ac_extension in a so sl dylib; do
29185 if test -f "$ac_dir/libGLU.$ac_extension"; then
29186 ac_find_libraries=$ac_dir
29187 break 2
29188 fi
29189 done
29190 done
29191
29192 if test "$ac_find_libraries" != "" ; then
29193
29194 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29195 result=$?
29196 if test $result = 0; then
29197 ac_path_to_link=""
29198 else
29199 ac_path_to_link=" -L$ac_find_libraries"
29200 fi
29201
29202 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29203 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29204 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29205 fi
29206
29207 found_gl=1
29208 OPENGL_LIBS="-lGL -lGLU"
29209 echo "$as_me:$LINENO: result: yes" >&5
29210echo "${ECHO_T}yes" >&6
69120ee4
VZ
29211 else
29212 echo "$as_me:$LINENO: result: no" >&5
29213echo "${ECHO_T}no" >&6
a848cd7e 29214 fi
69120ee4
VZ
29215 else
29216 echo "$as_me:$LINENO: result: no" >&5
29217echo "${ECHO_T}no" >&6
a848cd7e
SC
29218 fi
29219
29220 if test "$found_gl" != 1; then
a848cd7e
SC
29221 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29222echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29223
29224ac_find_libraries=
29225for ac_dir in $SEARCH_LIB /usr/lib;
29226 do
29227 for ac_extension in a so sl dylib; do
29228 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29229 ac_find_libraries=$ac_dir
29230 break 2
29231 fi
29232 done
29233 done
29234
29235 if test "$ac_find_libraries" != "" ; then
29236
29237 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29238 result=$?
29239 if test $result = 0; then
29240 ac_path_to_link=""
29241 else
29242 ac_path_to_link=" -L$ac_find_libraries"
29243 fi
29244
29245 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29246 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29247 echo "$as_me:$LINENO: result: yes" >&5
29248echo "${ECHO_T}yes" >&6
29249 else
29250 echo "$as_me:$LINENO: result: no" >&5
29251echo "${ECHO_T}no" >&6
29252 fi
29253 fi
29254
29255fi
29256
29257
29258
29259 if test "x$OPENGL_LIBS" = "x"; then
29260 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29261echo "$as_me: error: OpenGL libraries not available" >&2;}
29262 { (exit 1); exit 1; }; }
29263 fi
29264 fi
29265
29266 if test "$wxUSE_OPENGL" = "yes"; then
29267 USE_OPENGL=1
29268 cat >>confdefs.h <<\_ACEOF
29269#define wxUSE_OPENGL 1
29270_ACEOF
29271
29272 cat >>confdefs.h <<\_ACEOF
29273#define wxUSE_GLCANVAS 1
29274_ACEOF
29275
29276 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29277 fi
29278fi
29279
a848cd7e
SC
29280
29281if test -n "$TOOLKIT" ; then
29282 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29283fi
29284
a848cd7e
SC
29285
29286
29287if test "$wxUSE_SHARED" = "yes"; then
29288 case "${host}" in
29289 *-pc-msdosdjgpp )
29290 wxUSE_SHARED=no
29291 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29292echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29293 ;;
29294 esac
29295fi
29296
a848cd7e 29297if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29298
29299
29300 found_versioning=no
29301
29302
29303 if test $found_versioning = no ; then
29304 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29305echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29306if test "${wx_cv_version_script+set}" = set; then
29307 echo $ECHO_N "(cached) $ECHO_C" >&6
29308else
29309
29310 echo "VER_1 { *; };" >conftest.sym
29311 echo "int main() { return 0; }" >conftest.cpp
29312
29313 if { ac_try='
29314 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29315 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29317 (eval $ac_try) 2>&5
29318 ac_status=$?
29319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320 (exit $ac_status); }; } ; then
29321 if test -s conftest.stderr ; then
29322 wx_cv_version_script=no
29323 else
29324 wx_cv_version_script=yes
29325 fi
29326 else
29327 wx_cv_version_script=no
29328 fi
29329 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
29330
29331fi
29332echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29333echo "${ECHO_T}$wx_cv_version_script" >&6
29334 if test $wx_cv_version_script = yes ; then
29335 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29336 fi
29337 fi
29338
29339
29340 case "${host}" in
29341 *-*-linux* | *-*-gnu* )
29342 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29343 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29344 ;;
29345
29346 *-*-solaris2* )
29347 if test "$GCC" = yes ; then
29348 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29349
29350 saveLdflags="$LDFLAGS"
29351 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29352 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29353echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29354 cat >conftest.$ac_ext <<_ACEOF
29355/* confdefs.h. */
29356_ACEOF
29357cat confdefs.h >>conftest.$ac_ext
29358cat >>conftest.$ac_ext <<_ACEOF
29359/* end confdefs.h. */
29360
29361int
29362main ()
29363{
29364
29365 ;
29366 return 0;
29367}
29368_ACEOF
29369rm -f conftest.$ac_objext conftest$ac_exeext
29370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29371 (eval $ac_link) 2>conftest.er1
a848cd7e 29372 ac_status=$?
ac1cb8d3
VS
29373 grep -v '^ *+' conftest.er1 >conftest.err
29374 rm -f conftest.er1
29375 cat conftest.err >&5
a848cd7e
SC
29376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377 (exit $ac_status); } &&
9dd0f6c2 29378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29380 (eval $ac_try) 2>&5
29381 ac_status=$?
29382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383 (exit $ac_status); }; } &&
29384 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
29390
29391 echo "$as_me:$LINENO: result: yes" >&5
29392echo "${ECHO_T}yes" >&6
29393 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29394 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29395
29396else
29397 echo "$as_me: failed program was:" >&5
29398sed 's/^/| /' conftest.$ac_ext >&5
29399
29400
29401 echo "$as_me:$LINENO: result: no" >&5
29402echo "${ECHO_T}no" >&6
29403 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29404echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29405 LDFLAGS="$saveLdflags -Wl,-R,/"
29406 cat >conftest.$ac_ext <<_ACEOF
29407/* confdefs.h. */
29408_ACEOF
29409cat confdefs.h >>conftest.$ac_ext
29410cat >>conftest.$ac_ext <<_ACEOF
29411/* end confdefs.h. */
29412
29413int
29414main ()
29415{
29416
29417 ;
29418 return 0;
29419}
29420_ACEOF
29421rm -f conftest.$ac_objext conftest$ac_exeext
29422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29423 (eval $ac_link) 2>conftest.er1
a848cd7e 29424 ac_status=$?
ac1cb8d3
VS
29425 grep -v '^ *+' conftest.er1 >conftest.err
29426 rm -f conftest.er1
29427 cat conftest.err >&5
a848cd7e
SC
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); } &&
9dd0f6c2 29430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29432 (eval $ac_try) 2>&5
29433 ac_status=$?
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); }; } &&
29436 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
29442
ffa0583f 29443 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29444echo "${ECHO_T}yes" >&6
ffa0583f
RL
29445 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29446 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29447
a848cd7e
SC
29448else
29449 echo "$as_me: failed program was:" >&5
29450sed 's/^/| /' conftest.$ac_ext >&5
29451
29452
29453 echo "$as_me:$LINENO: result: no" >&5
29454echo "${ECHO_T}no" >&6
29455
29456fi
ac1cb8d3
VS
29457rm -f conftest.err conftest.$ac_objext \
29458 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29459
29460fi
ac1cb8d3
VS
29461rm -f conftest.err conftest.$ac_objext \
29462 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29463 LDFLAGS="$saveLdflags"
29464 else
a848cd7e 29465 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29466 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29467 fi
29468 ;;
29469
29470 powerpc-*-darwin* )
29471 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29472 cat <<EOF >change-install-names
29473#!/bin/sh
29474libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29475inst_cmd="install_name_tool "
29476for i in \${libnames} ; do
29477 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29478done
29479\${inst_cmd} \${3}
29480EOF
29481 chmod +x change-install-names
29482 ;;
29483
29484 *-*-cygwin* | *-*-mingw32* )
29485 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29486 ;;
29487
81f90336
MW
29488 *-*-hpux* )
29489 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29490 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29491 ;;
29492
a848cd7e 29493 esac
ceec2216 29494
ffa0583f
RL
29495 if test $wxUSE_RPATH = "no"; then
29496 SAMPLES_RPATH_FLAG=''
29497 SAMPLES_RPATH_POSTLINK=''
29498 WXCONFIG_RPATH=''
29499 fi
29500
29501 SHARED=1
29502
29503else
29504
ceec2216
RL
29505 config_linkage_component="-static"
29506 SHARED=0
ffa0583f 29507
ceec2216 29508fi
a848cd7e 29509
a848cd7e 29510
ceec2216
RL
29511UNICODE=0
29512lib_unicode_suffix=
29513WX_CHARTYPE="ansi"
29514if test "$wxUSE_UNICODE" = "yes"; then
29515 lib_unicode_suffix=u
29516 WX_CHARTYPE="unicode"
29517 UNICODE=1
a848cd7e
SC
29518fi
29519
ceec2216
RL
29520lib_debug_suffix=
29521WX_DEBUGTYPE="release"
29522DEBUG_FLAG=0
29523if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29524 lib_debug_suffix=d
29525 WX_DEBUGTYPE="debug"
29526 DEBUG_FLAG=1
29527fi
a848cd7e 29528
ceec2216
RL
29529WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29530WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 29531
ceec2216
RL
29532DEBUG_INFO=0
29533if test "$wxUSE_DEBUG_INFO" = "yes"; then
29534 DEBUG_INFO=1
29535fi
a848cd7e 29536
ceec2216 29537WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 29538
ceec2216 29539TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 29540
ceec2216 29541TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 29542
ceec2216
RL
29543if test "$cross_compiling" = "yes"; then
29544 HOST_SUFFIX="-$host_alias"
29545 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29546 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
29547fi
29548
dd21ced8 29549WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
29550WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29551
29552
29553
1d1af5ea
DE
29554if test "$wxUSE_COCOA" = 1; then
29555
29556
29557 ac_ext=c
29558ac_cpp='$CPP $CPPFLAGS'
29559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29561ac_compiler_gnu=$ac_cv_c_compiler_gnu
29562
29563ac_ext=m
29564
29565 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
29566echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
29567 cat >conftest.$ac_ext <<_ACEOF
29568/* confdefs.h. */
29569_ACEOF
29570cat confdefs.h >>conftest.$ac_ext
29571cat >>conftest.$ac_ext <<_ACEOF
29572/* end confdefs.h. */
29573#include <AppKit/NSEvent.h>
29574#include <CoreFoundation/CoreFoundation.h>
29575
29576int
29577main ()
29578{
29579
29580 ;
29581 return 0;
29582}
29583_ACEOF
29584rm -f conftest.$ac_objext
29585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29586 (eval $ac_compile) 2>conftest.er1
29587 ac_status=$?
29588 grep -v '^ *+' conftest.er1 >conftest.err
29589 rm -f conftest.er1
29590 cat conftest.err >&5
29591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592 (exit $ac_status); } &&
9dd0f6c2 29593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
29594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29595 (eval $ac_try) 2>&5
29596 ac_status=$?
29597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29598 (exit $ac_status); }; } &&
29599 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29605 echo "$as_me:$LINENO: result: no" >&5
29606echo "${ECHO_T}no" >&6
29607else
29608 echo "$as_me: failed program was:" >&5
29609sed 's/^/| /' conftest.$ac_ext >&5
29610
29611echo "$as_me:$LINENO: result: yes" >&5
29612echo "${ECHO_T}yes" >&6
29613 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
29614echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
29615 cat >conftest.$ac_ext <<_ACEOF
29616/* confdefs.h. */
29617_ACEOF
29618cat confdefs.h >>conftest.$ac_ext
29619cat >>conftest.$ac_ext <<_ACEOF
29620/* end confdefs.h. */
29621#define __Point__ 1
29622#include <AppKit/NSEvent.h>
29623#include <CoreFoundation/CoreFoundation.h>
29624
29625int
29626main ()
29627{
29628
29629 ;
29630 return 0;
29631}
29632_ACEOF
29633rm -f conftest.$ac_objext
29634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29635 (eval $ac_compile) 2>conftest.er1
29636 ac_status=$?
29637 grep -v '^ *+' conftest.er1 >conftest.err
29638 rm -f conftest.er1
29639 cat conftest.err >&5
29640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29641 (exit $ac_status); } &&
9dd0f6c2 29642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
29643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29644 (eval $ac_try) 2>&5
29645 ac_status=$?
29646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647 (exit $ac_status); }; } &&
29648 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29654 echo "$as_me:$LINENO: result: yes" >&5
29655echo "${ECHO_T}yes" >&6
29656 cat >>confdefs.h <<\_ACEOF
29657#define __Point__ 1
29658_ACEOF
29659
29660
29661else
29662 echo "$as_me: failed program was:" >&5
29663sed 's/^/| /' conftest.$ac_ext >&5
29664
29665{ { echo "$as_me:$LINENO: error: no
29666See \`config.log' for more details." >&5
29667echo "$as_me: error: no
29668See \`config.log' for more details." >&2;}
29669 { (exit 1); exit 1; }; }
29670
29671fi
29672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29673
29674fi
29675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29676 ac_ext=c
29677ac_cpp='$CPP $CPPFLAGS'
29678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29680ac_compiler_gnu=$ac_cv_c_compiler_gnu
29681
29682fi
29683
a848cd7e 29684if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
29685 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
29686 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 29687
a848cd7e 29688 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
29689
29690 # Extract the first word of "Rez", so it can be a program name with args.
29691set dummy Rez; ac_word=$2
29692echo "$as_me:$LINENO: checking for $ac_word" >&5
29693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29694if test "${ac_cv_prog_RESCOMP+set}" = set; then
29695 echo $ECHO_N "(cached) $ECHO_C" >&6
29696else
29697 if test -n "$RESCOMP"; then
29698 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
29699else
29700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29701for as_dir in $PATH
29702do
29703 IFS=$as_save_IFS
29704 test -z "$as_dir" && as_dir=.
29705 for ac_exec_ext in '' $ac_executable_extensions; do
29706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29707 ac_cv_prog_RESCOMP="Rez"
29708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29709 break 2
29710 fi
29711done
29712done
29713
29714 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29715fi
29716fi
29717RESCOMP=$ac_cv_prog_RESCOMP
29718if test -n "$RESCOMP"; then
29719 echo "$as_me:$LINENO: result: $RESCOMP" >&5
29720echo "${ECHO_T}$RESCOMP" >&6
29721else
29722 echo "$as_me:$LINENO: result: no" >&5
29723echo "${ECHO_T}no" >&6
29724fi
29725
29726 # Extract the first word of "DeRez", so it can be a program name with args.
29727set dummy DeRez; ac_word=$2
29728echo "$as_me:$LINENO: checking for $ac_word" >&5
29729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29730if test "${ac_cv_prog_DEREZ+set}" = set; then
29731 echo $ECHO_N "(cached) $ECHO_C" >&6
29732else
29733 if test -n "$DEREZ"; then
29734 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29735else
29736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29737for as_dir in $PATH
29738do
29739 IFS=$as_save_IFS
29740 test -z "$as_dir" && as_dir=.
29741 for ac_exec_ext in '' $ac_executable_extensions; do
29742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29743 ac_cv_prog_DEREZ="DeRez"
29744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29745 break 2
29746 fi
29747done
29748done
29749
29750 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29751fi
29752fi
29753DEREZ=$ac_cv_prog_DEREZ
29754if test -n "$DEREZ"; then
29755 echo "$as_me:$LINENO: result: $DEREZ" >&5
29756echo "${ECHO_T}$DEREZ" >&6
29757else
29758 echo "$as_me:$LINENO: result: no" >&5
29759echo "${ECHO_T}no" >&6
29760fi
29761
29762 # Extract the first word of "SetFile", so it can be a program name with args.
29763set dummy SetFile; ac_word=$2
29764echo "$as_me:$LINENO: checking for $ac_word" >&5
29765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29766if test "${ac_cv_prog_SETFILE+set}" = set; then
29767 echo $ECHO_N "(cached) $ECHO_C" >&6
29768else
29769 if test -n "$SETFILE"; then
29770 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
29771else
29772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29773for as_dir in $PATH
29774do
29775 IFS=$as_save_IFS
29776 test -z "$as_dir" && as_dir=.
29777 for ac_exec_ext in '' $ac_executable_extensions; do
29778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29779 ac_cv_prog_SETFILE="SetFile"
29780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29781 break 2
29782 fi
29783done
29784done
29785
29786 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
29787fi
29788fi
29789SETFILE=$ac_cv_prog_SETFILE
29790if test -n "$SETFILE"; then
29791 echo "$as_me:$LINENO: result: $SETFILE" >&5
29792echo "${ECHO_T}$SETFILE" >&6
29793else
29794 echo "$as_me:$LINENO: result: no" >&5
29795echo "${ECHO_T}no" >&6
29796fi
29797
29798
29799 MACSETFILE="\$(SETFILE)"
29800
29801 if test "$wxUSE_MAC" = 1; then
29802 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
29803
29804 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29805 else
29806 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
29807 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29808 fi
29809else
ffa0583f
RL
29810 MACSETFILE="@true"
29811 MACRESWXCONFIG="@true"
a848cd7e
SC
29812
29813 if test "$wxUSE_PM" = 1; then
29814 MACRESCOMP="emxbind -ep"
29815 else
ffa0583f 29816 MACRESCOMP="@true"
a848cd7e
SC
29817 fi
29818fi
29819
29820
29821
29822echo "$as_me:$LINENO: checking for mode_t" >&5
29823echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29824if test "${ac_cv_type_mode_t+set}" = set; then
29825 echo $ECHO_N "(cached) $ECHO_C" >&6
29826else
29827 cat >conftest.$ac_ext <<_ACEOF
29828/* confdefs.h. */
29829_ACEOF
29830cat confdefs.h >>conftest.$ac_ext
29831cat >>conftest.$ac_ext <<_ACEOF
29832/* end confdefs.h. */
29833$ac_includes_default
29834int
29835main ()
29836{
29837if ((mode_t *) 0)
29838 return 0;
29839if (sizeof (mode_t))
29840 return 0;
29841 ;
29842 return 0;
29843}
29844_ACEOF
29845rm -f conftest.$ac_objext
29846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29847 (eval $ac_compile) 2>conftest.er1
a848cd7e 29848 ac_status=$?
ac1cb8d3
VS
29849 grep -v '^ *+' conftest.er1 >conftest.err
29850 rm -f conftest.er1
29851 cat conftest.err >&5
a848cd7e
SC
29852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29853 (exit $ac_status); } &&
9dd0f6c2 29854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29856 (eval $ac_try) 2>&5
29857 ac_status=$?
29858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 (exit $ac_status); }; } &&
29860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
29866 ac_cv_type_mode_t=yes
29867else
29868 echo "$as_me: failed program was:" >&5
29869sed 's/^/| /' conftest.$ac_ext >&5
29870
29871ac_cv_type_mode_t=no
29872fi
ac1cb8d3 29873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29874fi
29875echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29876echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29877if test $ac_cv_type_mode_t = yes; then
29878 :
29879else
29880
29881cat >>confdefs.h <<_ACEOF
29882#define mode_t int
29883_ACEOF
29884
29885fi
29886
29887echo "$as_me:$LINENO: checking for off_t" >&5
29888echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29889if test "${ac_cv_type_off_t+set}" = set; then
29890 echo $ECHO_N "(cached) $ECHO_C" >&6
29891else
29892 cat >conftest.$ac_ext <<_ACEOF
29893/* confdefs.h. */
29894_ACEOF
29895cat confdefs.h >>conftest.$ac_ext
29896cat >>conftest.$ac_ext <<_ACEOF
29897/* end confdefs.h. */
29898$ac_includes_default
29899int
29900main ()
29901{
29902if ((off_t *) 0)
29903 return 0;
29904if (sizeof (off_t))
29905 return 0;
29906 ;
29907 return 0;
29908}
29909_ACEOF
29910rm -f conftest.$ac_objext
29911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29912 (eval $ac_compile) 2>conftest.er1
a848cd7e 29913 ac_status=$?
ac1cb8d3
VS
29914 grep -v '^ *+' conftest.er1 >conftest.err
29915 rm -f conftest.er1
29916 cat conftest.err >&5
a848cd7e
SC
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); } &&
9dd0f6c2 29919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29921 (eval $ac_try) 2>&5
29922 ac_status=$?
29923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924 (exit $ac_status); }; } &&
29925 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
29931 ac_cv_type_off_t=yes
29932else
29933 echo "$as_me: failed program was:" >&5
29934sed 's/^/| /' conftest.$ac_ext >&5
29935
29936ac_cv_type_off_t=no
29937fi
ac1cb8d3 29938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29939fi
29940echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29941echo "${ECHO_T}$ac_cv_type_off_t" >&6
29942if test $ac_cv_type_off_t = yes; then
29943 :
29944else
29945
29946cat >>confdefs.h <<_ACEOF
29947#define off_t long
29948_ACEOF
29949
29950fi
29951
29952echo "$as_me:$LINENO: checking for pid_t" >&5
29953echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29954if test "${ac_cv_type_pid_t+set}" = set; then
29955 echo $ECHO_N "(cached) $ECHO_C" >&6
29956else
29957 cat >conftest.$ac_ext <<_ACEOF
29958/* confdefs.h. */
29959_ACEOF
29960cat confdefs.h >>conftest.$ac_ext
29961cat >>conftest.$ac_ext <<_ACEOF
29962/* end confdefs.h. */
29963$ac_includes_default
29964int
29965main ()
29966{
29967if ((pid_t *) 0)
29968 return 0;
29969if (sizeof (pid_t))
29970 return 0;
29971 ;
29972 return 0;
29973}
29974_ACEOF
29975rm -f conftest.$ac_objext
29976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29977 (eval $ac_compile) 2>conftest.er1
a848cd7e 29978 ac_status=$?
ac1cb8d3
VS
29979 grep -v '^ *+' conftest.er1 >conftest.err
29980 rm -f conftest.er1
29981 cat conftest.err >&5
a848cd7e
SC
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); } &&
9dd0f6c2 29984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29986 (eval $ac_try) 2>&5
29987 ac_status=$?
29988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989 (exit $ac_status); }; } &&
29990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
29996 ac_cv_type_pid_t=yes
29997else
29998 echo "$as_me: failed program was:" >&5
29999sed 's/^/| /' conftest.$ac_ext >&5
30000
30001ac_cv_type_pid_t=no
30002fi
ac1cb8d3 30003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30004fi
30005echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30006echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30007if test $ac_cv_type_pid_t = yes; then
30008 :
30009else
30010
30011cat >>confdefs.h <<_ACEOF
30012#define pid_t int
30013_ACEOF
30014
30015fi
30016
30017echo "$as_me:$LINENO: checking for size_t" >&5
30018echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30019if test "${ac_cv_type_size_t+set}" = set; then
30020 echo $ECHO_N "(cached) $ECHO_C" >&6
30021else
30022 cat >conftest.$ac_ext <<_ACEOF
30023/* confdefs.h. */
30024_ACEOF
30025cat confdefs.h >>conftest.$ac_ext
30026cat >>conftest.$ac_ext <<_ACEOF
30027/* end confdefs.h. */
30028$ac_includes_default
30029int
30030main ()
30031{
30032if ((size_t *) 0)
30033 return 0;
30034if (sizeof (size_t))
30035 return 0;
30036 ;
30037 return 0;
30038}
30039_ACEOF
30040rm -f conftest.$ac_objext
30041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30042 (eval $ac_compile) 2>conftest.er1
a848cd7e 30043 ac_status=$?
ac1cb8d3
VS
30044 grep -v '^ *+' conftest.er1 >conftest.err
30045 rm -f conftest.er1
30046 cat conftest.err >&5
a848cd7e
SC
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); } &&
9dd0f6c2 30049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30051 (eval $ac_try) 2>&5
30052 ac_status=$?
30053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); }; } &&
30055 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30057 (eval $ac_try) 2>&5
30058 ac_status=$?
30059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); }; }; then
30061 ac_cv_type_size_t=yes
30062else
30063 echo "$as_me: failed program was:" >&5
30064sed 's/^/| /' conftest.$ac_ext >&5
30065
30066ac_cv_type_size_t=no
30067fi
ac1cb8d3 30068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30069fi
30070echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30071echo "${ECHO_T}$ac_cv_type_size_t" >&6
30072if test $ac_cv_type_size_t = yes; then
30073 :
30074else
30075
30076cat >>confdefs.h <<_ACEOF
30077#define size_t unsigned
30078_ACEOF
30079
30080fi
30081
30082echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30083echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30084if test "${ac_cv_type_uid_t+set}" = set; then
30085 echo $ECHO_N "(cached) $ECHO_C" >&6
30086else
30087 cat >conftest.$ac_ext <<_ACEOF
30088/* confdefs.h. */
30089_ACEOF
30090cat confdefs.h >>conftest.$ac_ext
30091cat >>conftest.$ac_ext <<_ACEOF
30092/* end confdefs.h. */
30093#include <sys/types.h>
30094
30095_ACEOF
30096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30097 $EGREP "uid_t" >/dev/null 2>&1; then
30098 ac_cv_type_uid_t=yes
30099else
30100 ac_cv_type_uid_t=no
30101fi
30102rm -f conftest*
30103
30104fi
30105echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30106echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30107if test $ac_cv_type_uid_t = no; then
30108
30109cat >>confdefs.h <<\_ACEOF
30110#define uid_t int
30111_ACEOF
30112
30113
30114cat >>confdefs.h <<\_ACEOF
30115#define gid_t int
30116_ACEOF
30117
30118fi
30119
30120
d51253e8
RL
30121echo "$as_me:$LINENO: checking for ssize_t" >&5
30122echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30123if test "${ac_cv_type_ssize_t+set}" = set; then
30124 echo $ECHO_N "(cached) $ECHO_C" >&6
30125else
30126 cat >conftest.$ac_ext <<_ACEOF
30127/* confdefs.h. */
30128_ACEOF
30129cat confdefs.h >>conftest.$ac_ext
30130cat >>conftest.$ac_ext <<_ACEOF
30131/* end confdefs.h. */
30132$ac_includes_default
30133int
30134main ()
30135{
30136if ((ssize_t *) 0)
30137 return 0;
30138if (sizeof (ssize_t))
30139 return 0;
30140 ;
30141 return 0;
30142}
30143_ACEOF
30144rm -f conftest.$ac_objext
30145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30146 (eval $ac_compile) 2>conftest.er1
30147 ac_status=$?
30148 grep -v '^ *+' conftest.er1 >conftest.err
30149 rm -f conftest.er1
30150 cat conftest.err >&5
30151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30152 (exit $ac_status); } &&
9dd0f6c2 30153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
30154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30155 (eval $ac_try) 2>&5
30156 ac_status=$?
30157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158 (exit $ac_status); }; } &&
30159 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
30165 ac_cv_type_ssize_t=yes
30166else
30167 echo "$as_me: failed program was:" >&5
30168sed 's/^/| /' conftest.$ac_ext >&5
30169
30170ac_cv_type_ssize_t=no
30171fi
30172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30173fi
30174echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30175echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30176if test $ac_cv_type_ssize_t = yes; then
30177
30178cat >>confdefs.h <<_ACEOF
30179#define HAVE_SSIZE_T 1
30180_ACEOF
30181
30182
30183fi
30184
30185
a848cd7e
SC
30186
30187
30188ac_ext=cc
30189ac_cpp='$CXXCPP $CPPFLAGS'
30190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30193
30194echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30195echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30196if test "${wx_cv_size_t_is_uint+set}" = set; then
30197 echo $ECHO_N "(cached) $ECHO_C" >&6
30198else
30199
30200 cat >conftest.$ac_ext <<_ACEOF
30201/* confdefs.h. */
30202_ACEOF
30203cat confdefs.h >>conftest.$ac_ext
30204cat >>conftest.$ac_ext <<_ACEOF
30205/* end confdefs.h. */
30206#include <stddef.h>
30207int
30208main ()
30209{
30210
30211 return 0; }
30212
30213 struct Foo { void foo(size_t); void foo(unsigned int); };
30214
30215 int bar() {
30216
30217 ;
30218 return 0;
30219}
30220_ACEOF
30221rm -f conftest.$ac_objext
30222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30223 (eval $ac_compile) 2>conftest.er1
a848cd7e 30224 ac_status=$?
ac1cb8d3
VS
30225 grep -v '^ *+' conftest.er1 >conftest.err
30226 rm -f conftest.er1
30227 cat conftest.err >&5
a848cd7e
SC
30228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30229 (exit $ac_status); } &&
9dd0f6c2 30230 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30232 (eval $ac_try) 2>&5
30233 ac_status=$?
30234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30235 (exit $ac_status); }; } &&
30236 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
30242 wx_cv_size_t_is_uint=no
30243else
30244 echo "$as_me: failed program was:" >&5
30245sed 's/^/| /' conftest.$ac_ext >&5
30246
30247wx_cv_size_t_is_uint=yes
30248
30249fi
ac1cb8d3 30250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30251
30252
30253fi
30254echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30255echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30256
30257if test "$wx_cv_size_t_is_uint" = "yes"; then
30258 cat >>confdefs.h <<\_ACEOF
30259#define wxSIZE_T_IS_UINT 1
30260_ACEOF
30261
30262else
30263 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30264echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30265if test "${wx_cv_size_t_is_ulong+set}" = set; then
30266 echo $ECHO_N "(cached) $ECHO_C" >&6
30267else
30268 cat >conftest.$ac_ext <<_ACEOF
30269/* confdefs.h. */
30270_ACEOF
30271cat confdefs.h >>conftest.$ac_ext
30272cat >>conftest.$ac_ext <<_ACEOF
30273/* end confdefs.h. */
30274#include <stddef.h>
30275int
30276main ()
30277{
30278
30279 return 0; }
30280
30281 struct Foo { void foo(size_t); void foo(unsigned long); };
30282
30283 int bar() {
30284
30285 ;
30286 return 0;
30287}
30288_ACEOF
30289rm -f conftest.$ac_objext
30290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30291 (eval $ac_compile) 2>conftest.er1
a848cd7e 30292 ac_status=$?
ac1cb8d3
VS
30293 grep -v '^ *+' conftest.er1 >conftest.err
30294 rm -f conftest.er1
30295 cat conftest.err >&5
a848cd7e
SC
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297 (exit $ac_status); } &&
9dd0f6c2 30298 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30300 (eval $ac_try) 2>&5
30301 ac_status=$?
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303 (exit $ac_status); }; } &&
30304 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
30310 wx_cv_size_t_is_ulong=no
30311else
30312 echo "$as_me: failed program was:" >&5
30313sed 's/^/| /' conftest.$ac_ext >&5
30314
30315wx_cv_size_t_is_ulong=yes
30316
30317fi
ac1cb8d3 30318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30319
30320fi
30321echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30322echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30323
30324 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30325 cat >>confdefs.h <<\_ACEOF
30326#define wxSIZE_T_IS_ULONG 1
30327_ACEOF
30328
30329 fi
30330fi
30331
30332ac_ext=c
30333ac_cpp='$CPP $CPPFLAGS'
30334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30336ac_compiler_gnu=$ac_cv_c_compiler_gnu
30337
30338
30339
30340echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30341echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30342if test "${wx_cv_struct_pw_gecos+set}" = set; then
30343 echo $ECHO_N "(cached) $ECHO_C" >&6
30344else
30345
30346 cat >conftest.$ac_ext <<_ACEOF
30347/* confdefs.h. */
30348_ACEOF
30349cat confdefs.h >>conftest.$ac_ext
30350cat >>conftest.$ac_ext <<_ACEOF
30351/* end confdefs.h. */
30352#include <pwd.h>
30353int
30354main ()
30355{
30356
30357 char *p;
30358 struct passwd *pw;
30359 p = pw->pw_gecos;
30360
30361 ;
30362 return 0;
30363}
30364_ACEOF
30365rm -f conftest.$ac_objext
30366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30367 (eval $ac_compile) 2>conftest.er1
a848cd7e 30368 ac_status=$?
ac1cb8d3
VS
30369 grep -v '^ *+' conftest.er1 >conftest.err
30370 rm -f conftest.er1
30371 cat conftest.err >&5
a848cd7e
SC
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); } &&
9dd0f6c2 30374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30376 (eval $ac_try) 2>&5
30377 ac_status=$?
30378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379 (exit $ac_status); }; } &&
30380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
30386
30387 wx_cv_struct_pw_gecos=yes
30388
30389else
30390 echo "$as_me: failed program was:" >&5
30391sed 's/^/| /' conftest.$ac_ext >&5
30392
30393
30394 wx_cv_struct_pw_gecos=no
30395
30396
30397fi
ac1cb8d3 30398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30399
30400
30401fi
30402echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30403echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30404
30405if test "$wx_cv_struct_pw_gecos" = "yes"; then
30406 cat >>confdefs.h <<\_ACEOF
30407#define HAVE_PW_GECOS 1
30408_ACEOF
30409
30410fi
30411
30412
238ecede 30413if test "$ac_cv_sizeof_wchar_t" != "0"; then
a848cd7e
SC
30414 cat >>confdefs.h <<\_ACEOF
30415#define wxUSE_WCHAR_T 1
30416_ACEOF
30417
30418
30419 WCSLEN_FOUND=0
30420 WCHAR_LINK=
30421
30422for ac_func in wcslen
30423do
30424as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30425echo "$as_me:$LINENO: checking for $ac_func" >&5
30426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30427if eval "test \"\${$as_ac_var+set}\" = set"; then
30428 echo $ECHO_N "(cached) $ECHO_C" >&6
30429else
30430 cat >conftest.$ac_ext <<_ACEOF
30431/* confdefs.h. */
30432_ACEOF
30433cat confdefs.h >>conftest.$ac_ext
30434cat >>conftest.$ac_ext <<_ACEOF
30435/* end confdefs.h. */
ac1cb8d3
VS
30436/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30438#define $ac_func innocuous_$ac_func
30439
a848cd7e
SC
30440/* System header to define __stub macros and hopefully few prototypes,
30441 which can conflict with char $ac_func (); below.
30442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30443 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30444
a848cd7e
SC
30445#ifdef __STDC__
30446# include <limits.h>
30447#else
30448# include <assert.h>
30449#endif
ac1cb8d3
VS
30450
30451#undef $ac_func
30452
a848cd7e
SC
30453/* Override any gcc2 internal prototype to avoid an error. */
30454#ifdef __cplusplus
30455extern "C"
30456{
30457#endif
30458/* We use char because int might match the return type of a gcc2
30459 builtin and then its argument prototype would still apply. */
30460char $ac_func ();
30461/* The GNU C library defines this for functions which it implements
30462 to always fail with ENOSYS. Some functions are actually named
30463 something starting with __ and the normal name is an alias. */
30464#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30465choke me
30466#else
30467char (*f) () = $ac_func;
30468#endif
30469#ifdef __cplusplus
30470}
30471#endif
30472
30473int
30474main ()
30475{
30476return f != $ac_func;
30477 ;
30478 return 0;
30479}
30480_ACEOF
30481rm -f conftest.$ac_objext conftest$ac_exeext
30482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30483 (eval $ac_link) 2>conftest.er1
a848cd7e 30484 ac_status=$?
ac1cb8d3
VS
30485 grep -v '^ *+' conftest.er1 >conftest.err
30486 rm -f conftest.er1
30487 cat conftest.err >&5
a848cd7e
SC
30488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); } &&
9dd0f6c2 30490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30492 (eval $ac_try) 2>&5
30493 ac_status=$?
30494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495 (exit $ac_status); }; } &&
30496 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
30502 eval "$as_ac_var=yes"
30503else
30504 echo "$as_me: failed program was:" >&5
30505sed 's/^/| /' conftest.$ac_ext >&5
30506
30507eval "$as_ac_var=no"
30508fi
ac1cb8d3
VS
30509rm -f conftest.err conftest.$ac_objext \
30510 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30511fi
30512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30513echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30514if test `eval echo '${'$as_ac_var'}'` = yes; then
30515 cat >>confdefs.h <<_ACEOF
30516#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30517_ACEOF
30518 WCSLEN_FOUND=1
30519fi
30520done
30521
30522
30523 if test "$WCSLEN_FOUND" = 0; then
30524 if test "$TOOLKIT" = "MSW"; then
30525 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30526echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30527if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30528 echo $ECHO_N "(cached) $ECHO_C" >&6
30529else
30530 ac_check_lib_save_LIBS=$LIBS
30531LIBS="-lmsvcrt $LIBS"
30532cat >conftest.$ac_ext <<_ACEOF
30533/* confdefs.h. */
30534_ACEOF
30535cat confdefs.h >>conftest.$ac_ext
30536cat >>conftest.$ac_ext <<_ACEOF
30537/* end confdefs.h. */
30538
30539/* Override any gcc2 internal prototype to avoid an error. */
30540#ifdef __cplusplus
30541extern "C"
30542#endif
30543/* We use char because int might match the return type of a gcc2
30544 builtin and then its argument prototype would still apply. */
30545char wcslen ();
30546int
30547main ()
30548{
30549wcslen ();
30550 ;
30551 return 0;
30552}
30553_ACEOF
30554rm -f conftest.$ac_objext conftest$ac_exeext
30555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30556 (eval $ac_link) 2>conftest.er1
a848cd7e 30557 ac_status=$?
ac1cb8d3
VS
30558 grep -v '^ *+' conftest.er1 >conftest.err
30559 rm -f conftest.er1
30560 cat conftest.err >&5
a848cd7e
SC
30561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562 (exit $ac_status); } &&
9dd0f6c2 30563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30565 (eval $ac_try) 2>&5
30566 ac_status=$?
30567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568 (exit $ac_status); }; } &&
30569 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
30575 ac_cv_lib_msvcrt_wcslen=yes
30576else
30577 echo "$as_me: failed program was:" >&5
30578sed 's/^/| /' conftest.$ac_ext >&5
30579
30580ac_cv_lib_msvcrt_wcslen=no
30581fi
ac1cb8d3
VS
30582rm -f conftest.err conftest.$ac_objext \
30583 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30584LIBS=$ac_check_lib_save_LIBS
30585fi
30586echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
30587echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
30588if test $ac_cv_lib_msvcrt_wcslen = yes; then
30589 WCHAR_OK=1
30590fi
30591
30592 else
30593 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
30594echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
30595if test "${ac_cv_lib_w_wcslen+set}" = set; then
30596 echo $ECHO_N "(cached) $ECHO_C" >&6
30597else
30598 ac_check_lib_save_LIBS=$LIBS
30599LIBS="-lw $LIBS"
30600cat >conftest.$ac_ext <<_ACEOF
30601/* confdefs.h. */
30602_ACEOF
30603cat confdefs.h >>conftest.$ac_ext
30604cat >>conftest.$ac_ext <<_ACEOF
30605/* end confdefs.h. */
30606
30607/* Override any gcc2 internal prototype to avoid an error. */
30608#ifdef __cplusplus
30609extern "C"
30610#endif
30611/* We use char because int might match the return type of a gcc2
30612 builtin and then its argument prototype would still apply. */
30613char wcslen ();
30614int
30615main ()
30616{
30617wcslen ();
30618 ;
30619 return 0;
30620}
30621_ACEOF
30622rm -f conftest.$ac_objext conftest$ac_exeext
30623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30624 (eval $ac_link) 2>conftest.er1
a848cd7e 30625 ac_status=$?
ac1cb8d3
VS
30626 grep -v '^ *+' conftest.er1 >conftest.err
30627 rm -f conftest.er1
30628 cat conftest.err >&5
a848cd7e
SC
30629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30630 (exit $ac_status); } &&
9dd0f6c2 30631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30633 (eval $ac_try) 2>&5
30634 ac_status=$?
30635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636 (exit $ac_status); }; } &&
30637 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
30643 ac_cv_lib_w_wcslen=yes
30644else
30645 echo "$as_me: failed program was:" >&5
30646sed 's/^/| /' conftest.$ac_ext >&5
30647
30648ac_cv_lib_w_wcslen=no
30649fi
ac1cb8d3
VS
30650rm -f conftest.err conftest.$ac_objext \
30651 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30652LIBS=$ac_check_lib_save_LIBS
30653fi
30654echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
30655echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
30656if test $ac_cv_lib_w_wcslen = yes; then
30657
30658 WCHAR_LINK=" -lw"
30659 WCSLEN_FOUND=1
30660
30661fi
30662
30663 fi
30664 fi
30665
30666 if test "$WCSLEN_FOUND" = 1; then
30667 cat >>confdefs.h <<\_ACEOF
30668#define HAVE_WCSLEN 1
30669_ACEOF
30670
30671 fi
30672
81f90336 30673 if test "$USE_HPUX" = 1; then
473276a9
VS
30674 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
30675 fi
30676
a848cd7e
SC
30677
30678for ac_func in wcsrtombs
30679do
30680as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30681echo "$as_me:$LINENO: checking for $ac_func" >&5
30682echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30683if eval "test \"\${$as_ac_var+set}\" = set"; then
30684 echo $ECHO_N "(cached) $ECHO_C" >&6
30685else
30686 cat >conftest.$ac_ext <<_ACEOF
30687/* confdefs.h. */
30688_ACEOF
30689cat confdefs.h >>conftest.$ac_ext
30690cat >>conftest.$ac_ext <<_ACEOF
30691/* end confdefs.h. */
ac1cb8d3
VS
30692/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30694#define $ac_func innocuous_$ac_func
30695
a848cd7e
SC
30696/* System header to define __stub macros and hopefully few prototypes,
30697 which can conflict with char $ac_func (); below.
30698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30699 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30700
a848cd7e
SC
30701#ifdef __STDC__
30702# include <limits.h>
30703#else
30704# include <assert.h>
30705#endif
ac1cb8d3
VS
30706
30707#undef $ac_func
30708
a848cd7e
SC
30709/* Override any gcc2 internal prototype to avoid an error. */
30710#ifdef __cplusplus
30711extern "C"
30712{
30713#endif
30714/* We use char because int might match the return type of a gcc2
30715 builtin and then its argument prototype would still apply. */
30716char $ac_func ();
30717/* The GNU C library defines this for functions which it implements
30718 to always fail with ENOSYS. Some functions are actually named
30719 something starting with __ and the normal name is an alias. */
30720#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30721choke me
30722#else
30723char (*f) () = $ac_func;
30724#endif
30725#ifdef __cplusplus
30726}
30727#endif
30728
30729int
30730main ()
30731{
30732return f != $ac_func;
30733 ;
30734 return 0;
30735}
30736_ACEOF
30737rm -f conftest.$ac_objext conftest$ac_exeext
30738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30739 (eval $ac_link) 2>conftest.er1
a848cd7e 30740 ac_status=$?
ac1cb8d3
VS
30741 grep -v '^ *+' conftest.er1 >conftest.err
30742 rm -f conftest.er1
30743 cat conftest.err >&5
a848cd7e
SC
30744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30745 (exit $ac_status); } &&
9dd0f6c2 30746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30748 (eval $ac_try) 2>&5
30749 ac_status=$?
30750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30751 (exit $ac_status); }; } &&
30752 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
30758 eval "$as_ac_var=yes"
30759else
30760 echo "$as_me: failed program was:" >&5
30761sed 's/^/| /' conftest.$ac_ext >&5
30762
30763eval "$as_ac_var=no"
30764fi
ac1cb8d3
VS
30765rm -f conftest.err conftest.$ac_objext \
30766 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30767fi
30768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30769echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30770if test `eval echo '${'$as_ac_var'}'` = yes; then
30771 cat >>confdefs.h <<_ACEOF
30772#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30773_ACEOF
30774
30775fi
30776done
30777
30778else
30779 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
30780echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
30781fi
30782
30783
30784
30785ac_ext=cc
30786ac_cpp='$CXXCPP $CPPFLAGS'
30787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30790
30791
30792
30793for ac_func in vsnprintf
30794do
30795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30796echo "$as_me:$LINENO: checking for $ac_func" >&5
30797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30798if eval "test \"\${$as_ac_var+set}\" = set"; then
30799 echo $ECHO_N "(cached) $ECHO_C" >&6
30800else
30801 cat >conftest.$ac_ext <<_ACEOF
30802/* confdefs.h. */
30803_ACEOF
30804cat confdefs.h >>conftest.$ac_ext
30805cat >>conftest.$ac_ext <<_ACEOF
30806/* end confdefs.h. */
ac1cb8d3
VS
30807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30809#define $ac_func innocuous_$ac_func
30810
a848cd7e
SC
30811/* System header to define __stub macros and hopefully few prototypes,
30812 which can conflict with char $ac_func (); below.
30813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30814 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30815
a848cd7e
SC
30816#ifdef __STDC__
30817# include <limits.h>
30818#else
30819# include <assert.h>
30820#endif
ac1cb8d3
VS
30821
30822#undef $ac_func
30823
a848cd7e
SC
30824/* Override any gcc2 internal prototype to avoid an error. */
30825#ifdef __cplusplus
30826extern "C"
30827{
30828#endif
30829/* We use char because int might match the return type of a gcc2
30830 builtin and then its argument prototype would still apply. */
30831char $ac_func ();
30832/* The GNU C library defines this for functions which it implements
30833 to always fail with ENOSYS. Some functions are actually named
30834 something starting with __ and the normal name is an alias. */
30835#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30836choke me
30837#else
30838char (*f) () = $ac_func;
30839#endif
30840#ifdef __cplusplus
30841}
30842#endif
30843
30844int
30845main ()
30846{
30847return f != $ac_func;
30848 ;
30849 return 0;
30850}
30851_ACEOF
30852rm -f conftest.$ac_objext conftest$ac_exeext
30853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30854 (eval $ac_link) 2>conftest.er1
a848cd7e 30855 ac_status=$?
ac1cb8d3
VS
30856 grep -v '^ *+' conftest.er1 >conftest.err
30857 rm -f conftest.er1
30858 cat conftest.err >&5
a848cd7e
SC
30859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30860 (exit $ac_status); } &&
9dd0f6c2 30861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30863 (eval $ac_try) 2>&5
30864 ac_status=$?
30865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30866 (exit $ac_status); }; } &&
30867 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
30873 eval "$as_ac_var=yes"
30874else
30875 echo "$as_me: failed program was:" >&5
30876sed 's/^/| /' conftest.$ac_ext >&5
30877
30878eval "$as_ac_var=no"
30879fi
ac1cb8d3
VS
30880rm -f conftest.err conftest.$ac_objext \
30881 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30882fi
30883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30884echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30885if test `eval echo '${'$as_ac_var'}'` = yes; then
30886 cat >>confdefs.h <<_ACEOF
30887#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30888_ACEOF
30889
30890fi
30891done
30892
30893
30894if test "$ac_cv_func_vsnprintf" = "yes"; then
30895 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30896echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30897if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30898 echo $ECHO_N "(cached) $ECHO_C" >&6
30899else
30900
30901 cat >conftest.$ac_ext <<_ACEOF
30902/* confdefs.h. */
30903_ACEOF
30904cat confdefs.h >>conftest.$ac_ext
30905cat >>conftest.$ac_ext <<_ACEOF
30906/* end confdefs.h. */
30907
30908 #include <stdio.h>
30909 #include <stdarg.h>
30910
30911int
30912main ()
30913{
30914
30915 char *buf;
30916 va_list ap;
30917 vsnprintf(buf, 10u, "%s", ap);
30918
30919 ;
30920 return 0;
30921}
30922_ACEOF
30923rm -f conftest.$ac_objext
30924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30925 (eval $ac_compile) 2>conftest.er1
a848cd7e 30926 ac_status=$?
ac1cb8d3
VS
30927 grep -v '^ *+' conftest.er1 >conftest.err
30928 rm -f conftest.er1
30929 cat conftest.err >&5
a848cd7e
SC
30930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931 (exit $ac_status); } &&
9dd0f6c2 30932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30934 (eval $ac_try) 2>&5
30935 ac_status=$?
30936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937 (exit $ac_status); }; } &&
30938 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
30944 wx_cv_func_vsnprintf_decl=yes
30945else
30946 echo "$as_me: failed program was:" >&5
30947sed 's/^/| /' conftest.$ac_ext >&5
30948
c122b164
DE
30949
30950 cat >conftest.$ac_ext <<_ACEOF
30951/* confdefs.h. */
30952_ACEOF
30953cat confdefs.h >>conftest.$ac_ext
30954cat >>conftest.$ac_ext <<_ACEOF
30955/* end confdefs.h. */
30956
30957 #include <stdio.h>
30958 #include <stdarg.h>
30959 using namespace std;
30960
30961int
30962main ()
30963{
30964
30965 char *buf;
30966 va_list ap;
30967 vsnprintf(buf, 10u, "%s", ap);
30968
30969 ;
30970 return 0;
30971}
30972_ACEOF
30973rm -f conftest.$ac_objext
30974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30975 (eval $ac_compile) 2>conftest.er1
30976 ac_status=$?
30977 grep -v '^ *+' conftest.er1 >conftest.err
30978 rm -f conftest.er1
30979 cat conftest.err >&5
30980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981 (exit $ac_status); } &&
9dd0f6c2 30982 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
30983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30984 (eval $ac_try) 2>&5
30985 ac_status=$?
30986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987 (exit $ac_status); }; } &&
30988 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
30994 wx_cv_func_vsnprintf_decl=yes
30995else
30996 echo "$as_me: failed program was:" >&5
30997sed 's/^/| /' conftest.$ac_ext >&5
30998
a848cd7e
SC
30999wx_cv_func_vsnprintf_decl=no
31000
31001fi
ac1cb8d3 31002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31003
31004
c122b164
DE
31005fi
31006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31007
31008
a848cd7e
SC
31009fi
31010echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31011echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31012
31013 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31014 cat >>confdefs.h <<\_ACEOF
31015#define HAVE_VSNPRINTF_DECL 1
31016_ACEOF
31017
31018 fi
31019fi
31020
31021if test "$wxUSE_UNICODE" = yes; then
31022
31023
31024
fbe47c7b
VS
31025
31026
31027
31028for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31029do
31030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31031echo "$as_me:$LINENO: checking for $ac_func" >&5
31032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31033if eval "test \"\${$as_ac_var+set}\" = set"; then
31034 echo $ECHO_N "(cached) $ECHO_C" >&6
31035else
31036 cat >conftest.$ac_ext <<_ACEOF
31037/* confdefs.h. */
31038_ACEOF
31039cat confdefs.h >>conftest.$ac_ext
31040cat >>conftest.$ac_ext <<_ACEOF
31041/* end confdefs.h. */
ac1cb8d3
VS
31042/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31044#define $ac_func innocuous_$ac_func
31045
a848cd7e
SC
31046/* System header to define __stub macros and hopefully few prototypes,
31047 which can conflict with char $ac_func (); below.
31048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31049 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31050
a848cd7e
SC
31051#ifdef __STDC__
31052# include <limits.h>
31053#else
31054# include <assert.h>
31055#endif
ac1cb8d3
VS
31056
31057#undef $ac_func
31058
a848cd7e
SC
31059/* Override any gcc2 internal prototype to avoid an error. */
31060#ifdef __cplusplus
31061extern "C"
31062{
31063#endif
31064/* We use char because int might match the return type of a gcc2
31065 builtin and then its argument prototype would still apply. */
31066char $ac_func ();
31067/* The GNU C library defines this for functions which it implements
31068 to always fail with ENOSYS. Some functions are actually named
31069 something starting with __ and the normal name is an alias. */
31070#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31071choke me
31072#else
31073char (*f) () = $ac_func;
31074#endif
31075#ifdef __cplusplus
31076}
31077#endif
31078
31079int
31080main ()
31081{
31082return f != $ac_func;
31083 ;
31084 return 0;
31085}
31086_ACEOF
31087rm -f conftest.$ac_objext conftest$ac_exeext
31088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31089 (eval $ac_link) 2>conftest.er1
a848cd7e 31090 ac_status=$?
ac1cb8d3
VS
31091 grep -v '^ *+' conftest.er1 >conftest.err
31092 rm -f conftest.er1
31093 cat conftest.err >&5
a848cd7e
SC
31094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31095 (exit $ac_status); } &&
9dd0f6c2 31096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31098 (eval $ac_try) 2>&5
31099 ac_status=$?
31100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31101 (exit $ac_status); }; } &&
31102 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
31108 eval "$as_ac_var=yes"
31109else
31110 echo "$as_me: failed program was:" >&5
31111sed 's/^/| /' conftest.$ac_ext >&5
31112
31113eval "$as_ac_var=no"
31114fi
ac1cb8d3
VS
31115rm -f conftest.err conftest.$ac_objext \
31116 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31117fi
31118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31119echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31120if test `eval echo '${'$as_ac_var'}'` = yes; then
31121 cat >>confdefs.h <<_ACEOF
31122#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31123_ACEOF
31124
31125fi
31126done
31127
31128
31129 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31130echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31131 cat >conftest.$ac_ext <<_ACEOF
31132/* confdefs.h. */
31133_ACEOF
31134cat confdefs.h >>conftest.$ac_ext
31135cat >>conftest.$ac_ext <<_ACEOF
31136/* end confdefs.h. */
31137#include <wchar.h>
31138int
31139main ()
31140{
31141&_vsnwprintf;
31142 ;
31143 return 0;
31144}
31145_ACEOF
31146rm -f conftest.$ac_objext
31147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31148 (eval $ac_compile) 2>conftest.er1
a848cd7e 31149 ac_status=$?
ac1cb8d3
VS
31150 grep -v '^ *+' conftest.er1 >conftest.err
31151 rm -f conftest.er1
31152 cat conftest.err >&5
a848cd7e
SC
31153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31154 (exit $ac_status); } &&
9dd0f6c2 31155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31157 (eval $ac_try) 2>&5
31158 ac_status=$?
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); }; } &&
31161 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
31167 echo "$as_me:$LINENO: result: yes" >&5
31168echo "${ECHO_T}yes" >&6
31169 cat >>confdefs.h <<\_ACEOF
31170#define HAVE__VSNWPRINTF 1
31171_ACEOF
31172
31173else
31174 echo "$as_me: failed program was:" >&5
31175sed 's/^/| /' conftest.$ac_ext >&5
31176
31177echo "$as_me:$LINENO: result: no" >&5
31178echo "${ECHO_T}no" >&6
31179fi
ac1cb8d3 31180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31181fi
31182
31183ac_ext=c
31184ac_cpp='$CPP $CPPFLAGS'
31185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31187ac_compiler_gnu=$ac_cv_c_compiler_gnu
31188
31189
31190
31191
31192if test "$TOOLKIT" != "MSW"; then
31193
31194
31195
31196
31197ac_ext=cc
31198ac_cpp='$CXXCPP $CPPFLAGS'
31199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31202
31203
31204
31205
31206# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31207if test "${with_libiconv_prefix+set}" = set; then
31208 withval="$with_libiconv_prefix"
31209
31210 for dir in `echo "$withval" | tr : ' '`; do
31211 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31212 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31213 done
31214
31215fi;
31216
31217 echo "$as_me:$LINENO: checking for iconv" >&5
31218echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31219if test "${am_cv_func_iconv+set}" = set; then
31220 echo $ECHO_N "(cached) $ECHO_C" >&6
31221else
31222
31223 am_cv_func_iconv="no, consider installing GNU libiconv"
31224 am_cv_lib_iconv=no
31225 cat >conftest.$ac_ext <<_ACEOF
31226/* confdefs.h. */
31227_ACEOF
31228cat confdefs.h >>conftest.$ac_ext
31229cat >>conftest.$ac_ext <<_ACEOF
31230/* end confdefs.h. */
31231#include <stdlib.h>
31232#include <iconv.h>
31233int
31234main ()
31235{
31236iconv_t cd = iconv_open("","");
31237 iconv(cd,NULL,NULL,NULL,NULL);
31238 iconv_close(cd);
31239 ;
31240 return 0;
31241}
31242_ACEOF
31243rm -f conftest.$ac_objext conftest$ac_exeext
31244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31245 (eval $ac_link) 2>conftest.er1
a848cd7e 31246 ac_status=$?
ac1cb8d3
VS
31247 grep -v '^ *+' conftest.er1 >conftest.err
31248 rm -f conftest.er1
31249 cat conftest.err >&5
a848cd7e
SC
31250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31251 (exit $ac_status); } &&
9dd0f6c2 31252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31254 (eval $ac_try) 2>&5
31255 ac_status=$?
31256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31257 (exit $ac_status); }; } &&
31258 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
31264 am_cv_func_iconv=yes
31265else
31266 echo "$as_me: failed program was:" >&5
31267sed 's/^/| /' conftest.$ac_ext >&5
31268
31269fi
ac1cb8d3
VS
31270rm -f conftest.err conftest.$ac_objext \
31271 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31272 if test "$am_cv_func_iconv" != yes; then
31273 am_save_LIBS="$LIBS"
31274 LIBS="$LIBS -liconv"
31275 cat >conftest.$ac_ext <<_ACEOF
31276/* confdefs.h. */
31277_ACEOF
31278cat confdefs.h >>conftest.$ac_ext
31279cat >>conftest.$ac_ext <<_ACEOF
31280/* end confdefs.h. */
31281#include <stdlib.h>
31282#include <iconv.h>
31283int
31284main ()
31285{
31286iconv_t cd = iconv_open("","");
31287 iconv(cd,NULL,NULL,NULL,NULL);
31288 iconv_close(cd);
31289 ;
31290 return 0;
31291}
31292_ACEOF
31293rm -f conftest.$ac_objext conftest$ac_exeext
31294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31295 (eval $ac_link) 2>conftest.er1
a848cd7e 31296 ac_status=$?
ac1cb8d3
VS
31297 grep -v '^ *+' conftest.er1 >conftest.err
31298 rm -f conftest.er1
31299 cat conftest.err >&5
a848cd7e
SC
31300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301 (exit $ac_status); } &&
9dd0f6c2 31302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31304 (eval $ac_try) 2>&5
31305 ac_status=$?
31306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31307 (exit $ac_status); }; } &&
31308 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
31314 am_cv_lib_iconv=yes
31315 am_cv_func_iconv=yes
31316else
31317 echo "$as_me: failed program was:" >&5
31318sed 's/^/| /' conftest.$ac_ext >&5
31319
31320fi
ac1cb8d3
VS
31321rm -f conftest.err conftest.$ac_objext \
31322 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31323 LIBS="$am_save_LIBS"
31324 fi
31325
31326fi
31327echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31328echo "${ECHO_T}$am_cv_func_iconv" >&6
31329 if test "$am_cv_func_iconv" = yes; then
31330
31331cat >>confdefs.h <<\_ACEOF
31332#define HAVE_ICONV 1
31333_ACEOF
31334
31335 echo "$as_me:$LINENO: checking if iconv needs const" >&5
31336echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31337if test "${wx_cv_func_iconv_const+set}" = set; then
31338 echo $ECHO_N "(cached) $ECHO_C" >&6
31339else
31340 cat >conftest.$ac_ext <<_ACEOF
31341/* confdefs.h. */
31342_ACEOF
31343cat confdefs.h >>conftest.$ac_ext
31344cat >>conftest.$ac_ext <<_ACEOF
31345/* end confdefs.h. */
31346
31347#include <stdlib.h>
31348#include <iconv.h>
31349extern
31350#ifdef __cplusplus
31351"C"
31352#endif
31353#if defined(__STDC__) || defined(__cplusplus)
31354size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31355#else
31356size_t iconv();
31357#endif
31358
31359int
31360main ()
31361{
31362
31363 ;
31364 return 0;
31365}
31366_ACEOF
31367rm -f conftest.$ac_objext
31368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31369 (eval $ac_compile) 2>conftest.er1
a848cd7e 31370 ac_status=$?
ac1cb8d3
VS
31371 grep -v '^ *+' conftest.er1 >conftest.err
31372 rm -f conftest.er1
31373 cat conftest.err >&5
a848cd7e
SC
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); } &&
9dd0f6c2 31376 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31378 (eval $ac_try) 2>&5
31379 ac_status=$?
31380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381 (exit $ac_status); }; } &&
31382 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
31388 wx_cv_func_iconv_const="no"
31389else
31390 echo "$as_me: failed program was:" >&5
31391sed 's/^/| /' conftest.$ac_ext >&5
31392
31393wx_cv_func_iconv_const="yes"
31394
31395fi
ac1cb8d3 31396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31397
31398fi
31399echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31400echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31401
31402 iconv_const=
31403 if test "x$wx_cv_func_iconv_const" = "xyes"; then
31404 iconv_const="const"
31405 fi
31406
31407
31408cat >>confdefs.h <<_ACEOF
31409#define ICONV_CONST $iconv_const
31410_ACEOF
31411
31412 fi
31413 LIBICONV=
31414 if test "$am_cv_lib_iconv" = yes; then
31415 LIBICONV="-liconv"
31416 fi
31417
31418
31419LIBS="$LIBICONV $LIBS"
31420ac_ext=c
31421ac_cpp='$CPP $CPPFLAGS'
31422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31424ac_compiler_gnu=$ac_cv_c_compiler_gnu
31425
31426
31427if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31428
31429for ac_func in sigaction
31430do
31431as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31432echo "$as_me:$LINENO: checking for $ac_func" >&5
31433echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31434if eval "test \"\${$as_ac_var+set}\" = set"; then
31435 echo $ECHO_N "(cached) $ECHO_C" >&6
31436else
31437 cat >conftest.$ac_ext <<_ACEOF
31438/* confdefs.h. */
31439_ACEOF
31440cat confdefs.h >>conftest.$ac_ext
31441cat >>conftest.$ac_ext <<_ACEOF
31442/* end confdefs.h. */
ac1cb8d3
VS
31443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31445#define $ac_func innocuous_$ac_func
31446
a848cd7e
SC
31447/* System header to define __stub macros and hopefully few prototypes,
31448 which can conflict with char $ac_func (); below.
31449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31450 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31451
a848cd7e
SC
31452#ifdef __STDC__
31453# include <limits.h>
31454#else
31455# include <assert.h>
31456#endif
ac1cb8d3
VS
31457
31458#undef $ac_func
31459
a848cd7e
SC
31460/* Override any gcc2 internal prototype to avoid an error. */
31461#ifdef __cplusplus
31462extern "C"
31463{
31464#endif
31465/* We use char because int might match the return type of a gcc2
31466 builtin and then its argument prototype would still apply. */
31467char $ac_func ();
31468/* The GNU C library defines this for functions which it implements
31469 to always fail with ENOSYS. Some functions are actually named
31470 something starting with __ and the normal name is an alias. */
31471#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31472choke me
31473#else
31474char (*f) () = $ac_func;
31475#endif
31476#ifdef __cplusplus
31477}
31478#endif
31479
31480int
31481main ()
31482{
31483return f != $ac_func;
31484 ;
31485 return 0;
31486}
31487_ACEOF
31488rm -f conftest.$ac_objext conftest$ac_exeext
31489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31490 (eval $ac_link) 2>conftest.er1
a848cd7e 31491 ac_status=$?
ac1cb8d3
VS
31492 grep -v '^ *+' conftest.er1 >conftest.err
31493 rm -f conftest.er1
31494 cat conftest.err >&5
a848cd7e
SC
31495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496 (exit $ac_status); } &&
9dd0f6c2 31497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31499 (eval $ac_try) 2>&5
31500 ac_status=$?
31501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502 (exit $ac_status); }; } &&
31503 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
31509 eval "$as_ac_var=yes"
31510else
31511 echo "$as_me: failed program was:" >&5
31512sed 's/^/| /' conftest.$ac_ext >&5
31513
31514eval "$as_ac_var=no"
31515fi
ac1cb8d3
VS
31516rm -f conftest.err conftest.$ac_objext \
31517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31518fi
31519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31520echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31521if test `eval echo '${'$as_ac_var'}'` = yes; then
31522 cat >>confdefs.h <<_ACEOF
31523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31524_ACEOF
31525
31526fi
31527done
31528
31529
31530 if test "$ac_cv_func_sigaction" = "no"; then
31531 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31532echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31533 wxUSE_ON_FATAL_EXCEPTION=no
31534 fi
31535
31536 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31537
31538
31539 ac_ext=cc
31540ac_cpp='$CXXCPP $CPPFLAGS'
31541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31544
31545
31546 echo "$as_me:$LINENO: checking for sa_handler type" >&5
31547echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
31548if test "${wx_cv_type_sa_handler+set}" = set; then
31549 echo $ECHO_N "(cached) $ECHO_C" >&6
31550else
31551
31552 cat >conftest.$ac_ext <<_ACEOF
31553/* confdefs.h. */
31554_ACEOF
31555cat confdefs.h >>conftest.$ac_ext
31556cat >>conftest.$ac_ext <<_ACEOF
31557/* end confdefs.h. */
31558#include <signal.h>
31559int
31560main ()
31561{
31562
31563 extern void testSigHandler(int);
31564
31565 struct sigaction sa;
31566 sa.sa_handler = testSigHandler;
31567
31568 ;
31569 return 0;
31570}
31571_ACEOF
31572rm -f conftest.$ac_objext
31573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31574 (eval $ac_compile) 2>conftest.er1
a848cd7e 31575 ac_status=$?
ac1cb8d3
VS
31576 grep -v '^ *+' conftest.er1 >conftest.err
31577 rm -f conftest.er1
31578 cat conftest.err >&5
a848cd7e
SC
31579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31580 (exit $ac_status); } &&
9dd0f6c2 31581 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31583 (eval $ac_try) 2>&5
31584 ac_status=$?
31585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586 (exit $ac_status); }; } &&
31587 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
31593
31594 wx_cv_type_sa_handler=int
31595
31596else
31597 echo "$as_me: failed program was:" >&5
31598sed 's/^/| /' conftest.$ac_ext >&5
31599
31600
31601 wx_cv_type_sa_handler=void
31602
31603fi
ac1cb8d3 31604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31605
31606fi
31607echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
31608echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
31609
31610 ac_ext=c
31611ac_cpp='$CPP $CPPFLAGS'
31612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31614ac_compiler_gnu=$ac_cv_c_compiler_gnu
31615
31616
31617 cat >>confdefs.h <<_ACEOF
31618#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
31619_ACEOF
31620
31621 fi
31622fi
31623
eaff0f0d
VZ
31624if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31625
31626
31627 ac_ext=cc
31628ac_cpp='$CXXCPP $CPPFLAGS'
31629ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31630ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31631ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31632
31633
31634 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
31635echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
31636if test "${wx_cv_func_backtrace+set}" = set; then
31637 echo $ECHO_N "(cached) $ECHO_C" >&6
31638else
31639
31640 cat >conftest.$ac_ext <<_ACEOF
31641/* confdefs.h. */
31642_ACEOF
31643cat confdefs.h >>conftest.$ac_ext
31644cat >>conftest.$ac_ext <<_ACEOF
31645/* end confdefs.h. */
31646#include <execinfo.h>
31647int
31648main ()
31649{
31650
31651 void *trace[1];
31652 char **messages;
31653
31654 backtrace(trace, 1);
31655 messages = backtrace_symbols(trace, 1);
31656
31657 ;
31658 return 0;
31659}
31660_ACEOF
31661rm -f conftest.$ac_objext
31662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31663 (eval $ac_compile) 2>conftest.er1
31664 ac_status=$?
31665 grep -v '^ *+' conftest.er1 >conftest.err
31666 rm -f conftest.er1
31667 cat conftest.err >&5
31668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669 (exit $ac_status); } &&
9dd0f6c2 31670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31672 (eval $ac_try) 2>&5
31673 ac_status=$?
31674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31675 (exit $ac_status); }; } &&
31676 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
31682 wx_cv_func_backtrace=yes
31683else
31684 echo "$as_me: failed program was:" >&5
31685sed 's/^/| /' conftest.$ac_ext >&5
31686
31687wx_cv_func_backtrace=no
31688
31689fi
31690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31691
31692
31693fi
31694echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
31695echo "${ECHO_T}$wx_cv_func_backtrace" >&6
31696
31697
31698 if test "$wx_cv_func_backtrace" = "no"; then
31699 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
31700echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
31701 wxUSE_STACKWALKER=no
31702 else
31703 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
31704echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
31705if test "${wx_cv_func_cxa_demangle+set}" = set; then
31706 echo $ECHO_N "(cached) $ECHO_C" >&6
31707else
31708
31709 cat >conftest.$ac_ext <<_ACEOF
31710/* confdefs.h. */
31711_ACEOF
31712cat confdefs.h >>conftest.$ac_ext
31713cat >>conftest.$ac_ext <<_ACEOF
31714/* end confdefs.h. */
31715#include <cxxabi.h>
31716int
31717main ()
31718{
31719
31720 int rc;
31721 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
31722
31723 ;
31724 return 0;
31725}
31726_ACEOF
dfe0c803
JS
31727rm -f conftest.$ac_objext conftest$ac_exeext
31728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31729 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
31730 ac_status=$?
31731 grep -v '^ *+' conftest.er1 >conftest.err
31732 rm -f conftest.er1
31733 cat conftest.err >&5
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); } &&
9dd0f6c2 31736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31738 (eval $ac_try) 2>&5
31739 ac_status=$?
31740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741 (exit $ac_status); }; } &&
dfe0c803 31742 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
31748 wx_cv_func_cxa_demangle=yes
31749else
31750 echo "$as_me: failed program was:" >&5
31751sed 's/^/| /' conftest.$ac_ext >&5
31752
31753wx_cv_func_cxa_demangle=no
31754
31755fi
dfe0c803
JS
31756rm -f conftest.err conftest.$ac_objext \
31757 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
31758
31759
31760fi
31761echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
31762echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
31763
31764 if test "$wx_cv_func_cxa_demangle" = "yes"; then
31765 cat >>confdefs.h <<\_ACEOF
31766#define HAVE_CXA_DEMANGLE 1
31767_ACEOF
31768
31769 fi
31770 fi
31771
31772 ac_ext=c
31773ac_cpp='$CPP $CPPFLAGS'
31774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31776ac_compiler_gnu=$ac_cv_c_compiler_gnu
31777
31778fi
31779
898beab1
DE
31780if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
31781 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
31782echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
31783 wxUSE_STACKWALKER=no
31784fi
31785
31786
a848cd7e
SC
31787
31788
31789for ac_func in mkstemp mktemp
31790do
31791as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31792echo "$as_me:$LINENO: checking for $ac_func" >&5
31793echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31794if eval "test \"\${$as_ac_var+set}\" = set"; then
31795 echo $ECHO_N "(cached) $ECHO_C" >&6
31796else
31797 cat >conftest.$ac_ext <<_ACEOF
31798/* confdefs.h. */
31799_ACEOF
31800cat confdefs.h >>conftest.$ac_ext
31801cat >>conftest.$ac_ext <<_ACEOF
31802/* end confdefs.h. */
ac1cb8d3
VS
31803/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31805#define $ac_func innocuous_$ac_func
31806
a848cd7e
SC
31807/* System header to define __stub macros and hopefully few prototypes,
31808 which can conflict with char $ac_func (); below.
31809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31810 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31811
a848cd7e
SC
31812#ifdef __STDC__
31813# include <limits.h>
31814#else
31815# include <assert.h>
31816#endif
ac1cb8d3
VS
31817
31818#undef $ac_func
31819
a848cd7e
SC
31820/* Override any gcc2 internal prototype to avoid an error. */
31821#ifdef __cplusplus
31822extern "C"
31823{
31824#endif
31825/* We use char because int might match the return type of a gcc2
31826 builtin and then its argument prototype would still apply. */
31827char $ac_func ();
31828/* The GNU C library defines this for functions which it implements
31829 to always fail with ENOSYS. Some functions are actually named
31830 something starting with __ and the normal name is an alias. */
31831#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31832choke me
31833#else
31834char (*f) () = $ac_func;
31835#endif
31836#ifdef __cplusplus
31837}
31838#endif
31839
31840int
31841main ()
31842{
31843return f != $ac_func;
31844 ;
31845 return 0;
31846}
31847_ACEOF
31848rm -f conftest.$ac_objext conftest$ac_exeext
31849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31850 (eval $ac_link) 2>conftest.er1
a848cd7e 31851 ac_status=$?
ac1cb8d3
VS
31852 grep -v '^ *+' conftest.er1 >conftest.err
31853 rm -f conftest.er1
31854 cat conftest.err >&5
a848cd7e
SC
31855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856 (exit $ac_status); } &&
9dd0f6c2 31857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31859 (eval $ac_try) 2>&5
31860 ac_status=$?
31861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862 (exit $ac_status); }; } &&
31863 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
31869 eval "$as_ac_var=yes"
31870else
31871 echo "$as_me: failed program was:" >&5
31872sed 's/^/| /' conftest.$ac_ext >&5
31873
31874eval "$as_ac_var=no"
31875fi
ac1cb8d3
VS
31876rm -f conftest.err conftest.$ac_objext \
31877 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31878fi
31879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31880echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31881if test `eval echo '${'$as_ac_var'}'` = yes; then
31882 cat >>confdefs.h <<_ACEOF
31883#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31884_ACEOF
31885 break
31886fi
31887done
31888
31889
31890echo "$as_me:$LINENO: checking for statfs" >&5
31891echo $ECHO_N "checking for statfs... $ECHO_C" >&6
31892if test "${wx_cv_func_statfs+set}" = set; then
31893 echo $ECHO_N "(cached) $ECHO_C" >&6
31894else
31895 cat >conftest.$ac_ext <<_ACEOF
31896/* confdefs.h. */
31897_ACEOF
31898cat confdefs.h >>conftest.$ac_ext
31899cat >>conftest.$ac_ext <<_ACEOF
31900/* end confdefs.h. */
31901
31902 #if defined(__BSD__)
31903 #include <sys/param.h>
31904 #include <sys/mount.h>
31905 #else
31906 #include <sys/vfs.h>
31907 #endif
31908
31909int
31910main ()
31911{
31912
31913 long l;
31914 struct statfs fs;
31915 statfs("/", &fs);
31916 l = fs.f_bsize;
31917 l += fs.f_blocks;
31918 l += fs.f_bavail;
31919
31920 ;
31921 return 0;
31922}
31923_ACEOF
31924rm -f conftest.$ac_objext
31925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31926 (eval $ac_compile) 2>conftest.er1
a848cd7e 31927 ac_status=$?
ac1cb8d3
VS
31928 grep -v '^ *+' conftest.er1 >conftest.err
31929 rm -f conftest.er1
31930 cat conftest.err >&5
a848cd7e
SC
31931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932 (exit $ac_status); } &&
9dd0f6c2 31933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31935 (eval $ac_try) 2>&5
31936 ac_status=$?
31937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31938 (exit $ac_status); }; } &&
31939 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
31945
31946 wx_cv_func_statfs=yes
31947
31948else
31949 echo "$as_me: failed program was:" >&5
31950sed 's/^/| /' conftest.$ac_ext >&5
31951
31952
31953 wx_cv_func_statfs=no
31954
31955
31956fi
ac1cb8d3 31957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31958
31959fi
31960echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
31961echo "${ECHO_T}$wx_cv_func_statfs" >&6
31962
31963if test "$wx_cv_func_statfs" = "yes"; then
31964 wx_cv_type_statvfs_t="struct statfs"
31965 cat >>confdefs.h <<\_ACEOF
31966#define HAVE_STATFS 1
31967_ACEOF
31968
31969else
31970 echo "$as_me:$LINENO: checking for statvfs" >&5
31971echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
31972if test "${wx_cv_func_statvfs+set}" = set; then
31973 echo $ECHO_N "(cached) $ECHO_C" >&6
31974else
31975 cat >conftest.$ac_ext <<_ACEOF
31976/* confdefs.h. */
31977_ACEOF
31978cat confdefs.h >>conftest.$ac_ext
31979cat >>conftest.$ac_ext <<_ACEOF
31980/* end confdefs.h. */
31981
31982 #include <stddef.h>
31983 #include <sys/statvfs.h>
31984
31985int
31986main ()
31987{
31988
31989 statvfs("/", NULL);
31990
31991 ;
31992 return 0;
31993}
31994_ACEOF
31995rm -f conftest.$ac_objext
31996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31997 (eval $ac_compile) 2>conftest.er1
a848cd7e 31998 ac_status=$?
ac1cb8d3
VS
31999 grep -v '^ *+' conftest.er1 >conftest.err
32000 rm -f conftest.er1
32001 cat conftest.err >&5
a848cd7e
SC
32002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32003 (exit $ac_status); } &&
9dd0f6c2 32004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32006 (eval $ac_try) 2>&5
32007 ac_status=$?
32008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009 (exit $ac_status); }; } &&
32010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
32016 wx_cv_func_statvfs=yes
32017else
32018 echo "$as_me: failed program was:" >&5
32019sed 's/^/| /' conftest.$ac_ext >&5
32020
32021wx_cv_func_statvfs=no
32022
32023fi
ac1cb8d3 32024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32025
32026fi
32027echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
32028echo "${ECHO_T}$wx_cv_func_statvfs" >&6
32029
32030 if test "$wx_cv_func_statvfs" = "yes"; then
32031
32032
32033 ac_ext=cc
32034ac_cpp='$CXXCPP $CPPFLAGS'
32035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32038
32039
32040 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
32041echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
32042if test "${wx_cv_type_statvfs_t+set}" = set; then
32043 echo $ECHO_N "(cached) $ECHO_C" >&6
32044else
32045 cat >conftest.$ac_ext <<_ACEOF
32046/* confdefs.h. */
32047_ACEOF
32048cat confdefs.h >>conftest.$ac_ext
32049cat >>conftest.$ac_ext <<_ACEOF
32050/* end confdefs.h. */
32051
32052 #include <sys/statvfs.h>
32053
32054int
32055main ()
32056{
32057
32058 long l;
32059 statvfs_t fs;
32060 statvfs("/", &fs);
32061 l = fs.f_bsize;
32062 l += fs.f_blocks;
32063 l += fs.f_bavail;
32064
32065 ;
32066 return 0;
32067}
32068_ACEOF
32069rm -f conftest.$ac_objext
32070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32071 (eval $ac_compile) 2>conftest.er1
a848cd7e 32072 ac_status=$?
ac1cb8d3
VS
32073 grep -v '^ *+' conftest.er1 >conftest.err
32074 rm -f conftest.er1
32075 cat conftest.err >&5
a848cd7e
SC
32076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077 (exit $ac_status); } &&
9dd0f6c2 32078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32080 (eval $ac_try) 2>&5
32081 ac_status=$?
32082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083 (exit $ac_status); }; } &&
32084 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
32090 wx_cv_type_statvfs_t=statvfs_t
32091else
32092 echo "$as_me: failed program was:" >&5
32093sed 's/^/| /' conftest.$ac_ext >&5
32094
32095
32096 cat >conftest.$ac_ext <<_ACEOF
32097/* confdefs.h. */
32098_ACEOF
32099cat confdefs.h >>conftest.$ac_ext
32100cat >>conftest.$ac_ext <<_ACEOF
32101/* end confdefs.h. */
32102
32103 #include <sys/statvfs.h>
32104
32105int
32106main ()
32107{
32108
32109 long l;
32110 struct statvfs fs;
32111 statvfs("/", &fs);
32112 l = fs.f_bsize;
32113 l += fs.f_blocks;
32114 l += fs.f_bavail;
32115
32116 ;
32117 return 0;
32118}
32119_ACEOF
32120rm -f conftest.$ac_objext
32121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32122 (eval $ac_compile) 2>conftest.er1
a848cd7e 32123 ac_status=$?
ac1cb8d3
VS
32124 grep -v '^ *+' conftest.er1 >conftest.err
32125 rm -f conftest.er1
32126 cat conftest.err >&5
a848cd7e
SC
32127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32128 (exit $ac_status); } &&
9dd0f6c2 32129 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32131 (eval $ac_try) 2>&5
32132 ac_status=$?
32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134 (exit $ac_status); }; } &&
32135 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
32141 wx_cv_type_statvfs_t="struct statvfs"
32142else
32143 echo "$as_me: failed program was:" >&5
32144sed 's/^/| /' conftest.$ac_ext >&5
32145
32146wx_cv_type_statvfs_t="unknown"
32147
32148fi
ac1cb8d3 32149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32150
32151
32152fi
ac1cb8d3 32153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32154
32155fi
32156echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32157echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32158
32159 ac_ext=c
32160ac_cpp='$CPP $CPPFLAGS'
32161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32163ac_compiler_gnu=$ac_cv_c_compiler_gnu
32164
32165
32166 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32167 cat >>confdefs.h <<\_ACEOF
32168#define HAVE_STATVFS 1
32169_ACEOF
32170
32171 fi
32172 else
32173 wx_cv_type_statvfs_t="unknown"
32174 fi
32175fi
32176
32177if test "$wx_cv_type_statvfs_t" != "unknown"; then
32178 cat >>confdefs.h <<_ACEOF
32179#define WX_STATFS_T $wx_cv_type_statvfs_t
32180_ACEOF
32181
32182else
32183 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32184echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32185fi
32186
32187if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32188
32189
32190for ac_func in fcntl flock
32191do
32192as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32193echo "$as_me:$LINENO: checking for $ac_func" >&5
32194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32195if eval "test \"\${$as_ac_var+set}\" = set"; then
32196 echo $ECHO_N "(cached) $ECHO_C" >&6
32197else
32198 cat >conftest.$ac_ext <<_ACEOF
32199/* confdefs.h. */
32200_ACEOF
32201cat confdefs.h >>conftest.$ac_ext
32202cat >>conftest.$ac_ext <<_ACEOF
32203/* end confdefs.h. */
ac1cb8d3
VS
32204/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32206#define $ac_func innocuous_$ac_func
32207
a848cd7e
SC
32208/* System header to define __stub macros and hopefully few prototypes,
32209 which can conflict with char $ac_func (); below.
32210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32211 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32212
a848cd7e
SC
32213#ifdef __STDC__
32214# include <limits.h>
32215#else
32216# include <assert.h>
32217#endif
ac1cb8d3
VS
32218
32219#undef $ac_func
32220
a848cd7e
SC
32221/* Override any gcc2 internal prototype to avoid an error. */
32222#ifdef __cplusplus
32223extern "C"
32224{
32225#endif
32226/* We use char because int might match the return type of a gcc2
32227 builtin and then its argument prototype would still apply. */
32228char $ac_func ();
32229/* The GNU C library defines this for functions which it implements
32230 to always fail with ENOSYS. Some functions are actually named
32231 something starting with __ and the normal name is an alias. */
32232#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32233choke me
32234#else
32235char (*f) () = $ac_func;
32236#endif
32237#ifdef __cplusplus
32238}
32239#endif
32240
32241int
32242main ()
32243{
32244return f != $ac_func;
32245 ;
32246 return 0;
32247}
32248_ACEOF
32249rm -f conftest.$ac_objext conftest$ac_exeext
32250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32251 (eval $ac_link) 2>conftest.er1
a848cd7e 32252 ac_status=$?
ac1cb8d3
VS
32253 grep -v '^ *+' conftest.er1 >conftest.err
32254 rm -f conftest.er1
32255 cat conftest.err >&5
a848cd7e
SC
32256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257 (exit $ac_status); } &&
9dd0f6c2 32258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32260 (eval $ac_try) 2>&5
32261 ac_status=$?
32262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32263 (exit $ac_status); }; } &&
32264 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
32270 eval "$as_ac_var=yes"
32271else
32272 echo "$as_me: failed program was:" >&5
32273sed 's/^/| /' conftest.$ac_ext >&5
32274
32275eval "$as_ac_var=no"
32276fi
ac1cb8d3
VS
32277rm -f conftest.err conftest.$ac_objext \
32278 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32279fi
32280echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32281echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32282if test `eval echo '${'$as_ac_var'}'` = yes; then
32283 cat >>confdefs.h <<_ACEOF
32284#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32285_ACEOF
32286 break
32287fi
32288done
32289
32290
32291 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32292 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32293echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32294 wxUSE_SNGLINST_CHECKER=no
32295 fi
32296fi
32297
32298
32299for ac_func in timegm
32300do
32301as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32302echo "$as_me:$LINENO: checking for $ac_func" >&5
32303echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32304if eval "test \"\${$as_ac_var+set}\" = set"; then
32305 echo $ECHO_N "(cached) $ECHO_C" >&6
32306else
32307 cat >conftest.$ac_ext <<_ACEOF
32308/* confdefs.h. */
32309_ACEOF
32310cat confdefs.h >>conftest.$ac_ext
32311cat >>conftest.$ac_ext <<_ACEOF
32312/* end confdefs.h. */
ac1cb8d3
VS
32313/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32315#define $ac_func innocuous_$ac_func
32316
a848cd7e
SC
32317/* System header to define __stub macros and hopefully few prototypes,
32318 which can conflict with char $ac_func (); below.
32319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32320 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32321
a848cd7e
SC
32322#ifdef __STDC__
32323# include <limits.h>
32324#else
32325# include <assert.h>
32326#endif
ac1cb8d3
VS
32327
32328#undef $ac_func
32329
a848cd7e
SC
32330/* Override any gcc2 internal prototype to avoid an error. */
32331#ifdef __cplusplus
32332extern "C"
32333{
32334#endif
32335/* We use char because int might match the return type of a gcc2
32336 builtin and then its argument prototype would still apply. */
32337char $ac_func ();
32338/* The GNU C library defines this for functions which it implements
32339 to always fail with ENOSYS. Some functions are actually named
32340 something starting with __ and the normal name is an alias. */
32341#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32342choke me
32343#else
32344char (*f) () = $ac_func;
32345#endif
32346#ifdef __cplusplus
32347}
32348#endif
32349
32350int
32351main ()
32352{
32353return f != $ac_func;
32354 ;
32355 return 0;
32356}
32357_ACEOF
32358rm -f conftest.$ac_objext conftest$ac_exeext
32359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32360 (eval $ac_link) 2>conftest.er1
a848cd7e 32361 ac_status=$?
ac1cb8d3
VS
32362 grep -v '^ *+' conftest.er1 >conftest.err
32363 rm -f conftest.er1
32364 cat conftest.err >&5
a848cd7e
SC
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); } &&
9dd0f6c2 32367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32369 (eval $ac_try) 2>&5
32370 ac_status=$?
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); }; } &&
32373 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
32379 eval "$as_ac_var=yes"
32380else
32381 echo "$as_me: failed program was:" >&5
32382sed 's/^/| /' conftest.$ac_ext >&5
32383
32384eval "$as_ac_var=no"
32385fi
ac1cb8d3
VS
32386rm -f conftest.err conftest.$ac_objext \
32387 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32388fi
32389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32390echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32391if test `eval echo '${'$as_ac_var'}'` = yes; then
32392 cat >>confdefs.h <<_ACEOF
32393#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32394_ACEOF
32395
32396fi
32397done
32398
32399
32400
32401
32402for ac_func in putenv setenv
32403do
32404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32405echo "$as_me:$LINENO: checking for $ac_func" >&5
32406echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32407if eval "test \"\${$as_ac_var+set}\" = set"; then
32408 echo $ECHO_N "(cached) $ECHO_C" >&6
32409else
32410 cat >conftest.$ac_ext <<_ACEOF
32411/* confdefs.h. */
32412_ACEOF
32413cat confdefs.h >>conftest.$ac_ext
32414cat >>conftest.$ac_ext <<_ACEOF
32415/* end confdefs.h. */
ac1cb8d3
VS
32416/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32418#define $ac_func innocuous_$ac_func
32419
a848cd7e
SC
32420/* System header to define __stub macros and hopefully few prototypes,
32421 which can conflict with char $ac_func (); below.
32422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32423 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32424
a848cd7e
SC
32425#ifdef __STDC__
32426# include <limits.h>
32427#else
32428# include <assert.h>
32429#endif
ac1cb8d3
VS
32430
32431#undef $ac_func
32432
a848cd7e
SC
32433/* Override any gcc2 internal prototype to avoid an error. */
32434#ifdef __cplusplus
32435extern "C"
32436{
32437#endif
32438/* We use char because int might match the return type of a gcc2
32439 builtin and then its argument prototype would still apply. */
32440char $ac_func ();
32441/* The GNU C library defines this for functions which it implements
32442 to always fail with ENOSYS. Some functions are actually named
32443 something starting with __ and the normal name is an alias. */
32444#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32445choke me
32446#else
32447char (*f) () = $ac_func;
32448#endif
32449#ifdef __cplusplus
32450}
32451#endif
32452
32453int
32454main ()
32455{
32456return f != $ac_func;
32457 ;
32458 return 0;
32459}
32460_ACEOF
32461rm -f conftest.$ac_objext conftest$ac_exeext
32462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32463 (eval $ac_link) 2>conftest.er1
a848cd7e 32464 ac_status=$?
ac1cb8d3
VS
32465 grep -v '^ *+' conftest.er1 >conftest.err
32466 rm -f conftest.er1
32467 cat conftest.err >&5
a848cd7e
SC
32468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32469 (exit $ac_status); } &&
9dd0f6c2 32470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32472 (eval $ac_try) 2>&5
32473 ac_status=$?
32474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475 (exit $ac_status); }; } &&
32476 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
32482 eval "$as_ac_var=yes"
32483else
32484 echo "$as_me: failed program was:" >&5
32485sed 's/^/| /' conftest.$ac_ext >&5
32486
32487eval "$as_ac_var=no"
32488fi
ac1cb8d3
VS
32489rm -f conftest.err conftest.$ac_objext \
32490 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32491fi
32492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32493echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32494if test `eval echo '${'$as_ac_var'}'` = yes; then
32495 cat >>confdefs.h <<_ACEOF
32496#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32497_ACEOF
32498 break
32499fi
32500done
32501
32502
32503HAVE_SOME_SLEEP_FUNC=0
32504if test "$USE_BEOS" = 1; then
32505 cat >>confdefs.h <<\_ACEOF
32506#define HAVE_SLEEP 1
32507_ACEOF
32508
32509 HAVE_SOME_SLEEP_FUNC=1
32510fi
32511
32512if test "$USE_DARWIN" = 1; then
32513 cat >>confdefs.h <<\_ACEOF
32514#define HAVE_USLEEP 1
32515_ACEOF
32516
32517 HAVE_SOME_SLEEP_FUNC=1
32518fi
32519
32520if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32521 POSIX4_LINK=
32522
32523for ac_func in nanosleep
32524do
32525as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32526echo "$as_me:$LINENO: checking for $ac_func" >&5
32527echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32528if eval "test \"\${$as_ac_var+set}\" = set"; then
32529 echo $ECHO_N "(cached) $ECHO_C" >&6
32530else
32531 cat >conftest.$ac_ext <<_ACEOF
32532/* confdefs.h. */
32533_ACEOF
32534cat confdefs.h >>conftest.$ac_ext
32535cat >>conftest.$ac_ext <<_ACEOF
32536/* end confdefs.h. */
ac1cb8d3
VS
32537/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32539#define $ac_func innocuous_$ac_func
32540
a848cd7e
SC
32541/* System header to define __stub macros and hopefully few prototypes,
32542 which can conflict with char $ac_func (); below.
32543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32544 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32545
a848cd7e
SC
32546#ifdef __STDC__
32547# include <limits.h>
32548#else
32549# include <assert.h>
32550#endif
ac1cb8d3
VS
32551
32552#undef $ac_func
32553
a848cd7e
SC
32554/* Override any gcc2 internal prototype to avoid an error. */
32555#ifdef __cplusplus
32556extern "C"
32557{
32558#endif
32559/* We use char because int might match the return type of a gcc2
32560 builtin and then its argument prototype would still apply. */
32561char $ac_func ();
32562/* The GNU C library defines this for functions which it implements
32563 to always fail with ENOSYS. Some functions are actually named
32564 something starting with __ and the normal name is an alias. */
32565#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32566choke me
32567#else
32568char (*f) () = $ac_func;
32569#endif
32570#ifdef __cplusplus
32571}
32572#endif
32573
32574int
32575main ()
32576{
32577return f != $ac_func;
32578 ;
32579 return 0;
32580}
32581_ACEOF
32582rm -f conftest.$ac_objext conftest$ac_exeext
32583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32584 (eval $ac_link) 2>conftest.er1
a848cd7e 32585 ac_status=$?
ac1cb8d3
VS
32586 grep -v '^ *+' conftest.er1 >conftest.err
32587 rm -f conftest.er1
32588 cat conftest.err >&5
a848cd7e
SC
32589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32590 (exit $ac_status); } &&
9dd0f6c2 32591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32593 (eval $ac_try) 2>&5
32594 ac_status=$?
32595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596 (exit $ac_status); }; } &&
32597 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
32603 eval "$as_ac_var=yes"
32604else
32605 echo "$as_me: failed program was:" >&5
32606sed 's/^/| /' conftest.$ac_ext >&5
32607
32608eval "$as_ac_var=no"
32609fi
ac1cb8d3
VS
32610rm -f conftest.err conftest.$ac_objext \
32611 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32612fi
32613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32614echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32615if test `eval echo '${'$as_ac_var'}'` = yes; then
32616 cat >>confdefs.h <<_ACEOF
32617#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32618_ACEOF
32619 cat >>confdefs.h <<\_ACEOF
32620#define HAVE_NANOSLEEP 1
32621_ACEOF
32622
32623else
32624
32625 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
32626echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
32627if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
32628 echo $ECHO_N "(cached) $ECHO_C" >&6
32629else
32630 ac_check_lib_save_LIBS=$LIBS
32631LIBS="-lposix4 $LIBS"
32632cat >conftest.$ac_ext <<_ACEOF
32633/* confdefs.h. */
32634_ACEOF
32635cat confdefs.h >>conftest.$ac_ext
32636cat >>conftest.$ac_ext <<_ACEOF
32637/* end confdefs.h. */
32638
32639/* Override any gcc2 internal prototype to avoid an error. */
32640#ifdef __cplusplus
32641extern "C"
32642#endif
32643/* We use char because int might match the return type of a gcc2
32644 builtin and then its argument prototype would still apply. */
32645char nanosleep ();
32646int
32647main ()
32648{
32649nanosleep ();
32650 ;
32651 return 0;
32652}
32653_ACEOF
32654rm -f conftest.$ac_objext conftest$ac_exeext
32655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32656 (eval $ac_link) 2>conftest.er1
a848cd7e 32657 ac_status=$?
ac1cb8d3
VS
32658 grep -v '^ *+' conftest.er1 >conftest.err
32659 rm -f conftest.er1
32660 cat conftest.err >&5
a848cd7e
SC
32661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32662 (exit $ac_status); } &&
9dd0f6c2 32663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32665 (eval $ac_try) 2>&5
32666 ac_status=$?
32667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32668 (exit $ac_status); }; } &&
32669 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
32675 ac_cv_lib_posix4_nanosleep=yes
32676else
32677 echo "$as_me: failed program was:" >&5
32678sed 's/^/| /' conftest.$ac_ext >&5
32679
32680ac_cv_lib_posix4_nanosleep=no
32681fi
ac1cb8d3
VS
32682rm -f conftest.err conftest.$ac_objext \
32683 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32684LIBS=$ac_check_lib_save_LIBS
32685fi
32686echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
32687echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
32688if test $ac_cv_lib_posix4_nanosleep = yes; then
32689
32690 cat >>confdefs.h <<\_ACEOF
32691#define HAVE_NANOSLEEP 1
32692_ACEOF
32693
32694 POSIX4_LINK=" -lposix4"
32695
32696else
32697
32698
32699for ac_func in usleep
32700do
32701as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32702echo "$as_me:$LINENO: checking for $ac_func" >&5
32703echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32704if eval "test \"\${$as_ac_var+set}\" = set"; then
32705 echo $ECHO_N "(cached) $ECHO_C" >&6
32706else
32707 cat >conftest.$ac_ext <<_ACEOF
32708/* confdefs.h. */
32709_ACEOF
32710cat confdefs.h >>conftest.$ac_ext
32711cat >>conftest.$ac_ext <<_ACEOF
32712/* end confdefs.h. */
ac1cb8d3
VS
32713/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32715#define $ac_func innocuous_$ac_func
32716
a848cd7e
SC
32717/* System header to define __stub macros and hopefully few prototypes,
32718 which can conflict with char $ac_func (); below.
32719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32720 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32721
a848cd7e
SC
32722#ifdef __STDC__
32723# include <limits.h>
32724#else
32725# include <assert.h>
32726#endif
ac1cb8d3
VS
32727
32728#undef $ac_func
32729
a848cd7e
SC
32730/* Override any gcc2 internal prototype to avoid an error. */
32731#ifdef __cplusplus
32732extern "C"
32733{
32734#endif
32735/* We use char because int might match the return type of a gcc2
32736 builtin and then its argument prototype would still apply. */
32737char $ac_func ();
32738/* The GNU C library defines this for functions which it implements
32739 to always fail with ENOSYS. Some functions are actually named
32740 something starting with __ and the normal name is an alias. */
32741#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32742choke me
32743#else
32744char (*f) () = $ac_func;
32745#endif
32746#ifdef __cplusplus
32747}
32748#endif
32749
32750int
32751main ()
32752{
32753return f != $ac_func;
32754 ;
32755 return 0;
32756}
32757_ACEOF
32758rm -f conftest.$ac_objext conftest$ac_exeext
32759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32760 (eval $ac_link) 2>conftest.er1
a848cd7e 32761 ac_status=$?
ac1cb8d3
VS
32762 grep -v '^ *+' conftest.er1 >conftest.err
32763 rm -f conftest.er1
32764 cat conftest.err >&5
a848cd7e
SC
32765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32766 (exit $ac_status); } &&
9dd0f6c2 32767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32769 (eval $ac_try) 2>&5
32770 ac_status=$?
32771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32772 (exit $ac_status); }; } &&
32773 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
32779 eval "$as_ac_var=yes"
32780else
32781 echo "$as_me: failed program was:" >&5
32782sed 's/^/| /' conftest.$ac_ext >&5
32783
32784eval "$as_ac_var=no"
32785fi
ac1cb8d3
VS
32786rm -f conftest.err conftest.$ac_objext \
32787 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32788fi
32789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32790echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32791if test `eval echo '${'$as_ac_var'}'` = yes; then
32792 cat >>confdefs.h <<_ACEOF
32793#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32794_ACEOF
32795 cat >>confdefs.h <<\_ACEOF
32796#define HAVE_USLEEP 1
32797_ACEOF
32798
32799else
32800 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
32801echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
32802
32803fi
32804done
32805
32806
32807
32808fi
32809
32810
32811
32812fi
32813done
32814
32815fi
32816
32817
32818
32819for ac_func in uname gethostname
32820do
32821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32822echo "$as_me:$LINENO: checking for $ac_func" >&5
32823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32824if eval "test \"\${$as_ac_var+set}\" = set"; then
32825 echo $ECHO_N "(cached) $ECHO_C" >&6
32826else
32827 cat >conftest.$ac_ext <<_ACEOF
32828/* confdefs.h. */
32829_ACEOF
32830cat confdefs.h >>conftest.$ac_ext
32831cat >>conftest.$ac_ext <<_ACEOF
32832/* end confdefs.h. */
ac1cb8d3
VS
32833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32835#define $ac_func innocuous_$ac_func
32836
a848cd7e
SC
32837/* System header to define __stub macros and hopefully few prototypes,
32838 which can conflict with char $ac_func (); below.
32839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32840 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32841
a848cd7e
SC
32842#ifdef __STDC__
32843# include <limits.h>
32844#else
32845# include <assert.h>
32846#endif
ac1cb8d3
VS
32847
32848#undef $ac_func
32849
a848cd7e
SC
32850/* Override any gcc2 internal prototype to avoid an error. */
32851#ifdef __cplusplus
32852extern "C"
32853{
32854#endif
32855/* We use char because int might match the return type of a gcc2
32856 builtin and then its argument prototype would still apply. */
32857char $ac_func ();
32858/* The GNU C library defines this for functions which it implements
32859 to always fail with ENOSYS. Some functions are actually named
32860 something starting with __ and the normal name is an alias. */
32861#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32862choke me
32863#else
32864char (*f) () = $ac_func;
32865#endif
32866#ifdef __cplusplus
32867}
32868#endif
32869
32870int
32871main ()
32872{
32873return f != $ac_func;
32874 ;
32875 return 0;
32876}
32877_ACEOF
32878rm -f conftest.$ac_objext conftest$ac_exeext
32879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32880 (eval $ac_link) 2>conftest.er1
a848cd7e 32881 ac_status=$?
ac1cb8d3
VS
32882 grep -v '^ *+' conftest.er1 >conftest.err
32883 rm -f conftest.er1
32884 cat conftest.err >&5
a848cd7e
SC
32885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886 (exit $ac_status); } &&
9dd0f6c2 32887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32889 (eval $ac_try) 2>&5
32890 ac_status=$?
32891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32892 (exit $ac_status); }; } &&
32893 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
32899 eval "$as_ac_var=yes"
32900else
32901 echo "$as_me: failed program was:" >&5
32902sed 's/^/| /' conftest.$ac_ext >&5
32903
32904eval "$as_ac_var=no"
32905fi
ac1cb8d3
VS
32906rm -f conftest.err conftest.$ac_objext \
32907 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32908fi
32909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32910echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32911if test `eval echo '${'$as_ac_var'}'` = yes; then
32912 cat >>confdefs.h <<_ACEOF
32913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32914_ACEOF
32915 break
32916fi
32917done
32918
32919
32920
32921
32922ac_ext=cc
32923ac_cpp='$CXXCPP $CPPFLAGS'
32924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32927
32928
32929
32930for ac_func in strtok_r
32931do
32932as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32933echo "$as_me:$LINENO: checking for $ac_func" >&5
32934echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32935if eval "test \"\${$as_ac_var+set}\" = set"; then
32936 echo $ECHO_N "(cached) $ECHO_C" >&6
32937else
32938 cat >conftest.$ac_ext <<_ACEOF
32939/* confdefs.h. */
32940_ACEOF
32941cat confdefs.h >>conftest.$ac_ext
32942cat >>conftest.$ac_ext <<_ACEOF
32943/* end confdefs.h. */
ac1cb8d3
VS
32944/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32946#define $ac_func innocuous_$ac_func
32947
a848cd7e
SC
32948/* System header to define __stub macros and hopefully few prototypes,
32949 which can conflict with char $ac_func (); below.
32950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32951 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32952
a848cd7e
SC
32953#ifdef __STDC__
32954# include <limits.h>
32955#else
32956# include <assert.h>
32957#endif
ac1cb8d3
VS
32958
32959#undef $ac_func
32960
a848cd7e
SC
32961/* Override any gcc2 internal prototype to avoid an error. */
32962#ifdef __cplusplus
32963extern "C"
32964{
32965#endif
32966/* We use char because int might match the return type of a gcc2
32967 builtin and then its argument prototype would still apply. */
32968char $ac_func ();
32969/* The GNU C library defines this for functions which it implements
32970 to always fail with ENOSYS. Some functions are actually named
32971 something starting with __ and the normal name is an alias. */
32972#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32973choke me
32974#else
32975char (*f) () = $ac_func;
32976#endif
32977#ifdef __cplusplus
32978}
32979#endif
32980
32981int
32982main ()
32983{
32984return f != $ac_func;
32985 ;
32986 return 0;
32987}
32988_ACEOF
32989rm -f conftest.$ac_objext conftest$ac_exeext
32990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32991 (eval $ac_link) 2>conftest.er1
a848cd7e 32992 ac_status=$?
ac1cb8d3
VS
32993 grep -v '^ *+' conftest.er1 >conftest.err
32994 rm -f conftest.er1
32995 cat conftest.err >&5
a848cd7e
SC
32996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32997 (exit $ac_status); } &&
9dd0f6c2 32998 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33000 (eval $ac_try) 2>&5
33001 ac_status=$?
33002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003 (exit $ac_status); }; } &&
33004 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
33010 eval "$as_ac_var=yes"
33011else
33012 echo "$as_me: failed program was:" >&5
33013sed 's/^/| /' conftest.$ac_ext >&5
33014
33015eval "$as_ac_var=no"
33016fi
ac1cb8d3
VS
33017rm -f conftest.err conftest.$ac_objext \
33018 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33019fi
33020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33021echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33022if test `eval echo '${'$as_ac_var'}'` = yes; then
33023 cat >>confdefs.h <<_ACEOF
33024#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33025_ACEOF
33026
33027fi
33028done
33029
33030
33031ac_ext=c
33032ac_cpp='$CPP $CPPFLAGS'
33033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33035ac_compiler_gnu=$ac_cv_c_compiler_gnu
33036
33037
33038INET_LINK=
33039
33040for ac_func in inet_addr
33041do
33042as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33043echo "$as_me:$LINENO: checking for $ac_func" >&5
33044echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33045if eval "test \"\${$as_ac_var+set}\" = set"; then
33046 echo $ECHO_N "(cached) $ECHO_C" >&6
33047else
33048 cat >conftest.$ac_ext <<_ACEOF
33049/* confdefs.h. */
33050_ACEOF
33051cat confdefs.h >>conftest.$ac_ext
33052cat >>conftest.$ac_ext <<_ACEOF
33053/* end confdefs.h. */
ac1cb8d3
VS
33054/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33056#define $ac_func innocuous_$ac_func
33057
a848cd7e
SC
33058/* System header to define __stub macros and hopefully few prototypes,
33059 which can conflict with char $ac_func (); below.
33060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33061 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33062
a848cd7e
SC
33063#ifdef __STDC__
33064# include <limits.h>
33065#else
33066# include <assert.h>
33067#endif
ac1cb8d3
VS
33068
33069#undef $ac_func
33070
a848cd7e
SC
33071/* Override any gcc2 internal prototype to avoid an error. */
33072#ifdef __cplusplus
33073extern "C"
33074{
33075#endif
33076/* We use char because int might match the return type of a gcc2
33077 builtin and then its argument prototype would still apply. */
33078char $ac_func ();
33079/* The GNU C library defines this for functions which it implements
33080 to always fail with ENOSYS. Some functions are actually named
33081 something starting with __ and the normal name is an alias. */
33082#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33083choke me
33084#else
33085char (*f) () = $ac_func;
33086#endif
33087#ifdef __cplusplus
33088}
33089#endif
33090
33091int
33092main ()
33093{
33094return f != $ac_func;
33095 ;
33096 return 0;
33097}
33098_ACEOF
33099rm -f conftest.$ac_objext conftest$ac_exeext
33100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33101 (eval $ac_link) 2>conftest.er1
a848cd7e 33102 ac_status=$?
ac1cb8d3
VS
33103 grep -v '^ *+' conftest.er1 >conftest.err
33104 rm -f conftest.er1
33105 cat conftest.err >&5
a848cd7e
SC
33106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33107 (exit $ac_status); } &&
9dd0f6c2 33108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33110 (eval $ac_try) 2>&5
33111 ac_status=$?
33112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33113 (exit $ac_status); }; } &&
33114 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
33120 eval "$as_ac_var=yes"
33121else
33122 echo "$as_me: failed program was:" >&5
33123sed 's/^/| /' conftest.$ac_ext >&5
33124
33125eval "$as_ac_var=no"
33126fi
ac1cb8d3
VS
33127rm -f conftest.err conftest.$ac_objext \
33128 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33129fi
33130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33131echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33132if test `eval echo '${'$as_ac_var'}'` = yes; then
33133 cat >>confdefs.h <<_ACEOF
33134#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33135_ACEOF
33136 cat >>confdefs.h <<\_ACEOF
33137#define HAVE_INET_ADDR 1
33138_ACEOF
33139
33140else
33141
33142 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33143echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33144if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33145 echo $ECHO_N "(cached) $ECHO_C" >&6
33146else
33147 ac_check_lib_save_LIBS=$LIBS
33148LIBS="-lnsl $LIBS"
33149cat >conftest.$ac_ext <<_ACEOF
33150/* confdefs.h. */
33151_ACEOF
33152cat confdefs.h >>conftest.$ac_ext
33153cat >>conftest.$ac_ext <<_ACEOF
33154/* end confdefs.h. */
33155
33156/* Override any gcc2 internal prototype to avoid an error. */
33157#ifdef __cplusplus
33158extern "C"
33159#endif
33160/* We use char because int might match the return type of a gcc2
33161 builtin and then its argument prototype would still apply. */
33162char inet_addr ();
33163int
33164main ()
33165{
33166inet_addr ();
33167 ;
33168 return 0;
33169}
33170_ACEOF
33171rm -f conftest.$ac_objext conftest$ac_exeext
33172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33173 (eval $ac_link) 2>conftest.er1
a848cd7e 33174 ac_status=$?
ac1cb8d3
VS
33175 grep -v '^ *+' conftest.er1 >conftest.err
33176 rm -f conftest.er1
33177 cat conftest.err >&5
a848cd7e
SC
33178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179 (exit $ac_status); } &&
9dd0f6c2 33180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33182 (eval $ac_try) 2>&5
33183 ac_status=$?
33184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185 (exit $ac_status); }; } &&
33186 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
33192 ac_cv_lib_nsl_inet_addr=yes
33193else
33194 echo "$as_me: failed program was:" >&5
33195sed 's/^/| /' conftest.$ac_ext >&5
33196
33197ac_cv_lib_nsl_inet_addr=no
33198fi
ac1cb8d3
VS
33199rm -f conftest.err conftest.$ac_objext \
33200 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33201LIBS=$ac_check_lib_save_LIBS
33202fi
33203echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33204echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33205if test $ac_cv_lib_nsl_inet_addr = yes; then
33206 INET_LINK="nsl"
33207else
33208
33209 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33210echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33211if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33212 echo $ECHO_N "(cached) $ECHO_C" >&6
33213else
33214 ac_check_lib_save_LIBS=$LIBS
33215LIBS="-lresolv $LIBS"
33216cat >conftest.$ac_ext <<_ACEOF
33217/* confdefs.h. */
33218_ACEOF
33219cat confdefs.h >>conftest.$ac_ext
33220cat >>conftest.$ac_ext <<_ACEOF
33221/* end confdefs.h. */
33222
33223/* Override any gcc2 internal prototype to avoid an error. */
33224#ifdef __cplusplus
33225extern "C"
33226#endif
33227/* We use char because int might match the return type of a gcc2
33228 builtin and then its argument prototype would still apply. */
33229char inet_addr ();
33230int
33231main ()
33232{
33233inet_addr ();
33234 ;
33235 return 0;
33236}
33237_ACEOF
33238rm -f conftest.$ac_objext conftest$ac_exeext
33239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33240 (eval $ac_link) 2>conftest.er1
a848cd7e 33241 ac_status=$?
ac1cb8d3
VS
33242 grep -v '^ *+' conftest.er1 >conftest.err
33243 rm -f conftest.er1
33244 cat conftest.err >&5
a848cd7e
SC
33245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246 (exit $ac_status); } &&
9dd0f6c2 33247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33249 (eval $ac_try) 2>&5
33250 ac_status=$?
33251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252 (exit $ac_status); }; } &&
33253 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
33259 ac_cv_lib_resolv_inet_addr=yes
33260else
33261 echo "$as_me: failed program was:" >&5
33262sed 's/^/| /' conftest.$ac_ext >&5
33263
33264ac_cv_lib_resolv_inet_addr=no
33265fi
ac1cb8d3
VS
33266rm -f conftest.err conftest.$ac_objext \
33267 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33268LIBS=$ac_check_lib_save_LIBS
33269fi
33270echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33271echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33272if test $ac_cv_lib_resolv_inet_addr = yes; then
33273 INET_LINK="resolv"
33274else
33275
33276 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33277echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33278if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33279 echo $ECHO_N "(cached) $ECHO_C" >&6
33280else
33281 ac_check_lib_save_LIBS=$LIBS
33282LIBS="-lsocket $LIBS"
33283cat >conftest.$ac_ext <<_ACEOF
33284/* confdefs.h. */
33285_ACEOF
33286cat confdefs.h >>conftest.$ac_ext
33287cat >>conftest.$ac_ext <<_ACEOF
33288/* end confdefs.h. */
33289
33290/* Override any gcc2 internal prototype to avoid an error. */
33291#ifdef __cplusplus
33292extern "C"
33293#endif
33294/* We use char because int might match the return type of a gcc2
33295 builtin and then its argument prototype would still apply. */
33296char inet_addr ();
33297int
33298main ()
33299{
33300inet_addr ();
33301 ;
33302 return 0;
33303}
33304_ACEOF
33305rm -f conftest.$ac_objext conftest$ac_exeext
33306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33307 (eval $ac_link) 2>conftest.er1
a848cd7e 33308 ac_status=$?
ac1cb8d3
VS
33309 grep -v '^ *+' conftest.er1 >conftest.err
33310 rm -f conftest.er1
33311 cat conftest.err >&5
a848cd7e
SC
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); } &&
9dd0f6c2 33314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33316 (eval $ac_try) 2>&5
33317 ac_status=$?
33318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319 (exit $ac_status); }; } &&
33320 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
33326 ac_cv_lib_socket_inet_addr=yes
33327else
33328 echo "$as_me: failed program was:" >&5
33329sed 's/^/| /' conftest.$ac_ext >&5
33330
33331ac_cv_lib_socket_inet_addr=no
33332fi
ac1cb8d3
VS
33333rm -f conftest.err conftest.$ac_objext \
33334 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33335LIBS=$ac_check_lib_save_LIBS
33336fi
33337echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33338echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33339if test $ac_cv_lib_socket_inet_addr = yes; then
33340 INET_LINK="socket"
33341
33342fi
33343
33344
33345
33346fi
33347
33348
33349
33350fi
33351
33352
33353
33354fi
33355done
33356
33357
33358
33359for ac_func in inet_aton
33360do
33361as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33362echo "$as_me:$LINENO: checking for $ac_func" >&5
33363echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33364if eval "test \"\${$as_ac_var+set}\" = set"; then
33365 echo $ECHO_N "(cached) $ECHO_C" >&6
33366else
33367 cat >conftest.$ac_ext <<_ACEOF
33368/* confdefs.h. */
33369_ACEOF
33370cat confdefs.h >>conftest.$ac_ext
33371cat >>conftest.$ac_ext <<_ACEOF
33372/* end confdefs.h. */
ac1cb8d3
VS
33373/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33375#define $ac_func innocuous_$ac_func
33376
a848cd7e
SC
33377/* System header to define __stub macros and hopefully few prototypes,
33378 which can conflict with char $ac_func (); below.
33379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33380 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33381
a848cd7e
SC
33382#ifdef __STDC__
33383# include <limits.h>
33384#else
33385# include <assert.h>
33386#endif
ac1cb8d3
VS
33387
33388#undef $ac_func
33389
a848cd7e
SC
33390/* Override any gcc2 internal prototype to avoid an error. */
33391#ifdef __cplusplus
33392extern "C"
33393{
33394#endif
33395/* We use char because int might match the return type of a gcc2
33396 builtin and then its argument prototype would still apply. */
33397char $ac_func ();
33398/* The GNU C library defines this for functions which it implements
33399 to always fail with ENOSYS. Some functions are actually named
33400 something starting with __ and the normal name is an alias. */
33401#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33402choke me
33403#else
33404char (*f) () = $ac_func;
33405#endif
33406#ifdef __cplusplus
33407}
33408#endif
33409
33410int
33411main ()
33412{
33413return f != $ac_func;
33414 ;
33415 return 0;
33416}
33417_ACEOF
33418rm -f conftest.$ac_objext conftest$ac_exeext
33419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33420 (eval $ac_link) 2>conftest.er1
a848cd7e 33421 ac_status=$?
ac1cb8d3
VS
33422 grep -v '^ *+' conftest.er1 >conftest.err
33423 rm -f conftest.er1
33424 cat conftest.err >&5
a848cd7e
SC
33425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33426 (exit $ac_status); } &&
9dd0f6c2 33427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33429 (eval $ac_try) 2>&5
33430 ac_status=$?
33431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33432 (exit $ac_status); }; } &&
33433 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
33439 eval "$as_ac_var=yes"
33440else
33441 echo "$as_me: failed program was:" >&5
33442sed 's/^/| /' conftest.$ac_ext >&5
33443
33444eval "$as_ac_var=no"
33445fi
ac1cb8d3
VS
33446rm -f conftest.err conftest.$ac_objext \
33447 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33448fi
33449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33450echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33451if test `eval echo '${'$as_ac_var'}'` = yes; then
33452 cat >>confdefs.h <<_ACEOF
33453#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33454_ACEOF
33455 cat >>confdefs.h <<\_ACEOF
33456#define HAVE_INET_ATON 1
33457_ACEOF
33458
33459else
33460
33461 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33462echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33463echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33464if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33465 echo $ECHO_N "(cached) $ECHO_C" >&6
33466else
33467 ac_check_lib_save_LIBS=$LIBS
33468LIBS="-l$INET_LINK $LIBS"
33469cat >conftest.$ac_ext <<_ACEOF
33470/* confdefs.h. */
33471_ACEOF
33472cat confdefs.h >>conftest.$ac_ext
33473cat >>conftest.$ac_ext <<_ACEOF
33474/* end confdefs.h. */
33475
33476/* Override any gcc2 internal prototype to avoid an error. */
33477#ifdef __cplusplus
33478extern "C"
33479#endif
33480/* We use char because int might match the return type of a gcc2
33481 builtin and then its argument prototype would still apply. */
33482char inet_aton ();
33483int
33484main ()
33485{
33486inet_aton ();
33487 ;
33488 return 0;
33489}
33490_ACEOF
33491rm -f conftest.$ac_objext conftest$ac_exeext
33492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33493 (eval $ac_link) 2>conftest.er1
a848cd7e 33494 ac_status=$?
ac1cb8d3
VS
33495 grep -v '^ *+' conftest.er1 >conftest.err
33496 rm -f conftest.er1
33497 cat conftest.err >&5
a848cd7e
SC
33498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33499 (exit $ac_status); } &&
9dd0f6c2 33500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33502 (eval $ac_try) 2>&5
33503 ac_status=$?
33504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33505 (exit $ac_status); }; } &&
33506 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
33512 eval "$as_ac_Lib=yes"
33513else
33514 echo "$as_me: failed program was:" >&5
33515sed 's/^/| /' conftest.$ac_ext >&5
33516
33517eval "$as_ac_Lib=no"
33518fi
ac1cb8d3
VS
33519rm -f conftest.err conftest.$ac_objext \
33520 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33521LIBS=$ac_check_lib_save_LIBS
33522fi
33523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33524echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33525if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33526 cat >>confdefs.h <<\_ACEOF
33527#define HAVE_INET_ATON 1
33528_ACEOF
33529
33530fi
33531
33532
33533fi
33534done
33535
33536
33537if test "x$INET_LINK" != "x"; then
33538 cat >>confdefs.h <<\_ACEOF
33539#define HAVE_INET_ADDR 1
33540_ACEOF
33541
33542 INET_LINK=" -l$INET_LINK"
33543fi
33544
33545fi
33546
33547
33548
33549EXTRALIBS_ESD=
33550echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
33551echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
33552if test "${ac_cv_lib_esd_esd_close+set}" = set; then
33553 echo $ECHO_N "(cached) $ECHO_C" >&6
33554else
33555 ac_check_lib_save_LIBS=$LIBS
33556LIBS="-lesd $LIBS"
33557cat >conftest.$ac_ext <<_ACEOF
33558/* confdefs.h. */
33559_ACEOF
33560cat confdefs.h >>conftest.$ac_ext
33561cat >>conftest.$ac_ext <<_ACEOF
33562/* end confdefs.h. */
33563
33564/* Override any gcc2 internal prototype to avoid an error. */
33565#ifdef __cplusplus
33566extern "C"
33567#endif
33568/* We use char because int might match the return type of a gcc2
33569 builtin and then its argument prototype would still apply. */
33570char esd_close ();
33571int
33572main ()
33573{
33574esd_close ();
33575 ;
33576 return 0;
33577}
33578_ACEOF
33579rm -f conftest.$ac_objext conftest$ac_exeext
33580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33581 (eval $ac_link) 2>conftest.er1
a848cd7e 33582 ac_status=$?
ac1cb8d3
VS
33583 grep -v '^ *+' conftest.er1 >conftest.err
33584 rm -f conftest.er1
33585 cat conftest.err >&5
a848cd7e
SC
33586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587 (exit $ac_status); } &&
9dd0f6c2 33588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33590 (eval $ac_try) 2>&5
33591 ac_status=$?
33592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33593 (exit $ac_status); }; } &&
33594 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
33600 ac_cv_lib_esd_esd_close=yes
33601else
33602 echo "$as_me: failed program was:" >&5
33603sed 's/^/| /' conftest.$ac_ext >&5
33604
33605ac_cv_lib_esd_esd_close=no
33606fi
ac1cb8d3
VS
33607rm -f conftest.err conftest.$ac_objext \
33608 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33609LIBS=$ac_check_lib_save_LIBS
33610fi
33611echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
33612echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
33613if test $ac_cv_lib_esd_esd_close = yes; then
33614
33615
33616for ac_header in esd.h
33617do
33618as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33619if eval "test \"\${$as_ac_Header+set}\" = set"; then
33620 echo "$as_me:$LINENO: checking for $ac_header" >&5
33621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33622if eval "test \"\${$as_ac_Header+set}\" = set"; then
33623 echo $ECHO_N "(cached) $ECHO_C" >&6
33624fi
33625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33626echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33627else
33628 # Is the header compilable?
33629echo "$as_me:$LINENO: checking $ac_header usability" >&5
33630echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33631cat >conftest.$ac_ext <<_ACEOF
33632/* confdefs.h. */
33633_ACEOF
33634cat confdefs.h >>conftest.$ac_ext
33635cat >>conftest.$ac_ext <<_ACEOF
33636/* end confdefs.h. */
33637$ac_includes_default
33638#include <$ac_header>
33639_ACEOF
33640rm -f conftest.$ac_objext
33641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33642 (eval $ac_compile) 2>conftest.er1
a848cd7e 33643 ac_status=$?
ac1cb8d3
VS
33644 grep -v '^ *+' conftest.er1 >conftest.err
33645 rm -f conftest.er1
33646 cat conftest.err >&5
a848cd7e
SC
33647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33648 (exit $ac_status); } &&
9dd0f6c2 33649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33651 (eval $ac_try) 2>&5
33652 ac_status=$?
33653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654 (exit $ac_status); }; } &&
33655 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
33661 ac_header_compiler=yes
33662else
33663 echo "$as_me: failed program was:" >&5
33664sed 's/^/| /' conftest.$ac_ext >&5
33665
33666ac_header_compiler=no
33667fi
ac1cb8d3 33668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33669echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33670echo "${ECHO_T}$ac_header_compiler" >&6
33671
33672# Is the header present?
33673echo "$as_me:$LINENO: checking $ac_header presence" >&5
33674echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33675cat >conftest.$ac_ext <<_ACEOF
33676/* confdefs.h. */
33677_ACEOF
33678cat confdefs.h >>conftest.$ac_ext
33679cat >>conftest.$ac_ext <<_ACEOF
33680/* end confdefs.h. */
33681#include <$ac_header>
33682_ACEOF
33683if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33685 ac_status=$?
33686 grep -v '^ *+' conftest.er1 >conftest.err
33687 rm -f conftest.er1
33688 cat conftest.err >&5
33689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33690 (exit $ac_status); } >/dev/null; then
33691 if test -s conftest.err; then
33692 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33694 else
33695 ac_cpp_err=
33696 fi
33697else
33698 ac_cpp_err=yes
33699fi
33700if test -z "$ac_cpp_err"; then
33701 ac_header_preproc=yes
33702else
33703 echo "$as_me: failed program was:" >&5
33704sed 's/^/| /' conftest.$ac_ext >&5
33705
33706 ac_header_preproc=no
33707fi
33708rm -f conftest.err conftest.$ac_ext
33709echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33710echo "${ECHO_T}$ac_header_preproc" >&6
33711
33712# So? What about this header?
ac1cb8d3
VS
33713case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33714 yes:no: )
a848cd7e
SC
33715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33716echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33718echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33719 ac_header_preproc=yes
a848cd7e 33720 ;;
ac1cb8d3 33721 no:yes:* )
a848cd7e
SC
33722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33723echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33725echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33727echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33729echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33731echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33733echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33734 (
33735 cat <<\_ASBOX
ac1cb8d3
VS
33736## ----------------------------------------- ##
33737## Report this to wx-dev@lists.wxwidgets.org ##
33738## ----------------------------------------- ##
a848cd7e
SC
33739_ASBOX
33740 ) |
33741 sed "s/^/$as_me: WARNING: /" >&2
33742 ;;
33743esac
33744echo "$as_me:$LINENO: checking for $ac_header" >&5
33745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33746if eval "test \"\${$as_ac_Header+set}\" = set"; then
33747 echo $ECHO_N "(cached) $ECHO_C" >&6
33748else
ac1cb8d3 33749 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33750fi
33751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33752echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33753
33754fi
33755if test `eval echo '${'$as_ac_Header'}'` = yes; then
33756 cat >>confdefs.h <<_ACEOF
33757#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33758_ACEOF
33759
33760 EXTRALIBS_ESD="-lesd"
33761
33762fi
33763
33764done
33765
33766
33767fi
33768
33769
33770
33771echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
33772echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
33773cat >conftest.$ac_ext <<_ACEOF
33774/* confdefs.h. */
33775_ACEOF
33776cat confdefs.h >>conftest.$ac_ext
33777cat >>conftest.$ac_ext <<_ACEOF
33778/* end confdefs.h. */
33779#ifdef __linux__
33780 #include <linux/cdrom.h>
33781 #else
33782 /* For Solaris */
33783 #include <sys/cdio.h>
33784 #endif
33785
33786int
33787main ()
33788{
33789struct cdrom_tocentry entry, old_entry;
33790 ;
33791 return 0;
33792}
33793_ACEOF
33794rm -f conftest.$ac_objext
33795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33796 (eval $ac_compile) 2>conftest.er1
a848cd7e 33797 ac_status=$?
ac1cb8d3
VS
33798 grep -v '^ *+' conftest.er1 >conftest.err
33799 rm -f conftest.er1
33800 cat conftest.err >&5
a848cd7e
SC
33801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802 (exit $ac_status); } &&
9dd0f6c2 33803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33805 (eval $ac_try) 2>&5
33806 ac_status=$?
33807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); }; } &&
33809 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
33815 echo "$as_me:$LINENO: result: yes" >&5
33816echo "${ECHO_T}yes" >&6
33817 cat >>confdefs.h <<\_ACEOF
33818#define HAVE_KNOWN_CDROM_INTERFACE 1
33819_ACEOF
33820
33821else
33822 echo "$as_me: failed program was:" >&5
33823sed 's/^/| /' conftest.$ac_ext >&5
33824
33825echo "$as_me:$LINENO: result: no" >&5
33826echo "${ECHO_T}no" >&6
33827fi
ac1cb8d3 33828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33829
33830
33831cat >confcache <<\_ACEOF
33832# This file is a shell script that caches the results of configure
33833# tests run on this system so they can be shared between configure
33834# scripts and configure runs, see configure's option --config-cache.
33835# It is not useful on other systems. If it contains results you don't
33836# want to keep, you may remove or edit it.
33837#
33838# config.status only pays attention to the cache file if you give it
33839# the --recheck option to rerun configure.
33840#
33841# `ac_cv_env_foo' variables (set or unset) will be overridden when
33842# loading this file, other *unset* `ac_cv_foo' will be assigned the
33843# following values.
33844
33845_ACEOF
33846
33847# The following way of writing the cache mishandles newlines in values,
33848# but we know of no workaround that is simple, portable, and efficient.
33849# So, don't put newlines in cache variables' values.
33850# Ultrix sh set writes to stderr and can't be redirected directly,
33851# and sets the high bit in the cache file unless we assign to the vars.
33852{
33853 (set) 2>&1 |
33854 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33855 *ac_space=\ *)
33856 # `set' does not quote correctly, so add quotes (double-quote
33857 # substitution turns \\\\ into \\, and sed turns \\ into \).
33858 sed -n \
ac1cb8d3
VS
33859 "s/'/'\\\\''/g;
33860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
33861 ;;
33862 *)
33863 # `set' quotes correctly as required by POSIX, so do not add quotes.
33864 sed -n \
ac1cb8d3 33865 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
33866 ;;
33867 esac;
33868} |
33869 sed '
33870 t clear
33871 : clear
33872 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33873 t end
33874 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33875 : end' >>confcache
33876if diff $cache_file confcache >/dev/null 2>&1; then :; else
33877 if test -w $cache_file; then
33878 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33879 cat confcache >$cache_file
33880 else
33881 echo "not updating unwritable cache $cache_file"
33882 fi
33883fi
33884rm -f confcache
33885
33886
33887CPP_MT_FLAG=
33888if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33889
33890
33891 THREADS_LINK=
33892 THREADS_CFLAGS=
33893
33894 if test "$wxUSE_THREADS" = "yes" ; then
33895 if test "$USE_BEOS" = 1; then
33896 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
33897echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
33898 wxUSE_THREADS="no"
33899 fi
33900 fi
33901
33902 if test "$wxUSE_THREADS" = "yes" ; then
33903
33904
33905 THREAD_OPTS="-pthread"
33906 case "${host}" in
33907 *-*-solaris2* | *-*-sunos4* )
33908 if test "x$GCC" = "xyes"; then
33909 THREAD_OPTS="-pthreads $THREAD_OPTS"
33910 else
33911 THREAD_OPTS="-mt $THREAD_OPTS"
33912 fi
33913 ;;
33914 *-*-freebsd*)
33915 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
33916 ;;
33917 *-*-darwin* | *-*-cygwin* )
33918 THREAD_OPTS=""
33919 ;;
33920 *-*-aix*)
33921 THREAD_OPTS="pthreads"
33922 ;;
33923 *-hp-hpux* )
33924 if test "x$GCC" != "xyes"; then
33925 THREAD_OPTS=""
33926 fi
33927 ;;
33928
33929 *-*-irix* )
33930 if test "x$GCC" = "xyes"; then
33931 THREAD_OPTS=""
33932 fi
33933 ;;
33934
33935 *-*-*UnixWare*)
33936 if test "x$GCC" != "xyes"; then
33937 THREAD_OPTS="-Ethread"
33938 fi
33939 ;;
33940 esac
33941
33942 THREAD_OPTS="$THREAD_OPTS pthread none"
33943
33944 THREADS_OK=no
33945 for flag in $THREAD_OPTS; do
33946 case $flag in
33947 none)
33948 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
33949echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
33950 ;;
33951
33952 -*)
33953 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
33954echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
33955 THREADS_CFLAGS="$flag"
33956 ;;
33957
33958 *)
33959 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
33960echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
33961 THREADS_LINK="-l$flag"
33962 ;;
33963 esac
33964
33965 save_LIBS="$LIBS"
33966 save_CFLAGS="$CFLAGS"
33967 LIBS="$THREADS_LINK $LIBS"
33968 CFLAGS="$THREADS_CFLAGS $CFLAGS"
33969
33970 cat >conftest.$ac_ext <<_ACEOF
33971/* confdefs.h. */
33972_ACEOF
33973cat confdefs.h >>conftest.$ac_ext
33974cat >>conftest.$ac_ext <<_ACEOF
33975/* end confdefs.h. */
33976#include <pthread.h>
33977int
33978main ()
33979{
33980pthread_create(0,0,0,0);
33981 ;
33982 return 0;
33983}
33984_ACEOF
33985rm -f conftest.$ac_objext conftest$ac_exeext
33986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33987 (eval $ac_link) 2>conftest.er1
a848cd7e 33988 ac_status=$?
ac1cb8d3
VS
33989 grep -v '^ *+' conftest.er1 >conftest.err
33990 rm -f conftest.er1
33991 cat conftest.err >&5
a848cd7e
SC
33992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33993 (exit $ac_status); } &&
9dd0f6c2 33994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33996 (eval $ac_try) 2>&5
33997 ac_status=$?
33998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999 (exit $ac_status); }; } &&
34000 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
34006 THREADS_OK=yes
34007else
34008 echo "$as_me: failed program was:" >&5
34009sed 's/^/| /' conftest.$ac_ext >&5
34010
34011fi
ac1cb8d3
VS
34012rm -f conftest.err conftest.$ac_objext \
34013 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34014
34015 LIBS="$save_LIBS"
34016 CFLAGS="$save_CFLAGS"
34017
34018 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
34019echo "${ECHO_T}$THREADS_OK" >&6
34020 if test "x$THREADS_OK" = "xyes"; then
34021 break;
34022 fi
34023
34024 THREADS_LINK=""
34025 THREADS_CFLAGS=""
34026 done
34027
34028 if test "x$THREADS_OK" != "xyes"; then
34029 wxUSE_THREADS=no
34030 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
34031echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
34032 else
34033 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
34034 LIBS="$THREADS_LINK $LIBS"
34035
34036 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
34037echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
34038 flag=no
34039 case "${host}" in
34040 *-aix*)
34041 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
34042 flag="-D_THREAD_SAFE"
34043 ;;
34044 *-freebsd*)
34045 flag="-D_THREAD_SAFE"
34046 ;;
34047 *-hp-hpux* )
34048 flag="-D_REENTRANT"
34049 if test "x$GCC" != "xyes"; then
34050 flag="$flag -D_RWSTD_MULTI_THREAD"
34051 fi
34052 ;;
34053 *solaris* | alpha*-osf*)
34054 flag="-D_REENTRANT"
34055 ;;
34056 esac
34057 echo "$as_me:$LINENO: result: ${flag}" >&5
34058echo "${ECHO_T}${flag}" >&6
34059 if test "x$flag" != xno; then
34060 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
34061 fi
34062
34063 if test "x$THREADS_CFLAGS" != "x"; then
34064 CFLAGS="$CFLAGS $THREADS_CFLAGS"
34065 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
34066 fi
34067 fi
34068 fi
34069
34070 if test "$wxUSE_THREADS" = "yes" ; then
34071
34072for ac_func in thr_setconcurrency
34073do
34074as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34075echo "$as_me:$LINENO: checking for $ac_func" >&5
34076echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34077if eval "test \"\${$as_ac_var+set}\" = set"; then
34078 echo $ECHO_N "(cached) $ECHO_C" >&6
34079else
34080 cat >conftest.$ac_ext <<_ACEOF
34081/* confdefs.h. */
34082_ACEOF
34083cat confdefs.h >>conftest.$ac_ext
34084cat >>conftest.$ac_ext <<_ACEOF
34085/* end confdefs.h. */
ac1cb8d3
VS
34086/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34088#define $ac_func innocuous_$ac_func
34089
a848cd7e
SC
34090/* System header to define __stub macros and hopefully few prototypes,
34091 which can conflict with char $ac_func (); below.
34092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34093 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34094
a848cd7e
SC
34095#ifdef __STDC__
34096# include <limits.h>
34097#else
34098# include <assert.h>
34099#endif
ac1cb8d3
VS
34100
34101#undef $ac_func
34102
a848cd7e
SC
34103/* Override any gcc2 internal prototype to avoid an error. */
34104#ifdef __cplusplus
34105extern "C"
34106{
34107#endif
34108/* We use char because int might match the return type of a gcc2
34109 builtin and then its argument prototype would still apply. */
34110char $ac_func ();
34111/* The GNU C library defines this for functions which it implements
34112 to always fail with ENOSYS. Some functions are actually named
34113 something starting with __ and the normal name is an alias. */
34114#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34115choke me
34116#else
34117char (*f) () = $ac_func;
34118#endif
34119#ifdef __cplusplus
34120}
34121#endif
34122
34123int
34124main ()
34125{
34126return f != $ac_func;
34127 ;
34128 return 0;
34129}
34130_ACEOF
34131rm -f conftest.$ac_objext conftest$ac_exeext
34132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34133 (eval $ac_link) 2>conftest.er1
a848cd7e 34134 ac_status=$?
ac1cb8d3
VS
34135 grep -v '^ *+' conftest.er1 >conftest.err
34136 rm -f conftest.er1
34137 cat conftest.err >&5
a848cd7e
SC
34138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34139 (exit $ac_status); } &&
9dd0f6c2 34140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34142 (eval $ac_try) 2>&5
34143 ac_status=$?
34144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34145 (exit $ac_status); }; } &&
34146 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
34152 eval "$as_ac_var=yes"
34153else
34154 echo "$as_me: failed program was:" >&5
34155sed 's/^/| /' conftest.$ac_ext >&5
34156
34157eval "$as_ac_var=no"
34158fi
ac1cb8d3
VS
34159rm -f conftest.err conftest.$ac_objext \
34160 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34161fi
34162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34163echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34164if test `eval echo '${'$as_ac_var'}'` = yes; then
34165 cat >>confdefs.h <<_ACEOF
34166#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34167_ACEOF
34168
34169fi
34170done
34171
34172
34173
34174for ac_header in sched.h
34175do
34176as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34177if eval "test \"\${$as_ac_Header+set}\" = set"; then
34178 echo "$as_me:$LINENO: checking for $ac_header" >&5
34179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34180if eval "test \"\${$as_ac_Header+set}\" = set"; then
34181 echo $ECHO_N "(cached) $ECHO_C" >&6
34182fi
34183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34184echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34185else
34186 # Is the header compilable?
34187echo "$as_me:$LINENO: checking $ac_header usability" >&5
34188echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34189cat >conftest.$ac_ext <<_ACEOF
34190/* confdefs.h. */
34191_ACEOF
34192cat confdefs.h >>conftest.$ac_ext
34193cat >>conftest.$ac_ext <<_ACEOF
34194/* end confdefs.h. */
34195$ac_includes_default
34196#include <$ac_header>
34197_ACEOF
34198rm -f conftest.$ac_objext
34199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34200 (eval $ac_compile) 2>conftest.er1
a848cd7e 34201 ac_status=$?
ac1cb8d3
VS
34202 grep -v '^ *+' conftest.er1 >conftest.err
34203 rm -f conftest.er1
34204 cat conftest.err >&5
a848cd7e
SC
34205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34206 (exit $ac_status); } &&
9dd0f6c2 34207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34209 (eval $ac_try) 2>&5
34210 ac_status=$?
34211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34212 (exit $ac_status); }; } &&
34213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
34219 ac_header_compiler=yes
34220else
34221 echo "$as_me: failed program was:" >&5
34222sed 's/^/| /' conftest.$ac_ext >&5
34223
34224ac_header_compiler=no
34225fi
ac1cb8d3 34226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34227echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34228echo "${ECHO_T}$ac_header_compiler" >&6
34229
34230# Is the header present?
34231echo "$as_me:$LINENO: checking $ac_header presence" >&5
34232echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34233cat >conftest.$ac_ext <<_ACEOF
34234/* confdefs.h. */
34235_ACEOF
34236cat confdefs.h >>conftest.$ac_ext
34237cat >>conftest.$ac_ext <<_ACEOF
34238/* end confdefs.h. */
34239#include <$ac_header>
34240_ACEOF
34241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34243 ac_status=$?
34244 grep -v '^ *+' conftest.er1 >conftest.err
34245 rm -f conftest.er1
34246 cat conftest.err >&5
34247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34248 (exit $ac_status); } >/dev/null; then
34249 if test -s conftest.err; then
34250 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34252 else
34253 ac_cpp_err=
34254 fi
34255else
34256 ac_cpp_err=yes
34257fi
34258if test -z "$ac_cpp_err"; then
34259 ac_header_preproc=yes
34260else
34261 echo "$as_me: failed program was:" >&5
34262sed 's/^/| /' conftest.$ac_ext >&5
34263
34264 ac_header_preproc=no
34265fi
34266rm -f conftest.err conftest.$ac_ext
34267echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34268echo "${ECHO_T}$ac_header_preproc" >&6
34269
34270# So? What about this header?
ac1cb8d3
VS
34271case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34272 yes:no: )
a848cd7e
SC
34273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34274echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34276echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34277 ac_header_preproc=yes
a848cd7e 34278 ;;
ac1cb8d3 34279 no:yes:* )
a848cd7e
SC
34280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34281echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34283echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34285echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34287echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34289echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34291echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34292 (
34293 cat <<\_ASBOX
ac1cb8d3
VS
34294## ----------------------------------------- ##
34295## Report this to wx-dev@lists.wxwidgets.org ##
34296## ----------------------------------------- ##
a848cd7e
SC
34297_ASBOX
34298 ) |
34299 sed "s/^/$as_me: WARNING: /" >&2
34300 ;;
34301esac
34302echo "$as_me:$LINENO: checking for $ac_header" >&5
34303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34304if eval "test \"\${$as_ac_Header+set}\" = set"; then
34305 echo $ECHO_N "(cached) $ECHO_C" >&6
34306else
ac1cb8d3 34307 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34308fi
34309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34311
34312fi
34313if test `eval echo '${'$as_ac_Header'}'` = yes; then
34314 cat >>confdefs.h <<_ACEOF
34315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34316_ACEOF
34317
34318fi
34319
34320done
34321
34322 if test "$ac_cv_header_sched_h" = "yes"; then
34323 echo "$as_me:$LINENO: checking for sched_yield" >&5
34324echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34325if test "${ac_cv_func_sched_yield+set}" = set; then
34326 echo $ECHO_N "(cached) $ECHO_C" >&6
34327else
34328 cat >conftest.$ac_ext <<_ACEOF
34329/* confdefs.h. */
34330_ACEOF
34331cat confdefs.h >>conftest.$ac_ext
34332cat >>conftest.$ac_ext <<_ACEOF
34333/* end confdefs.h. */
ac1cb8d3
VS
34334/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34336#define sched_yield innocuous_sched_yield
34337
a848cd7e
SC
34338/* System header to define __stub macros and hopefully few prototypes,
34339 which can conflict with char sched_yield (); below.
34340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34341 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34342
a848cd7e
SC
34343#ifdef __STDC__
34344# include <limits.h>
34345#else
34346# include <assert.h>
34347#endif
ac1cb8d3
VS
34348
34349#undef sched_yield
34350
a848cd7e
SC
34351/* Override any gcc2 internal prototype to avoid an error. */
34352#ifdef __cplusplus
34353extern "C"
34354{
34355#endif
34356/* We use char because int might match the return type of a gcc2
34357 builtin and then its argument prototype would still apply. */
34358char sched_yield ();
34359/* The GNU C library defines this for functions which it implements
34360 to always fail with ENOSYS. Some functions are actually named
34361 something starting with __ and the normal name is an alias. */
34362#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34363choke me
34364#else
34365char (*f) () = sched_yield;
34366#endif
34367#ifdef __cplusplus
34368}
34369#endif
34370
34371int
34372main ()
34373{
34374return f != sched_yield;
34375 ;
34376 return 0;
34377}
34378_ACEOF
34379rm -f conftest.$ac_objext conftest$ac_exeext
34380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34381 (eval $ac_link) 2>conftest.er1
a848cd7e 34382 ac_status=$?
ac1cb8d3
VS
34383 grep -v '^ *+' conftest.er1 >conftest.err
34384 rm -f conftest.er1
34385 cat conftest.err >&5
a848cd7e
SC
34386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34387 (exit $ac_status); } &&
9dd0f6c2 34388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34390 (eval $ac_try) 2>&5
34391 ac_status=$?
34392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34393 (exit $ac_status); }; } &&
34394 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
34400 ac_cv_func_sched_yield=yes
34401else
34402 echo "$as_me: failed program was:" >&5
34403sed 's/^/| /' conftest.$ac_ext >&5
34404
34405ac_cv_func_sched_yield=no
34406fi
ac1cb8d3
VS
34407rm -f conftest.err conftest.$ac_objext \
34408 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34409fi
34410echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34411echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34412if test $ac_cv_func_sched_yield = yes; then
34413 cat >>confdefs.h <<\_ACEOF
34414#define HAVE_SCHED_YIELD 1
34415_ACEOF
34416
34417else
34418
34419 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34420echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34421if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34422 echo $ECHO_N "(cached) $ECHO_C" >&6
34423else
34424 ac_check_lib_save_LIBS=$LIBS
34425LIBS="-lposix4 $LIBS"
34426cat >conftest.$ac_ext <<_ACEOF
34427/* confdefs.h. */
34428_ACEOF
34429cat confdefs.h >>conftest.$ac_ext
34430cat >>conftest.$ac_ext <<_ACEOF
34431/* end confdefs.h. */
34432
34433/* Override any gcc2 internal prototype to avoid an error. */
34434#ifdef __cplusplus
34435extern "C"
34436#endif
34437/* We use char because int might match the return type of a gcc2
34438 builtin and then its argument prototype would still apply. */
34439char sched_yield ();
34440int
34441main ()
34442{
34443sched_yield ();
34444 ;
34445 return 0;
34446}
34447_ACEOF
34448rm -f conftest.$ac_objext conftest$ac_exeext
34449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34450 (eval $ac_link) 2>conftest.er1
a848cd7e 34451 ac_status=$?
ac1cb8d3
VS
34452 grep -v '^ *+' conftest.er1 >conftest.err
34453 rm -f conftest.er1
34454 cat conftest.err >&5
a848cd7e
SC
34455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34456 (exit $ac_status); } &&
9dd0f6c2 34457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34459 (eval $ac_try) 2>&5
34460 ac_status=$?
34461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34462 (exit $ac_status); }; } &&
34463 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
34469 ac_cv_lib_posix4_sched_yield=yes
34470else
34471 echo "$as_me: failed program was:" >&5
34472sed 's/^/| /' conftest.$ac_ext >&5
34473
34474ac_cv_lib_posix4_sched_yield=no
34475fi
ac1cb8d3
VS
34476rm -f conftest.err conftest.$ac_objext \
34477 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34478LIBS=$ac_check_lib_save_LIBS
34479fi
34480echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34481echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34482if test $ac_cv_lib_posix4_sched_yield = yes; then
34483 cat >>confdefs.h <<\_ACEOF
34484#define HAVE_SCHED_YIELD 1
34485_ACEOF
34486 POSIX4_LINK=" -lposix4"
34487else
34488 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34489echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34490
34491fi
34492
34493
34494
34495fi
34496
34497 fi
34498
34499 HAVE_PRIOR_FUNCS=0
34500 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34501echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34502if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34503 echo $ECHO_N "(cached) $ECHO_C" >&6
34504else
34505 cat >conftest.$ac_ext <<_ACEOF
34506/* confdefs.h. */
34507_ACEOF
34508cat confdefs.h >>conftest.$ac_ext
34509cat >>conftest.$ac_ext <<_ACEOF
34510/* end confdefs.h. */
ac1cb8d3
VS
34511/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34513#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34514
a848cd7e
SC
34515/* System header to define __stub macros and hopefully few prototypes,
34516 which can conflict with char pthread_attr_getschedpolicy (); below.
34517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34518 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34519
a848cd7e
SC
34520#ifdef __STDC__
34521# include <limits.h>
34522#else
34523# include <assert.h>
34524#endif
ac1cb8d3
VS
34525
34526#undef pthread_attr_getschedpolicy
34527
a848cd7e
SC
34528/* Override any gcc2 internal prototype to avoid an error. */
34529#ifdef __cplusplus
34530extern "C"
34531{
34532#endif
34533/* We use char because int might match the return type of a gcc2
34534 builtin and then its argument prototype would still apply. */
34535char pthread_attr_getschedpolicy ();
34536/* The GNU C library defines this for functions which it implements
34537 to always fail with ENOSYS. Some functions are actually named
34538 something starting with __ and the normal name is an alias. */
34539#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
34540choke me
34541#else
34542char (*f) () = pthread_attr_getschedpolicy;
34543#endif
34544#ifdef __cplusplus
34545}
34546#endif
34547
34548int
34549main ()
34550{
34551return f != pthread_attr_getschedpolicy;
34552 ;
34553 return 0;
34554}
34555_ACEOF
34556rm -f conftest.$ac_objext conftest$ac_exeext
34557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34558 (eval $ac_link) 2>conftest.er1
a848cd7e 34559 ac_status=$?
ac1cb8d3
VS
34560 grep -v '^ *+' conftest.er1 >conftest.err
34561 rm -f conftest.er1
34562 cat conftest.err >&5
a848cd7e
SC
34563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34564 (exit $ac_status); } &&
9dd0f6c2 34565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34567 (eval $ac_try) 2>&5
34568 ac_status=$?
34569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570 (exit $ac_status); }; } &&
34571 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
34577 ac_cv_func_pthread_attr_getschedpolicy=yes
34578else
34579 echo "$as_me: failed program was:" >&5
34580sed 's/^/| /' conftest.$ac_ext >&5
34581
34582ac_cv_func_pthread_attr_getschedpolicy=no
34583fi
ac1cb8d3
VS
34584rm -f conftest.err conftest.$ac_objext \
34585 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34586fi
34587echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
34588echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
34589if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
34590 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
34591echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
34592if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
34593 echo $ECHO_N "(cached) $ECHO_C" >&6
34594else
34595 cat >conftest.$ac_ext <<_ACEOF
34596/* confdefs.h. */
34597_ACEOF
34598cat confdefs.h >>conftest.$ac_ext
34599cat >>conftest.$ac_ext <<_ACEOF
34600/* end confdefs.h. */
ac1cb8d3
VS
34601/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
34602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34603#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
34604
a848cd7e
SC
34605/* System header to define __stub macros and hopefully few prototypes,
34606 which can conflict with char pthread_attr_setschedparam (); below.
34607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34608 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34609
a848cd7e
SC
34610#ifdef __STDC__
34611# include <limits.h>
34612#else
34613# include <assert.h>
34614#endif
ac1cb8d3
VS
34615
34616#undef pthread_attr_setschedparam
34617
a848cd7e
SC
34618/* Override any gcc2 internal prototype to avoid an error. */
34619#ifdef __cplusplus
34620extern "C"
34621{
34622#endif
34623/* We use char because int might match the return type of a gcc2
34624 builtin and then its argument prototype would still apply. */
34625char pthread_attr_setschedparam ();
34626/* The GNU C library defines this for functions which it implements
34627 to always fail with ENOSYS. Some functions are actually named
34628 something starting with __ and the normal name is an alias. */
34629#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
34630choke me
34631#else
34632char (*f) () = pthread_attr_setschedparam;
34633#endif
34634#ifdef __cplusplus
34635}
34636#endif
34637
34638int
34639main ()
34640{
34641return f != pthread_attr_setschedparam;
34642 ;
34643 return 0;
34644}
34645_ACEOF
34646rm -f conftest.$ac_objext conftest$ac_exeext
34647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34648 (eval $ac_link) 2>conftest.er1
a848cd7e 34649 ac_status=$?
ac1cb8d3
VS
34650 grep -v '^ *+' conftest.er1 >conftest.err
34651 rm -f conftest.er1
34652 cat conftest.err >&5
a848cd7e
SC
34653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34654 (exit $ac_status); } &&
9dd0f6c2 34655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34657 (eval $ac_try) 2>&5
34658 ac_status=$?
34659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660 (exit $ac_status); }; } &&
34661 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
34667 ac_cv_func_pthread_attr_setschedparam=yes
34668else
34669 echo "$as_me: failed program was:" >&5
34670sed 's/^/| /' conftest.$ac_ext >&5
34671
34672ac_cv_func_pthread_attr_setschedparam=no
34673fi
ac1cb8d3
VS
34674rm -f conftest.err conftest.$ac_objext \
34675 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34676fi
34677echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
34678echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
34679if test $ac_cv_func_pthread_attr_setschedparam = yes; then
34680 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
34681echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
34682if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
34683 echo $ECHO_N "(cached) $ECHO_C" >&6
34684else
34685 cat >conftest.$ac_ext <<_ACEOF
34686/* confdefs.h. */
34687_ACEOF
34688cat confdefs.h >>conftest.$ac_ext
34689cat >>conftest.$ac_ext <<_ACEOF
34690/* end confdefs.h. */
ac1cb8d3
VS
34691/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
34692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34693#define sched_get_priority_max innocuous_sched_get_priority_max
34694
a848cd7e
SC
34695/* System header to define __stub macros and hopefully few prototypes,
34696 which can conflict with char sched_get_priority_max (); below.
34697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34698 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34699
a848cd7e
SC
34700#ifdef __STDC__
34701# include <limits.h>
34702#else
34703# include <assert.h>
34704#endif
ac1cb8d3
VS
34705
34706#undef sched_get_priority_max
34707
a848cd7e
SC
34708/* Override any gcc2 internal prototype to avoid an error. */
34709#ifdef __cplusplus
34710extern "C"
34711{
34712#endif
34713/* We use char because int might match the return type of a gcc2
34714 builtin and then its argument prototype would still apply. */
34715char sched_get_priority_max ();
34716/* The GNU C library defines this for functions which it implements
34717 to always fail with ENOSYS. Some functions are actually named
34718 something starting with __ and the normal name is an alias. */
34719#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
34720choke me
34721#else
34722char (*f) () = sched_get_priority_max;
34723#endif
34724#ifdef __cplusplus
34725}
34726#endif
34727
34728int
34729main ()
34730{
34731return f != sched_get_priority_max;
34732 ;
34733 return 0;
34734}
34735_ACEOF
34736rm -f conftest.$ac_objext conftest$ac_exeext
34737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34738 (eval $ac_link) 2>conftest.er1
a848cd7e 34739 ac_status=$?
ac1cb8d3
VS
34740 grep -v '^ *+' conftest.er1 >conftest.err
34741 rm -f conftest.er1
34742 cat conftest.err >&5
a848cd7e
SC
34743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34744 (exit $ac_status); } &&
9dd0f6c2 34745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34747 (eval $ac_try) 2>&5
34748 ac_status=$?
34749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34750 (exit $ac_status); }; } &&
34751 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
34757 ac_cv_func_sched_get_priority_max=yes
34758else
34759 echo "$as_me: failed program was:" >&5
34760sed 's/^/| /' conftest.$ac_ext >&5
34761
34762ac_cv_func_sched_get_priority_max=no
34763fi
ac1cb8d3
VS
34764rm -f conftest.err conftest.$ac_objext \
34765 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34766fi
34767echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
34768echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
34769if test $ac_cv_func_sched_get_priority_max = yes; then
34770 HAVE_PRIOR_FUNCS=1
34771else
34772 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
34773echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
34774if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
34775 echo $ECHO_N "(cached) $ECHO_C" >&6
34776else
34777 ac_check_lib_save_LIBS=$LIBS
34778LIBS="-lposix4 $LIBS"
34779cat >conftest.$ac_ext <<_ACEOF
34780/* confdefs.h. */
34781_ACEOF
34782cat confdefs.h >>conftest.$ac_ext
34783cat >>conftest.$ac_ext <<_ACEOF
34784/* end confdefs.h. */
34785
34786/* Override any gcc2 internal prototype to avoid an error. */
34787#ifdef __cplusplus
34788extern "C"
34789#endif
34790/* We use char because int might match the return type of a gcc2
34791 builtin and then its argument prototype would still apply. */
34792char sched_get_priority_max ();
34793int
34794main ()
34795{
34796sched_get_priority_max ();
34797 ;
34798 return 0;
34799}
34800_ACEOF
34801rm -f conftest.$ac_objext conftest$ac_exeext
34802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34803 (eval $ac_link) 2>conftest.er1
a848cd7e 34804 ac_status=$?
ac1cb8d3
VS
34805 grep -v '^ *+' conftest.er1 >conftest.err
34806 rm -f conftest.er1
34807 cat conftest.err >&5
a848cd7e
SC
34808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34809 (exit $ac_status); } &&
9dd0f6c2 34810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34812 (eval $ac_try) 2>&5
34813 ac_status=$?
34814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34815 (exit $ac_status); }; } &&
34816 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
34822 ac_cv_lib_posix4_sched_get_priority_max=yes
34823else
34824 echo "$as_me: failed program was:" >&5
34825sed 's/^/| /' conftest.$ac_ext >&5
34826
34827ac_cv_lib_posix4_sched_get_priority_max=no
34828fi
ac1cb8d3
VS
34829rm -f conftest.err conftest.$ac_objext \
34830 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34831LIBS=$ac_check_lib_save_LIBS
34832fi
34833echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
34834echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
34835if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
34836
34837 HAVE_PRIOR_FUNCS=1
34838 POSIX4_LINK=" -lposix4"
34839
34840fi
34841
34842
34843fi
34844
34845
34846fi
34847
34848
34849fi
34850
34851
34852 if test "$HAVE_PRIOR_FUNCS" = 1; then
34853 cat >>confdefs.h <<\_ACEOF
34854#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
34855_ACEOF
34856
34857 else
34858 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
34859echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
34860 fi
34861
34862 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
34863echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
34864if test "${ac_cv_func_pthread_cancel+set}" = set; then
34865 echo $ECHO_N "(cached) $ECHO_C" >&6
34866else
34867 cat >conftest.$ac_ext <<_ACEOF
34868/* confdefs.h. */
34869_ACEOF
34870cat confdefs.h >>conftest.$ac_ext
34871cat >>conftest.$ac_ext <<_ACEOF
34872/* end confdefs.h. */
ac1cb8d3
VS
34873/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
34874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34875#define pthread_cancel innocuous_pthread_cancel
34876
a848cd7e
SC
34877/* System header to define __stub macros and hopefully few prototypes,
34878 which can conflict with char pthread_cancel (); below.
34879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34880 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34881
a848cd7e
SC
34882#ifdef __STDC__
34883# include <limits.h>
34884#else
34885# include <assert.h>
34886#endif
ac1cb8d3
VS
34887
34888#undef pthread_cancel
34889
a848cd7e
SC
34890/* Override any gcc2 internal prototype to avoid an error. */
34891#ifdef __cplusplus
34892extern "C"
34893{
34894#endif
34895/* We use char because int might match the return type of a gcc2
34896 builtin and then its argument prototype would still apply. */
34897char pthread_cancel ();
34898/* The GNU C library defines this for functions which it implements
34899 to always fail with ENOSYS. Some functions are actually named
34900 something starting with __ and the normal name is an alias. */
34901#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
34902choke me
34903#else
34904char (*f) () = pthread_cancel;
34905#endif
34906#ifdef __cplusplus
34907}
34908#endif
34909
34910int
34911main ()
34912{
34913return f != pthread_cancel;
34914 ;
34915 return 0;
34916}
34917_ACEOF
34918rm -f conftest.$ac_objext conftest$ac_exeext
34919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34920 (eval $ac_link) 2>conftest.er1
a848cd7e 34921 ac_status=$?
ac1cb8d3
VS
34922 grep -v '^ *+' conftest.er1 >conftest.err
34923 rm -f conftest.er1
34924 cat conftest.err >&5
a848cd7e
SC
34925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926 (exit $ac_status); } &&
9dd0f6c2 34927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34929 (eval $ac_try) 2>&5
34930 ac_status=$?
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); }; } &&
34933 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
34939 ac_cv_func_pthread_cancel=yes
34940else
34941 echo "$as_me: failed program was:" >&5
34942sed 's/^/| /' conftest.$ac_ext >&5
34943
34944ac_cv_func_pthread_cancel=no
34945fi
ac1cb8d3
VS
34946rm -f conftest.err conftest.$ac_objext \
34947 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34948fi
34949echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
34950echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
34951if test $ac_cv_func_pthread_cancel = yes; then
34952 cat >>confdefs.h <<\_ACEOF
34953#define HAVE_PTHREAD_CANCEL 1
34954_ACEOF
34955
34956else
34957 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
34958echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
34959fi
34960
34961
34962
34963
34964 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
34965echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
34966if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
34967 echo $ECHO_N "(cached) $ECHO_C" >&6
34968else
34969
34970 cat >conftest.$ac_ext <<_ACEOF
34971/* confdefs.h. */
34972_ACEOF
34973cat confdefs.h >>conftest.$ac_ext
34974cat >>conftest.$ac_ext <<_ACEOF
34975/* end confdefs.h. */
34976#include <pthread.h>
34977int
34978main ()
34979{
34980
34981 pthread_mutexattr_t attr;
34982 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
34983
34984 ;
34985 return 0;
34986}
34987_ACEOF
34988rm -f conftest.$ac_objext
34989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34990 (eval $ac_compile) 2>conftest.er1
a848cd7e 34991 ac_status=$?
ac1cb8d3
VS
34992 grep -v '^ *+' conftest.er1 >conftest.err
34993 rm -f conftest.er1
34994 cat conftest.err >&5
a848cd7e
SC
34995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996 (exit $ac_status); } &&
9dd0f6c2 34997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34999 (eval $ac_try) 2>&5
35000 ac_status=$?
35001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002 (exit $ac_status); }; } &&
35003 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
35009
35010 wx_cv_type_pthread_mutexattr_t=yes
35011
35012else
35013 echo "$as_me: failed program was:" >&5
35014sed 's/^/| /' conftest.$ac_ext >&5
35015
35016
35017 wx_cv_type_pthread_mutexattr_t=no
35018
35019
35020fi
ac1cb8d3 35021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35022
35023fi
35024echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
35025echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
35026
35027 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
35028 cat >>confdefs.h <<\_ACEOF
35029#define HAVE_PTHREAD_MUTEXATTR_T 1
35030_ACEOF
35031
35032 else
35033 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
35034echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
35035if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
35036 echo $ECHO_N "(cached) $ECHO_C" >&6
35037else
35038
35039 cat >conftest.$ac_ext <<_ACEOF
35040/* confdefs.h. */
35041_ACEOF
35042cat confdefs.h >>conftest.$ac_ext
35043cat >>conftest.$ac_ext <<_ACEOF
35044/* end confdefs.h. */
35045#include <pthread.h>
35046int
35047main ()
35048{
35049
35050 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
35051
35052 ;
35053 return 0;
35054}
35055_ACEOF
35056rm -f conftest.$ac_objext
35057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35058 (eval $ac_compile) 2>conftest.er1
a848cd7e 35059 ac_status=$?
ac1cb8d3
VS
35060 grep -v '^ *+' conftest.er1 >conftest.err
35061 rm -f conftest.er1
35062 cat conftest.err >&5
a848cd7e
SC
35063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35064 (exit $ac_status); } &&
9dd0f6c2 35065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35067 (eval $ac_try) 2>&5
35068 ac_status=$?
35069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35070 (exit $ac_status); }; } &&
35071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
35077
35078 wx_cv_type_pthread_rec_mutex_init=yes
35079
35080else
35081 echo "$as_me: failed program was:" >&5
35082sed 's/^/| /' conftest.$ac_ext >&5
35083
35084
35085 wx_cv_type_pthread_rec_mutex_init=no
35086
35087
35088fi
ac1cb8d3 35089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35090
35091fi
35092echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
35093echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
35094 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
35095 cat >>confdefs.h <<\_ACEOF
35096#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
35097_ACEOF
35098
35099 else
35100 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
35101echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
35102 fi
35103 fi
35104 fi
35105
35106else
35107 if test "$wxUSE_THREADS" = "yes" ; then
35108 case "${host}" in
35109 *-*-mingw32* )
35110 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
35111echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
35112if test "${wx_cv_cflags_mthread+set}" = set; then
35113 echo $ECHO_N "(cached) $ECHO_C" >&6
35114else
35115
35116 CFLAGS_OLD="$CFLAGS"
35117 CFLAGS="$CFLAGS -mthreads"
35118 cat >conftest.$ac_ext <<_ACEOF
35119/* confdefs.h. */
35120_ACEOF
35121cat confdefs.h >>conftest.$ac_ext
35122cat >>conftest.$ac_ext <<_ACEOF
35123/* end confdefs.h. */
35124
35125int
35126main ()
35127{
35128
35129 ;
35130 return 0;
35131}
35132_ACEOF
35133rm -f conftest.$ac_objext
35134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35135 (eval $ac_compile) 2>conftest.er1
a848cd7e 35136 ac_status=$?
ac1cb8d3
VS
35137 grep -v '^ *+' conftest.er1 >conftest.err
35138 rm -f conftest.er1
35139 cat conftest.err >&5
a848cd7e
SC
35140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35141 (exit $ac_status); } &&
9dd0f6c2 35142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35144 (eval $ac_try) 2>&5
35145 ac_status=$?
35146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35147 (exit $ac_status); }; } &&
35148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
35154 wx_cv_cflags_mthread=yes
35155else
35156 echo "$as_me: failed program was:" >&5
35157sed 's/^/| /' conftest.$ac_ext >&5
35158
35159wx_cv_cflags_mthread=no
35160
35161fi
ac1cb8d3 35162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35163
35164
35165fi
35166echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
35167echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
35168
35169 if test "$wx_cv_cflags_mthread" = "yes"; then
35170 CXXFLAGS="$CXXFLAGS -mthreads"
35171 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
35172 LDFLAGS="$LDFLAGS -mthreads"
35173 else
35174 CFLAGS="$CFLAGS_OLD"
35175 fi
35176 ;;
35177 *-pc-os2*emx )
35178 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
35179 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
35180 LDFLAGS="$LDFLAGS -Zmt"
35181 ;;
35182 esac
35183 fi
35184fi
35185
35186if test "$wxUSE_THREADS" = "yes"; then
35187 cat >>confdefs.h <<\_ACEOF
35188#define wxUSE_THREADS 1
35189_ACEOF
35190
35191
35192 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
35193else
35194 if test "$ac_cv_func_strtok_r" = "yes"; then
35195 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
35196echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
35197 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
35198 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35199 echo "$as_me:$LINENO: result: yes" >&5
35200echo "${ECHO_T}yes" >&6
35201 else
35202 echo "$as_me:$LINENO: result: no" >&5
35203echo "${ECHO_T}no" >&6
35204 fi
35205 fi
35206fi
35207
35208if test "$WXGTK20" = 1 ; then
35209 cat >>confdefs.h <<_ACEOF
35210#define __WXGTK20__ $WXGTK20
35211_ACEOF
35212
35213 WXGTK12=1
35214fi
35215
35216if test "$WXGTK12" = 1 ; then
35217 cat >>confdefs.h <<_ACEOF
35218#define __WXGTK12__ $WXGTK12
35219_ACEOF
35220
35221fi
35222
35223if test "$WXGTK127" = 1 ; then
35224 cat >>confdefs.h <<_ACEOF
35225#define __WXGTK127__ $WXGTK127
35226_ACEOF
35227
35228fi
35229
35230if test "$WXGPE" = 1 ; then
35231 cat >>confdefs.h <<_ACEOF
35232#define __WXGPE__ $WXGPE
35233_ACEOF
35234
35235fi
35236
35237WXDEBUG=
35238
35239if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35240 WXDEBUG="-g"
35241 wxUSE_OPTIMISE=no
35242fi
35243
35244if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35245 wxUSE_DEBUG_INFO=yes
35246 WXDEBUG="-ggdb"
35247fi
35248
35249if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35250 cat >>confdefs.h <<\_ACEOF
35251#define WXDEBUG 1
35252_ACEOF
35253
35254 WXDEBUG_DEFINE="-D__WXDEBUG__"
35255else
35256 if test "$wxUSE_GTK" = 1 ; then
35257 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35258 fi
35259fi
35260
35261if test "$wxUSE_MEM_TRACING" = "yes" ; then
35262 cat >>confdefs.h <<\_ACEOF
35263#define wxUSE_MEMORY_TRACING 1
35264_ACEOF
35265
35266 cat >>confdefs.h <<\_ACEOF
35267#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35268_ACEOF
35269
35270 cat >>confdefs.h <<\_ACEOF
35271#define wxUSE_DEBUG_NEW_ALWAYS 1
35272_ACEOF
35273
35274 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35275fi
35276
35277if test "$wxUSE_DMALLOC" = "yes" ; then
35278 DMALLOC_LIBS="-ldmalloc"
35279fi
35280
35281PROFILE=
35282if test "$wxUSE_PROFILE" = "yes" ; then
35283 PROFILE=" -pg"
35284fi
35285
35286CODE_GEN_FLAGS=
35287CODE_GEN_FLAGS_CXX=
35288if test "$GCC" = "yes" ; then
35289 if test "$wxUSE_NO_RTTI" = "yes" ; then
35290 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35291 fi
35292 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35293 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35294 fi
35295 if test "$wxUSE_PERMISSIVE" = "yes" ; then
35296 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35297 fi
35298
35299 case "${host}" in
35300 powerpc*-*-aix* )
35301 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35302 ;;
35303 *-hppa* )
35304 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35305 ;;
35306 esac
35307fi
35308
35309OPTIMISE=
35310if test "$wxUSE_OPTIMISE" = "no" ; then
35311 if test "$GCC" = yes ; then
35312 OPTIMISE="-O0"
35313 fi
35314else
35315 if test "$GCC" = yes ; then
35316 OPTIMISE="-O2"
35317
35318 case "${host}" in
35319 i586-*-*|i686-*-* )
35320 OPTIMISE="${OPTIMISE} "
35321 ;;
35322 esac
35323 else
35324 OPTIMISE="-O"
35325 fi
35326fi
35327
35328
35329if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35330 cat >>confdefs.h <<\_ACEOF
35331#define WXWIN_COMPATIBILITY_2_2 1
35332_ACEOF
35333
35334
35335 WXWIN_COMPATIBILITY_2_4="yes"
35336fi
35337
35338if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35339 cat >>confdefs.h <<\_ACEOF
35340#define WXWIN_COMPATIBILITY_2_4 1
35341_ACEOF
35342
35343fi
35344
35345
35346if test "$wxUSE_GUI" = "yes"; then
881bfcd6 35347 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35348#define wxUSE_GUI 1
35349_ACEOF
35350
35351
370fd4c2 35352 fi
a848cd7e
SC
35353
35354
35355if test "$wxUSE_UNIX" = "yes"; then
35356 cat >>confdefs.h <<\_ACEOF
35357#define wxUSE_UNIX 1
35358_ACEOF
35359
35360fi
35361
35362
35363if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35364
35365 HAVE_DL_FUNCS=0
35366 HAVE_SHL_FUNCS=0
35367 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35368 if test "$USE_DARWIN" = 1; then
35369 HAVE_DL_FUNCS=1
35370 else
35371
35372for ac_func in dlopen
35373do
35374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35375echo "$as_me:$LINENO: checking for $ac_func" >&5
35376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35377if eval "test \"\${$as_ac_var+set}\" = set"; then
35378 echo $ECHO_N "(cached) $ECHO_C" >&6
35379else
35380 cat >conftest.$ac_ext <<_ACEOF
35381/* confdefs.h. */
35382_ACEOF
35383cat confdefs.h >>conftest.$ac_ext
35384cat >>conftest.$ac_ext <<_ACEOF
35385/* end confdefs.h. */
ac1cb8d3
VS
35386/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35388#define $ac_func innocuous_$ac_func
35389
a848cd7e
SC
35390/* System header to define __stub macros and hopefully few prototypes,
35391 which can conflict with char $ac_func (); below.
35392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35393 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35394
a848cd7e
SC
35395#ifdef __STDC__
35396# include <limits.h>
35397#else
35398# include <assert.h>
35399#endif
ac1cb8d3
VS
35400
35401#undef $ac_func
35402
a848cd7e
SC
35403/* Override any gcc2 internal prototype to avoid an error. */
35404#ifdef __cplusplus
35405extern "C"
35406{
35407#endif
35408/* We use char because int might match the return type of a gcc2
35409 builtin and then its argument prototype would still apply. */
35410char $ac_func ();
35411/* The GNU C library defines this for functions which it implements
35412 to always fail with ENOSYS. Some functions are actually named
35413 something starting with __ and the normal name is an alias. */
35414#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35415choke me
35416#else
35417char (*f) () = $ac_func;
35418#endif
35419#ifdef __cplusplus
35420}
35421#endif
35422
35423int
35424main ()
35425{
35426return f != $ac_func;
35427 ;
35428 return 0;
35429}
35430_ACEOF
35431rm -f conftest.$ac_objext conftest$ac_exeext
35432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35433 (eval $ac_link) 2>conftest.er1
a848cd7e 35434 ac_status=$?
ac1cb8d3
VS
35435 grep -v '^ *+' conftest.er1 >conftest.err
35436 rm -f conftest.er1
35437 cat conftest.err >&5
a848cd7e
SC
35438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35439 (exit $ac_status); } &&
9dd0f6c2 35440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35442 (eval $ac_try) 2>&5
35443 ac_status=$?
35444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35445 (exit $ac_status); }; } &&
35446 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
35452 eval "$as_ac_var=yes"
35453else
35454 echo "$as_me: failed program was:" >&5
35455sed 's/^/| /' conftest.$ac_ext >&5
35456
35457eval "$as_ac_var=no"
35458fi
ac1cb8d3
VS
35459rm -f conftest.err conftest.$ac_objext \
35460 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35461fi
35462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35463echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35464if test `eval echo '${'$as_ac_var'}'` = yes; then
35465 cat >>confdefs.h <<_ACEOF
35466#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35467_ACEOF
35468
35469 cat >>confdefs.h <<\_ACEOF
35470#define HAVE_DLOPEN 1
35471_ACEOF
35472
35473 HAVE_DL_FUNCS=1
35474
35475else
35476
35477 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35478echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35479if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35480 echo $ECHO_N "(cached) $ECHO_C" >&6
35481else
35482 ac_check_lib_save_LIBS=$LIBS
35483LIBS="-ldl $LIBS"
35484cat >conftest.$ac_ext <<_ACEOF
35485/* confdefs.h. */
35486_ACEOF
35487cat confdefs.h >>conftest.$ac_ext
35488cat >>conftest.$ac_ext <<_ACEOF
35489/* end confdefs.h. */
35490
35491/* Override any gcc2 internal prototype to avoid an error. */
35492#ifdef __cplusplus
35493extern "C"
35494#endif
35495/* We use char because int might match the return type of a gcc2
35496 builtin and then its argument prototype would still apply. */
35497char dlopen ();
35498int
35499main ()
35500{
35501dlopen ();
35502 ;
35503 return 0;
35504}
35505_ACEOF
35506rm -f conftest.$ac_objext conftest$ac_exeext
35507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35508 (eval $ac_link) 2>conftest.er1
a848cd7e 35509 ac_status=$?
ac1cb8d3
VS
35510 grep -v '^ *+' conftest.er1 >conftest.err
35511 rm -f conftest.er1
35512 cat conftest.err >&5
a848cd7e
SC
35513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514 (exit $ac_status); } &&
9dd0f6c2 35515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35517 (eval $ac_try) 2>&5
35518 ac_status=$?
35519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520 (exit $ac_status); }; } &&
35521 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
35527 ac_cv_lib_dl_dlopen=yes
35528else
35529 echo "$as_me: failed program was:" >&5
35530sed 's/^/| /' conftest.$ac_ext >&5
35531
35532ac_cv_lib_dl_dlopen=no
35533fi
ac1cb8d3
VS
35534rm -f conftest.err conftest.$ac_objext \
35535 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35536LIBS=$ac_check_lib_save_LIBS
35537fi
35538echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
35539echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
35540if test $ac_cv_lib_dl_dlopen = yes; then
35541
35542 cat >>confdefs.h <<\_ACEOF
35543#define HAVE_DLOPEN 1
35544_ACEOF
35545
35546 HAVE_DL_FUNCS=1
35547 DL_LINK=" -ldl$DL_LINK"
35548
35549else
35550
35551
35552for ac_func in shl_load
35553do
35554as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35555echo "$as_me:$LINENO: checking for $ac_func" >&5
35556echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35557if eval "test \"\${$as_ac_var+set}\" = set"; then
35558 echo $ECHO_N "(cached) $ECHO_C" >&6
35559else
35560 cat >conftest.$ac_ext <<_ACEOF
35561/* confdefs.h. */
35562_ACEOF
35563cat confdefs.h >>conftest.$ac_ext
35564cat >>conftest.$ac_ext <<_ACEOF
35565/* end confdefs.h. */
ac1cb8d3
VS
35566/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35568#define $ac_func innocuous_$ac_func
35569
a848cd7e
SC
35570/* System header to define __stub macros and hopefully few prototypes,
35571 which can conflict with char $ac_func (); below.
35572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35573 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35574
a848cd7e
SC
35575#ifdef __STDC__
35576# include <limits.h>
35577#else
35578# include <assert.h>
35579#endif
ac1cb8d3
VS
35580
35581#undef $ac_func
35582
a848cd7e
SC
35583/* Override any gcc2 internal prototype to avoid an error. */
35584#ifdef __cplusplus
35585extern "C"
35586{
35587#endif
35588/* We use char because int might match the return type of a gcc2
35589 builtin and then its argument prototype would still apply. */
35590char $ac_func ();
35591/* The GNU C library defines this for functions which it implements
35592 to always fail with ENOSYS. Some functions are actually named
35593 something starting with __ and the normal name is an alias. */
35594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35595choke me
35596#else
35597char (*f) () = $ac_func;
35598#endif
35599#ifdef __cplusplus
35600}
35601#endif
35602
35603int
35604main ()
35605{
35606return f != $ac_func;
35607 ;
35608 return 0;
35609}
35610_ACEOF
35611rm -f conftest.$ac_objext conftest$ac_exeext
35612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35613 (eval $ac_link) 2>conftest.er1
a848cd7e 35614 ac_status=$?
ac1cb8d3
VS
35615 grep -v '^ *+' conftest.er1 >conftest.err
35616 rm -f conftest.er1
35617 cat conftest.err >&5
a848cd7e
SC
35618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35619 (exit $ac_status); } &&
9dd0f6c2 35620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35622 (eval $ac_try) 2>&5
35623 ac_status=$?
35624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625 (exit $ac_status); }; } &&
35626 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
35632 eval "$as_ac_var=yes"
35633else
35634 echo "$as_me: failed program was:" >&5
35635sed 's/^/| /' conftest.$ac_ext >&5
35636
35637eval "$as_ac_var=no"
35638fi
ac1cb8d3
VS
35639rm -f conftest.err conftest.$ac_objext \
35640 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35641fi
35642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35643echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35644if test `eval echo '${'$as_ac_var'}'` = yes; then
35645 cat >>confdefs.h <<_ACEOF
35646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35647_ACEOF
35648
35649 cat >>confdefs.h <<\_ACEOF
35650#define HAVE_SHL_LOAD 1
35651_ACEOF
35652
35653 HAVE_SHL_FUNCS=1
35654
35655else
35656
35657 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
35658echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
35659if test "${ac_cv_lib_shl_load_dld+set}" = set; then
35660 echo $ECHO_N "(cached) $ECHO_C" >&6
35661else
35662 ac_check_lib_save_LIBS=$LIBS
35663LIBS="-lshl_load $LIBS"
35664cat >conftest.$ac_ext <<_ACEOF
35665/* confdefs.h. */
35666_ACEOF
35667cat confdefs.h >>conftest.$ac_ext
35668cat >>conftest.$ac_ext <<_ACEOF
35669/* end confdefs.h. */
35670
35671/* Override any gcc2 internal prototype to avoid an error. */
35672#ifdef __cplusplus
35673extern "C"
35674#endif
35675/* We use char because int might match the return type of a gcc2
35676 builtin and then its argument prototype would still apply. */
35677char dld ();
35678int
35679main ()
35680{
35681dld ();
35682 ;
35683 return 0;
35684}
35685_ACEOF
35686rm -f conftest.$ac_objext conftest$ac_exeext
35687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35688 (eval $ac_link) 2>conftest.er1
a848cd7e 35689 ac_status=$?
ac1cb8d3
VS
35690 grep -v '^ *+' conftest.er1 >conftest.err
35691 rm -f conftest.er1
35692 cat conftest.err >&5
a848cd7e
SC
35693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35694 (exit $ac_status); } &&
9dd0f6c2 35695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35697 (eval $ac_try) 2>&5
35698 ac_status=$?
35699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35700 (exit $ac_status); }; } &&
35701 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
35707 ac_cv_lib_shl_load_dld=yes
35708else
35709 echo "$as_me: failed program was:" >&5
35710sed 's/^/| /' conftest.$ac_ext >&5
35711
35712ac_cv_lib_shl_load_dld=no
35713fi
ac1cb8d3
VS
35714rm -f conftest.err conftest.$ac_objext \
35715 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35716LIBS=$ac_check_lib_save_LIBS
35717fi
35718echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
35719echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
35720if test $ac_cv_lib_shl_load_dld = yes; then
35721
35722 HAVE_SHL_FUNCS=1
35723 DL_LINK=" -ldld$DL_LINK"
35724
35725fi
35726
35727
35728fi
35729done
35730
35731
35732fi
35733
35734
35735fi
35736done
35737
35738
35739 if test "$HAVE_DL_FUNCS" = 1; then
35740
35741for ac_func in dlerror
35742do
35743as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35744echo "$as_me:$LINENO: checking for $ac_func" >&5
35745echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35746if eval "test \"\${$as_ac_var+set}\" = set"; then
35747 echo $ECHO_N "(cached) $ECHO_C" >&6
35748else
35749 cat >conftest.$ac_ext <<_ACEOF
35750/* confdefs.h. */
35751_ACEOF
35752cat confdefs.h >>conftest.$ac_ext
35753cat >>conftest.$ac_ext <<_ACEOF
35754/* end confdefs.h. */
ac1cb8d3
VS
35755/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35757#define $ac_func innocuous_$ac_func
35758
a848cd7e
SC
35759/* System header to define __stub macros and hopefully few prototypes,
35760 which can conflict with char $ac_func (); below.
35761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35762 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35763
a848cd7e
SC
35764#ifdef __STDC__
35765# include <limits.h>
35766#else
35767# include <assert.h>
35768#endif
ac1cb8d3
VS
35769
35770#undef $ac_func
35771
a848cd7e
SC
35772/* Override any gcc2 internal prototype to avoid an error. */
35773#ifdef __cplusplus
35774extern "C"
35775{
35776#endif
35777/* We use char because int might match the return type of a gcc2
35778 builtin and then its argument prototype would still apply. */
35779char $ac_func ();
35780/* The GNU C library defines this for functions which it implements
35781 to always fail with ENOSYS. Some functions are actually named
35782 something starting with __ and the normal name is an alias. */
35783#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35784choke me
35785#else
35786char (*f) () = $ac_func;
35787#endif
35788#ifdef __cplusplus
35789}
35790#endif
35791
35792int
35793main ()
35794{
35795return f != $ac_func;
35796 ;
35797 return 0;
35798}
35799_ACEOF
35800rm -f conftest.$ac_objext conftest$ac_exeext
35801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35802 (eval $ac_link) 2>conftest.er1
a848cd7e 35803 ac_status=$?
ac1cb8d3
VS
35804 grep -v '^ *+' conftest.er1 >conftest.err
35805 rm -f conftest.er1
35806 cat conftest.err >&5
a848cd7e
SC
35807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35808 (exit $ac_status); } &&
9dd0f6c2 35809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35811 (eval $ac_try) 2>&5
35812 ac_status=$?
35813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35814 (exit $ac_status); }; } &&
35815 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
35821 eval "$as_ac_var=yes"
35822else
35823 echo "$as_me: failed program was:" >&5
35824sed 's/^/| /' conftest.$ac_ext >&5
35825
35826eval "$as_ac_var=no"
35827fi
ac1cb8d3
VS
35828rm -f conftest.err conftest.$ac_objext \
35829 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35830fi
35831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35832echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35833if test `eval echo '${'$as_ac_var'}'` = yes; then
35834 cat >>confdefs.h <<_ACEOF
35835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35836_ACEOF
35837 cat >>confdefs.h <<\_ACEOF
35838#define HAVE_DLERROR 1
35839_ACEOF
35840
35841else
35842
35843 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
35844echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
35845if test "${ac_cv_lib_dl_dlerror+set}" = set; then
35846 echo $ECHO_N "(cached) $ECHO_C" >&6
35847else
35848 ac_check_lib_save_LIBS=$LIBS
35849LIBS="-ldl $LIBS"
35850cat >conftest.$ac_ext <<_ACEOF
35851/* confdefs.h. */
35852_ACEOF
35853cat confdefs.h >>conftest.$ac_ext
35854cat >>conftest.$ac_ext <<_ACEOF
35855/* end confdefs.h. */
35856
35857/* Override any gcc2 internal prototype to avoid an error. */
35858#ifdef __cplusplus
35859extern "C"
35860#endif
35861/* We use char because int might match the return type of a gcc2
35862 builtin and then its argument prototype would still apply. */
35863char dlerror ();
35864int
35865main ()
35866{
35867dlerror ();
35868 ;
35869 return 0;
35870}
35871_ACEOF
35872rm -f conftest.$ac_objext conftest$ac_exeext
35873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35874 (eval $ac_link) 2>conftest.er1
a848cd7e 35875 ac_status=$?
ac1cb8d3
VS
35876 grep -v '^ *+' conftest.er1 >conftest.err
35877 rm -f conftest.er1
35878 cat conftest.err >&5
a848cd7e
SC
35879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35880 (exit $ac_status); } &&
9dd0f6c2 35881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35883 (eval $ac_try) 2>&5
35884 ac_status=$?
35885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886 (exit $ac_status); }; } &&
35887 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
35893 ac_cv_lib_dl_dlerror=yes
35894else
35895 echo "$as_me: failed program was:" >&5
35896sed 's/^/| /' conftest.$ac_ext >&5
35897
35898ac_cv_lib_dl_dlerror=no
35899fi
ac1cb8d3
VS
35900rm -f conftest.err conftest.$ac_objext \
35901 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35902LIBS=$ac_check_lib_save_LIBS
35903fi
35904echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
35905echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
35906if test $ac_cv_lib_dl_dlerror = yes; then
35907 cat >>confdefs.h <<\_ACEOF
35908#define HAVE_DLERROR 1
35909_ACEOF
35910
35911fi
35912
35913
35914
35915fi
35916done
35917
35918 fi
35919 fi
35920
35921 if test "$HAVE_DL_FUNCS" = 0; then
35922 if test "$HAVE_SHL_FUNCS" = 0; then
35923 if test "$USE_UNIX" = 1; then
35924 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
35925echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
35926 wxUSE_DYNAMIC_LOADER=no
35927 wxUSE_DYNLIB_CLASS=no
35928 else
35929 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
35930echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
35931 fi
35932 fi
35933 fi
35934 fi
35935fi
35936
35937if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
35938 cat >>confdefs.h <<\_ACEOF
35939#define wxUSE_DYNAMIC_LOADER 1
35940_ACEOF
35941
35942fi
35943if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35944 cat >>confdefs.h <<\_ACEOF
35945#define wxUSE_DYNLIB_CLASS 1
35946_ACEOF
35947
35948fi
35949
35950
35951
35952if test "$wxUSE_PLUGINS" = "yes" ; then
35953 if test "$wxUSE_SHARED" = "no" ; then
35954 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
35955echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
35956 wxUSE_PLUGINS=no
35957 fi
35958 if test "$wxUSE_MONOLITHIC" = "yes" ; then
35959 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
35960echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
35961 wxUSE_PLUGINS=no
35962 fi
35963 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
35964 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
35965echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
35966 wxUSE_PLUGINS=no
35967 fi
35968 if test "$wxUSE_PLUGINS" = "yes" ; then
35969 cat >>confdefs.h <<\_ACEOF
35970#define wxUSE_PLUGINS 1
35971_ACEOF
35972
35973 fi
35974fi
35975
35976
35977if test "$wxUSE_STL" = "yes"; then
35978 cat >>confdefs.h <<\_ACEOF
35979#define wxUSE_STL 1
35980_ACEOF
35981
35982fi
35983
35984if test "$wxUSE_APPLE_IEEE" = "yes"; then
35985 cat >>confdefs.h <<\_ACEOF
35986#define wxUSE_APPLE_IEEE 1
35987_ACEOF
35988
35989fi
35990
35991if test "$wxUSE_TIMER" = "yes"; then
35992 cat >>confdefs.h <<\_ACEOF
35993#define wxUSE_TIMER 1
35994_ACEOF
35995
35996fi
35997
35998WITH_PLUGIN_SDL=0
35999if test "$wxUSE_SOUND" = "yes"; then
36000 if test "$USE_UNIX" = "1" ; then
36001
36002for ac_header in sys/soundcard.h
36003do
36004as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36005if eval "test \"\${$as_ac_Header+set}\" = set"; then
36006 echo "$as_me:$LINENO: checking for $ac_header" >&5
36007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36008if eval "test \"\${$as_ac_Header+set}\" = set"; then
36009 echo $ECHO_N "(cached) $ECHO_C" >&6
36010fi
36011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36013else
36014 # Is the header compilable?
36015echo "$as_me:$LINENO: checking $ac_header usability" >&5
36016echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36017cat >conftest.$ac_ext <<_ACEOF
36018/* confdefs.h. */
36019_ACEOF
36020cat confdefs.h >>conftest.$ac_ext
36021cat >>conftest.$ac_ext <<_ACEOF
36022/* end confdefs.h. */
36023$ac_includes_default
36024#include <$ac_header>
36025_ACEOF
36026rm -f conftest.$ac_objext
36027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36028 (eval $ac_compile) 2>conftest.er1
a848cd7e 36029 ac_status=$?
ac1cb8d3
VS
36030 grep -v '^ *+' conftest.er1 >conftest.err
36031 rm -f conftest.er1
36032 cat conftest.err >&5
a848cd7e
SC
36033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36034 (exit $ac_status); } &&
9dd0f6c2 36035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36037 (eval $ac_try) 2>&5
36038 ac_status=$?
36039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36040 (exit $ac_status); }; } &&
36041 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
36047 ac_header_compiler=yes
36048else
36049 echo "$as_me: failed program was:" >&5
36050sed 's/^/| /' conftest.$ac_ext >&5
36051
36052ac_header_compiler=no
36053fi
ac1cb8d3 36054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36055echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36056echo "${ECHO_T}$ac_header_compiler" >&6
36057
36058# Is the header present?
36059echo "$as_me:$LINENO: checking $ac_header presence" >&5
36060echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36061cat >conftest.$ac_ext <<_ACEOF
36062/* confdefs.h. */
36063_ACEOF
36064cat confdefs.h >>conftest.$ac_ext
36065cat >>conftest.$ac_ext <<_ACEOF
36066/* end confdefs.h. */
36067#include <$ac_header>
36068_ACEOF
36069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36071 ac_status=$?
36072 grep -v '^ *+' conftest.er1 >conftest.err
36073 rm -f conftest.er1
36074 cat conftest.err >&5
36075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36076 (exit $ac_status); } >/dev/null; then
36077 if test -s conftest.err; then
36078 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36080 else
36081 ac_cpp_err=
36082 fi
36083else
36084 ac_cpp_err=yes
36085fi
36086if test -z "$ac_cpp_err"; then
36087 ac_header_preproc=yes
36088else
36089 echo "$as_me: failed program was:" >&5
36090sed 's/^/| /' conftest.$ac_ext >&5
36091
36092 ac_header_preproc=no
36093fi
36094rm -f conftest.err conftest.$ac_ext
36095echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36096echo "${ECHO_T}$ac_header_preproc" >&6
36097
36098# So? What about this header?
ac1cb8d3
VS
36099case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36100 yes:no: )
a848cd7e
SC
36101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36102echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36104echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36105 ac_header_preproc=yes
a848cd7e 36106 ;;
ac1cb8d3 36107 no:yes:* )
a848cd7e
SC
36108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36109echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36111echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36113echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36115echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36117echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36119echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36120 (
36121 cat <<\_ASBOX
ac1cb8d3
VS
36122## ----------------------------------------- ##
36123## Report this to wx-dev@lists.wxwidgets.org ##
36124## ----------------------------------------- ##
a848cd7e
SC
36125_ASBOX
36126 ) |
36127 sed "s/^/$as_me: WARNING: /" >&2
36128 ;;
36129esac
36130echo "$as_me:$LINENO: checking for $ac_header" >&5
36131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36132if eval "test \"\${$as_ac_Header+set}\" = set"; then
36133 echo $ECHO_N "(cached) $ECHO_C" >&6
36134else
ac1cb8d3 36135 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36136fi
36137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36139
36140fi
36141if test `eval echo '${'$as_ac_Header'}'` = yes; then
36142 cat >>confdefs.h <<_ACEOF
36143#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36144_ACEOF
36145
36146fi
36147
36148done
36149
36150
36151 if test "$wxUSE_LIBSDL" != "no"; then
36152
36153# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
36154if test "${with_sdl_prefix+set}" = set; then
36155 withval="$with_sdl_prefix"
36156 sdl_prefix="$withval"
36157else
36158 sdl_prefix=""
36159fi;
36160
36161# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
36162if test "${with_sdl_exec_prefix+set}" = set; then
36163 withval="$with_sdl_exec_prefix"
36164 sdl_exec_prefix="$withval"
36165else
36166 sdl_exec_prefix=""
36167fi;
36168# Check whether --enable-sdltest or --disable-sdltest was given.
36169if test "${enable_sdltest+set}" = set; then
36170 enableval="$enable_sdltest"
36171
36172else
36173 enable_sdltest=yes
36174fi;
36175
36176 if test x$sdl_exec_prefix != x ; then
36177 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
36178 if test x${SDL_CONFIG+set} != xset ; then
36179 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
36180 fi
36181 fi
36182 if test x$sdl_prefix != x ; then
36183 sdl_args="$sdl_args --prefix=$sdl_prefix"
36184 if test x${SDL_CONFIG+set} != xset ; then
36185 SDL_CONFIG=$sdl_prefix/bin/sdl-config
36186 fi
36187 fi
36188
36189
36190 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
36191 # Extract the first word of "sdl-config", so it can be a program name with args.
36192set dummy sdl-config; ac_word=$2
36193echo "$as_me:$LINENO: checking for $ac_word" >&5
36194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36195if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
36196 echo $ECHO_N "(cached) $ECHO_C" >&6
36197else
36198 case $SDL_CONFIG in
36199 [\\/]* | ?:[\\/]*)
36200 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36201 ;;
36202 *)
36203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36204for as_dir in $PATH
36205do
36206 IFS=$as_save_IFS
36207 test -z "$as_dir" && as_dir=.
36208 for ac_exec_ext in '' $ac_executable_extensions; do
36209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36210 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36212 break 2
36213 fi
36214done
36215done
36216
36217 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36218 ;;
36219esac
36220fi
36221SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36222
36223if test -n "$SDL_CONFIG"; then
36224 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36225echo "${ECHO_T}$SDL_CONFIG" >&6
36226else
36227 echo "$as_me:$LINENO: result: no" >&5
36228echo "${ECHO_T}no" >&6
36229fi
36230
36231 min_sdl_version=1.2.0
36232 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36233echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36234 no_sdl=""
36235 if test "$SDL_CONFIG" = "no" ; then
36236 no_sdl=yes
36237 else
36238 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36239 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36240
36241 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36242 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36243 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36244 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36245 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36246 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36247 if test "x$enable_sdltest" = "xyes" ; then
36248 ac_save_CFLAGS="$CFLAGS"
94acd38e 36249 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
36250 ac_save_LIBS="$LIBS"
36251 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36252 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36253 LIBS="$LIBS $SDL_LIBS"
36254 rm -f conf.sdltest
36255 if test "$cross_compiling" = yes; then
36256 echo $ac_n "cross compiling; assumed OK... $ac_c"
36257else
36258 cat >conftest.$ac_ext <<_ACEOF
36259/* confdefs.h. */
36260_ACEOF
36261cat confdefs.h >>conftest.$ac_ext
36262cat >>conftest.$ac_ext <<_ACEOF
36263/* end confdefs.h. */
36264
36265#include <stdio.h>
36266#include <stdlib.h>
36267#include <string.h>
36268#include "SDL.h"
36269
36270char*
36271my_strdup (char *str)
36272{
36273 char *new_str;
36274
36275 if (str)
36276 {
36277 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36278 strcpy (new_str, str);
36279 }
36280 else
36281 new_str = NULL;
36282
36283 return new_str;
36284}
36285
36286int main (int argc, char *argv[])
36287{
36288 int major, minor, micro;
36289 char *tmp_version;
36290
36291 /* This hangs on some systems (?)
36292 system ("touch conf.sdltest");
36293 */
36294 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36295
36296 /* HP/UX 9 (%@#!) writes to sscanf strings */
36297 tmp_version = my_strdup("$min_sdl_version");
36298 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36299 printf("%s, bad version string\n", "$min_sdl_version");
36300 exit(1);
36301 }
36302
36303 if (($sdl_major_version > major) ||
36304 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36305 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36306 {
36307 return 0;
36308 }
36309 else
36310 {
36311 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36312 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36313 printf("*** best to upgrade to the required version.\n");
36314 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36315 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36316 printf("*** config.cache before re-running configure\n");
36317 return 1;
36318 }
36319}
36320
36321
36322_ACEOF
36323rm -f conftest$ac_exeext
36324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36325 (eval $ac_link) 2>&5
36326 ac_status=$?
36327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36330 (eval $ac_try) 2>&5
36331 ac_status=$?
36332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36333 (exit $ac_status); }; }; then
36334 :
36335else
36336 echo "$as_me: program exited with status $ac_status" >&5
36337echo "$as_me: failed program was:" >&5
36338sed 's/^/| /' conftest.$ac_ext >&5
36339
36340( exit $ac_status )
36341no_sdl=yes
36342fi
ac1cb8d3 36343rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36344fi
36345 CFLAGS="$ac_save_CFLAGS"
94acd38e 36346 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36347 LIBS="$ac_save_LIBS"
36348 fi
36349 fi
36350 if test "x$no_sdl" = x ; then
36351 echo "$as_me:$LINENO: result: yes" >&5
36352echo "${ECHO_T}yes" >&6
36353
36354 EXTRALIBS_SDL="$SDL_LIBS"
36355 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36356 cat >>confdefs.h <<\_ACEOF
36357#define wxUSE_LIBSDL 1
36358_ACEOF
36359
36360
36361 else
36362 echo "$as_me:$LINENO: result: no" >&5
36363echo "${ECHO_T}no" >&6
36364 if test "$SDL_CONFIG" = "no" ; then
36365 echo "*** The sdl-config script installed by SDL could not be found"
36366 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36367 echo "*** your path, or set the SDL_CONFIG environment variable to the"
36368 echo "*** full path to sdl-config."
36369 else
36370 if test -f conf.sdltest ; then
36371 :
36372 else
36373 echo "*** Could not run SDL test program, checking why..."
36374 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36375 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36376 LIBS="$LIBS $SDL_LIBS"
36377 cat >conftest.$ac_ext <<_ACEOF
36378/* confdefs.h. */
36379_ACEOF
36380cat confdefs.h >>conftest.$ac_ext
36381cat >>conftest.$ac_ext <<_ACEOF
36382/* end confdefs.h. */
36383
36384#include <stdio.h>
36385#include "SDL.h"
36386
36387int main(int argc, char *argv[])
36388{ return 0; }
36389#undef main
36390#define main K_and_R_C_main
36391
36392int
36393main ()
36394{
36395 return 0;
36396 ;
36397 return 0;
36398}
36399_ACEOF
36400rm -f conftest.$ac_objext conftest$ac_exeext
36401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36402 (eval $ac_link) 2>conftest.er1
a848cd7e 36403 ac_status=$?
ac1cb8d3
VS
36404 grep -v '^ *+' conftest.er1 >conftest.err
36405 rm -f conftest.er1
36406 cat conftest.err >&5
a848cd7e
SC
36407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36408 (exit $ac_status); } &&
9dd0f6c2 36409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36411 (eval $ac_try) 2>&5
36412 ac_status=$?
36413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414 (exit $ac_status); }; } &&
36415 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
36421 echo "*** The test program compiled, but did not run. This usually means"
36422 echo "*** that the run-time linker is not finding SDL or finding the wrong"
36423 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36424 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36425 echo "*** to the installed location Also, make sure you have run ldconfig if that"
36426 echo "*** is required on your system"
36427 echo "***"
36428 echo "*** If you have an old version installed, it is best to remove it, although"
36429 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36430else
36431 echo "$as_me: failed program was:" >&5
36432sed 's/^/| /' conftest.$ac_ext >&5
36433
36434 echo "*** The test program failed to compile or link. See the file config.log for the"
36435 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36436 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36437 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36438fi
ac1cb8d3
VS
36439rm -f conftest.err conftest.$ac_objext \
36440 conftest$ac_exeext conftest.$ac_ext
a848cd7e 36441 CFLAGS="$ac_save_CFLAGS"
94acd38e 36442 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36443 LIBS="$ac_save_LIBS"
36444 fi
36445 fi
36446 SDL_CFLAGS=""
36447 SDL_LIBS=""
36448 wxUSE_LIBSDL="no"
36449 fi
36450
36451
36452 rm -f conf.sdltest
36453
36454 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36455 WITH_PLUGIN_SDL=1
36456 fi
36457 fi
36458 fi
36459
36460 cat >>confdefs.h <<\_ACEOF
36461#define wxUSE_SOUND 1
36462_ACEOF
36463
36464 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36465fi
36466
d1c38808
VZ
36467if test "$WXGTK20" = 1; then
36468 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36469 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36470
36471
36472 succeeded=no
36473
36474 if test -z "$PKG_CONFIG"; then
36475 # Extract the first word of "pkg-config", so it can be a program name with args.
36476set dummy pkg-config; ac_word=$2
36477echo "$as_me:$LINENO: checking for $ac_word" >&5
36478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36479if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36480 echo $ECHO_N "(cached) $ECHO_C" >&6
36481else
36482 case $PKG_CONFIG in
36483 [\\/]* | ?:[\\/]*)
36484 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36485 ;;
36486 *)
36487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36488for as_dir in $PATH
36489do
36490 IFS=$as_save_IFS
36491 test -z "$as_dir" && as_dir=.
36492 for ac_exec_ext in '' $ac_executable_extensions; do
36493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36494 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36496 break 2
36497 fi
36498done
36499done
36500
36501 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
36502 ;;
36503esac
36504fi
36505PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36506
36507if test -n "$PKG_CONFIG"; then
36508 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36509echo "${ECHO_T}$PKG_CONFIG" >&6
36510else
36511 echo "$as_me:$LINENO: result: no" >&5
36512echo "${ECHO_T}no" >&6
36513fi
36514
36515 fi
36516
36517 if test "$PKG_CONFIG" = "no" ; then
36518 echo "*** The pkg-config script could not be found. Make sure it is"
36519 echo "*** in your path, or set the PKG_CONFIG environment variable"
36520 echo "*** to the full path to pkg-config."
36521 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
36522 else
36523 PKG_CONFIG_MIN_VERSION=0.9.0
36524 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
36525 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
36526echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 36527
ffa762ff 36528 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
36529 echo "$as_me:$LINENO: result: yes" >&5
36530echo "${ECHO_T}yes" >&6
36531 succeeded=yes
36532
36533 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
36534echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 36535 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36536 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
36537echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
36538
36539 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
36540echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 36541 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36542 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
36543echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
36544 else
36545 LIBGNOMEPRINTUI_CFLAGS=""
36546 LIBGNOMEPRINTUI_LIBS=""
36547 ## If we have a custom action on failure, don't print errors, but
36548 ## do set a variable so people can do so.
ffa762ff 36549 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36550
36551 fi
36552
36553
36554
36555 else
36556 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
36557 echo "*** See http://www.freedesktop.org/software/pkgconfig"
36558 fi
36559 fi
36560
36561 if test $succeeded = yes; then
36562
d1c38808
VZ
36563 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
36564 cat >>confdefs.h <<\_ACEOF
36565#define wxUSE_LIBGNOMEPRINT 1
36566_ACEOF
36567
36568
36569 else
36570
36571 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
36572echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
36573 wxUSE_LIBGNOMEPRINT="no"
36574
36575
36576 fi
36577
36578 fi
36579 fi
36580fi
36581
36582
a848cd7e
SC
36583if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
36584 cat >>confdefs.h <<\_ACEOF
36585#define wxUSE_CMDLINE_PARSER 1
36586_ACEOF
36587
36588fi
36589
36590if test "$wxUSE_STOPWATCH" = "yes"; then
36591 cat >>confdefs.h <<\_ACEOF
36592#define wxUSE_STOPWATCH 1
36593_ACEOF
36594
36595fi
36596
36597if test "$wxUSE_DATETIME" = "yes"; then
36598 cat >>confdefs.h <<\_ACEOF
36599#define wxUSE_DATETIME 1
36600_ACEOF
36601
36602fi
36603
36604if test "$wxUSE_FILE" = "yes"; then
36605 cat >>confdefs.h <<\_ACEOF
36606#define wxUSE_FILE 1
36607_ACEOF
36608
36609fi
36610
36611if test "$wxUSE_FFILE" = "yes"; then
36612 cat >>confdefs.h <<\_ACEOF
36613#define wxUSE_FFILE 1
36614_ACEOF
36615
36616fi
36617
36618if test "$wxUSE_FILESYSTEM" = "yes"; then
36619 cat >>confdefs.h <<\_ACEOF
36620#define wxUSE_FILESYSTEM 1
36621_ACEOF
36622
36623fi
36624
36625if test "$wxUSE_FS_ZIP" = "yes"; then
36626 cat >>confdefs.h <<\_ACEOF
36627#define wxUSE_FS_ZIP 1
36628_ACEOF
36629
36630fi
36631
9e8e867f 36632if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 36633 cat >>confdefs.h <<\_ACEOF
9e8e867f 36634#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
36635_ACEOF
36636
36637fi
36638
36639if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 36640 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
36641 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
36642echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
36643 elif test "$wxUSE_ZLIB" = "no"; then
36644 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
36645echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
36646 else
36647 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36648#define wxUSE_ZIPSTREAM 1
36649_ACEOF
36650
81f90336 36651 fi
a848cd7e
SC
36652fi
36653
a848cd7e
SC
36654if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36655 cat >>confdefs.h <<\_ACEOF
36656#define wxUSE_ON_FATAL_EXCEPTION 1
36657_ACEOF
36658
36659fi
36660
eaff0f0d
VZ
36661if test "$wxUSE_STACKWALKER" = "yes"; then
36662 cat >>confdefs.h <<\_ACEOF
36663#define wxUSE_STACKWALKER 1
36664_ACEOF
36665
36666fi
36667
36b6448c 36668if test "$wxUSE_DEBUGREPORT" = "yes"; then
dfe0c803
JS
36669 if test "$USE_OS2" = "1"; then
36670 { echo "$as_me:$LINENO: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&5
36671echo "$as_me: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&2;}
36672 wxUSE_DEBUGREPORT=no
36673 else
36674 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
36675#define wxUSE_DEBUGREPORT 1
36676_ACEOF
36677
dfe0c803
JS
36678 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
36679 fi
36b6448c
VZ
36680fi
36681
a848cd7e
SC
36682if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36683 cat >>confdefs.h <<\_ACEOF
36684#define wxUSE_SNGLINST_CHECKER 1
36685_ACEOF
36686
36687fi
36688
36689if test "$wxUSE_BUSYINFO" = "yes"; then
36690 cat >>confdefs.h <<\_ACEOF
36691#define wxUSE_BUSYINFO 1
36692_ACEOF
36693
36694fi
36695
36696if test "$wxUSE_STD_IOSTREAM" = "yes"; then
36697 cat >>confdefs.h <<\_ACEOF
36698#define wxUSE_STD_IOSTREAM 1
36699_ACEOF
36700
36701fi
36702
59746b65
MW
36703if test "$wxUSE_STD_STRING" = "yes"; then
36704 cat >>confdefs.h <<\_ACEOF
36705#define wxUSE_STD_STRING 1
36706_ACEOF
36707
36708fi
36709
07158944
VZ
36710if test "$wxUSE_STDPATHS" = "yes"; then
36711 cat >>confdefs.h <<\_ACEOF
36712#define wxUSE_STDPATHS 1
36713_ACEOF
36714
36715fi
36716
a848cd7e
SC
36717if test "$wxUSE_TEXTBUFFER" = "yes"; then
36718 cat >>confdefs.h <<\_ACEOF
36719#define wxUSE_TEXTBUFFER 1
36720_ACEOF
36721
36722fi
36723
36724if test "$wxUSE_TEXTFILE" = "yes"; then
36725 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
36726 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
36727echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
36728 else
36729 cat >>confdefs.h <<\_ACEOF
36730#define wxUSE_TEXTFILE 1
36731_ACEOF
36732
36733 fi
36734fi
36735
36736if test "$wxUSE_CONFIG" = "yes" ; then
36737 if test "$wxUSE_TEXTFILE" != "yes"; then
36738 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
36739echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
36740 else
36741 cat >>confdefs.h <<\_ACEOF
36742#define wxUSE_CONFIG 1
89be85c2
VS
36743_ACEOF
36744
36745 cat >>confdefs.h <<\_ACEOF
36746#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
36747_ACEOF
36748
36749 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
36750 fi
36751fi
36752
36753if test "$wxUSE_INTL" = "yes" ; then
36754 if test "$wxUSE_FILE" != "yes"; then
36755 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
36756echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
36757 else
36758 cat >>confdefs.h <<\_ACEOF
36759#define wxUSE_INTL 1
36760_ACEOF
36761
36762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
36763 GUIDIST="$GUIDIST INTL_DIST"
36764 fi
36765fi
36766
36767if test "$wxUSE_LOG" = "yes"; then
36768 cat >>confdefs.h <<\_ACEOF
36769#define wxUSE_LOG 1
36770_ACEOF
36771
36772
36773 if test "$wxUSE_LOGGUI" = "yes"; then
36774 cat >>confdefs.h <<\_ACEOF
36775#define wxUSE_LOGGUI 1
36776_ACEOF
36777
36778 fi
36779
36780 if test "$wxUSE_LOGWINDOW" = "yes"; then
36781 cat >>confdefs.h <<\_ACEOF
36782#define wxUSE_LOGWINDOW 1
36783_ACEOF
36784
36785 fi
36786
36787 if test "$wxUSE_LOGDIALOG" = "yes"; then
36788 cat >>confdefs.h <<\_ACEOF
36789#define wxUSE_LOG_DIALOG 1
36790_ACEOF
36791
36792 fi
0b78747f
MW
36793
36794 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
36795fi
36796
36797if test "$wxUSE_LONGLONG" = "yes"; then
36798 cat >>confdefs.h <<\_ACEOF
36799#define wxUSE_LONGLONG 1
36800_ACEOF
36801
36802fi
36803
36804if test "$wxUSE_GEOMETRY" = "yes"; then
36805 cat >>confdefs.h <<\_ACEOF
36806#define wxUSE_GEOMETRY 1
36807_ACEOF
36808
36809fi
36810
a848cd7e
SC
36811if test "$wxUSE_STREAMS" = "yes" ; then
36812 cat >>confdefs.h <<\_ACEOF
36813#define wxUSE_STREAMS 1
36814_ACEOF
36815
36816fi
36817
36818
36819if test "$wxUSE_DATETIME" = "yes"; then
36820
36821for ac_func in strptime
36822do
36823as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36824echo "$as_me:$LINENO: checking for $ac_func" >&5
36825echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36826if eval "test \"\${$as_ac_var+set}\" = set"; then
36827 echo $ECHO_N "(cached) $ECHO_C" >&6
36828else
36829 cat >conftest.$ac_ext <<_ACEOF
36830/* confdefs.h. */
36831_ACEOF
36832cat confdefs.h >>conftest.$ac_ext
36833cat >>conftest.$ac_ext <<_ACEOF
36834/* end confdefs.h. */
ac1cb8d3
VS
36835/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36837#define $ac_func innocuous_$ac_func
36838
a848cd7e
SC
36839/* System header to define __stub macros and hopefully few prototypes,
36840 which can conflict with char $ac_func (); below.
36841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36842 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36843
a848cd7e
SC
36844#ifdef __STDC__
36845# include <limits.h>
36846#else
36847# include <assert.h>
36848#endif
ac1cb8d3
VS
36849
36850#undef $ac_func
36851
a848cd7e
SC
36852/* Override any gcc2 internal prototype to avoid an error. */
36853#ifdef __cplusplus
36854extern "C"
36855{
36856#endif
36857/* We use char because int might match the return type of a gcc2
36858 builtin and then its argument prototype would still apply. */
36859char $ac_func ();
36860/* The GNU C library defines this for functions which it implements
36861 to always fail with ENOSYS. Some functions are actually named
36862 something starting with __ and the normal name is an alias. */
36863#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36864choke me
36865#else
36866char (*f) () = $ac_func;
36867#endif
36868#ifdef __cplusplus
36869}
36870#endif
36871
36872int
36873main ()
36874{
36875return f != $ac_func;
36876 ;
36877 return 0;
36878}
36879_ACEOF
36880rm -f conftest.$ac_objext conftest$ac_exeext
36881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36882 (eval $ac_link) 2>conftest.er1
a848cd7e 36883 ac_status=$?
ac1cb8d3
VS
36884 grep -v '^ *+' conftest.er1 >conftest.err
36885 rm -f conftest.er1
36886 cat conftest.err >&5
a848cd7e
SC
36887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36888 (exit $ac_status); } &&
9dd0f6c2 36889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36891 (eval $ac_try) 2>&5
36892 ac_status=$?
36893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36894 (exit $ac_status); }; } &&
36895 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36897 (eval $ac_try) 2>&5
36898 ac_status=$?
36899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36900 (exit $ac_status); }; }; then
36901 eval "$as_ac_var=yes"
36902else
36903 echo "$as_me: failed program was:" >&5
36904sed 's/^/| /' conftest.$ac_ext >&5
36905
36906eval "$as_ac_var=no"
36907fi
ac1cb8d3
VS
36908rm -f conftest.err conftest.$ac_objext \
36909 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36910fi
36911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36912echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36913if test `eval echo '${'$as_ac_var'}'` = yes; then
36914 cat >>confdefs.h <<_ACEOF
36915#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36916_ACEOF
36917
36918fi
36919done
36920
36921
36922 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
36923echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
36924if test "${wx_cv_var_timezone+set}" = set; then
36925 echo $ECHO_N "(cached) $ECHO_C" >&6
36926else
36927
36928 cat >conftest.$ac_ext <<_ACEOF
36929/* confdefs.h. */
36930_ACEOF
36931cat confdefs.h >>conftest.$ac_ext
36932cat >>conftest.$ac_ext <<_ACEOF
36933/* end confdefs.h. */
36934
36935 #include <time.h>
36936
36937int
36938main ()
36939{
36940
36941 int tz;
36942 tz = timezone;
36943
36944 ;
36945 return 0;
36946}
36947_ACEOF
36948rm -f conftest.$ac_objext
36949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36950 (eval $ac_compile) 2>conftest.er1
a848cd7e 36951 ac_status=$?
ac1cb8d3
VS
36952 grep -v '^ *+' conftest.er1 >conftest.err
36953 rm -f conftest.er1
36954 cat conftest.err >&5
a848cd7e
SC
36955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36956 (exit $ac_status); } &&
9dd0f6c2 36957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36959 (eval $ac_try) 2>&5
36960 ac_status=$?
36961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36962 (exit $ac_status); }; } &&
36963 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36965 (eval $ac_try) 2>&5
36966 ac_status=$?
36967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968 (exit $ac_status); }; }; then
36969
36970 wx_cv_var_timezone=timezone
36971
36972else
36973 echo "$as_me: failed program was:" >&5
36974sed 's/^/| /' conftest.$ac_ext >&5
36975
36976
36977 cat >conftest.$ac_ext <<_ACEOF
36978/* confdefs.h. */
36979_ACEOF
36980cat confdefs.h >>conftest.$ac_ext
36981cat >>conftest.$ac_ext <<_ACEOF
36982/* end confdefs.h. */
36983
36984 #include <time.h>
36985
36986int
36987main ()
36988{
36989
36990 int tz;
36991 tz = _timezone;
36992
36993 ;
36994 return 0;
36995}
36996_ACEOF
36997rm -f conftest.$ac_objext
36998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36999 (eval $ac_compile) 2>conftest.er1
a848cd7e 37000 ac_status=$?
ac1cb8d3
VS
37001 grep -v '^ *+' conftest.er1 >conftest.err
37002 rm -f conftest.er1
37003 cat conftest.err >&5
a848cd7e
SC
37004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37005 (exit $ac_status); } &&
9dd0f6c2 37006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37008 (eval $ac_try) 2>&5
37009 ac_status=$?
37010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37011 (exit $ac_status); }; } &&
37012 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37014 (eval $ac_try) 2>&5
37015 ac_status=$?
37016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37017 (exit $ac_status); }; }; then
37018
37019 wx_cv_var_timezone=_timezone
37020
37021else
37022 echo "$as_me: failed program was:" >&5
37023sed 's/^/| /' conftest.$ac_ext >&5
37024
37025
37026 cat >conftest.$ac_ext <<_ACEOF
37027/* confdefs.h. */
37028_ACEOF
37029cat confdefs.h >>conftest.$ac_ext
37030cat >>conftest.$ac_ext <<_ACEOF
37031/* end confdefs.h. */
37032
37033 #include <time.h>
37034
37035int
37036main ()
37037{
37038
37039 int tz;
37040 tz = __timezone;
37041
37042 ;
37043 return 0;
37044}
37045_ACEOF
37046rm -f conftest.$ac_objext
37047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37048 (eval $ac_compile) 2>conftest.er1
a848cd7e 37049 ac_status=$?
ac1cb8d3
VS
37050 grep -v '^ *+' conftest.er1 >conftest.err
37051 rm -f conftest.er1
37052 cat conftest.err >&5
a848cd7e
SC
37053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054 (exit $ac_status); } &&
9dd0f6c2 37055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37057 (eval $ac_try) 2>&5
37058 ac_status=$?
37059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37060 (exit $ac_status); }; } &&
37061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37063 (eval $ac_try) 2>&5
37064 ac_status=$?
37065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37066 (exit $ac_status); }; }; then
37067
37068 wx_cv_var_timezone=__timezone
37069
37070else
37071 echo "$as_me: failed program was:" >&5
37072sed 's/^/| /' conftest.$ac_ext >&5
37073
37074
37075 if test "$USE_DOS" = 0 ; then
37076 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
37077echo "$as_me: WARNING: no timezone variable" >&2;}
37078 fi
37079
37080
37081fi
ac1cb8d3 37082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37083
37084
37085fi
ac1cb8d3 37086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37087
37088
37089fi
ac1cb8d3 37090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37091
37092
37093fi
37094echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
37095echo "${ECHO_T}$wx_cv_var_timezone" >&6
37096
37097 if test "x$wx_cv_var_timezone" != x ; then
37098 cat >>confdefs.h <<_ACEOF
37099#define WX_TIMEZONE $wx_cv_var_timezone
37100_ACEOF
37101
37102 fi
37103
37104
37105for ac_func in localtime
37106do
37107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37108echo "$as_me:$LINENO: checking for $ac_func" >&5
37109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37110if eval "test \"\${$as_ac_var+set}\" = set"; then
37111 echo $ECHO_N "(cached) $ECHO_C" >&6
37112else
37113 cat >conftest.$ac_ext <<_ACEOF
37114/* confdefs.h. */
37115_ACEOF
37116cat confdefs.h >>conftest.$ac_ext
37117cat >>conftest.$ac_ext <<_ACEOF
37118/* end confdefs.h. */
ac1cb8d3
VS
37119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37121#define $ac_func innocuous_$ac_func
37122
a848cd7e
SC
37123/* System header to define __stub macros and hopefully few prototypes,
37124 which can conflict with char $ac_func (); below.
37125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37126 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37127
a848cd7e
SC
37128#ifdef __STDC__
37129# include <limits.h>
37130#else
37131# include <assert.h>
37132#endif
ac1cb8d3
VS
37133
37134#undef $ac_func
37135
a848cd7e
SC
37136/* Override any gcc2 internal prototype to avoid an error. */
37137#ifdef __cplusplus
37138extern "C"
37139{
37140#endif
37141/* We use char because int might match the return type of a gcc2
37142 builtin and then its argument prototype would still apply. */
37143char $ac_func ();
37144/* The GNU C library defines this for functions which it implements
37145 to always fail with ENOSYS. Some functions are actually named
37146 something starting with __ and the normal name is an alias. */
37147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37148choke me
37149#else
37150char (*f) () = $ac_func;
37151#endif
37152#ifdef __cplusplus
37153}
37154#endif
37155
37156int
37157main ()
37158{
37159return f != $ac_func;
37160 ;
37161 return 0;
37162}
37163_ACEOF
37164rm -f conftest.$ac_objext conftest$ac_exeext
37165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37166 (eval $ac_link) 2>conftest.er1
a848cd7e 37167 ac_status=$?
ac1cb8d3
VS
37168 grep -v '^ *+' conftest.er1 >conftest.err
37169 rm -f conftest.er1
37170 cat conftest.err >&5
a848cd7e
SC
37171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37172 (exit $ac_status); } &&
9dd0f6c2 37173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37175 (eval $ac_try) 2>&5
37176 ac_status=$?
37177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37178 (exit $ac_status); }; } &&
37179 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37181 (eval $ac_try) 2>&5
37182 ac_status=$?
37183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37184 (exit $ac_status); }; }; then
37185 eval "$as_ac_var=yes"
37186else
37187 echo "$as_me: failed program was:" >&5
37188sed 's/^/| /' conftest.$ac_ext >&5
37189
37190eval "$as_ac_var=no"
37191fi
ac1cb8d3
VS
37192rm -f conftest.err conftest.$ac_objext \
37193 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37194fi
37195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37196echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37197if test `eval echo '${'$as_ac_var'}'` = yes; then
37198 cat >>confdefs.h <<_ACEOF
37199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37200_ACEOF
37201
37202fi
37203done
37204
37205
37206 if test "$ac_cv_func_localtime" = "yes"; then
37207 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
37208echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
37209if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
37210 echo $ECHO_N "(cached) $ECHO_C" >&6
37211else
37212
37213 cat >conftest.$ac_ext <<_ACEOF
37214/* confdefs.h. */
37215_ACEOF
37216cat confdefs.h >>conftest.$ac_ext
37217cat >>conftest.$ac_ext <<_ACEOF
37218/* end confdefs.h. */
37219
37220 #include <time.h>
37221
37222int
37223main ()
37224{
37225
37226 struct tm tm;
37227 tm.tm_gmtoff++;
37228
37229 ;
37230 return 0;
37231}
37232_ACEOF
37233rm -f conftest.$ac_objext
37234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37235 (eval $ac_compile) 2>conftest.er1
a848cd7e 37236 ac_status=$?
ac1cb8d3
VS
37237 grep -v '^ *+' conftest.er1 >conftest.err
37238 rm -f conftest.er1
37239 cat conftest.err >&5
a848cd7e
SC
37240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37241 (exit $ac_status); } &&
9dd0f6c2 37242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37244 (eval $ac_try) 2>&5
37245 ac_status=$?
37246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37247 (exit $ac_status); }; } &&
37248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37250 (eval $ac_try) 2>&5
37251 ac_status=$?
37252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37253 (exit $ac_status); }; }; then
37254
37255 wx_cv_struct_tm_has_gmtoff=yes
37256
37257else
37258 echo "$as_me: failed program was:" >&5
37259sed 's/^/| /' conftest.$ac_ext >&5
37260
37261wx_cv_struct_tm_has_gmtoff=no
37262
37263fi
ac1cb8d3 37264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37265
37266fi
37267echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37268echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37269 fi
37270
37271 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37272 cat >>confdefs.h <<\_ACEOF
37273#define WX_GMTOFF_IN_TM 1
37274_ACEOF
37275
37276 fi
37277
37278
37279
37280for ac_func in gettimeofday ftime
37281do
37282as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37283echo "$as_me:$LINENO: checking for $ac_func" >&5
37284echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37285if eval "test \"\${$as_ac_var+set}\" = set"; then
37286 echo $ECHO_N "(cached) $ECHO_C" >&6
37287else
37288 cat >conftest.$ac_ext <<_ACEOF
37289/* confdefs.h. */
37290_ACEOF
37291cat confdefs.h >>conftest.$ac_ext
37292cat >>conftest.$ac_ext <<_ACEOF
37293/* end confdefs.h. */
ac1cb8d3
VS
37294/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37296#define $ac_func innocuous_$ac_func
37297
a848cd7e
SC
37298/* System header to define __stub macros and hopefully few prototypes,
37299 which can conflict with char $ac_func (); below.
37300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37301 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37302
a848cd7e
SC
37303#ifdef __STDC__
37304# include <limits.h>
37305#else
37306# include <assert.h>
37307#endif
ac1cb8d3
VS
37308
37309#undef $ac_func
37310
a848cd7e
SC
37311/* Override any gcc2 internal prototype to avoid an error. */
37312#ifdef __cplusplus
37313extern "C"
37314{
37315#endif
37316/* We use char because int might match the return type of a gcc2
37317 builtin and then its argument prototype would still apply. */
37318char $ac_func ();
37319/* The GNU C library defines this for functions which it implements
37320 to always fail with ENOSYS. Some functions are actually named
37321 something starting with __ and the normal name is an alias. */
37322#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37323choke me
37324#else
37325char (*f) () = $ac_func;
37326#endif
37327#ifdef __cplusplus
37328}
37329#endif
37330
37331int
37332main ()
37333{
37334return f != $ac_func;
37335 ;
37336 return 0;
37337}
37338_ACEOF
37339rm -f conftest.$ac_objext conftest$ac_exeext
37340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37341 (eval $ac_link) 2>conftest.er1
a848cd7e 37342 ac_status=$?
ac1cb8d3
VS
37343 grep -v '^ *+' conftest.er1 >conftest.err
37344 rm -f conftest.er1
37345 cat conftest.err >&5
a848cd7e
SC
37346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37347 (exit $ac_status); } &&
9dd0f6c2 37348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37350 (eval $ac_try) 2>&5
37351 ac_status=$?
37352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353 (exit $ac_status); }; } &&
37354 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37356 (eval $ac_try) 2>&5
37357 ac_status=$?
37358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37359 (exit $ac_status); }; }; then
37360 eval "$as_ac_var=yes"
37361else
37362 echo "$as_me: failed program was:" >&5
37363sed 's/^/| /' conftest.$ac_ext >&5
37364
37365eval "$as_ac_var=no"
37366fi
ac1cb8d3
VS
37367rm -f conftest.err conftest.$ac_objext \
37368 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37369fi
37370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37371echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37372if test `eval echo '${'$as_ac_var'}'` = yes; then
37373 cat >>confdefs.h <<_ACEOF
37374#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37375_ACEOF
37376 break
37377fi
37378done
37379
37380
37381 if test "$ac_cv_func_gettimeofday" = "yes"; then
37382 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37383echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37384if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37385 echo $ECHO_N "(cached) $ECHO_C" >&6
37386else
37387
37388
37389
37390 ac_ext=cc
37391ac_cpp='$CXXCPP $CPPFLAGS'
37392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37395
37396
37397 cat >conftest.$ac_ext <<_ACEOF
37398/* confdefs.h. */
37399_ACEOF
37400cat confdefs.h >>conftest.$ac_ext
37401cat >>conftest.$ac_ext <<_ACEOF
37402/* end confdefs.h. */
37403
37404 #include <sys/time.h>
37405 #include <unistd.h>
37406
37407int
37408main ()
37409{
37410
37411 struct timeval tv;
37412 gettimeofday(&tv, NULL);
37413
37414 ;
37415 return 0;
37416}
37417_ACEOF
37418rm -f conftest.$ac_objext
37419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37420 (eval $ac_compile) 2>conftest.er1
a848cd7e 37421 ac_status=$?
ac1cb8d3
VS
37422 grep -v '^ *+' conftest.er1 >conftest.err
37423 rm -f conftest.er1
37424 cat conftest.err >&5
a848cd7e
SC
37425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37426 (exit $ac_status); } &&
9dd0f6c2 37427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37429 (eval $ac_try) 2>&5
37430 ac_status=$?
37431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37432 (exit $ac_status); }; } &&
37433 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37435 (eval $ac_try) 2>&5
37436 ac_status=$?
37437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37438 (exit $ac_status); }; }; then
37439 wx_cv_func_gettimeofday_has_2_args=yes
37440else
37441 echo "$as_me: failed program was:" >&5
37442sed 's/^/| /' conftest.$ac_ext >&5
37443
37444cat >conftest.$ac_ext <<_ACEOF
37445/* confdefs.h. */
37446_ACEOF
37447cat confdefs.h >>conftest.$ac_ext
37448cat >>conftest.$ac_ext <<_ACEOF
37449/* end confdefs.h. */
37450
37451 #include <sys/time.h>
37452 #include <unistd.h>
37453
37454int
37455main ()
37456{
37457
37458 struct timeval tv;
37459 gettimeofday(&tv);
37460
37461 ;
37462 return 0;
37463}
37464_ACEOF
37465rm -f conftest.$ac_objext
37466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37467 (eval $ac_compile) 2>conftest.er1
a848cd7e 37468 ac_status=$?
ac1cb8d3
VS
37469 grep -v '^ *+' conftest.er1 >conftest.err
37470 rm -f conftest.er1
37471 cat conftest.err >&5
a848cd7e
SC
37472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37473 (exit $ac_status); } &&
9dd0f6c2 37474 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37476 (eval $ac_try) 2>&5
37477 ac_status=$?
37478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37479 (exit $ac_status); }; } &&
37480 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37482 (eval $ac_try) 2>&5
37483 ac_status=$?
37484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37485 (exit $ac_status); }; }; then
37486 wx_cv_func_gettimeofday_has_2_args=no
37487else
37488 echo "$as_me: failed program was:" >&5
37489sed 's/^/| /' conftest.$ac_ext >&5
37490
37491
37492 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
37493echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
37494 wx_cv_func_gettimeofday_has_2_args=unknown
37495
37496
37497fi
ac1cb8d3 37498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37499
37500fi
ac1cb8d3 37501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37502 ac_ext=c
37503ac_cpp='$CPP $CPPFLAGS'
37504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37506ac_compiler_gnu=$ac_cv_c_compiler_gnu
37507
37508
37509fi
37510echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
37511echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
37512
37513 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
37514 cat >>confdefs.h <<\_ACEOF
37515#define WX_GETTIMEOFDAY_NO_TZ 1
37516_ACEOF
37517
37518 fi
37519 fi
37520
37521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
37522fi
37523
37524
37525if test "$wxUSE_SOCKETS" = "yes"; then
37526 if test "$wxUSE_MGL" = "1"; then
37527 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
37528echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
37529 wxUSE_SOCKETS="no"
37530 fi
37531fi
37532
37533if test "$wxUSE_SOCKETS" = "yes"; then
37534 if test "$TOOLKIT" != "MSW"; then
37535 echo "$as_me:$LINENO: checking for socket" >&5
37536echo $ECHO_N "checking for socket... $ECHO_C" >&6
37537if test "${ac_cv_func_socket+set}" = set; then
37538 echo $ECHO_N "(cached) $ECHO_C" >&6
37539else
37540 cat >conftest.$ac_ext <<_ACEOF
37541/* confdefs.h. */
37542_ACEOF
37543cat confdefs.h >>conftest.$ac_ext
37544cat >>conftest.$ac_ext <<_ACEOF
37545/* end confdefs.h. */
ac1cb8d3
VS
37546/* Define socket to an innocuous variant, in case <limits.h> declares socket.
37547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37548#define socket innocuous_socket
37549
a848cd7e
SC
37550/* System header to define __stub macros and hopefully few prototypes,
37551 which can conflict with char socket (); below.
37552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37553 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37554
a848cd7e
SC
37555#ifdef __STDC__
37556# include <limits.h>
37557#else
37558# include <assert.h>
37559#endif
ac1cb8d3
VS
37560
37561#undef socket
37562
a848cd7e
SC
37563/* Override any gcc2 internal prototype to avoid an error. */
37564#ifdef __cplusplus
37565extern "C"
37566{
37567#endif
37568/* We use char because int might match the return type of a gcc2
37569 builtin and then its argument prototype would still apply. */
37570char socket ();
37571/* The GNU C library defines this for functions which it implements
37572 to always fail with ENOSYS. Some functions are actually named
37573 something starting with __ and the normal name is an alias. */
37574#if defined (__stub_socket) || defined (__stub___socket)
37575choke me
37576#else
37577char (*f) () = socket;
37578#endif
37579#ifdef __cplusplus
37580}
37581#endif
37582
37583int
37584main ()
37585{
37586return f != socket;
37587 ;
37588 return 0;
37589}
37590_ACEOF
37591rm -f conftest.$ac_objext conftest$ac_exeext
37592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37593 (eval $ac_link) 2>conftest.er1
a848cd7e 37594 ac_status=$?
ac1cb8d3
VS
37595 grep -v '^ *+' conftest.er1 >conftest.err
37596 rm -f conftest.er1
37597 cat conftest.err >&5
a848cd7e
SC
37598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37599 (exit $ac_status); } &&
9dd0f6c2 37600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37602 (eval $ac_try) 2>&5
37603 ac_status=$?
37604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37605 (exit $ac_status); }; } &&
37606 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37608 (eval $ac_try) 2>&5
37609 ac_status=$?
37610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37611 (exit $ac_status); }; }; then
37612 ac_cv_func_socket=yes
37613else
37614 echo "$as_me: failed program was:" >&5
37615sed 's/^/| /' conftest.$ac_ext >&5
37616
37617ac_cv_func_socket=no
37618fi
ac1cb8d3
VS
37619rm -f conftest.err conftest.$ac_objext \
37620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37621fi
37622echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
37623echo "${ECHO_T}$ac_cv_func_socket" >&6
37624if test $ac_cv_func_socket = yes; then
37625 :
37626else
37627
37628 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
37629echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
37630if test "${ac_cv_lib_socket_socket+set}" = set; then
37631 echo $ECHO_N "(cached) $ECHO_C" >&6
37632else
37633 ac_check_lib_save_LIBS=$LIBS
37634LIBS="-lsocket $LIBS"
37635cat >conftest.$ac_ext <<_ACEOF
37636/* confdefs.h. */
37637_ACEOF
37638cat confdefs.h >>conftest.$ac_ext
37639cat >>conftest.$ac_ext <<_ACEOF
37640/* end confdefs.h. */
37641
37642/* Override any gcc2 internal prototype to avoid an error. */
37643#ifdef __cplusplus
37644extern "C"
37645#endif
37646/* We use char because int might match the return type of a gcc2
37647 builtin and then its argument prototype would still apply. */
37648char socket ();
37649int
37650main ()
37651{
37652socket ();
37653 ;
37654 return 0;
37655}
37656_ACEOF
37657rm -f conftest.$ac_objext conftest$ac_exeext
37658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37659 (eval $ac_link) 2>conftest.er1
a848cd7e 37660 ac_status=$?
ac1cb8d3
VS
37661 grep -v '^ *+' conftest.er1 >conftest.err
37662 rm -f conftest.er1
37663 cat conftest.err >&5
a848cd7e
SC
37664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37665 (exit $ac_status); } &&
9dd0f6c2 37666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37668 (eval $ac_try) 2>&5
37669 ac_status=$?
37670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671 (exit $ac_status); }; } &&
37672 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37674 (eval $ac_try) 2>&5
37675 ac_status=$?
37676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37677 (exit $ac_status); }; }; then
37678 ac_cv_lib_socket_socket=yes
37679else
37680 echo "$as_me: failed program was:" >&5
37681sed 's/^/| /' conftest.$ac_ext >&5
37682
37683ac_cv_lib_socket_socket=no
37684fi
ac1cb8d3
VS
37685rm -f conftest.err conftest.$ac_objext \
37686 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37687LIBS=$ac_check_lib_save_LIBS
37688fi
37689echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
37690echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
37691if test $ac_cv_lib_socket_socket = yes; then
37692 if test "$INET_LINK" != " -lsocket"; then
37693 INET_LINK="$INET_LINK -lsocket"
37694 fi
37695else
37696
37697 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
37698echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
37699 wxUSE_SOCKETS=no
37700
37701
37702fi
37703
37704
37705
37706fi
37707
37708 fi
37709fi
37710
37711if test "$wxUSE_SOCKETS" = "yes" ; then
37712 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
37713 ac_ext=cc
37714ac_cpp='$CXXCPP $CPPFLAGS'
37715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37718
37719 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
37720echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
37721if test "${wx_cv_type_getsockname3+set}" = set; then
37722 echo $ECHO_N "(cached) $ECHO_C" >&6
37723else
37724
37725 cat >conftest.$ac_ext <<_ACEOF
37726/* confdefs.h. */
37727_ACEOF
37728cat confdefs.h >>conftest.$ac_ext
37729cat >>conftest.$ac_ext <<_ACEOF
37730/* end confdefs.h. */
37731
37732 #include <sys/types.h>
37733 #include <sys/socket.h>
37734
37735int
37736main ()
37737{
37738
37739 socklen_t len;
37740 getsockname(0, 0, &len);
37741
37742 ;
37743 return 0;
37744}
37745_ACEOF
37746rm -f conftest.$ac_objext
37747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37748 (eval $ac_compile) 2>conftest.er1
a848cd7e 37749 ac_status=$?
ac1cb8d3
VS
37750 grep -v '^ *+' conftest.er1 >conftest.err
37751 rm -f conftest.er1
37752 cat conftest.err >&5
a848cd7e
SC
37753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37754 (exit $ac_status); } &&
9dd0f6c2 37755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37757 (eval $ac_try) 2>&5
37758 ac_status=$?
37759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37760 (exit $ac_status); }; } &&
37761 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37763 (eval $ac_try) 2>&5
37764 ac_status=$?
37765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37766 (exit $ac_status); }; }; then
37767 wx_cv_type_getsockname3=socklen_t
37768else
37769 echo "$as_me: failed program was:" >&5
37770sed 's/^/| /' conftest.$ac_ext >&5
37771
37772
37773 CFLAGS_OLD="$CFLAGS"
37774 if test "$GCC" = yes ; then
37775 CFLAGS="$CFLAGS -Werror"
37776 fi
37777
37778 cat >conftest.$ac_ext <<_ACEOF
37779/* confdefs.h. */
37780_ACEOF
37781cat confdefs.h >>conftest.$ac_ext
37782cat >>conftest.$ac_ext <<_ACEOF
37783/* end confdefs.h. */
37784
37785 #include <sys/types.h>
37786 #include <sys/socket.h>
37787
37788int
37789main ()
37790{
37791
37792 size_t len;
37793 getsockname(0, 0, &len);
37794
37795 ;
37796 return 0;
37797}
37798_ACEOF
37799rm -f conftest.$ac_objext
37800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37801 (eval $ac_compile) 2>conftest.er1
a848cd7e 37802 ac_status=$?
ac1cb8d3
VS
37803 grep -v '^ *+' conftest.er1 >conftest.err
37804 rm -f conftest.er1
37805 cat conftest.err >&5
a848cd7e
SC
37806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37807 (exit $ac_status); } &&
9dd0f6c2 37808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37810 (eval $ac_try) 2>&5
37811 ac_status=$?
37812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37813 (exit $ac_status); }; } &&
37814 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37816 (eval $ac_try) 2>&5
37817 ac_status=$?
37818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37819 (exit $ac_status); }; }; then
37820 wx_cv_type_getsockname3=size_t
37821else
37822 echo "$as_me: failed program was:" >&5
37823sed 's/^/| /' conftest.$ac_ext >&5
37824
37825cat >conftest.$ac_ext <<_ACEOF
37826/* confdefs.h. */
37827_ACEOF
37828cat confdefs.h >>conftest.$ac_ext
37829cat >>conftest.$ac_ext <<_ACEOF
37830/* end confdefs.h. */
37831
37832 #include <sys/types.h>
37833 #include <sys/socket.h>
37834
37835int
37836main ()
37837{
37838
37839 int len;
37840 getsockname(0, 0, &len);
37841
37842 ;
37843 return 0;
37844}
37845_ACEOF
37846rm -f conftest.$ac_objext
37847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37848 (eval $ac_compile) 2>conftest.er1
a848cd7e 37849 ac_status=$?
ac1cb8d3
VS
37850 grep -v '^ *+' conftest.er1 >conftest.err
37851 rm -f conftest.er1
37852 cat conftest.err >&5
a848cd7e
SC
37853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37854 (exit $ac_status); } &&
9dd0f6c2 37855 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37857 (eval $ac_try) 2>&5
37858 ac_status=$?
37859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37860 (exit $ac_status); }; } &&
37861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37863 (eval $ac_try) 2>&5
37864 ac_status=$?
37865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37866 (exit $ac_status); }; }; then
37867 wx_cv_type_getsockname3=int
37868else
37869 echo "$as_me: failed program was:" >&5
37870sed 's/^/| /' conftest.$ac_ext >&5
37871
37872wx_cv_type_getsockname3=unknown
37873
37874fi
ac1cb8d3 37875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37876
37877fi
ac1cb8d3 37878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37879
37880 CFLAGS="$CFLAGS_OLD"
37881
37882
37883fi
ac1cb8d3 37884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37885
37886fi
37887echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
37888echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
37889
37890 if test "$wx_cv_type_getsockname3" = "unknown"; then
37891 wxUSE_SOCKETS=no
37892 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37893echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37894 else
37895 cat >>confdefs.h <<_ACEOF
37896#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
37897_ACEOF
37898
37899 fi
37900 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
37901echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
37902if test "${wx_cv_type_getsockopt5+set}" = set; then
37903 echo $ECHO_N "(cached) $ECHO_C" >&6
37904else
37905
37906 cat >conftest.$ac_ext <<_ACEOF
37907/* confdefs.h. */
37908_ACEOF
37909cat confdefs.h >>conftest.$ac_ext
37910cat >>conftest.$ac_ext <<_ACEOF
37911/* end confdefs.h. */
37912
37913 #include <sys/types.h>
37914 #include <sys/socket.h>
37915
37916int
37917main ()
37918{
37919
37920 socklen_t len;
37921 getsockopt(0, 0, 0, 0, &len);
37922
37923 ;
37924 return 0;
37925}
37926_ACEOF
37927rm -f conftest.$ac_objext
37928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37929 (eval $ac_compile) 2>conftest.er1
37930 ac_status=$?
37931 grep -v '^ *+' conftest.er1 >conftest.err
37932 rm -f conftest.er1
37933 cat conftest.err >&5
37934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37935 (exit $ac_status); } &&
9dd0f6c2 37936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37938 (eval $ac_try) 2>&5
37939 ac_status=$?
37940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37941 (exit $ac_status); }; } &&
37942 { ac_try='test -s conftest.$ac_objext'
37943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37944 (eval $ac_try) 2>&5
37945 ac_status=$?
37946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37947 (exit $ac_status); }; }; then
37948 wx_cv_type_getsockopt5=socklen_t
37949else
37950 echo "$as_me: failed program was:" >&5
37951sed 's/^/| /' conftest.$ac_ext >&5
37952
37953
37954 CFLAGS_OLD="$CFLAGS"
37955 if test "$GCC" = yes ; then
37956 CFLAGS="$CFLAGS -Werror"
37957 fi
37958
37959 cat >conftest.$ac_ext <<_ACEOF
37960/* confdefs.h. */
37961_ACEOF
37962cat confdefs.h >>conftest.$ac_ext
37963cat >>conftest.$ac_ext <<_ACEOF
37964/* end confdefs.h. */
37965
37966 #include <sys/types.h>
37967 #include <sys/socket.h>
37968
37969int
37970main ()
37971{
37972
37973 size_t len;
37974 getsockopt(0, 0, 0, 0, &len);
37975
37976 ;
37977 return 0;
37978}
37979_ACEOF
37980rm -f conftest.$ac_objext
37981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37982 (eval $ac_compile) 2>conftest.er1
37983 ac_status=$?
37984 grep -v '^ *+' conftest.er1 >conftest.err
37985 rm -f conftest.er1
37986 cat conftest.err >&5
37987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37988 (exit $ac_status); } &&
9dd0f6c2 37989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37991 (eval $ac_try) 2>&5
37992 ac_status=$?
37993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37994 (exit $ac_status); }; } &&
37995 { ac_try='test -s conftest.$ac_objext'
37996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37997 (eval $ac_try) 2>&5
37998 ac_status=$?
37999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38000 (exit $ac_status); }; }; then
38001 wx_cv_type_getsockopt5=size_t
38002else
38003 echo "$as_me: failed program was:" >&5
38004sed 's/^/| /' conftest.$ac_ext >&5
38005
38006cat >conftest.$ac_ext <<_ACEOF
38007/* confdefs.h. */
38008_ACEOF
38009cat confdefs.h >>conftest.$ac_ext
38010cat >>conftest.$ac_ext <<_ACEOF
38011/* end confdefs.h. */
38012
38013 #include <sys/types.h>
38014 #include <sys/socket.h>
38015
38016int
38017main ()
38018{
38019
38020 int len;
38021 getsockopt(0, 0, 0, 0, &len);
38022
38023 ;
38024 return 0;
38025}
38026_ACEOF
38027rm -f conftest.$ac_objext
38028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38029 (eval $ac_compile) 2>conftest.er1
38030 ac_status=$?
38031 grep -v '^ *+' conftest.er1 >conftest.err
38032 rm -f conftest.er1
38033 cat conftest.err >&5
38034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38035 (exit $ac_status); } &&
9dd0f6c2 38036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38038 (eval $ac_try) 2>&5
38039 ac_status=$?
38040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38041 (exit $ac_status); }; } &&
38042 { ac_try='test -s conftest.$ac_objext'
38043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38044 (eval $ac_try) 2>&5
38045 ac_status=$?
38046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38047 (exit $ac_status); }; }; then
38048 wx_cv_type_getsockopt5=int
38049else
38050 echo "$as_me: failed program was:" >&5
38051sed 's/^/| /' conftest.$ac_ext >&5
38052
38053wx_cv_type_getsockopt5=unknown
38054
38055fi
38056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38057
38058fi
38059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38060
38061 CFLAGS="$CFLAGS_OLD"
38062
38063
38064fi
38065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38066
38067fi
38068echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
38069echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
38070
38071 if test "$wx_cv_type_getsockopt5" = "unknown"; then
38072 wxUSE_SOCKETS=no
38073 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38074echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38075 else
38076 cat >>confdefs.h <<_ACEOF
38077#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
38078_ACEOF
38079
38080 fi
4d4ff94c
VZ
38081 ac_ext=c
38082ac_cpp='$CPP $CPPFLAGS'
38083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38085ac_compiler_gnu=$ac_cv_c_compiler_gnu
38086
a848cd7e
SC
38087 fi
38088fi
38089
38090if test "$wxUSE_SOCKETS" = "yes" ; then
38091 cat >>confdefs.h <<\_ACEOF
38092#define wxUSE_SOCKETS 1
38093_ACEOF
38094
38095 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
38096fi
38097
38098if test "$wxUSE_PROTOCOL" = "yes"; then
38099 if test "$wxUSE_SOCKETS" != "yes"; then
38100 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
38101echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
38102 wxUSE_PROTOCOL=no
38103 fi
38104fi
38105
38106if test "$wxUSE_PROTOCOL" = "yes"; then
38107 cat >>confdefs.h <<\_ACEOF
38108#define wxUSE_PROTOCOL 1
38109_ACEOF
38110
38111
38112 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
38113 cat >>confdefs.h <<\_ACEOF
38114#define wxUSE_PROTOCOL_HTTP 1
38115_ACEOF
38116
38117 fi
38118 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
38119 cat >>confdefs.h <<\_ACEOF
38120#define wxUSE_PROTOCOL_FTP 1
38121_ACEOF
38122
38123 fi
38124 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
38125 cat >>confdefs.h <<\_ACEOF
38126#define wxUSE_PROTOCOL_FILE 1
38127_ACEOF
38128
38129 fi
38130else
38131 if test "$wxUSE_FS_INET" = "yes"; then
38132 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
38133echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
38134 wxUSE_FS_INET="no"
38135 fi
38136fi
38137
38138if test "$wxUSE_URL" = "yes"; then
38139 if test "$wxUSE_PROTOCOL" != "yes"; then
38140 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
38141echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
38142 wxUSE_URL=no
38143 fi
38144 if test "$wxUSE_URL" = "yes"; then
38145 cat >>confdefs.h <<\_ACEOF
38146#define wxUSE_URL 1
38147_ACEOF
38148
38149 fi
38150fi
38151
38152if test "$wxUSE_FS_INET" = "yes"; then
38153 cat >>confdefs.h <<\_ACEOF
38154#define wxUSE_FS_INET 1
38155_ACEOF
38156
38157fi
38158
38159
38160if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 38161 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 38162
4cb1d3da 38163 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
38164
38165for ac_header in linux/joystick.h
38166do
38167as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38168if eval "test \"\${$as_ac_Header+set}\" = set"; then
38169 echo "$as_me:$LINENO: checking for $ac_header" >&5
38170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38171if eval "test \"\${$as_ac_Header+set}\" = set"; then
38172 echo $ECHO_N "(cached) $ECHO_C" >&6
38173fi
38174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38175echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38176else
38177 # Is the header compilable?
38178echo "$as_me:$LINENO: checking $ac_header usability" >&5
38179echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38180cat >conftest.$ac_ext <<_ACEOF
38181/* confdefs.h. */
38182_ACEOF
38183cat confdefs.h >>conftest.$ac_ext
38184cat >>conftest.$ac_ext <<_ACEOF
38185/* end confdefs.h. */
38186$ac_includes_default
38187#include <$ac_header>
38188_ACEOF
38189rm -f conftest.$ac_objext
38190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38191 (eval $ac_compile) 2>conftest.er1
a848cd7e 38192 ac_status=$?
ac1cb8d3
VS
38193 grep -v '^ *+' conftest.er1 >conftest.err
38194 rm -f conftest.er1
38195 cat conftest.err >&5
a848cd7e
SC
38196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38197 (exit $ac_status); } &&
9dd0f6c2 38198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38200 (eval $ac_try) 2>&5
38201 ac_status=$?
38202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38203 (exit $ac_status); }; } &&
38204 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38206 (eval $ac_try) 2>&5
38207 ac_status=$?
38208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38209 (exit $ac_status); }; }; then
38210 ac_header_compiler=yes
38211else
38212 echo "$as_me: failed program was:" >&5
38213sed 's/^/| /' conftest.$ac_ext >&5
38214
38215ac_header_compiler=no
38216fi
ac1cb8d3 38217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38218echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38219echo "${ECHO_T}$ac_header_compiler" >&6
38220
38221# Is the header present?
38222echo "$as_me:$LINENO: checking $ac_header presence" >&5
38223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38224cat >conftest.$ac_ext <<_ACEOF
38225/* confdefs.h. */
38226_ACEOF
38227cat confdefs.h >>conftest.$ac_ext
38228cat >>conftest.$ac_ext <<_ACEOF
38229/* end confdefs.h. */
38230#include <$ac_header>
38231_ACEOF
38232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38234 ac_status=$?
38235 grep -v '^ *+' conftest.er1 >conftest.err
38236 rm -f conftest.er1
38237 cat conftest.err >&5
38238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38239 (exit $ac_status); } >/dev/null; then
38240 if test -s conftest.err; then
38241 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38243 else
38244 ac_cpp_err=
38245 fi
38246else
38247 ac_cpp_err=yes
38248fi
38249if test -z "$ac_cpp_err"; then
38250 ac_header_preproc=yes
38251else
38252 echo "$as_me: failed program was:" >&5
38253sed 's/^/| /' conftest.$ac_ext >&5
38254
38255 ac_header_preproc=no
38256fi
38257rm -f conftest.err conftest.$ac_ext
38258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38259echo "${ECHO_T}$ac_header_preproc" >&6
38260
38261# So? What about this header?
ac1cb8d3
VS
38262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38263 yes:no: )
a848cd7e
SC
38264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38267echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38268 ac_header_preproc=yes
a848cd7e 38269 ;;
ac1cb8d3 38270 no:yes:* )
a848cd7e
SC
38271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38272echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38274echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38276echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38278echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38280echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38282echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38283 (
38284 cat <<\_ASBOX
ac1cb8d3
VS
38285## ----------------------------------------- ##
38286## Report this to wx-dev@lists.wxwidgets.org ##
38287## ----------------------------------------- ##
a848cd7e
SC
38288_ASBOX
38289 ) |
38290 sed "s/^/$as_me: WARNING: /" >&2
38291 ;;
38292esac
38293echo "$as_me:$LINENO: checking for $ac_header" >&5
38294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38295if eval "test \"\${$as_ac_Header+set}\" = set"; then
38296 echo $ECHO_N "(cached) $ECHO_C" >&6
38297else
ac1cb8d3 38298 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38299fi
38300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38302
38303fi
38304if test `eval echo '${'$as_ac_Header'}'` = yes; then
38305 cat >>confdefs.h <<_ACEOF
38306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38307_ACEOF
38308
38309fi
38310
38311done
38312
38313 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
38314 wxUSE_JOYSTICK=no
38315 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38316echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38317 fi
4cb1d3da
RN
38318 else
38319 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
38320 wxUSE_JOYSTICK=no
38321 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38322echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38323 fi
a848cd7e 38324 fi
a848cd7e 38325
4cb1d3da
RN
38326
38327 if test "$wxUSE_JOYSTICK" = "yes"; then
38328 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38329#define wxUSE_JOYSTICK 1
38330_ACEOF
38331
4cb1d3da
RN
38332 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38333 fi
a848cd7e
SC
38334 fi
38335fi
38336
38337
38338
38339if test "$wxUSE_FONTMAP" = "yes" ; then
38340 cat >>confdefs.h <<\_ACEOF
38341#define wxUSE_FONTMAP 1
38342_ACEOF
38343
38344fi
38345
38346if test "$wxUSE_UNICODE" = "yes" ; then
38347 cat >>confdefs.h <<\_ACEOF
38348#define wxUSE_UNICODE 1
38349_ACEOF
38350
38351
38352 if test "$USE_WIN32" != 1; then
38353 wxUSE_UNICODE_MSLU=no
38354 fi
38355
38356 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38357 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38358echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38359if test "${ac_cv_lib_unicows_main+set}" = set; then
38360 echo $ECHO_N "(cached) $ECHO_C" >&6
38361else
38362 ac_check_lib_save_LIBS=$LIBS
38363LIBS="-lunicows $LIBS"
38364cat >conftest.$ac_ext <<_ACEOF
38365/* confdefs.h. */
38366_ACEOF
38367cat confdefs.h >>conftest.$ac_ext
38368cat >>conftest.$ac_ext <<_ACEOF
38369/* end confdefs.h. */
38370
38371
38372int
38373main ()
38374{
38375main ();
38376 ;
38377 return 0;
38378}
38379_ACEOF
38380rm -f conftest.$ac_objext conftest$ac_exeext
38381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38382 (eval $ac_link) 2>conftest.er1
a848cd7e 38383 ac_status=$?
ac1cb8d3
VS
38384 grep -v '^ *+' conftest.er1 >conftest.err
38385 rm -f conftest.er1
38386 cat conftest.err >&5
a848cd7e
SC
38387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38388 (exit $ac_status); } &&
9dd0f6c2 38389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38391 (eval $ac_try) 2>&5
38392 ac_status=$?
38393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38394 (exit $ac_status); }; } &&
38395 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38397 (eval $ac_try) 2>&5
38398 ac_status=$?
38399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38400 (exit $ac_status); }; }; then
38401 ac_cv_lib_unicows_main=yes
38402else
38403 echo "$as_me: failed program was:" >&5
38404sed 's/^/| /' conftest.$ac_ext >&5
38405
38406ac_cv_lib_unicows_main=no
38407fi
ac1cb8d3
VS
38408rm -f conftest.err conftest.$ac_objext \
38409 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38410LIBS=$ac_check_lib_save_LIBS
38411fi
38412echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38413echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38414if test $ac_cv_lib_unicows_main = yes; then
38415
38416 cat >>confdefs.h <<\_ACEOF
38417#define wxUSE_UNICODE_MSLU 1
38418_ACEOF
38419
38420
38421else
38422
38423 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38424 Applications will only run on Windows NT/2000/XP!" >&5
38425echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38426 Applications will only run on Windows NT/2000/XP!" >&2;}
38427 wxUSE_UNICODE_MSLU=no
38428
38429fi
38430
38431 fi
38432fi
38433
38434if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38435 cat >>confdefs.h <<\_ACEOF
38436#define wxUSE_EXPERIMENTAL_PRINTF 1
38437_ACEOF
38438
38439fi
38440
38441
38442if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38443 cat >>confdefs.h <<\_ACEOF
38444#define wxUSE_POSTSCRIPT 1
38445_ACEOF
38446
38447fi
38448
38449cat >>confdefs.h <<\_ACEOF
38450#define wxUSE_AFM_FOR_POSTSCRIPT 1
38451_ACEOF
38452
38453
38454cat >>confdefs.h <<\_ACEOF
38455#define wxUSE_NORMALIZED_PS_FONTS 1
38456_ACEOF
38457
38458
38459
38460if test "$wxUSE_CONSTRAINTS" = "yes"; then
38461 cat >>confdefs.h <<\_ACEOF
38462#define wxUSE_CONSTRAINTS 1
38463_ACEOF
38464
38465 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
38466fi
38467
8a7b1113
VZ
38468if test "$wxUSE_MDI" = "yes"; then
38469 cat >>confdefs.h <<\_ACEOF
38470#define wxUSE_MDI 1
38471_ACEOF
38472
38473
38474 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38475 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38476#define wxUSE_MDI_ARCHITECTURE 1
38477_ACEOF
38478
8a7b1113
VZ
38479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
38480 fi
a848cd7e
SC
38481fi
38482
38483if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
38484 cat >>confdefs.h <<\_ACEOF
38485#define wxUSE_DOC_VIEW_ARCHITECTURE 1
38486_ACEOF
38487
38488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
38489 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38490 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
38491 fi
38492fi
38493
38494if test "$wxUSE_HELP" = "yes"; then
38495 cat >>confdefs.h <<\_ACEOF
38496#define wxUSE_HELP 1
38497_ACEOF
38498
38499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
38500
38501 if test "$wxUSE_MSW" = 1; then
38502 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
38503 cat >>confdefs.h <<\_ACEOF
38504#define wxUSE_MS_HTML_HELP 1
38505_ACEOF
38506
38507 fi
38508 fi
38509
38510 if test "$wxUSE_WXHTML_HELP" = "yes"; then
38511 if test "$wxUSE_HTML" = "yes"; then
38512 cat >>confdefs.h <<\_ACEOF
38513#define wxUSE_WXHTML_HELP 1
38514_ACEOF
38515
38516 else
38517 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
38518echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
38519 wxUSE_WXHTML_HELP=no
38520 fi
38521 fi
38522fi
38523
38524if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38525 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38526 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
38527echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
38528 else
38529 cat >>confdefs.h <<\_ACEOF
38530#define wxUSE_PRINTING_ARCHITECTURE 1
38531_ACEOF
38532
38533 fi
38534 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
38535fi
38536
38537if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
38538 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
38539echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
38540 { (exit 1); exit 1; }; }
38541fi
38542
38543
38544if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
38545 -o "$wxUSE_CLIPBOARD" = "yes" \
38546 -o "$wxUSE_OLE" = "yes" \
38547 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
38548
38549for ac_header in ole2.h
38550do
38551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38552if eval "test \"\${$as_ac_Header+set}\" = set"; then
38553 echo "$as_me:$LINENO: checking for $ac_header" >&5
38554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38555if eval "test \"\${$as_ac_Header+set}\" = set"; then
38556 echo $ECHO_N "(cached) $ECHO_C" >&6
38557fi
38558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38560else
38561 # Is the header compilable?
38562echo "$as_me:$LINENO: checking $ac_header usability" >&5
38563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38564cat >conftest.$ac_ext <<_ACEOF
38565/* confdefs.h. */
38566_ACEOF
38567cat confdefs.h >>conftest.$ac_ext
38568cat >>conftest.$ac_ext <<_ACEOF
38569/* end confdefs.h. */
38570$ac_includes_default
38571#include <$ac_header>
38572_ACEOF
38573rm -f conftest.$ac_objext
38574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38575 (eval $ac_compile) 2>conftest.er1
a848cd7e 38576 ac_status=$?
ac1cb8d3
VS
38577 grep -v '^ *+' conftest.er1 >conftest.err
38578 rm -f conftest.er1
38579 cat conftest.err >&5
a848cd7e
SC
38580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38581 (exit $ac_status); } &&
9dd0f6c2 38582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38584 (eval $ac_try) 2>&5
38585 ac_status=$?
38586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38587 (exit $ac_status); }; } &&
38588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38590 (eval $ac_try) 2>&5
38591 ac_status=$?
38592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38593 (exit $ac_status); }; }; then
38594 ac_header_compiler=yes
38595else
38596 echo "$as_me: failed program was:" >&5
38597sed 's/^/| /' conftest.$ac_ext >&5
38598
38599ac_header_compiler=no
38600fi
ac1cb8d3 38601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38602echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38603echo "${ECHO_T}$ac_header_compiler" >&6
38604
38605# Is the header present?
38606echo "$as_me:$LINENO: checking $ac_header presence" >&5
38607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38608cat >conftest.$ac_ext <<_ACEOF
38609/* confdefs.h. */
38610_ACEOF
38611cat confdefs.h >>conftest.$ac_ext
38612cat >>conftest.$ac_ext <<_ACEOF
38613/* end confdefs.h. */
38614#include <$ac_header>
38615_ACEOF
38616if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38618 ac_status=$?
38619 grep -v '^ *+' conftest.er1 >conftest.err
38620 rm -f conftest.er1
38621 cat conftest.err >&5
38622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38623 (exit $ac_status); } >/dev/null; then
38624 if test -s conftest.err; then
38625 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38627 else
38628 ac_cpp_err=
38629 fi
38630else
38631 ac_cpp_err=yes
38632fi
38633if test -z "$ac_cpp_err"; then
38634 ac_header_preproc=yes
38635else
38636 echo "$as_me: failed program was:" >&5
38637sed 's/^/| /' conftest.$ac_ext >&5
38638
38639 ac_header_preproc=no
38640fi
38641rm -f conftest.err conftest.$ac_ext
38642echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38643echo "${ECHO_T}$ac_header_preproc" >&6
38644
38645# So? What about this header?
ac1cb8d3
VS
38646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38647 yes:no: )
a848cd7e
SC
38648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38649echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38651echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38652 ac_header_preproc=yes
a848cd7e 38653 ;;
ac1cb8d3 38654 no:yes:* )
a848cd7e
SC
38655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38656echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38658echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38660echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38662echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38664echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38666echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38667 (
38668 cat <<\_ASBOX
ac1cb8d3
VS
38669## ----------------------------------------- ##
38670## Report this to wx-dev@lists.wxwidgets.org ##
38671## ----------------------------------------- ##
a848cd7e
SC
38672_ASBOX
38673 ) |
38674 sed "s/^/$as_me: WARNING: /" >&2
38675 ;;
38676esac
38677echo "$as_me:$LINENO: checking for $ac_header" >&5
38678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38679if eval "test \"\${$as_ac_Header+set}\" = set"; then
38680 echo $ECHO_N "(cached) $ECHO_C" >&6
38681else
ac1cb8d3 38682 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38683fi
38684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38685echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38686
38687fi
38688if test `eval echo '${'$as_ac_Header'}'` = yes; then
38689 cat >>confdefs.h <<_ACEOF
38690#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38691_ACEOF
38692
38693fi
38694
38695done
38696
38697
38698 if test "$ac_cv_header_ole2_h" = "yes" ; then
38699 if test "$GCC" = yes ; then
38700
38701
38702 ac_ext=cc
38703ac_cpp='$CXXCPP $CPPFLAGS'
38704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38707
38708
38709 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
38710echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
38711 cat >conftest.$ac_ext <<_ACEOF
38712/* confdefs.h. */
38713_ACEOF
38714cat confdefs.h >>conftest.$ac_ext
38715cat >>conftest.$ac_ext <<_ACEOF
38716/* end confdefs.h. */
38717#include <windows.h>
38718 #include <ole2.h>
38719int
38720main ()
38721{
38722
38723 ;
38724 return 0;
38725}
38726_ACEOF
38727rm -f conftest.$ac_objext
38728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38729 (eval $ac_compile) 2>conftest.er1
a848cd7e 38730 ac_status=$?
ac1cb8d3
VS
38731 grep -v '^ *+' conftest.er1 >conftest.err
38732 rm -f conftest.er1
38733 cat conftest.err >&5
a848cd7e
SC
38734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38735 (exit $ac_status); } &&
9dd0f6c2 38736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38738 (eval $ac_try) 2>&5
38739 ac_status=$?
38740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38741 (exit $ac_status); }; } &&
38742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38744 (eval $ac_try) 2>&5
38745 ac_status=$?
38746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38747 (exit $ac_status); }; }; then
38748 echo "$as_me:$LINENO: result: no" >&5
38749echo "${ECHO_T}no" >&6
38750else
38751 echo "$as_me: failed program was:" >&5
38752sed 's/^/| /' conftest.$ac_ext >&5
38753
38754echo "$as_me:$LINENO: result: yes" >&5
38755echo "${ECHO_T}yes" >&6
38756 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
38757fi
ac1cb8d3 38758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38759 ac_ext=c
38760ac_cpp='$CPP $CPPFLAGS'
38761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38763ac_compiler_gnu=$ac_cv_c_compiler_gnu
38764
a848cd7e
SC
38765 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
38766 if test "$wxUSE_OLE" = "yes" ; then
38767 cat >>confdefs.h <<\_ACEOF
38768#define wxUSE_OLE 1
38769_ACEOF
38770
0b78747f 38771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
38772 fi
38773 fi
38774
38775 if test "$wxUSE_DATAOBJ" = "yes" ; then
38776 cat >>confdefs.h <<\_ACEOF
38777#define wxUSE_DATAOBJ 1
38778_ACEOF
38779
38780 fi
38781 else
38782 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
38783echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
38784
38785 wxUSE_CLIPBOARD=no
38786 wxUSE_DRAG_AND_DROP=no
38787 wxUSE_DATAOBJ=no
38788 wxUSE_OLE=no
38789 fi
38790
38791 if test "$wxUSE_METAFILE" = "yes"; then
38792 cat >>confdefs.h <<\_ACEOF
38793#define wxUSE_METAFILE 1
38794_ACEOF
38795
38796
38797 cat >>confdefs.h <<\_ACEOF
38798#define wxUSE_ENH_METAFILE 1
38799_ACEOF
38800
38801 fi
38802fi
38803
38804if test "$wxUSE_IPC" = "yes"; then
0b78747f 38805 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
38806 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
38807echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 38808 wxUSE_IPC=no
a848cd7e
SC
38809 fi
38810
0b78747f
MW
38811 if test "$wxUSE_IPC" = "yes"; then
38812 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38813#define wxUSE_IPC 1
38814_ACEOF
38815
0b78747f
MW
38816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
38817 fi
a848cd7e
SC
38818fi
38819
38820if test "$wxUSE_CLIPBOARD" = "yes"; then
38821 if test "$wxUSE_MGL" = 1; then
38822 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
38823echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
38824 wxUSE_CLIPBOARD=no
38825 fi
38826
38827 if test "$wxUSE_CLIPBOARD" = "yes"; then
38828 cat >>confdefs.h <<\_ACEOF
38829#define wxUSE_CLIPBOARD 1
38830_ACEOF
38831
38832
38833 cat >>confdefs.h <<\_ACEOF
38834#define wxUSE_DATAOBJ 1
38835_ACEOF
38836
38837 fi
38838fi
38839
38840if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
38841 if test "$wxUSE_GTK" = 1; then
38842 if test "$WXGTK12" != 1; then
38843 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
38844echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
38845 wxUSE_DRAG_AND_DROP=no
38846 fi
38847 fi
38848
38849 if test "$wxUSE_MOTIF" = 1; then
38850 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
38851echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
38852 wxUSE_DRAG_AND_DROP=no
38853 fi
38854
38855 if test "$wxUSE_X11" = 1; then
38856 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
38857echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
38858 wxUSE_DRAG_AND_DROP=no
38859 fi
38860
38861 if test "$wxUSE_MGL" = 1; then
38862 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
38863echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
38864 wxUSE_DRAG_AND_DROP=no
38865 fi
38866
38867 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
38868 cat >>confdefs.h <<\_ACEOF
38869#define wxUSE_DRAG_AND_DROP 1
38870_ACEOF
38871
38872 fi
38873
38874fi
38875
38876if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
38877 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
38878fi
38879
38880if test "$wxUSE_SPLINES" = "yes" ; then
38881 cat >>confdefs.h <<\_ACEOF
38882#define wxUSE_SPLINES 1
38883_ACEOF
38884
38885fi
38886
fbe2ca43
SN
38887if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
38888 cat >>confdefs.h <<\_ACEOF
38889#define wxUSE_MOUSEWHEEL 1
38890_ACEOF
38891
38892fi
38893
a848cd7e
SC
38894
38895USES_CONTROLS=0
38896if test "$wxUSE_CONTROLS" = "yes"; then
38897 USES_CONTROLS=1
38898fi
38899
38900if test "$wxUSE_ACCEL" = "yes"; then
38901 cat >>confdefs.h <<\_ACEOF
38902#define wxUSE_ACCEL 1
38903_ACEOF
38904
38905 USES_CONTROLS=1
38906fi
38907
38908if test "$wxUSE_BUTTON" = "yes"; then
38909 cat >>confdefs.h <<\_ACEOF
38910#define wxUSE_BUTTON 1
38911_ACEOF
38912
38913 USES_CONTROLS=1
38914fi
38915
38916if test "$wxUSE_BMPBUTTON" = "yes"; then
38917 cat >>confdefs.h <<\_ACEOF
38918#define wxUSE_BMPBUTTON 1
38919_ACEOF
38920
38921 USES_CONTROLS=1
38922fi
38923
38924if test "$wxUSE_CALCTRL" = "yes"; then
38925 cat >>confdefs.h <<\_ACEOF
38926#define wxUSE_CALENDARCTRL 1
38927_ACEOF
38928
38929 USES_CONTROLS=1
38930 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
38931fi
38932
38933if test "$wxUSE_CARET" = "yes"; then
38934 cat >>confdefs.h <<\_ACEOF
38935#define wxUSE_CARET 1
38936_ACEOF
38937
38938 USES_CONTROLS=1
38939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
38940fi
38941
38942if test "$wxUSE_COMBOBOX" = "yes"; then
38943 cat >>confdefs.h <<\_ACEOF
38944#define wxUSE_COMBOBOX 1
38945_ACEOF
38946
38947 USES_CONTROLS=1
38948fi
38949
38950if test "$wxUSE_CHOICE" = "yes"; then
38951 cat >>confdefs.h <<\_ACEOF
38952#define wxUSE_CHOICE 1
38953_ACEOF
38954
38955 USES_CONTROLS=1
38956fi
38957
92bbdbcd
WS
38958if test "$wxUSE_CHOICEBOOK" = "yes"; then
38959 cat >>confdefs.h <<\_ACEOF
38960#define wxUSE_CHOICEBOOK 1
38961_ACEOF
38962
38963 USES_CONTROLS=1
38964fi
38965
a848cd7e
SC
38966if test "$wxUSE_CHECKBOX" = "yes"; then
38967 cat >>confdefs.h <<\_ACEOF
38968#define wxUSE_CHECKBOX 1
38969_ACEOF
38970
38971 USES_CONTROLS=1
38972fi
38973
38974if test "$wxUSE_CHECKLST" = "yes"; then
38975 cat >>confdefs.h <<\_ACEOF
38976#define wxUSE_CHECKLISTBOX 1
38977_ACEOF
38978
38979 USES_CONTROLS=1
38980 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
38981fi
38982
da98e9be
VZ
38983if test "$wxUSE_DATEPICKCTRL" = "yes"; then
38984 cat >>confdefs.h <<\_ACEOF
38985#define wxUSE_DATEPICKCTRL 1
38986_ACEOF
38987
38988 USES_CONTROLS=1
38989fi
38990
a848cd7e
SC
38991if test "$wxUSE_DISPLAY" = "yes"; then
38992 cat >>confdefs.h <<\_ACEOF
38993#define wxUSE_DISPLAY 1
38994_ACEOF
38995
0b78747f 38996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
38997fi
38998
38999if test "$wxUSE_GAUGE" = "yes"; then
39000 cat >>confdefs.h <<\_ACEOF
39001#define wxUSE_GAUGE 1
39002_ACEOF
39003
39004 USES_CONTROLS=1
39005fi
39006
39007if test "$wxUSE_GRID" = "yes"; then
39008 cat >>confdefs.h <<\_ACEOF
39009#define wxUSE_GRID 1
39010_ACEOF
39011
39012 USES_CONTROLS=1
39013 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
39014fi
39015
39016if test "$wxUSE_IMAGLIST" = "yes"; then
39017 cat >>confdefs.h <<\_ACEOF
39018#define wxUSE_IMAGLIST 1
39019_ACEOF
39020
39021fi
39022
39023if test "$wxUSE_LISTBOOK" = "yes"; then
39024 cat >>confdefs.h <<\_ACEOF
39025#define wxUSE_LISTBOOK 1
39026_ACEOF
39027
39028 USES_CONTROLS=1
39029fi
39030
39031if test "$wxUSE_LISTBOX" = "yes"; then
39032 cat >>confdefs.h <<\_ACEOF
39033#define wxUSE_LISTBOX 1
39034_ACEOF
39035
39036 USES_CONTROLS=1
0b78747f 39037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
39038fi
39039
39040if test "$wxUSE_LISTCTRL" = "yes"; then
39041 if test "$wxUSE_IMAGLIST" = "yes"; then
39042 cat >>confdefs.h <<\_ACEOF
39043#define wxUSE_LISTCTRL 1
39044_ACEOF
39045
39046 USES_CONTROLS=1
39047 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
39048 else
39049 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
39050echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
39051 fi
39052fi
39053
39054if test "$wxUSE_NOTEBOOK" = "yes"; then
39055 cat >>confdefs.h <<\_ACEOF
39056#define wxUSE_NOTEBOOK 1
39057_ACEOF
39058
39059 USES_CONTROLS=1
39060 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
39061fi
39062
39063
39064if test "$wxUSE_RADIOBOX" = "yes"; then
39065 cat >>confdefs.h <<\_ACEOF
39066#define wxUSE_RADIOBOX 1
39067_ACEOF
39068
39069 USES_CONTROLS=1
39070fi
39071
39072if test "$wxUSE_RADIOBTN" = "yes"; then
39073 cat >>confdefs.h <<\_ACEOF
39074#define wxUSE_RADIOBTN 1
39075_ACEOF
39076
39077 USES_CONTROLS=1
39078fi
39079
39080if test "$wxUSE_SASH" = "yes"; then
39081 cat >>confdefs.h <<\_ACEOF
39082#define wxUSE_SASH 1
39083_ACEOF
39084
39085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
39086fi
39087
39088if test "$wxUSE_SCROLLBAR" = "yes"; then
39089 cat >>confdefs.h <<\_ACEOF
39090#define wxUSE_SCROLLBAR 1
39091_ACEOF
39092
39093 USES_CONTROLS=1
39094 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
39095fi
39096
39097if test "$wxUSE_SLIDER" = "yes"; then
39098 cat >>confdefs.h <<\_ACEOF
39099#define wxUSE_SLIDER 1
39100_ACEOF
39101
39102 USES_CONTROLS=1
39103fi
39104
39105if test "$wxUSE_SPINBTN" = "yes"; then
39106 cat >>confdefs.h <<\_ACEOF
39107#define wxUSE_SPINBTN 1
39108_ACEOF
39109
39110 USES_CONTROLS=1
39111fi
39112
39113if test "$wxUSE_SPINCTRL" = "yes"; then
39114 cat >>confdefs.h <<\_ACEOF
39115#define wxUSE_SPINCTRL 1
39116_ACEOF
39117
39118 USES_CONTROLS=1
39119fi
39120
39121if test "$wxUSE_SPLITTER" = "yes"; then
39122 cat >>confdefs.h <<\_ACEOF
39123#define wxUSE_SPLITTER 1
39124_ACEOF
39125
39126 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
39127fi
39128
39129if test "$wxUSE_STATBMP" = "yes"; then
39130 cat >>confdefs.h <<\_ACEOF
39131#define wxUSE_STATBMP 1
39132_ACEOF
39133
39134 USES_CONTROLS=1
39135fi
39136
39137if test "$wxUSE_STATBOX" = "yes"; then
39138 cat >>confdefs.h <<\_ACEOF
39139#define wxUSE_STATBOX 1
39140_ACEOF
39141
39142 USES_CONTROLS=1
39143fi
39144
39145if test "$wxUSE_STATTEXT" = "yes"; then
39146 cat >>confdefs.h <<\_ACEOF
39147#define wxUSE_STATTEXT 1
39148_ACEOF
39149
39150 USES_CONTROLS=1
39151fi
39152
39153if test "$wxUSE_STATLINE" = "yes"; then
39154 cat >>confdefs.h <<\_ACEOF
39155#define wxUSE_STATLINE 1
39156_ACEOF
39157
39158 USES_CONTROLS=1
39159fi
39160
39161if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
39162 cat >>confdefs.h <<\_ACEOF
39163#define wxUSE_NATIVE_STATUSBAR 1
39164_ACEOF
39165
a848cd7e
SC
39166 cat >>confdefs.h <<\_ACEOF
39167#define wxUSE_STATUSBAR 1
39168_ACEOF
39169
39170 USES_CONTROLS=1
39171
39172 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
39173fi
39174
39175if test "$wxUSE_TABDIALOG" = "yes"; then
39176 cat >>confdefs.h <<\_ACEOF
39177#define wxUSE_TAB_DIALOG 1
39178_ACEOF
39179
a848cd7e
SC
39180fi
39181
39182if test "$wxUSE_TEXTCTRL" = "yes"; then
39183 cat >>confdefs.h <<\_ACEOF
39184#define wxUSE_TEXTCTRL 1
39185_ACEOF
39186
39187 USES_CONTROLS=1
39188 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
39189fi
39190
39191if test "$wxUSE_TOGGLEBTN" = "yes"; then
39192 if test "$wxUSE_COCOA" = 1 ; then
39193 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
39194echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
39195 wxUSE_TOGGLEBTN=no
39196 fi
39197 if test "$wxUSE_UNIVERSAL" = "yes"; then
39198 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
39199echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
39200 wxUSE_TOGGLEBTN=no
39201 fi
39202
39203 if test "$wxUSE_TOGGLEBTN" = "yes"; then
39204 cat >>confdefs.h <<\_ACEOF
39205#define wxUSE_TOGGLEBTN 1
39206_ACEOF
39207
39208 USES_CONTROLS=1
39209 fi
39210fi
39211
39212if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
39213 cat >>confdefs.h <<\_ACEOF
39214#define wxUSE_TOOLBAR_SIMPLE 1
39215_ACEOF
39216
39217 wxUSE_TOOLBAR="yes"
39218 USES_CONTROLS=1
39219fi
39220
39221if test "$wxUSE_TOOLBAR" = "yes"; then
39222 cat >>confdefs.h <<\_ACEOF
39223#define wxUSE_TOOLBAR 1
39224_ACEOF
39225
39226 USES_CONTROLS=1
39227
39228 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39229 wxUSE_TOOLBAR_NATIVE="yes"
39230 fi
39231
39232 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39233 cat >>confdefs.h <<\_ACEOF
39234#define wxUSE_TOOLBAR_NATIVE 1
39235_ACEOF
39236
39237 USES_CONTROLS=1
39238 fi
39239
39240 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39241fi
39242
39243if test "$wxUSE_TOOLTIPS" = "yes"; then
39244 if test "$wxUSE_MOTIF" = 1; then
39245 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39246echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39247 else
39248 if test "$wxUSE_UNIVERSAL" = "yes"; then
39249 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39250echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39251 else
39252 cat >>confdefs.h <<\_ACEOF
39253#define wxUSE_TOOLTIPS 1
39254_ACEOF
39255
39256 fi
39257 fi
39258fi
39259
39260if test "$wxUSE_TREECTRL" = "yes"; then
39261 if test "$wxUSE_IMAGLIST" = "yes"; then
39262 cat >>confdefs.h <<\_ACEOF
39263#define wxUSE_TREECTRL 1
39264_ACEOF
39265
39266 USES_CONTROLS=1
39267 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39268 else
39269 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39270echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39271 fi
39272fi
39273
39274if test "$wxUSE_POPUPWIN" = "yes"; then
39275 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39276 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39277echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39278 else
39279 if test "$wxUSE_PM" = 1; then
39280 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39281echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39282 else
39283 cat >>confdefs.h <<\_ACEOF
39284#define wxUSE_POPUPWIN 1
39285_ACEOF
39286
0b78747f 39287 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
39288
39289 USES_CONTROLS=1
39290 fi
39291 fi
39292fi
39293
0dcd06dd 39294if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
39295 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39296 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39297echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39298 else
39299 cat >>confdefs.h <<\_ACEOF
39300#define wxUSE_DIALUP_MANAGER 1
39301_ACEOF
39302
39303 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39304 fi
39305fi
39306
a848cd7e
SC
39307if test "$wxUSE_TIPWINDOW" = "yes"; then
39308 if test "$wxUSE_PM" = 1; then
39309 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39310echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39311 else
39312 cat >>confdefs.h <<\_ACEOF
39313#define wxUSE_TIPWINDOW 1
39314_ACEOF
39315
39316 fi
39317fi
39318
39319if test "$USES_CONTROLS" = 1; then
39320 cat >>confdefs.h <<\_ACEOF
39321#define wxUSE_CONTROLS 1
39322_ACEOF
39323
39324fi
39325
39326
39327if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39328 cat >>confdefs.h <<\_ACEOF
39329#define wxUSE_ACCESSIBILITY 1
39330_ACEOF
39331
39332 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39333fi
39334
39335if test "$wxUSE_DRAGIMAGE" = "yes"; then
39336 cat >>confdefs.h <<\_ACEOF
39337#define wxUSE_DRAGIMAGE 1
39338_ACEOF
39339
39340 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39341fi
39342
39343if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
39344 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39345 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39346echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39347 else
39348 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39349#define wxUSE_EXCEPTIONS 1
39350_ACEOF
39351
07bea8f0
VS
39352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39353 fi
a848cd7e
SC
39354fi
39355
39356USE_HTML=0
39357if test "$wxUSE_HTML" = "yes"; then
39358 cat >>confdefs.h <<\_ACEOF
39359#define wxUSE_HTML 1
39360_ACEOF
39361
39362 USE_HTML=1
39363 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
39364 if test "$wxUSE_MAC" = 1; then
39365 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
39366 fi
a848cd7e 39367fi
646b6ec1 39368if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 39369 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
39370 old_CPPFLAGS="$CPPFLAGS"
39371 CPPFLAGS="$CPPFLAGS -x objective-c++"
39372 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
39373echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
39374if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
39375 echo $ECHO_N "(cached) $ECHO_C" >&6
39376else
39377 cat >conftest.$ac_ext <<_ACEOF
39378/* confdefs.h. */
39379_ACEOF
39380cat confdefs.h >>conftest.$ac_ext
39381cat >>conftest.$ac_ext <<_ACEOF
39382/* end confdefs.h. */
39383#include <Carbon/Carbon.h>
39384
39385#include <WebKit/HIWebView.h>
39386_ACEOF
39387rm -f conftest.$ac_objext
39388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39389 (eval $ac_compile) 2>conftest.er1
39390 ac_status=$?
39391 grep -v '^ *+' conftest.er1 >conftest.err
39392 rm -f conftest.er1
39393 cat conftest.err >&5
39394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39395 (exit $ac_status); } &&
9dd0f6c2 39396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
39397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39398 (eval $ac_try) 2>&5
39399 ac_status=$?
39400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39401 (exit $ac_status); }; } &&
39402 { ac_try='test -s conftest.$ac_objext'
39403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39404 (eval $ac_try) 2>&5
39405 ac_status=$?
39406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39407 (exit $ac_status); }; }; then
39408 ac_cv_header_WebKit_HIWebView_h=yes
39409else
39410 echo "$as_me: failed program was:" >&5
39411sed 's/^/| /' conftest.$ac_ext >&5
39412
39413ac_cv_header_WebKit_HIWebView_h=no
39414fi
39415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39416fi
39417echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39418echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39419if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39420
39421 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
39422#define wxUSE_WEBKIT 1
39423_ACEOF
39424
07bea8f0
VS
39425 WEBKIT_LINK="-framework WebKit"
39426
39427else
39428
39429 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39430echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39431 wxUSE_WEBKIT=no
39432
646b6ec1
VS
39433fi
39434
07bea8f0
VS
39435
39436 CPPFLAGS="$old_CPPFLAGS"
39437 elif test "$wxUSE_COCOA" = 1; then
39438 cat >>confdefs.h <<\_ACEOF
39439#define wxUSE_WEBKIT 1
39440_ACEOF
39441
39442 else
39443 wxUSE_WEBKIT=no
39444 fi
39445fi
39446
9a8f0513
VS
39447USE_XRC=0
39448if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
39449 if test "$wxUSE_XML" != "yes"; then
39450 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39451echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39452 wxUSE_XRC=no
39453 else
39454 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
39455#define wxUSE_XRC 1
39456_ACEOF
39457
d2ebf0b7
VS
39458 USE_XRC=1
39459 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
39460 fi
9a8f0513 39461fi
07bea8f0 39462
a848cd7e
SC
39463if test "$wxUSE_MENUS" = "yes"; then
39464 cat >>confdefs.h <<\_ACEOF
39465#define wxUSE_MENUS 1
39466_ACEOF
39467
39468 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
39469fi
39470
39471if test "$wxUSE_METAFILE" = "yes"; then
39472 cat >>confdefs.h <<\_ACEOF
39473#define wxUSE_METAFILE 1
39474_ACEOF
39475
39476fi
39477
39478if test "$wxUSE_MIMETYPE" = "yes"; then
39479 cat >>confdefs.h <<\_ACEOF
39480#define wxUSE_MIMETYPE 1
39481_ACEOF
39482
39483fi
39484
39485if test "$wxUSE_MINIFRAME" = "yes"; then
39486 cat >>confdefs.h <<\_ACEOF
39487#define wxUSE_MINIFRAME 1
39488_ACEOF
39489
39490 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
39491fi
39492
39493if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
39494 cat >>confdefs.h <<\_ACEOF
39495#define wxUSE_SYSTEM_OPTIONS 1
39496_ACEOF
39497
39498 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 39499 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
39500 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
39501 fi
39502fi
39503
39504
39505if test "$wxUSE_VALIDATORS" = "yes"; then
39506 cat >>confdefs.h <<\_ACEOF
39507#define wxUSE_VALIDATORS 1
39508_ACEOF
39509
39510 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
39511fi
39512
39513if test "$wxUSE_PALETTE" = "yes" ; then
39514 cat >>confdefs.h <<\_ACEOF
39515#define wxUSE_PALETTE 1
39516_ACEOF
39517
39518fi
39519
39520if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
39521 LIBS=" -lunicows $LIBS"
39522fi
39523
39524
39525if test "$wxUSE_IMAGE" = "yes" ; then
39526 cat >>confdefs.h <<\_ACEOF
39527#define wxUSE_IMAGE 1
39528_ACEOF
39529
39530
39531 if test "$wxUSE_GIF" = "yes" ; then
39532 cat >>confdefs.h <<\_ACEOF
39533#define wxUSE_GIF 1
39534_ACEOF
39535
39536 fi
39537
39538 if test "$wxUSE_PCX" = "yes" ; then
39539 cat >>confdefs.h <<\_ACEOF
39540#define wxUSE_PCX 1
39541_ACEOF
39542
39543 fi
39544
39545 if test "$wxUSE_IFF" = "yes" ; then
39546 cat >>confdefs.h <<\_ACEOF
39547#define wxUSE_IFF 1
39548_ACEOF
39549
39550 fi
39551
39552 if test "$wxUSE_PNM" = "yes" ; then
39553 cat >>confdefs.h <<\_ACEOF
39554#define wxUSE_PNM 1
39555_ACEOF
39556
39557 fi
39558
39559 if test "$wxUSE_XPM" = "yes" ; then
39560 cat >>confdefs.h <<\_ACEOF
39561#define wxUSE_XPM 1
39562_ACEOF
39563
39564 fi
39565
39566 if test "$wxUSE_ICO_CUR" = "yes" ; then
39567 cat >>confdefs.h <<\_ACEOF
39568#define wxUSE_ICO_CUR 1
39569_ACEOF
39570
39571 fi
39572fi
39573
39574
39575if test "$wxUSE_CHOICEDLG" = "yes"; then
39576 cat >>confdefs.h <<\_ACEOF
39577#define wxUSE_CHOICEDLG 1
39578_ACEOF
39579
39580fi
39581
39582if test "$wxUSE_COLOURDLG" = "yes"; then
39583 cat >>confdefs.h <<\_ACEOF
39584#define wxUSE_COLOURDLG 1
39585_ACEOF
39586
39587fi
39588
39589if test "$wxUSE_FILEDLG" = "yes"; then
39590 cat >>confdefs.h <<\_ACEOF
39591#define wxUSE_FILEDLG 1
39592_ACEOF
39593
39594fi
39595
39596if test "$wxUSE_FINDREPLDLG" = "yes"; then
39597 cat >>confdefs.h <<\_ACEOF
39598#define wxUSE_FINDREPLDLG 1
39599_ACEOF
39600
39601fi
39602
39603if test "$wxUSE_FONTDLG" = "yes"; then
39604 cat >>confdefs.h <<\_ACEOF
39605#define wxUSE_FONTDLG 1
39606_ACEOF
39607
39608fi
39609
39610if test "$wxUSE_DIRDLG" = "yes"; then
39611 if test "$wxUSE_TREECTRL" != "yes"; then
39612 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
39613echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
39614 else
39615 cat >>confdefs.h <<\_ACEOF
39616#define wxUSE_DIRDLG 1
39617_ACEOF
39618
39619 fi
39620fi
39621
39622if test "$wxUSE_MSGDLG" = "yes"; then
39623 cat >>confdefs.h <<\_ACEOF
39624#define wxUSE_MSGDLG 1
39625_ACEOF
39626
39627fi
39628
39629if test "$wxUSE_NUMBERDLG" = "yes"; then
39630 cat >>confdefs.h <<\_ACEOF
39631#define wxUSE_NUMBERDLG 1
39632_ACEOF
39633
39634fi
39635
39636if test "$wxUSE_PROGRESSDLG" = "yes"; then
39637 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39638 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
39639echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
39640 else
39641 cat >>confdefs.h <<\_ACEOF
39642#define wxUSE_PROGRESSDLG 1
39643_ACEOF
39644
39645 fi
39646fi
39647
39648if test "$wxUSE_SPLASH" = "yes"; then
39649 cat >>confdefs.h <<\_ACEOF
39650#define wxUSE_SPLASH 1
39651_ACEOF
39652
2057db16 39653 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
39654fi
39655
39656if test "$wxUSE_STARTUP_TIPS" = "yes"; then
39657 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39658 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
39659echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
39660 else
39661 cat >>confdefs.h <<\_ACEOF
39662#define wxUSE_STARTUP_TIPS 1
39663_ACEOF
39664
39665 fi
39666fi
39667
39668if test "$wxUSE_TEXTDLG" = "yes"; then
39669 cat >>confdefs.h <<\_ACEOF
39670#define wxUSE_TEXTDLG 1
39671_ACEOF
39672
39673fi
39674
39675if test "$wxUSE_WIZARDDLG" = "yes"; then
39676 cat >>confdefs.h <<\_ACEOF
39677#define wxUSE_WIZARDDLG 1
39678_ACEOF
39679
39680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
39681fi
39682
39683
ce756cb0
RN
39684if test "$wxUSE_MEDIACTRL" = "yes"; then
39685 if test "$wxUSE_MSW" = 1; then
39686 wxUSE_DIRECTSHOW="yes"
39687
39688for ac_header in dshow.h
39689do
39690as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39691echo "$as_me:$LINENO: checking for $ac_header" >&5
39692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39693if eval "test \"\${$as_ac_Header+set}\" = set"; then
39694 echo $ECHO_N "(cached) $ECHO_C" >&6
39695else
39696 cat >conftest.$ac_ext <<_ACEOF
39697/* confdefs.h. */
39698_ACEOF
39699cat confdefs.h >>conftest.$ac_ext
39700cat >>conftest.$ac_ext <<_ACEOF
39701/* end confdefs.h. */
39702#include <windows.h>
39703
39704#include <$ac_header>
39705_ACEOF
39706rm -f conftest.$ac_objext
39707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39708 (eval $ac_compile) 2>conftest.er1
39709 ac_status=$?
39710 grep -v '^ *+' conftest.er1 >conftest.err
39711 rm -f conftest.er1
39712 cat conftest.err >&5
39713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39714 (exit $ac_status); } &&
9dd0f6c2 39715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39717 (eval $ac_try) 2>&5
39718 ac_status=$?
39719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39720 (exit $ac_status); }; } &&
39721 { ac_try='test -s conftest.$ac_objext'
39722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39723 (eval $ac_try) 2>&5
39724 ac_status=$?
39725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39726 (exit $ac_status); }; }; then
39727 eval "$as_ac_Header=yes"
39728else
39729 echo "$as_me: failed program was:" >&5
39730sed 's/^/| /' conftest.$ac_ext >&5
39731
39732eval "$as_ac_Header=no"
39733fi
39734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39735fi
39736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39737echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39738if test `eval echo '${'$as_ac_Header'}'` = yes; then
39739 cat >>confdefs.h <<_ACEOF
39740#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39741_ACEOF
39742
39743else
39744
39745 wxUSE_DIRECTSHOW="no"
39746 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
39747echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
39748
39749fi
39750
39751done
39752
39753
39754 if test "$wxUSE_DIRECTSHOW" = "yes"; then
39755 cat >>confdefs.h <<\_ACEOF
39756#define wxUSE_DIRECTSHOW 1
39757_ACEOF
39758
39759 LIBS="$LIBS -lstrmiids"
39760 fi
39761 fi
39762
39763 if test "$wxUSE_GTK" = 1; then
39764 wxUSE_GSTREAMER="yes"
39765
ce756cb0 39766
dae87f93 39767 succeeded=no
ce756cb0 39768
dae87f93
RN
39769 if test -z "$PKG_CONFIG"; then
39770 # Extract the first word of "pkg-config", so it can be a program name with args.
39771set dummy pkg-config; ac_word=$2
39772echo "$as_me:$LINENO: checking for $ac_word" >&5
39773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39774if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39775 echo $ECHO_N "(cached) $ECHO_C" >&6
39776else
39777 case $PKG_CONFIG in
39778 [\\/]* | ?:[\\/]*)
39779 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39780 ;;
39781 *)
39782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39783for as_dir in $PATH
39784do
39785 IFS=$as_save_IFS
39786 test -z "$as_dir" && as_dir=.
39787 for ac_exec_ext in '' $ac_executable_extensions; do
39788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39789 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39791 break 2
39792 fi
39793done
39794done
39795
39796 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39797 ;;
39798esac
39799fi
39800PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39801
39802if test -n "$PKG_CONFIG"; then
39803 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39804echo "${ECHO_T}$PKG_CONFIG" >&6
39805else
39806 echo "$as_me:$LINENO: result: no" >&5
39807echo "${ECHO_T}no" >&6
39808fi
39809
39810 fi
39811
39812 if test "$PKG_CONFIG" = "no" ; then
39813 echo "*** The pkg-config script could not be found. Make sure it is"
39814 echo "*** in your path, or set the PKG_CONFIG environment variable"
39815 echo "*** to the full path to pkg-config."
39816 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39817 else
39818 PKG_CONFIG_MIN_VERSION=0.9.0
39819 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39820 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
39821echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
39822
39823 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
39824 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39825echo "${ECHO_T}yes" >&6
dae87f93 39826 succeeded=yes
ce756cb0 39827
dae87f93
RN
39828 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
39829echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
39830 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
39831 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
39832echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
39833
39834 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
39835echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
39836 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
39837 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
39838echo "${ECHO_T}$GSTREAMER_LIBS" >&6
39839 else
39840 GSTREAMER_CFLAGS=""
39841 GSTREAMER_LIBS=""
39842 ## If we have a custom action on failure, don't print errors, but
39843 ## do set a variable so people can do so.
39844 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 39845
dae87f93
RN
39846 fi
39847
39848
39849
39850 else
39851 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39852 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39853 fi
39854 fi
39855
39856 if test $succeeded = yes; then
39857
39858 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
39859 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 39860
ce756cb0 39861 else
dae87f93
RN
39862
39863 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
39864echo "$as_me: WARNING: GStreamer installation not found" >&2;}
39865 wxUSE_GSTREAMER="no"
39866
39867 fi
39868
39869
39870
39871
39872
39873 if test "x$GST_INSPECT" == "x"; then
39874 # Extract the first word of "gst-inspect", so it can be a program name with args.
39875set dummy gst-inspect; ac_word=$2
39876echo "$as_me:$LINENO: checking for $ac_word" >&5
39877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39878if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
39879 echo $ECHO_N "(cached) $ECHO_C" >&6
39880else
39881 if test -n "$GST_INSPECT"; then
39882 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
39883else
39884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39885for as_dir in $PATH
39886do
39887 IFS=$as_save_IFS
39888 test -z "$as_dir" && as_dir=.
39889 for ac_exec_ext in '' $ac_executable_extensions; do
39890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39891 ac_cv_prog_GST_INSPECT="gst-inspect"
39892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39893 break 2
ce756cb0 39894 fi
dae87f93
RN
39895done
39896done
39897
39898fi
39899fi
39900GST_INSPECT=$ac_cv_prog_GST_INSPECT
39901if test -n "$GST_INSPECT"; then
39902 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
39903echo "${ECHO_T}$GST_INSPECT" >&6
39904else
39905 echo "$as_me:$LINENO: result: no" >&5
39906echo "${ECHO_T}no" >&6
39907fi
39908
39909 fi
39910
39911 if test "x$GST_INSPECT" != "x"; then
39912 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
39913echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
39914 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
39915 echo "$as_me:$LINENO: result: found." >&5
39916echo "${ECHO_T}found." >&6
ce756cb0 39917
ce756cb0 39918 else
dae87f93
RN
39919 echo "$as_me:$LINENO: result: not found." >&5
39920echo "${ECHO_T}not found." >&6
39921
39922 wxUSE_GSTREAMER="no"
39923 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
39924echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
39925
39926 fi
39927 fi
39928
39929
39930 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
39931echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
39932if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
39933 echo $ECHO_N "(cached) $ECHO_C" >&6
39934else
39935 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
39936/* confdefs.h. */
39937_ACEOF
39938cat confdefs.h >>conftest.$ac_ext
39939cat >>conftest.$ac_ext <<_ACEOF
39940/* end confdefs.h. */
dae87f93 39941#include <gst/gst.h>
ce756cb0 39942
dae87f93 39943#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
39944_ACEOF
39945rm -f conftest.$ac_objext
39946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39947 (eval $ac_compile) 2>conftest.er1
39948 ac_status=$?
39949 grep -v '^ *+' conftest.er1 >conftest.err
39950 rm -f conftest.er1
39951 cat conftest.err >&5
39952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39953 (exit $ac_status); } &&
9dd0f6c2 39954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39956 (eval $ac_try) 2>&5
39957 ac_status=$?
39958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39959 (exit $ac_status); }; } &&
39960 { ac_try='test -s conftest.$ac_objext'
39961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39962 (eval $ac_try) 2>&5
39963 ac_status=$?
39964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39965 (exit $ac_status); }; }; then
dae87f93 39966 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
39967else
39968 echo "$as_me: failed program was:" >&5
39969sed 's/^/| /' conftest.$ac_ext >&5
39970
dae87f93 39971ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
39972fi
39973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
39974fi
39975echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
39976echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
39977if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
39978 :
39979else
ce756cb0 39980
dae87f93
RN
39981 wxUSE_GSTREAMER="no"
39982 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
39983echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 39984
dae87f93 39985fi
ce756cb0 39986
dae87f93
RN
39987
39988
39989 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
39990echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
39991
39992ac_find_libraries=
39993for ac_dir in $SEARCH_LIB /usr/lib;
39994 do
39995 for ac_extension in a so sl dylib; do
39996 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
39997 ac_find_libraries=$ac_dir
39998 break 2
39999 fi
40000 done
40001 done
40002
ce756cb0 40003
dae87f93
RN
40004 if test "$ac_find_libraries" = "" ; then
40005 echo "$as_me:$LINENO: result: no" >&5
40006echo "${ECHO_T}no" >&6
40007 wxUSE_GSTREAMER="no"
40008 else
40009 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40010echo "${ECHO_T}yes" >&6
dae87f93 40011 fi
ce756cb0 40012
dae87f93
RN
40013 if test "$wxUSE_GSTREAMER" = "yes"; then
40014 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
40015#define wxUSE_GSTREAMER 1
40016_ACEOF
40017
dae87f93
RN
40018 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
40019echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
40020 fi
40021 fi
40022 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
40023 cat >>confdefs.h <<\_ACEOF
40024#define wxUSE_MEDIACTRL 1
40025_ACEOF
40026
40027fi
40028
40029
a848cd7e
SC
40030if test "$cross_compiling" = "yes"; then
40031 OSINFO="\"$host\""
40032else
40033 OSINFO=`uname -s -r -m`
40034 OSINFO="\"$OSINFO\""
40035fi
40036
40037cat >>confdefs.h <<_ACEOF
40038#define WXWIN_OS_DESCRIPTION $OSINFO
40039_ACEOF
40040
40041
40042
40043if test "x$prefix" != "xNONE"; then
40044 wxPREFIX=$prefix
40045else
40046 wxPREFIX=$ac_default_prefix
40047fi
40048
40049cat >>confdefs.h <<_ACEOF
40050#define wxINSTALL_PREFIX "$wxPREFIX"
40051_ACEOF
40052
40053
a848cd7e
SC
40054
40055
40056CORE_BASE_LIBS="net base"
40057CORE_GUI_LIBS="adv core"
40058
40059if test "$wxUSE_XML" = "yes" ; then
40060 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
40061fi
40062if test "$wxUSE_ODBC" != "no" ; then
40063 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
40064 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
40065fi
40066if test "$wxUSE_HTML" = "yes" ; then
40067 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
40068fi
61639efb
VZ
40069if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40070 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
40071fi
9a8f0513
VS
40072if test "$wxUSE_XRC" = "yes" ; then
40073 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
40074fi
a848cd7e
SC
40075
40076if test "$wxUSE_GUI" != "yes"; then
40077 CORE_GUI_LIBS=""
40078fi
40079
40080
40081
40082
40083
40084
40085
40086
40087if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 40088 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
40089 if test "$USE_DARWIN" = 1; then
40090 LDFLAGS="$LDFLAGS -framework QuickTime"
40091 else
40092 LDFLAGS="$LDFLAGS -lQuickTimeLib"
40093 fi
07bea8f0 40094 fi
5dcf30a0 40095 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
40096 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
40097 else
40098 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 40099 fi
59746b65
MW
40100elif test "$USE_DARWIN" = 1; then
40101 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System"
a848cd7e
SC
40102fi
40103if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 40104 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
40105 if test "$wxUSE_MEDIACTRL" = "yes"; then
40106 LDFLAGS="$LDFLAGS -framework QuickTime"
40107 fi
a848cd7e
SC
40108fi
40109
40110
40111LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
40112
40113have_cos=0
40114have_floor=0
40115
40116for ac_func in cos
40117do
40118as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40119echo "$as_me:$LINENO: checking for $ac_func" >&5
40120echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40121if eval "test \"\${$as_ac_var+set}\" = set"; then
40122 echo $ECHO_N "(cached) $ECHO_C" >&6
40123else
40124 cat >conftest.$ac_ext <<_ACEOF
40125/* confdefs.h. */
40126_ACEOF
40127cat confdefs.h >>conftest.$ac_ext
40128cat >>conftest.$ac_ext <<_ACEOF
40129/* end confdefs.h. */
ac1cb8d3
VS
40130/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40132#define $ac_func innocuous_$ac_func
40133
a848cd7e
SC
40134/* System header to define __stub macros and hopefully few prototypes,
40135 which can conflict with char $ac_func (); below.
40136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40137 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40138
a848cd7e
SC
40139#ifdef __STDC__
40140# include <limits.h>
40141#else
40142# include <assert.h>
40143#endif
ac1cb8d3
VS
40144
40145#undef $ac_func
40146
a848cd7e
SC
40147/* Override any gcc2 internal prototype to avoid an error. */
40148#ifdef __cplusplus
40149extern "C"
40150{
40151#endif
40152/* We use char because int might match the return type of a gcc2
40153 builtin and then its argument prototype would still apply. */
40154char $ac_func ();
40155/* The GNU C library defines this for functions which it implements
40156 to always fail with ENOSYS. Some functions are actually named
40157 something starting with __ and the normal name is an alias. */
40158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40159choke me
40160#else
40161char (*f) () = $ac_func;
40162#endif
40163#ifdef __cplusplus
40164}
40165#endif
40166
40167int
40168main ()
40169{
40170return f != $ac_func;
40171 ;
40172 return 0;
40173}
40174_ACEOF
40175rm -f conftest.$ac_objext conftest$ac_exeext
40176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40177 (eval $ac_link) 2>conftest.er1
a848cd7e 40178 ac_status=$?
ac1cb8d3
VS
40179 grep -v '^ *+' conftest.er1 >conftest.err
40180 rm -f conftest.er1
40181 cat conftest.err >&5
a848cd7e
SC
40182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40183 (exit $ac_status); } &&
9dd0f6c2 40184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40186 (eval $ac_try) 2>&5
40187 ac_status=$?
40188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40189 (exit $ac_status); }; } &&
40190 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40192 (eval $ac_try) 2>&5
40193 ac_status=$?
40194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40195 (exit $ac_status); }; }; then
40196 eval "$as_ac_var=yes"
40197else
40198 echo "$as_me: failed program was:" >&5
40199sed 's/^/| /' conftest.$ac_ext >&5
40200
40201eval "$as_ac_var=no"
40202fi
ac1cb8d3
VS
40203rm -f conftest.err conftest.$ac_objext \
40204 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40205fi
40206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40207echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40208if test `eval echo '${'$as_ac_var'}'` = yes; then
40209 cat >>confdefs.h <<_ACEOF
40210#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40211_ACEOF
40212 have_cos=1
40213fi
40214done
40215
40216
40217for ac_func in floor
40218do
40219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40220echo "$as_me:$LINENO: checking for $ac_func" >&5
40221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40222if eval "test \"\${$as_ac_var+set}\" = set"; then
40223 echo $ECHO_N "(cached) $ECHO_C" >&6
40224else
40225 cat >conftest.$ac_ext <<_ACEOF
40226/* confdefs.h. */
40227_ACEOF
40228cat confdefs.h >>conftest.$ac_ext
40229cat >>conftest.$ac_ext <<_ACEOF
40230/* end confdefs.h. */
ac1cb8d3
VS
40231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40233#define $ac_func innocuous_$ac_func
40234
a848cd7e
SC
40235/* System header to define __stub macros and hopefully few prototypes,
40236 which can conflict with char $ac_func (); below.
40237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40238 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40239
a848cd7e
SC
40240#ifdef __STDC__
40241# include <limits.h>
40242#else
40243# include <assert.h>
40244#endif
ac1cb8d3
VS
40245
40246#undef $ac_func
40247
a848cd7e
SC
40248/* Override any gcc2 internal prototype to avoid an error. */
40249#ifdef __cplusplus
40250extern "C"
40251{
40252#endif
40253/* We use char because int might match the return type of a gcc2
40254 builtin and then its argument prototype would still apply. */
40255char $ac_func ();
40256/* The GNU C library defines this for functions which it implements
40257 to always fail with ENOSYS. Some functions are actually named
40258 something starting with __ and the normal name is an alias. */
40259#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40260choke me
40261#else
40262char (*f) () = $ac_func;
40263#endif
40264#ifdef __cplusplus
40265}
40266#endif
40267
40268int
40269main ()
40270{
40271return f != $ac_func;
40272 ;
40273 return 0;
40274}
40275_ACEOF
40276rm -f conftest.$ac_objext conftest$ac_exeext
40277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40278 (eval $ac_link) 2>conftest.er1
a848cd7e 40279 ac_status=$?
ac1cb8d3
VS
40280 grep -v '^ *+' conftest.er1 >conftest.err
40281 rm -f conftest.er1
40282 cat conftest.err >&5
a848cd7e
SC
40283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40284 (exit $ac_status); } &&
9dd0f6c2 40285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40287 (eval $ac_try) 2>&5
40288 ac_status=$?
40289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40290 (exit $ac_status); }; } &&
40291 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40293 (eval $ac_try) 2>&5
40294 ac_status=$?
40295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40296 (exit $ac_status); }; }; then
40297 eval "$as_ac_var=yes"
40298else
40299 echo "$as_me: failed program was:" >&5
40300sed 's/^/| /' conftest.$ac_ext >&5
40301
40302eval "$as_ac_var=no"
40303fi
ac1cb8d3
VS
40304rm -f conftest.err conftest.$ac_objext \
40305 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40306fi
40307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40308echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40309if test `eval echo '${'$as_ac_var'}'` = yes; then
40310 cat >>confdefs.h <<_ACEOF
40311#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40312_ACEOF
40313 have_floor=1
40314fi
40315done
40316
40317echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40318echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40319if test "$have_cos" = 1 -a "$have_floor" = 1; then
40320 echo "$as_me:$LINENO: result: yes" >&5
40321echo "${ECHO_T}yes" >&6
40322else
40323 echo "$as_me:$LINENO: result: no" >&5
40324echo "${ECHO_T}no" >&6
40325 LIBS="$LIBS -lm"
40326 # use different functions to avoid configure caching
40327 have_sin=0
40328 have_ceil=0
40329
40330for ac_func in sin
40331do
40332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40333echo "$as_me:$LINENO: checking for $ac_func" >&5
40334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40335if eval "test \"\${$as_ac_var+set}\" = set"; then
40336 echo $ECHO_N "(cached) $ECHO_C" >&6
40337else
40338 cat >conftest.$ac_ext <<_ACEOF
40339/* confdefs.h. */
40340_ACEOF
40341cat confdefs.h >>conftest.$ac_ext
40342cat >>conftest.$ac_ext <<_ACEOF
40343/* end confdefs.h. */
ac1cb8d3
VS
40344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40346#define $ac_func innocuous_$ac_func
40347
a848cd7e
SC
40348/* System header to define __stub macros and hopefully few prototypes,
40349 which can conflict with char $ac_func (); below.
40350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40351 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40352
a848cd7e
SC
40353#ifdef __STDC__
40354# include <limits.h>
40355#else
40356# include <assert.h>
40357#endif
ac1cb8d3
VS
40358
40359#undef $ac_func
40360
a848cd7e
SC
40361/* Override any gcc2 internal prototype to avoid an error. */
40362#ifdef __cplusplus
40363extern "C"
40364{
40365#endif
40366/* We use char because int might match the return type of a gcc2
40367 builtin and then its argument prototype would still apply. */
40368char $ac_func ();
40369/* The GNU C library defines this for functions which it implements
40370 to always fail with ENOSYS. Some functions are actually named
40371 something starting with __ and the normal name is an alias. */
40372#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40373choke me
40374#else
40375char (*f) () = $ac_func;
40376#endif
40377#ifdef __cplusplus
40378}
40379#endif
40380
40381int
40382main ()
40383{
40384return f != $ac_func;
40385 ;
40386 return 0;
40387}
40388_ACEOF
40389rm -f conftest.$ac_objext conftest$ac_exeext
40390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40391 (eval $ac_link) 2>conftest.er1
a848cd7e 40392 ac_status=$?
ac1cb8d3
VS
40393 grep -v '^ *+' conftest.er1 >conftest.err
40394 rm -f conftest.er1
40395 cat conftest.err >&5
a848cd7e
SC
40396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40397 (exit $ac_status); } &&
9dd0f6c2 40398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40400 (eval $ac_try) 2>&5
40401 ac_status=$?
40402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40403 (exit $ac_status); }; } &&
40404 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40406 (eval $ac_try) 2>&5
40407 ac_status=$?
40408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40409 (exit $ac_status); }; }; then
40410 eval "$as_ac_var=yes"
40411else
40412 echo "$as_me: failed program was:" >&5
40413sed 's/^/| /' conftest.$ac_ext >&5
40414
40415eval "$as_ac_var=no"
40416fi
ac1cb8d3
VS
40417rm -f conftest.err conftest.$ac_objext \
40418 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40419fi
40420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40421echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40422if test `eval echo '${'$as_ac_var'}'` = yes; then
40423 cat >>confdefs.h <<_ACEOF
40424#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40425_ACEOF
40426 have_sin=1
40427fi
40428done
40429
40430
40431for ac_func in ceil
40432do
40433as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40434echo "$as_me:$LINENO: checking for $ac_func" >&5
40435echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40436if eval "test \"\${$as_ac_var+set}\" = set"; then
40437 echo $ECHO_N "(cached) $ECHO_C" >&6
40438else
40439 cat >conftest.$ac_ext <<_ACEOF
40440/* confdefs.h. */
40441_ACEOF
40442cat confdefs.h >>conftest.$ac_ext
40443cat >>conftest.$ac_ext <<_ACEOF
40444/* end confdefs.h. */
ac1cb8d3
VS
40445/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40447#define $ac_func innocuous_$ac_func
40448
a848cd7e
SC
40449/* System header to define __stub macros and hopefully few prototypes,
40450 which can conflict with char $ac_func (); below.
40451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40452 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40453
a848cd7e
SC
40454#ifdef __STDC__
40455# include <limits.h>
40456#else
40457# include <assert.h>
40458#endif
ac1cb8d3
VS
40459
40460#undef $ac_func
40461
a848cd7e
SC
40462/* Override any gcc2 internal prototype to avoid an error. */
40463#ifdef __cplusplus
40464extern "C"
40465{
40466#endif
40467/* We use char because int might match the return type of a gcc2
40468 builtin and then its argument prototype would still apply. */
40469char $ac_func ();
40470/* The GNU C library defines this for functions which it implements
40471 to always fail with ENOSYS. Some functions are actually named
40472 something starting with __ and the normal name is an alias. */
40473#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40474choke me
40475#else
40476char (*f) () = $ac_func;
40477#endif
40478#ifdef __cplusplus
40479}
40480#endif
40481
40482int
40483main ()
40484{
40485return f != $ac_func;
40486 ;
40487 return 0;
40488}
40489_ACEOF
40490rm -f conftest.$ac_objext conftest$ac_exeext
40491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40492 (eval $ac_link) 2>conftest.er1
a848cd7e 40493 ac_status=$?
ac1cb8d3
VS
40494 grep -v '^ *+' conftest.er1 >conftest.err
40495 rm -f conftest.er1
40496 cat conftest.err >&5
a848cd7e
SC
40497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40498 (exit $ac_status); } &&
9dd0f6c2 40499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40501 (eval $ac_try) 2>&5
40502 ac_status=$?
40503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40504 (exit $ac_status); }; } &&
40505 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40507 (eval $ac_try) 2>&5
40508 ac_status=$?
40509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40510 (exit $ac_status); }; }; then
40511 eval "$as_ac_var=yes"
40512else
40513 echo "$as_me: failed program was:" >&5
40514sed 's/^/| /' conftest.$ac_ext >&5
40515
40516eval "$as_ac_var=no"
40517fi
ac1cb8d3
VS
40518rm -f conftest.err conftest.$ac_objext \
40519 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40520fi
40521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40522echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40523if test `eval echo '${'$as_ac_var'}'` = yes; then
40524 cat >>confdefs.h <<_ACEOF
40525#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40526_ACEOF
40527 have_ceil=1
40528fi
40529done
40530
40531 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
40532echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
40533 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
40534 echo "$as_me:$LINENO: result: yes" >&5
40535echo "${ECHO_T}yes" >&6
40536 else
40537 echo "$as_me:$LINENO: result: no" >&5
40538echo "${ECHO_T}no" >&6
40539 # not sure we should warn the user, crash, etc.
40540 fi
40541fi
40542
40543if test "$wxUSE_GUI" = "yes"; then
40544
40545
8bce5cda
MW
40546 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
40547 dynamic erase event exec font image minimal mobile \
40548 mobile/wxedit mobile/styles propsize render \
40549 richedit rotate shaped vscroll widgets"
a848cd7e
SC
40550
40551 if test "$wxUSE_MONOLITHIC" != "yes"; then
40552 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
40553 fi
0b78747f 40554 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
40555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
40556 if test "$wxUSE_UNIVERSAL" != "yes"; then
40557 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
40558 fi
40559 fi
40560 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
40561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 40562 fi
a848cd7e
SC
40563else
40564 SAMPLES_SUBDIRS="console"
40565fi
40566
40567
ceec2216 40568INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
40569-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
40570
40571if test "$GXX" = yes ; then
5294a27e
VZ
40572 CWARNINGS="-Wall"
40573 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
40574 fi
40575
40576EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
40577
0c3c69fc 40578CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 40579CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 40580CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 40581
95986553
DE
40582if test "x$MWCC" = "xyes"; then
40583
40584 CC="$CC -cwd source -I-"
40585 CXX="$CXX -cwd source -I-"
40586fi
40587
a848cd7e 40588
0c3c69fc 40589LIBS=`echo $LIBS`
a848cd7e
SC
40590EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
40591EXTRALIBS_XML="$EXPAT_LINK"
40592EXTRALIBS_HTML="$MSPACK_LINK"
40593EXTRALIBS_ODBC="$ODBC_LINK"
40594if test "$wxUSE_GUI" = "yes"; then
2e350179 40595 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
40596fi
40597if test "$wxUSE_OPENGL" = "yes"; then
40598 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
40599fi
40600
40601LDFLAGS="$LDFLAGS $PROFILE"
40602
40603if test "$wxUSE_GTK" = 1; then
40604 WXCONFIG_INCLUDE=
40605else
40606 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
40607fi
40608
40609WXCONFIG_EXTRALIBS="$LIBS"
40610
40611if test "$wxUSE_REGEX" = "builtin" ; then
74802184 40612 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
40613fi
40614if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 40615 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
40616fi
40617if test "$wxUSE_ODBC" = "builtin" ; then
74802184 40618 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
40619fi
40620if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 40621 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
40622fi
40623if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 40624 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
40625fi
40626if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 40627 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
40628fi
40629if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 40630 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
40631fi
40632
40633for i in $wxconfig_3rdparty ; do
74802184 40634 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
40635done
40636
40637
40638if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
40639 WXUNIV=1
40640else
40641 WXUNIV=0
40642fi
40643
40644
40645
40646
40647
40648
40649
40650
40651
40652if test $wxUSE_MONOLITHIC = "yes" ; then
40653 MONOLITHIC=1
40654else
40655 MONOLITHIC=0
40656fi
40657
40658if test $wxUSE_PLUGINS = "yes" ; then
40659 USE_PLUGINS=1
40660else
40661 USE_PLUGINS=0
40662fi
40663
40664if test $wxUSE_ODBC != "no" ; then
40665 USE_ODBC=1
40666else
40667 USE_ODBC=0
40668fi
40669
16358932
VZ
40670if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40671 USE_QA=1
40672else
40673 USE_QA=0
40674fi
40675
a848cd7e
SC
40676if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
40677 OFFICIAL_BUILD=1
40678else
40679 OFFICIAL_BUILD=0
40680fi
40681
40682
40683
40684
40685
40686
40687
40688
40689
40690
40691
40692
40693
40694
40695
40696
40697
40698
40699
ceec2216 40700
d1c38808 40701
a848cd7e
SC
40702
40703
40704TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
40705
40706
40707
40708
40709
40710
40711
40712
4d4ff94c
VZ
40713case "$TOOLKIT" in
40714 GTK)
40715 TOOLKIT_USER="GTK+"
40716 if test "$WXGTK20" = 1; then
40717 TOOLKIT_USER="$TOOLKIT_USER 2"
40718 fi
9a8f0513 40719 ;;
4d4ff94c
VZ
40720
40721 *)
40722 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 40723 ;;
4d4ff94c 40724esac
a848cd7e 40725
9a8f0513 40726
1e9e8aba
DE
40727
40728
a848cd7e
SC
40729 if test "x$BAKEFILE_HOST" = "x"; then
40730 BAKEFILE_HOST="${host}"
40731 fi
40732
40733 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
40734
40735 if test -n "$ac_tool_prefix"; then
40736 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
40737set dummy ${ac_tool_prefix}ranlib; ac_word=$2
40738echo "$as_me:$LINENO: checking for $ac_word" >&5
40739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40740if test "${ac_cv_prog_RANLIB+set}" = set; then
40741 echo $ECHO_N "(cached) $ECHO_C" >&6
40742else
40743 if test -n "$RANLIB"; then
40744 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
40745else
40746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40747for as_dir in $PATH
40748do
40749 IFS=$as_save_IFS
40750 test -z "$as_dir" && as_dir=.
40751 for ac_exec_ext in '' $ac_executable_extensions; do
40752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40753 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
40754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40755 break 2
40756 fi
40757done
40758done
40759
40760fi
40761fi
40762RANLIB=$ac_cv_prog_RANLIB
40763if test -n "$RANLIB"; then
40764 echo "$as_me:$LINENO: result: $RANLIB" >&5
40765echo "${ECHO_T}$RANLIB" >&6
40766else
40767 echo "$as_me:$LINENO: result: no" >&5
40768echo "${ECHO_T}no" >&6
40769fi
40770
40771fi
40772if test -z "$ac_cv_prog_RANLIB"; then
40773 ac_ct_RANLIB=$RANLIB
40774 # Extract the first word of "ranlib", so it can be a program name with args.
40775set dummy ranlib; ac_word=$2
40776echo "$as_me:$LINENO: checking for $ac_word" >&5
40777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40778if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
40779 echo $ECHO_N "(cached) $ECHO_C" >&6
40780else
40781 if test -n "$ac_ct_RANLIB"; then
40782 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
40783else
40784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40785for as_dir in $PATH
40786do
40787 IFS=$as_save_IFS
40788 test -z "$as_dir" && as_dir=.
40789 for ac_exec_ext in '' $ac_executable_extensions; do
40790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40791 ac_cv_prog_ac_ct_RANLIB="ranlib"
40792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40793 break 2
40794 fi
40795done
40796done
40797
40798 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
40799fi
40800fi
40801ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
40802if test -n "$ac_ct_RANLIB"; then
40803 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
40804echo "${ECHO_T}$ac_ct_RANLIB" >&6
40805else
40806 echo "$as_me:$LINENO: result: no" >&5
40807echo "${ECHO_T}no" >&6
40808fi
40809
40810 RANLIB=$ac_ct_RANLIB
40811else
40812 RANLIB="$ac_cv_prog_RANLIB"
40813fi
40814
40815 # Find a good install program. We prefer a C program (faster),
40816# so one script is as good as another. But avoid the broken or
40817# incompatible versions:
40818# SysV /etc/install, /usr/sbin/install
40819# SunOS /usr/etc/install
40820# IRIX /sbin/install
40821# AIX /bin/install
40822# AmigaOS /C/install, which installs bootblocks on floppy discs
40823# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
40824# AFS /usr/afsws/bin/install, which mishandles nonexistent args
40825# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 40826# OS/2's system install, which has a completely different semantic
a848cd7e
SC
40827# ./install, which can be erroneously created by make from ./install.sh.
40828echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
40829echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
40830if test -z "$INSTALL"; then
40831if test "${ac_cv_path_install+set}" = set; then
40832 echo $ECHO_N "(cached) $ECHO_C" >&6
40833else
40834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40835for as_dir in $PATH
40836do
40837 IFS=$as_save_IFS
40838 test -z "$as_dir" && as_dir=.
40839 # Account for people who put trailing slashes in PATH elements.
40840case $as_dir/ in
40841 ./ | .// | /cC/* | \
40842 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 40843 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
40844 /usr/ucb/* ) ;;
40845 *)
40846 # OSF1 and SCO ODT 3.0 have their own names for install.
40847 # Don't use installbsd from OSF since it installs stuff as root
40848 # by default.
40849 for ac_prog in ginstall scoinst install; do
40850 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
40851 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
40852 if test $ac_prog = install &&
40853 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40854 # AIX install. It has an incompatible calling convention.
40855 :
40856 elif test $ac_prog = install &&
40857 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40858 # program-specific install script used by HP pwplus--don't use.
40859 :
40860 else
40861 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
40862 break 3
40863 fi
40864 fi
a848cd7e
SC
40865 done
40866 done
40867 ;;
40868esac
40869done
40870
40871
40872fi
40873 if test "${ac_cv_path_install+set}" = set; then
40874 INSTALL=$ac_cv_path_install
40875 else
40876 # As a last resort, use the slow shell script. We don't cache a
40877 # path for INSTALL within a source directory, because that will
40878 # break other packages using the cache if that directory is
40879 # removed, or if the path is relative.
40880 INSTALL=$ac_install_sh
40881 fi
40882fi
40883echo "$as_me:$LINENO: result: $INSTALL" >&5
40884echo "${ECHO_T}$INSTALL" >&6
40885
40886# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
40887# It thinks the first close brace ends the variable substitution.
40888test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
40889
40890test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
40891
40892test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
40893
40894 echo "$as_me:$LINENO: checking whether ln -s works" >&5
40895echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
40896LN_S=$as_ln_s
40897if test "$LN_S" = "ln -s"; then
40898 echo "$as_me:$LINENO: result: yes" >&5
40899echo "${ECHO_T}yes" >&6
40900else
40901 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
40902echo "${ECHO_T}no, using $LN_S" >&6
40903fi
40904
40905
40906 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40907echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 40908set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
40909if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40910 echo $ECHO_N "(cached) $ECHO_C" >&6
40911else
40912 cat >conftest.make <<\_ACEOF
40913all:
40914 @echo 'ac_maketemp="$(MAKE)"'
40915_ACEOF
40916# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40917eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40918if test -n "$ac_maketemp"; then
40919 eval ac_cv_prog_make_${ac_make}_set=yes
40920else
40921 eval ac_cv_prog_make_${ac_make}_set=no
40922fi
40923rm -f conftest.make
40924fi
40925if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40926 echo "$as_me:$LINENO: result: yes" >&5
40927echo "${ECHO_T}yes" >&6
40928 SET_MAKE=
40929else
40930 echo "$as_me:$LINENO: result: no" >&5
40931echo "${ECHO_T}no" >&6
40932 SET_MAKE="MAKE=${MAKE-make}"
40933fi
40934
40935
40936
40937 if test -n "$ac_tool_prefix"; then
40938 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
40939set dummy ${ac_tool_prefix}ar; ac_word=$2
40940echo "$as_me:$LINENO: checking for $ac_word" >&5
40941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40942if test "${ac_cv_prog_AR+set}" = set; then
40943 echo $ECHO_N "(cached) $ECHO_C" >&6
40944else
40945 if test -n "$AR"; then
40946 ac_cv_prog_AR="$AR" # Let the user override the test.
40947else
40948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40949for as_dir in $PATH
40950do
40951 IFS=$as_save_IFS
40952 test -z "$as_dir" && as_dir=.
40953 for ac_exec_ext in '' $ac_executable_extensions; do
40954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40955 ac_cv_prog_AR="${ac_tool_prefix}ar"
40956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40957 break 2
40958 fi
40959done
40960done
40961
40962fi
40963fi
40964AR=$ac_cv_prog_AR
40965if test -n "$AR"; then
40966 echo "$as_me:$LINENO: result: $AR" >&5
40967echo "${ECHO_T}$AR" >&6
40968else
40969 echo "$as_me:$LINENO: result: no" >&5
40970echo "${ECHO_T}no" >&6
40971fi
40972
40973fi
40974if test -z "$ac_cv_prog_AR"; then
40975 ac_ct_AR=$AR
40976 # Extract the first word of "ar", so it can be a program name with args.
40977set dummy ar; ac_word=$2
40978echo "$as_me:$LINENO: checking for $ac_word" >&5
40979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40980if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
40981 echo $ECHO_N "(cached) $ECHO_C" >&6
40982else
40983 if test -n "$ac_ct_AR"; then
40984 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
40985else
40986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40987for as_dir in $PATH
40988do
40989 IFS=$as_save_IFS
40990 test -z "$as_dir" && as_dir=.
40991 for ac_exec_ext in '' $ac_executable_extensions; do
40992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40993 ac_cv_prog_ac_ct_AR="ar"
40994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40995 break 2
40996 fi
40997done
40998done
40999
41000 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
41001fi
41002fi
41003ac_ct_AR=$ac_cv_prog_ac_ct_AR
41004if test -n "$ac_ct_AR"; then
41005 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
41006echo "${ECHO_T}$ac_ct_AR" >&6
41007else
41008 echo "$as_me:$LINENO: result: no" >&5
41009echo "${ECHO_T}no" >&6
41010fi
41011
41012 AR=$ac_ct_AR
41013else
41014 AR="$ac_cv_prog_AR"
41015fi
41016
41017 if test -n "$ac_tool_prefix"; then
41018 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
41019set dummy ${ac_tool_prefix}strip; ac_word=$2
41020echo "$as_me:$LINENO: checking for $ac_word" >&5
41021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41022if test "${ac_cv_prog_STRIP+set}" = set; then
41023 echo $ECHO_N "(cached) $ECHO_C" >&6
41024else
41025 if test -n "$STRIP"; then
41026 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
41027else
41028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41029for as_dir in $PATH
41030do
41031 IFS=$as_save_IFS
41032 test -z "$as_dir" && as_dir=.
41033 for ac_exec_ext in '' $ac_executable_extensions; do
41034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41035 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
41036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41037 break 2
41038 fi
41039done
41040done
41041
41042fi
41043fi
41044STRIP=$ac_cv_prog_STRIP
41045if test -n "$STRIP"; then
41046 echo "$as_me:$LINENO: result: $STRIP" >&5
41047echo "${ECHO_T}$STRIP" >&6
41048else
41049 echo "$as_me:$LINENO: result: no" >&5
41050echo "${ECHO_T}no" >&6
41051fi
41052
41053fi
41054if test -z "$ac_cv_prog_STRIP"; then
41055 ac_ct_STRIP=$STRIP
41056 # Extract the first word of "strip", so it can be a program name with args.
41057set dummy strip; ac_word=$2
41058echo "$as_me:$LINENO: checking for $ac_word" >&5
41059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41060if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
41061 echo $ECHO_N "(cached) $ECHO_C" >&6
41062else
41063 if test -n "$ac_ct_STRIP"; then
41064 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
41065else
41066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41067for as_dir in $PATH
41068do
41069 IFS=$as_save_IFS
41070 test -z "$as_dir" && as_dir=.
41071 for ac_exec_ext in '' $ac_executable_extensions; do
41072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41073 ac_cv_prog_ac_ct_STRIP="strip"
41074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41075 break 2
41076 fi
41077done
41078done
41079
41080 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
41081fi
41082fi
41083ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
41084if test -n "$ac_ct_STRIP"; then
41085 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
41086echo "${ECHO_T}$ac_ct_STRIP" >&6
41087else
41088 echo "$as_me:$LINENO: result: no" >&5
41089echo "${ECHO_T}no" >&6
41090fi
41091
41092 STRIP=$ac_ct_STRIP
41093else
41094 STRIP="$ac_cv_prog_STRIP"
41095fi
41096
41097 if test -n "$ac_tool_prefix"; then
41098 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
41099set dummy ${ac_tool_prefix}nm; ac_word=$2
41100echo "$as_me:$LINENO: checking for $ac_word" >&5
41101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41102if test "${ac_cv_prog_NM+set}" = set; then
41103 echo $ECHO_N "(cached) $ECHO_C" >&6
41104else
41105 if test -n "$NM"; then
41106 ac_cv_prog_NM="$NM" # Let the user override the test.
41107else
41108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41109for as_dir in $PATH
41110do
41111 IFS=$as_save_IFS
41112 test -z "$as_dir" && as_dir=.
41113 for ac_exec_ext in '' $ac_executable_extensions; do
41114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41115 ac_cv_prog_NM="${ac_tool_prefix}nm"
41116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41117 break 2
41118 fi
41119done
41120done
41121
41122fi
41123fi
41124NM=$ac_cv_prog_NM
41125if test -n "$NM"; then
41126 echo "$as_me:$LINENO: result: $NM" >&5
41127echo "${ECHO_T}$NM" >&6
41128else
41129 echo "$as_me:$LINENO: result: no" >&5
41130echo "${ECHO_T}no" >&6
41131fi
41132
41133fi
41134if test -z "$ac_cv_prog_NM"; then
41135 ac_ct_NM=$NM
41136 # Extract the first word of "nm", so it can be a program name with args.
41137set dummy nm; ac_word=$2
41138echo "$as_me:$LINENO: checking for $ac_word" >&5
41139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41140if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
41141 echo $ECHO_N "(cached) $ECHO_C" >&6
41142else
41143 if test -n "$ac_ct_NM"; then
41144 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
41145else
41146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41147for as_dir in $PATH
41148do
41149 IFS=$as_save_IFS
41150 test -z "$as_dir" && as_dir=.
41151 for ac_exec_ext in '' $ac_executable_extensions; do
41152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41153 ac_cv_prog_ac_ct_NM="nm"
41154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41155 break 2
41156 fi
41157done
41158done
41159
41160 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
41161fi
41162fi
41163ac_ct_NM=$ac_cv_prog_ac_ct_NM
41164if test -n "$ac_ct_NM"; then
41165 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
41166echo "${ECHO_T}$ac_ct_NM" >&6
41167else
41168 echo "$as_me:$LINENO: result: no" >&5
41169echo "${ECHO_T}no" >&6
41170fi
41171
41172 NM=$ac_ct_NM
41173else
41174 NM="$ac_cv_prog_NM"
41175fi
41176
41177
41178 case ${BAKEFILE_HOST} in
41179 *-hp-hpux* )
1e9e8aba 41180 INSTALL_DIR="mkdir -p"
a848cd7e
SC
41181 ;;
41182 *) INSTALL_DIR="$INSTALL -d"
41183 ;;
41184 esac
41185
41186
41187 LDFLAGS_GUI=
41188 case ${BAKEFILE_HOST} in
41189 *-*-cygwin* | *-*-mingw32* )
41190 LDFLAGS_GUI="-mwindows"
41191 esac
41192
41193
41194 fi
41195
41196 echo "$as_me:$LINENO: checking if make is GNU make" >&5
41197echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
41198if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
41199 echo $ECHO_N "(cached) $ECHO_C" >&6
41200else
41201
41202 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
41203 egrep -s GNU > /dev/null); then
41204 bakefile_cv_prog_makeisgnu="yes"
41205 else
41206 bakefile_cv_prog_makeisgnu="no"
41207 fi
41208
41209fi
41210echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
41211echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
41212
41213 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
41214 IF_GNU_MAKE=""
41215 else
41216 IF_GNU_MAKE="#"
41217 fi
41218
41219
41220
41221 PLATFORM_UNIX=0
41222 PLATFORM_WIN32=0
41223 PLATFORM_MSDOS=0
41224 PLATFORM_MAC=0
1e9e8aba 41225 PLATFORM_MACOS=0
a848cd7e
SC
41226 PLATFORM_MACOSX=0
41227 PLATFORM_OS2=0
1e9e8aba 41228 PLATFORM_BEOS=0
a848cd7e
SC
41229
41230 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41231 case "${BAKEFILE_HOST}" in
41232 *-*-cygwin* | *-*-mingw32* )
41233 PLATFORM_WIN32=1
41234 ;;
41235 *-pc-msdosdjgpp )
41236 PLATFORM_MSDOS=1
41237 ;;
41238 *-pc-os2_emx | *-pc-os2-emx )
41239 PLATFORM_OS2=1
41240 ;;
41241 powerpc-*-darwin* )
41242 PLATFORM_MAC=1
41243 PLATFORM_MACOSX=1
41244 ;;
1e9e8aba
DE
41245 *-*-beos* )
41246 PLATFORM_BEOS=1
41247 ;;
41248 powerpc-apple-macos* )
41249 PLATFORM_MAC=1
41250 PLATFORM_MACOS=1
41251 ;;
a848cd7e
SC
41252 * )
41253 PLATFORM_UNIX=1
41254 ;;
41255 esac
41256 else
41257 case "$BAKEFILE_FORCE_PLATFORM" in
41258 win32 )
41259 PLATFORM_WIN32=1
41260 ;;
41261 msdos )
41262 PLATFORM_MSDOS=1
41263 ;;
41264 os2 )
41265 PLATFORM_OS2=1
41266 ;;
41267 darwin )
41268 PLATFORM_MAC=1
41269 PLATFORM_MACOSX=1
41270 ;;
41271 unix )
41272 PLATFORM_UNIX=1
41273 ;;
1e9e8aba
DE
41274 beos )
41275 PLATFORM_BEOS=1
41276 ;;
a848cd7e
SC
41277 * )
41278 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41279echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41280 { (exit 1); exit 1; }; }
41281 ;;
41282 esac
41283 fi
41284
41285
41286
41287
41288
41289
41290
41291
41292
1e9e8aba
DE
41293
41294
a848cd7e
SC
41295 # Check whether --enable-omf or --disable-omf was given.
41296if test "${enable_omf+set}" = set; then
41297 enableval="$enable_omf"
41298 bk_os2_use_omf="$enableval"
41299fi;
41300
41301 case "${BAKEFILE_HOST}" in
41302 *-*-darwin* )
41303 CFLAGS="$CFLAGS -fno-common"
41304 CXXFLAGS="$CXXFLAGS -fno-common"
41305 ;;
41306
41307 *-pc-os2_emx | *-pc-os2-emx )
41308 if test "x$bk_os2_use_omf" = "xyes" ; then
41309 AR=emxomfar
41310 RANLIB=:
41311 LDFLAGS="-Zomf $LDFLAGS"
41312 CFLAGS="-Zomf $CFLAGS"
41313 CXXFLAGS="-Zomf $CXXFLAGS"
41314 OS2_LIBEXT="lib"
41315 else
41316 OS2_LIBEXT="a"
41317 fi
41318 ;;
1e9e8aba
DE
41319
41320 i*86-*-beos* )
41321 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41322 ;;
a848cd7e
SC
41323 esac
41324
41325
41326 SO_SUFFIX="so"
41327 SO_SUFFIX_MODULE="so"
41328 EXEEXT=""
41329 LIBPREFIX="lib"
41330 LIBEXT=".a"
41331 DLLPREFIX="lib"
41332 DLLPREFIX_MODULE=""
41333 DLLIMP_SUFFIX=""
41334
41335 case "${BAKEFILE_HOST}" in
41336 *-hp-hpux* )
41337 SO_SUFFIX="sl"
41338 SO_SUFFIX_MODULE="sl"
41339 ;;
41340 *-*-aix* )
41341 SO_SUFFIX="a"
41342 SO_SUFFIX_MODULE="a"
41343 ;;
41344 *-*-cygwin* | *-*-mingw32* )
41345 SO_SUFFIX="dll"
41346 SO_SUFFIX_MODULE="dll"
41347 DLLIMP_SUFFIX="dll.a"
41348 EXEEXT=".exe"
41349 DLLPREFIX=""
41350 ;;
41351 *-pc-msdosdjgpp )
41352 EXEEXT=".exe"
41353 DLLPREFIX=""
41354 ;;
41355 *-pc-os2_emx | *-pc-os2-emx )
41356 SO_SUFFIX="dll"
41357 SO_SUFFIX_MODULE="dll"
41358 DLLIMP_SUFFIX=$OS2_LIBEXT
41359 EXEEXT=".exe"
41360 DLLPREFIX=""
41361 LIBPREFIX=""
41362 LIBEXT=".$OS2_LIBEXT"
41363 ;;
41364 powerpc-*-darwin* )
41365 SO_SUFFIX="dylib"
41366 SO_SUFFIX_MODULE="bundle"
41367 ;;
41368 esac
41369
41370 if test "x$DLLIMP_SUFFIX" = "x" ; then
41371 DLLIMP_SUFFIX="$SO_SUFFIX"
41372 fi
41373
41374
41375
41376
41377
41378
41379
41380
41381
41382
41383
1e9e8aba
DE
41384 PIC_FLAG=""
41385 if test "x$GCC" = "xyes"; then
a848cd7e
SC
41386 PIC_FLAG="-fPIC"
41387 fi
41388
1e9e8aba
DE
41389 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41390 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41391
a848cd7e
SC
41392 case "${BAKEFILE_HOST}" in
41393 *-hp-hpux* )
1e9e8aba 41394 if test "x$GCC" != "xyes"; then
a848cd7e
SC
41395 LDFLAGS="$LDFLAGS -L/usr/lib"
41396
41397 SHARED_LD_CC="${CC} -b -o"
41398 SHARED_LD_CXX="${CXX} -b -o"
41399 PIC_FLAG="+Z"
41400 fi
41401 ;;
41402
41403 *-*-linux* )
41404 if test "x$GCC" != "xyes"; then
41405 echo "$as_me:$LINENO: checking for Intel compiler" >&5
41406echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41407if test "${bakefile_cv_prog_icc+set}" = set; then
41408 echo $ECHO_N "(cached) $ECHO_C" >&6
41409else
41410
41411 cat >conftest.$ac_ext <<_ACEOF
41412/* confdefs.h. */
41413_ACEOF
41414cat confdefs.h >>conftest.$ac_ext
41415cat >>conftest.$ac_ext <<_ACEOF
41416/* end confdefs.h. */
41417
41418int
41419main ()
41420{
41421
41422 #ifndef __INTEL_COMPILER
41423 #error Not icc
41424 #endif
41425
41426 ;
41427 return 0;
41428}
41429_ACEOF
41430rm -f conftest.$ac_objext
41431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41432 (eval $ac_compile) 2>conftest.er1
a848cd7e 41433 ac_status=$?
ac1cb8d3
VS
41434 grep -v '^ *+' conftest.er1 >conftest.err
41435 rm -f conftest.er1
41436 cat conftest.err >&5
a848cd7e
SC
41437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41438 (exit $ac_status); } &&
9dd0f6c2 41439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41441 (eval $ac_try) 2>&5
41442 ac_status=$?
41443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41444 (exit $ac_status); }; } &&
41445 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41447 (eval $ac_try) 2>&5
41448 ac_status=$?
41449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41450 (exit $ac_status); }; }; then
41451 bakefile_cv_prog_icc=yes
41452else
41453 echo "$as_me: failed program was:" >&5
41454sed 's/^/| /' conftest.$ac_ext >&5
41455
41456bakefile_cv_prog_icc=no
41457
41458fi
ac1cb8d3 41459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41460
41461fi
41462echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
41463echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
41464 if test "$bakefile_cv_prog_icc" = "yes"; then
41465 PIC_FLAG="-KPIC"
41466 fi
41467 fi
41468 ;;
41469
41470 *-*-solaris2* )
41471 if test "x$GCC" != xyes ; then
41472 SHARED_LD_CC="${CC} -G -o"
41473 SHARED_LD_CXX="${CXX} -G -o"
41474 PIC_FLAG="-KPIC"
41475 fi
41476 ;;
41477
41478 *-*-darwin* )
41479
41480 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
41481echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
41482if test "${wx_cv_gcc31+set}" = set; then
41483 echo $ECHO_N "(cached) $ECHO_C" >&6
41484else
41485
41486 cat >conftest.$ac_ext <<_ACEOF
41487/* confdefs.h. */
41488_ACEOF
41489cat confdefs.h >>conftest.$ac_ext
41490cat >>conftest.$ac_ext <<_ACEOF
41491/* end confdefs.h. */
41492
41493int
41494main ()
41495{
41496
41497 #if (__GNUC__ < 3) || \
41498 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
41499 #error old gcc
41500 #endif
41501
41502 ;
41503 return 0;
41504}
41505_ACEOF
41506rm -f conftest.$ac_objext
41507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41508 (eval $ac_compile) 2>conftest.er1
a848cd7e 41509 ac_status=$?
ac1cb8d3
VS
41510 grep -v '^ *+' conftest.er1 >conftest.err
41511 rm -f conftest.er1
41512 cat conftest.err >&5
a848cd7e
SC
41513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41514 (exit $ac_status); } &&
9dd0f6c2 41515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41517 (eval $ac_try) 2>&5
41518 ac_status=$?
41519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41520 (exit $ac_status); }; } &&
41521 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41523 (eval $ac_try) 2>&5
41524 ac_status=$?
41525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41526 (exit $ac_status); }; }; then
41527
41528 wx_cv_gcc31=yes
41529
41530else
41531 echo "$as_me: failed program was:" >&5
41532sed 's/^/| /' conftest.$ac_ext >&5
41533
41534
41535 wx_cv_gcc31=no
41536
41537
41538fi
ac1cb8d3 41539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41540
41541fi
41542echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
41543echo "${ECHO_T}$wx_cv_gcc31" >&6
41544 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
41545
41546D='$'
41547cat <<EOF >shared-ld-sh
a848cd7e
SC
41548#!/bin/sh
41549#-----------------------------------------------------------------------------
41550#-- Name: distrib/mac/shared-ld-sh
41551#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
41552#-- Author: Gilles Depeyrot
41553#-- Copyright: (c) 2002 Gilles Depeyrot
41554#-- Licence: any use permitted
41555#-----------------------------------------------------------------------------
41556
41557verbose=0
41558args=""
41559objects=""
41560linking_flag="-dynamiclib"
41561
473276a9
VS
41562while test ${D}# -gt 0; do
41563 case ${D}1 in
a848cd7e
SC
41564
41565 -v)
41566 verbose=1
41567 ;;
41568
41569 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
41570 # collect these options and values
473276a9 41571 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
41572 shift
41573 ;;
41574
41575 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
41576 # collect these options
473276a9 41577 args="${D}{args} ${D}1"
a848cd7e
SC
41578 ;;
41579
41580 -dynamiclib|-bundle)
473276a9 41581 linking_flag="${D}1"
a848cd7e
SC
41582 ;;
41583
41584 -*)
473276a9 41585 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
41586 exit 1
41587 ;;
41588
41589 *.o | *.a | *.dylib)
41590 # collect object files
473276a9 41591 objects="${D}{objects} ${D}1"
a848cd7e
SC
41592 ;;
41593
41594 *)
473276a9 41595 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
41596 exit 1
41597 ;;
41598
41599 esac
41600 shift
41601done
41602
41603#
41604# Link one module containing all the others
41605#
473276a9
VS
41606if test ${D}{verbose} = 1; then
41607 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 41608fi
473276a9
VS
41609c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
41610status=${D}?
41611if test ${D}{status} != 0; then
41612 exit ${D}{status}
a848cd7e
SC
41613fi
41614
41615#
41616# Link the shared library from the single module created
41617#
473276a9
VS
41618if test ${D}{verbose} = 1; then
41619 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 41620fi
473276a9
VS
41621c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
41622status=${D}?
41623if test ${D}{status} != 0; then
41624 exit ${D}{status}
a848cd7e
SC
41625fi
41626
41627#
41628# Remove intermediate module
41629#
473276a9 41630rm -f master.${D}${D}.o
a848cd7e
SC
41631
41632exit 0
41633EOF
473276a9 41634
a848cd7e
SC
41635 chmod +x shared-ld-sh
41636
41637 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
41638 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
41639 SHARED_LD_CXX="$SHARED_LD_CC"
41640 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
41641 else
41642 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
41643 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
41644 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
41645 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
41646 fi
41647
41648 PIC_FLAG="-dynamic -fPIC"
41649 ;;
41650
41651 *-*-aix* )
41652 if test "x$GCC" != "xyes"; then
41653 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
41654set dummy makeC++SharedLib; ac_word=$2
41655echo "$as_me:$LINENO: checking for $ac_word" >&5
41656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41657if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
41658 echo $ECHO_N "(cached) $ECHO_C" >&6
41659else
41660 if test -n "$AIX_CXX_LD"; then
41661 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
41662else
41663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41664for as_dir in $PATH
41665do
41666 IFS=$as_save_IFS
41667 test -z "$as_dir" && as_dir=.
41668 for ac_exec_ext in '' $ac_executable_extensions; do
41669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41670 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
41671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41672 break 2
41673 fi
41674done
41675done
41676
41677 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
41678fi
41679fi
41680AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
41681if test -n "$AIX_CXX_LD"; then
41682 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
41683echo "${ECHO_T}$AIX_CXX_LD" >&6
41684else
41685 echo "$as_me:$LINENO: result: no" >&5
41686echo "${ECHO_T}no" >&6
41687fi
41688
41689 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
41690 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
41691 fi
41692 ;;
41693
41694 *-*-beos* )
1e9e8aba
DE
41695 SHARED_LD_CC="${LD} -nostart -o"
41696 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
41697 ;;
41698
41699 *-*-irix* )
41700 if test "x$GCC" != "xyes"; then
41701 PIC_FLAG="-KPIC"
41702 fi
41703 ;;
41704
41705 *-*-cygwin* | *-*-mingw32* )
41706 PIC_FLAG=""
1e9e8aba
DE
41707 SHARED_LD_CC="\$(CC) -shared -o"
41708 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
41709 ;;
41710
41711 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
41712 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41713 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 41714 PIC_FLAG=""
473276a9
VS
41715
41716D='$'
41717cat <<EOF >dllar.sh
41718#!/bin/sh
41719#
41720# dllar - a tool to build both a .dll and an .a file
41721# from a set of object (.o) files for EMX/OS2.
41722#
41723# Written by Andrew Zabolotny, bit@freya.etu.ru
41724# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
41725#
41726# This script will accept a set of files on the command line.
41727# All the public symbols from the .o files will be exported into
41728# a .DEF file, then linker will be run (through gcc) against them to
41729# build a shared library consisting of all given .o files. All libraries
41730# (.a) will be first decompressed into component .o files then act as
41731# described above. You can optionally give a description (-d "description")
41732# which will be put into .DLL. To see the list of accepted options (as well
41733# as command-line format) simply run this program without options. The .DLL
41734# is built to be imported by name (there is no guarantee that new versions
41735# of the library you build will have same ordinals for same symbols).
41736#
41737# dllar is free software; you can redistribute it and/or modify
41738# it under the terms of the GNU General Public License as published by
41739# the Free Software Foundation; either version 2, or (at your option)
41740# any later version.
41741#
41742# dllar is distributed in the hope that it will be useful,
41743# but WITHOUT ANY WARRANTY; without even the implied warranty of
41744# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41745# GNU General Public License for more details.
41746#
41747# You should have received a copy of the GNU General Public License
41748# along with dllar; see the file COPYING. If not, write to the Free
41749# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41750# 02111-1307, USA.
41751
41752# To successfuly run this program you will need:
41753# - Current drive should have LFN support (HPFS, ext2, network, etc)
41754# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
41755# - gcc
41756# (used to build the .dll)
41757# - emxexp
41758# (used to create .def file from .o files)
41759# - emximp
41760# (used to create .a file from .def file)
41761# - GNU text utilites (cat, sort, uniq)
41762# used to process emxexp output
41763# - GNU file utilities (mv, rm)
41764# - GNU sed
41765# - lxlite (optional, see flag below)
41766# (used for general .dll cleanup)
41767#
41768
41769flag_USE_LXLITE=1;
41770
41771#
41772# helper functions
41773# basnam, variant of basename, which does _not_ remove the path, _iff_
41774# second argument (suffix to remove) is given
41775basnam(){
41776 case ${D}# in
41777 1)
1e9e8aba 41778 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
41779 ;;
41780 2)
41781 echo ${D}1 | sed 's/'${D}2'${D}//'
41782 ;;
41783 *)
41784 echo "error in basnam ${D}*"
41785 exit 8
41786 ;;
41787 esac
41788}
41789
41790# Cleanup temporary files and output
41791CleanUp() {
41792 cd ${D}curDir
41793 for i in ${D}inputFiles ; do
41794 case ${D}i in
41795 *!)
41796 rm -rf \`basnam ${D}i !\`
41797 ;;
41798 *)
41799 ;;
41800 esac
41801 done
41802
41803 # Kill result in case of failure as there is just to many stupid make/nmake
41804 # things out there which doesn't do this.
1e9e8aba 41805 if [ ${D}# -eq 0 ]; then
473276a9
VS
41806 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
41807 fi
41808}
41809
41810# Print usage and exit script with rc=1.
41811PrintHelp() {
b1d22ded
DE
41812 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
41813 echo ' [-name-mangler-script script.sh]'
41814 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
41815 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
41816 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 41817 echo ' [*.o] [*.a]'
473276a9
VS
41818 echo '*> "output_file" should have no extension.'
41819 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
41820 echo ' The import library name is derived from this and is set to "name".a,'
41821 echo ' unless overridden by -import'
41822 echo '*> "importlib_name" should have no extension.'
41823 echo ' If it has the .o, or .a extension, it is automatically removed.'
41824 echo ' This name is used as the import library name and may be longer and'
41825 echo ' more descriptive than the DLL name which has to follow the old '
41826 echo ' 8.3 convention of FAT.'
b1d22ded
DE
41827 echo '*> "script.sh may be given to override the output_file name by a'
41828 echo ' different name. It is mainly useful if the regular make process'
41829 echo ' of some package does not take into account OS/2 restriction of'
41830 echo ' DLL name lengths. It takes the importlib name as input and is'
41831 echo ' supposed to procude a shorter name as output. The script should'
41832 echo ' expect to get importlib_name without extension and should produce'
41833 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
41834 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
41835 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
41836 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
41837 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
41838 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
41839 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
41840 echo ' If the last character of a symbol is "*", all symbols beginning'
41841 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 41842 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 41843 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 41844 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 41845 echo ' C runtime DLLs.'
b1d22ded 41846 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
41847 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
41848 echo ' unchanged to GCC at the end of command line.'
41849 echo '*> If you create a DLL from a library and you do not specify -o,'
41850 echo ' the basename for DLL and import library will be set to library name,'
41851 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
41852 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
41853 echo ' library will be renamed into gcc_s.a.'
41854 echo '--------'
41855 echo 'Example:'
41856 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
41857 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
41858 CleanUp
41859 exit 1
41860}
41861
41862# Execute a command.
41863# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
41864# @Uses Whatever CleanUp() uses.
41865doCommand() {
41866 echo "${D}*"
41867 eval ${D}*
41868 rcCmd=${D}?
41869
1e9e8aba 41870 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
41871 echo "command failed, exit code="${D}rcCmd
41872 CleanUp
41873 exit ${D}rcCmd
41874 fi
41875}
41876
41877# main routine
41878# setup globals
41879cmdLine=${D}*
41880outFile=""
41881outimpFile=""
41882inputFiles=""
b1d22ded 41883renameScript=""
473276a9
VS
41884description=""
41885CC=gcc.exe
41886CFLAGS="-s -Zcrtdll"
41887EXTRA_CFLAGS=""
41888EXPORT_BY_ORDINALS=0
41889exclude_symbols=""
41890library_flags=""
41891curDir=\`pwd\`
41892curDirS=curDir
41893case ${D}curDirS in
41894*/)
41895 ;;
41896*)
41897 curDirS=${D}{curDirS}"/"
41898 ;;
41899esac
41900# Parse commandline
41901libsToLink=0
b1d22ded 41902omfLinking=0
1e9e8aba 41903while [ ${D}1 ]; do
473276a9
VS
41904 case ${D}1 in
41905 -ord*)
41906 EXPORT_BY_ORDINALS=1;
41907 ;;
41908 -o*)
41909 shift
41910 outFile=${D}1
41911 ;;
41912 -i*)
41913 shift
41914 outimpFile=${D}1
41915 ;;
b1d22ded
DE
41916 -name-mangler-script)
41917 shift
41918 renameScript=${D}1
41919 ;;
473276a9
VS
41920 -d*)
41921 shift
41922 description=${D}1
41923 ;;
41924 -f*)
41925 shift
41926 CFLAGS=${D}1
41927 ;;
41928 -c*)
41929 shift
41930 CC=${D}1
41931 ;;
41932 -h*)
41933 PrintHelp
41934 ;;
41935 -ex*)
41936 shift
41937 exclude_symbols=${D}{exclude_symbols}${D}1" "
41938 ;;
41939 -libf*)
41940 shift
41941 library_flags=${D}{library_flags}${D}1" "
41942 ;;
41943 -nocrt*)
41944 CFLAGS="-s"
41945 ;;
41946 -nolxl*)
41947 flag_USE_LXLITE=0
41948 ;;
41949 -* | /*)
41950 case ${D}1 in
41951 -L* | -l*)
41952 libsToLink=1
41953 ;;
b1d22ded
DE
41954 -Zomf)
41955 omfLinking=1
41956 ;;
473276a9
VS
41957 *)
41958 ;;
41959 esac
41960 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41961 ;;
b1d22ded
DE
41962 *.dll)
41963 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
41964 if [ ${D}omfLinking -eq 1 ]; then
41965 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
41966 else
41967 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
41968 fi
41969 ;;
473276a9
VS
41970 *)
41971 found=0;
1e9e8aba 41972 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
41973 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41974 else
41975 for file in ${D}1 ; do
1e9e8aba 41976 if [ -f ${D}file ]; then
473276a9
VS
41977 inputFiles="${D}{inputFiles} ${D}file"
41978 found=1
41979 fi
41980 done
1e9e8aba 41981 if [ ${D}found -eq 0 ]; then
473276a9
VS
41982 echo "ERROR: No file(s) found: "${D}1
41983 exit 8
41984 fi
41985 fi
41986 ;;
41987 esac
41988 shift
41989done # iterate cmdline words
41990
41991#
1e9e8aba 41992if [ -z "${D}inputFiles" ]; then
473276a9
VS
41993 echo "dllar: no input files"
41994 PrintHelp
41995fi
41996
41997# Now extract all .o files from .a files
41998newInputFiles=""
41999for file in ${D}inputFiles ; do
42000 case ${D}file in
42001 *.a | *.lib)
42002 case ${D}file in
42003 *.a)
42004 suffix=".a"
42005 AR="ar"
42006 ;;
42007 *.lib)
42008 suffix=".lib"
42009 AR="emxomfar"
42010 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
42011 ;;
42012 *)
42013 ;;
42014 esac
42015 dirname=\`basnam ${D}file ${D}suffix\`"_%"
42016 mkdir ${D}dirname
1e9e8aba 42017 if [ ${D}? -ne 0 ]; then
473276a9
VS
42018 echo "Failed to create subdirectory ./${D}dirname"
42019 CleanUp
42020 exit 8;
42021 fi
42022 # Append '!' to indicate archive
42023 newInputFiles="${D}newInputFiles ${D}{dirname}!"
42024 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
42025 cd ${D}curDir
42026 found=0;
42027 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 42028 if [ -f ${D}subfile ]; then
473276a9 42029 found=1
1e9e8aba 42030 if [ -s ${D}subfile ]; then
473276a9
VS
42031 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
42032 newInputFiles="${D}newInputFiles ${D}subfile"
42033 fi
42034 fi
42035 done
1e9e8aba
DE
42036 if [ ${D}found -eq 0 ]; then
42037 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
42038 fi
42039 ;;
42040 *)
42041 newInputFiles="${D}{newInputFiles} ${D}file"
42042 ;;
42043 esac
42044done
42045inputFiles="${D}newInputFiles"
42046
42047# Output filename(s).
42048do_backup=0;
1e9e8aba 42049if [ -z ${D}outFile ]; then
473276a9
VS
42050 do_backup=1;
42051 set outFile ${D}inputFiles; outFile=${D}2
42052fi
42053
42054# If it is an archive, remove the '!' and the '_%' suffixes
42055case ${D}outFile in
42056*_%!)
42057 outFile=\`basnam ${D}outFile _%!\`
42058 ;;
42059*)
42060 ;;
42061esac
42062case ${D}outFile in
42063*.dll)
42064 outFile=\`basnam ${D}outFile .dll\`
42065 ;;
42066*.DLL)
42067 outFile=\`basnam ${D}outFile .DLL\`
42068 ;;
42069*.o)
42070 outFile=\`basnam ${D}outFile .o\`
42071 ;;
42072*.obj)
42073 outFile=\`basnam ${D}outFile .obj\`
42074 ;;
42075*.a)
42076 outFile=\`basnam ${D}outFile .a\`
42077 ;;
42078*.lib)
42079 outFile=\`basnam ${D}outFile .lib\`
42080 ;;
42081*)
42082 ;;
42083esac
42084case ${D}outimpFile in
42085*.a)
42086 outimpFile=\`basnam ${D}outimpFile .a\`
42087 ;;
42088*.lib)
42089 outimpFile=\`basnam ${D}outimpFile .lib\`
42090 ;;
42091*)
42092 ;;
42093esac
1e9e8aba 42094if [ -z ${D}outimpFile ]; then
473276a9
VS
42095 outimpFile=${D}outFile
42096fi
42097defFile="${D}{outFile}.def"
42098arcFile="${D}{outimpFile}.a"
42099arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
42100
42101#create ${D}dllFile as something matching 8.3 restrictions,
42102if [ -z ${D}renameScript ] ; then
42103 dllFile="${D}outFile"
42104else
42105 dllFile=\`${D}renameScript ${D}outimpFile\`
42106fi
473276a9 42107
1e9e8aba
DE
42108if [ ${D}do_backup -ne 0 ] ; then
42109 if [ -f ${D}arcFile ] ; then
473276a9
VS
42110 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
42111 fi
1e9e8aba 42112 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
42113 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
42114 fi
42115fi
42116
42117# Extract public symbols from all the object files.
42118tmpdefFile=${D}{defFile}_%
42119rm -f ${D}tmpdefFile
42120for file in ${D}inputFiles ; do
42121 case ${D}file in
42122 *!)
42123 ;;
42124 *)
42125 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
42126 ;;
42127 esac
42128done
42129
42130# Create the def file.
42131rm -f ${D}defFile
42132echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
42133dllFile="${D}{dllFile}.dll"
42134if [ ! -z ${D}description ]; then
1e9e8aba 42135 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
42136fi
42137echo "EXPORTS" >> ${D}defFile
42138
42139doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
42140grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
42141
42142# Checks if the export is ok or not.
42143for word in ${D}exclude_symbols; do
42144 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
42145 mv ${D}{tmpdefFile}% ${D}tmpdefFile
42146done
42147
42148
1e9e8aba
DE
42149if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
42150 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
42151 sed '
42152 N
42153 : loop
1e9e8aba 42154 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
42155 t loop
42156 ' > ${D}{tmpdefFile}%
42157 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
42158else
42159 rm -f ${D}{tmpdefFile}%
42160fi
42161cat ${D}tmpdefFile >> ${D}defFile
42162rm -f ${D}tmpdefFile
42163
42164# Do linking, create implib, and apply lxlite.
42165gccCmdl="";
42166for file in ${D}inputFiles ; do
42167 case ${D}file in
42168 *!)
42169 ;;
42170 *)
42171 gccCmdl="${D}gccCmdl ${D}file"
42172 ;;
42173 esac
42174done
42175doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
42176touch "${D}{outFile}.dll"
42177
42178doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 42179if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 42180 add_flags="";
1e9e8aba 42181 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
42182 add_flags="-ynd"
42183 fi
42184 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
42185fi
42186doCommand "emxomf -s -l ${D}arcFile"
42187
42188# Successful exit.
42189CleanUp 1
42190exit 0
42191EOF
42192
42193 chmod +x dllar.sh
a848cd7e
SC
42194 ;;
42195
1e9e8aba 42196 powerpc-apple-macos* | \
a848cd7e
SC
42197 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
42198 *-*-sunos4* | \
42199 *-*-osf* | \
42200 *-*-dgux5* | \
42201 *-*-sysv5* )
42202 ;;
42203
42204 *)
42205 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
42206echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
42207 { (exit 1); exit 1; }; }
42208 esac
42209
2057db16
VS
42210 if test "x$PIC_FLAG" != "x" ; then
42211 PIC_FLAG="$PIC_FLAG -DPIC"
42212 fi
42213
a848cd7e
SC
42214 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
42215 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
42216 fi
42217 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
42218 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
42219 fi
42220
42221
42222
42223
42224
42225
42226
42227
42228 USE_SOVERSION=0
42229 USE_SOVERLINUX=0
42230 USE_SOVERSOLARIS=0
42231 USE_SOSYMLINKS=0
42232 USE_MACVERSION=0
42233 SONAME_FLAG=
42234
42235 case "${BAKEFILE_HOST}" in
b1d22ded 42236 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
42237 SONAME_FLAG="-Wl,-soname,"
42238 USE_SOVERSION=1
42239 USE_SOVERLINUX=1
42240 USE_SOSYMLINKS=1
42241 ;;
42242
a848cd7e
SC
42243 *-*-solaris2* )
42244 SONAME_FLAG="-h "
42245 USE_SOVERSION=1
42246 USE_SOVERSOLARIS=1
42247 USE_SOSYMLINKS=1
42248 ;;
42249
42250 *-*-darwin* )
42251 USE_MACVERSION=1
42252 USE_SOVERSION=1
42253 USE_SOSYMLINKS=1
42254 ;;
42255 esac
42256
42257
42258
42259
42260
42261
42262
42263
42264
42265 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42266echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42267 DEPS_TRACKING=0
42268
42269 if test "x$GCC" = "xyes"; then
42270 DEPSMODE=gcc
42271 DEPS_TRACKING=1
42272 case "${BAKEFILE_HOST}" in
42273 powerpc-*-darwin* )
42274 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42275 ;;
42276 * )
42277 DEPSFLAG_GCC="-MMD"
42278 ;;
42279 esac
42280 echo "$as_me:$LINENO: result: gcc" >&5
42281echo "${ECHO_T}gcc" >&6
b1d22ded 42282 elif test "x$MWCC" = "xyes"; then
81f90336 42283 DEPSMODE=mwcc
b1d22ded 42284 DEPS_TRACKING=1
81f90336 42285 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
42286 echo "$as_me:$LINENO: result: mwcc" >&5
42287echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
42288 else
42289 echo "$as_me:$LINENO: result: none" >&5
42290echo "${ECHO_T}none" >&6
42291 fi
42292
42293 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
42294
42295D='$'
42296cat <<EOF >bk-deps
a848cd7e
SC
42297#!/bin/sh
42298
42299# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42300# script. It is used to track C/C++ files dependencies in portable way.
42301#
42302# Permission is given to use this file in any way.
42303
473276a9 42304DEPSMODE=${DEPSMODE}
a848cd7e 42305DEPSDIR=.deps
473276a9 42306DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 42307DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 42308
473276a9 42309mkdir -p ${D}DEPSDIR
a848cd7e 42310
473276a9
VS
42311if test ${D}DEPSMODE = gcc ; then
42312 ${D}* ${D}{DEPSFLAG_GCC}
42313 status=${D}?
42314 if test ${D}{status} != 0 ; then
42315 exit ${D}{status}
a848cd7e
SC
42316 fi
42317 # move created file to the location we want it in:
473276a9
VS
42318 while test ${D}# -gt 0; do
42319 case "${D}1" in
a848cd7e
SC
42320 -o )
42321 shift
473276a9 42322 objfile=${D}1
a848cd7e
SC
42323 ;;
42324 -* )
42325 ;;
42326 * )
473276a9 42327 srcfile=${D}1
a848cd7e
SC
42328 ;;
42329 esac
42330 shift
42331 done
1e9e8aba
DE
42332 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42333 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
42334 if test -f ${D}depfile ; then
42335 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42336 rm -f ${D}depfile
a848cd7e 42337 else
1e9e8aba 42338 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
42339 if test -f ${D}depfile ; then
42340 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42341 rm -f ${D}depfile
a848cd7e
SC
42342 fi
42343 fi
42344 exit 0
81f90336
MW
42345elif test ${D}DEPSMODE = mwcc ; then
42346 ${D}*
42347 status=${D}?
42348 if test ${D}{status} != 0 ; then
42349 exit ${D}{status}
42350 fi
42351 # Run mwcc again with -MM and redirect into the dep file we want
42352 # NOTE: We can't use shift here because we need ${D}* to be valid
42353 prevarg=
42354 for arg in ${D}* ; do
42355 if test "${D}prevarg" = "-o"; then
42356 objfile=${D}arg
42357 else
42358 case "${D}arg" in
42359 -* )
42360 ;;
42361 * )
42362 srcfile=${D}arg
42363 ;;
42364 esac
42365 fi
42366 prevarg="${D}arg"
42367 done
42368 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42369 exit 0
a848cd7e 42370else
473276a9
VS
42371 ${D}*
42372 exit ${D}?
a848cd7e
SC
42373fi
42374EOF
473276a9 42375
a848cd7e
SC
42376 chmod +x bk-deps
42377 fi
42378
42379
42380
42381
42382 RESCOMP=
42383 SETFILE=
42384
42385 case ${BAKEFILE_HOST} in
42386 *-*-cygwin* | *-*-mingw32* )
42387 if test "$build" != "$host" ; then
42388 RESCOMP=$host_alias-windres
42389 else
42390 # Extract the first word of "windres", so it can be a program name with args.
42391set dummy windres; ac_word=$2
42392echo "$as_me:$LINENO: checking for $ac_word" >&5
42393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42394if test "${ac_cv_prog_RESCOMP+set}" = set; then
42395 echo $ECHO_N "(cached) $ECHO_C" >&6
42396else
42397 if test -n "$RESCOMP"; then
42398 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42399else
42400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42401for as_dir in $PATH
42402do
42403 IFS=$as_save_IFS
42404 test -z "$as_dir" && as_dir=.
42405 for ac_exec_ext in '' $ac_executable_extensions; do
42406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42407 ac_cv_prog_RESCOMP="windres"
42408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42409 break 2
42410 fi
42411done
42412done
42413
42414 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42415fi
42416fi
42417RESCOMP=$ac_cv_prog_RESCOMP
42418if test -n "$RESCOMP"; then
42419 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42420echo "${ECHO_T}$RESCOMP" >&6
42421else
42422 echo "$as_me:$LINENO: result: no" >&5
42423echo "${ECHO_T}no" >&6
42424fi
42425
42426 fi
42427 ;;
42428
1e9e8aba 42429 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
42430 # Extract the first word of "Rez", so it can be a program name with args.
42431set dummy Rez; ac_word=$2
42432echo "$as_me:$LINENO: checking for $ac_word" >&5
42433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42434if test "${ac_cv_prog_RESCOMP+set}" = set; then
42435 echo $ECHO_N "(cached) $ECHO_C" >&6
42436else
42437 if test -n "$RESCOMP"; then
42438 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42439else
42440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42441for as_dir in $PATH
42442do
42443 IFS=$as_save_IFS
42444 test -z "$as_dir" && as_dir=.
42445 for ac_exec_ext in '' $ac_executable_extensions; do
42446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42447 ac_cv_prog_RESCOMP="Rez"
42448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42449 break 2
42450 fi
42451done
42452done
42453
42454 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
42455fi
42456fi
42457RESCOMP=$ac_cv_prog_RESCOMP
42458if test -n "$RESCOMP"; then
42459 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42460echo "${ECHO_T}$RESCOMP" >&6
42461else
42462 echo "$as_me:$LINENO: result: no" >&5
42463echo "${ECHO_T}no" >&6
42464fi
42465
42466 # Extract the first word of "SetFile", so it can be a program name with args.
42467set dummy SetFile; ac_word=$2
42468echo "$as_me:$LINENO: checking for $ac_word" >&5
42469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42470if test "${ac_cv_prog_SETFILE+set}" = set; then
42471 echo $ECHO_N "(cached) $ECHO_C" >&6
42472else
42473 if test -n "$SETFILE"; then
42474 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
42475else
42476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42477for as_dir in $PATH
42478do
42479 IFS=$as_save_IFS
42480 test -z "$as_dir" && as_dir=.
42481 for ac_exec_ext in '' $ac_executable_extensions; do
42482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42483 ac_cv_prog_SETFILE="SetFile"
42484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42485 break 2
42486 fi
42487done
42488done
42489
42490 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
42491fi
42492fi
42493SETFILE=$ac_cv_prog_SETFILE
42494if test -n "$SETFILE"; then
42495 echo "$as_me:$LINENO: result: $SETFILE" >&5
42496echo "${ECHO_T}$SETFILE" >&6
42497else
42498 echo "$as_me:$LINENO: result: no" >&5
42499echo "${ECHO_T}no" >&6
42500fi
42501
42502 ;;
42503 esac
42504
42505
42506
42507
42508
fbb7dfff 42509 BAKEFILE_BAKEFILE_M4_VERSION="0.1.8"
a848cd7e 42510
dcc1b6ad 42511
fbb7dfff 42512BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8"
a848cd7e 42513
646b6ec1 42514
74b84332 42515
a848cd7e
SC
42516 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
42517if test "${enable_precomp_headers+set}" = set; then
42518 enableval="$enable_precomp_headers"
42519 bk_use_pch="$enableval"
42520fi;
42521
42522 GCC_PCH=0
42523
42524 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
42525 if test "x$GCC" = "xyes"; then
42526 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
42527echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
42528 cat >conftest.$ac_ext <<_ACEOF
42529/* confdefs.h. */
42530_ACEOF
42531cat confdefs.h >>conftest.$ac_ext
42532cat >>conftest.$ac_ext <<_ACEOF
42533/* end confdefs.h. */
42534
42535int
42536main ()
42537{
42538
42539 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
42540 #error "no pch support"
42541 #endif
42542 #if (__GNUC__ < 3)
42543 #error "no pch support"
42544 #endif
42545 #if (__GNUC__ == 3) && \
42546 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
42547 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
42548 #error "no pch support"
42549 #endif
42550
42551 ;
42552 return 0;
42553}
42554_ACEOF
42555rm -f conftest.$ac_objext
42556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42557 (eval $ac_compile) 2>conftest.er1
a848cd7e 42558 ac_status=$?
ac1cb8d3
VS
42559 grep -v '^ *+' conftest.er1 >conftest.err
42560 rm -f conftest.er1
42561 cat conftest.err >&5
a848cd7e
SC
42562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42563 (exit $ac_status); } &&
9dd0f6c2 42564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42566 (eval $ac_try) 2>&5
42567 ac_status=$?
42568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42569 (exit $ac_status); }; } &&
42570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42572 (eval $ac_try) 2>&5
42573 ac_status=$?
42574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42575 (exit $ac_status); }; }; then
42576
42577 echo "$as_me:$LINENO: result: yes" >&5
42578echo "${ECHO_T}yes" >&6
a848cd7e
SC
42579 GCC_PCH=1
42580
42581else
42582 echo "$as_me: failed program was:" >&5
42583sed 's/^/| /' conftest.$ac_ext >&5
42584
42585
42586 echo "$as_me:$LINENO: result: no" >&5
42587echo "${ECHO_T}no" >&6
42588
42589fi
ac1cb8d3 42590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42591 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
42592
42593D='$'
42594cat <<EOF >bk-make-pch
a848cd7e
SC
42595#!/bin/sh
42596
42597# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42598# script. It is used to generated precompiled headers.
42599#
42600# Permission is given to use this file in any way.
42601
1e9e8aba
DE
42602outfile="${D}{1}"
42603header="${D}{2}"
a848cd7e
SC
42604shift
42605shift
42606
42607compiler=
42608headerfile=
1e9e8aba
DE
42609while test ${D}{#} -gt 0; do
42610 case "${D}{1}" in
a848cd7e 42611 -I* )
1e9e8aba
DE
42612 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
42613 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
42614 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
42615 fi
42616 ;;
42617 esac
1e9e8aba 42618 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
42619 shift
42620done
42621
1e9e8aba
DE
42622if test "x${D}{headerfile}" = "x" ; then
42623 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 42624else
1e9e8aba
DE
42625 if test -f ${D}{outfile} ; then
42626 rm -f ${D}{outfile}
a848cd7e 42627 else
1e9e8aba 42628 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 42629 fi
1e9e8aba 42630 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
42631 mkdir -p .deps
42632 # can do this because gcc is >= 3.4:
1e9e8aba
DE
42633 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
42634 exit ${D}{?}
a848cd7e
SC
42635fi
42636EOF
1e9e8aba 42637
a848cd7e
SC
42638 chmod +x bk-make-pch
42639 fi
42640 fi
42641 fi
42642
42643
42644
a848cd7e
SC
42645 COND_BUILD_DEBUG="#"
42646 if test "x$BUILD" = "xdebug" ; then
42647 COND_BUILD_DEBUG=""
42648 fi
42649
42650 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
42651 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
42652 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
42653 fi
42654
42655 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
42656 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
42657 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
42658 fi
42659
42660 COND_BUILD_DEBUG_UNICODE_0="#"
42661 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
42662 COND_BUILD_DEBUG_UNICODE_0=""
42663 fi
42664
42665 COND_BUILD_DEBUG_UNICODE_1="#"
42666 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
42667 COND_BUILD_DEBUG_UNICODE_1=""
42668 fi
42669
42670 COND_BUILD_RELEASE="#"
42671 if test "x$BUILD" = "xrelease" ; then
42672 COND_BUILD_RELEASE=""
42673 fi
42674
42675 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
42676 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
42677 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
42678 fi
42679
42680 COND_BUILD_RELEASE_UNICODE_0="#"
42681 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
42682 COND_BUILD_RELEASE_UNICODE_0=""
42683 fi
42684
42685 COND_BUILD_RELEASE_UNICODE_1="#"
42686 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
42687 COND_BUILD_RELEASE_UNICODE_1=""
42688 fi
42689
42690 COND_DEBUG_FLAG_1="#"
42691 if test "x$DEBUG_FLAG" = "x1" ; then
42692 COND_DEBUG_FLAG_1=""
42693 fi
42694
42695 COND_DEBUG_INFO_0="#"
42696 if test "x$DEBUG_INFO" = "x0" ; then
42697 COND_DEBUG_INFO_0=""
42698 fi
42699
42700 COND_DEBUG_INFO_1="#"
42701 if test "x$DEBUG_INFO" = "x1" ; then
42702 COND_DEBUG_INFO_1=""
42703 fi
42704
42705 COND_DEPS_TRACKING_0="#"
42706 if test "x$DEPS_TRACKING" = "x0" ; then
42707 COND_DEPS_TRACKING_0=""
42708 fi
42709
42710 COND_DEPS_TRACKING_1="#"
42711 if test "x$DEPS_TRACKING" = "x1" ; then
42712 COND_DEPS_TRACKING_1=""
42713 fi
42714
42715 COND_GCC_PCH_1="#"
42716 if test "x$GCC_PCH" = "x1" ; then
42717 COND_GCC_PCH_1=""
42718 fi
42719
42720 COND_MONOLITHIC_0="#"
42721 if test "x$MONOLITHIC" = "x0" ; then
42722 COND_MONOLITHIC_0=""
42723 fi
42724
42725 COND_MONOLITHIC_0_SHARED_0="#"
42726 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
42727 COND_MONOLITHIC_0_SHARED_0=""
42728 fi
42729
42730 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
42731 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
42732 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
42733 fi
42734
90970d69
DE
42735 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
42736 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42737 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
42738 fi
42739
a848cd7e
SC
42740 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
42741 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42742 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
42743 fi
42744
6671c68b
VZ
42745 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
42746 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42747 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
42748 fi
42749
a848cd7e
SC
42750 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
42751 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
42752 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
42753 fi
42754
ceec2216
RL
42755 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
42756 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42757 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
42758 fi
42759
a848cd7e
SC
42760 COND_MONOLITHIC_0_SHARED_1="#"
42761 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
42762 COND_MONOLITHIC_0_SHARED_1=""
42763 fi
42764
42765 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
42766 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
42767 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
42768 fi
42769
90970d69
DE
42770 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
42771 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42772 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
42773 fi
42774
a848cd7e
SC
42775 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
42776 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42777 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
42778 fi
42779
6671c68b
VZ
42780 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
42781 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42782 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
42783 fi
42784
a848cd7e
SC
42785 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
42786 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
42787 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
42788 fi
42789
ceec2216
RL
42790 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
42791 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
42792 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
42793 fi
42794
a848cd7e
SC
42795 COND_MONOLITHIC_0_USE_ODBC_1="#"
42796 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
42797 COND_MONOLITHIC_0_USE_ODBC_1=""
42798 fi
42799
42800 COND_MONOLITHIC_1="#"
42801 if test "x$MONOLITHIC" = "x1" ; then
42802 COND_MONOLITHIC_1=""
42803 fi
42804
42805 COND_MONOLITHIC_1_SHARED_0="#"
42806 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
42807 COND_MONOLITHIC_1_SHARED_0=""
42808 fi
42809
42810 COND_MONOLITHIC_1_SHARED_1="#"
42811 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
42812 COND_MONOLITHIC_1_SHARED_1=""
42813 fi
42814
42815 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
42816 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
42817 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
42818 fi
42819
42820 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
42821 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
42822 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
42823 fi
42824
42825 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
42826 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
42827 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
42828 fi
42829
42830 COND_PLATFORM_MACOSX_1="#"
42831 if test "x$PLATFORM_MACOSX" = "x1" ; then
42832 COND_PLATFORM_MACOSX_1=""
42833 fi
42834
a30f955f
VS
42835 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
42836 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
42837 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
42838 fi
42839
a848cd7e
SC
42840 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
42841 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
42842 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
42843 fi
42844
42845 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
42846 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
42847 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
42848 fi
42849
42850 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
42851 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
42852 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
42853 fi
42854
fc480dc1
DE
42855 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
42856 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42857 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
42858 fi
42859
1e9e8aba
DE
42860 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42861 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42862 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42863 fi
42864
ebee3cd0
VS
42865 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
42866 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
42867 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
42868 fi
42869
42870 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
42871 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
42872 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
42873 fi
42874
a848cd7e
SC
42875 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
42876 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
42877 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
42878 fi
42879
42880 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
42881 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
42882 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
42883 fi
42884
b48a2016
DE
42885 COND_PLATFORM_MACOS_1="#"
42886 if test "x$PLATFORM_MACOS" = "x1" ; then
42887 COND_PLATFORM_MACOS_1=""
42888 fi
42889
a848cd7e
SC
42890 COND_PLATFORM_MAC_1="#"
42891 if test "x$PLATFORM_MAC" = "x1" ; then
42892 COND_PLATFORM_MAC_1=""
42893 fi
42894
42895 COND_PLATFORM_OS2_1="#"
42896 if test "x$PLATFORM_OS2" = "x1" ; then
42897 COND_PLATFORM_OS2_1=""
42898 fi
42899
42900 COND_PLATFORM_UNIX_0="#"
42901 if test "x$PLATFORM_UNIX" = "x0" ; then
42902 COND_PLATFORM_UNIX_0=""
42903 fi
42904
42905 COND_PLATFORM_UNIX_1="#"
42906 if test "x$PLATFORM_UNIX" = "x1" ; then
42907 COND_PLATFORM_UNIX_1=""
42908 fi
42909
42910 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
42911 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
42912 COND_PLATFORM_UNIX_1_USE_GUI_1=""
42913 fi
42914
42915 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
42916 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
42917 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
42918 fi
42919
42920 COND_PLATFORM_WIN32_0="#"
42921 if test "x$PLATFORM_WIN32" = "x0" ; then
42922 COND_PLATFORM_WIN32_0=""
42923 fi
42924
42925 COND_PLATFORM_WIN32_1="#"
42926 if test "x$PLATFORM_WIN32" = "x1" ; then
42927 COND_PLATFORM_WIN32_1=""
42928 fi
42929
42930 COND_SHARED_0="#"
42931 if test "x$SHARED" = "x0" ; then
42932 COND_SHARED_0=""
42933 fi
42934
ceec2216
RL
42935 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
42936 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
42937 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
42938 fi
42939
42940 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
42941 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
42942 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
42943 fi
42944
42945 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
42946 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
42947 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
42948 fi
42949
a848cd7e
SC
42950 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
42951 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42952 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
42953 fi
42954
42955 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42956 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42957 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42958 fi
42959
42960 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42961 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42962 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42963 fi
42964
42965 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42966 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42967 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42968 fi
42969
52ada004
RL
42970 COND_SHARED_0_USE_XRC_1="#"
42971 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42972 COND_SHARED_0_USE_XRC_1=""
42973 fi
42974
a848cd7e
SC
42975 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
42976 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
42977 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
42978 fi
42979
42980 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
42981 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
42982 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
42983 fi
42984
42985 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
42986 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
42987 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
42988 fi
42989
42990 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
42991 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
42992 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
42993 fi
42994
42995 COND_SHARED_1="#"
42996 if test "x$SHARED" = "x1" ; then
42997 COND_SHARED_1=""
42998 fi
42999
43000 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
43001 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43002 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
43003 fi
43004
52ada004
RL
43005 COND_SHARED_1_USE_XRC_1="#"
43006 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43007 COND_SHARED_1_USE_XRC_1=""
43008 fi
43009
a30f955f
VS
43010 COND_TOOLKIT_="#"
43011 if test "x$TOOLKIT" = "x" ; then
43012 COND_TOOLKIT_=""
43013 fi
43014
a848cd7e
SC
43015 COND_TOOLKIT_COCOA="#"
43016 if test "x$TOOLKIT" = "xCOCOA" ; then
43017 COND_TOOLKIT_COCOA=""
43018 fi
43019
a49baeab
DE
43020 COND_TOOLKIT_COCOA_USE_GUI_1="#"
43021 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
43022 COND_TOOLKIT_COCOA_USE_GUI_1=""
43023 fi
43024
a848cd7e
SC
43025 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
43026 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43027 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
43028 fi
43029
43030 COND_TOOLKIT_GTK="#"
43031 if test "x$TOOLKIT" = "xGTK" ; then
43032 COND_TOOLKIT_GTK=""
43033 fi
43034
43035 COND_TOOLKIT_GTK_USE_GUI_1="#"
43036 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
43037 COND_TOOLKIT_GTK_USE_GUI_1=""
43038 fi
43039
43040 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
43041 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43042 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
43043 fi
43044
43045 COND_TOOLKIT_MAC="#"
43046 if test "x$TOOLKIT" = "xMAC" ; then
43047 COND_TOOLKIT_MAC=""
43048 fi
43049
43050 COND_TOOLKIT_MAC_USE_GUI_1="#"
43051 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43052 COND_TOOLKIT_MAC_USE_GUI_1=""
43053 fi
43054
43055 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43056 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43057 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43058 fi
43059
43060 COND_TOOLKIT_MGL="#"
43061 if test "x$TOOLKIT" = "xMGL" ; then
43062 COND_TOOLKIT_MGL=""
43063 fi
43064
43065 COND_TOOLKIT_MGL_USE_GUI_1="#"
43066 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
43067 COND_TOOLKIT_MGL_USE_GUI_1=""
43068 fi
43069
43070 COND_TOOLKIT_MOTIF="#"
43071 if test "x$TOOLKIT" = "xMOTIF" ; then
43072 COND_TOOLKIT_MOTIF=""
43073 fi
43074
43075 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
43076 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
43077 COND_TOOLKIT_MOTIF_USE_GUI_1=""
43078 fi
43079
43080 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
43081 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43082 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
43083 fi
43084
43085 COND_TOOLKIT_MSW="#"
43086 if test "x$TOOLKIT" = "xMSW" ; then
43087 COND_TOOLKIT_MSW=""
43088 fi
43089
43090 COND_TOOLKIT_MSW_USE_GUI_1="#"
43091 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
43092 COND_TOOLKIT_MSW_USE_GUI_1=""
43093 fi
43094
43095 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
43096 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43097 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
43098 fi
43099
43100 COND_TOOLKIT_PM="#"
43101 if test "x$TOOLKIT" = "xPM" ; then
43102 COND_TOOLKIT_PM=""
43103 fi
43104
43105 COND_TOOLKIT_PM_USE_GUI_1="#"
43106 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
43107 COND_TOOLKIT_PM_USE_GUI_1=""
43108 fi
43109
43110 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
43111 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43112 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
43113 fi
43114
3fd9c298
DE
43115 COND_TOOLKIT_WINCE="#"
43116 if test "x$TOOLKIT" = "xWINCE" ; then
43117 COND_TOOLKIT_WINCE=""
43118 fi
43119
43120 COND_TOOLKIT_WINCE_USE_GUI_1="#"
43121 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
43122 COND_TOOLKIT_WINCE_USE_GUI_1=""
43123 fi
43124
43125 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
43126 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43127 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
43128 fi
43129
a848cd7e
SC
43130 COND_TOOLKIT_X11="#"
43131 if test "x$TOOLKIT" = "xX11" ; then
43132 COND_TOOLKIT_X11=""
43133 fi
43134
43135 COND_TOOLKIT_X11_USE_GUI_1="#"
43136 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
43137 COND_TOOLKIT_X11_USE_GUI_1=""
43138 fi
43139
43140 COND_UNICODE_1="#"
43141 if test "x$UNICODE" = "x1" ; then
43142 COND_UNICODE_1=""
43143 fi
43144
43145 COND_USE_EXCEPTIONS_0="#"
43146 if test "x$USE_EXCEPTIONS" = "x0" ; then
43147 COND_USE_EXCEPTIONS_0=""
43148 fi
43149
43150 COND_USE_EXCEPTIONS_1="#"
43151 if test "x$USE_EXCEPTIONS" = "x1" ; then
43152 COND_USE_EXCEPTIONS_1=""
43153 fi
43154
43155 COND_USE_GUI_0="#"
43156 if test "x$USE_GUI" = "x0" ; then
43157 COND_USE_GUI_0=""
43158 fi
43159
43160 COND_USE_GUI_1="#"
43161 if test "x$USE_GUI" = "x1" ; then
43162 COND_USE_GUI_1=""
43163 fi
43164
43165 COND_USE_GUI_1_WXUNIV_0="#"
43166 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43167 COND_USE_GUI_1_WXUNIV_0=""
43168 fi
43169
43170 COND_USE_GUI_1_WXUNIV_1="#"
43171 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
43172 COND_USE_GUI_1_WXUNIV_1=""
43173 fi
43174
43175 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43176 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43177 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43178 fi
43179
43180 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43181 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43182 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43183 fi
43184
43185 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43186 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43187 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43188 fi
43189
ceec2216
RL
43190 COND_USE_ODBC_1="#"
43191 if test "x$USE_ODBC" = "x1" ; then
43192 COND_USE_ODBC_1=""
43193 fi
43194
ffa0583f
RL
43195 COND_USE_OPENGL_1="#"
43196 if test "x$USE_OPENGL" = "x1" ; then
43197 COND_USE_OPENGL_1=""
43198 fi
43199
a848cd7e
SC
43200 COND_USE_PLUGINS_0="#"
43201 if test "x$USE_PLUGINS" = "x0" ; then
43202 COND_USE_PLUGINS_0=""
43203 fi
43204
0b78747f
MW
43205 COND_USE_RTTI_0="#"
43206 if test "x$USE_RTTI" = "x0" ; then
43207 COND_USE_RTTI_0=""
43208 fi
43209
43210 COND_USE_RTTI_1="#"
43211 if test "x$USE_RTTI" = "x1" ; then
43212 COND_USE_RTTI_1=""
43213 fi
43214
a848cd7e
SC
43215 COND_USE_SOSYMLINKS_1="#"
43216 if test "x$USE_SOSYMLINKS" = "x1" ; then
43217 COND_USE_SOSYMLINKS_1=""
43218 fi
43219
43220 COND_USE_SOVERLINUX_1="#"
43221 if test "x$USE_SOVERLINUX" = "x1" ; then
43222 COND_USE_SOVERLINUX_1=""
43223 fi
43224
43225 COND_USE_SOVERSION_0="#"
43226 if test "x$USE_SOVERSION" = "x0" ; then
43227 COND_USE_SOVERSION_0=""
43228 fi
43229
43230 COND_USE_SOVERSOLARIS_1="#"
43231 if test "x$USE_SOVERSOLARIS" = "x1" ; then
43232 COND_USE_SOVERSOLARIS_1=""
43233 fi
43234
0b78747f
MW
43235 COND_USE_THREADS_0="#"
43236 if test "x$USE_THREADS" = "x0" ; then
43237 COND_USE_THREADS_0=""
43238 fi
43239
43240 COND_USE_THREADS_1="#"
43241 if test "x$USE_THREADS" = "x1" ; then
43242 COND_USE_THREADS_1=""
43243 fi
43244
a13a7f89
RL
43245 COND_USE_XRC_1="#"
43246 if test "x$USE_XRC" = "x1" ; then
43247 COND_USE_XRC_1=""
43248 fi
43249
a848cd7e
SC
43250 COND_WITH_PLUGIN_SDL_1="#"
43251 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43252 COND_WITH_PLUGIN_SDL_1=""
43253 fi
43254
1e6eb025
VZ
43255 COND_WXUNIV_0="#"
43256 if test "x$WXUNIV" = "x0" ; then
43257 COND_WXUNIV_0=""
43258 fi
43259
a848cd7e
SC
43260 COND_WXUNIV_1="#"
43261 if test "x$WXUNIV" = "x1" ; then
43262 COND_WXUNIV_1=""
43263 fi
43264
43265 COND_WXUSE_EXPAT_BUILTIN="#"
43266 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43267 COND_WXUSE_EXPAT_BUILTIN=""
43268 fi
43269
43270 COND_WXUSE_LIBJPEG_BUILTIN="#"
43271 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43272 COND_WXUSE_LIBJPEG_BUILTIN=""
43273 fi
43274
43275 COND_WXUSE_LIBPNG_BUILTIN="#"
43276 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43277 COND_WXUSE_LIBPNG_BUILTIN=""
43278 fi
43279
43280 COND_WXUSE_LIBTIFF_BUILTIN="#"
43281 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43282 COND_WXUSE_LIBTIFF_BUILTIN=""
43283 fi
43284
43285 COND_WXUSE_ODBC_BUILTIN="#"
43286 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43287 COND_WXUSE_ODBC_BUILTIN=""
43288 fi
43289
43290 COND_WXUSE_REGEX_BUILTIN="#"
43291 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43292 COND_WXUSE_REGEX_BUILTIN=""
43293 fi
43294
43295 COND_WXUSE_ZLIB_BUILTIN="#"
43296 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43297 COND_WXUSE_ZLIB_BUILTIN=""
43298 fi
43299
43300
43301
2057db16
VS
43302 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43303 { { 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
43304echo "$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;}
43305 { (exit 1); exit 1; }; }
43306 fi
43307
a848cd7e 43308
ceec2216
RL
43309if test "$wxUSE_SHARED" = "yes"; then
43310
43311 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43312 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43313
5b674b9d
DE
43314 case "${host}" in
43315 *-pc-os2_emx | *-pc-os2-emx )
43316 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43317 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43318 cp -p ${srcdir}/src/os2/dllnames.sh .
43319 cp -p ${srcdir}/src/os2/dllar.sh .
43320 ;;
43321 esac
ceec2216
RL
43322else
43323
43324 EXE_LINKER="$CXX -o"
43325
43326fi
69120ee4
VZ
43327if test "$wxUSE_OMF" = "yes"; then
43328 case "${host}" in
43329 *-pc-os2_emx | *-pc-os2-emx )
43330 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
43331 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43332 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43333 ;;
43334 esac
43335fi
a848cd7e 43336
74b84332 43337GCC_PRAGMA_FLAGS=""
c08ebc62
DE
43338PCH_FLAGS=""
43339if test $GCC_PCH = 1 ; then
43340 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43341 PCH_FLAGS="-DWX_PRECOMP"
43342else
a848cd7e
SC
43343 case "${host}" in
43344 powerpc-*-darwin* )
74b84332 43345 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 43346 ;;
bea8e651 43347 *-*-mingw32* )
1f344abf
VS
43348 if test "$wxUSE_STL" = "yes" -o \
43349 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
43350 "$wxUSE_NO_RTTI" != "yes"; then
43351 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
43352echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
43353 cat >conftest.$ac_ext <<_ACEOF
43354/* confdefs.h. */
43355_ACEOF
43356cat confdefs.h >>conftest.$ac_ext
43357cat >>conftest.$ac_ext <<_ACEOF
43358/* end confdefs.h. */
43359
3314e67b
RR
43360int
43361main ()
43362{
43363#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43364 #error "Not GCC 3.2 or greater"
43365 #endif
43366
43367 ;
43368 return 0;
43369}
43370_ACEOF
43371rm -f conftest.$ac_objext
43372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43373 (eval $ac_compile) 2>conftest.er1
43374 ac_status=$?
43375 grep -v '^ *+' conftest.er1 >conftest.err
43376 rm -f conftest.er1
43377 cat conftest.err >&5
43378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43379 (exit $ac_status); } &&
9dd0f6c2 43380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314e67b
RR
43381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43382 (eval $ac_try) 2>&5
43383 ac_status=$?
43384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43385 (exit $ac_status); }; } &&
43386 { ac_try='test -s conftest.$ac_objext'
43387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43388 (eval $ac_try) 2>&5
43389 ac_status=$?
43390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43391 (exit $ac_status); }; }; then
43392 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43393 echo "$as_me:$LINENO: result: yes" >&5
43394echo "${ECHO_T}yes" >&6
43395else
43396 echo "$as_me: failed program was:" >&5
43397sed 's/^/| /' conftest.$ac_ext >&5
43398
43399echo "$as_me:$LINENO: result: no" >&5
43400echo "${ECHO_T}no" >&6
43401fi
43402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43403 fi
43404 ;;
43405 *-pc-os2_emx | *-pc-os2-emx )
43406 if test "$wxUSE_STL" = "yes"; then
43407 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
43408echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43409 cat >conftest.$ac_ext <<_ACEOF
43410/* confdefs.h. */
43411_ACEOF
43412cat confdefs.h >>conftest.$ac_ext
43413cat >>conftest.$ac_ext <<_ACEOF
43414/* end confdefs.h. */
43415
bea8e651
MB
43416int
43417main ()
43418{
1f344abf 43419#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
43420 #error "Not GCC 3.2 or greater"
43421 #endif
43422
43423 ;
43424 return 0;
43425}
43426_ACEOF
43427rm -f conftest.$ac_objext
43428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43429 (eval $ac_compile) 2>conftest.er1
bea8e651 43430 ac_status=$?
ac1cb8d3
VS
43431 grep -v '^ *+' conftest.er1 >conftest.err
43432 rm -f conftest.er1
43433 cat conftest.err >&5
bea8e651
MB
43434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43435 (exit $ac_status); } &&
9dd0f6c2 43436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43438 (eval $ac_try) 2>&5
43439 ac_status=$?
43440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43441 (exit $ac_status); }; } &&
43442 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
43443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43444 (eval $ac_try) 2>&5
43445 ac_status=$?
43446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43447 (exit $ac_status); }; }; then
74b84332 43448 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
43449 echo "$as_me:$LINENO: result: yes" >&5
43450echo "${ECHO_T}yes" >&6
43451else
43452 echo "$as_me: failed program was:" >&5
43453sed 's/^/| /' conftest.$ac_ext >&5
43454
43455echo "$as_me:$LINENO: result: no" >&5
43456echo "${ECHO_T}no" >&6
43457fi
ac1cb8d3 43458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
43459 fi
43460 ;;
a848cd7e
SC
43461 esac
43462fi
d2083416 43463CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
43464
43465
43466SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43467
43468
43469
43470
43471
43472
43473
43474
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
a848cd7e
SC
43509
43510
43511
43512
43513
43514
43515
43516
43517
43518
43519
43520
43521
43522
43523
43524
43525
43526
74b84332 43527
a848cd7e
SC
43528
43529
43530echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43531echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43532set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43533if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43534 echo $ECHO_N "(cached) $ECHO_C" >&6
43535else
43536 cat >conftest.make <<\_ACEOF
43537all:
43538 @echo 'ac_maketemp="$(MAKE)"'
43539_ACEOF
43540# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43541eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43542if test -n "$ac_maketemp"; then
43543 eval ac_cv_prog_make_${ac_make}_set=yes
43544else
43545 eval ac_cv_prog_make_${ac_make}_set=no
43546fi
43547rm -f conftest.make
43548fi
43549if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43550 echo "$as_me:$LINENO: result: yes" >&5
43551echo "${ECHO_T}yes" >&6
43552 SET_MAKE=
43553else
43554 echo "$as_me:$LINENO: result: no" >&5
43555echo "${ECHO_T}no" >&6
43556 SET_MAKE="MAKE=${MAKE-make}"
43557fi
43558
43559
a848cd7e 43560
ceec2216
RL
43561 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
43562
a848cd7e 43563
ceec2216 43564 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 43565
a848cd7e 43566
ceec2216 43567 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 43568
ceec2216
RL
43569
43570 ac_config_files="$ac_config_files version-script Makefile"
43571
43572
43573 ac_config_commands="$ac_config_commands wx-config
43574 "
a848cd7e
SC
43575
43576
9103d280
RL
43577
43578
a848cd7e
SC
43579if test "$wxUSE_GUI" = "yes"; then
43580 SUBDIRS="samples demos utils contrib"
43581else SUBDIRS="samples utils"
43582fi
43583
43584
43585
43586# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
43587if test "${with_cppunit_prefix+set}" = set; then
43588 withval="$with_cppunit_prefix"
43589 cppunit_config_prefix="$withval"
43590else
43591 cppunit_config_prefix=""
43592fi;
43593
43594# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
43595if test "${with_cppunit_exec_prefix+set}" = set; then
43596 withval="$with_cppunit_exec_prefix"
43597 cppunit_config_exec_prefix="$withval"
43598else
43599 cppunit_config_exec_prefix=""
43600fi;
43601
43602 if test x$cppunit_config_exec_prefix != x ; then
43603 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
43604 if test x${CPPUNIT_CONFIG+set} != xset ; then
43605 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
43606 fi
43607 fi
43608 if test x$cppunit_config_prefix != x ; then
43609 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
43610 if test x${CPPUNIT_CONFIG+set} != xset ; then
43611 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
43612 fi
43613 fi
43614
43615 # Extract the first word of "cppunit-config", so it can be a program name with args.
43616set dummy cppunit-config; ac_word=$2
43617echo "$as_me:$LINENO: checking for $ac_word" >&5
43618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43619if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
43620 echo $ECHO_N "(cached) $ECHO_C" >&6
43621else
43622 case $CPPUNIT_CONFIG in
43623 [\\/]* | ?:[\\/]*)
43624 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
43625 ;;
43626 *)
43627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43628for as_dir in $PATH
43629do
43630 IFS=$as_save_IFS
43631 test -z "$as_dir" && as_dir=.
43632 for ac_exec_ext in '' $ac_executable_extensions; do
43633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43634 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43636 break 2
43637 fi
43638done
43639done
43640
43641 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
43642 ;;
43643esac
43644fi
43645CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
43646
43647if test -n "$CPPUNIT_CONFIG"; then
43648 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
43649echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
43650else
43651 echo "$as_me:$LINENO: result: no" >&5
43652echo "${ECHO_T}no" >&6
43653fi
43654
43655 cppunit_version_min=1.8.0
43656
43657 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
43658echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
43659 no_cppunit=""
43660 if test "$CPPUNIT_CONFIG" = "no" ; then
43661 no_cppunit=yes
43662 else
43663 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
43664 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
43665 cppunit_version=`$CPPUNIT_CONFIG --version`
43666
43667 cppunit_major_version=`echo $cppunit_version | \
43668 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43669 cppunit_minor_version=`echo $cppunit_version | \
43670 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43671 cppunit_micro_version=`echo $cppunit_version | \
43672 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43673
43674 cppunit_major_min=`echo $cppunit_version_min | \
43675 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43676 cppunit_minor_min=`echo $cppunit_version_min | \
43677 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43678 cppunit_micro_min=`echo $cppunit_version_min | \
43679 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43680
43681 cppunit_version_proper=`expr \
43682 $cppunit_major_version \> $cppunit_major_min \| \
43683 $cppunit_major_version \= $cppunit_major_min \& \
43684 $cppunit_minor_version \> $cppunit_minor_min \| \
43685 $cppunit_major_version \= $cppunit_major_min \& \
43686 $cppunit_minor_version \= $cppunit_minor_min \& \
43687 $cppunit_micro_version \>= $cppunit_micro_min `
43688
43689 if test "$cppunit_version_proper" = "1" ; then
43690 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
43691echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
43692 else
43693 echo "$as_me:$LINENO: result: no" >&5
43694echo "${ECHO_T}no" >&6
43695 no_cppunit=yes
43696 fi
43697 fi
43698
43699 if test "x$no_cppunit" = x ; then
c2218763 43700 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
43701 else
43702 CPPUNIT_CFLAGS=""
43703 CPPUNIT_LIBS=""
c2218763 43704 :
a848cd7e
SC
43705 fi
43706
43707
43708
43709
43710
43711for subdir in `echo $SUBDIRS`; do
43712 if test -d ${srcdir}/${subdir} ; then
43713 if test "$wxUSE_GUI" = "yes"; then
43714 if test ${subdir} = "samples"; then
43715 makefiles="samples/Makefile.in $makefiles"
43716 for sample in `echo $SAMPLES_SUBDIRS`; do
43717 if test -d $srcdir/samples/$sample; then
43718 makefiles="samples/$sample/Makefile.in $makefiles"
43719 fi
43720 done
43721 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43722 fi
43723 else if test ${subdir} = "samples"; then
43724 makefiles="samples/Makefile.in samples/console/Makefile.in"
43725 elif test ${subdir} = "utils"; then
6537ccf8
VS
43726 makefiles=""
43727 for util in HelpGen tex2rtf ; do
43728 if test -d $srcdir/utils/$util ; then
43729 makefiles="utils/$util/Makefile.in \
43730 utils/$util/src/Makefile.in \
43731 $makefiles"
43732 fi
43733 done
a848cd7e
SC
43734 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43735 fi
43736 fi
43737
43738 for mkin in $makefiles ; do
43739 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
43740 ac_config_files="$ac_config_files $mk"
43741
43742 done
43743 fi
43744done
43745
43746
43747cat >confcache <<\_ACEOF
43748# This file is a shell script that caches the results of configure
43749# tests run on this system so they can be shared between configure
43750# scripts and configure runs, see configure's option --config-cache.
43751# It is not useful on other systems. If it contains results you don't
43752# want to keep, you may remove or edit it.
43753#
43754# config.status only pays attention to the cache file if you give it
43755# the --recheck option to rerun configure.
43756#
43757# `ac_cv_env_foo' variables (set or unset) will be overridden when
43758# loading this file, other *unset* `ac_cv_foo' will be assigned the
43759# following values.
43760
43761_ACEOF
43762
43763# The following way of writing the cache mishandles newlines in values,
43764# but we know of no workaround that is simple, portable, and efficient.
43765# So, don't put newlines in cache variables' values.
43766# Ultrix sh set writes to stderr and can't be redirected directly,
43767# and sets the high bit in the cache file unless we assign to the vars.
43768{
43769 (set) 2>&1 |
43770 case `(ac_space=' '; set | grep ac_space) 2>&1` in
43771 *ac_space=\ *)
43772 # `set' does not quote correctly, so add quotes (double-quote
43773 # substitution turns \\\\ into \\, and sed turns \\ into \).
43774 sed -n \
ac1cb8d3
VS
43775 "s/'/'\\\\''/g;
43776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
43777 ;;
43778 *)
43779 # `set' quotes correctly as required by POSIX, so do not add quotes.
43780 sed -n \
ac1cb8d3 43781 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
43782 ;;
43783 esac;
43784} |
43785 sed '
43786 t clear
43787 : clear
43788 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43789 t end
43790 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43791 : end' >>confcache
43792if diff $cache_file confcache >/dev/null 2>&1; then :; else
43793 if test -w $cache_file; then
43794 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
43795 cat confcache >$cache_file
43796 else
43797 echo "not updating unwritable cache $cache_file"
43798 fi
43799fi
43800rm -f confcache
43801
43802test "x$prefix" = xNONE && prefix=$ac_default_prefix
43803# Let make expand exec_prefix.
43804test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43805
43806# VPATH may cause trouble with some makes, so we remove $(srcdir),
43807# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43808# trailing colons and then remove the whole line if VPATH becomes empty
43809# (actually we leave an empty line to preserve line numbers).
43810if test "x$srcdir" = x.; then
ac1cb8d3 43811 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
43812s/:*\$(srcdir):*/:/;
43813s/:*\${srcdir}:*/:/;
43814s/:*@srcdir@:*/:/;
ac1cb8d3 43815s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 43816s/:*$//;
ac1cb8d3 43817s/^[^=]*=[ ]*$//;
a848cd7e
SC
43818}'
43819fi
43820
43821DEFS=-DHAVE_CONFIG_H
43822
43823ac_libobjs=
43824ac_ltlibobjs=
43825for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43826 # 1. Remove the extension, and $U if already installed.
43827 ac_i=`echo "$ac_i" |
ac1cb8d3 43828 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
43829 # 2. Add them.
43830 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43831 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43832done
43833LIBOBJS=$ac_libobjs
43834
43835LTLIBOBJS=$ac_ltlibobjs
43836
43837
43838
43839: ${CONFIG_STATUS=./config.status}
43840ac_clean_files_save=$ac_clean_files
43841ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43842{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43843echo "$as_me: creating $CONFIG_STATUS" >&6;}
43844cat >$CONFIG_STATUS <<_ACEOF
43845#! $SHELL
43846# Generated by $as_me.
43847# Run this file to recreate the current configuration.
43848# Compiler output produced by configure, useful for debugging
43849# configure, is in config.log if it exists.
43850
43851debug=false
43852ac_cs_recheck=false
43853ac_cs_silent=false
43854SHELL=\${CONFIG_SHELL-$SHELL}
43855_ACEOF
43856
43857cat >>$CONFIG_STATUS <<\_ACEOF
43858## --------------------- ##
43859## M4sh Initialization. ##
43860## --------------------- ##
43861
43862# Be Bourne compatible
43863if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43864 emulate sh
43865 NULLCMD=:
43866 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43867 # is contrary to our usage. Disable this feature.
43868 alias -g '${1+"$@"}'='"$@"'
43869elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43870 set -o posix
43871fi
ac1cb8d3 43872DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
43873
43874# Support unset when possible.
ac1cb8d3 43875if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
43876 as_unset=unset
43877else
43878 as_unset=false
43879fi
43880
43881
43882# Work around bugs in pre-3.0 UWIN ksh.
43883$as_unset ENV MAIL MAILPATH
43884PS1='$ '
43885PS2='> '
43886PS4='+ '
43887
43888# NLS nuisances.
43889for as_var in \
43890 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43891 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43892 LC_TELEPHONE LC_TIME
43893do
ac1cb8d3 43894 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
43895 eval $as_var=C; export $as_var
43896 else
43897 $as_unset $as_var
43898 fi
43899done
43900
43901# Required to use basename.
43902if expr a : '\(a\)' >/dev/null 2>&1; then
43903 as_expr=expr
43904else
43905 as_expr=false
43906fi
43907
43908if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
43909 as_basename=basename
43910else
43911 as_basename=false
43912fi
43913
43914
43915# Name of the executable.
43916as_me=`$as_basename "$0" ||
43917$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43918 X"$0" : 'X\(//\)$' \| \
43919 X"$0" : 'X\(/\)$' \| \
43920 . : '\(.\)' 2>/dev/null ||
43921echo X/"$0" |
43922 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
43923 /^X\/\(\/\/\)$/{ s//\1/; q; }
43924 /^X\/\(\/\).*/{ s//\1/; q; }
43925 s/.*/./; q'`
43926
43927
43928# PATH needs CR, and LINENO needs CR and PATH.
43929# Avoid depending upon Character Ranges.
43930as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43931as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43932as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43933as_cr_digits='0123456789'
43934as_cr_alnum=$as_cr_Letters$as_cr_digits
43935
43936# The user is always right.
43937if test "${PATH_SEPARATOR+set}" != set; then
43938 echo "#! /bin/sh" >conf$$.sh
43939 echo "exit 0" >>conf$$.sh
43940 chmod +x conf$$.sh
43941 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43942 PATH_SEPARATOR=';'
43943 else
43944 PATH_SEPARATOR=:
43945 fi
43946 rm -f conf$$.sh
43947fi
43948
43949
43950 as_lineno_1=$LINENO
43951 as_lineno_2=$LINENO
43952 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43953 test "x$as_lineno_1" != "x$as_lineno_2" &&
43954 test "x$as_lineno_3" = "x$as_lineno_2" || {
43955 # Find who we are. Look in the path if we contain no path at all
43956 # relative or not.
43957 case $0 in
43958 *[\\/]* ) as_myself=$0 ;;
43959 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43960for as_dir in $PATH
43961do
43962 IFS=$as_save_IFS
43963 test -z "$as_dir" && as_dir=.
43964 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43965done
43966
43967 ;;
43968 esac
43969 # We did not find ourselves, most probably we were run as `sh COMMAND'
43970 # in which case we are not to be found in the path.
43971 if test "x$as_myself" = x; then
43972 as_myself=$0
43973 fi
43974 if test ! -f "$as_myself"; then
43975 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
43976echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
43977 { (exit 1); exit 1; }; }
43978 fi
43979 case $CONFIG_SHELL in
43980 '')
43981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43982for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43983do
43984 IFS=$as_save_IFS
43985 test -z "$as_dir" && as_dir=.
43986 for as_base in sh bash ksh sh5; do
43987 case $as_dir in
43988 /*)
43989 if ("$as_dir/$as_base" -c '
43990 as_lineno_1=$LINENO
43991 as_lineno_2=$LINENO
43992 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43993 test "x$as_lineno_1" != "x$as_lineno_2" &&
43994 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
43995 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43996 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43997 CONFIG_SHELL=$as_dir/$as_base
43998 export CONFIG_SHELL
43999 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
44000 fi;;
44001 esac
44002 done
44003done
44004;;
44005 esac
44006
44007 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44008 # uniformly replaced by the line number. The first 'sed' inserts a
44009 # line-number line before each line; the second 'sed' does the real
44010 # work. The second script uses 'N' to pair each line-number line
44011 # with the numbered line, and appends trailing '-' during
44012 # substitution so that $LINENO is not a special case at line end.
44013 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44014 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
44015 sed '=' <$as_myself |
44016 sed '
44017 N
44018 s,$,-,
44019 : loop
44020 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
44021 t loop
44022 s,-$,,
44023 s,^['$as_cr_digits']*\n,,
44024 ' >$as_me.lineno &&
44025 chmod +x $as_me.lineno ||
44026 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
44027echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
44028 { (exit 1); exit 1; }; }
44029
44030 # Don't try to exec as it changes $[0], causing all sort of problems
44031 # (the dirname of $[0] is not the place where we might find the
44032 # original and so on. Autoconf is especially sensible to this).
44033 . ./$as_me.lineno
44034 # Exit status is that of the last command.
44035 exit
44036}
44037
44038
44039case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
44040 *c*,-n*) ECHO_N= ECHO_C='
44041' ECHO_T=' ' ;;
44042 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
44043 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
44044esac
44045
44046if expr a : '\(a\)' >/dev/null 2>&1; then
44047 as_expr=expr
44048else
44049 as_expr=false
44050fi
44051
44052rm -f conf$$ conf$$.exe conf$$.file
44053echo >conf$$.file
44054if ln -s conf$$.file conf$$ 2>/dev/null; then
44055 # We could just check for DJGPP; but this test a) works b) is more generic
44056 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
44057 if test -f conf$$.exe; then
44058 # Don't use ln at all; we don't have any links
44059 as_ln_s='cp -p'
44060 else
44061 as_ln_s='ln -s'
44062 fi
44063elif ln conf$$.file conf$$ 2>/dev/null; then
44064 as_ln_s=ln
44065else
44066 as_ln_s='cp -p'
44067fi
44068rm -f conf$$ conf$$.exe conf$$.file
44069
44070if mkdir -p . 2>/dev/null; then
44071 as_mkdir_p=:
44072else
ac1cb8d3 44073 test -d ./-p && rmdir ./-p
a848cd7e
SC
44074 as_mkdir_p=false
44075fi
44076
44077as_executable_p="test -f"
44078
44079# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 44080as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44081
44082# Sed expression to map a string onto a valid variable name.
ac1cb8d3 44083as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44084
44085
44086# IFS
44087# We need space, tab and new line, in precisely that order.
44088as_nl='
44089'
44090IFS=" $as_nl"
44091
44092# CDPATH.
44093$as_unset CDPATH
44094
44095exec 6>&1
44096
44097# Open the log real soon, to keep \$[0] and so on meaningful, and to
44098# report actual input values of CONFIG_FILES etc. instead of their
44099# values after options handling. Logging --version etc. is OK.
44100exec 5>>config.log
44101{
44102 echo
44103 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44104## Running $as_me. ##
44105_ASBOX
44106} >&5
44107cat >&5 <<_CSEOF
44108
e0d84535 44109This file was extended by wxWidgets $as_me 2.6.0, which was
ac1cb8d3 44110generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
44111
44112 CONFIG_FILES = $CONFIG_FILES
44113 CONFIG_HEADERS = $CONFIG_HEADERS
44114 CONFIG_LINKS = $CONFIG_LINKS
44115 CONFIG_COMMANDS = $CONFIG_COMMANDS
44116 $ $0 $@
44117
44118_CSEOF
44119echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
44120echo >&5
44121_ACEOF
44122
44123# Files that config.status was made for.
44124if test -n "$ac_config_files"; then
44125 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
44126fi
44127
44128if test -n "$ac_config_headers"; then
44129 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
44130fi
44131
44132if test -n "$ac_config_links"; then
44133 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
44134fi
44135
44136if test -n "$ac_config_commands"; then
44137 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
44138fi
44139
44140cat >>$CONFIG_STATUS <<\_ACEOF
44141
44142ac_cs_usage="\
44143\`$as_me' instantiates files from templates according to the
44144current configuration.
44145
44146Usage: $0 [OPTIONS] [FILE]...
44147
44148 -h, --help print this help, then exit
44149 -V, --version print version number, then exit
44150 -q, --quiet do not print progress messages
44151 -d, --debug don't remove temporary files
44152 --recheck update $as_me by reconfiguring in the same conditions
44153 --file=FILE[:TEMPLATE]
ac1cb8d3 44154 instantiate the configuration file FILE
a848cd7e 44155 --header=FILE[:TEMPLATE]
ac1cb8d3 44156 instantiate the configuration header FILE
a848cd7e
SC
44157
44158Configuration files:
44159$config_files
44160
44161Configuration headers:
44162$config_headers
44163
44164Configuration commands:
44165$config_commands
44166
44167Report bugs to <bug-autoconf@gnu.org>."
44168_ACEOF
44169
44170cat >>$CONFIG_STATUS <<_ACEOF
44171ac_cs_version="\\
e0d84535 44172wxWidgets config.status 2.6.0
ac1cb8d3 44173configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
44174 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
44175
ac1cb8d3 44176Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
44177This config.status script is free software; the Free Software Foundation
44178gives unlimited permission to copy, distribute and modify it."
44179srcdir=$srcdir
44180INSTALL="$INSTALL"
44181_ACEOF
44182
44183cat >>$CONFIG_STATUS <<\_ACEOF
44184# If no file are specified by the user, then we need to provide default
44185# value. By we need to know if files were specified by the user.
44186ac_need_defaults=:
44187while test $# != 0
44188do
44189 case $1 in
44190 --*=*)
44191 ac_option=`expr "x$1" : 'x\([^=]*\)='`
44192 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
44193 ac_shift=:
44194 ;;
44195 -*)
44196 ac_option=$1
44197 ac_optarg=$2
44198 ac_shift=shift
44199 ;;
44200 *) # This is not an option, so the user has probably given explicit
44201 # arguments.
44202 ac_option=$1
44203 ac_need_defaults=false;;
44204 esac
44205
44206 case $ac_option in
44207 # Handling of the options.
44208_ACEOF
44209cat >>$CONFIG_STATUS <<\_ACEOF
44210 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44211 ac_cs_recheck=: ;;
44212 --version | --vers* | -V )
44213 echo "$ac_cs_version"; exit 0 ;;
44214 --he | --h)
44215 # Conflict between --help and --header
44216 { { echo "$as_me:$LINENO: error: ambiguous option: $1
44217Try \`$0 --help' for more information." >&5
44218echo "$as_me: error: ambiguous option: $1
44219Try \`$0 --help' for more information." >&2;}
44220 { (exit 1); exit 1; }; };;
44221 --help | --hel | -h )
44222 echo "$ac_cs_usage"; exit 0 ;;
44223 --debug | --d* | -d )
44224 debug=: ;;
44225 --file | --fil | --fi | --f )
44226 $ac_shift
44227 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44228 ac_need_defaults=false;;
44229 --header | --heade | --head | --hea )
44230 $ac_shift
44231 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44232 ac_need_defaults=false;;
44233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44234 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44235 ac_cs_silent=: ;;
44236
44237 # This is an error.
44238 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44239Try \`$0 --help' for more information." >&5
44240echo "$as_me: error: unrecognized option: $1
44241Try \`$0 --help' for more information." >&2;}
44242 { (exit 1); exit 1; }; } ;;
44243
44244 *) ac_config_targets="$ac_config_targets $1" ;;
44245
44246 esac
44247 shift
44248done
44249
44250ac_configure_extra_args=
44251
44252if $ac_cs_silent; then
44253 exec 6>/dev/null
44254 ac_configure_extra_args="$ac_configure_extra_args --silent"
44255fi
44256
44257_ACEOF
44258cat >>$CONFIG_STATUS <<_ACEOF
44259if \$ac_cs_recheck; then
44260 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44261 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44262fi
44263
44264_ACEOF
44265
44266cat >>$CONFIG_STATUS <<_ACEOF
44267#
44268# INIT-COMMANDS section.
44269#
44270
ceec2216
RL
44271 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44272 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44273 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44274 LN_S="${LN_S}"
a848cd7e
SC
44275
44276
44277_ACEOF
44278
44279
44280
44281cat >>$CONFIG_STATUS <<\_ACEOF
44282for ac_config_target in $ac_config_targets
44283do
44284 case "$ac_config_target" in
44285 # Handling of arguments.
ceec2216
RL
44286 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44287 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
44288 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44289 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44290 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
44291 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44292 "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
44293 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44294echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44295 { (exit 1); exit 1; }; };;
44296 esac
44297done
44298
44299# If the user did not use the arguments to specify the items to instantiate,
44300# then the envvar interface is used. Set only those that are not.
44301# We use the long form for the default assignment because of an extremely
44302# bizarre bug on SunOS 4.1.3.
44303if $ac_need_defaults; then
44304 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44305 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44306 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44307fi
44308
44309# Have a temporary directory for convenience. Make it in the build tree
44310# simply because there is no reason to put it here, and in addition,
44311# creating and moving files from /tmp can sometimes cause problems.
44312# Create a temporary directory, and hook for its removal unless debugging.
44313$debug ||
44314{
44315 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44316 trap '{ (exit 1); exit 1; }' 1 2 13 15
44317}
44318
44319# Create a (secure) tmp directory for tmp files.
44320
44321{
44322 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44323 test -n "$tmp" && test -d "$tmp"
44324} ||
44325{
44326 tmp=./confstat$$-$RANDOM
44327 (umask 077 && mkdir $tmp)
44328} ||
44329{
44330 echo "$me: cannot create a temporary directory in ." >&2
44331 { (exit 1); exit 1; }
44332}
44333
44334_ACEOF
44335
44336cat >>$CONFIG_STATUS <<_ACEOF
44337
44338#
44339# CONFIG_FILES section.
44340#
44341
44342# No need to generate the scripts if there are no CONFIG_FILES.
44343# This happens for instance when ./config.status config.h
44344if test -n "\$CONFIG_FILES"; then
44345 # Protect against being on the right side of a sed subst in config.status.
44346 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44347 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44348s,@SHELL@,$SHELL,;t t
44349s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44350s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44351s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44352s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44353s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44354s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44355s,@exec_prefix@,$exec_prefix,;t t
44356s,@prefix@,$prefix,;t t
44357s,@program_transform_name@,$program_transform_name,;t t
44358s,@bindir@,$bindir,;t t
44359s,@sbindir@,$sbindir,;t t
44360s,@libexecdir@,$libexecdir,;t t
44361s,@datadir@,$datadir,;t t
44362s,@sysconfdir@,$sysconfdir,;t t
44363s,@sharedstatedir@,$sharedstatedir,;t t
44364s,@localstatedir@,$localstatedir,;t t
44365s,@libdir@,$libdir,;t t
44366s,@includedir@,$includedir,;t t
44367s,@oldincludedir@,$oldincludedir,;t t
44368s,@infodir@,$infodir,;t t
44369s,@mandir@,$mandir,;t t
44370s,@build_alias@,$build_alias,;t t
44371s,@host_alias@,$host_alias,;t t
44372s,@target_alias@,$target_alias,;t t
44373s,@DEFS@,$DEFS,;t t
44374s,@ECHO_C@,$ECHO_C,;t t
44375s,@ECHO_N@,$ECHO_N,;t t
44376s,@ECHO_T@,$ECHO_T,;t t
44377s,@LIBS@,$LIBS,;t t
44378s,@build@,$build,;t t
44379s,@build_cpu@,$build_cpu,;t t
44380s,@build_vendor@,$build_vendor,;t t
44381s,@build_os@,$build_os,;t t
44382s,@host@,$host,;t t
44383s,@host_cpu@,$host_cpu,;t t
44384s,@host_vendor@,$host_vendor,;t t
44385s,@host_os@,$host_os,;t t
44386s,@target@,$target,;t t
44387s,@target_cpu@,$target_cpu,;t t
44388s,@target_vendor@,$target_vendor,;t t
44389s,@target_os@,$target_os,;t t
44390s,@CC@,$CC,;t t
44391s,@CFLAGS@,$CFLAGS,;t t
44392s,@LDFLAGS@,$LDFLAGS,;t t
44393s,@CPPFLAGS@,$CPPFLAGS,;t t
44394s,@ac_ct_CC@,$ac_ct_CC,;t t
44395s,@EXEEXT@,$EXEEXT,;t t
44396s,@OBJEXT@,$OBJEXT,;t t
44397s,@CPP@,$CPP,;t t
44398s,@EGREP@,$EGREP,;t t
44399s,@CXX@,$CXX,;t t
44400s,@CXXFLAGS@,$CXXFLAGS,;t t
44401s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44402s,@RANLIB@,$RANLIB,;t t
44403s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44404s,@AR@,$AR,;t t
44405s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44406s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44407s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44408s,@STRIP@,$STRIP,;t t
44409s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44410s,@LN_S@,$LN_S,;t t
44411s,@CXXCPP@,$CXXCPP,;t t
44412s,@subdirs@,$subdirs,;t t
44413s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44414s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44415s,@GTK_LIBS@,$GTK_LIBS,;t t
44416s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
44417s,@X_CFLAGS@,$X_CFLAGS,;t t
44418s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44419s,@X_LIBS@,$X_LIBS,;t t
44420s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44421s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44422s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
44423s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44424s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
44425s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44426s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44427s,@RESCOMP@,$RESCOMP,;t t
44428s,@DEREZ@,$DEREZ,;t t
44429s,@SETFILE@,$SETFILE,;t t
44430s,@LIBICONV@,$LIBICONV,;t t
44431s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44432s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44433s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44434s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
44435s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44436s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
44437s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44438s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44439s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
44440s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44441s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44442s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44443s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44444s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44445s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44446s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44447s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44448s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44449s,@VENDOR@,$VENDOR,;t t
44450s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
44451s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44452s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
44453s,@WXUNIV@,$WXUNIV,;t t
44454s,@MONOLITHIC@,$MONOLITHIC,;t t
44455s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44456s,@EXTRALIBS@,$EXTRALIBS,;t t
44457s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44458s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44459s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44460s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44461s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44462s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44463s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 44464s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
44465s,@UNICODE@,$UNICODE,;t t
44466s,@BUILD@,$BUILD,;t t
44467s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44468s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
44469s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44470s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44471s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44472s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44473s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44474s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44475s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44476s,@SET_MAKE@,$SET_MAKE,;t t
44477s,@MAKE_SET@,$MAKE_SET,;t t
44478s,@ac_ct_AR@,$ac_ct_AR,;t t
44479s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44480s,@NM@,$NM,;t t
44481s,@ac_ct_NM@,$ac_ct_NM,;t t
44482s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44483s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44484s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44485s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44486s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44487s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 44488s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
44489s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44490s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 44491s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
44492s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44493s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44494s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44495s,@LIBPREFIX@,$LIBPREFIX,;t t
44496s,@LIBEXT@,$LIBEXT,;t t
44497s,@DLLPREFIX@,$DLLPREFIX,;t t
44498s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44499s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44500s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44501s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44502s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44503s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44504s,@PIC_FLAG@,$PIC_FLAG,;t t
44505s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44506s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44507s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44508s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44509s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44510s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44511s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44512s,@GCC_PCH@,$GCC_PCH,;t t
44513s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
44514s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
44515s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
44516s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
44517s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
44518s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
44519s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
44520s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
44521s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
44522s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
44523s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
44524s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
44525s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
44526s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
44527s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
44528s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
44529s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
44530s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 44531s,@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 44532s,@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 44533s,@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 44534s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 44535s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44536s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
44537s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 44538s,@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 44539s,@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 44540s,@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 44541s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 44542s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
44543s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
44544s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
44545s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
44546s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
44547s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
44548s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
44549s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
44550s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 44551s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
44552s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
44553s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
44554s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 44555s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 44556s,@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
44557s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
44558s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
44559s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
44560s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 44561s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
44562s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
44563s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
44564s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
44565s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
44566s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
44567s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
44568s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
44569s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
44570s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
44571s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
44572s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
44573s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
44574s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
44575s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44576s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44577s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
52ada004 44578s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44579s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
44580s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
44581s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
44582s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
44583s,@COND_SHARED_1@,$COND_SHARED_1,;t t
44584s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
52ada004 44585s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 44586s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 44587s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 44588s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
44589s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
44590s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
44591s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
44592s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
44593s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
44594s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
44595s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
44596s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
44597s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
44598s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
44599s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
44600s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
44601s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
44602s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
44603s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
44604s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
44605s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
44606s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
44607s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
44608s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
44609s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
44610s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
44611s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
44612s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
44613s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
44614s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
44615s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
44616s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
44617s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
44618s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
44619s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44620s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44621s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 44622s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 44623s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 44624s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
44625s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
44626s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e
SC
44627s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
44628s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
44629s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
44630s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
44631s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
44632s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 44633s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 44634s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 44635s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
44636s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
44637s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
44638s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
44639s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
44640s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
44641s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
44642s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
44643s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 44644s,@SHARED@,$SHARED,;t t
a848cd7e
SC
44645s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
44646s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
44647s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
44648s,@USE_GUI@,$USE_GUI,;t t
44649s,@AFMINSTALL@,$AFMINSTALL,;t t
44650s,@WIN32INSTALL@,$WIN32INSTALL,;t t
44651s,@TOOLKIT@,$TOOLKIT,;t t
44652s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 44653s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 44654s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
44655s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
44656s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 44657s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
44658s,@WIDGET_SET@,$WIDGET_SET,;t t
44659s,@WX_RELEASE@,$WX_RELEASE,;t t
44660s,@WX_VERSION@,$WX_VERSION,;t t
44661s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
44662s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
44663s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 44664s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
44665s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
44666s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
44667s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
44668s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 44669s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
44670s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
44671s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 44672s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 44673s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
44674s,@DISTDIR@,$DISTDIR,;t t
44675s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
44676s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
44677s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
44678s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
44679s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
44680s,@RESFLAGS@,$RESFLAGS,;t t
44681s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
44682s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
44683s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
44684s,@LIBWXMACRES@,$LIBWXMACRES,;t t
44685s,@MACRESCOMP@,$MACRESCOMP,;t t
44686s,@MACSETFILE@,$MACSETFILE,;t t
44687s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
44688s,@GCC@,$GCC,;t t
a848cd7e 44689s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
44690s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
44691s,@LIBOBJS@,$LIBOBJS,;t t
44692s,@LTLIBOBJS@,$LTLIBOBJS,;t t
44693CEOF
44694
44695_ACEOF
44696
44697 cat >>$CONFIG_STATUS <<\_ACEOF
44698 # Split the substitutions into bite-sized pieces for seds with
44699 # small command number limits, like on Digital OSF/1 and HP-UX.
44700 ac_max_sed_lines=48
44701 ac_sed_frag=1 # Number of current file.
44702 ac_beg=1 # First line for current file.
44703 ac_end=$ac_max_sed_lines # Line after last line for current file.
44704 ac_more_lines=:
44705 ac_sed_cmds=
44706 while $ac_more_lines; do
44707 if test $ac_beg -gt 1; then
44708 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44709 else
44710 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44711 fi
44712 if test ! -s $tmp/subs.frag; then
44713 ac_more_lines=false
44714 else
44715 # The purpose of the label and of the branching condition is to
44716 # speed up the sed processing (if there are no `@' at all, there
44717 # is no need to browse any of the substitutions).
44718 # These are the two extra sed commands mentioned above.
44719 (echo ':t
44720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44721 if test -z "$ac_sed_cmds"; then
ac1cb8d3 44722 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 44723 else
ac1cb8d3 44724 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
44725 fi
44726 ac_sed_frag=`expr $ac_sed_frag + 1`
44727 ac_beg=$ac_end
44728 ac_end=`expr $ac_end + $ac_max_sed_lines`
44729 fi
44730 done
44731 if test -z "$ac_sed_cmds"; then
44732 ac_sed_cmds=cat
44733 fi
44734fi # test -n "$CONFIG_FILES"
44735
44736_ACEOF
44737cat >>$CONFIG_STATUS <<\_ACEOF
44738for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
44739 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44740 case $ac_file in
44741 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44742 cat >$tmp/stdin
44743 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44744 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44745 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44746 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44747 * ) ac_file_in=$ac_file.in ;;
44748 esac
44749
44750 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
44751 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44752$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44753 X"$ac_file" : 'X\(//\)[^/]' \| \
44754 X"$ac_file" : 'X\(//\)$' \| \
44755 X"$ac_file" : 'X\(/\)' \| \
44756 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44757echo X"$ac_file" |
44758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44759 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44760 /^X\(\/\/\)$/{ s//\1/; q; }
44761 /^X\(\/\).*/{ s//\1/; q; }
44762 s/.*/./; q'`
44763 { if $as_mkdir_p; then
44764 mkdir -p "$ac_dir"
44765 else
44766 as_dir="$ac_dir"
44767 as_dirs=
44768 while test ! -d "$as_dir"; do
44769 as_dirs="$as_dir $as_dirs"
44770 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44771$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44772 X"$as_dir" : 'X\(//\)[^/]' \| \
44773 X"$as_dir" : 'X\(//\)$' \| \
44774 X"$as_dir" : 'X\(/\)' \| \
44775 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44776echo X"$as_dir" |
44777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44779 /^X\(\/\/\)$/{ s//\1/; q; }
44780 /^X\(\/\).*/{ s//\1/; q; }
44781 s/.*/./; q'`
44782 done
44783 test ! -n "$as_dirs" || mkdir $as_dirs
44784 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44785echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44786 { (exit 1); exit 1; }; }; }
44787
44788 ac_builddir=.
44789
44790if test "$ac_dir" != .; then
44791 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44792 # A "../" for each directory in $ac_dir_suffix.
44793 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44794else
44795 ac_dir_suffix= ac_top_builddir=
44796fi
44797
44798case $srcdir in
44799 .) # No --srcdir option. We are building in place.
44800 ac_srcdir=.
44801 if test -z "$ac_top_builddir"; then
44802 ac_top_srcdir=.
44803 else
44804 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44805 fi ;;
44806 [\\/]* | ?:[\\/]* ) # Absolute path.
44807 ac_srcdir=$srcdir$ac_dir_suffix;
44808 ac_top_srcdir=$srcdir ;;
44809 *) # Relative path.
44810 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44811 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44812esac
ac1cb8d3
VS
44813
44814# Do not use `cd foo && pwd` to compute absolute paths, because
44815# the directories may not exist.
44816case `pwd` in
44817.) ac_abs_builddir="$ac_dir";;
44818*)
44819 case "$ac_dir" in
44820 .) ac_abs_builddir=`pwd`;;
44821 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44822 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44823 esac;;
44824esac
44825case $ac_abs_builddir in
44826.) ac_abs_top_builddir=${ac_top_builddir}.;;
44827*)
44828 case ${ac_top_builddir}. in
44829 .) ac_abs_top_builddir=$ac_abs_builddir;;
44830 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44831 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44832 esac;;
44833esac
44834case $ac_abs_builddir in
44835.) ac_abs_srcdir=$ac_srcdir;;
44836*)
44837 case $ac_srcdir in
44838 .) ac_abs_srcdir=$ac_abs_builddir;;
44839 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44840 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44841 esac;;
44842esac
44843case $ac_abs_builddir in
44844.) ac_abs_top_srcdir=$ac_top_srcdir;;
44845*)
44846 case $ac_top_srcdir in
44847 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44848 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44849 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44850 esac;;
44851esac
a848cd7e
SC
44852
44853
44854 case $INSTALL in
44855 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44856 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
44857 esac
44858
a848cd7e
SC
44859 # Let's still pretend it is `configure' which instantiates (i.e., don't
44860 # use $as_me), people would be surprised to read:
44861 # /* config.h. Generated by config.status. */
44862 if test x"$ac_file" = x-; then
44863 configure_input=
44864 else
44865 configure_input="$ac_file. "
44866 fi
44867 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 44868 sed 's,.*/,,'` by configure."
a848cd7e
SC
44869
44870 # First look for the input files in the build tree, otherwise in the
44871 # src tree.
44872 ac_file_inputs=`IFS=:
44873 for f in $ac_file_in; do
44874 case $f in
44875 -) echo $tmp/stdin ;;
44876 [\\/$]*)
ac1cb8d3
VS
44877 # Absolute (can't be DOS-style, as IFS=:)
44878 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44879echo "$as_me: error: cannot find input file: $f" >&2;}
44880 { (exit 1); exit 1; }; }
ac1cb8d3 44881 echo "$f";;
a848cd7e 44882 *) # Relative
ac1cb8d3
VS
44883 if test -f "$f"; then
44884 # Build tree
44885 echo "$f"
44886 elif test -f "$srcdir/$f"; then
44887 # Source tree
44888 echo "$srcdir/$f"
44889 else
44890 # /dev/null tree
44891 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44892echo "$as_me: error: cannot find input file: $f" >&2;}
44893 { (exit 1); exit 1; }; }
ac1cb8d3 44894 fi;;
a848cd7e
SC
44895 esac
44896 done` || { (exit 1); exit 1; }
9dd0f6c2
DE
44897
44898 if test x"$ac_file" != x-; then
44899 { echo "$as_me:$LINENO: creating $ac_file" >&5
44900echo "$as_me: creating $ac_file" >&6;}
44901 rm -f "$ac_file"
44902 fi
a848cd7e
SC
44903_ACEOF
44904cat >>$CONFIG_STATUS <<_ACEOF
44905 sed "$ac_vpsub
44906$extrasub
44907_ACEOF
44908cat >>$CONFIG_STATUS <<\_ACEOF
44909:t
44910/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44911s,@configure_input@,$configure_input,;t t
44912s,@srcdir@,$ac_srcdir,;t t
44913s,@abs_srcdir@,$ac_abs_srcdir,;t t
44914s,@top_srcdir@,$ac_top_srcdir,;t t
44915s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
44916s,@builddir@,$ac_builddir,;t t
44917s,@abs_builddir@,$ac_abs_builddir,;t t
44918s,@top_builddir@,$ac_top_builddir,;t t
44919s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
44920s,@INSTALL@,$ac_INSTALL,;t t
44921" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
44922 rm -f $tmp/stdin
44923 if test x"$ac_file" != x-; then
44924 mv $tmp/out $ac_file
44925 else
44926 cat $tmp/out
44927 rm -f $tmp/out
44928 fi
44929
ceec2216
RL
44930 # Run the commands associated with the file.
44931 case $ac_file in
44932 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
44933 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
44934 esac
a848cd7e
SC
44935done
44936_ACEOF
44937cat >>$CONFIG_STATUS <<\_ACEOF
44938
44939#
44940# CONFIG_HEADER section.
44941#
44942
44943# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
44944# NAME is the cpp macro being defined and VALUE is the value it is being given.
44945#
44946# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
44947ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
44948ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
44949ac_dC=' '
44950ac_dD=',;t'
44951# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 44952ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
44953ac_uB='$,\1#\2define\3'
44954ac_uC=' '
44955ac_uD=',;t'
44956
44957for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
44958 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44959 case $ac_file in
44960 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44961 cat >$tmp/stdin
44962 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44963 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44964 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44965 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44966 * ) ac_file_in=$ac_file.in ;;
44967 esac
44968
44969 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
44970echo "$as_me: creating $ac_file" >&6;}
44971
44972 # First look for the input files in the build tree, otherwise in the
44973 # src tree.
44974 ac_file_inputs=`IFS=:
44975 for f in $ac_file_in; do
44976 case $f in
44977 -) echo $tmp/stdin ;;
44978 [\\/$]*)
ac1cb8d3
VS
44979 # Absolute (can't be DOS-style, as IFS=:)
44980 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44981echo "$as_me: error: cannot find input file: $f" >&2;}
44982 { (exit 1); exit 1; }; }
ac1cb8d3
VS
44983 # Do quote $f, to prevent DOS paths from being IFS'd.
44984 echo "$f";;
a848cd7e 44985 *) # Relative
ac1cb8d3
VS
44986 if test -f "$f"; then
44987 # Build tree
44988 echo "$f"
44989 elif test -f "$srcdir/$f"; then
44990 # Source tree
44991 echo "$srcdir/$f"
44992 else
44993 # /dev/null tree
44994 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44995echo "$as_me: error: cannot find input file: $f" >&2;}
44996 { (exit 1); exit 1; }; }
ac1cb8d3 44997 fi;;
a848cd7e
SC
44998 esac
44999 done` || { (exit 1); exit 1; }
45000 # Remove the trailing spaces.
ac1cb8d3 45001 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
45002
45003_ACEOF
45004
45005# Transform confdefs.h into two sed scripts, `conftest.defines' and
45006# `conftest.undefs', that substitutes the proper values into
45007# config.h.in to produce config.h. The first handles `#define'
45008# templates, and the second `#undef' templates.
45009# And first: Protect against being on the right side of a sed subst in
45010# config.status. Protect against being in an unquoted here document
45011# in config.status.
45012rm -f conftest.defines conftest.undefs
45013# Using a here document instead of a string reduces the quoting nightmare.
45014# Putting comments in sed scripts is not portable.
45015#
45016# `end' is used to avoid that the second main sed command (meant for
45017# 0-ary CPP macros) applies to n-ary macro definitions.
45018# See the Autoconf documentation for `clear'.
45019cat >confdef2sed.sed <<\_ACEOF
45020s/[\\&,]/\\&/g
45021s,[\\$`],\\&,g
45022t clear
45023: clear
ac1cb8d3 45024s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 45025t end
ac1cb8d3 45026s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
45027: end
45028_ACEOF
45029# If some macros were called several times there might be several times
45030# the same #defines, which is useless. Nevertheless, we may not want to
45031# sort them, since we want the *last* AC-DEFINE to be honored.
45032uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45033sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45034rm -f confdef2sed.sed
45035
45036# This sed command replaces #undef with comments. This is necessary, for
45037# example, in the case of _POSIX_SOURCE, which is predefined and required
45038# on some systems where configure will not decide to define it.
45039cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 45040s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
45041_ACEOF
45042
45043# Break up conftest.defines because some shells have a limit on the size
45044# of here documents, and old seds have small limits too (100 cmds).
45045echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 45046echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
45047echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45048echo ' :' >>$CONFIG_STATUS
45049rm -f conftest.tail
45050while grep . conftest.defines >/dev/null
45051do
45052 # Write a limited-size here document to $tmp/defines.sed.
45053 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45054 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 45055 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
45056 # Work around the forget-to-reset-the-flag bug.
45057 echo 't clr' >>$CONFIG_STATUS
45058 echo ': clr' >>$CONFIG_STATUS
45059 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45060 echo 'CEOF
45061 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45062 rm -f $tmp/in
45063 mv $tmp/out $tmp/in
45064' >>$CONFIG_STATUS
45065 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45066 rm -f conftest.defines
45067 mv conftest.tail conftest.defines
45068done
45069rm -f conftest.defines
45070echo ' fi # grep' >>$CONFIG_STATUS
45071echo >>$CONFIG_STATUS
45072
45073# Break up conftest.undefs because some shells have a limit on the size
45074# of here documents, and old seds have small limits too (100 cmds).
45075echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
45076rm -f conftest.tail
45077while grep . conftest.undefs >/dev/null
45078do
45079 # Write a limited-size here document to $tmp/undefs.sed.
45080 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45081 # Speed up: don't consider the non `#undef'
ac1cb8d3 45082 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
45083 # Work around the forget-to-reset-the-flag bug.
45084 echo 't clr' >>$CONFIG_STATUS
45085 echo ': clr' >>$CONFIG_STATUS
45086 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45087 echo 'CEOF
45088 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45089 rm -f $tmp/in
45090 mv $tmp/out $tmp/in
45091' >>$CONFIG_STATUS
45092 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45093 rm -f conftest.undefs
45094 mv conftest.tail conftest.undefs
45095done
45096rm -f conftest.undefs
45097
45098cat >>$CONFIG_STATUS <<\_ACEOF
45099 # Let's still pretend it is `configure' which instantiates (i.e., don't
45100 # use $as_me), people would be surprised to read:
45101 # /* config.h. Generated by config.status. */
45102 if test x"$ac_file" = x-; then
45103 echo "/* Generated by configure. */" >$tmp/config.h
45104 else
45105 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
45106 fi
45107 cat $tmp/in >>$tmp/config.h
45108 rm -f $tmp/in
45109 if test x"$ac_file" != x-; then
45110 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45111 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45112echo "$as_me: $ac_file is unchanged" >&6;}
45113 else
45114 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45115$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45116 X"$ac_file" : 'X\(//\)[^/]' \| \
45117 X"$ac_file" : 'X\(//\)$' \| \
45118 X"$ac_file" : 'X\(/\)' \| \
45119 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45120echo X"$ac_file" |
45121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45122 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45123 /^X\(\/\/\)$/{ s//\1/; q; }
45124 /^X\(\/\).*/{ s//\1/; q; }
45125 s/.*/./; q'`
45126 { if $as_mkdir_p; then
45127 mkdir -p "$ac_dir"
45128 else
45129 as_dir="$ac_dir"
45130 as_dirs=
45131 while test ! -d "$as_dir"; do
45132 as_dirs="$as_dir $as_dirs"
45133 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45134$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45135 X"$as_dir" : 'X\(//\)[^/]' \| \
45136 X"$as_dir" : 'X\(//\)$' \| \
45137 X"$as_dir" : 'X\(/\)' \| \
45138 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45139echo X"$as_dir" |
45140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45141 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45142 /^X\(\/\/\)$/{ s//\1/; q; }
45143 /^X\(\/\).*/{ s//\1/; q; }
45144 s/.*/./; q'`
45145 done
45146 test ! -n "$as_dirs" || mkdir $as_dirs
45147 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45148echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45149 { (exit 1); exit 1; }; }; }
45150
45151 rm -f $ac_file
45152 mv $tmp/config.h $ac_file
45153 fi
45154 else
45155 cat $tmp/config.h
45156 rm -f $tmp/config.h
45157 fi
45158done
45159_ACEOF
45160cat >>$CONFIG_STATUS <<\_ACEOF
45161
45162#
45163# CONFIG_COMMANDS section.
45164#
45165for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
45166 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
45167 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
45168 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
45169$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45170 X"$ac_dest" : 'X\(//\)[^/]' \| \
45171 X"$ac_dest" : 'X\(//\)$' \| \
45172 X"$ac_dest" : 'X\(/\)' \| \
45173 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45174echo X"$ac_dest" |
45175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45176 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45177 /^X\(\/\/\)$/{ s//\1/; q; }
45178 /^X\(\/\).*/{ s//\1/; q; }
45179 s/.*/./; q'`
ac1cb8d3
VS
45180 { if $as_mkdir_p; then
45181 mkdir -p "$ac_dir"
45182 else
45183 as_dir="$ac_dir"
45184 as_dirs=
45185 while test ! -d "$as_dir"; do
45186 as_dirs="$as_dir $as_dirs"
45187 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45188$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45189 X"$as_dir" : 'X\(//\)[^/]' \| \
45190 X"$as_dir" : 'X\(//\)$' \| \
45191 X"$as_dir" : 'X\(/\)' \| \
45192 . : '\(.\)' 2>/dev/null ||
45193echo X"$as_dir" |
45194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45196 /^X\(\/\/\)$/{ s//\1/; q; }
45197 /^X\(\/\).*/{ s//\1/; q; }
45198 s/.*/./; q'`
45199 done
45200 test ! -n "$as_dirs" || mkdir $as_dirs
45201 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45202echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45203 { (exit 1); exit 1; }; }; }
45204
a848cd7e
SC
45205 ac_builddir=.
45206
45207if test "$ac_dir" != .; then
45208 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45209 # A "../" for each directory in $ac_dir_suffix.
45210 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45211else
45212 ac_dir_suffix= ac_top_builddir=
45213fi
45214
45215case $srcdir in
45216 .) # No --srcdir option. We are building in place.
45217 ac_srcdir=.
45218 if test -z "$ac_top_builddir"; then
45219 ac_top_srcdir=.
45220 else
45221 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45222 fi ;;
45223 [\\/]* | ?:[\\/]* ) # Absolute path.
45224 ac_srcdir=$srcdir$ac_dir_suffix;
45225 ac_top_srcdir=$srcdir ;;
45226 *) # Relative path.
45227 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45228 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45229esac
ac1cb8d3
VS
45230
45231# Do not use `cd foo && pwd` to compute absolute paths, because
45232# the directories may not exist.
45233case `pwd` in
45234.) ac_abs_builddir="$ac_dir";;
45235*)
45236 case "$ac_dir" in
45237 .) ac_abs_builddir=`pwd`;;
45238 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45239 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45240 esac;;
45241esac
45242case $ac_abs_builddir in
45243.) ac_abs_top_builddir=${ac_top_builddir}.;;
45244*)
45245 case ${ac_top_builddir}. in
45246 .) ac_abs_top_builddir=$ac_abs_builddir;;
45247 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45248 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45249 esac;;
45250esac
45251case $ac_abs_builddir in
45252.) ac_abs_srcdir=$ac_srcdir;;
45253*)
45254 case $ac_srcdir in
45255 .) ac_abs_srcdir=$ac_abs_builddir;;
45256 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45257 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45258 esac;;
45259esac
45260case $ac_abs_builddir in
45261.) ac_abs_top_srcdir=$ac_top_srcdir;;
45262*)
45263 case $ac_top_srcdir in
45264 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45265 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45266 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45267 esac;;
45268esac
a848cd7e
SC
45269
45270
45271 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45272echo "$as_me: executing $ac_dest commands" >&6;}
45273 case $ac_dest in
ceec2216
RL
45274 wx-config ) rm -f wx-config
45275 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45276 ;;
a848cd7e
SC
45277 esac
45278done
45279_ACEOF
45280
45281cat >>$CONFIG_STATUS <<\_ACEOF
45282
45283{ (exit 0); exit 0; }
45284_ACEOF
45285chmod +x $CONFIG_STATUS
45286ac_clean_files=$ac_clean_files_save
45287
45288
45289# configure is writing to config.log, and then calls config.status.
45290# config.status does its own redirection, appending to config.log.
45291# Unfortunately, on DOS this fails, as config.log is still kept open
45292# by configure, so config.status won't be able to write to it; its
45293# output is simply discarded. So we exec the FD to /dev/null,
45294# effectively closing config.log, so it can be properly (re)opened and
45295# appended to by config.status. When coming back to configure, we
45296# need to make the FD available again.
45297if test "$no_create" != yes; then
45298 ac_cs_success=:
45299 ac_config_status_args=
45300 test "$silent" = yes &&
45301 ac_config_status_args="$ac_config_status_args --quiet"
45302 exec 5>/dev/null
45303 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45304 exec 5>>config.log
45305 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45306 # would make configure fail if this is the last instruction.
45307 $ac_cs_success || { (exit 1); exit 1; }
45308fi
45309
45310#
45311# CONFIG_SUBDIRS section.
45312#
45313if test "$no_recursion" != yes; then
45314
45315 # Remove --cache-file and --srcdir arguments so they do not pile up.
45316 ac_sub_configure_args=
45317 ac_prev=
45318 for ac_arg in $ac_configure_args; do
45319 if test -n "$ac_prev"; then
45320 ac_prev=
45321 continue
45322 fi
45323 case $ac_arg in
45324 -cache-file | --cache-file | --cache-fil | --cache-fi \
45325 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45326 ac_prev=cache_file ;;
45327 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45328 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45329 | --c=*)
45330 ;;
45331 --config-cache | -C)
45332 ;;
45333 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45334 ac_prev=srcdir ;;
45335 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45336 ;;
45337 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45338 ac_prev=prefix ;;
45339 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45340 ;;
45341 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45342 esac
45343 done
45344
45345 # Always prepend --prefix to ensure using the same prefix
45346 # in subdir configurations.
45347 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45348
45349 ac_popdir=`pwd`
45350 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45351
45352 # Do not complain, so a configure script can configure whichever
45353 # parts of a large source tree are present.
45354 test -d $srcdir/$ac_dir || continue
45355
45356 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45357echo "$as_me: configuring in $ac_dir" >&6;}
45358 { if $as_mkdir_p; then
45359 mkdir -p "$ac_dir"
45360 else
45361 as_dir="$ac_dir"
45362 as_dirs=
45363 while test ! -d "$as_dir"; do
45364 as_dirs="$as_dir $as_dirs"
45365 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45366$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45367 X"$as_dir" : 'X\(//\)[^/]' \| \
45368 X"$as_dir" : 'X\(//\)$' \| \
45369 X"$as_dir" : 'X\(/\)' \| \
45370 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45371echo X"$as_dir" |
45372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45373 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45374 /^X\(\/\/\)$/{ s//\1/; q; }
45375 /^X\(\/\).*/{ s//\1/; q; }
45376 s/.*/./; q'`
45377 done
45378 test ! -n "$as_dirs" || mkdir $as_dirs
45379 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45380echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45381 { (exit 1); exit 1; }; }; }
45382
45383 ac_builddir=.
45384
45385if test "$ac_dir" != .; then
45386 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45387 # A "../" for each directory in $ac_dir_suffix.
45388 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45389else
45390 ac_dir_suffix= ac_top_builddir=
45391fi
45392
45393case $srcdir in
45394 .) # No --srcdir option. We are building in place.
45395 ac_srcdir=.
45396 if test -z "$ac_top_builddir"; then
45397 ac_top_srcdir=.
45398 else
45399 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45400 fi ;;
45401 [\\/]* | ?:[\\/]* ) # Absolute path.
45402 ac_srcdir=$srcdir$ac_dir_suffix;
45403 ac_top_srcdir=$srcdir ;;
45404 *) # Relative path.
45405 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45406 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45407esac
ac1cb8d3
VS
45408
45409# Do not use `cd foo && pwd` to compute absolute paths, because
45410# the directories may not exist.
45411case `pwd` in
45412.) ac_abs_builddir="$ac_dir";;
45413*)
45414 case "$ac_dir" in
45415 .) ac_abs_builddir=`pwd`;;
45416 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45417 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45418 esac;;
45419esac
45420case $ac_abs_builddir in
45421.) ac_abs_top_builddir=${ac_top_builddir}.;;
45422*)
45423 case ${ac_top_builddir}. in
45424 .) ac_abs_top_builddir=$ac_abs_builddir;;
45425 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45426 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45427 esac;;
45428esac
45429case $ac_abs_builddir in
45430.) ac_abs_srcdir=$ac_srcdir;;
45431*)
45432 case $ac_srcdir in
45433 .) ac_abs_srcdir=$ac_abs_builddir;;
45434 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45435 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45436 esac;;
45437esac
45438case $ac_abs_builddir in
45439.) ac_abs_top_srcdir=$ac_top_srcdir;;
45440*)
45441 case $ac_top_srcdir in
45442 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45443 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45444 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45445 esac;;
45446esac
a848cd7e
SC
45447
45448
45449 cd $ac_dir
45450
45451 # Check for guested configure; otherwise get Cygnus style configure.
45452 if test -f $ac_srcdir/configure.gnu; then
45453 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45454 elif test -f $ac_srcdir/configure; then
45455 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45456 elif test -f $ac_srcdir/configure.in; then
45457 ac_sub_configure=$ac_configure
45458 else
45459 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45460echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45461 ac_sub_configure=
45462 fi
45463
45464 # The recursion is here.
45465 if test -n "$ac_sub_configure"; then
45466 # Make the cache file name correct relative to the subdirectory.
45467 case $cache_file in
45468 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45469 *) # Relative path.
ac1cb8d3 45470 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
45471 esac
45472
45473 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45474echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45475 # The eval makes quoting arguments work.
45476 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
45477 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45478 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
45479echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45480 { (exit 1); exit 1; }; }
45481 fi
45482
9dd0f6c2 45483 cd "$ac_popdir"
a848cd7e
SC
45484 done
45485fi
45486
45487
45488echo
77ffb593 45489echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 45490echo ""
4d4ff94c 45491echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 45492echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 45493
77ffb593
JS
45494echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
45495echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
45496echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 45497
77ffb593
JS
45498echo " What level of wxWidgets compatibility should be enabled?"
45499echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
45500echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 45501
77ffb593 45502echo " Which libraries should wxWidgets use?"
a848cd7e
SC
45503echo " jpeg ${wxUSE_LIBJPEG-none}"
45504echo " png ${wxUSE_LIBPNG-none}"
45505echo " regex ${wxUSE_REGEX}"
45506echo " tiff ${wxUSE_LIBTIFF-none}"
45507if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45508echo " xpm ${wxUSE_LIBXPM-none}"
45509fi
45510echo " zlib ${wxUSE_ZLIB}"
45511echo " odbc ${wxUSE_ODBC}"
45512echo " expat ${wxUSE_EXPAT}"
45513echo " libmspack ${wxUSE_LIBMSPACK}"
45514echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 45515echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
45516
45517echo ""
45518