]> git.saurik.com Git - wxWidgets.git/blame - configure
use #define instead of static const to avoid warnings about unused TRACE_CLIPBRD...
[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.
25bb1412 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.8.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'
25bb1412
RD
273PACKAGE_VERSION='2.8.0'
274PACKAGE_STRING='wxWidgets 2.8.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"
3ad202f9 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 wx_top_builddir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG ac_pt_PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS CAIRO_CFLAGS CAIRO_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON 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 AROPTIONS 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 dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING BK_DEPS GCC_PCH ICC_PCH BK_MAKE_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_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 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_MEDIA_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_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_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_MEDIA_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_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_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_SOVERCYGWIN_0_USE_SOVERSION_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_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_TOOLKIT_MGL COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_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_DFB COND_TOOLKIT_DFB_USE_GUI_1 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 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_MSW_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_WINCE_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_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_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_WINDOWS_IMPLIB_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 USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC 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
3ecd9f92
MW
789ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
790ac_env_PKG_CONFIG_value=$PKG_CONFIG
791ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
792ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
b3c86150
VS
793ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
794ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
795ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
796ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
797ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
798ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
799ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
800ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
3ecd9f92
MW
801ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
802ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
803ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
804ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
805ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
806ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
807ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
808ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
809ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
810ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
811ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
812ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
813ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
814ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
815ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
816ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
817ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
818ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
819ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
820ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
821ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
822ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
823ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
824ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
825ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
826ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
827ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
828ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
829ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
830ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
831ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
832ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
833ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
834ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
835ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
836ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
837ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
838ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
839ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
840ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
841ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
842ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
843ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
844ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
845ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
846ac_env_HILDON_LIBS_value=$HILDON_LIBS
847ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
848ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
64b75e64
RD
849ac_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
850ac_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
851ac_cv_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
852ac_cv_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
853ac_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
854ac_env_CAIRO_LIBS_value=$CAIRO_LIBS
855ac_cv_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
856ac_cv_env_CAIRO_LIBS_value=$CAIRO_LIBS
3ecd9f92
MW
857ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
858ac_env_GST_CFLAGS_value=$GST_CFLAGS
859ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
860ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
861ac_env_GST_LIBS_set=${GST_LIBS+set}
862ac_env_GST_LIBS_value=$GST_LIBS
863ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
864ac_cv_env_GST_LIBS_value=$GST_LIBS
a848cd7e
SC
865
866#
867# Report the --help message.
868#
869if test "$ac_init_help" = "long"; then
870 # Omit some internal or obsolete options to make the list less imposing.
871 # This message is too long to be a string in the A/UX 3.1 sh.
872 cat <<_ACEOF
25bb1412 873\`configure' configures wxWidgets 2.8.0 to adapt to many kinds of systems.
a848cd7e
SC
874
875Usage: $0 [OPTION]... [VAR=VALUE]...
876
877To assign environment variables (e.g., CC, CFLAGS...), specify them as
878VAR=VALUE. See below for descriptions of some of the useful variables.
879
880Defaults for the options are specified in brackets.
881
882Configuration:
883 -h, --help display this help and exit
884 --help=short display options specific to this package
885 --help=recursive display the short help of all the included packages
886 -V, --version display version information and exit
887 -q, --quiet, --silent do not print \`checking...' messages
888 --cache-file=FILE cache test results in FILE [disabled]
889 -C, --config-cache alias for \`--cache-file=config.cache'
890 -n, --no-create do not create output files
891 --srcdir=DIR find the sources in DIR [configure dir or \`..']
892
893_ACEOF
894
895 cat <<_ACEOF
896Installation directories:
897 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 898 [$ac_default_prefix]
a848cd7e 899 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 900 [PREFIX]
a848cd7e
SC
901
902By default, \`make install' will install all the files in
903\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
904an installation prefix other than \`$ac_default_prefix' using \`--prefix',
905for instance \`--prefix=\$HOME'.
906
907For better control, use the options below.
908
909Fine tuning of the installation directories:
910 --bindir=DIR user executables [EPREFIX/bin]
911 --sbindir=DIR system admin executables [EPREFIX/sbin]
912 --libexecdir=DIR program executables [EPREFIX/libexec]
913 --datadir=DIR read-only architecture-independent data [PREFIX/share]
914 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
915 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
916 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
917 --libdir=DIR object code libraries [EPREFIX/lib]
918 --includedir=DIR C header files [PREFIX/include]
919 --oldincludedir=DIR C header files for non-gcc [/usr/include]
920 --infodir=DIR info documentation [PREFIX/info]
921 --mandir=DIR man documentation [PREFIX/man]
922_ACEOF
923
924 cat <<\_ACEOF
925
926X features:
927 --x-includes=DIR X include files are in DIR
928 --x-libraries=DIR X library files are in DIR
929
930System types:
931 --build=BUILD configure for building on BUILD [guessed]
932 --host=HOST cross-compile to build programs to run on HOST [BUILD]
933 --target=TARGET configure for building compilers for TARGET [HOST]
934_ACEOF
935fi
936
937if test -n "$ac_init_help"; then
938 case $ac_init_help in
25bb1412 939 short | recursive ) echo "Configuration of wxWidgets 2.8.0:";;
a848cd7e
SC
940 esac
941 cat <<\_ACEOF
942
943Optional Features:
944 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
945 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
946 --enable-gui use GUI classes
77ffb593
JS
947 --enable-monolithic build wxWidgets as single library
948 --enable-plugins build parts of wxWidgets as loadable components
949 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 950 --enable-nanox use NanoX
f34ca037 951 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
952 --enable-gpe use GNOME PDA Environment features if possible
953 --enable-shared create shared library code
954 --enable-optimise create optimised code
955 --enable-debug same as debug_flag and debug_info
956 --enable-stl use STL for containers
957 --enable-omf use OMF object format
958 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
959 --enable-debug_info create code with debugging information
960 --enable-debug_gdb create code with extra GDB debugging information
961 --enable-debug_cntxt use wxDebugContext
962 --enable-mem_tracing create code with memory tracing
963 --enable-profile create code with profiling information
964 --enable-no_rtti create code without RTTI information
965 --enable-no_exceptions create code without C++ exceptions handling
966 --enable-permissive compile code disregarding strict ANSI
967 --enable-no_deps create code without dependency information
70c536f3 968 --disable-vararg_macros don't use vararg macros, even if they are supported
95768535 969 --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
970 --enable-compat24 enable wxWidgets 2.4 compatibility
971 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 972 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
973 --enable-intl use internationalization system
974 --enable-config use wxConfig (and derived) classes
975 --enable-protocols use wxProtocol and derived classes
976 --enable-ftp use wxFTP (requires wxProtocol
977 --enable-http use wxHTTP (requires wxProtocol
978 --enable-fileproto use wxFileProto class (requires wxProtocol
979 --enable-sockets use socket/network classes
980 --enable-ole use OLE classes (Win32 only)
981 --enable-dataobj use data object classes
982 --enable-ipc use interprocess communication (wxSocket etc.)
983 --enable-apple_ieee use the Apple IEEE codec
81f90336 984 --enable-arcstream use wxArchive streams
eaff0f0d 985 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 986 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
987 --enable-cmdline use wxCmdLineParser class
988 --enable-datetime use wxDateTime class
36b6448c 989 --enable-debugreport use wxDebugReport class
a848cd7e
SC
990 --enable-dialupman use dialup network classes
991 --enable-dynlib use wxLibrary class for DLL loading
992 --enable-dynamicloader use (new) wxDynamicLibrary class
993 --enable-exceptions build exception-safe library
994 --enable-ffile use wxFFile class
995 --enable-file use wxFile class
996 --enable-filesystem use virtual file systems classes
997 --enable-fontmap use font encodings conversion classes
26e422a9 998 --enable-fs_archive use virtual archive filesystems
a848cd7e 999 --enable-fs_inet use virtual HTTP/FTP filesystems
916af76f 1000 --enable-fs_zip now replaced by fs_archive
a848cd7e
SC
1001 --enable-geometry use geometry class
1002 --enable-log use logging system
1003 --enable-longlong use wxLongLong class
1004 --enable-mimetype use wxMimeTypesManager
1005 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
1006 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 1007 --enable-std_iostreams use standard C++ stream classes
59746b65 1008 --enable-std_string use standard C++ string classes
07158944 1009 --enable-stdpaths use wxStandardPaths class
a848cd7e 1010 --enable-stopwatch use wxStopWatch class
07158944 1011 --enable-streams use wxStream etc classes
a848cd7e 1012 --enable-sysoptions use wxSystemOptions
26e422a9 1013 --enable-tarstream use wxTar streams
a848cd7e
SC
1014 --enable-textbuf use wxTextBuffer class
1015 --enable-textfile use wxTextFile class
1016 --enable-timer use wxTimer class
1017 --enable-unicode compile wxString with Unicode support
1018 --enable-sound use wxSound class
3b57de8b 1019 --enable-mediactrl use wxMediaCtrl class
15291213 1020 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1021 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1022 --enable-zipstream use wxZip streams
a848cd7e 1023 --enable-url use wxURL class
ca5c6ac3 1024 --enable-variant use wxVariant class
a848cd7e
SC
1025 --enable-protocol use wxProtocol class
1026 --enable-protocol-http HTTP support in wxProtocol
1027 --enable-protocol-ftp FTP support in wxProtocol
1028 --enable-protocol-file FILE support in wxProtocol
1029 --enable-threads use threads
1030 --enable-docview use document view architecture
1031 --enable-help use help subsystem
1032 --enable-mshtmlhelp use MS HTML Help (win32)
1033 --enable-html use wxHTML sub-library
1034 --enable-htmlhelp use wxHTML-based help
9a8f0513 1035 --enable-xrc use XRC resources sub-library
3f60522a 1036 --enable-aui use AUI docking library
a848cd7e
SC
1037 --enable-constraints use layout-constraints system
1038 --enable-printarch use printing architecture
1039 --enable-mdi use multiple document interface architecture
8a7b1113 1040 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1041 --enable-loggui use standard GUI logger
1042 --enable-logwin use wxLogWindow
1043 --enable-logdialog use wxLogDialog
646b6ec1 1044 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1045 --enable-richtext use wxRichTextCtrl
f43426c1 1046 --enable-graphics_ctx use graphics context 2D drawing API
a848cd7e
SC
1047 --enable-postscript use wxPostscriptDC device context (default for gtk+)
1048 --enable-prologio not available; see contrib
1049 --enable-resources not available; see contrib
1050 --enable-clipboard use wxClipboard class
1051 --enable-dnd use Drag'n'Drop classes
1052 --enable-metafile use win32 metafiles
1053 --enable-controls use all usual controls
1054 --enable-accel use accelerators
3ea50042 1055 --enable-animatectrl use wxAnimationCtrl class
a848cd7e
SC
1056 --enable-button use wxButton class
1057 --enable-bmpbutton use wxBitmapButton class
95a46303 1058 --enable-bmpcombobox use wxBitmapComboBox class
a848cd7e
SC
1059 --enable-calendar use wxCalendarCtrl class
1060 --enable-caret use wxCaret class
1061 --enable-checkbox use wxCheckBox class
1062 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1063 --enable-choice use wxChoice class
92bbdbcd 1064 --enable-choicebook use wxChoicebook class
bd915ace 1065 --enable-collpane use wxCollapsiblePane class
e9263684 1066 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1067 --enable-combobox use wxComboBox class
a57d600f 1068 --enable-comboctrl use wxComboCtrl class
da98e9be 1069 --enable-datepick use wxDatePickerCtrl class
e9263684 1070 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1071 --enable-display use wxDisplay class
88bbc332 1072 --enable-detect_sm use code to detect X11 session manager
e9263684
VZ
1073 --enable-filepicker use wxFilePickerCtrl class
1074 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1075 --enable-gauge use wxGauge class
1076 --enable-grid use wxGrid class
1ecacba4 1077 --enable-dataviewctrl use wxDataViewCtrl class
6954625c 1078 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1079 --enable-imaglist use wxImageList class
1080 --enable-listbook use wxListbook class
1081 --enable-listbox use wxListBox class
1082 --enable-listctrl use wxListCtrl class
1083 --enable-notebook use wxNotebook class
a57d600f 1084 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1085 --enable-radiobox use wxRadioBox class
1086 --enable-radiobtn use wxRadioButton class
1087 --enable-sash use wxSashWindow class
1088 --enable-scrollbar use wxScrollBar class and scrollable windows
1089 --enable-slider use wxSlider class
1090 --enable-spinbtn use wxSpinButton class
1091 --enable-spinctrl use wxSpinCtrl class
1092 --enable-splitter use wxSplitterWindow class
1093 --enable-statbmp use wxStaticBitmap class
1094 --enable-statbox use wxStaticBox class
1095 --enable-statline use wxStaticLine class
1096 --enable-stattext use wxStaticText class
1097 --enable-statusbar use wxStatusBar class
1098 --enable-tabdialog use wxTabControl class
1099 --enable-textctrl use wxTextCtrl class
1100 --enable-togglebtn use wxToggleButton class
1101 --enable-toolbar use wxToolBar class
1102 --enable-tbarnative use native wxToolBar class
0093c2fc 1103 --enable-treebook use wxTreebook class
5ec3bc43 1104 --enable-toolbook use wxToolbook class
a848cd7e
SC
1105 --enable-treectrl use wxTreeCtrl class
1106 --enable-tipwindow use wxTipWindow class
1107 --enable-popupwin use wxPopUpWindow class
1108 --enable-commondlg use all common dialogs
319c5ed4 1109 --enable-aboutdlg use wxAboutBox
a848cd7e
SC
1110 --enable-choicedlg use wxChoiceDialog
1111 --enable-coldlg use wxColourDialog
1112 --enable-filedlg use wxFileDialog
1113 --enable-finddlg use wxFindReplaceDialog
1114 --enable-fontdlg use wxFontDialog
1115 --enable-dirdlg use wxDirDialog
1116 --enable-msgdlg use wxMessageDialog
1117 --enable-numberdlg use wxNumberEntryDialog
1118 --enable-splash use wxSplashScreen
1119 --enable-textdlg use wxTextDialog
1120 --enable-tipdlg use startup tips
1121 --enable-progressdlg use wxProgressDialog
1122 --enable-wizarddlg use wxWizard
1123 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1124 --enable-miniframe use wxMiniFrame class
1125 --enable-tooltips use wxToolTip class
1126 --enable-splines use spline drawing code
fbe2ca43 1127 --enable-mousewheel use mousewheel
a848cd7e
SC
1128 --enable-validators use wxValidator and derived classes
1129 --enable-busyinfo use wxBusyInfo
4cb1d3da 1130 --enable-joystick use wxJoystick
38b4a946 1131 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1132 --enable-dragimage use wxDragImage
1133 --enable-accessibility enable accessibility support
38b4a946 1134 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1135 --enable-palette use wxPalette class
1136 --enable-image use wxImage class
1137 --enable-gif use gif images (GIF file format)
1138 --enable-pcx use pcx images (PCX file format)
bb9e79c0 1139 --enable-tga use tga images (TGA file format)
a848cd7e
SC
1140 --enable-iff use iff images (IFF file format)
1141 --enable-pnm use pnm images (PNM file format)
1142 --enable-xpm use xpm images (XPM file format)
1143 --enable-icocur use Windows ICO and CUR formats
77ffb593 1144 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1145 --enable-vendor=VENDOR vendor name (win32 DLL only)
1146 --disable-largefile omit support for large files
1147 --disable-gtktest do not try to compile and run a test GTK+ program
1148 --disable-gtktest Do not try to compile and run a test GTK program
1149 --disable-sdltest Do not try to compile and run a test SDL program
1150 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1151 --disable-dependency-tracking
1152 don't use dependency tracking even if the compiler
1153 can
ebee3cd0
VS
1154 --disable-precomp-headers
1155 don't use precompiled headers even if compiler can
a848cd7e
SC
1156
1157Optional Packages:
1158 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1159 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1160 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1161 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1162 --with-motif use Motif/Lesstif
1163 --with-mac use Mac OS X
1164 --with-cocoa use Cocoa
1165 --with-wine use Wine
1166 --with-msw use MS-Windows
1167 --with-pm use OS/2 Presentation Manager
1168 --with-mgl use SciTech MGL
b3c86150 1169 --with-directfb use DirectFB
a848cd7e
SC
1170 --with-microwin use MicroWindows
1171 --with-x11 use X11
1172 --with-libpng use libpng (PNG image format)
1173 --with-libjpeg use libjpeg (JPEG file format)
1174 --with-libtiff use libtiff (TIFF file format)
1175 --with-libxpm use libxpm (XPM file format)
1176 --with-libmspack use libmspack (CHM help files loading)
1177 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1178 --with-gnomeprint use GNOME print for printing under GNOME
1179 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1180 --with-hildon use Hildon framework for Nokia 770
a848cd7e 1181 --with-opengl use OpenGL (or Mesa)
4353a8df 1182 --with-themes=all|list use only the specified comma-separated list of wxUniversal themes
a848cd7e
SC
1183 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1184 --with-regex enable support for wxRegEx class
1185 --with-zlib use zlib for LZW compression
1186 --with-odbc use the IODBC and wxODBC classes
1187 --with-expat enable XML support using expat parser
ceec2216 1188 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1189 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1190 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1191 --with-x use the X Window System
1192 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1193 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1194 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1195 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1196 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1197
1198Some influential environment variables:
dcc1b6ad
VS
1199 CC C compiler command
1200 CFLAGS C compiler flags
1201 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1202 nonstandard directory <lib dir>
1203 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1204 headers in a nonstandard directory <include dir>
1205 CPP C preprocessor
1206 CXX C++ compiler command
1207 CXXFLAGS C++ compiler flags
1208 CXXCPP C++ preprocessor
3ecd9f92 1209 PKG_CONFIG path to pkg-config utility
b3c86150
VS
1210 DIRECTFB_CFLAGS
1211 C compiler flags for DIRECTFB, overriding pkg-config
1212 DIRECTFB_LIBS
1213 linker flags for DIRECTFB, overriding pkg-config
3ecd9f92
MW
1214 PANGOX_CFLAGS
1215 C compiler flags for PANGOX, overriding pkg-config
1216 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1217 PANGOFT2_CFLAGS
1218 C compiler flags for PANGOFT2, overriding pkg-config
1219 PANGOFT2_LIBS
1220 linker flags for PANGOFT2, overriding pkg-config
1221 PANGOXFT_CFLAGS
1222 C compiler flags for PANGOXFT, overriding pkg-config
1223 PANGOXFT_LIBS
1224 linker flags for PANGOXFT, overriding pkg-config
1225 LIBGNOMEPRINTUI_CFLAGS
1226 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1227 LIBGNOMEPRINTUI_LIBS
1228 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1229 GNOMEVFS_CFLAGS
1230 C compiler flags for GNOMEVFS, overriding pkg-config
1231 GNOMEVFS_LIBS
1232 linker flags for GNOMEVFS, overriding pkg-config
1233 HILDON_CFLAGS
1234 C compiler flags for HILDON, overriding pkg-config
1235 HILDON_LIBS linker flags for HILDON, overriding pkg-config
64b75e64
RD
1236 CAIRO_CFLAGS
1237 C compiler flags for CAIRO, overriding pkg-config
1238 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
3ecd9f92
MW
1239 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1240 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1241
1242Use these variables to override the choices made by `configure' or to help
1243it to find libraries and programs with nonstandard names/locations.
1244
77ffb593 1245Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1246_ACEOF
1247fi
1248
1249if test "$ac_init_help" = "recursive"; then
1250 # If there are subdirs, report their specific --help.
1251 ac_popdir=`pwd`
1252 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1253 test -d $ac_dir || continue
1254 ac_builddir=.
1255
1256if test "$ac_dir" != .; then
1257 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1258 # A "../" for each directory in $ac_dir_suffix.
1259 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1260else
1261 ac_dir_suffix= ac_top_builddir=
1262fi
1263
1264case $srcdir in
1265 .) # No --srcdir option. We are building in place.
1266 ac_srcdir=.
1267 if test -z "$ac_top_builddir"; then
1268 ac_top_srcdir=.
1269 else
1270 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1271 fi ;;
1272 [\\/]* | ?:[\\/]* ) # Absolute path.
1273 ac_srcdir=$srcdir$ac_dir_suffix;
1274 ac_top_srcdir=$srcdir ;;
1275 *) # Relative path.
1276 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1277 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1278esac
ac1cb8d3
VS
1279
1280# Do not use `cd foo && pwd` to compute absolute paths, because
1281# the directories may not exist.
1282case `pwd` in
1283.) ac_abs_builddir="$ac_dir";;
1284*)
1285 case "$ac_dir" in
1286 .) ac_abs_builddir=`pwd`;;
1287 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1288 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1289 esac;;
1290esac
1291case $ac_abs_builddir in
1292.) ac_abs_top_builddir=${ac_top_builddir}.;;
1293*)
1294 case ${ac_top_builddir}. in
1295 .) ac_abs_top_builddir=$ac_abs_builddir;;
1296 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1297 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1298 esac;;
1299esac
1300case $ac_abs_builddir in
1301.) ac_abs_srcdir=$ac_srcdir;;
1302*)
1303 case $ac_srcdir in
1304 .) ac_abs_srcdir=$ac_abs_builddir;;
1305 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1306 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1307 esac;;
1308esac
1309case $ac_abs_builddir in
1310.) ac_abs_top_srcdir=$ac_top_srcdir;;
1311*)
1312 case $ac_top_srcdir in
1313 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1314 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1315 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1316 esac;;
1317esac
a848cd7e
SC
1318
1319 cd $ac_dir
1320 # Check for guested configure; otherwise get Cygnus style configure.
1321 if test -f $ac_srcdir/configure.gnu; then
1322 echo
1323 $SHELL $ac_srcdir/configure.gnu --help=recursive
1324 elif test -f $ac_srcdir/configure; then
1325 echo
1326 $SHELL $ac_srcdir/configure --help=recursive
1327 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1328 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1329 echo
1330 $ac_configure --help
1331 else
1332 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1333 fi
bb9e79c0 1334 cd "$ac_popdir"
a848cd7e
SC
1335 done
1336fi
1337
1338test -n "$ac_init_help" && exit 0
1339if $ac_init_version; then
1340 cat <<\_ACEOF
25bb1412 1341wxWidgets configure 2.8.0
ac1cb8d3 1342generated by GNU Autoconf 2.59
a848cd7e 1343
ac1cb8d3 1344Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1345This configure script is free software; the Free Software Foundation
1346gives unlimited permission to copy, distribute and modify it.
1347_ACEOF
1348 exit 0
1349fi
1350exec 5>config.log
1351cat >&5 <<_ACEOF
1352This file contains any messages produced by compilers while
1353running configure, to aid debugging if configure makes a mistake.
1354
25bb1412 1355It was created by wxWidgets $as_me 2.8.0, which was
ac1cb8d3 1356generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1357
1358 $ $0 $@
1359
1360_ACEOF
1361{
1362cat <<_ASUNAME
1363## --------- ##
1364## Platform. ##
1365## --------- ##
1366
1367hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1368uname -m = `(uname -m) 2>/dev/null || echo unknown`
1369uname -r = `(uname -r) 2>/dev/null || echo unknown`
1370uname -s = `(uname -s) 2>/dev/null || echo unknown`
1371uname -v = `(uname -v) 2>/dev/null || echo unknown`
1372
1373/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1374/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1375
1376/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1377/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1378/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1379hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1380/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1381/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1382/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1383
1384_ASUNAME
1385
1386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387for as_dir in $PATH
1388do
1389 IFS=$as_save_IFS
1390 test -z "$as_dir" && as_dir=.
1391 echo "PATH: $as_dir"
1392done
1393
1394} >&5
1395
1396cat >&5 <<_ACEOF
1397
1398
1399## ----------- ##
1400## Core tests. ##
1401## ----------- ##
1402
1403_ACEOF
1404
1405
1406# Keep a trace of the command line.
1407# Strip out --no-create and --no-recursion so they do not pile up.
1408# Strip out --silent because we don't want to record it for future runs.
1409# Also quote any args containing shell meta-characters.
1410# Make two passes to allow for proper duplicate-argument suppression.
1411ac_configure_args=
1412ac_configure_args0=
1413ac_configure_args1=
1414ac_sep=
1415ac_must_keep_next=false
1416for ac_pass in 1 2
1417do
1418 for ac_arg
1419 do
1420 case $ac_arg in
1421 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1422 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1423 | -silent | --silent | --silen | --sile | --sil)
1424 continue ;;
1425 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1426 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1427 esac
1428 case $ac_pass in
1429 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1430 2)
1431 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1432 if test $ac_must_keep_next = true; then
ac1cb8d3 1433 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1434 else
ac1cb8d3
VS
1435 case $ac_arg in
1436 *=* | --config-cache | -C | -disable-* | --disable-* \
1437 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1438 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1439 | -with-* | --with-* | -without-* | --without-* | --x)
1440 case "$ac_configure_args0 " in
1441 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1442 esac
1443 ;;
1444 -* ) ac_must_keep_next=true ;;
1445 esac
a848cd7e
SC
1446 fi
1447 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1448 # Get rid of the leading space.
1449 ac_sep=" "
1450 ;;
1451 esac
1452 done
1453done
1454$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1455$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1456
1457# When interrupted or exit'd, cleanup temporary files, and complete
1458# config.log. We remove comments because anyway the quotes in there
1459# would cause problems or look ugly.
1460# WARNING: Be sure not to use single quotes in there, as some shells,
1461# such as our DU 5.0 friend, will then `close' the trap.
1462trap 'exit_status=$?
1463 # Save into config.log some information that might help in debugging.
1464 {
1465 echo
1466
1467 cat <<\_ASBOX
1468## ---------------- ##
1469## Cache variables. ##
1470## ---------------- ##
1471_ASBOX
1472 echo
1473 # The following way of writing the cache mishandles newlines in values,
1474{
1475 (set) 2>&1 |
1476 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1477 *ac_space=\ *)
1478 sed -n \
ac1cb8d3
VS
1479 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1481 ;;
1482 *)
1483 sed -n \
ac1cb8d3 1484 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1485 ;;
1486 esac;
1487}
1488 echo
1489
1490 cat <<\_ASBOX
1491## ----------------- ##
1492## Output variables. ##
1493## ----------------- ##
1494_ASBOX
1495 echo
1496 for ac_var in $ac_subst_vars
1497 do
1498 eval ac_val=$`echo $ac_var`
1499 echo "$ac_var='"'"'$ac_val'"'"'"
1500 done | sort
1501 echo
1502
1503 if test -n "$ac_subst_files"; then
1504 cat <<\_ASBOX
1505## ------------- ##
1506## Output files. ##
1507## ------------- ##
1508_ASBOX
1509 echo
1510 for ac_var in $ac_subst_files
1511 do
1512 eval ac_val=$`echo $ac_var`
ac1cb8d3 1513 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1514 done | sort
1515 echo
1516 fi
1517
1518 if test -s confdefs.h; then
1519 cat <<\_ASBOX
1520## ----------- ##
1521## confdefs.h. ##
1522## ----------- ##
1523_ASBOX
1524 echo
1525 sed "/^$/d" confdefs.h | sort
1526 echo
1527 fi
1528 test "$ac_signal" != 0 &&
1529 echo "$as_me: caught signal $ac_signal"
1530 echo "$as_me: exit $exit_status"
1531 } >&5
ac1cb8d3 1532 rm -f core *.core &&
a848cd7e
SC
1533 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1534 exit $exit_status
1535 ' 0
1536for ac_signal in 1 2 13 15; do
1537 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1538done
1539ac_signal=0
1540
1541# confdefs.h avoids OS command line length limits that DEFS can exceed.
1542rm -rf conftest* confdefs.h
1543# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1544echo >confdefs.h
1545
1546# Predefined preprocessor variables.
1547
1548cat >>confdefs.h <<_ACEOF
1549#define PACKAGE_NAME "$PACKAGE_NAME"
1550_ACEOF
1551
1552
1553cat >>confdefs.h <<_ACEOF
1554#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1555_ACEOF
1556
1557
1558cat >>confdefs.h <<_ACEOF
1559#define PACKAGE_VERSION "$PACKAGE_VERSION"
1560_ACEOF
1561
1562
1563cat >>confdefs.h <<_ACEOF
1564#define PACKAGE_STRING "$PACKAGE_STRING"
1565_ACEOF
1566
1567
1568cat >>confdefs.h <<_ACEOF
1569#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1570_ACEOF
1571
1572
1573# Let the site file select an alternate cache file if it wants to.
1574# Prefer explicitly selected file to automatically selected ones.
1575if test -z "$CONFIG_SITE"; then
1576 if test "x$prefix" != xNONE; then
1577 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1578 else
1579 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1580 fi
1581fi
1582for ac_site_file in $CONFIG_SITE; do
1583 if test -r "$ac_site_file"; then
1584 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1585echo "$as_me: loading site script $ac_site_file" >&6;}
1586 sed 's/^/| /' "$ac_site_file" >&5
1587 . "$ac_site_file"
1588 fi
1589done
1590
1591if test -r "$cache_file"; then
1592 # Some versions of bash will fail to source /dev/null (special
1593 # files actually), so we avoid doing that.
1594 if test -f "$cache_file"; then
1595 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1596echo "$as_me: loading cache $cache_file" >&6;}
1597 case $cache_file in
1598 [\\/]* | ?:[\\/]* ) . $cache_file;;
1599 *) . ./$cache_file;;
1600 esac
1601 fi
1602else
1603 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1604echo "$as_me: creating cache $cache_file" >&6;}
1605 >$cache_file
1606fi
1607
1608# Check that the precious variables saved in the cache have kept the same
1609# value.
1610ac_cache_corrupted=false
1611for ac_var in `(set) 2>&1 |
ac1cb8d3 1612 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1613 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1614 eval ac_new_set=\$ac_env_${ac_var}_set
1615 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1616 eval ac_new_val="\$ac_env_${ac_var}_value"
1617 case $ac_old_set,$ac_new_set in
1618 set,)
1619 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1620echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1621 ac_cache_corrupted=: ;;
1622 ,set)
1623 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1624echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1625 ac_cache_corrupted=: ;;
1626 ,);;
1627 *)
1628 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1629 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1630echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1631 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1632echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1633 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1634echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1635 ac_cache_corrupted=:
a848cd7e
SC
1636 fi;;
1637 esac
1638 # Pass precious variables to config.status.
1639 if test "$ac_new_set" = set; then
1640 case $ac_new_val in
1641 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1642 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1643 *) ac_arg=$ac_var=$ac_new_val ;;
1644 esac
1645 case " $ac_configure_args " in
1646 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1647 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1648 esac
1649 fi
1650done
1651if $ac_cache_corrupted; then
1652 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1653echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1654 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1655echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1656 { (exit 1); exit 1; }; }
1657fi
1658
1659ac_ext=c
1660ac_cpp='$CPP $CPPFLAGS'
1661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1663ac_compiler_gnu=$ac_cv_c_compiler_gnu
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694ac_aux_dir=
1695for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1696 if test -f $ac_dir/install-sh; then
1697 ac_aux_dir=$ac_dir
1698 ac_install_sh="$ac_aux_dir/install-sh -c"
1699 break
1700 elif test -f $ac_dir/install.sh; then
1701 ac_aux_dir=$ac_dir
1702 ac_install_sh="$ac_aux_dir/install.sh -c"
1703 break
1704 elif test -f $ac_dir/shtool; then
1705 ac_aux_dir=$ac_dir
1706 ac_install_sh="$ac_aux_dir/shtool install -c"
1707 break
1708 fi
1709done
1710if test -z "$ac_aux_dir"; then
1711 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1712echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1713 { (exit 1); exit 1; }; }
1714fi
1715ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1716ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1717ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1718
1719# Make sure we can run config.sub.
1720$ac_config_sub sun4 >/dev/null 2>&1 ||
1721 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1722echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1723 { (exit 1); exit 1; }; }
1724
1725echo "$as_me:$LINENO: checking build system type" >&5
1726echo $ECHO_N "checking build system type... $ECHO_C" >&6
1727if test "${ac_cv_build+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729else
1730 ac_cv_build_alias=$build_alias
1731test -z "$ac_cv_build_alias" &&
1732 ac_cv_build_alias=`$ac_config_guess`
1733test -z "$ac_cv_build_alias" &&
1734 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1735echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1736 { (exit 1); exit 1; }; }
1737ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1738 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1739echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1740 { (exit 1); exit 1; }; }
1741
1742fi
1743echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1744echo "${ECHO_T}$ac_cv_build" >&6
1745build=$ac_cv_build
1746build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1747build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1748build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1749
1750
1751echo "$as_me:$LINENO: checking host system type" >&5
1752echo $ECHO_N "checking host system type... $ECHO_C" >&6
1753if test "${ac_cv_host+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1755else
1756 ac_cv_host_alias=$host_alias
1757test -z "$ac_cv_host_alias" &&
1758 ac_cv_host_alias=$ac_cv_build_alias
1759ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1760 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1761echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1762 { (exit 1); exit 1; }; }
1763
1764fi
1765echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1766echo "${ECHO_T}$ac_cv_host" >&6
1767host=$ac_cv_host
1768host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1769host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1770host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1771
1772
1773echo "$as_me:$LINENO: checking target system type" >&5
1774echo $ECHO_N "checking target system type... $ECHO_C" >&6
1775if test "${ac_cv_target+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1777else
1778 ac_cv_target_alias=$target_alias
1779test "x$ac_cv_target_alias" = "x" &&
1780 ac_cv_target_alias=$ac_cv_host_alias
1781ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1782 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1783echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1784 { (exit 1); exit 1; }; }
1785
1786fi
1787echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1788echo "${ECHO_T}$ac_cv_target" >&6
1789target=$ac_cv_target
1790target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1791target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1792target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1793
1794
1795# The aliases save the names the user supplied, while $host etc.
1796# will get canonicalized.
1797test -n "$target_alias" &&
1798 test "$program_prefix$program_suffix$program_transform_name" = \
1799 NONENONEs,x,x, &&
1800 program_prefix=${target_alias}-
1801
1802
1803
ceec2216 1804wx_major_version_number=2
25bb1412
RD
1805wx_minor_version_number=8
1806wx_release_number=0
2add9e3c 1807wx_subrelease_number=0
a848cd7e 1808
ceec2216
RL
1809WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1810WX_VERSION=$WX_RELEASE.$wx_release_number
1811WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1812
ceec2216 1813WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1814
a848cd7e 1815
02b05020
VZ
1816wx_top_builddir="`pwd`"
1817
1818
a848cd7e
SC
1819
1820
1821USE_UNIX=1
1822USE_OS2=0
1823USE_WIN32=0
1824USE_DOS=0
1825USE_BEOS=0
1826USE_MAC=0
1827
1828USE_AIX=
1829USE_BSD= USE_DARWIN= USE_FREEBSD=
1830USE_GNU= USE_HPUX=
1831USE_LINUX=
1832USE_NETBSD=
1833USE_OPENBSD=
1834USE_OSF= USE_SGI=
1835USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1836USE_ULTRIX=
1837USE_UNIXWARE=
1838
1839USE_ALPHA=
1840
1841NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1842
b3c86150 1843ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
a848cd7e
SC
1844
1845DEFAULT_wxUSE_COCOA=0
1846DEFAULT_wxUSE_GTK=0
1847DEFAULT_wxUSE_MAC=0
1848DEFAULT_wxUSE_MGL=0
1849DEFAULT_wxUSE_MICROWIN=0
1850DEFAULT_wxUSE_MOTIF=0
1851DEFAULT_wxUSE_MSW=0
1852DEFAULT_wxUSE_PM=0
1853DEFAULT_wxUSE_X11=0
b3c86150 1854DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1855
1856DEFAULT_DEFAULT_wxUSE_COCOA=0
1857DEFAULT_DEFAULT_wxUSE_GTK=0
1858DEFAULT_DEFAULT_wxUSE_MAC=0
1859DEFAULT_DEFAULT_wxUSE_MGL=0
1860DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1861DEFAULT_DEFAULT_wxUSE_MOTIF=0
1862DEFAULT_DEFAULT_wxUSE_MSW=0
1863DEFAULT_DEFAULT_wxUSE_PM=0
1864DEFAULT_DEFAULT_wxUSE_X11=0
b3c86150 1865DEFAULT_DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1866
1867PROGRAM_EXT=
1868SO_SUFFIX=so
1869SAMPLES_RPATH_FLAG=
1870SAMPLES_RPATH_POSTLINK=
1871
a03b8b04
RD
1872DEFAULT_STD_FLAG=yes
1873
a848cd7e
SC
1874case "${host}" in
1875 *-hp-hpux* )
1876 USE_HPUX=1
1877 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1878 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1879 SO_SUFFIX=sl
1880 cat >>confdefs.h <<\_ACEOF
1881#define __HPUX__ 1
1882_ACEOF
1883
2eef8513 1884
c92ad099 1885 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1886 ;;
1887 *-*-linux* )
1888 USE_LINUX=1
1889 cat >>confdefs.h <<\_ACEOF
1890#define __LINUX__ 1
1891_ACEOF
1892
1893 TMP=`uname -m`
1894 if test "x$TMP" = "xalpha"; then
1895 USE_ALPHA=1
1896 cat >>confdefs.h <<\_ACEOF
1897#define __ALPHA__ 1
1898_ACEOF
1899
1900 fi
1901 DEFAULT_DEFAULT_wxUSE_GTK=1
1902 ;;
1903 *-*-gnu* | *-*-k*bsd*-gnu )
1904 USE_GNU=1
1905 TMP=`uname -m`
1906 if test "x$TMP" = "xalpha"; then
1907 USE_ALPHA=1
1908 cat >>confdefs.h <<\_ACEOF
1909#define __ALPHA__ 1
1910_ACEOF
1911
1912 fi
1913 DEFAULT_DEFAULT_wxUSE_GTK=1
1914 ;;
1915 *-*-irix5* | *-*-irix6* )
1916 USE_SGI=1
1917 USE_SVR4=1
1918 cat >>confdefs.h <<\_ACEOF
1919#define __SGI__ 1
1920_ACEOF
1921
1922 cat >>confdefs.h <<\_ACEOF
1923#define __SVR4__ 1
1924_ACEOF
1925
1926 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1927 ;;
1928 *-*-solaris2* )
1929 USE_SUN=1
1930 USE_SOLARIS=1
1931 USE_SVR4=1
1932 cat >>confdefs.h <<\_ACEOF
1933#define __SUN__ 1
1934_ACEOF
1935
1936 cat >>confdefs.h <<\_ACEOF
1937#define __SOLARIS__ 1
1938_ACEOF
1939
1940 cat >>confdefs.h <<\_ACEOF
1941#define __SVR4__ 1
1942_ACEOF
1943
1944 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1945 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1946 ;;
1947 *-*-sunos4* )
1948 USE_SUN=1
1949 USE_SUNOS=1
1950 USE_BSD=1
1951 cat >>confdefs.h <<\_ACEOF
1952#define __SUN__ 1
1953_ACEOF
1954
1955 cat >>confdefs.h <<\_ACEOF
1956#define __SUNOS__ 1
1957_ACEOF
1958
1959 cat >>confdefs.h <<\_ACEOF
1960#define __BSD__ 1
1961_ACEOF
1962
1963 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1964 ;;
1965 *-*-freebsd*)
1966 USE_BSD=1
1967 USE_FREEBSD=1
1968 cat >>confdefs.h <<\_ACEOF
1969#define __FREEBSD__ 1
1970_ACEOF
1971
1972 cat >>confdefs.h <<\_ACEOF
1973#define __BSD__ 1
1974_ACEOF
1975
1976 DEFAULT_DEFAULT_wxUSE_GTK=1
1977 ;;
c9a66001 1978 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1979 USE_BSD=1
1980 USE_OPENBSD=1
1981 cat >>confdefs.h <<\_ACEOF
1982#define __OPENBSD__ 1
1983_ACEOF
1984
1985 cat >>confdefs.h <<\_ACEOF
1986#define __BSD__ 1
1987_ACEOF
1988
1989 DEFAULT_DEFAULT_wxUSE_GTK=1
1990 ;;
1991 *-*-netbsd*)
1992 USE_BSD=1
1993 USE_NETBSD=1
1994 cat >>confdefs.h <<\_ACEOF
1995#define __NETBSD__ 1
1996_ACEOF
1997
1998 cat >>confdefs.h <<\_ACEOF
1999#define __BSD__ 1
2000_ACEOF
2001
2002 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 2003 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 2004
def7c04a 2005 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
2006 ;;
2007 *-*-osf* )
2008 USE_ALPHA=1
2009 USE_OSF=1
2010 cat >>confdefs.h <<\_ACEOF
2011#define __ALPHA__ 1
2012_ACEOF
2013
2014 cat >>confdefs.h <<\_ACEOF
2015#define __OSF__ 1
2016_ACEOF
2017
2018 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2019 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2020 ;;
2021 *-*-dgux5* )
2022 USE_ALPHA=1
2023 USE_SVR4=1
2024 cat >>confdefs.h <<\_ACEOF
2025#define __ALPHA__ 1
2026_ACEOF
2027
2028 cat >>confdefs.h <<\_ACEOF
2029#define __SVR4__ 1
2030_ACEOF
2031
2032 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2033 ;;
2034 *-*-sysv5* )
2035 USE_SYSV=1
2036 USE_SVR4=1
2037 cat >>confdefs.h <<\_ACEOF
2038#define __SYSV__ 1
2039_ACEOF
2040
2041 cat >>confdefs.h <<\_ACEOF
2042#define __SVR4__ 1
2043_ACEOF
2044
2045 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2046 ;;
2047 *-*-aix* )
2048 USE_AIX=1
2049 USE_SYSV=1
2050 USE_SVR4=1
2051 SO_SUFFIX=a
2052 cat >>confdefs.h <<\_ACEOF
2053#define __AIX__ 1
2054_ACEOF
2055
2056 cat >>confdefs.h <<\_ACEOF
2057#define __SYSV__ 1
2058_ACEOF
2059
2060 cat >>confdefs.h <<\_ACEOF
2061#define __SVR4__ 1
2062_ACEOF
2063
2064 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2065 ;;
2066
2067 *-*-*UnixWare*)
2068 USE_SYSV=1
2069 USE_SVR4=1
2070 USE_UNIXWARE=1
2071 cat >>confdefs.h <<\_ACEOF
2072#define __UNIXWARE__ 1
2073_ACEOF
2074
2075 ;;
2076
2077 *-*-cygwin* | *-*-mingw32* )
2078 SO_SUFFIX=dll
2079 PROGRAM_EXT=".exe"
a848cd7e
SC
2080 DEFAULT_DEFAULT_wxUSE_MSW=1
2081 ;;
2082
2083 *-pc-msdosdjgpp )
2084 USE_UNIX=0
2085 USE_DOS=1
2086 cat >>confdefs.h <<\_ACEOF
2087#define __DOS__ 1
2088_ACEOF
2089
2090 PROGRAM_EXT=".exe"
2091 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2092 ;;
2093
2094 *-pc-os2_emx | *-pc-os2-emx )
2095 cat >>confdefs.h <<\_ACEOF
2096#define __EMX__ 1
2097_ACEOF
2098
2099 USE_OS2=1
2100 cat >>confdefs.h <<\_ACEOF
2101#define __OS2__ 1
2102_ACEOF
2103
2104 PROGRAM_EXT=".exe"
2105 DEFAULT_DEFAULT_wxUSE_PM=1
2106 CXX=gcc
2107 LDFLAGS="$LDFLAGS -Zcrtdll"
2108 ac_executable_extensions=".exe"
2109 export ac_executable_extensions
2110 ac_save_IFS="$IFS"
2111 IFS='\\'
2112 ac_TEMP_PATH=
2113 for ac_dir in $PATH; do
2114 IFS=$ac_save_IFS
2115 if test -z "$ac_TEMP_PATH"; then
2116 ac_TEMP_PATH="$ac_dir"
2117 else
2118 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2119 fi
2120 done
2121 export PATH="$ac_TEMP_PATH"
2122 unset ac_TEMP_PATH
a03b8b04 2123 DEFAULT_STD_FLAG=no
a848cd7e
SC
2124 ;;
2125
cfda0ea8 2126 *-*-darwin* )
a848cd7e
SC
2127 USE_BSD=1
2128 USE_DARWIN=1
2129 SO_SUFFIX=dylib
2130 cat >>confdefs.h <<\_ACEOF
2131#define __BSD__ 1
2132_ACEOF
2133
2134 cat >>confdefs.h <<\_ACEOF
2135#define __DARWIN__ 1
a848cd7e
SC
2136_ACEOF
2137
2138 cat >>confdefs.h <<\_ACEOF
2139#define TARGET_CARBON 1
2140_ACEOF
2141
2142 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2143 DEFAULT_STD_FLAG=no
a848cd7e 2144 ;;
1e9e8aba
DE
2145 powerpc-apple-macos* )
2146 USE_UNIX=0
2147 ac_cv_c_bigendian=yes
2148 SO_SUFFIX=shlib
2149 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2150 DEFAULT_STD_FLAG=no
1e9e8aba 2151 ;;
a848cd7e
SC
2152
2153 *-*-beos* )
2154 USE_BEOS=1
2155 cat >>confdefs.h <<\_ACEOF
2156#define __BEOS__ 1
2157_ACEOF
2158
2159 ;;
2160
2161 *)
c9a66001
VZ
2162 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2163echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2164 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2165echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2166
2167 DEFAULT_DEFAULT_wxUSE_X11=1
2168 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2169esac
2170
2171
2172
2173
2174 wx_arg_cache_file="configarg.cache"
2175 echo "loading argument cache $wx_arg_cache_file"
2176 rm -f ${wx_arg_cache_file}.tmp
2177 touch ${wx_arg_cache_file}.tmp
2178 touch ${wx_arg_cache_file}
2179
2180
2181DEBUG_CONFIGURE=0
2182if test $DEBUG_CONFIGURE = 1; then
2183 DEFAULT_wxUSE_UNIVERSAL=no
2184 DEFAULT_wxUSE_STL=no
2185
2186 DEFAULT_wxUSE_NANOX=no
2187
2188 DEFAULT_wxUSE_THREADS=yes
2189
5acfd58d 2190 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2191 DEFAULT_wxUSE_OPTIMISE=no
2192 DEFAULT_wxUSE_PROFILE=no
2193 DEFAULT_wxUSE_NO_DEPS=no
70c536f3 2194 DEFAULT_wxUSE_VARARG_MACROS=no
a848cd7e
SC
2195 DEFAULT_wxUSE_NO_RTTI=no
2196 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2197 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2198 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2199 DEFAULT_wxUSE_PERMISSIVE=no
2200 DEFAULT_wxUSE_DEBUG_FLAG=yes
2201 DEFAULT_wxUSE_DEBUG_INFO=yes
2202 DEFAULT_wxUSE_DEBUG_GDB=yes
2203 DEFAULT_wxUSE_MEM_TRACING=no
2204 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2205 DEFAULT_wxUSE_DMALLOC=no
2206 DEFAULT_wxUSE_APPLE_IEEE=no
2207
2208 DEFAULT_wxUSE_EXCEPTIONS=no
2209 DEFAULT_wxUSE_LOG=yes
2210 DEFAULT_wxUSE_LOGWINDOW=no
2211 DEFAULT_wxUSE_LOGGUI=no
2212 DEFAULT_wxUSE_LOGDIALOG=no
2213
2214 DEFAULT_wxUSE_GUI=yes
2215 DEFAULT_wxUSE_CONTROLS=no
2216
2217 DEFAULT_wxUSE_REGEX=no
2218 DEFAULT_wxUSE_XML=no
2219 DEFAULT_wxUSE_EXPAT=no
2220 DEFAULT_wxUSE_ZLIB=no
2221 DEFAULT_wxUSE_LIBPNG=no
2222 DEFAULT_wxUSE_LIBJPEG=no
2223 DEFAULT_wxUSE_LIBTIFF=no
2224 DEFAULT_wxUSE_LIBXPM=no
2225 DEFAULT_wxUSE_LIBMSPACK=no
2226 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2227 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2228 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2229 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2230 DEFAULT_wxUSE_ODBC=no
2231 DEFAULT_wxUSE_OPENGL=no
2232
2233 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2234 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2235 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2236 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2237 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2238 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2239 DEFAULT_wxUSE_CMDLINE_PARSER=no
2240 DEFAULT_wxUSE_DATETIME=no
2241 DEFAULT_wxUSE_TIMER=no
2242 DEFAULT_wxUSE_STOPWATCH=no
2243 DEFAULT_wxUSE_FILE=no
2244 DEFAULT_wxUSE_FFILE=no
07158944 2245 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2246 DEFAULT_wxUSE_TEXTBUFFER=no
2247 DEFAULT_wxUSE_TEXTFILE=no
2248 DEFAULT_wxUSE_SOUND=no
3b57de8b 2249 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2250 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2251 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2252 DEFAULT_wxUSE_INTL=no
2253 DEFAULT_wxUSE_CONFIG=no
2254 DEFAULT_wxUSE_FONTMAP=no
2255 DEFAULT_wxUSE_STREAMS=no
2256 DEFAULT_wxUSE_SOCKETS=no
2257 DEFAULT_wxUSE_OLE=no
2258 DEFAULT_wxUSE_DATAOBJ=no
2259 DEFAULT_wxUSE_DIALUP_MANAGER=no
2260 DEFAULT_wxUSE_JOYSTICK=no
2261 DEFAULT_wxUSE_DYNLIB_CLASS=no
2262 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2263 DEFAULT_wxUSE_LONGLONG=no
2264 DEFAULT_wxUSE_GEOMETRY=no
2265
2266 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2267 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2268 DEFAULT_wxUSE_POSTSCRIPT=no
2269
2270 DEFAULT_wxUSE_CLIPBOARD=no
2271 DEFAULT_wxUSE_TOOLTIPS=no
2272 DEFAULT_wxUSE_DRAG_AND_DROP=no
2273 DEFAULT_wxUSE_DRAGIMAGE=no
2274 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2275 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2276
8a7b1113 2277 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2278 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2279 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2280 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2281
2282 DEFAULT_wxUSE_RESOURCES=no
2283 DEFAULT_wxUSE_CONSTRAINTS=no
2284 DEFAULT_wxUSE_IPC=no
2285 DEFAULT_wxUSE_HELP=no
2286 DEFAULT_wxUSE_MS_HTML_HELP=no
2287 DEFAULT_wxUSE_WXHTML_HELP=no
2288 DEFAULT_wxUSE_TREELAYOUT=no
2289 DEFAULT_wxUSE_METAFILE=no
2290 DEFAULT_wxUSE_MIMETYPE=no
2291 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2292 DEFAULT_wxUSE_PROTOCOL=no
2293 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2294 DEFAULT_wxUSE_PROTOCOL_FTP=no
2295 DEFAULT_wxUSE_PROTOCOL_FILE=no
2296 DEFAULT_wxUSE_URL=no
ca5c6ac3 2297 DEFAULT_wxUSE_VARIANT=no
a848cd7e 2298
319c5ed4 2299 DEFAULT_wxUSE_ABOUTDLG=no
a848cd7e
SC
2300 DEFAULT_wxUSE_COMMONDLGS=no
2301 DEFAULT_wxUSE_CHOICEDLG=no
2302 DEFAULT_wxUSE_COLOURDLG=no
2303 DEFAULT_wxUSE_DIRDLG=no
2304 DEFAULT_wxUSE_FILEDLG=no
2305 DEFAULT_wxUSE_FINDREPLDLG=no
2306 DEFAULT_wxUSE_FONTDLG=no
2307 DEFAULT_wxUSE_MSGDLG=no
2308 DEFAULT_wxUSE_NUMBERDLG=no
2309 DEFAULT_wxUSE_TEXTDLG=no
2310 DEFAULT_wxUSE_SPLASH=no
2311 DEFAULT_wxUSE_STARTUP_TIPS=no
2312 DEFAULT_wxUSE_PROGRESSDLG=no
2313 DEFAULT_wxUSE_WIZARDDLG=no
2314
2315 DEFAULT_wxUSE_MENUS=no
2316 DEFAULT_wxUSE_MINIFRAME=no
2317 DEFAULT_wxUSE_HTML=no
91dea314 2318 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2319 DEFAULT_wxUSE_XRC=no
3f60522a 2320 DEFAULT_wxUSE_AUI=no
646b6ec1 2321 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2322 DEFAULT_wxUSE_FILESYSTEM=no
2323 DEFAULT_wxUSE_FS_INET=no
2324 DEFAULT_wxUSE_FS_ZIP=no
26e422a9 2325 DEFAULT_wxUSE_FS_ARCHIVE=no
a848cd7e 2326 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2327 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2328 DEFAULT_wxUSE_ZIPSTREAM=no
26e422a9 2329 DEFAULT_wxUSE_TARSTREAM=no
a848cd7e
SC
2330 DEFAULT_wxUSE_VALIDATORS=no
2331
2332 DEFAULT_wxUSE_ACCEL=no
3ea50042 2333 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
2334 DEFAULT_wxUSE_BUTTON=no
2335 DEFAULT_wxUSE_BMPBUTTON=no
95a46303 2336 DEFAULT_wxUSE_BITMAPCOMBOBOX=no
a848cd7e
SC
2337 DEFAULT_wxUSE_CALCTRL=no
2338 DEFAULT_wxUSE_CARET=no
2339 DEFAULT_wxUSE_CHECKBOX=no
2340 DEFAULT_wxUSE_CHECKLST=no
2341 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2342 DEFAULT_wxUSE_CHOICEBOOK=no
bd915ace 2343 DEFAULT_wxUSE_COLLPANE=no
e9263684 2344 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2345 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2346 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2347 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2348 DEFAULT_wxUSE_DISPLAY=no
88bbc332 2349 DEFAULT_wxUSE_DETECT_SM=no
e9263684
VZ
2350 DEFAULT_wxUSE_DIRPICKERCTRL=no
2351 DEFAULT_wxUSE_FILEPICKERCTRL=no
2352 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e 2353 DEFAULT_wxUSE_GAUGE=no
f43426c1 2354 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
a848cd7e 2355 DEFAULT_wxUSE_GRID=no
6954625c 2356 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2357 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2358 DEFAULT_wxUSE_IMAGLIST=no
2359 DEFAULT_wxUSE_LISTBOOK=no
2360 DEFAULT_wxUSE_LISTBOX=no
2361 DEFAULT_wxUSE_LISTCTRL=no
2362 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2363 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2364 DEFAULT_wxUSE_RADIOBOX=no
2365 DEFAULT_wxUSE_RADIOBTN=no
2366 DEFAULT_wxUSE_SASH=no
2367 DEFAULT_wxUSE_SCROLLBAR=no
2368 DEFAULT_wxUSE_SLIDER=no
2369 DEFAULT_wxUSE_SPINBTN=no
2370 DEFAULT_wxUSE_SPINCTRL=no
2371 DEFAULT_wxUSE_SPLITTER=no
2372 DEFAULT_wxUSE_STATBMP=no
2373 DEFAULT_wxUSE_STATBOX=no
2374 DEFAULT_wxUSE_STATLINE=no
2375 DEFAULT_wxUSE_STATTEXT=no
2376 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2377 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2378 DEFAULT_wxUSE_TEXTCTRL=no
2379 DEFAULT_wxUSE_TOGGLEBTN=no
2380 DEFAULT_wxUSE_TOOLBAR=no
2381 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
0093c2fc 2382 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2383 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2384 DEFAULT_wxUSE_TREECTRL=no
2385 DEFAULT_wxUSE_POPUPWIN=no
2386 DEFAULT_wxUSE_TIPWINDOW=no
2387
2388 DEFAULT_wxUSE_UNICODE=no
2389 DEFAULT_wxUSE_UNICODE_MSLU=no
2390 DEFAULT_wxUSE_WCSRTOMBS=no
2391
2392 DEFAULT_wxUSE_PALETTE=no
2393 DEFAULT_wxUSE_IMAGE=no
2394 DEFAULT_wxUSE_GIF=no
2395 DEFAULT_wxUSE_PCX=no
bb9e79c0 2396 DEFAULT_wxUSE_TGA=no
a848cd7e
SC
2397 DEFAULT_wxUSE_PNM=no
2398 DEFAULT_wxUSE_IFF=no
2399 DEFAULT_wxUSE_XPM=no
2400 DEFAULT_wxUSE_ICO_CUR=no
2401 DEFAULT_wxUSE_ACCESSIBILITY=no
2402
2403 DEFAULT_wxUSE_MONOLITHIC=no
2404 DEFAULT_wxUSE_PLUGINS=no
2405 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2406else
2407 DEFAULT_wxUSE_UNIVERSAL=no
2408 DEFAULT_wxUSE_STL=no
2409
2410 DEFAULT_wxUSE_NANOX=no
2411
2412 DEFAULT_wxUSE_THREADS=yes
2413
5acfd58d 2414 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2415 DEFAULT_wxUSE_OPTIMISE=yes
2416 DEFAULT_wxUSE_PROFILE=no
2417 DEFAULT_wxUSE_NO_DEPS=no
70c536f3 2418 DEFAULT_wxUSE_VARARG_MACROS=yes
a848cd7e
SC
2419 DEFAULT_wxUSE_NO_RTTI=no
2420 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2421 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2422 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2423 DEFAULT_wxUSE_PERMISSIVE=no
2424 DEFAULT_wxUSE_DEBUG_FLAG=no
2425 DEFAULT_wxUSE_DEBUG_INFO=no
2426 DEFAULT_wxUSE_DEBUG_GDB=no
2427 DEFAULT_wxUSE_MEM_TRACING=no
2428 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2429 DEFAULT_wxUSE_DMALLOC=no
2430 DEFAULT_wxUSE_APPLE_IEEE=yes
2431
2432 DEFAULT_wxUSE_EXCEPTIONS=yes
2433 DEFAULT_wxUSE_LOG=yes
2434 DEFAULT_wxUSE_LOGWINDOW=yes
2435 DEFAULT_wxUSE_LOGGUI=yes
2436 DEFAULT_wxUSE_LOGDIALOG=yes
2437
2438 DEFAULT_wxUSE_GUI=yes
2439
2440 DEFAULT_wxUSE_REGEX=yes
2441 DEFAULT_wxUSE_XML=yes
2442 DEFAULT_wxUSE_EXPAT=yes
2443 DEFAULT_wxUSE_ZLIB=yes
2444 DEFAULT_wxUSE_LIBPNG=yes
2445 DEFAULT_wxUSE_LIBJPEG=yes
2446 DEFAULT_wxUSE_LIBTIFF=yes
2447 DEFAULT_wxUSE_LIBXPM=yes
2448 DEFAULT_wxUSE_LIBMSPACK=yes
2449 DEFAULT_wxUSE_LIBSDL=no
06629565 2450 DEFAULT_wxUSE_LIBGNOMEPRINT=yes
2b850ae1 2451 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2452 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2453 DEFAULT_wxUSE_ODBC=no
52cb607e 2454 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2455
2456 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2457 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2458 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2459 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2460 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2461 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2462 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2463 DEFAULT_wxUSE_DATETIME=yes
2464 DEFAULT_wxUSE_TIMER=yes
2465 DEFAULT_wxUSE_STOPWATCH=yes
2466 DEFAULT_wxUSE_FILE=yes
2467 DEFAULT_wxUSE_FFILE=yes
07158944 2468 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2469 DEFAULT_wxUSE_TEXTBUFFER=yes
2470 DEFAULT_wxUSE_TEXTFILE=yes
2471 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2472 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2473 DEFAULT_wxUSE_GSTREAMER8=no
15291213 2474 DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
a848cd7e
SC
2475 DEFAULT_wxUSE_INTL=yes
2476 DEFAULT_wxUSE_CONFIG=yes
2477 DEFAULT_wxUSE_FONTMAP=yes
2478 DEFAULT_wxUSE_STREAMS=yes
2479 DEFAULT_wxUSE_SOCKETS=yes
2480 DEFAULT_wxUSE_OLE=yes
2481 DEFAULT_wxUSE_DATAOBJ=yes
2482 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2483 DEFAULT_wxUSE_JOYSTICK=yes
2484 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2485 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2486 DEFAULT_wxUSE_LONGLONG=yes
2487 DEFAULT_wxUSE_GEOMETRY=yes
2488
2489 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2490 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2491 DEFAULT_wxUSE_POSTSCRIPT=yes
2492
2493 DEFAULT_wxUSE_CLIPBOARD=yes
2494 DEFAULT_wxUSE_TOOLTIPS=yes
2495 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2496 DEFAULT_wxUSE_DRAGIMAGE=yes
2497 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2498 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2499
8a7b1113 2500 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2501 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2502 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2503 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2504
2505 DEFAULT_wxUSE_RESOURCES=no
2506 DEFAULT_wxUSE_CONSTRAINTS=yes
2507 DEFAULT_wxUSE_IPC=yes
2508 DEFAULT_wxUSE_HELP=yes
2509 DEFAULT_wxUSE_MS_HTML_HELP=yes
2510 DEFAULT_wxUSE_WXHTML_HELP=yes
2511 DEFAULT_wxUSE_TREELAYOUT=yes
2512 DEFAULT_wxUSE_METAFILE=yes
2513 DEFAULT_wxUSE_MIMETYPE=yes
2514 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2515 DEFAULT_wxUSE_PROTOCOL=yes
2516 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2517 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2518 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2519 DEFAULT_wxUSE_URL=yes
ca5c6ac3 2520 DEFAULT_wxUSE_VARIANT=yes
a848cd7e 2521
319c5ed4 2522 DEFAULT_wxUSE_ABOUTDLG=yes
a848cd7e
SC
2523 DEFAULT_wxUSE_COMMONDLGS=yes
2524 DEFAULT_wxUSE_CHOICEDLG=yes
2525 DEFAULT_wxUSE_COLOURDLG=yes
2526 DEFAULT_wxUSE_DIRDLG=yes
2527 DEFAULT_wxUSE_FILEDLG=yes
2528 DEFAULT_wxUSE_FINDREPLDLG=yes
2529 DEFAULT_wxUSE_FONTDLG=yes
2530 DEFAULT_wxUSE_MSGDLG=yes
2531 DEFAULT_wxUSE_NUMBERDLG=yes
2532 DEFAULT_wxUSE_TEXTDLG=yes
2533 DEFAULT_wxUSE_SPLASH=yes
2534 DEFAULT_wxUSE_STARTUP_TIPS=yes
2535 DEFAULT_wxUSE_PROGRESSDLG=yes
2536 DEFAULT_wxUSE_WIZARDDLG=yes
2537
2538 DEFAULT_wxUSE_MENUS=yes
2539 DEFAULT_wxUSE_MINIFRAME=yes
2540 DEFAULT_wxUSE_HTML=yes
91dea314 2541 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2542 DEFAULT_wxUSE_XRC=yes
3f60522a 2543 DEFAULT_wxUSE_AUI=yes
646b6ec1 2544 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2545 DEFAULT_wxUSE_FILESYSTEM=yes
2546 DEFAULT_wxUSE_FS_INET=yes
2547 DEFAULT_wxUSE_FS_ZIP=yes
26e422a9 2548 DEFAULT_wxUSE_FS_ARCHIVE=yes
a848cd7e 2549 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2550 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2551 DEFAULT_wxUSE_ZIPSTREAM=yes
26e422a9 2552 DEFAULT_wxUSE_TARSTREAM=yes
a848cd7e
SC
2553 DEFAULT_wxUSE_VALIDATORS=yes
2554
2555 DEFAULT_wxUSE_ACCEL=yes
3ea50042 2556 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
2557 DEFAULT_wxUSE_BUTTON=yes
2558 DEFAULT_wxUSE_BMPBUTTON=yes
95a46303 2559 DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
a848cd7e
SC
2560 DEFAULT_wxUSE_CALCTRL=yes
2561 DEFAULT_wxUSE_CARET=yes
2562 DEFAULT_wxUSE_CHECKBOX=yes
2563 DEFAULT_wxUSE_CHECKLST=yes
2564 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2565 DEFAULT_wxUSE_CHOICEBOOK=yes
bd915ace 2566 DEFAULT_wxUSE_COLLPANE=yes
e9263684 2567 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2568 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2569 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2570 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2571 DEFAULT_wxUSE_DISPLAY=yes
88bbc332 2572 DEFAULT_wxUSE_DETECT_SM=yes
e9263684
VZ
2573 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2574 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2575 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2576 DEFAULT_wxUSE_GAUGE=yes
2577 DEFAULT_wxUSE_GRID=yes
f43426c1 2578 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
6954625c 2579 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2580 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2581 DEFAULT_wxUSE_IMAGLIST=yes
2582 DEFAULT_wxUSE_LISTBOOK=yes
2583 DEFAULT_wxUSE_LISTBOX=yes
2584 DEFAULT_wxUSE_LISTCTRL=yes
2585 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2586 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2587 DEFAULT_wxUSE_RADIOBOX=yes
2588 DEFAULT_wxUSE_RADIOBTN=yes
2589 DEFAULT_wxUSE_SASH=yes
2590 DEFAULT_wxUSE_SCROLLBAR=yes
2591 DEFAULT_wxUSE_SLIDER=yes
2592 DEFAULT_wxUSE_SPINBTN=yes
2593 DEFAULT_wxUSE_SPINCTRL=yes
2594 DEFAULT_wxUSE_SPLITTER=yes
2595 DEFAULT_wxUSE_STATBMP=yes
2596 DEFAULT_wxUSE_STATBOX=yes
2597 DEFAULT_wxUSE_STATLINE=yes
2598 DEFAULT_wxUSE_STATTEXT=yes
2599 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2600 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2601 DEFAULT_wxUSE_TEXTCTRL=yes
2602 DEFAULT_wxUSE_TOGGLEBTN=yes
2603 DEFAULT_wxUSE_TOOLBAR=yes
2604 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
0093c2fc 2605 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2606 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2607 DEFAULT_wxUSE_TREECTRL=yes
2608 DEFAULT_wxUSE_POPUPWIN=yes
2609 DEFAULT_wxUSE_TIPWINDOW=yes
2610
78de529b 2611 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2612 DEFAULT_wxUSE_UNICODE_MSLU=yes
2613 DEFAULT_wxUSE_WCSRTOMBS=no
2614
2615 DEFAULT_wxUSE_PALETTE=yes
2616 DEFAULT_wxUSE_IMAGE=yes
2617 DEFAULT_wxUSE_GIF=yes
2618 DEFAULT_wxUSE_PCX=yes
bb9e79c0
VZ
2619 DEFAULT_wxUSE_TGA=yes
2620 DEFAULT_wxUSE_IFF=no DEFAULT_wxUSE_PNM=yes
a848cd7e
SC
2621 DEFAULT_wxUSE_XPM=yes
2622 DEFAULT_wxUSE_ICO_CUR=yes
2623 DEFAULT_wxUSE_ACCESSIBILITY=no
2624
2625 DEFAULT_wxUSE_MONOLITHIC=no
2626 DEFAULT_wxUSE_PLUGINS=no
2627 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2628
f34ca037 2629 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2630fi
2631
2632
2633
f34ca037 2634
a848cd7e
SC
2635for toolkit in `echo $ALL_TOOLKITS`; do
2636 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2637 if test "x$LINE" != "x" ; then
2638 has_toolkit_in_cache=1
2639 eval "DEFAULT_$LINE"
2640 eval "CACHE_$toolkit=1"
f34ca037
MW
2641
2642 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2643 if test "x$LINE" != "x" ; then
2644 eval "DEFAULT_$LINE"
2645 fi
a848cd7e
SC
2646 fi
2647done
2648
2649
2650
077c7880 2651 enablestring=
a848cd7e
SC
2652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2653echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2654 no_cache=0
2655 # Check whether --enable-gui or --disable-gui was given.
2656if test "${enable_gui+set}" = set; then
2657 enableval="$enable_gui"
2658
2659 if test "$enableval" = yes; then
2660 ac_cv_use_gui='wxUSE_GUI=yes'
2661 else
2662 ac_cv_use_gui='wxUSE_GUI=no'
2663 fi
2664
2665else
2666
2667 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2668 if test "x$LINE" != x ; then
2669 eval "DEFAULT_$LINE"
2670 else
2671 no_cache=1
2672 fi
2673
2674 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2675
2676fi;
2677
2678 eval "$ac_cv_use_gui"
2679 if test "$no_cache" != 1; then
2680 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2681 fi
2682
2683 if test "$wxUSE_GUI" = yes; then
2684 echo "$as_me:$LINENO: result: yes" >&5
2685echo "${ECHO_T}yes" >&6
2686 else
2687 echo "$as_me:$LINENO: result: no" >&5
2688echo "${ECHO_T}no" >&6
2689 fi
2690
2691
077c7880 2692 enablestring=
a848cd7e
SC
2693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2694echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2695 no_cache=0
2696 # Check whether --enable-monolithic or --disable-monolithic was given.
2697if test "${enable_monolithic+set}" = set; then
2698 enableval="$enable_monolithic"
2699
2700 if test "$enableval" = yes; then
2701 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2702 else
2703 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2704 fi
2705
2706else
2707
2708 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2709 if test "x$LINE" != x ; then
2710 eval "DEFAULT_$LINE"
2711 else
2712 no_cache=1
2713 fi
2714
2715 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2716
2717fi;
2718
2719 eval "$ac_cv_use_monolithic"
2720 if test "$no_cache" != 1; then
2721 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2722 fi
2723
2724 if test "$wxUSE_MONOLITHIC" = yes; then
2725 echo "$as_me:$LINENO: result: yes" >&5
2726echo "${ECHO_T}yes" >&6
2727 else
2728 echo "$as_me:$LINENO: result: no" >&5
2729echo "${ECHO_T}no" >&6
2730 fi
2731
2732
077c7880 2733 enablestring=
a848cd7e
SC
2734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2735echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2736 no_cache=0
2737 # Check whether --enable-plugins or --disable-plugins was given.
2738if test "${enable_plugins+set}" = set; then
2739 enableval="$enable_plugins"
2740
2741 if test "$enableval" = yes; then
2742 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2743 else
2744 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2745 fi
2746
2747else
2748
2749 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2750 if test "x$LINE" != x ; then
2751 eval "DEFAULT_$LINE"
2752 else
2753 no_cache=1
2754 fi
2755
2756 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2757
2758fi;
2759
2760 eval "$ac_cv_use_plugins"
2761 if test "$no_cache" != 1; then
2762 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2763 fi
2764
2765 if test "$wxUSE_PLUGINS" = yes; then
2766 echo "$as_me:$LINENO: result: yes" >&5
2767echo "${ECHO_T}yes" >&6
2768 else
2769 echo "$as_me:$LINENO: result: no" >&5
2770echo "${ECHO_T}no" >&6
2771 fi
2772
2773
077c7880 2774 withstring=without
1c14217d
VZ
2775 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2776echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2777 no_cache=0
2778
2779# Check whether --with-subdirs or --without-subdirs was given.
2780if test "${with_subdirs+set}" = set; then
2781 withval="$with_subdirs"
2782
2783 if test "$withval" = yes; then
2784 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2785 else
2786 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2787 fi
2788
2789else
2790
2791 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2792 if test "x$LINE" != x ; then
2793 eval "DEFAULT_$LINE"
2794 else
2795 no_cache=1
2796 fi
2797
2798 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2799
2800fi;
2801
2802 eval "$ac_cv_use_subdirs"
2803 if test "$no_cache" != 1; then
2804 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2805 fi
2806
2807 if test "$wxWITH_SUBDIRS" = yes; then
2808 echo "$as_me:$LINENO: result: yes" >&5
2809echo "${ECHO_T}yes" >&6
2810 else
2811 echo "$as_me:$LINENO: result: no" >&5
2812echo "${ECHO_T}no" >&6
2813 fi
2814
2815
a848cd7e
SC
2816if test "$wxUSE_GUI" = "yes"; then
2817
2818
077c7880 2819 enablestring=
a848cd7e
SC
2820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2821echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2822 no_cache=0
2823 # Check whether --enable-universal or --disable-universal was given.
2824if test "${enable_universal+set}" = set; then
2825 enableval="$enable_universal"
2826
2827 if test "$enableval" = yes; then
2828 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2829 else
2830 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2831 fi
2832
2833else
2834
2835 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2836 if test "x$LINE" != x ; then
2837 eval "DEFAULT_$LINE"
2838 else
2839 no_cache=1
2840 fi
2841
2842 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2843
2844fi;
2845
2846 eval "$ac_cv_use_universal"
2847 if test "$no_cache" != 1; then
2848 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2849 fi
2850
2851 if test "$wxUSE_UNIVERSAL" = yes; then
2852 echo "$as_me:$LINENO: result: yes" >&5
2853echo "${ECHO_T}yes" >&6
2854 else
2855 echo "$as_me:$LINENO: result: no" >&5
2856echo "${ECHO_T}no" >&6
2857 fi
2858
2859
2860# Check whether --with-gtk or --without-gtk was given.
2861if test "${with_gtk+set}" = set; then
2862 withval="$with_gtk"
2863 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2864fi;
2865
2866# Check whether --with-motif or --without-motif was given.
2867if test "${with_motif+set}" = set; then
2868 withval="$with_motif"
2869 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2870fi;
2871
2872# Check whether --with-mac or --without-mac was given.
2873if test "${with_mac+set}" = set; then
2874 withval="$with_mac"
c228d3a4 2875 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2876fi;
2877
2878# Check whether --with-cocoa or --without-cocoa was given.
2879if test "${with_cocoa+set}" = set; then
2880 withval="$with_cocoa"
c228d3a4 2881 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2882fi;
2883
2884# Check whether --with-wine or --without-wine was given.
2885if test "${with_wine+set}" = set; then
2886 withval="$with_wine"
2887 wxUSE_WINE="$withval" CACHE_WINE=1
2888fi;
2889
2890# Check whether --with-msw or --without-msw was given.
2891if test "${with_msw+set}" = set; then
2892 withval="$with_msw"
2893 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2894fi;
2895
2896# Check whether --with-pm or --without-pm was given.
2897if test "${with_pm+set}" = set; then
2898 withval="$with_pm"
2899 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2900fi;
2901
2902# Check whether --with-mgl or --without-mgl was given.
2903if test "${with_mgl+set}" = set; then
2904 withval="$with_mgl"
2905 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2906fi;
2907
b3c86150
VS
2908# Check whether --with-directfb or --without-directfb was given.
2909if test "${with_directfb+set}" = set; then
2910 withval="$with_directfb"
2911 wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2912fi;
2913
a848cd7e
SC
2914# Check whether --with-microwin or --without-microwin was given.
2915if test "${with_microwin+set}" = set; then
2916 withval="$with_microwin"
2917 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2918fi;
2919
2920# Check whether --with-x11 or --without-x11 was given.
2921if test "${with_x11+set}" = set; then
2922 withval="$with_x11"
2923 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2924fi;
2925
077c7880 2926 enablestring=
a848cd7e
SC
2927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2928echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2929 no_cache=0
2930 # Check whether --enable-nanox or --disable-nanox was given.
2931if test "${enable_nanox+set}" = set; then
2932 enableval="$enable_nanox"
2933
2934 if test "$enableval" = yes; then
2935 ac_cv_use_nanox='wxUSE_NANOX=yes'
2936 else
2937 ac_cv_use_nanox='wxUSE_NANOX=no'
2938 fi
2939
2940else
2941
2942 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2943 if test "x$LINE" != x ; then
2944 eval "DEFAULT_$LINE"
2945 else
2946 no_cache=1
2947 fi
2948
2949 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2950
2951fi;
2952
2953 eval "$ac_cv_use_nanox"
2954 if test "$no_cache" != 1; then
2955 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2956 fi
2957
2958 if test "$wxUSE_NANOX" = yes; then
2959 echo "$as_me:$LINENO: result: yes" >&5
2960echo "${ECHO_T}yes" >&6
2961 else
2962 echo "$as_me:$LINENO: result: no" >&5
2963echo "${ECHO_T}no" >&6
2964 fi
2965
2966
f34ca037
MW
2967# Check whether --enable-gtk2 or --disable-gtk2 was given.
2968if test "${enable_gtk2+set}" = set; then
2969 enableval="$enable_gtk2"
2970 wxUSE_GTK2="$enableval"
2971fi;
a848cd7e 2972
077c7880 2973 enablestring=
a848cd7e
SC
2974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2975echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2976 no_cache=0
2977 # Check whether --enable-gpe or --disable-gpe was given.
2978if test "${enable_gpe+set}" = set; then
2979 enableval="$enable_gpe"
2980
2981 if test "$enableval" = yes; then
2982 ac_cv_use_gpe='wxUSE_GPE=yes'
2983 else
2984 ac_cv_use_gpe='wxUSE_GPE=no'
2985 fi
2986
2987else
2988
2989 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2990 if test "x$LINE" != x ; then
2991 eval "DEFAULT_$LINE"
2992 else
2993 no_cache=1
2994 fi
2995
2996 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2997
2998fi;
2999
3000 eval "$ac_cv_use_gpe"
3001 if test "$no_cache" != 1; then
3002 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
3003 fi
3004
3005 if test "$wxUSE_GPE" = yes; then
3006 echo "$as_me:$LINENO: result: yes" >&5
3007echo "${ECHO_T}yes" >&6
3008 else
3009 echo "$as_me:$LINENO: result: no" >&5
3010echo "${ECHO_T}no" >&6
3011 fi
3012
3013
3014
3015 echo "$as_me:$LINENO: checking for --with-libpng" >&5
3016echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
3017 no_cache=0
3018
3019# Check whether --with-libpng or --without-libpng was given.
3020if test "${with_libpng+set}" = set; then
3021 withval="$with_libpng"
3022
3023 if test "$withval" = yes; then
3024 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
3025 elif test "$withval" = no; then
3026 ac_cv_use_libpng='wxUSE_LIBPNG=no'
3027 elif test "$withval" = sys; then
3028 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
3029 elif test "$withval" = builtin; then
3030 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
3031 else
3032 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3033echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3034 { (exit 1); exit 1; }; }
3035 fi
3036
3037else
3038
3039 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3040 if test "x$LINE" != x ; then
3041 eval "DEFAULT_$LINE"
3042 else
3043 no_cache=1
3044 fi
3045
3046 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3047
3048fi;
3049
3050 eval "$ac_cv_use_libpng"
3051 if test "$no_cache" != 1; then
3052 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3053 fi
3054
3055 if test "$wxUSE_LIBPNG" = yes; then
3056 echo "$as_me:$LINENO: result: yes" >&5
3057echo "${ECHO_T}yes" >&6
3058 elif test "$wxUSE_LIBPNG" = no; then
3059 echo "$as_me:$LINENO: result: no" >&5
3060echo "${ECHO_T}no" >&6
3061 elif test "$wxUSE_LIBPNG" = sys; then
3062 echo "$as_me:$LINENO: result: system version" >&5
3063echo "${ECHO_T}system version" >&6
3064 elif test "$wxUSE_LIBPNG" = builtin; then
3065 echo "$as_me:$LINENO: result: builtin version" >&5
3066echo "${ECHO_T}builtin version" >&6
3067 else
3068 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3069echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3070 { (exit 1); exit 1; }; }
3071 fi
3072
3073
3074 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3075echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3076 no_cache=0
3077
3078# Check whether --with-libjpeg or --without-libjpeg was given.
3079if test "${with_libjpeg+set}" = set; then
3080 withval="$with_libjpeg"
3081
3082 if test "$withval" = yes; then
3083 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3084 elif test "$withval" = no; then
3085 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3086 elif test "$withval" = sys; then
3087 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3088 elif test "$withval" = builtin; then
3089 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3090 else
3091 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3092echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3093 { (exit 1); exit 1; }; }
3094 fi
3095
3096else
3097
3098 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3099 if test "x$LINE" != x ; then
3100 eval "DEFAULT_$LINE"
3101 else
3102 no_cache=1
3103 fi
3104
3105 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3106
3107fi;
3108
3109 eval "$ac_cv_use_libjpeg"
3110 if test "$no_cache" != 1; then
3111 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3112 fi
3113
3114 if test "$wxUSE_LIBJPEG" = yes; then
3115 echo "$as_me:$LINENO: result: yes" >&5
3116echo "${ECHO_T}yes" >&6
3117 elif test "$wxUSE_LIBJPEG" = no; then
3118 echo "$as_me:$LINENO: result: no" >&5
3119echo "${ECHO_T}no" >&6
3120 elif test "$wxUSE_LIBJPEG" = sys; then
3121 echo "$as_me:$LINENO: result: system version" >&5
3122echo "${ECHO_T}system version" >&6
3123 elif test "$wxUSE_LIBJPEG" = builtin; then
3124 echo "$as_me:$LINENO: result: builtin version" >&5
3125echo "${ECHO_T}builtin version" >&6
3126 else
3127 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3128echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3129 { (exit 1); exit 1; }; }
3130 fi
3131
3132
3133 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3134echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3135 no_cache=0
3136
3137# Check whether --with-libtiff or --without-libtiff was given.
3138if test "${with_libtiff+set}" = set; then
3139 withval="$with_libtiff"
3140
3141 if test "$withval" = yes; then
3142 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3143 elif test "$withval" = no; then
3144 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3145 elif test "$withval" = sys; then
3146 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3147 elif test "$withval" = builtin; then
3148 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3149 else
3150 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3151echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3152 { (exit 1); exit 1; }; }
3153 fi
3154
3155else
3156
3157 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3158 if test "x$LINE" != x ; then
3159 eval "DEFAULT_$LINE"
3160 else
3161 no_cache=1
3162 fi
3163
3164 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3165
3166fi;
3167
3168 eval "$ac_cv_use_libtiff"
3169 if test "$no_cache" != 1; then
3170 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3171 fi
3172
3173 if test "$wxUSE_LIBTIFF" = yes; then
3174 echo "$as_me:$LINENO: result: yes" >&5
3175echo "${ECHO_T}yes" >&6
3176 elif test "$wxUSE_LIBTIFF" = no; then
3177 echo "$as_me:$LINENO: result: no" >&5
3178echo "${ECHO_T}no" >&6
3179 elif test "$wxUSE_LIBTIFF" = sys; then
3180 echo "$as_me:$LINENO: result: system version" >&5
3181echo "${ECHO_T}system version" >&6
3182 elif test "$wxUSE_LIBTIFF" = builtin; then
3183 echo "$as_me:$LINENO: result: builtin version" >&5
3184echo "${ECHO_T}builtin version" >&6
3185 else
3186 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3187echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3188 { (exit 1); exit 1; }; }
3189 fi
3190
3191
3192 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3193echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3194 no_cache=0
3195
3196# Check whether --with-libxpm or --without-libxpm was given.
3197if test "${with_libxpm+set}" = set; then
3198 withval="$with_libxpm"
3199
3200 if test "$withval" = yes; then
3201 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3202 elif test "$withval" = no; then
3203 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3204 elif test "$withval" = sys; then
3205 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3206 elif test "$withval" = builtin; then
3207 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3208 else
3209 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3210echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3211 { (exit 1); exit 1; }; }
3212 fi
3213
3214else
3215
3216 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3217 if test "x$LINE" != x ; then
3218 eval "DEFAULT_$LINE"
3219 else
3220 no_cache=1
3221 fi
3222
3223 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3224
3225fi;
3226
3227 eval "$ac_cv_use_libxpm"
3228 if test "$no_cache" != 1; then
3229 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3230 fi
3231
3232 if test "$wxUSE_LIBXPM" = yes; then
3233 echo "$as_me:$LINENO: result: yes" >&5
3234echo "${ECHO_T}yes" >&6
3235 elif test "$wxUSE_LIBXPM" = no; then
3236 echo "$as_me:$LINENO: result: no" >&5
3237echo "${ECHO_T}no" >&6
3238 elif test "$wxUSE_LIBXPM" = sys; then
3239 echo "$as_me:$LINENO: result: system version" >&5
3240echo "${ECHO_T}system version" >&6
3241 elif test "$wxUSE_LIBXPM" = builtin; then
3242 echo "$as_me:$LINENO: result: builtin version" >&5
3243echo "${ECHO_T}builtin version" >&6
3244 else
3245 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3246echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3247 { (exit 1); exit 1; }; }
3248 fi
3249
3250
077c7880 3251 withstring=
1c14217d
VZ
3252 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3253echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3254 no_cache=0
3255
3256# Check whether --with-libmspack or --without-libmspack was given.
3257if test "${with_libmspack+set}" = set; then
3258 withval="$with_libmspack"
3259
3260 if test "$withval" = yes; then
3261 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3262 else
3263 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3264 fi
3265
3266else
3267
3268 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3269 if test "x$LINE" != x ; then
3270 eval "DEFAULT_$LINE"
3271 else
3272 no_cache=1
3273 fi
3274
3275 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3276
3277fi;
3278
3279 eval "$ac_cv_use_libmspack"
3280 if test "$no_cache" != 1; then
3281 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3282 fi
3283
3284 if test "$wxUSE_LIBMSPACK" = yes; then
3285 echo "$as_me:$LINENO: result: yes" >&5
3286echo "${ECHO_T}yes" >&6
3287 else
3288 echo "$as_me:$LINENO: result: no" >&5
3289echo "${ECHO_T}no" >&6
3290 fi
3291
3292
077c7880 3293 withstring=
1c14217d
VZ
3294 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3295echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3296 no_cache=0
3297
3298# Check whether --with-sdl or --without-sdl was given.
3299if test "${with_sdl+set}" = set; then
3300 withval="$with_sdl"
3301
3302 if test "$withval" = yes; then
3303 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3304 else
3305 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3306 fi
3307
3308else
3309
3310 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3311 if test "x$LINE" != x ; then
3312 eval "DEFAULT_$LINE"
3313 else
3314 no_cache=1
3315 fi
3316
3317 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3318
3319fi;
3320
3321 eval "$ac_cv_use_sdl"
3322 if test "$no_cache" != 1; then
3323 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3324 fi
3325
3326 if test "$wxUSE_LIBSDL" = yes; then
3327 echo "$as_me:$LINENO: result: yes" >&5
3328echo "${ECHO_T}yes" >&6
3329 else
3330 echo "$as_me:$LINENO: result: no" >&5
3331echo "${ECHO_T}no" >&6
3332 fi
3333
3334
077c7880 3335 withstring=
1c14217d
VZ
3336 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3337echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3338 no_cache=0
3339
3340# Check whether --with-gnomeprint or --without-gnomeprint was given.
3341if test "${with_gnomeprint+set}" = set; then
3342 withval="$with_gnomeprint"
3343
3344 if test "$withval" = yes; then
3345 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3346 else
3347 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3348 fi
3349
3350else
3351
3352 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3353 if test "x$LINE" != x ; then
3354 eval "DEFAULT_$LINE"
3355 else
3356 no_cache=1
3357 fi
3358
3359 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3360
3361fi;
3362
3363 eval "$ac_cv_use_gnomeprint"
3364 if test "$no_cache" != 1; then
3365 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3366 fi
3367
3368 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3369 echo "$as_me:$LINENO: result: yes" >&5
3370echo "${ECHO_T}yes" >&6
3371 else
3372 echo "$as_me:$LINENO: result: no" >&5
3373echo "${ECHO_T}no" >&6
3374 fi
3375
3376
077c7880 3377 withstring=
2b850ae1
RR
3378 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3379echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3380 no_cache=0
3381
3382# Check whether --with-gnomevfs or --without-gnomevfs was given.
3383if test "${with_gnomevfs+set}" = set; then
3384 withval="$with_gnomevfs"
3385
3386 if test "$withval" = yes; then
3387 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3388 else
3389 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3390 fi
3391
3392else
3393
3394 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3395 if test "x$LINE" != x ; then
3396 eval "DEFAULT_$LINE"
3397 else
3398 no_cache=1
3399 fi
3400
3401 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3402
3403fi;
3404
3405 eval "$ac_cv_use_gnomevfs"
3406 if test "$no_cache" != 1; then
3407 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3408 fi
3409
3410 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3411 echo "$as_me:$LINENO: result: yes" >&5
3412echo "${ECHO_T}yes" >&6
3413 else
3414 echo "$as_me:$LINENO: result: no" >&5
3415echo "${ECHO_T}no" >&6
3416 fi
3417
3418
077c7880 3419 withstring=
3565d135
RR
3420 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3421echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3422 no_cache=0
3423
3424# Check whether --with-hildon or --without-hildon was given.
3425if test "${with_hildon+set}" = set; then
3426 withval="$with_hildon"
3427
3428 if test "$withval" = yes; then
3429 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3430 else
3431 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3432 fi
3433
3434else
3435
3436 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3437 if test "x$LINE" != x ; then
3438 eval "DEFAULT_$LINE"
3439 else
3440 no_cache=1
3441 fi
3442
3443 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3444
3445fi;
3446
3447 eval "$ac_cv_use_hildon"
3448 if test "$no_cache" != 1; then
3449 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3450 fi
3451
3452 if test "$wxUSE_LIBHILDON" = yes; then
3453 echo "$as_me:$LINENO: result: yes" >&5
3454echo "${ECHO_T}yes" >&6
3455 else
3456 echo "$as_me:$LINENO: result: no" >&5
3457echo "${ECHO_T}no" >&6
3458 fi
3459
3460
077c7880 3461 withstring=
1c14217d
VZ
3462 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3463echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3464 no_cache=0
3465
3466# Check whether --with-opengl or --without-opengl was given.
3467if test "${with_opengl+set}" = set; then
3468 withval="$with_opengl"
3469
3470 if test "$withval" = yes; then
3471 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3472 else
3473 ac_cv_use_opengl='wxUSE_OPENGL=no'
3474 fi
3475
3476else
3477
3478 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3479 if test "x$LINE" != x ; then
3480 eval "DEFAULT_$LINE"
3481 else
3482 no_cache=1
3483 fi
3484
3485 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3486
3487fi;
3488
3489 eval "$ac_cv_use_opengl"
3490 if test "$no_cache" != 1; then
3491 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3492 fi
3493
3494 if test "$wxUSE_OPENGL" = yes; then
3495 echo "$as_me:$LINENO: result: yes" >&5
3496echo "${ECHO_T}yes" >&6
3497 else
3498 echo "$as_me:$LINENO: result: no" >&5
3499echo "${ECHO_T}no" >&6
3500 fi
3501
3502
4353a8df
VZ
3503if test "$wxUSE_UNIVERSAL" = "yes"; then
3504
3505# Check whether --with-themes or --without-themes was given.
3506if test "${with_themes+set}" = set; then
3507 withval="$with_themes"
3508 wxUNIV_THEMES="$withval"
3509fi;
3510fi
3511
a848cd7e
SC
3512fi
3513
3514
077c7880 3515 withstring=
1c14217d
VZ
3516 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3517echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3518 no_cache=0
3519
3520# Check whether --with-dmalloc or --without-dmalloc was given.
3521if test "${with_dmalloc+set}" = set; then
3522 withval="$with_dmalloc"
3523
3524 if test "$withval" = yes; then
3525 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3526 else
3527 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3528 fi
3529
3530else
3531
3532 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3533 if test "x$LINE" != x ; then
3534 eval "DEFAULT_$LINE"
3535 else
3536 no_cache=1
3537 fi
3538
3539 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3540
3541fi;
3542
3543 eval "$ac_cv_use_dmalloc"
3544 if test "$no_cache" != 1; then
3545 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3546 fi
3547
3548 if test "$wxUSE_DMALLOC" = yes; then
3549 echo "$as_me:$LINENO: result: yes" >&5
3550echo "${ECHO_T}yes" >&6
3551 else
3552 echo "$as_me:$LINENO: result: no" >&5
3553echo "${ECHO_T}no" >&6
3554 fi
3555
3556
3557 echo "$as_me:$LINENO: checking for --with-regex" >&5
3558echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3559 no_cache=0
3560
3561# Check whether --with-regex or --without-regex was given.
3562if test "${with_regex+set}" = set; then
3563 withval="$with_regex"
3564
3565 if test "$withval" = yes; then
3566 ac_cv_use_regex='wxUSE_REGEX=yes'
3567 elif test "$withval" = no; then
3568 ac_cv_use_regex='wxUSE_REGEX=no'
3569 elif test "$withval" = sys; then
3570 ac_cv_use_regex='wxUSE_REGEX=sys'
3571 elif test "$withval" = builtin; then
3572 ac_cv_use_regex='wxUSE_REGEX=builtin'
3573 else
3574 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3575echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3576 { (exit 1); exit 1; }; }
3577 fi
3578
3579else
3580
3581 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3582 if test "x$LINE" != x ; then
3583 eval "DEFAULT_$LINE"
3584 else
3585 no_cache=1
3586 fi
3587
3588 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3589
3590fi;
3591
3592 eval "$ac_cv_use_regex"
3593 if test "$no_cache" != 1; then
3594 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3595 fi
3596
3597 if test "$wxUSE_REGEX" = yes; then
3598 echo "$as_me:$LINENO: result: yes" >&5
3599echo "${ECHO_T}yes" >&6
3600 elif test "$wxUSE_REGEX" = no; then
3601 echo "$as_me:$LINENO: result: no" >&5
3602echo "${ECHO_T}no" >&6
3603 elif test "$wxUSE_REGEX" = sys; then
3604 echo "$as_me:$LINENO: result: system version" >&5
3605echo "${ECHO_T}system version" >&6
3606 elif test "$wxUSE_REGEX" = builtin; then
3607 echo "$as_me:$LINENO: result: builtin version" >&5
3608echo "${ECHO_T}builtin version" >&6
3609 else
3610 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3611echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3612 { (exit 1); exit 1; }; }
3613 fi
3614
3615
3616 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3617echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3618 no_cache=0
3619
3620# Check whether --with-zlib or --without-zlib was given.
3621if test "${with_zlib+set}" = set; then
3622 withval="$with_zlib"
3623
3624 if test "$withval" = yes; then
3625 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3626 elif test "$withval" = no; then
3627 ac_cv_use_zlib='wxUSE_ZLIB=no'
3628 elif test "$withval" = sys; then
3629 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3630 elif test "$withval" = builtin; then
3631 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3632 else
3633 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3634echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3635 { (exit 1); exit 1; }; }
3636 fi
3637
3638else
3639
3640 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3641 if test "x$LINE" != x ; then
3642 eval "DEFAULT_$LINE"
3643 else
3644 no_cache=1
3645 fi
3646
3647 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3648
3649fi;
3650
3651 eval "$ac_cv_use_zlib"
3652 if test "$no_cache" != 1; then
3653 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3654 fi
3655
3656 if test "$wxUSE_ZLIB" = yes; then
3657 echo "$as_me:$LINENO: result: yes" >&5
3658echo "${ECHO_T}yes" >&6
3659 elif test "$wxUSE_ZLIB" = no; then
3660 echo "$as_me:$LINENO: result: no" >&5
3661echo "${ECHO_T}no" >&6
3662 elif test "$wxUSE_ZLIB" = sys; then
3663 echo "$as_me:$LINENO: result: system version" >&5
3664echo "${ECHO_T}system version" >&6
3665 elif test "$wxUSE_ZLIB" = builtin; then
3666 echo "$as_me:$LINENO: result: builtin version" >&5
3667echo "${ECHO_T}builtin version" >&6
3668 else
3669 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3670echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3671 { (exit 1); exit 1; }; }
3672 fi
3673
3674
3675 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3676echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3677 no_cache=0
3678
3679# Check whether --with-odbc or --without-odbc was given.
3680if test "${with_odbc+set}" = set; then
3681 withval="$with_odbc"
3682
3683 if test "$withval" = yes; then
3684 ac_cv_use_odbc='wxUSE_ODBC=yes'
3685 elif test "$withval" = no; then
3686 ac_cv_use_odbc='wxUSE_ODBC=no'
3687 elif test "$withval" = sys; then
3688 ac_cv_use_odbc='wxUSE_ODBC=sys'
3689 elif test "$withval" = builtin; then
3690 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3691 else
3692 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3693echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3694 { (exit 1); exit 1; }; }
3695 fi
3696
3697else
3698
3699 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3700 if test "x$LINE" != x ; then
3701 eval "DEFAULT_$LINE"
3702 else
3703 no_cache=1
3704 fi
3705
3706 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3707
3708fi;
3709
3710 eval "$ac_cv_use_odbc"
3711 if test "$no_cache" != 1; then
3712 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3713 fi
3714
3715 if test "$wxUSE_ODBC" = yes; then
3716 echo "$as_me:$LINENO: result: yes" >&5
3717echo "${ECHO_T}yes" >&6
3718 elif test "$wxUSE_ODBC" = no; then
3719 echo "$as_me:$LINENO: result: no" >&5
3720echo "${ECHO_T}no" >&6
3721 elif test "$wxUSE_ODBC" = sys; then
3722 echo "$as_me:$LINENO: result: system version" >&5
3723echo "${ECHO_T}system version" >&6
3724 elif test "$wxUSE_ODBC" = builtin; then
3725 echo "$as_me:$LINENO: result: builtin version" >&5
3726echo "${ECHO_T}builtin version" >&6
3727 else
3728 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3729echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3730 { (exit 1); exit 1; }; }
3731 fi
3732
3733
3734 echo "$as_me:$LINENO: checking for --with-expat" >&5
3735echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3736 no_cache=0
3737
3738# Check whether --with-expat or --without-expat was given.
3739if test "${with_expat+set}" = set; then
3740 withval="$with_expat"
3741
3742 if test "$withval" = yes; then
3743 ac_cv_use_expat='wxUSE_EXPAT=yes'
3744 elif test "$withval" = no; then
3745 ac_cv_use_expat='wxUSE_EXPAT=no'
3746 elif test "$withval" = sys; then
3747 ac_cv_use_expat='wxUSE_EXPAT=sys'
3748 elif test "$withval" = builtin; then
3749 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3750 else
3751 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3752echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3753 { (exit 1); exit 1; }; }
3754 fi
3755
3756else
3757
3758 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3759 if test "x$LINE" != x ; then
3760 eval "DEFAULT_$LINE"
3761 else
3762 no_cache=1
3763 fi
3764
3765 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3766
3767fi;
3768
3769 eval "$ac_cv_use_expat"
3770 if test "$no_cache" != 1; then
3771 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3772 fi
3773
3774 if test "$wxUSE_EXPAT" = yes; then
3775 echo "$as_me:$LINENO: result: yes" >&5
3776echo "${ECHO_T}yes" >&6
3777 elif test "$wxUSE_EXPAT" = no; then
3778 echo "$as_me:$LINENO: result: no" >&5
3779echo "${ECHO_T}no" >&6
3780 elif test "$wxUSE_EXPAT" = sys; then
3781 echo "$as_me:$LINENO: result: system version" >&5
3782echo "${ECHO_T}system version" >&6
3783 elif test "$wxUSE_EXPAT" = builtin; then
3784 echo "$as_me:$LINENO: result: builtin version" >&5
3785echo "${ECHO_T}builtin version" >&6
3786 else
3787 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3788echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3789 { (exit 1); exit 1; }; }
3790 fi
3791
3792
3793
3794
077c7880 3795 enablestring=
a848cd7e
SC
3796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3797echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3798 no_cache=0
3799 # Check whether --enable-shared or --disable-shared was given.
3800if test "${enable_shared+set}" = set; then
3801 enableval="$enable_shared"
3802
3803 if test "$enableval" = yes; then
3804 ac_cv_use_shared='wxUSE_SHARED=yes'
3805 else
3806 ac_cv_use_shared='wxUSE_SHARED=no'
3807 fi
3808
3809else
3810
3811 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3812 if test "x$LINE" != x ; then
3813 eval "DEFAULT_$LINE"
3814 else
3815 no_cache=1
3816 fi
3817
3818 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3819
3820fi;
3821
3822 eval "$ac_cv_use_shared"
3823 if test "$no_cache" != 1; then
3824 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3825 fi
3826
3827 if test "$wxUSE_SHARED" = yes; then
3828 echo "$as_me:$LINENO: result: yes" >&5
3829echo "${ECHO_T}yes" >&6
3830 else
3831 echo "$as_me:$LINENO: result: no" >&5
3832echo "${ECHO_T}no" >&6
3833 fi
3834
3835
077c7880 3836 enablestring=
a848cd7e
SC
3837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3838echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3839 no_cache=0
3840 # Check whether --enable-optimise or --disable-optimise was given.
3841if test "${enable_optimise+set}" = set; then
3842 enableval="$enable_optimise"
3843
3844 if test "$enableval" = yes; then
3845 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3846 else
3847 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3848 fi
3849
3850else
3851
3852 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3853 if test "x$LINE" != x ; then
3854 eval "DEFAULT_$LINE"
3855 else
3856 no_cache=1
3857 fi
3858
3859 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3860
3861fi;
3862
3863 eval "$ac_cv_use_optimise"
3864 if test "$no_cache" != 1; then
3865 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3866 fi
3867
3868 if test "$wxUSE_OPTIMISE" = yes; then
3869 echo "$as_me:$LINENO: result: yes" >&5
3870echo "${ECHO_T}yes" >&6
3871 else
3872 echo "$as_me:$LINENO: result: no" >&5
3873echo "${ECHO_T}no" >&6
3874 fi
3875
3876
077c7880 3877 enablestring=
a848cd7e
SC
3878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3879echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3880 no_cache=0
3881 # Check whether --enable-debug or --disable-debug was given.
3882if test "${enable_debug+set}" = set; then
3883 enableval="$enable_debug"
3884
3885 if test "$enableval" = yes; then
3886 ac_cv_use_debug='wxUSE_DEBUG=yes'
3887 else
3888 ac_cv_use_debug='wxUSE_DEBUG=no'
3889 fi
3890
3891else
3892
3893 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3894 if test "x$LINE" != x ; then
3895 eval "DEFAULT_$LINE"
3896 else
3897 no_cache=1
3898 fi
3899
3900 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3901
3902fi;
3903
3904 eval "$ac_cv_use_debug"
3905 if test "$no_cache" != 1; then
3906 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3907 fi
3908
3909 if test "$wxUSE_DEBUG" = yes; then
3910 echo "$as_me:$LINENO: result: yes" >&5
3911echo "${ECHO_T}yes" >&6
3912 else
3913 echo "$as_me:$LINENO: result: no" >&5
3914echo "${ECHO_T}no" >&6
3915 fi
3916
3917
077c7880 3918 enablestring=
a848cd7e
SC
3919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3920echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3921 no_cache=0
3922 # Check whether --enable-stl or --disable-stl was given.
3923if test "${enable_stl+set}" = set; then
3924 enableval="$enable_stl"
3925
3926 if test "$enableval" = yes; then
3927 ac_cv_use_stl='wxUSE_STL=yes'
3928 else
3929 ac_cv_use_stl='wxUSE_STL=no'
3930 fi
3931
3932else
3933
3934 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3935 if test "x$LINE" != x ; then
3936 eval "DEFAULT_$LINE"
3937 else
3938 no_cache=1
3939 fi
3940
3941 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3942
3943fi;
3944
3945 eval "$ac_cv_use_stl"
3946 if test "$no_cache" != 1; then
3947 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3948 fi
3949
3950 if test "$wxUSE_STL" = yes; then
3951 echo "$as_me:$LINENO: result: yes" >&5
3952echo "${ECHO_T}yes" >&6
3953 else
3954 echo "$as_me:$LINENO: result: no" >&5
3955echo "${ECHO_T}no" >&6
3956 fi
3957
3958if test "$USE_OS2" = "1"; then
69120ee4 3959 DEFAULT_wxUSE_OMF=no
a848cd7e 3960
077c7880 3961 enablestring=
a848cd7e
SC
3962 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3963echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3964 no_cache=0
3965 # Check whether --enable-omf or --disable-omf was given.
3966if test "${enable_omf+set}" = set; then
3967 enableval="$enable_omf"
3968
3969 if test "$enableval" = yes; then
3970 ac_cv_use_omf='wxUSE_OMF=yes'
3971 else
3972 ac_cv_use_omf='wxUSE_OMF=no'
3973 fi
3974
3975else
3976
3977 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3978 if test "x$LINE" != x ; then
3979 eval "DEFAULT_$LINE"
3980 else
3981 no_cache=1
3982 fi
3983
3984 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3985
3986fi;
3987
3988 eval "$ac_cv_use_omf"
3989 if test "$no_cache" != 1; then
3990 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3991 fi
3992
3993 if test "$wxUSE_OMF" = yes; then
3994 echo "$as_me:$LINENO: result: yes" >&5
3995echo "${ECHO_T}yes" >&6
3996 else
3997 echo "$as_me:$LINENO: result: no" >&5
3998echo "${ECHO_T}no" >&6
3999 fi
4000
4001fi
4002
4003if test "$wxUSE_DEBUG" = "yes"; then
4004 DEFAULT_wxUSE_DEBUG_FLAG=yes
4005 DEFAULT_wxUSE_DEBUG_INFO=yes
4006 BUILD=debug
4007elif test "$wxUSE_DEBUG" = "no"; then
4008 DEFAULT_wxUSE_DEBUG_FLAG=no
4009 DEFAULT_wxUSE_DEBUG_INFO=no
4010 BUILD=release
4011fi
4012
4013
077c7880 4014 enablestring=
a848cd7e
SC
4015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4016echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
4017 no_cache=0
4018 # Check whether --enable-debug_flag or --disable-debug_flag was given.
4019if test "${enable_debug_flag+set}" = set; then
4020 enableval="$enable_debug_flag"
4021
4022 if test "$enableval" = yes; then
4023 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4024 else
4025 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4026 fi
4027
4028else
4029
4030 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
4031 if test "x$LINE" != x ; then
4032 eval "DEFAULT_$LINE"
4033 else
4034 no_cache=1
4035 fi
4036
4037 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4038
4039fi;
4040
4041 eval "$ac_cv_use_debug_flag"
4042 if test "$no_cache" != 1; then
4043 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4044 fi
4045
4046 if test "$wxUSE_DEBUG_FLAG" = yes; then
4047 echo "$as_me:$LINENO: result: yes" >&5
4048echo "${ECHO_T}yes" >&6
4049 else
4050 echo "$as_me:$LINENO: result: no" >&5
4051echo "${ECHO_T}no" >&6
4052 fi
4053
4054
077c7880 4055 enablestring=
a848cd7e
SC
4056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4057echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4058 no_cache=0
4059 # Check whether --enable-debug_info or --disable-debug_info was given.
4060if test "${enable_debug_info+set}" = set; then
4061 enableval="$enable_debug_info"
4062
4063 if test "$enableval" = yes; then
4064 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4065 else
4066 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4067 fi
4068
4069else
4070
4071 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4072 if test "x$LINE" != x ; then
4073 eval "DEFAULT_$LINE"
4074 else
4075 no_cache=1
4076 fi
4077
4078 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4079
4080fi;
4081
4082 eval "$ac_cv_use_debug_info"
4083 if test "$no_cache" != 1; then
4084 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4085 fi
4086
4087 if test "$wxUSE_DEBUG_INFO" = yes; then
4088 echo "$as_me:$LINENO: result: yes" >&5
4089echo "${ECHO_T}yes" >&6
4090 else
4091 echo "$as_me:$LINENO: result: no" >&5
4092echo "${ECHO_T}no" >&6
4093 fi
4094
4095
077c7880 4096 enablestring=
a848cd7e
SC
4097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4098echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4099 no_cache=0
4100 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4101if test "${enable_debug_gdb+set}" = set; then
4102 enableval="$enable_debug_gdb"
4103
4104 if test "$enableval" = yes; then
4105 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4106 else
4107 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4108 fi
4109
4110else
4111
4112 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4113 if test "x$LINE" != x ; then
4114 eval "DEFAULT_$LINE"
4115 else
4116 no_cache=1
4117 fi
4118
4119 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4120
4121fi;
4122
4123 eval "$ac_cv_use_debug_gdb"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$wxUSE_DEBUG_GDB" = yes; then
4129 echo "$as_me:$LINENO: result: yes" >&5
4130echo "${ECHO_T}yes" >&6
4131 else
4132 echo "$as_me:$LINENO: result: no" >&5
4133echo "${ECHO_T}no" >&6
4134 fi
4135
4136
077c7880 4137 enablestring=
a848cd7e
SC
4138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4139echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4140 no_cache=0
4141 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4142if test "${enable_debug_cntxt+set}" = set; then
4143 enableval="$enable_debug_cntxt"
4144
4145 if test "$enableval" = yes; then
4146 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4147 else
4148 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4149 fi
4150
4151else
4152
4153 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4154 if test "x$LINE" != x ; then
4155 eval "DEFAULT_$LINE"
4156 else
4157 no_cache=1
4158 fi
4159
4160 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4161
4162fi;
4163
4164 eval "$ac_cv_use_debug_cntxt"
4165 if test "$no_cache" != 1; then
4166 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4167 fi
4168
4169 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4170 echo "$as_me:$LINENO: result: yes" >&5
4171echo "${ECHO_T}yes" >&6
4172 else
4173 echo "$as_me:$LINENO: result: no" >&5
4174echo "${ECHO_T}no" >&6
4175 fi
4176
4177
077c7880 4178 enablestring=
a848cd7e
SC
4179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4180echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4181 no_cache=0
4182 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4183if test "${enable_mem_tracing+set}" = set; then
4184 enableval="$enable_mem_tracing"
4185
4186 if test "$enableval" = yes; then
4187 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4188 else
4189 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4190 fi
4191
4192else
4193
4194 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4195 if test "x$LINE" != x ; then
4196 eval "DEFAULT_$LINE"
4197 else
4198 no_cache=1
4199 fi
4200
4201 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4202
4203fi;
4204
4205 eval "$ac_cv_use_mem_tracing"
4206 if test "$no_cache" != 1; then
4207 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4208 fi
4209
4210 if test "$wxUSE_MEM_TRACING" = yes; then
4211 echo "$as_me:$LINENO: result: yes" >&5
4212echo "${ECHO_T}yes" >&6
4213 else
4214 echo "$as_me:$LINENO: result: no" >&5
4215echo "${ECHO_T}no" >&6
4216 fi
4217
4218
077c7880 4219 enablestring=
a848cd7e
SC
4220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4221echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4222 no_cache=0
4223 # Check whether --enable-profile or --disable-profile was given.
4224if test "${enable_profile+set}" = set; then
4225 enableval="$enable_profile"
4226
4227 if test "$enableval" = yes; then
4228 ac_cv_use_profile='wxUSE_PROFILE=yes'
4229 else
4230 ac_cv_use_profile='wxUSE_PROFILE=no'
4231 fi
4232
4233else
4234
4235 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4236 if test "x$LINE" != x ; then
4237 eval "DEFAULT_$LINE"
4238 else
4239 no_cache=1
4240 fi
4241
4242 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4243
4244fi;
4245
4246 eval "$ac_cv_use_profile"
4247 if test "$no_cache" != 1; then
4248 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4249 fi
4250
4251 if test "$wxUSE_PROFILE" = yes; then
4252 echo "$as_me:$LINENO: result: yes" >&5
4253echo "${ECHO_T}yes" >&6
4254 else
4255 echo "$as_me:$LINENO: result: no" >&5
4256echo "${ECHO_T}no" >&6
4257 fi
4258
4259
077c7880 4260 enablestring=
a848cd7e
SC
4261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4262echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4263 no_cache=0
4264 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4265if test "${enable_no_rtti+set}" = set; then
4266 enableval="$enable_no_rtti"
4267
4268 if test "$enableval" = yes; then
4269 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4270 else
4271 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4272 fi
4273
4274else
4275
4276 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4277 if test "x$LINE" != x ; then
4278 eval "DEFAULT_$LINE"
4279 else
4280 no_cache=1
4281 fi
4282
4283 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4284
4285fi;
4286
4287 eval "$ac_cv_use_no_rtti"
4288 if test "$no_cache" != 1; then
4289 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4290 fi
4291
4292 if test "$wxUSE_NO_RTTI" = yes; then
4293 echo "$as_me:$LINENO: result: yes" >&5
4294echo "${ECHO_T}yes" >&6
4295 else
4296 echo "$as_me:$LINENO: result: no" >&5
4297echo "${ECHO_T}no" >&6
4298 fi
4299
4300
077c7880 4301 enablestring=
a848cd7e
SC
4302 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4303echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4304 no_cache=0
4305 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4306if test "${enable_no_exceptions+set}" = set; then
4307 enableval="$enable_no_exceptions"
4308
4309 if test "$enableval" = yes; then
4310 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4311 else
4312 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4313 fi
4314
4315else
4316
4317 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4318 if test "x$LINE" != x ; then
4319 eval "DEFAULT_$LINE"
4320 else
4321 no_cache=1
4322 fi
4323
4324 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4325
4326fi;
4327
4328 eval "$ac_cv_use_no_exceptions"
4329 if test "$no_cache" != 1; then
4330 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4331 fi
4332
4333 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4334 echo "$as_me:$LINENO: result: yes" >&5
4335echo "${ECHO_T}yes" >&6
4336 else
4337 echo "$as_me:$LINENO: result: no" >&5
4338echo "${ECHO_T}no" >&6
4339 fi
4340
4341
077c7880 4342 enablestring=
a848cd7e
SC
4343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4344echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4345 no_cache=0
4346 # Check whether --enable-permissive or --disable-permissive was given.
4347if test "${enable_permissive+set}" = set; then
4348 enableval="$enable_permissive"
4349
4350 if test "$enableval" = yes; then
4351 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4352 else
4353 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4354 fi
4355
4356else
4357
4358 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4359 if test "x$LINE" != x ; then
4360 eval "DEFAULT_$LINE"
4361 else
4362 no_cache=1
4363 fi
4364
4365 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4366
4367fi;
4368
4369 eval "$ac_cv_use_permissive"
4370 if test "$no_cache" != 1; then
4371 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4372 fi
4373
4374 if test "$wxUSE_PERMISSIVE" = yes; then
4375 echo "$as_me:$LINENO: result: yes" >&5
4376echo "${ECHO_T}yes" >&6
4377 else
4378 echo "$as_me:$LINENO: result: no" >&5
4379echo "${ECHO_T}no" >&6
4380 fi
4381
4382
077c7880 4383 enablestring=
a848cd7e
SC
4384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4385echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4386 no_cache=0
4387 # Check whether --enable-no_deps or --disable-no_deps was given.
4388if test "${enable_no_deps+set}" = set; then
4389 enableval="$enable_no_deps"
4390
4391 if test "$enableval" = yes; then
4392 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4393 else
4394 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4395 fi
4396
4397else
4398
4399 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4400 if test "x$LINE" != x ; then
4401 eval "DEFAULT_$LINE"
4402 else
4403 no_cache=1
4404 fi
4405
4406 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4407
4408fi;
4409
4410 eval "$ac_cv_use_no_deps"
4411 if test "$no_cache" != 1; then
4412 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4413 fi
4414
4415 if test "$wxUSE_NO_DEPS" = yes; then
4416 echo "$as_me:$LINENO: result: yes" >&5
4417echo "${ECHO_T}yes" >&6
4418 else
4419 echo "$as_me:$LINENO: result: no" >&5
4420echo "${ECHO_T}no" >&6
4421 fi
4422
4423
70c536f3
VZ
4424 enablestring=
4425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
4426echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6
4427 no_cache=0
4428 # Check whether --enable-vararg_macros or --disable-vararg_macros was given.
4429if test "${enable_vararg_macros+set}" = set; then
4430 enableval="$enable_vararg_macros"
4431
4432 if test "$enableval" = yes; then
4433 ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
4434 else
4435 ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
4436 fi
4437
4438else
4439
4440 LINE=`grep "wxUSE_VARARG_MACROS" ${wx_arg_cache_file}`
4441 if test "x$LINE" != x ; then
4442 eval "DEFAULT_$LINE"
4443 else
4444 no_cache=1
4445 fi
4446
4447 ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS='$DEFAULT_wxUSE_VARARG_MACROS
4448
4449fi;
4450
4451 eval "$ac_cv_use_vararg_macros"
4452 if test "$no_cache" != 1; then
4453 echo $ac_cv_use_vararg_macros >> ${wx_arg_cache_file}.tmp
4454 fi
4455
4456 if test "$wxUSE_VARARG_MACROS" = yes; then
4457 echo "$as_me:$LINENO: result: yes" >&5
4458echo "${ECHO_T}yes" >&6
4459 else
4460 echo "$as_me:$LINENO: result: no" >&5
4461echo "${ECHO_T}no" >&6
4462 fi
4463
4464
95768535 4465 enablestring=
7afc46ab
KO
4466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4467echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4468 no_cache=0
4469 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4470if test "${enable_universal_binary+set}" = set; then
4471 enableval="$enable_universal_binary"
4472
95768535 4473 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4474
4475else
4476
4477 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4478 if test "x$LINE" != x ; then
4479 eval "DEFAULT_$LINE"
95768535 4480 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4481 else
4482 no_cache=1
95768535 4483 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4484 fi
4485
7afc46ab
KO
4486fi;
4487
95768535 4488 eval "$wx_cv_use_universal_binary"
7afc46ab 4489 if test "$no_cache" != 1; then
95768535 4490 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4491 fi
4492
95768535
MW
4493 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4494echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4495
4496
a848cd7e 4497
077c7880 4498 enablestring=enable
dee1a63f
MB
4499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4500echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4501 no_cache=0
dee1a63f
MB
4502 # Check whether --enable-compat24 or --disable-compat24 was given.
4503if test "${enable_compat24+set}" = set; then
4504 enableval="$enable_compat24"
a848cd7e
SC
4505
4506 if test "$enableval" = yes; then
dee1a63f 4507 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4508 else
dee1a63f 4509 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4510 fi
4511
4512else
4513
dee1a63f 4514 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4515 if test "x$LINE" != x ; then
4516 eval "DEFAULT_$LINE"
4517 else
4518 no_cache=1
4519 fi
4520
dee1a63f 4521 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4522
4523fi;
4524
dee1a63f 4525 eval "$ac_cv_use_compat24"
a848cd7e 4526 if test "$no_cache" != 1; then
dee1a63f 4527 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4528 fi
4529
dee1a63f 4530 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4531 echo "$as_me:$LINENO: result: yes" >&5
4532echo "${ECHO_T}yes" >&6
4533 else
4534 echo "$as_me:$LINENO: result: no" >&5
4535echo "${ECHO_T}no" >&6
4536 fi
4537
4538
077c7880 4539 enablestring=disable
dee1a63f
MB
4540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4541echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4542 no_cache=0
dee1a63f
MB
4543 # Check whether --enable-compat26 or --disable-compat26 was given.
4544if test "${enable_compat26+set}" = set; then
4545 enableval="$enable_compat26"
a848cd7e
SC
4546
4547 if test "$enableval" = yes; then
dee1a63f 4548 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4549 else
dee1a63f 4550 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4551 fi
4552
4553else
4554
dee1a63f 4555 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4556 if test "x$LINE" != x ; then
4557 eval "DEFAULT_$LINE"
4558 else
4559 no_cache=1
4560 fi
4561
dee1a63f 4562 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4563
4564fi;
4565
dee1a63f 4566 eval "$ac_cv_use_compat26"
a848cd7e 4567 if test "$no_cache" != 1; then
dee1a63f 4568 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4569 fi
4570
dee1a63f 4571 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4572 echo "$as_me:$LINENO: result: yes" >&5
4573echo "${ECHO_T}yes" >&6
4574 else
4575 echo "$as_me:$LINENO: result: no" >&5
4576echo "${ECHO_T}no" >&6
4577 fi
4578
4579
ffa0583f 4580
077c7880 4581 enablestring=
ffa0583f
RL
4582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4583echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4584 no_cache=0
4585 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4586if test "${enable_rpath+set}" = set; then
4587 enableval="$enable_rpath"
ffa0583f
RL
4588
4589 if test "$enableval" = yes; then
4590 ac_cv_use_rpath='wxUSE_RPATH=yes'
4591 else
4592 ac_cv_use_rpath='wxUSE_RPATH=no'
4593 fi
4594
4595else
4596
4597 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4598 if test "x$LINE" != x ; then
4599 eval "DEFAULT_$LINE"
4600 else
4601 no_cache=1
4602 fi
4603
4604 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4605
a848cd7e
SC
4606fi;
4607
ffa0583f
RL
4608 eval "$ac_cv_use_rpath"
4609 if test "$no_cache" != 1; then
4610 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4611 fi
4612
4613 if test "$wxUSE_RPATH" = yes; then
4614 echo "$as_me:$LINENO: result: yes" >&5
4615echo "${ECHO_T}yes" >&6
4616 else
4617 echo "$as_me:$LINENO: result: no" >&5
4618echo "${ECHO_T}no" >&6
4619 fi
4620
a848cd7e
SC
4621
4622
4623
4624
077c7880 4625 enablestring=
a848cd7e
SC
4626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4627echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4628 no_cache=0
4629 # Check whether --enable-intl or --disable-intl was given.
4630if test "${enable_intl+set}" = set; then
4631 enableval="$enable_intl"
4632
4633 if test "$enableval" = yes; then
4634 ac_cv_use_intl='wxUSE_INTL=yes'
4635 else
4636 ac_cv_use_intl='wxUSE_INTL=no'
4637 fi
4638
4639else
4640
4641 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4642 if test "x$LINE" != x ; then
4643 eval "DEFAULT_$LINE"
4644 else
4645 no_cache=1
4646 fi
4647
4648 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4649
4650fi;
4651
4652 eval "$ac_cv_use_intl"
4653 if test "$no_cache" != 1; then
4654 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4655 fi
4656
4657 if test "$wxUSE_INTL" = yes; then
4658 echo "$as_me:$LINENO: result: yes" >&5
4659echo "${ECHO_T}yes" >&6
4660 else
4661 echo "$as_me:$LINENO: result: no" >&5
4662echo "${ECHO_T}no" >&6
4663 fi
4664
4665
077c7880 4666 enablestring=
a848cd7e
SC
4667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4668echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4669 no_cache=0
4670 # Check whether --enable-config or --disable-config was given.
4671if test "${enable_config+set}" = set; then
4672 enableval="$enable_config"
4673
4674 if test "$enableval" = yes; then
4675 ac_cv_use_config='wxUSE_CONFIG=yes'
4676 else
4677 ac_cv_use_config='wxUSE_CONFIG=no'
4678 fi
4679
4680else
4681
4682 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4683 if test "x$LINE" != x ; then
4684 eval "DEFAULT_$LINE"
4685 else
4686 no_cache=1
4687 fi
4688
4689 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4690
4691fi;
4692
4693 eval "$ac_cv_use_config"
4694 if test "$no_cache" != 1; then
4695 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4696 fi
4697
4698 if test "$wxUSE_CONFIG" = yes; then
4699 echo "$as_me:$LINENO: result: yes" >&5
4700echo "${ECHO_T}yes" >&6
4701 else
4702 echo "$as_me:$LINENO: result: no" >&5
4703echo "${ECHO_T}no" >&6
4704 fi
4705
4706
4707
077c7880 4708 enablestring=
a848cd7e
SC
4709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4710echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4711 no_cache=0
4712 # Check whether --enable-protocols or --disable-protocols was given.
4713if test "${enable_protocols+set}" = set; then
4714 enableval="$enable_protocols"
4715
4716 if test "$enableval" = yes; then
4717 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4718 else
4719 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4720 fi
4721
4722else
4723
4724 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4725 if test "x$LINE" != x ; then
4726 eval "DEFAULT_$LINE"
4727 else
4728 no_cache=1
4729 fi
4730
4731 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4732
4733fi;
4734
4735 eval "$ac_cv_use_protocols"
4736 if test "$no_cache" != 1; then
4737 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4738 fi
4739
4740 if test "$wxUSE_PROTOCOL" = yes; then
4741 echo "$as_me:$LINENO: result: yes" >&5
4742echo "${ECHO_T}yes" >&6
4743 else
4744 echo "$as_me:$LINENO: result: no" >&5
4745echo "${ECHO_T}no" >&6
4746 fi
4747
4748
077c7880 4749 enablestring=
a848cd7e
SC
4750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4751echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4752 no_cache=0
4753 # Check whether --enable-ftp or --disable-ftp was given.
4754if test "${enable_ftp+set}" = set; then
4755 enableval="$enable_ftp"
4756
4757 if test "$enableval" = yes; then
4758 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4759 else
4760 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4761 fi
4762
4763else
4764
4765 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4766 if test "x$LINE" != x ; then
4767 eval "DEFAULT_$LINE"
4768 else
4769 no_cache=1
4770 fi
4771
4772 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4773
4774fi;
4775
4776 eval "$ac_cv_use_ftp"
4777 if test "$no_cache" != 1; then
4778 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4779 fi
4780
4781 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4782 echo "$as_me:$LINENO: result: yes" >&5
4783echo "${ECHO_T}yes" >&6
4784 else
4785 echo "$as_me:$LINENO: result: no" >&5
4786echo "${ECHO_T}no" >&6
4787 fi
4788
4789
077c7880 4790 enablestring=
a848cd7e
SC
4791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4792echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4793 no_cache=0
4794 # Check whether --enable-http or --disable-http was given.
4795if test "${enable_http+set}" = set; then
4796 enableval="$enable_http"
4797
4798 if test "$enableval" = yes; then
4799 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4800 else
4801 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4802 fi
4803
4804else
4805
4806 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4807 if test "x$LINE" != x ; then
4808 eval "DEFAULT_$LINE"
4809 else
4810 no_cache=1
4811 fi
4812
4813 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4814
4815fi;
4816
4817 eval "$ac_cv_use_http"
4818 if test "$no_cache" != 1; then
4819 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4820 fi
4821
4822 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4823 echo "$as_me:$LINENO: result: yes" >&5
4824echo "${ECHO_T}yes" >&6
4825 else
4826 echo "$as_me:$LINENO: result: no" >&5
4827echo "${ECHO_T}no" >&6
4828 fi
4829
4830
077c7880 4831 enablestring=
a848cd7e
SC
4832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4833echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4834 no_cache=0
4835 # Check whether --enable-fileproto or --disable-fileproto was given.
4836if test "${enable_fileproto+set}" = set; then
4837 enableval="$enable_fileproto"
4838
4839 if test "$enableval" = yes; then
4840 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4841 else
4842 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4843 fi
4844
4845else
4846
4847 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4848 if test "x$LINE" != x ; then
4849 eval "DEFAULT_$LINE"
4850 else
4851 no_cache=1
4852 fi
4853
4854 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4855
4856fi;
4857
4858 eval "$ac_cv_use_fileproto"
4859 if test "$no_cache" != 1; then
4860 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4861 fi
4862
4863 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4864 echo "$as_me:$LINENO: result: yes" >&5
4865echo "${ECHO_T}yes" >&6
4866 else
4867 echo "$as_me:$LINENO: result: no" >&5
4868echo "${ECHO_T}no" >&6
4869 fi
4870
4871
077c7880 4872 enablestring=
a848cd7e
SC
4873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4874echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4875 no_cache=0
4876 # Check whether --enable-sockets or --disable-sockets was given.
4877if test "${enable_sockets+set}" = set; then
4878 enableval="$enable_sockets"
4879
4880 if test "$enableval" = yes; then
4881 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4882 else
4883 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4884 fi
4885
4886else
4887
4888 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4889 if test "x$LINE" != x ; then
4890 eval "DEFAULT_$LINE"
4891 else
4892 no_cache=1
4893 fi
4894
4895 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4896
4897fi;
4898
4899 eval "$ac_cv_use_sockets"
4900 if test "$no_cache" != 1; then
4901 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4902 fi
4903
4904 if test "$wxUSE_SOCKETS" = yes; then
4905 echo "$as_me:$LINENO: result: yes" >&5
4906echo "${ECHO_T}yes" >&6
4907 else
4908 echo "$as_me:$LINENO: result: no" >&5
4909echo "${ECHO_T}no" >&6
4910 fi
4911
4912
077c7880 4913 enablestring=
a848cd7e
SC
4914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4915echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4916 no_cache=0
4917 # Check whether --enable-ole or --disable-ole was given.
4918if test "${enable_ole+set}" = set; then
4919 enableval="$enable_ole"
4920
4921 if test "$enableval" = yes; then
4922 ac_cv_use_ole='wxUSE_OLE=yes'
4923 else
4924 ac_cv_use_ole='wxUSE_OLE=no'
4925 fi
4926
4927else
4928
4929 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4930 if test "x$LINE" != x ; then
4931 eval "DEFAULT_$LINE"
4932 else
4933 no_cache=1
4934 fi
4935
4936 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4937
4938fi;
4939
4940 eval "$ac_cv_use_ole"
4941 if test "$no_cache" != 1; then
4942 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4943 fi
4944
4945 if test "$wxUSE_OLE" = yes; then
4946 echo "$as_me:$LINENO: result: yes" >&5
4947echo "${ECHO_T}yes" >&6
4948 else
4949 echo "$as_me:$LINENO: result: no" >&5
4950echo "${ECHO_T}no" >&6
4951 fi
4952
4953
077c7880 4954 enablestring=
a848cd7e
SC
4955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4956echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4957 no_cache=0
4958 # Check whether --enable-dataobj or --disable-dataobj was given.
4959if test "${enable_dataobj+set}" = set; then
4960 enableval="$enable_dataobj"
4961
4962 if test "$enableval" = yes; then
4963 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4964 else
4965 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4966 fi
4967
4968else
4969
4970 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4971 if test "x$LINE" != x ; then
4972 eval "DEFAULT_$LINE"
4973 else
4974 no_cache=1
4975 fi
4976
4977 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4978
4979fi;
4980
4981 eval "$ac_cv_use_dataobj"
4982 if test "$no_cache" != 1; then
4983 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4984 fi
4985
4986 if test "$wxUSE_DATAOBJ" = yes; then
4987 echo "$as_me:$LINENO: result: yes" >&5
4988echo "${ECHO_T}yes" >&6
4989 else
4990 echo "$as_me:$LINENO: result: no" >&5
4991echo "${ECHO_T}no" >&6
4992 fi
4993
4994
4995
077c7880 4996 enablestring=
a848cd7e
SC
4997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4998echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4999 no_cache=0
5000 # Check whether --enable-ipc or --disable-ipc was given.
5001if test "${enable_ipc+set}" = set; then
5002 enableval="$enable_ipc"
5003
5004 if test "$enableval" = yes; then
5005 ac_cv_use_ipc='wxUSE_IPC=yes'
5006 else
5007 ac_cv_use_ipc='wxUSE_IPC=no'
5008 fi
5009
5010else
5011
5012 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
5013 if test "x$LINE" != x ; then
5014 eval "DEFAULT_$LINE"
5015 else
5016 no_cache=1
5017 fi
5018
5019 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
5020
5021fi;
5022
5023 eval "$ac_cv_use_ipc"
5024 if test "$no_cache" != 1; then
5025 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
5026 fi
5027
5028 if test "$wxUSE_IPC" = yes; then
5029 echo "$as_me:$LINENO: result: yes" >&5
5030echo "${ECHO_T}yes" >&6
5031 else
5032 echo "$as_me:$LINENO: result: no" >&5
5033echo "${ECHO_T}no" >&6
5034 fi
5035
5036
5037
077c7880 5038 enablestring=
a848cd7e
SC
5039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
5040echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
5041 no_cache=0
5042 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
5043if test "${enable_apple_ieee+set}" = set; then
5044 enableval="$enable_apple_ieee"
5045
5046 if test "$enableval" = yes; then
5047 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
5048 else
5049 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
5050 fi
5051
5052else
5053
5054 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
5055 if test "x$LINE" != x ; then
5056 eval "DEFAULT_$LINE"
5057 else
5058 no_cache=1
5059 fi
5060
5061 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5062
5063fi;
5064
5065 eval "$ac_cv_use_apple_ieee"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_APPLE_IEEE" = yes; then
5071 echo "$as_me:$LINENO: result: yes" >&5
5072echo "${ECHO_T}yes" >&6
5073 else
5074 echo "$as_me:$LINENO: result: no" >&5
5075echo "${ECHO_T}no" >&6
5076 fi
5077
5078
077c7880 5079 enablestring=
81f90336
MW
5080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5081echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
5082 no_cache=0
5083 # Check whether --enable-arcstream or --disable-arcstream was given.
5084if test "${enable_arcstream+set}" = set; then
5085 enableval="$enable_arcstream"
5086
5087 if test "$enableval" = yes; then
9e8e867f 5088 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 5089 else
9e8e867f 5090 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
5091 fi
5092
5093else
5094
9e8e867f 5095 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
5096 if test "x$LINE" != x ; then
5097 eval "DEFAULT_$LINE"
5098 else
5099 no_cache=1
5100 fi
5101
9e8e867f 5102 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
5103
5104fi;
5105
5106 eval "$ac_cv_use_arcstream"
5107 if test "$no_cache" != 1; then
5108 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5109 fi
5110
9e8e867f 5111 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
5112 echo "$as_me:$LINENO: result: yes" >&5
5113echo "${ECHO_T}yes" >&6
5114 else
5115 echo "$as_me:$LINENO: result: no" >&5
5116echo "${ECHO_T}no" >&6
5117 fi
5118
5119
077c7880 5120 enablestring=
36b6448c
VZ
5121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5122echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5123 no_cache=0
36b6448c
VZ
5124 # Check whether --enable-backtrace or --disable-backtrace was given.
5125if test "${enable_backtrace+set}" = set; then
5126 enableval="$enable_backtrace"
a848cd7e
SC
5127
5128 if test "$enableval" = yes; then
36b6448c 5129 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5130 else
36b6448c 5131 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5132 fi
5133
5134else
5135
36b6448c 5136 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5137 if test "x$LINE" != x ; then
5138 eval "DEFAULT_$LINE"
5139 else
5140 no_cache=1
5141 fi
5142
36b6448c 5143 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
5144
5145fi;
5146
36b6448c 5147 eval "$ac_cv_use_backtrace"
a848cd7e 5148 if test "$no_cache" != 1; then
36b6448c 5149 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5150 fi
5151
36b6448c 5152 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
5153 echo "$as_me:$LINENO: result: yes" >&5
5154echo "${ECHO_T}yes" >&6
5155 else
5156 echo "$as_me:$LINENO: result: no" >&5
5157echo "${ECHO_T}no" >&6
5158 fi
5159
5160
077c7880 5161 enablestring=
36b6448c
VZ
5162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5163echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5164 no_cache=0
36b6448c
VZ
5165 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5166if test "${enable_catch_segvs+set}" = set; then
5167 enableval="$enable_catch_segvs"
eaff0f0d
VZ
5168
5169 if test "$enableval" = yes; then
36b6448c 5170 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5171 else
36b6448c 5172 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5173 fi
5174
5175else
5176
36b6448c 5177 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5178 if test "x$LINE" != x ; then
5179 eval "DEFAULT_$LINE"
5180 else
5181 no_cache=1
5182 fi
5183
36b6448c 5184 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
5185
5186fi;
5187
36b6448c 5188 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5189 if test "$no_cache" != 1; then
36b6448c 5190 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5191 fi
5192
36b6448c 5193 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5194 echo "$as_me:$LINENO: result: yes" >&5
5195echo "${ECHO_T}yes" >&6
5196 else
5197 echo "$as_me:$LINENO: result: no" >&5
5198echo "${ECHO_T}no" >&6
5199 fi
5200
5201
077c7880 5202 enablestring=
a848cd7e
SC
5203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5204echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5205 no_cache=0
5206 # Check whether --enable-cmdline or --disable-cmdline was given.
5207if test "${enable_cmdline+set}" = set; then
5208 enableval="$enable_cmdline"
5209
5210 if test "$enableval" = yes; then
5211 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5212 else
5213 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5214 fi
5215
5216else
5217
5218 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5219 if test "x$LINE" != x ; then
5220 eval "DEFAULT_$LINE"
5221 else
5222 no_cache=1
5223 fi
5224
5225 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5226
5227fi;
5228
5229 eval "$ac_cv_use_cmdline"
5230 if test "$no_cache" != 1; then
5231 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5232 fi
5233
5234 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5235 echo "$as_me:$LINENO: result: yes" >&5
5236echo "${ECHO_T}yes" >&6
5237 else
5238 echo "$as_me:$LINENO: result: no" >&5
5239echo "${ECHO_T}no" >&6
5240 fi
5241
5242
077c7880 5243 enablestring=
a848cd7e
SC
5244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5245echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5246 no_cache=0
5247 # Check whether --enable-datetime or --disable-datetime was given.
5248if test "${enable_datetime+set}" = set; then
5249 enableval="$enable_datetime"
5250
5251 if test "$enableval" = yes; then
5252 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5253 else
5254 ac_cv_use_datetime='wxUSE_DATETIME=no'
5255 fi
5256
5257else
5258
5259 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5260 if test "x$LINE" != x ; then
5261 eval "DEFAULT_$LINE"
5262 else
5263 no_cache=1
5264 fi
5265
5266 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5267
5268fi;
5269
5270 eval "$ac_cv_use_datetime"
5271 if test "$no_cache" != 1; then
5272 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5273 fi
5274
5275 if test "$wxUSE_DATETIME" = yes; then
5276 echo "$as_me:$LINENO: result: yes" >&5
5277echo "${ECHO_T}yes" >&6
5278 else
5279 echo "$as_me:$LINENO: result: no" >&5
5280echo "${ECHO_T}no" >&6
5281 fi
5282
5283
077c7880 5284 enablestring=
36b6448c
VZ
5285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5286echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5287 no_cache=0
5288 # Check whether --enable-debugreport or --disable-debugreport was given.
5289if test "${enable_debugreport+set}" = set; then
5290 enableval="$enable_debugreport"
5291
5292 if test "$enableval" = yes; then
5293 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5294 else
5295 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5296 fi
5297
5298else
5299
5300 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5301 if test "x$LINE" != x ; then
5302 eval "DEFAULT_$LINE"
5303 else
5304 no_cache=1
5305 fi
5306
5307 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5308
5309fi;
5310
5311 eval "$ac_cv_use_debugreport"
5312 if test "$no_cache" != 1; then
5313 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5314 fi
5315
5316 if test "$wxUSE_DEBUGREPORT" = yes; then
5317 echo "$as_me:$LINENO: result: yes" >&5
5318echo "${ECHO_T}yes" >&6
5319 else
5320 echo "$as_me:$LINENO: result: no" >&5
5321echo "${ECHO_T}no" >&6
5322 fi
5323
5324
077c7880 5325 enablestring=
a848cd7e
SC
5326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5327echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5328 no_cache=0
5329 # Check whether --enable-dialupman or --disable-dialupman was given.
5330if test "${enable_dialupman+set}" = set; then
5331 enableval="$enable_dialupman"
5332
5333 if test "$enableval" = yes; then
5334 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5335 else
5336 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5337 fi
5338
5339else
5340
5341 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5342 if test "x$LINE" != x ; then
5343 eval "DEFAULT_$LINE"
5344 else
5345 no_cache=1
5346 fi
5347
5348 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5349
5350fi;
5351
5352 eval "$ac_cv_use_dialupman"
5353 if test "$no_cache" != 1; then
5354 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5355 fi
5356
5357 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5358 echo "$as_me:$LINENO: result: yes" >&5
5359echo "${ECHO_T}yes" >&6
5360 else
5361 echo "$as_me:$LINENO: result: no" >&5
5362echo "${ECHO_T}no" >&6
5363 fi
5364
5365
077c7880 5366 enablestring=
a848cd7e
SC
5367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5368echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5369 no_cache=0
5370 # Check whether --enable-dynlib or --disable-dynlib was given.
5371if test "${enable_dynlib+set}" = set; then
5372 enableval="$enable_dynlib"
5373
5374 if test "$enableval" = yes; then
5375 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5376 else
5377 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5378 fi
5379
5380else
5381
5382 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5383 if test "x$LINE" != x ; then
5384 eval "DEFAULT_$LINE"
5385 else
5386 no_cache=1
5387 fi
5388
5389 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5390
5391fi;
5392
5393 eval "$ac_cv_use_dynlib"
5394 if test "$no_cache" != 1; then
5395 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5396 fi
5397
5398 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5399 echo "$as_me:$LINENO: result: yes" >&5
5400echo "${ECHO_T}yes" >&6
5401 else
5402 echo "$as_me:$LINENO: result: no" >&5
5403echo "${ECHO_T}no" >&6
5404 fi
5405
5406
077c7880 5407 enablestring=
a848cd7e
SC
5408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5409echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5410 no_cache=0
5411 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5412if test "${enable_dynamicloader+set}" = set; then
5413 enableval="$enable_dynamicloader"
5414
5415 if test "$enableval" = yes; then
5416 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5417 else
5418 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5419 fi
5420
5421else
5422
5423 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5424 if test "x$LINE" != x ; then
5425 eval "DEFAULT_$LINE"
5426 else
5427 no_cache=1
5428 fi
5429
5430 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5431
5432fi;
5433
5434 eval "$ac_cv_use_dynamicloader"
5435 if test "$no_cache" != 1; then
5436 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5437 fi
5438
5439 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5440 echo "$as_me:$LINENO: result: yes" >&5
5441echo "${ECHO_T}yes" >&6
5442 else
5443 echo "$as_me:$LINENO: result: no" >&5
5444echo "${ECHO_T}no" >&6
5445 fi
5446
5447
077c7880 5448 enablestring=
a848cd7e
SC
5449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5450echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5451 no_cache=0
5452 # Check whether --enable-exceptions or --disable-exceptions was given.
5453if test "${enable_exceptions+set}" = set; then
5454 enableval="$enable_exceptions"
5455
5456 if test "$enableval" = yes; then
5457 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5458 else
5459 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5460 fi
5461
5462else
5463
5464 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5465 if test "x$LINE" != x ; then
5466 eval "DEFAULT_$LINE"
5467 else
5468 no_cache=1
5469 fi
5470
5471 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5472
5473fi;
5474
5475 eval "$ac_cv_use_exceptions"
5476 if test "$no_cache" != 1; then
5477 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5478 fi
5479
5480 if test "$wxUSE_EXCEPTIONS" = yes; then
5481 echo "$as_me:$LINENO: result: yes" >&5
5482echo "${ECHO_T}yes" >&6
5483 else
5484 echo "$as_me:$LINENO: result: no" >&5
5485echo "${ECHO_T}no" >&6
5486 fi
5487
5488
077c7880 5489 enablestring=
a848cd7e
SC
5490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5491echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5492 no_cache=0
5493 # Check whether --enable-ffile or --disable-ffile was given.
5494if test "${enable_ffile+set}" = set; then
5495 enableval="$enable_ffile"
5496
5497 if test "$enableval" = yes; then
5498 ac_cv_use_ffile='wxUSE_FFILE=yes'
5499 else
5500 ac_cv_use_ffile='wxUSE_FFILE=no'
5501 fi
5502
5503else
5504
5505 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5506 if test "x$LINE" != x ; then
5507 eval "DEFAULT_$LINE"
5508 else
5509 no_cache=1
5510 fi
5511
5512 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5513
5514fi;
5515
5516 eval "$ac_cv_use_ffile"
5517 if test "$no_cache" != 1; then
5518 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5519 fi
5520
5521 if test "$wxUSE_FFILE" = yes; then
5522 echo "$as_me:$LINENO: result: yes" >&5
5523echo "${ECHO_T}yes" >&6
5524 else
5525 echo "$as_me:$LINENO: result: no" >&5
5526echo "${ECHO_T}no" >&6
5527 fi
5528
5529
077c7880 5530 enablestring=
a848cd7e
SC
5531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5532echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5533 no_cache=0
5534 # Check whether --enable-file or --disable-file was given.
5535if test "${enable_file+set}" = set; then
5536 enableval="$enable_file"
5537
5538 if test "$enableval" = yes; then
5539 ac_cv_use_file='wxUSE_FILE=yes'
5540 else
5541 ac_cv_use_file='wxUSE_FILE=no'
5542 fi
5543
5544else
5545
5546 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5547 if test "x$LINE" != x ; then
5548 eval "DEFAULT_$LINE"
5549 else
5550 no_cache=1
5551 fi
5552
5553 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5554
5555fi;
5556
5557 eval "$ac_cv_use_file"
5558 if test "$no_cache" != 1; then
5559 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5560 fi
5561
5562 if test "$wxUSE_FILE" = yes; then
5563 echo "$as_me:$LINENO: result: yes" >&5
5564echo "${ECHO_T}yes" >&6
5565 else
5566 echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6
5568 fi
5569
5570
077c7880 5571 enablestring=
a848cd7e
SC
5572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5573echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5574 no_cache=0
5575 # Check whether --enable-filesystem or --disable-filesystem was given.
5576if test "${enable_filesystem+set}" = set; then
5577 enableval="$enable_filesystem"
5578
5579 if test "$enableval" = yes; then
5580 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5581 else
5582 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5583 fi
5584
5585else
5586
5587 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5588 if test "x$LINE" != x ; then
5589 eval "DEFAULT_$LINE"
5590 else
5591 no_cache=1
5592 fi
5593
5594 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5595
5596fi;
5597
5598 eval "$ac_cv_use_filesystem"
5599 if test "$no_cache" != 1; then
5600 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5601 fi
5602
5603 if test "$wxUSE_FILESYSTEM" = yes; then
5604 echo "$as_me:$LINENO: result: yes" >&5
5605echo "${ECHO_T}yes" >&6
5606 else
5607 echo "$as_me:$LINENO: result: no" >&5
5608echo "${ECHO_T}no" >&6
5609 fi
5610
5611
077c7880 5612 enablestring=
a848cd7e
SC
5613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5614echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5615 no_cache=0
5616 # Check whether --enable-fontmap or --disable-fontmap was given.
5617if test "${enable_fontmap+set}" = set; then
5618 enableval="$enable_fontmap"
5619
5620 if test "$enableval" = yes; then
5621 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5622 else
5623 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5624 fi
5625
5626else
5627
5628 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5629 if test "x$LINE" != x ; then
5630 eval "DEFAULT_$LINE"
5631 else
5632 no_cache=1
5633 fi
5634
5635 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5636
5637fi;
5638
5639 eval "$ac_cv_use_fontmap"
5640 if test "$no_cache" != 1; then
5641 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5642 fi
5643
5644 if test "$wxUSE_FONTMAP" = yes; then
5645 echo "$as_me:$LINENO: result: yes" >&5
5646echo "${ECHO_T}yes" >&6
5647 else
5648 echo "$as_me:$LINENO: result: no" >&5
5649echo "${ECHO_T}no" >&6
5650 fi
5651
5652
077c7880 5653 enablestring=
26e422a9
MW
5654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
5655echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6
5656 no_cache=0
5657 # Check whether --enable-fs_archive or --disable-fs_archive was given.
5658if test "${enable_fs_archive+set}" = set; then
5659 enableval="$enable_fs_archive"
5660
5661 if test "$enableval" = yes; then
5662 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
5663 else
5664 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
5665 fi
5666
5667else
5668
5669 LINE=`grep "wxUSE_FS_ARCHIVE" ${wx_arg_cache_file}`
5670 if test "x$LINE" != x ; then
5671 eval "DEFAULT_$LINE"
5672 else
5673 no_cache=1
5674 fi
5675
5676 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE='$DEFAULT_wxUSE_FS_ARCHIVE
5677
5678fi;
5679
5680 eval "$ac_cv_use_fs_archive"
5681 if test "$no_cache" != 1; then
5682 echo $ac_cv_use_fs_archive >> ${wx_arg_cache_file}.tmp
5683 fi
5684
5685 if test "$wxUSE_FS_ARCHIVE" = yes; then
5686 echo "$as_me:$LINENO: result: yes" >&5
5687echo "${ECHO_T}yes" >&6
5688 else
5689 echo "$as_me:$LINENO: result: no" >&5
5690echo "${ECHO_T}no" >&6
5691 fi
5692
5693
077c7880 5694 enablestring=
a848cd7e
SC
5695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5696echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5697 no_cache=0
5698 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5699if test "${enable_fs_inet+set}" = set; then
5700 enableval="$enable_fs_inet"
5701
5702 if test "$enableval" = yes; then
5703 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5704 else
5705 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5706 fi
5707
5708else
5709
5710 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5711 if test "x$LINE" != x ; then
5712 eval "DEFAULT_$LINE"
5713 else
5714 no_cache=1
5715 fi
5716
5717 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5718
5719fi;
5720
5721 eval "$ac_cv_use_fs_inet"
5722 if test "$no_cache" != 1; then
5723 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5724 fi
5725
5726 if test "$wxUSE_FS_INET" = yes; then
5727 echo "$as_me:$LINENO: result: yes" >&5
5728echo "${ECHO_T}yes" >&6
5729 else
5730 echo "$as_me:$LINENO: result: no" >&5
5731echo "${ECHO_T}no" >&6
5732 fi
5733
5734
077c7880 5735 enablestring=
a848cd7e
SC
5736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5737echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5738 no_cache=0
5739 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5740if test "${enable_fs_zip+set}" = set; then
5741 enableval="$enable_fs_zip"
5742
5743 if test "$enableval" = yes; then
5744 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5745 else
5746 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5747 fi
5748
5749else
5750
5751 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5752 if test "x$LINE" != x ; then
5753 eval "DEFAULT_$LINE"
5754 else
5755 no_cache=1
5756 fi
5757
5758 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5759
5760fi;
5761
5762 eval "$ac_cv_use_fs_zip"
5763 if test "$no_cache" != 1; then
5764 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5765 fi
5766
5767 if test "$wxUSE_FS_ZIP" = yes; then
5768 echo "$as_me:$LINENO: result: yes" >&5
5769echo "${ECHO_T}yes" >&6
5770 else
5771 echo "$as_me:$LINENO: result: no" >&5
5772echo "${ECHO_T}no" >&6
5773 fi
5774
5775
077c7880 5776 enablestring=
a848cd7e
SC
5777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5778echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5779 no_cache=0
5780 # Check whether --enable-geometry or --disable-geometry was given.
5781if test "${enable_geometry+set}" = set; then
5782 enableval="$enable_geometry"
5783
5784 if test "$enableval" = yes; then
5785 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5786 else
5787 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5788 fi
5789
5790else
5791
5792 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5793 if test "x$LINE" != x ; then
5794 eval "DEFAULT_$LINE"
5795 else
5796 no_cache=1
5797 fi
5798
5799 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5800
5801fi;
5802
5803 eval "$ac_cv_use_geometry"
5804 if test "$no_cache" != 1; then
5805 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5806 fi
5807
5808 if test "$wxUSE_GEOMETRY" = yes; then
5809 echo "$as_me:$LINENO: result: yes" >&5
5810echo "${ECHO_T}yes" >&6
5811 else
5812 echo "$as_me:$LINENO: result: no" >&5
5813echo "${ECHO_T}no" >&6
5814 fi
5815
5816
077c7880 5817 enablestring=
a848cd7e
SC
5818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5819echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5820 no_cache=0
5821 # Check whether --enable-log or --disable-log was given.
5822if test "${enable_log+set}" = set; then
5823 enableval="$enable_log"
5824
5825 if test "$enableval" = yes; then
5826 ac_cv_use_log='wxUSE_LOG=yes'
5827 else
5828 ac_cv_use_log='wxUSE_LOG=no'
5829 fi
5830
5831else
5832
5833 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5834 if test "x$LINE" != x ; then
5835 eval "DEFAULT_$LINE"
5836 else
5837 no_cache=1
5838 fi
5839
5840 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5841
5842fi;
5843
5844 eval "$ac_cv_use_log"
5845 if test "$no_cache" != 1; then
5846 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5847 fi
5848
5849 if test "$wxUSE_LOG" = yes; then
5850 echo "$as_me:$LINENO: result: yes" >&5
5851echo "${ECHO_T}yes" >&6
5852 else
5853 echo "$as_me:$LINENO: result: no" >&5
5854echo "${ECHO_T}no" >&6
5855 fi
5856
5857
077c7880 5858 enablestring=
a848cd7e
SC
5859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5860echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5861 no_cache=0
5862 # Check whether --enable-longlong or --disable-longlong was given.
5863if test "${enable_longlong+set}" = set; then
5864 enableval="$enable_longlong"
5865
5866 if test "$enableval" = yes; then
5867 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5868 else
5869 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5870 fi
5871
5872else
5873
5874 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5875 if test "x$LINE" != x ; then
5876 eval "DEFAULT_$LINE"
5877 else
5878 no_cache=1
5879 fi
5880
5881 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5882
5883fi;
5884
5885 eval "$ac_cv_use_longlong"
5886 if test "$no_cache" != 1; then
5887 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5888 fi
5889
5890 if test "$wxUSE_LONGLONG" = yes; then
5891 echo "$as_me:$LINENO: result: yes" >&5
5892echo "${ECHO_T}yes" >&6
5893 else
5894 echo "$as_me:$LINENO: result: no" >&5
5895echo "${ECHO_T}no" >&6
5896 fi
5897
5898
077c7880 5899 enablestring=
a848cd7e
SC
5900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5901echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5902 no_cache=0
5903 # Check whether --enable-mimetype or --disable-mimetype was given.
5904if test "${enable_mimetype+set}" = set; then
5905 enableval="$enable_mimetype"
5906
5907 if test "$enableval" = yes; then
5908 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5909 else
5910 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5911 fi
5912
5913else
5914
5915 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5916 if test "x$LINE" != x ; then
5917 eval "DEFAULT_$LINE"
5918 else
5919 no_cache=1
5920 fi
5921
5922 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5923
5924fi;
5925
5926 eval "$ac_cv_use_mimetype"
5927 if test "$no_cache" != 1; then
5928 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5929 fi
5930
5931 if test "$wxUSE_MIMETYPE" = yes; then
5932 echo "$as_me:$LINENO: result: yes" >&5
5933echo "${ECHO_T}yes" >&6
5934 else
5935 echo "$as_me:$LINENO: result: no" >&5
5936echo "${ECHO_T}no" >&6
5937 fi
5938
5939
077c7880 5940 enablestring=
a848cd7e
SC
5941 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5942echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5943 no_cache=0
5944 # Check whether --enable-mslu or --disable-mslu was given.
5945if test "${enable_mslu+set}" = set; then
5946 enableval="$enable_mslu"
5947
5948 if test "$enableval" = yes; then
5949 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5950 else
5951 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5952 fi
5953
5954else
5955
5956 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5957 if test "x$LINE" != x ; then
5958 eval "DEFAULT_$LINE"
5959 else
5960 no_cache=1
5961 fi
5962
5963 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5964
5965fi;
5966
5967 eval "$ac_cv_use_mslu"
5968 if test "$no_cache" != 1; then
5969 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5970 fi
5971
5972 if test "$wxUSE_UNICODE_MSLU" = yes; then
5973 echo "$as_me:$LINENO: result: yes" >&5
5974echo "${ECHO_T}yes" >&6
5975 else
5976 echo "$as_me:$LINENO: result: no" >&5
5977echo "${ECHO_T}no" >&6
5978 fi
5979
5980
077c7880 5981 enablestring=
a848cd7e
SC
5982 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5983echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5984 no_cache=0
5985 # Check whether --enable-snglinst or --disable-snglinst was given.
5986if test "${enable_snglinst+set}" = set; then
5987 enableval="$enable_snglinst"
5988
5989 if test "$enableval" = yes; then
5990 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5991 else
5992 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5993 fi
5994
5995else
5996
5997 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5998 if test "x$LINE" != x ; then
5999 eval "DEFAULT_$LINE"
6000 else
6001 no_cache=1
6002 fi
6003
6004 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
6005
6006fi;
6007
6008 eval "$ac_cv_use_snglinst"
6009 if test "$no_cache" != 1; then
6010 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
6011 fi
6012
6013 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
6014 echo "$as_me:$LINENO: result: yes" >&5
6015echo "${ECHO_T}yes" >&6
6016 else
6017 echo "$as_me:$LINENO: result: no" >&5
6018echo "${ECHO_T}no" >&6
6019 fi
6020
6021
077c7880 6022 enablestring=
07158944
VZ
6023 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
6024echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 6025 no_cache=0
07158944
VZ
6026 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
6027if test "${enable_std_iostreams+set}" = set; then
6028 enableval="$enable_std_iostreams"
a848cd7e
SC
6029
6030 if test "$enableval" = yes; then
07158944 6031 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 6032 else
07158944 6033 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
6034 fi
6035
6036else
6037
07158944 6038 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
6039 if test "x$LINE" != x ; then
6040 eval "DEFAULT_$LINE"
6041 else
6042 no_cache=1
6043 fi
6044
07158944 6045 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
6046
6047fi;
6048
07158944 6049 eval "$ac_cv_use_std_iostreams"
a848cd7e 6050 if test "$no_cache" != 1; then
07158944 6051 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6052 fi
6053
07158944 6054 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
6055 echo "$as_me:$LINENO: result: yes" >&5
6056echo "${ECHO_T}yes" >&6
6057 else
6058 echo "$as_me:$LINENO: result: no" >&5
6059echo "${ECHO_T}no" >&6
6060 fi
6061
6062
077c7880 6063 enablestring=
59746b65
MW
6064 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
6065echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
6066 no_cache=0
6067 # Check whether --enable-std_string or --disable-std_string was given.
6068if test "${enable_std_string+set}" = set; then
6069 enableval="$enable_std_string"
6070
6071 if test "$enableval" = yes; then
6072 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
6073 else
6074 ac_cv_use_std_string='wxUSE_STD_STRING=no'
6075 fi
6076
6077else
6078
6079 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
6080 if test "x$LINE" != x ; then
6081 eval "DEFAULT_$LINE"
6082 else
6083 no_cache=1
6084 fi
6085
6086 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
6087
6088fi;
6089
6090 eval "$ac_cv_use_std_string"
6091 if test "$no_cache" != 1; then
6092 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
6093 fi
6094
6095 if test "$wxUSE_STD_STRING" = yes; then
6096 echo "$as_me:$LINENO: result: yes" >&5
6097echo "${ECHO_T}yes" >&6
6098 else
6099 echo "$as_me:$LINENO: result: no" >&5
6100echo "${ECHO_T}no" >&6
6101 fi
6102
6103
077c7880 6104 enablestring=
07158944
VZ
6105 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
6106echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 6107 no_cache=0
07158944
VZ
6108 # Check whether --enable-stdpaths or --disable-stdpaths was given.
6109if test "${enable_stdpaths+set}" = set; then
6110 enableval="$enable_stdpaths"
a848cd7e
SC
6111
6112 if test "$enableval" = yes; then
07158944 6113 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 6114 else
07158944 6115 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
6116 fi
6117
6118else
6119
07158944 6120 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
6121 if test "x$LINE" != x ; then
6122 eval "DEFAULT_$LINE"
6123 else
6124 no_cache=1
6125 fi
6126
07158944 6127 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
6128
6129fi;
6130
07158944 6131 eval "$ac_cv_use_stdpaths"
a848cd7e 6132 if test "$no_cache" != 1; then
07158944 6133 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6134 fi
6135
07158944 6136 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
6137 echo "$as_me:$LINENO: result: yes" >&5
6138echo "${ECHO_T}yes" >&6
6139 else
6140 echo "$as_me:$LINENO: result: no" >&5
6141echo "${ECHO_T}no" >&6
6142 fi
6143
6144
077c7880 6145 enablestring=
a848cd7e
SC
6146 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6147echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6148 no_cache=0
6149 # Check whether --enable-stopwatch or --disable-stopwatch was given.
6150if test "${enable_stopwatch+set}" = set; then
6151 enableval="$enable_stopwatch"
6152
6153 if test "$enableval" = yes; then
6154 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6155 else
6156 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6157 fi
6158
6159else
6160
6161 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6162 if test "x$LINE" != x ; then
6163 eval "DEFAULT_$LINE"
6164 else
6165 no_cache=1
6166 fi
6167
6168 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6169
6170fi;
6171
6172 eval "$ac_cv_use_stopwatch"
6173 if test "$no_cache" != 1; then
6174 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6175 fi
6176
6177 if test "$wxUSE_STOPWATCH" = yes; then
6178 echo "$as_me:$LINENO: result: yes" >&5
6179echo "${ECHO_T}yes" >&6
6180 else
6181 echo "$as_me:$LINENO: result: no" >&5
6182echo "${ECHO_T}no" >&6
6183 fi
6184
6185
077c7880 6186 enablestring=
07158944
VZ
6187 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6188echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6189 no_cache=0
6190 # Check whether --enable-streams or --disable-streams was given.
6191if test "${enable_streams+set}" = set; then
6192 enableval="$enable_streams"
6193
6194 if test "$enableval" = yes; then
6195 ac_cv_use_streams='wxUSE_STREAMS=yes'
6196 else
6197 ac_cv_use_streams='wxUSE_STREAMS=no'
6198 fi
6199
6200else
6201
6202 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6203 if test "x$LINE" != x ; then
6204 eval "DEFAULT_$LINE"
6205 else
6206 no_cache=1
6207 fi
6208
6209 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6210
6211fi;
6212
6213 eval "$ac_cv_use_streams"
6214 if test "$no_cache" != 1; then
6215 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6216 fi
6217
6218 if test "$wxUSE_STREAMS" = yes; then
6219 echo "$as_me:$LINENO: result: yes" >&5
6220echo "${ECHO_T}yes" >&6
6221 else
6222 echo "$as_me:$LINENO: result: no" >&5
6223echo "${ECHO_T}no" >&6
6224 fi
6225
6226
077c7880 6227 enablestring=
a848cd7e
SC
6228 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6229echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6230 no_cache=0
6231 # Check whether --enable-system_options or --disable-system_options was given.
6232if test "${enable_system_options+set}" = set; then
6233 enableval="$enable_system_options"
6234
6235 if test "$enableval" = yes; then
6236 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6237 else
6238 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6239 fi
6240
6241else
6242
6243 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6244 if test "x$LINE" != x ; then
6245 eval "DEFAULT_$LINE"
6246 else
6247 no_cache=1
6248 fi
6249
6250 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6251
6252fi;
6253
6254 eval "$ac_cv_use_system_options"
6255 if test "$no_cache" != 1; then
6256 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6257 fi
6258
6259 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6260 echo "$as_me:$LINENO: result: yes" >&5
6261echo "${ECHO_T}yes" >&6
6262 else
6263 echo "$as_me:$LINENO: result: no" >&5
6264echo "${ECHO_T}no" >&6
6265 fi
6266
6267
077c7880 6268 enablestring=
26e422a9
MW
6269 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
6270echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6
6271 no_cache=0
6272 # Check whether --enable-tarstream or --disable-tarstream was given.
6273if test "${enable_tarstream+set}" = set; then
6274 enableval="$enable_tarstream"
6275
6276 if test "$enableval" = yes; then
6277 ac_cv_use_tarstream='wxUSE_TARSTREAM=yes'
6278 else
6279 ac_cv_use_tarstream='wxUSE_TARSTREAM=no'
6280 fi
6281
6282else
6283
6284 LINE=`grep "wxUSE_TARSTREAM" ${wx_arg_cache_file}`
6285 if test "x$LINE" != x ; then
6286 eval "DEFAULT_$LINE"
6287 else
6288 no_cache=1
6289 fi
6290
6291 ac_cv_use_tarstream='wxUSE_TARSTREAM='$DEFAULT_wxUSE_TARSTREAM
6292
6293fi;
6294
6295 eval "$ac_cv_use_tarstream"
6296 if test "$no_cache" != 1; then
6297 echo $ac_cv_use_tarstream >> ${wx_arg_cache_file}.tmp
6298 fi
6299
6300 if test "$wxUSE_TARSTREAM" = yes; then
6301 echo "$as_me:$LINENO: result: yes" >&5
6302echo "${ECHO_T}yes" >&6
6303 else
6304 echo "$as_me:$LINENO: result: no" >&5
6305echo "${ECHO_T}no" >&6
6306 fi
6307
6308
077c7880 6309 enablestring=
a848cd7e
SC
6310 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6311echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6312 no_cache=0
6313 # Check whether --enable-textbuf or --disable-textbuf was given.
6314if test "${enable_textbuf+set}" = set; then
6315 enableval="$enable_textbuf"
6316
6317 if test "$enableval" = yes; then
6318 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6319 else
6320 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6321 fi
6322
6323else
6324
6325 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6326 if test "x$LINE" != x ; then
6327 eval "DEFAULT_$LINE"
6328 else
6329 no_cache=1
6330 fi
6331
6332 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6333
6334fi;
6335
6336 eval "$ac_cv_use_textbuf"
6337 if test "$no_cache" != 1; then
6338 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6339 fi
6340
6341 if test "$wxUSE_TEXTBUFFER" = yes; then
6342 echo "$as_me:$LINENO: result: yes" >&5
6343echo "${ECHO_T}yes" >&6
6344 else
6345 echo "$as_me:$LINENO: result: no" >&5
6346echo "${ECHO_T}no" >&6
6347 fi
6348
6349
077c7880 6350 enablestring=
a848cd7e
SC
6351 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6352echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6353 no_cache=0
6354 # Check whether --enable-textfile or --disable-textfile was given.
6355if test "${enable_textfile+set}" = set; then
6356 enableval="$enable_textfile"
6357
6358 if test "$enableval" = yes; then
6359 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6360 else
6361 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6362 fi
6363
6364else
6365
6366 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6367 if test "x$LINE" != x ; then
6368 eval "DEFAULT_$LINE"
6369 else
6370 no_cache=1
6371 fi
6372
6373 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6374
6375fi;
6376
6377 eval "$ac_cv_use_textfile"
6378 if test "$no_cache" != 1; then
6379 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6380 fi
6381
6382 if test "$wxUSE_TEXTFILE" = yes; then
6383 echo "$as_me:$LINENO: result: yes" >&5
6384echo "${ECHO_T}yes" >&6
6385 else
6386 echo "$as_me:$LINENO: result: no" >&5
6387echo "${ECHO_T}no" >&6
6388 fi
6389
6390
077c7880 6391 enablestring=
a848cd7e
SC
6392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6393echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6394 no_cache=0
6395 # Check whether --enable-timer or --disable-timer was given.
6396if test "${enable_timer+set}" = set; then
6397 enableval="$enable_timer"
6398
6399 if test "$enableval" = yes; then
6400 ac_cv_use_timer='wxUSE_TIMER=yes'
6401 else
6402 ac_cv_use_timer='wxUSE_TIMER=no'
6403 fi
6404
6405else
6406
6407 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6408 if test "x$LINE" != x ; then
6409 eval "DEFAULT_$LINE"
6410 else
6411 no_cache=1
6412 fi
6413
6414 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6415
6416fi;
6417
6418 eval "$ac_cv_use_timer"
6419 if test "$no_cache" != 1; then
6420 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6421 fi
6422
6423 if test "$wxUSE_TIMER" = yes; then
6424 echo "$as_me:$LINENO: result: yes" >&5
6425echo "${ECHO_T}yes" >&6
6426 else
6427 echo "$as_me:$LINENO: result: no" >&5
6428echo "${ECHO_T}no" >&6
6429 fi
6430
6431
077c7880 6432 enablestring=
a848cd7e
SC
6433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6434echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6435 no_cache=0
6436 # Check whether --enable-unicode or --disable-unicode was given.
6437if test "${enable_unicode+set}" = set; then
6438 enableval="$enable_unicode"
6439
6440 if test "$enableval" = yes; then
6441 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6442 else
6443 ac_cv_use_unicode='wxUSE_UNICODE=no'
6444 fi
6445
6446else
6447
6448 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6449 if test "x$LINE" != x ; then
6450 eval "DEFAULT_$LINE"
6451 else
6452 no_cache=1
6453 fi
6454
6455 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6456
6457fi;
6458
6459 eval "$ac_cv_use_unicode"
6460 if test "$no_cache" != 1; then
6461 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6462 fi
6463
6464 if test "$wxUSE_UNICODE" = yes; then
6465 echo "$as_me:$LINENO: result: yes" >&5
6466echo "${ECHO_T}yes" >&6
6467 else
6468 echo "$as_me:$LINENO: result: no" >&5
6469echo "${ECHO_T}no" >&6
6470 fi
6471
6472
077c7880 6473 enablestring=
a848cd7e
SC
6474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6475echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6476 no_cache=0
6477 # Check whether --enable-sound or --disable-sound was given.
6478if test "${enable_sound+set}" = set; then
6479 enableval="$enable_sound"
6480
6481 if test "$enableval" = yes; then
6482 ac_cv_use_sound='wxUSE_SOUND=yes'
6483 else
6484 ac_cv_use_sound='wxUSE_SOUND=no'
6485 fi
6486
6487else
6488
6489 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6490 if test "x$LINE" != x ; then
6491 eval "DEFAULT_$LINE"
6492 else
6493 no_cache=1
6494 fi
6495
6496 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6497
6498fi;
6499
6500 eval "$ac_cv_use_sound"
6501 if test "$no_cache" != 1; then
6502 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6503 fi
6504
6505 if test "$wxUSE_SOUND" = yes; then
6506 echo "$as_me:$LINENO: result: yes" >&5
6507echo "${ECHO_T}yes" >&6
6508 else
6509 echo "$as_me:$LINENO: result: no" >&5
6510echo "${ECHO_T}no" >&6
6511 fi
6512
6513
077c7880 6514 enablestring=
3b57de8b
RL
6515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6516echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6517 no_cache=0
6518 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6519if test "${enable_mediactrl+set}" = set; then
6520 enableval="$enable_mediactrl"
6521
6522 if test "$enableval" = yes; then
6523 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6524 else
6525 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6526 fi
6527
6528else
6529
6530 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6531 if test "x$LINE" != x ; then
6532 eval "DEFAULT_$LINE"
6533 else
6534 no_cache=1
6535 fi
6536
6537 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6538
6539fi;
6540
6541 eval "$ac_cv_use_mediactrl"
6542 if test "$no_cache" != 1; then
6543 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6544 fi
6545
6546 if test "$wxUSE_MEDIACTRL" = yes; then
6547 echo "$as_me:$LINENO: result: yes" >&5
6548echo "${ECHO_T}yes" >&6
6549 else
6550 echo "$as_me:$LINENO: result: no" >&5
6551echo "${ECHO_T}no" >&6
6552 fi
6553
6554
077c7880 6555 enablestring=
f10e38c4
VZ
6556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6557echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6558 no_cache=0
6559 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6560if test "${enable_gstreamer8+set}" = set; then
6561 enableval="$enable_gstreamer8"
6562
6563 if test "$enableval" = yes; then
6564 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6565 else
6566 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6567 fi
6568
6569else
6570
6571 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6572 if test "x$LINE" != x ; then
6573 eval "DEFAULT_$LINE"
6574 else
6575 no_cache=1
6576 fi
6577
6578 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6579
6580fi;
6581
6582 eval "$ac_cv_use_gstreamer8"
6583 if test "$no_cache" != 1; then
6584 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6585 fi
6586
6587 if test "$wxUSE_GSTREAMER8" = yes; then
6588 echo "$as_me:$LINENO: result: yes" >&5
6589echo "${ECHO_T}yes" >&6
6590 else
6591 echo "$as_me:$LINENO: result: no" >&5
6592echo "${ECHO_T}no" >&6
6593 fi
6594
6595
077c7880 6596 enablestring=
8b6682b9
JS
6597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6598echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6599 no_cache=0
8b6682b9
JS
6600 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6601if test "${enable_printfposparam+set}" = set; then
6602 enableval="$enable_printfposparam"
a848cd7e
SC
6603
6604 if test "$enableval" = yes; then
8b6682b9 6605 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6606 else
8b6682b9 6607 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6608 fi
6609
6610else
6611
8b6682b9 6612 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6613 if test "x$LINE" != x ; then
6614 eval "DEFAULT_$LINE"
6615 else
6616 no_cache=1
6617 fi
6618
8b6682b9 6619 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6620
6621fi;
6622
8b6682b9 6623 eval "$ac_cv_use_printfposparam"
a848cd7e 6624 if test "$no_cache" != 1; then
8b6682b9 6625 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6626 fi
6627
8b6682b9 6628 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6629 echo "$as_me:$LINENO: result: yes" >&5
6630echo "${ECHO_T}yes" >&6
6631 else
6632 echo "$as_me:$LINENO: result: no" >&5
6633echo "${ECHO_T}no" >&6
6634 fi
6635
6636
077c7880 6637 enablestring=
a848cd7e
SC
6638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6639echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6640 no_cache=0
6641 # Check whether --enable-zipstream or --disable-zipstream was given.
6642if test "${enable_zipstream+set}" = set; then
6643 enableval="$enable_zipstream"
6644
6645 if test "$enableval" = yes; then
6646 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6647 else
6648 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6649 fi
6650
6651else
6652
6653 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6654 if test "x$LINE" != x ; then
6655 eval "DEFAULT_$LINE"
6656 else
6657 no_cache=1
6658 fi
6659
6660 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6661
6662fi;
6663
6664 eval "$ac_cv_use_zipstream"
6665 if test "$no_cache" != 1; then
6666 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6667 fi
6668
6669 if test "$wxUSE_ZIPSTREAM" = yes; then
6670 echo "$as_me:$LINENO: result: yes" >&5
6671echo "${ECHO_T}yes" >&6
6672 else
6673 echo "$as_me:$LINENO: result: no" >&5
6674echo "${ECHO_T}no" >&6
6675 fi
6676
6677
a848cd7e 6678
077c7880 6679 enablestring=
a848cd7e
SC
6680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6681echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6682 no_cache=0
6683 # Check whether --enable-url or --disable-url was given.
6684if test "${enable_url+set}" = set; then
6685 enableval="$enable_url"
6686
6687 if test "$enableval" = yes; then
6688 ac_cv_use_url='wxUSE_URL=yes'
6689 else
6690 ac_cv_use_url='wxUSE_URL=no'
6691 fi
6692
6693else
6694
6695 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6696 if test "x$LINE" != x ; then
6697 eval "DEFAULT_$LINE"
6698 else
6699 no_cache=1
6700 fi
6701
6702 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6703
6704fi;
6705
6706 eval "$ac_cv_use_url"
6707 if test "$no_cache" != 1; then
6708 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6709 fi
6710
6711 if test "$wxUSE_URL" = yes; then
6712 echo "$as_me:$LINENO: result: yes" >&5
6713echo "${ECHO_T}yes" >&6
6714 else
6715 echo "$as_me:$LINENO: result: no" >&5
6716echo "${ECHO_T}no" >&6
6717 fi
6718
6719
077c7880 6720 enablestring=
ca5c6ac3
VZ
6721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6722echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
6723 no_cache=0
6724 # Check whether --enable-variant or --disable-variant was given.
6725if test "${enable_variant+set}" = set; then
6726 enableval="$enable_variant"
6727
6728 if test "$enableval" = yes; then
6729 ac_cv_use_variant='wxUSE_VARIANT=yes'
6730 else
6731 ac_cv_use_variant='wxUSE_VARIANT=no'
6732 fi
6733
6734else
6735
6736 LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6737 if test "x$LINE" != x ; then
6738 eval "DEFAULT_$LINE"
6739 else
6740 no_cache=1
6741 fi
6742
6743 ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6744
6745fi;
6746
6747 eval "$ac_cv_use_variant"
6748 if test "$no_cache" != 1; then
6749 echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
6750 fi
6751
6752 if test "$wxUSE_VARIANT" = yes; then
6753 echo "$as_me:$LINENO: result: yes" >&5
6754echo "${ECHO_T}yes" >&6
6755 else
6756 echo "$as_me:$LINENO: result: no" >&5
6757echo "${ECHO_T}no" >&6
6758 fi
6759
6760
077c7880 6761 enablestring=
a848cd7e
SC
6762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6763echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6764 no_cache=0
6765 # Check whether --enable-protocol or --disable-protocol was given.
6766if test "${enable_protocol+set}" = set; then
6767 enableval="$enable_protocol"
6768
6769 if test "$enableval" = yes; then
6770 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6771 else
6772 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6773 fi
6774
6775else
6776
6777 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6778 if test "x$LINE" != x ; then
6779 eval "DEFAULT_$LINE"
6780 else
6781 no_cache=1
6782 fi
6783
6784 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6785
6786fi;
6787
6788 eval "$ac_cv_use_protocol"
6789 if test "$no_cache" != 1; then
6790 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6791 fi
6792
6793 if test "$wxUSE_PROTOCOL" = yes; then
6794 echo "$as_me:$LINENO: result: yes" >&5
6795echo "${ECHO_T}yes" >&6
6796 else
6797 echo "$as_me:$LINENO: result: no" >&5
6798echo "${ECHO_T}no" >&6
6799 fi
6800
6801
077c7880 6802 enablestring=
a848cd7e
SC
6803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6804echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6805 no_cache=0
6806 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6807if test "${enable_protocol_http+set}" = set; then
6808 enableval="$enable_protocol_http"
6809
6810 if test "$enableval" = yes; then
6811 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6812 else
6813 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6814 fi
6815
6816else
6817
6818 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6819 if test "x$LINE" != x ; then
6820 eval "DEFAULT_$LINE"
6821 else
6822 no_cache=1
6823 fi
6824
6825 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6826
6827fi;
6828
6829 eval "$ac_cv_use_protocol_http"
6830 if test "$no_cache" != 1; then
6831 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6832 fi
6833
6834 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6835 echo "$as_me:$LINENO: result: yes" >&5
6836echo "${ECHO_T}yes" >&6
6837 else
6838 echo "$as_me:$LINENO: result: no" >&5
6839echo "${ECHO_T}no" >&6
6840 fi
6841
6842
077c7880 6843 enablestring=
a848cd7e
SC
6844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6845echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6846 no_cache=0
6847 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6848if test "${enable_protocol_ftp+set}" = set; then
6849 enableval="$enable_protocol_ftp"
6850
6851 if test "$enableval" = yes; then
6852 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6853 else
6854 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6855 fi
6856
6857else
6858
6859 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6860 if test "x$LINE" != x ; then
6861 eval "DEFAULT_$LINE"
6862 else
6863 no_cache=1
6864 fi
6865
6866 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6867
6868fi;
6869
6870 eval "$ac_cv_use_protocol_ftp"
6871 if test "$no_cache" != 1; then
6872 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6873 fi
6874
6875 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6876 echo "$as_me:$LINENO: result: yes" >&5
6877echo "${ECHO_T}yes" >&6
6878 else
6879 echo "$as_me:$LINENO: result: no" >&5
6880echo "${ECHO_T}no" >&6
6881 fi
6882
6883
077c7880 6884 enablestring=
a848cd7e
SC
6885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6886echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6887 no_cache=0
6888 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6889if test "${enable_protocol_file+set}" = set; then
6890 enableval="$enable_protocol_file"
6891
6892 if test "$enableval" = yes; then
6893 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6894 else
6895 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6896 fi
6897
6898else
6899
6900 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6901 if test "x$LINE" != x ; then
6902 eval "DEFAULT_$LINE"
6903 else
6904 no_cache=1
6905 fi
6906
6907 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6908
6909fi;
6910
6911 eval "$ac_cv_use_protocol_file"
6912 if test "$no_cache" != 1; then
6913 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6914 fi
6915
6916 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6917 echo "$as_me:$LINENO: result: yes" >&5
6918echo "${ECHO_T}yes" >&6
6919 else
6920 echo "$as_me:$LINENO: result: no" >&5
6921echo "${ECHO_T}no" >&6
6922 fi
6923
6924
6925
6926
6927
077c7880 6928 enablestring=
a848cd7e
SC
6929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6930echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6931 no_cache=0
6932 # Check whether --enable-threads or --disable-threads was given.
6933if test "${enable_threads+set}" = set; then
6934 enableval="$enable_threads"
6935
6936 if test "$enableval" = yes; then
6937 ac_cv_use_threads='wxUSE_THREADS=yes'
6938 else
6939 ac_cv_use_threads='wxUSE_THREADS=no'
6940 fi
6941
6942else
6943
6944 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6945 if test "x$LINE" != x ; then
6946 eval "DEFAULT_$LINE"
6947 else
6948 no_cache=1
6949 fi
6950
6951 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6952
6953fi;
6954
6955 eval "$ac_cv_use_threads"
6956 if test "$no_cache" != 1; then
6957 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6958 fi
6959
6960 if test "$wxUSE_THREADS" = yes; then
6961 echo "$as_me:$LINENO: result: yes" >&5
6962echo "${ECHO_T}yes" >&6
6963 else
6964 echo "$as_me:$LINENO: result: no" >&5
6965echo "${ECHO_T}no" >&6
6966 fi
6967
6968
6969if test "$wxUSE_GUI" = "yes"; then
6970
6971
6972
077c7880 6973 enablestring=
a848cd7e
SC
6974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6975echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6976 no_cache=0
6977 # Check whether --enable-docview or --disable-docview was given.
6978if test "${enable_docview+set}" = set; then
6979 enableval="$enable_docview"
6980
6981 if test "$enableval" = yes; then
6982 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6983 else
6984 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6985 fi
6986
6987else
6988
6989 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6990 if test "x$LINE" != x ; then
6991 eval "DEFAULT_$LINE"
6992 else
6993 no_cache=1
6994 fi
6995
6996 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6997
6998fi;
6999
7000 eval "$ac_cv_use_docview"
7001 if test "$no_cache" != 1; then
7002 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
7003 fi
7004
7005 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
7006 echo "$as_me:$LINENO: result: yes" >&5
7007echo "${ECHO_T}yes" >&6
7008 else
7009 echo "$as_me:$LINENO: result: no" >&5
7010echo "${ECHO_T}no" >&6
7011 fi
7012
7013
077c7880 7014 enablestring=
a848cd7e
SC
7015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
7016echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
7017 no_cache=0
7018 # Check whether --enable-help or --disable-help was given.
7019if test "${enable_help+set}" = set; then
7020 enableval="$enable_help"
7021
7022 if test "$enableval" = yes; then
7023 ac_cv_use_help='wxUSE_HELP=yes'
7024 else
7025 ac_cv_use_help='wxUSE_HELP=no'
7026 fi
7027
7028else
7029
7030 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
7031 if test "x$LINE" != x ; then
7032 eval "DEFAULT_$LINE"
7033 else
7034 no_cache=1
7035 fi
7036
7037 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
7038
7039fi;
7040
7041 eval "$ac_cv_use_help"
7042 if test "$no_cache" != 1; then
7043 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
7044 fi
7045
7046 if test "$wxUSE_HELP" = yes; then
7047 echo "$as_me:$LINENO: result: yes" >&5
7048echo "${ECHO_T}yes" >&6
7049 else
7050 echo "$as_me:$LINENO: result: no" >&5
7051echo "${ECHO_T}no" >&6
7052 fi
7053
7054
077c7880 7055 enablestring=
a848cd7e
SC
7056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
7057echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
7058 no_cache=0
7059 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
7060if test "${enable_mshtmlhelp+set}" = set; then
7061 enableval="$enable_mshtmlhelp"
7062
7063 if test "$enableval" = yes; then
7064 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
7065 else
7066 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
7067 fi
7068
7069else
7070
7071 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
7072 if test "x$LINE" != x ; then
7073 eval "DEFAULT_$LINE"
7074 else
7075 no_cache=1
7076 fi
7077
7078 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
7079
7080fi;
7081
7082 eval "$ac_cv_use_mshtmlhelp"
7083 if test "$no_cache" != 1; then
7084 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
7085 fi
7086
7087 if test "$wxUSE_MS_HTML_HELP" = yes; then
7088 echo "$as_me:$LINENO: result: yes" >&5
7089echo "${ECHO_T}yes" >&6
7090 else
7091 echo "$as_me:$LINENO: result: no" >&5
7092echo "${ECHO_T}no" >&6
7093 fi
7094
7095
077c7880 7096 enablestring=
a848cd7e
SC
7097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7098echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7099 no_cache=0
7100 # Check whether --enable-html or --disable-html was given.
7101if test "${enable_html+set}" = set; then
7102 enableval="$enable_html"
7103
7104 if test "$enableval" = yes; then
7105 ac_cv_use_html='wxUSE_HTML=yes'
7106 else
7107 ac_cv_use_html='wxUSE_HTML=no'
7108 fi
7109
7110else
7111
7112 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
7113 if test "x$LINE" != x ; then
7114 eval "DEFAULT_$LINE"
7115 else
7116 no_cache=1
7117 fi
7118
7119 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
7120
7121fi;
7122
7123 eval "$ac_cv_use_html"
7124 if test "$no_cache" != 1; then
7125 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7126 fi
7127
7128 if test "$wxUSE_HTML" = yes; then
7129 echo "$as_me:$LINENO: result: yes" >&5
7130echo "${ECHO_T}yes" >&6
7131 else
7132 echo "$as_me:$LINENO: result: no" >&5
7133echo "${ECHO_T}no" >&6
7134 fi
7135
7136
077c7880 7137 enablestring=
a848cd7e
SC
7138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
7139echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
7140 no_cache=0
7141 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
7142if test "${enable_htmlhelp+set}" = set; then
7143 enableval="$enable_htmlhelp"
7144
7145 if test "$enableval" = yes; then
7146 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
7147 else
7148 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
7149 fi
7150
7151else
7152
7153 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
7154 if test "x$LINE" != x ; then
7155 eval "DEFAULT_$LINE"
7156 else
7157 no_cache=1
7158 fi
7159
7160 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7161
7162fi;
7163
7164 eval "$ac_cv_use_htmlhelp"
7165 if test "$no_cache" != 1; then
7166 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7167 fi
7168
7169 if test "$wxUSE_WXHTML_HELP" = yes; then
7170 echo "$as_me:$LINENO: result: yes" >&5
7171echo "${ECHO_T}yes" >&6
7172 else
7173 echo "$as_me:$LINENO: result: no" >&5
7174echo "${ECHO_T}no" >&6
7175 fi
7176
7177
077c7880 7178 enablestring=
9a8f0513
VS
7179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7180echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
7181 no_cache=0
7182 # Check whether --enable-xrc or --disable-xrc was given.
7183if test "${enable_xrc+set}" = set; then
7184 enableval="$enable_xrc"
7185
7186 if test "$enableval" = yes; then
7187 ac_cv_use_xrc='wxUSE_XRC=yes'
7188 else
7189 ac_cv_use_xrc='wxUSE_XRC=no'
7190 fi
7191
7192else
7193
7194 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7195 if test "x$LINE" != x ; then
7196 eval "DEFAULT_$LINE"
7197 else
7198 no_cache=1
7199 fi
7200
7201 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7202
7203fi;
7204
7205 eval "$ac_cv_use_xrc"
7206 if test "$no_cache" != 1; then
7207 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7208 fi
7209
7210 if test "$wxUSE_XRC" = yes; then
7211 echo "$as_me:$LINENO: result: yes" >&5
7212echo "${ECHO_T}yes" >&6
7213 else
7214 echo "$as_me:$LINENO: result: no" >&5
7215echo "${ECHO_T}no" >&6
7216 fi
7217
7218
077c7880 7219 enablestring=
3f60522a
JS
7220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7221echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7222 no_cache=0
7223 # Check whether --enable-aui or --disable-aui was given.
7224if test "${enable_aui+set}" = set; then
7225 enableval="$enable_aui"
7226
7227 if test "$enableval" = yes; then
7228 ac_cv_use_aui='wxUSE_AUI=yes'
7229 else
7230 ac_cv_use_aui='wxUSE_AUI=no'
7231 fi
7232
7233else
7234
7235 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7236 if test "x$LINE" != x ; then
7237 eval "DEFAULT_$LINE"
7238 else
7239 no_cache=1
7240 fi
7241
7242 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7243
7244fi;
7245
7246 eval "$ac_cv_use_aui"
7247 if test "$no_cache" != 1; then
7248 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7249 fi
7250
7251 if test "$wxUSE_AUI" = yes; then
7252 echo "$as_me:$LINENO: result: yes" >&5
7253echo "${ECHO_T}yes" >&6
7254 else
7255 echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6
7257 fi
7258
7259
077c7880 7260 enablestring=
a848cd7e
SC
7261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7262echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7263 no_cache=0
7264 # Check whether --enable-constraints or --disable-constraints was given.
7265if test "${enable_constraints+set}" = set; then
7266 enableval="$enable_constraints"
7267
7268 if test "$enableval" = yes; then
7269 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7270 else
7271 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7272 fi
7273
7274else
7275
7276 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7277 if test "x$LINE" != x ; then
7278 eval "DEFAULT_$LINE"
7279 else
7280 no_cache=1
7281 fi
7282
7283 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7284
7285fi;
7286
7287 eval "$ac_cv_use_constraints"
7288 if test "$no_cache" != 1; then
7289 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7290 fi
7291
7292 if test "$wxUSE_CONSTRAINTS" = yes; then
7293 echo "$as_me:$LINENO: result: yes" >&5
7294echo "${ECHO_T}yes" >&6
7295 else
7296 echo "$as_me:$LINENO: result: no" >&5
7297echo "${ECHO_T}no" >&6
7298 fi
7299
7300
077c7880 7301 enablestring=
a848cd7e
SC
7302 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7303echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7304 no_cache=0
7305 # Check whether --enable-printarch or --disable-printarch was given.
7306if test "${enable_printarch+set}" = set; then
7307 enableval="$enable_printarch"
7308
7309 if test "$enableval" = yes; then
7310 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7311 else
7312 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7313 fi
7314
7315else
7316
7317 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7318 if test "x$LINE" != x ; then
7319 eval "DEFAULT_$LINE"
7320 else
7321 no_cache=1
7322 fi
7323
7324 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7325
7326fi;
7327
7328 eval "$ac_cv_use_printarch"
7329 if test "$no_cache" != 1; then
7330 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7331 fi
7332
7333 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7334 echo "$as_me:$LINENO: result: yes" >&5
7335echo "${ECHO_T}yes" >&6
7336 else
7337 echo "$as_me:$LINENO: result: no" >&5
7338echo "${ECHO_T}no" >&6
7339 fi
7340
7341
077c7880 7342 enablestring=
a848cd7e
SC
7343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7344echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7345 no_cache=0
7346 # Check whether --enable-mdi or --disable-mdi was given.
7347if test "${enable_mdi+set}" = set; then
7348 enableval="$enable_mdi"
7349
7350 if test "$enableval" = yes; then
8a7b1113 7351 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7352 else
8a7b1113 7353 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7354 fi
7355
7356else
7357
8a7b1113 7358 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7359 if test "x$LINE" != x ; then
7360 eval "DEFAULT_$LINE"
7361 else
7362 no_cache=1
7363 fi
7364
8a7b1113 7365 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7366
7367fi;
7368
7369 eval "$ac_cv_use_mdi"
7370 if test "$no_cache" != 1; then
7371 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7372 fi
7373
8a7b1113
VZ
7374 if test "$wxUSE_MDI" = yes; then
7375 echo "$as_me:$LINENO: result: yes" >&5
7376echo "${ECHO_T}yes" >&6
7377 else
7378 echo "$as_me:$LINENO: result: no" >&5
7379echo "${ECHO_T}no" >&6
7380 fi
7381
7382
077c7880 7383 enablestring=
8a7b1113
VZ
7384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7385echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7386 no_cache=0
7387 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7388if test "${enable_mdidoc+set}" = set; then
7389 enableval="$enable_mdidoc"
7390
7391 if test "$enableval" = yes; then
7392 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7393 else
7394 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7395 fi
7396
7397else
7398
7399 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7400 if test "x$LINE" != x ; then
7401 eval "DEFAULT_$LINE"
7402 else
7403 no_cache=1
7404 fi
7405
7406 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7407
7408fi;
7409
7410 eval "$ac_cv_use_mdidoc"
7411 if test "$no_cache" != 1; then
7412 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7413 fi
7414
a848cd7e
SC
7415 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7416 echo "$as_me:$LINENO: result: yes" >&5
7417echo "${ECHO_T}yes" >&6
7418 else
7419 echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6
7421 fi
7422
7423
077c7880 7424 enablestring=
a848cd7e
SC
7425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7426echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7427 no_cache=0
7428 # Check whether --enable-loggui or --disable-loggui was given.
7429if test "${enable_loggui+set}" = set; then
7430 enableval="$enable_loggui"
7431
7432 if test "$enableval" = yes; then
7433 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7434 else
7435 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7436 fi
7437
7438else
7439
7440 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7441 if test "x$LINE" != x ; then
7442 eval "DEFAULT_$LINE"
7443 else
7444 no_cache=1
7445 fi
7446
7447 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7448
7449fi;
7450
7451 eval "$ac_cv_use_loggui"
7452 if test "$no_cache" != 1; then
7453 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7454 fi
7455
7456 if test "$wxUSE_LOGGUI" = yes; then
7457 echo "$as_me:$LINENO: result: yes" >&5
7458echo "${ECHO_T}yes" >&6
7459 else
7460 echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6
7462 fi
7463
7464
077c7880 7465 enablestring=
a848cd7e
SC
7466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7467echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7468 no_cache=0
7469 # Check whether --enable-logwin or --disable-logwin was given.
7470if test "${enable_logwin+set}" = set; then
7471 enableval="$enable_logwin"
7472
7473 if test "$enableval" = yes; then
7474 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7475 else
7476 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7477 fi
7478
7479else
7480
7481 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7482 if test "x$LINE" != x ; then
7483 eval "DEFAULT_$LINE"
7484 else
7485 no_cache=1
7486 fi
7487
7488 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7489
7490fi;
7491
7492 eval "$ac_cv_use_logwin"
7493 if test "$no_cache" != 1; then
7494 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7495 fi
7496
7497 if test "$wxUSE_LOGWINDOW" = yes; then
7498 echo "$as_me:$LINENO: result: yes" >&5
7499echo "${ECHO_T}yes" >&6
7500 else
7501 echo "$as_me:$LINENO: result: no" >&5
7502echo "${ECHO_T}no" >&6
7503 fi
7504
7505
077c7880 7506 enablestring=
a848cd7e
SC
7507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7508echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7509 no_cache=0
7510 # Check whether --enable-logdialog or --disable-logdialog was given.
7511if test "${enable_logdialog+set}" = set; then
7512 enableval="$enable_logdialog"
7513
7514 if test "$enableval" = yes; then
7515 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7516 else
7517 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7518 fi
7519
7520else
7521
7522 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7523 if test "x$LINE" != x ; then
7524 eval "DEFAULT_$LINE"
7525 else
7526 no_cache=1
7527 fi
7528
7529 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7530
7531fi;
7532
7533 eval "$ac_cv_use_logdialog"
7534 if test "$no_cache" != 1; then
7535 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7536 fi
7537
7538 if test "$wxUSE_LOGDIALOG" = yes; then
7539 echo "$as_me:$LINENO: result: yes" >&5
7540echo "${ECHO_T}yes" >&6
7541 else
7542 echo "$as_me:$LINENO: result: no" >&5
7543echo "${ECHO_T}no" >&6
7544 fi
7545
7546
077c7880 7547 enablestring=
646b6ec1
VS
7548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7549echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7550 no_cache=0
7551 # Check whether --enable-webkit or --disable-webkit was given.
7552if test "${enable_webkit+set}" = set; then
7553 enableval="$enable_webkit"
7554
7555 if test "$enableval" = yes; then
7556 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7557 else
7558 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7559 fi
7560
7561else
7562
7563 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7564 if test "x$LINE" != x ; then
7565 eval "DEFAULT_$LINE"
7566 else
7567 no_cache=1
7568 fi
7569
7570 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7571
7572fi;
7573
7574 eval "$ac_cv_use_webkit"
7575 if test "$no_cache" != 1; then
7576 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7577 fi
7578
7579 if test "$wxUSE_WEBKIT" = yes; then
7580 echo "$as_me:$LINENO: result: yes" >&5
7581echo "${ECHO_T}yes" >&6
7582 else
7583 echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6
7585 fi
7586
7587
077c7880 7588 enablestring=
6da4ac91
VZ
7589 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
7590echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6
91dea314 7591 no_cache=0
6da4ac91
VZ
7592 # Check whether --enable-richtext or --disable-richtext was given.
7593if test "${enable_richtext+set}" = set; then
7594 enableval="$enable_richtext"
91dea314
MW
7595
7596 if test "$enableval" = yes; then
6da4ac91 7597 ac_cv_use_richtext='wxUSE_RICHTEXT=yes'
91dea314 7598 else
6da4ac91 7599 ac_cv_use_richtext='wxUSE_RICHTEXT=no'
91dea314
MW
7600 fi
7601
7602else
7603
7604 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7605 if test "x$LINE" != x ; then
7606 eval "DEFAULT_$LINE"
7607 else
7608 no_cache=1
7609 fi
7610
6da4ac91 7611 ac_cv_use_richtext='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
91dea314
MW
7612
7613fi;
7614
6da4ac91 7615 eval "$ac_cv_use_richtext"
91dea314 7616 if test "$no_cache" != 1; then
6da4ac91 7617 echo $ac_cv_use_richtext >> ${wx_arg_cache_file}.tmp
91dea314
MW
7618 fi
7619
7620 if test "$wxUSE_RICHTEXT" = yes; then
7621 echo "$as_me:$LINENO: result: yes" >&5
7622echo "${ECHO_T}yes" >&6
7623 else
7624 echo "$as_me:$LINENO: result: no" >&5
7625echo "${ECHO_T}no" >&6
7626 fi
7627
7628
077c7880 7629 enablestring=
f43426c1
RD
7630 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
7631echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6
7632 no_cache=0
7633 # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given.
7634if test "${enable_graphics_ctx+set}" = set; then
7635 enableval="$enable_graphics_ctx"
7636
7637 if test "$enableval" = yes; then
7638 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
7639 else
7640 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
7641 fi
7642
7643else
7644
7645 LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
7646 if test "x$LINE" != x ; then
7647 eval "DEFAULT_$LINE"
7648 else
7649 no_cache=1
7650 fi
7651
7652 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
7653
7654fi;
7655
7656 eval "$ac_cv_use_graphics_ctx"
7657 if test "$no_cache" != 1; then
7658 echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
7659 fi
7660
7661 if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
7662 echo "$as_me:$LINENO: result: yes" >&5
7663echo "${ECHO_T}yes" >&6
7664 else
7665 echo "$as_me:$LINENO: result: no" >&5
7666echo "${ECHO_T}no" >&6
7667 fi
7668
7669
a848cd7e 7670
077c7880 7671 enablestring=
a848cd7e
SC
7672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7673echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7674 no_cache=0
7675 # Check whether --enable-postscript or --disable-postscript was given.
7676if test "${enable_postscript+set}" = set; then
7677 enableval="$enable_postscript"
7678
7679 if test "$enableval" = yes; then
7680 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7681 else
7682 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7683 fi
7684
7685else
7686
7687 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7688 if test "x$LINE" != x ; then
7689 eval "DEFAULT_$LINE"
7690 else
7691 no_cache=1
7692 fi
7693
7694 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7695
7696fi;
7697
7698 eval "$ac_cv_use_postscript"
7699 if test "$no_cache" != 1; then
7700 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7701 fi
7702
7703 if test "$wxUSE_POSTSCRIPT" = yes; then
7704 echo "$as_me:$LINENO: result: yes" >&5
7705echo "${ECHO_T}yes" >&6
7706 else
7707 echo "$as_me:$LINENO: result: no" >&5
7708echo "${ECHO_T}no" >&6
7709 fi
7710
7711
7712
7713
7714
077c7880 7715 enablestring=
a848cd7e
SC
7716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7717echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7718 no_cache=0
7719 # Check whether --enable-prologio or --disable-prologio was given.
7720if test "${enable_prologio+set}" = set; then
7721 enableval="$enable_prologio"
7722
7723 if test "$enableval" = yes; then
7724 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7725 else
7726 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7727 fi
7728
7729else
7730
7731 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7732 if test "x$LINE" != x ; then
7733 eval "DEFAULT_$LINE"
7734 else
7735 no_cache=1
7736 fi
7737
7738 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7739
7740fi;
7741
7742 eval "$ac_cv_use_prologio"
7743 if test "$no_cache" != 1; then
7744 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7745 fi
7746
7747 if test "$wxUSE_PROLOGIO" = yes; then
7748 echo "$as_me:$LINENO: result: yes" >&5
7749echo "${ECHO_T}yes" >&6
7750 else
7751 echo "$as_me:$LINENO: result: no" >&5
7752echo "${ECHO_T}no" >&6
7753 fi
7754
7755
077c7880 7756 enablestring=
a848cd7e
SC
7757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7758echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7759 no_cache=0
7760 # Check whether --enable-resources or --disable-resources was given.
7761if test "${enable_resources+set}" = set; then
7762 enableval="$enable_resources"
7763
7764 if test "$enableval" = yes; then
7765 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7766 else
7767 ac_cv_use_resources='wxUSE_RESOURCES=no'
7768 fi
7769
7770else
7771
7772 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7773 if test "x$LINE" != x ; then
7774 eval "DEFAULT_$LINE"
7775 else
7776 no_cache=1
7777 fi
7778
7779 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7780
7781fi;
7782
7783 eval "$ac_cv_use_resources"
7784 if test "$no_cache" != 1; then
7785 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7786 fi
7787
7788 if test "$wxUSE_RESOURCES" = yes; then
7789 echo "$as_me:$LINENO: result: yes" >&5
7790echo "${ECHO_T}yes" >&6
7791 else
7792 echo "$as_me:$LINENO: result: no" >&5
7793echo "${ECHO_T}no" >&6
7794 fi
7795
7796
7797
7798
077c7880 7799 enablestring=
a848cd7e
SC
7800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7801echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7802 no_cache=0
7803 # Check whether --enable-clipboard or --disable-clipboard was given.
7804if test "${enable_clipboard+set}" = set; then
7805 enableval="$enable_clipboard"
7806
7807 if test "$enableval" = yes; then
7808 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7809 else
7810 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7811 fi
7812
7813else
7814
7815 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7816 if test "x$LINE" != x ; then
7817 eval "DEFAULT_$LINE"
7818 else
7819 no_cache=1
7820 fi
7821
7822 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7823
7824fi;
7825
7826 eval "$ac_cv_use_clipboard"
7827 if test "$no_cache" != 1; then
7828 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7829 fi
7830
7831 if test "$wxUSE_CLIPBOARD" = yes; then
7832 echo "$as_me:$LINENO: result: yes" >&5
7833echo "${ECHO_T}yes" >&6
7834 else
7835 echo "$as_me:$LINENO: result: no" >&5
7836echo "${ECHO_T}no" >&6
7837 fi
7838
7839
077c7880 7840 enablestring=
a848cd7e
SC
7841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7842echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7843 no_cache=0
7844 # Check whether --enable-dnd or --disable-dnd was given.
7845if test "${enable_dnd+set}" = set; then
7846 enableval="$enable_dnd"
7847
7848 if test "$enableval" = yes; then
7849 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7850 else
7851 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7852 fi
7853
7854else
7855
7856 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7857 if test "x$LINE" != x ; then
7858 eval "DEFAULT_$LINE"
7859 else
7860 no_cache=1
7861 fi
7862
7863 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7864
7865fi;
7866
7867 eval "$ac_cv_use_dnd"
7868 if test "$no_cache" != 1; then
7869 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7870 fi
7871
7872 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7873 echo "$as_me:$LINENO: result: yes" >&5
7874echo "${ECHO_T}yes" >&6
7875 else
7876 echo "$as_me:$LINENO: result: no" >&5
7877echo "${ECHO_T}no" >&6
7878 fi
7879
7880
077c7880 7881 enablestring=
a848cd7e
SC
7882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7883echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7884 no_cache=0
7885 # Check whether --enable-metafile or --disable-metafile was given.
7886if test "${enable_metafile+set}" = set; then
7887 enableval="$enable_metafile"
7888
7889 if test "$enableval" = yes; then
7890 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7891 else
7892 ac_cv_use_metafile='wxUSE_METAFILE=no'
7893 fi
7894
7895else
7896
7897 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7898 if test "x$LINE" != x ; then
7899 eval "DEFAULT_$LINE"
7900 else
7901 no_cache=1
7902 fi
7903
7904 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7905
7906fi;
7907
7908 eval "$ac_cv_use_metafile"
7909 if test "$no_cache" != 1; then
7910 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7911 fi
7912
7913 if test "$wxUSE_METAFILE" = yes; then
7914 echo "$as_me:$LINENO: result: yes" >&5
7915echo "${ECHO_T}yes" >&6
7916 else
7917 echo "$as_me:$LINENO: result: no" >&5
7918echo "${ECHO_T}no" >&6
7919 fi
7920
7921
7922
7923
7924
077c7880 7925 enablestring=
a848cd7e
SC
7926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7927echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7928 no_cache=0
7929 # Check whether --enable-controls or --disable-controls was given.
7930if test "${enable_controls+set}" = set; then
7931 enableval="$enable_controls"
7932
7933 if test "$enableval" = yes; then
7934 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7935 else
7936 ac_cv_use_controls='wxUSE_CONTROLS=no'
7937 fi
7938
7939else
7940
7941 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7942 if test "x$LINE" != x ; then
7943 eval "DEFAULT_$LINE"
7944 else
7945 no_cache=1
7946 fi
7947
7948 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7949
7950fi;
7951
7952 eval "$ac_cv_use_controls"
7953 if test "$no_cache" != 1; then
7954 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7955 fi
7956
7957 if test "$wxUSE_CONTROLS" = yes; then
7958 echo "$as_me:$LINENO: result: yes" >&5
7959echo "${ECHO_T}yes" >&6
7960 else
7961 echo "$as_me:$LINENO: result: no" >&5
7962echo "${ECHO_T}no" >&6
7963 fi
7964
7965
7966if test "$wxUSE_CONTROLS" = "yes"; then
7967 DEFAULT_wxUSE_ACCEL=yes
3ea50042 7968 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
7969 DEFAULT_wxUSE_BMPBUTTON=yes
7970 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7971 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7972 DEFAULT_wxUSE_CARET=yes
7973 DEFAULT_wxUSE_COMBOBOX=yes
7974 DEFAULT_wxUSE_CHECKBOX=yes
7975 DEFAULT_wxUSE_CHECKLISTBOX=yes
7976 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7977 DEFAULT_wxUSE_CHOICEBOOK=yes
bd915ace 7978 DEFAULT_wxUSE_COLLPANE=yes
e9263684
VZ
7979 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7980 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7981 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684 7982 DEFAULT_wxUSE_DISPLAY=yes
88bbc332 7983 DEFAULT_wxUSE_DETECT_SM=yes
e9263684
VZ
7984 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7985 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7986 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7987 DEFAULT_wxUSE_GAUGE=yes
7988 DEFAULT_wxUSE_GRID=yes
6954625c 7989 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7990 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7991 DEFAULT_wxUSE_IMAGLIST=yes
7992 DEFAULT_wxUSE_LISTBOOK=yes
7993 DEFAULT_wxUSE_LISTBOX=yes
7994 DEFAULT_wxUSE_LISTCTRL=yes
7995 DEFAULT_wxUSE_NOTEBOOK=yes
7996 DEFAULT_wxUSE_RADIOBOX=yes
7997 DEFAULT_wxUSE_RADIOBTN=yes
7998 DEFAULT_wxUSE_SASH=yes
7999 DEFAULT_wxUSE_SCROLLBAR=yes
8000 DEFAULT_wxUSE_SLIDER=yes
8001 DEFAULT_wxUSE_SPINBTN=yes
8002 DEFAULT_wxUSE_SPINCTRL=yes
8003 DEFAULT_wxUSE_SPLITTER=yes
8004 DEFAULT_wxUSE_STATBMP=yes
8005 DEFAULT_wxUSE_STATBOX=yes
8006 DEFAULT_wxUSE_STATLINE=yes
8007 DEFAULT_wxUSE_STATUSBAR=yes
8008 DEFAULT_wxUSE_TAB_DIALOG=yes
8009 DEFAULT_wxUSE_TOGGLEBTN=yes
8010 DEFAULT_wxUSE_TOOLBAR=yes
8011 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
a848cd7e 8012 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 8013 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 8014 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
8015 DEFAULT_wxUSE_TREECTRL=yes
8016 DEFAULT_wxUSE_POPUPWIN=yes
8017 DEFAULT_wxUSE_TIPWINDOW=yes
8018elif test "$wxUSE_CONTROLS" = "no"; then
8019 DEFAULT_wxUSE_ACCEL=no
3ea50042 8020 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
8021 DEFAULT_wxUSE_BMPBUTTON=no
8022 DEFAULT_wxUSE_BUTTON=no
8023 DEFAULT_wxUSE_CALCTRL=no
8024 DEFAULT_wxUSE_CARET=no
bd915ace 8025 DEFAULT_wxUSE_COLLPANE=no
a848cd7e
SC
8026 DEFAULT_wxUSE_COMBOBOX=no
8027 DEFAULT_wxUSE_CHECKBOX=no
8028 DEFAULT_wxUSE_CHECKLISTBOX=no
8029 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 8030 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
8031 DEFAULT_wxUSE_COLOURPICKERCTRL=no
8032 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 8033 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684 8034 DEFAULT_wxUSE_DISPLAY=no
88bbc332 8035 DEFAULT_wxUSE_DETECT_SM=no
e9263684
VZ
8036 DEFAULT_wxUSE_DIRPICKERCTRL=no
8037 DEFAULT_wxUSE_FILEPICKERCTRL=no
8038 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
8039 DEFAULT_wxUSE_GAUGE=no
8040 DEFAULT_wxUSE_GRID=no
6954625c 8041 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 8042 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
8043 DEFAULT_wxUSE_IMAGLIST=no
8044 DEFAULT_wxUSE_LISTBOOK=no
8045 DEFAULT_wxUSE_LISTBOX=no
8046 DEFAULT_wxUSE_LISTCTRL=no
8047 DEFAULT_wxUSE_NOTEBOOK=no
8048 DEFAULT_wxUSE_RADIOBOX=no
8049 DEFAULT_wxUSE_RADIOBTN=no
8050 DEFAULT_wxUSE_SASH=no
8051 DEFAULT_wxUSE_SCROLLBAR=no
8052 DEFAULT_wxUSE_SLIDER=no
8053 DEFAULT_wxUSE_SPINBTN=no
8054 DEFAULT_wxUSE_SPINCTRL=no
8055 DEFAULT_wxUSE_SPLITTER=no
8056 DEFAULT_wxUSE_STATBMP=no
8057 DEFAULT_wxUSE_STATBOX=no
8058 DEFAULT_wxUSE_STATLINE=no
8059 DEFAULT_wxUSE_STATUSBAR=no
8060 DEFAULT_wxUSE_TAB_DIALOG=no
8061 DEFAULT_wxUSE_TOGGLEBTN=no
8062 DEFAULT_wxUSE_TOOLBAR=no
8063 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
a848cd7e 8064 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 8065 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 8066 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
8067 DEFAULT_wxUSE_TREECTRL=no
8068 DEFAULT_wxUSE_POPUPWIN=no
8069 DEFAULT_wxUSE_TIPWINDOW=no
8070fi
8071
a848cd7e 8072
077c7880 8073 enablestring=
a848cd7e
SC
8074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
8075echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
8076 no_cache=0
8077 # Check whether --enable-accel or --disable-accel was given.
8078if test "${enable_accel+set}" = set; then
8079 enableval="$enable_accel"
8080
8081 if test "$enableval" = yes; then
8082 ac_cv_use_accel='wxUSE_ACCEL=yes'
8083 else
8084 ac_cv_use_accel='wxUSE_ACCEL=no'
8085 fi
8086
8087else
8088
8089 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
8090 if test "x$LINE" != x ; then
8091 eval "DEFAULT_$LINE"
8092 else
8093 no_cache=1
8094 fi
8095
8096 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
8097
8098fi;
8099
8100 eval "$ac_cv_use_accel"
8101 if test "$no_cache" != 1; then
8102 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
8103 fi
8104
8105 if test "$wxUSE_ACCEL" = yes; then
8106 echo "$as_me:$LINENO: result: yes" >&5
8107echo "${ECHO_T}yes" >&6
8108 else
8109 echo "$as_me:$LINENO: result: no" >&5
8110echo "${ECHO_T}no" >&6
8111 fi
8112
8113
077c7880 8114 enablestring=
3ea50042
VZ
8115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
8116echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6
8117 no_cache=0
8118 # Check whether --enable-animatectrl or --disable-animatectrl was given.
8119if test "${enable_animatectrl+set}" = set; then
8120 enableval="$enable_animatectrl"
8121
8122 if test "$enableval" = yes; then
8123 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
8124 else
8125 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
8126 fi
8127
8128else
8129
8130 LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}`
8131 if test "x$LINE" != x ; then
8132 eval "DEFAULT_$LINE"
8133 else
8134 no_cache=1
8135 fi
8136
8137 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
8138
8139fi;
8140
8141 eval "$ac_cv_use_animatectrl"
8142 if test "$no_cache" != 1; then
8143 echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
8144 fi
8145
8146 if test "$wxUSE_ANIMATIONCTRL" = yes; then
8147 echo "$as_me:$LINENO: result: yes" >&5
8148echo "${ECHO_T}yes" >&6
8149 else
8150 echo "$as_me:$LINENO: result: no" >&5
8151echo "${ECHO_T}no" >&6
8152 fi
8153
8154
077c7880 8155 enablestring=
a848cd7e
SC
8156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
8157echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
8158 no_cache=0
8159 # Check whether --enable-button or --disable-button was given.
8160if test "${enable_button+set}" = set; then
8161 enableval="$enable_button"
8162
8163 if test "$enableval" = yes; then
8164 ac_cv_use_button='wxUSE_BUTTON=yes'
8165 else
8166 ac_cv_use_button='wxUSE_BUTTON=no'
8167 fi
8168
8169else
8170
8171 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
8172 if test "x$LINE" != x ; then
8173 eval "DEFAULT_$LINE"
8174 else
8175 no_cache=1
8176 fi
8177
8178 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
8179
8180fi;
8181
8182 eval "$ac_cv_use_button"
8183 if test "$no_cache" != 1; then
8184 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
8185 fi
8186
8187 if test "$wxUSE_BUTTON" = yes; then
8188 echo "$as_me:$LINENO: result: yes" >&5
8189echo "${ECHO_T}yes" >&6
8190 else
8191 echo "$as_me:$LINENO: result: no" >&5
8192echo "${ECHO_T}no" >&6
8193 fi
8194
8195
077c7880 8196 enablestring=
a848cd7e
SC
8197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
8198echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
8199 no_cache=0
8200 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
8201if test "${enable_bmpbutton+set}" = set; then
8202 enableval="$enable_bmpbutton"
8203
8204 if test "$enableval" = yes; then
8205 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8206 else
8207 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8208 fi
8209
8210else
8211
8212 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8213 if test "x$LINE" != x ; then
8214 eval "DEFAULT_$LINE"
8215 else
8216 no_cache=1
8217 fi
8218
8219 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8220
8221fi;
8222
8223 eval "$ac_cv_use_bmpbutton"
8224 if test "$no_cache" != 1; then
8225 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8226 fi
8227
8228 if test "$wxUSE_BMPBUTTON" = yes; then
8229 echo "$as_me:$LINENO: result: yes" >&5
8230echo "${ECHO_T}yes" >&6
8231 else
8232 echo "$as_me:$LINENO: result: no" >&5
8233echo "${ECHO_T}no" >&6
8234 fi
8235
8236
077c7880 8237 enablestring=
95a46303
RR
8238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8239echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
8240 no_cache=0
8241 # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
8242if test "${enable_bmpcombobox+set}" = set; then
8243 enableval="$enable_bmpcombobox"
8244
8245 if test "$enableval" = yes; then
8246 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8247 else
8248 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8249 fi
8250
8251else
8252
8253 LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8254 if test "x$LINE" != x ; then
8255 eval "DEFAULT_$LINE"
8256 else
8257 no_cache=1
8258 fi
8259
8260 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8261
8262fi;
8263
8264 eval "$ac_cv_use_bmpcombobox"
8265 if test "$no_cache" != 1; then
8266 echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8267 fi
8268
8269 if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8270 echo "$as_me:$LINENO: result: yes" >&5
8271echo "${ECHO_T}yes" >&6
8272 else
8273 echo "$as_me:$LINENO: result: no" >&5
8274echo "${ECHO_T}no" >&6
8275 fi
8276
8277
077c7880 8278 enablestring=
a848cd7e
SC
8279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8280echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
8281 no_cache=0
8282 # Check whether --enable-calendar or --disable-calendar was given.
8283if test "${enable_calendar+set}" = set; then
8284 enableval="$enable_calendar"
8285
8286 if test "$enableval" = yes; then
8287 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8288 else
8289 ac_cv_use_calendar='wxUSE_CALCTRL=no'
8290 fi
8291
8292else
8293
8294 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8295 if test "x$LINE" != x ; then
8296 eval "DEFAULT_$LINE"
8297 else
8298 no_cache=1
8299 fi
8300
8301 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8302
8303fi;
8304
8305 eval "$ac_cv_use_calendar"
8306 if test "$no_cache" != 1; then
8307 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8308 fi
8309
8310 if test "$wxUSE_CALCTRL" = yes; then
8311 echo "$as_me:$LINENO: result: yes" >&5
8312echo "${ECHO_T}yes" >&6
8313 else
8314 echo "$as_me:$LINENO: result: no" >&5
8315echo "${ECHO_T}no" >&6
8316 fi
8317
8318
077c7880 8319 enablestring=
a848cd7e
SC
8320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8321echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
8322 no_cache=0
8323 # Check whether --enable-caret or --disable-caret was given.
8324if test "${enable_caret+set}" = set; then
8325 enableval="$enable_caret"
8326
8327 if test "$enableval" = yes; then
8328 ac_cv_use_caret='wxUSE_CARET=yes'
8329 else
8330 ac_cv_use_caret='wxUSE_CARET=no'
8331 fi
8332
8333else
8334
8335 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8336 if test "x$LINE" != x ; then
8337 eval "DEFAULT_$LINE"
8338 else
8339 no_cache=1
8340 fi
8341
8342 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8343
8344fi;
8345
8346 eval "$ac_cv_use_caret"
8347 if test "$no_cache" != 1; then
8348 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8349 fi
8350
8351 if test "$wxUSE_CARET" = yes; then
8352 echo "$as_me:$LINENO: result: yes" >&5
8353echo "${ECHO_T}yes" >&6
8354 else
8355 echo "$as_me:$LINENO: result: no" >&5
8356echo "${ECHO_T}no" >&6
8357 fi
8358
8359
077c7880 8360 enablestring=
a848cd7e
SC
8361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8362echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8363 no_cache=0
8364 # Check whether --enable-checkbox or --disable-checkbox was given.
8365if test "${enable_checkbox+set}" = set; then
8366 enableval="$enable_checkbox"
8367
8368 if test "$enableval" = yes; then
8369 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8370 else
8371 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8372 fi
8373
8374else
8375
8376 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8377 if test "x$LINE" != x ; then
8378 eval "DEFAULT_$LINE"
8379 else
8380 no_cache=1
8381 fi
8382
8383 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8384
8385fi;
8386
8387 eval "$ac_cv_use_checkbox"
8388 if test "$no_cache" != 1; then
8389 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8390 fi
8391
8392 if test "$wxUSE_CHECKBOX" = yes; then
8393 echo "$as_me:$LINENO: result: yes" >&5
8394echo "${ECHO_T}yes" >&6
8395 else
8396 echo "$as_me:$LINENO: result: no" >&5
8397echo "${ECHO_T}no" >&6
8398 fi
8399
8400
077c7880 8401 enablestring=
a848cd7e
SC
8402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8403echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8404 no_cache=0
8405 # Check whether --enable-checklst or --disable-checklst was given.
8406if test "${enable_checklst+set}" = set; then
8407 enableval="$enable_checklst"
8408
8409 if test "$enableval" = yes; then
8410 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8411 else
8412 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8413 fi
8414
8415else
8416
8417 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8418 if test "x$LINE" != x ; then
8419 eval "DEFAULT_$LINE"
8420 else
8421 no_cache=1
8422 fi
8423
8424 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8425
8426fi;
8427
8428 eval "$ac_cv_use_checklst"
8429 if test "$no_cache" != 1; then
8430 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8431 fi
8432
8433 if test "$wxUSE_CHECKLST" = yes; then
8434 echo "$as_me:$LINENO: result: yes" >&5
8435echo "${ECHO_T}yes" >&6
8436 else
8437 echo "$as_me:$LINENO: result: no" >&5
8438echo "${ECHO_T}no" >&6
8439 fi
8440
8441
077c7880 8442 enablestring=
a848cd7e
SC
8443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8444echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8445 no_cache=0
8446 # Check whether --enable-choice or --disable-choice was given.
8447if test "${enable_choice+set}" = set; then
8448 enableval="$enable_choice"
8449
8450 if test "$enableval" = yes; then
8451 ac_cv_use_choice='wxUSE_CHOICE=yes'
8452 else
8453 ac_cv_use_choice='wxUSE_CHOICE=no'
8454 fi
8455
8456else
8457
8458 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8459 if test "x$LINE" != x ; then
8460 eval "DEFAULT_$LINE"
8461 else
8462 no_cache=1
8463 fi
8464
8465 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8466
8467fi;
8468
8469 eval "$ac_cv_use_choice"
8470 if test "$no_cache" != 1; then
8471 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8472 fi
8473
8474 if test "$wxUSE_CHOICE" = yes; then
8475 echo "$as_me:$LINENO: result: yes" >&5
8476echo "${ECHO_T}yes" >&6
8477 else
8478 echo "$as_me:$LINENO: result: no" >&5
8479echo "${ECHO_T}no" >&6
8480 fi
8481
8482
077c7880 8483 enablestring=
92bbdbcd
WS
8484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8485echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8486 no_cache=0
8487 # Check whether --enable-choicebook or --disable-choicebook was given.
8488if test "${enable_choicebook+set}" = set; then
8489 enableval="$enable_choicebook"
8490
8491 if test "$enableval" = yes; then
8492 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8493 else
8494 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8495 fi
8496
8497else
8498
8499 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8500 if test "x$LINE" != x ; then
8501 eval "DEFAULT_$LINE"
8502 else
8503 no_cache=1
8504 fi
8505
8506 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8507
8508fi;
8509
8510 eval "$ac_cv_use_choicebook"
8511 if test "$no_cache" != 1; then
8512 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8513 fi
8514
8515 if test "$wxUSE_CHOICEBOOK" = yes; then
8516 echo "$as_me:$LINENO: result: yes" >&5
8517echo "${ECHO_T}yes" >&6
8518 else
8519 echo "$as_me:$LINENO: result: no" >&5
8520echo "${ECHO_T}no" >&6
8521 fi
8522
8523
077c7880 8524 enablestring=
bd915ace
RR
8525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
8526echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6
8527 no_cache=0
8528 # Check whether --enable-collpane or --disable-collpane was given.
8529if test "${enable_collpane+set}" = set; then
8530 enableval="$enable_collpane"
8531
8532 if test "$enableval" = yes; then
8533 ac_cv_use_collpane='wxUSE_COLLPANE=yes'
8534 else
8535 ac_cv_use_collpane='wxUSE_COLLPANE=no'
8536 fi
8537
8538else
8539
8540 LINE=`grep "wxUSE_COLLPANE" ${wx_arg_cache_file}`
8541 if test "x$LINE" != x ; then
8542 eval "DEFAULT_$LINE"
8543 else
8544 no_cache=1
8545 fi
8546
8547 ac_cv_use_collpane='wxUSE_COLLPANE='$DEFAULT_wxUSE_COLLPANE
8548
8549fi;
8550
8551 eval "$ac_cv_use_collpane"
8552 if test "$no_cache" != 1; then
8553 echo $ac_cv_use_collpane >> ${wx_arg_cache_file}.tmp
8554 fi
8555
8556 if test "$wxUSE_COLLPANE" = yes; then
8557 echo "$as_me:$LINENO: result: yes" >&5
8558echo "${ECHO_T}yes" >&6
8559 else
8560 echo "$as_me:$LINENO: result: no" >&5
8561echo "${ECHO_T}no" >&6
8562 fi
8563
8564
077c7880 8565 enablestring=
e9263684
VZ
8566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8567echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8568 no_cache=0
8569 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8570if test "${enable_colourpicker+set}" = set; then
8571 enableval="$enable_colourpicker"
8572
8573 if test "$enableval" = yes; then
8574 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8575 else
8576 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8577 fi
8578
8579else
8580
8581 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8582 if test "x$LINE" != x ; then
8583 eval "DEFAULT_$LINE"
8584 else
8585 no_cache=1
8586 fi
8587
8588 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8589
8590fi;
8591
8592 eval "$ac_cv_use_colourpicker"
8593 if test "$no_cache" != 1; then
8594 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8595 fi
8596
8597 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8598 echo "$as_me:$LINENO: result: yes" >&5
8599echo "${ECHO_T}yes" >&6
8600 else
8601 echo "$as_me:$LINENO: result: no" >&5
8602echo "${ECHO_T}no" >&6
8603 fi
8604
8605
077c7880 8606 enablestring=
a848cd7e
SC
8607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8608echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8609 no_cache=0
8610 # Check whether --enable-combobox or --disable-combobox was given.
8611if test "${enable_combobox+set}" = set; then
8612 enableval="$enable_combobox"
8613
8614 if test "$enableval" = yes; then
8615 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8616 else
8617 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8618 fi
8619
8620else
8621
8622 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8623 if test "x$LINE" != x ; then
8624 eval "DEFAULT_$LINE"
8625 else
8626 no_cache=1
8627 fi
8628
8629 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8630
8631fi;
8632
8633 eval "$ac_cv_use_combobox"
8634 if test "$no_cache" != 1; then
8635 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8636 fi
8637
8638 if test "$wxUSE_COMBOBOX" = yes; then
8639 echo "$as_me:$LINENO: result: yes" >&5
8640echo "${ECHO_T}yes" >&6
8641 else
8642 echo "$as_me:$LINENO: result: no" >&5
8643echo "${ECHO_T}no" >&6
8644 fi
8645
8646
077c7880 8647 enablestring=
a57d600f
VZ
8648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8649echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8650 no_cache=0
a57d600f
VZ
8651 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8652if test "${enable_comboctrl+set}" = set; then
8653 enableval="$enable_comboctrl"
642bcba9
VZ
8654
8655 if test "$enableval" = yes; then
a57d600f 8656 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8657 else
a57d600f 8658 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8659 fi
8660
8661else
8662
a57d600f 8663 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8664 if test "x$LINE" != x ; then
8665 eval "DEFAULT_$LINE"
8666 else
8667 no_cache=1
8668 fi
8669
a57d600f 8670 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8671
8672fi;
8673
a57d600f 8674 eval "$ac_cv_use_comboctrl"
642bcba9 8675 if test "$no_cache" != 1; then
a57d600f 8676 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8677 fi
8678
a57d600f 8679 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8680 echo "$as_me:$LINENO: result: yes" >&5
8681echo "${ECHO_T}yes" >&6
8682 else
8683 echo "$as_me:$LINENO: result: no" >&5
8684echo "${ECHO_T}no" >&6
8685 fi
8686
8687
077c7880 8688 enablestring=
da98e9be
VZ
8689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8690echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8691 no_cache=0
8692 # Check whether --enable-datepick or --disable-datepick was given.
8693if test "${enable_datepick+set}" = set; then
8694 enableval="$enable_datepick"
8695
8696 if test "$enableval" = yes; then
8697 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8698 else
8699 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8700 fi
8701
8702else
8703
8704 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8705 if test "x$LINE" != x ; then
8706 eval "DEFAULT_$LINE"
8707 else
8708 no_cache=1
8709 fi
8710
8711 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8712
8713fi;
8714
8715 eval "$ac_cv_use_datepick"
8716 if test "$no_cache" != 1; then
8717 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8718 fi
8719
8720 if test "$wxUSE_DATEPICKCTRL" = yes; then
8721 echo "$as_me:$LINENO: result: yes" >&5
8722echo "${ECHO_T}yes" >&6
8723 else
8724 echo "$as_me:$LINENO: result: no" >&5
8725echo "${ECHO_T}no" >&6
8726 fi
8727
8728
077c7880 8729 enablestring=
e9263684
VZ
8730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8731echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8732 no_cache=0
8733 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8734if test "${enable_dirpicker+set}" = set; then
8735 enableval="$enable_dirpicker"
8736
8737 if test "$enableval" = yes; then
8738 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8739 else
8740 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8741 fi
8742
8743else
8744
8745 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8746 if test "x$LINE" != x ; then
8747 eval "DEFAULT_$LINE"
8748 else
8749 no_cache=1
8750 fi
8751
8752 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8753
8754fi;
8755
8756 eval "$ac_cv_use_dirpicker"
8757 if test "$no_cache" != 1; then
8758 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8759 fi
8760
8761 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8762 echo "$as_me:$LINENO: result: yes" >&5
8763echo "${ECHO_T}yes" >&6
8764 else
8765 echo "$as_me:$LINENO: result: no" >&5
8766echo "${ECHO_T}no" >&6
8767 fi
8768
8769
077c7880 8770 enablestring=
a848cd7e
SC
8771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8772echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8773 no_cache=0
8774 # Check whether --enable-display or --disable-display was given.
8775if test "${enable_display+set}" = set; then
8776 enableval="$enable_display"
8777
8778 if test "$enableval" = yes; then
8779 ac_cv_use_display='wxUSE_DISPLAY=yes'
8780 else
8781 ac_cv_use_display='wxUSE_DISPLAY=no'
8782 fi
8783
8784else
8785
8786 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8787 if test "x$LINE" != x ; then
8788 eval "DEFAULT_$LINE"
8789 else
8790 no_cache=1
8791 fi
8792
8793 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8794
8795fi;
8796
8797 eval "$ac_cv_use_display"
8798 if test "$no_cache" != 1; then
8799 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8800 fi
8801
8802 if test "$wxUSE_DISPLAY" = yes; then
8803 echo "$as_me:$LINENO: result: yes" >&5
8804echo "${ECHO_T}yes" >&6
8805 else
8806 echo "$as_me:$LINENO: result: no" >&5
8807echo "${ECHO_T}no" >&6
8808 fi
8809
8810
077c7880 8811 enablestring=
88bbc332
RR
8812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
8813echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6
8814 no_cache=0
8815 # Check whether --enable-detect_sm or --disable-detect_sm was given.
8816if test "${enable_detect_sm+set}" = set; then
8817 enableval="$enable_detect_sm"
8818
8819 if test "$enableval" = yes; then
8820 ac_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
8821 else
8822 ac_cv_use_detect_sm='wxUSE_DETECT_SM=no'
8823 fi
8824
8825else
8826
8827 LINE=`grep "wxUSE_DETECT_SM" ${wx_arg_cache_file}`
8828 if test "x$LINE" != x ; then
8829 eval "DEFAULT_$LINE"
8830 else
8831 no_cache=1
8832 fi
8833
8834 ac_cv_use_detect_sm='wxUSE_DETECT_SM='$DEFAULT_wxUSE_DETECT_SM
8835
8836fi;
8837
8838 eval "$ac_cv_use_detect_sm"
8839 if test "$no_cache" != 1; then
8840 echo $ac_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp
8841 fi
8842
8843 if test "$wxUSE_DETECT_SM" = yes; then
8844 echo "$as_me:$LINENO: result: yes" >&5
8845echo "${ECHO_T}yes" >&6
8846 else
8847 echo "$as_me:$LINENO: result: no" >&5
8848echo "${ECHO_T}no" >&6
8849 fi
8850
8851
077c7880 8852 enablestring=
e9263684
VZ
8853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8854echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8855 no_cache=0
8856 # Check whether --enable-filepicker or --disable-filepicker was given.
8857if test "${enable_filepicker+set}" = set; then
8858 enableval="$enable_filepicker"
8859
8860 if test "$enableval" = yes; then
8861 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8862 else
8863 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8864 fi
8865
8866else
8867
8868 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8869 if test "x$LINE" != x ; then
8870 eval "DEFAULT_$LINE"
8871 else
8872 no_cache=1
8873 fi
8874
8875 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8876
8877fi;
8878
8879 eval "$ac_cv_use_filepicker"
8880 if test "$no_cache" != 1; then
8881 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8882 fi
8883
8884 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8885 echo "$as_me:$LINENO: result: yes" >&5
8886echo "${ECHO_T}yes" >&6
8887 else
8888 echo "$as_me:$LINENO: result: no" >&5
8889echo "${ECHO_T}no" >&6
8890 fi
8891
8892
077c7880 8893 enablestring=
e9263684
VZ
8894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8895echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8896 no_cache=0
8897 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8898if test "${enable_fontpicker+set}" = set; then
8899 enableval="$enable_fontpicker"
8900
8901 if test "$enableval" = yes; then
8902 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8903 else
8904 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8905 fi
8906
8907else
8908
8909 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8910 if test "x$LINE" != x ; then
8911 eval "DEFAULT_$LINE"
8912 else
8913 no_cache=1
8914 fi
8915
8916 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8917
8918fi;
8919
8920 eval "$ac_cv_use_fontpicker"
8921 if test "$no_cache" != 1; then
8922 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8923 fi
8924
8925 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8926 echo "$as_me:$LINENO: result: yes" >&5
8927echo "${ECHO_T}yes" >&6
8928 else
8929 echo "$as_me:$LINENO: result: no" >&5
8930echo "${ECHO_T}no" >&6
8931 fi
8932
8933
077c7880 8934 enablestring=
a848cd7e
SC
8935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8936echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8937 no_cache=0
8938 # Check whether --enable-gauge or --disable-gauge was given.
8939if test "${enable_gauge+set}" = set; then
8940 enableval="$enable_gauge"
8941
8942 if test "$enableval" = yes; then
8943 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8944 else
8945 ac_cv_use_gauge='wxUSE_GAUGE=no'
8946 fi
8947
8948else
8949
8950 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8951 if test "x$LINE" != x ; then
8952 eval "DEFAULT_$LINE"
8953 else
8954 no_cache=1
8955 fi
8956
8957 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8958
8959fi;
8960
8961 eval "$ac_cv_use_gauge"
8962 if test "$no_cache" != 1; then
8963 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8964 fi
8965
8966 if test "$wxUSE_GAUGE" = yes; then
8967 echo "$as_me:$LINENO: result: yes" >&5
8968echo "${ECHO_T}yes" >&6
8969 else
8970 echo "$as_me:$LINENO: result: no" >&5
8971echo "${ECHO_T}no" >&6
8972 fi
8973
8974
077c7880 8975 enablestring=
a848cd7e
SC
8976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8977echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8978 no_cache=0
8979 # Check whether --enable-grid or --disable-grid was given.
8980if test "${enable_grid+set}" = set; then
8981 enableval="$enable_grid"
8982
8983 if test "$enableval" = yes; then
8984 ac_cv_use_grid='wxUSE_GRID=yes'
8985 else
8986 ac_cv_use_grid='wxUSE_GRID=no'
8987 fi
8988
8989else
8990
8991 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8992 if test "x$LINE" != x ; then
8993 eval "DEFAULT_$LINE"
8994 else
8995 no_cache=1
8996 fi
8997
8998 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8999
9000fi;
9001
9002 eval "$ac_cv_use_grid"
9003 if test "$no_cache" != 1; then
9004 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
9005 fi
9006
9007 if test "$wxUSE_GRID" = yes; then
9008 echo "$as_me:$LINENO: result: yes" >&5
9009echo "${ECHO_T}yes" >&6
9010 else
9011 echo "$as_me:$LINENO: result: no" >&5
9012echo "${ECHO_T}no" >&6
9013 fi
9014
9015
077c7880 9016 enablestring=
20e34ecc
RR
9017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
9018echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
9019 no_cache=0
9020 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
9021if test "${enable_dataviewctrl+set}" = set; then
9022 enableval="$enable_dataviewctrl"
9023
9024 if test "$enableval" = yes; then
9025 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
9026 else
9027 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
9028 fi
9029
9030else
9031
9032 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
9033 if test "x$LINE" != x ; then
9034 eval "DEFAULT_$LINE"
9035 else
9036 no_cache=1
9037 fi
9038
9039 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
9040
9041fi;
9042
9043 eval "$ac_cv_use_dataviewctrl"
9044 if test "$no_cache" != 1; then
9045 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
9046 fi
9047
9048 if test "$wxUSE_DATAVIEWCTRL" = yes; then
9049 echo "$as_me:$LINENO: result: yes" >&5
9050echo "${ECHO_T}yes" >&6
9051 else
9052 echo "$as_me:$LINENO: result: no" >&5
9053echo "${ECHO_T}no" >&6
9054 fi
9055
9056
077c7880 9057 enablestring=
6954625c
VZ
9058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
9059echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
9060 no_cache=0
9061 # Check whether --enable-hyperlink or --disable-hyperlink was given.
9062if test "${enable_hyperlink+set}" = set; then
9063 enableval="$enable_hyperlink"
9064
9065 if test "$enableval" = yes; then
9066 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
9067 else
9068 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
9069 fi
9070
9071else
9072
9073 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
9074 if test "x$LINE" != x ; then
9075 eval "DEFAULT_$LINE"
9076 else
9077 no_cache=1
9078 fi
9079
9080 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
9081
9082fi;
9083
9084 eval "$ac_cv_use_hyperlink"
9085 if test "$no_cache" != 1; then
9086 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
9087 fi
9088
9089 if test "$wxUSE_HYPERLINKCTRL" = yes; then
9090 echo "$as_me:$LINENO: result: yes" >&5
9091echo "${ECHO_T}yes" >&6
9092 else
9093 echo "$as_me:$LINENO: result: no" >&5
9094echo "${ECHO_T}no" >&6
9095 fi
9096
9097
077c7880 9098 enablestring=
a848cd7e
SC
9099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
9100echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
9101 no_cache=0
9102 # Check whether --enable-imaglist or --disable-imaglist was given.
9103if test "${enable_imaglist+set}" = set; then
9104 enableval="$enable_imaglist"
9105
9106 if test "$enableval" = yes; then
9107 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
9108 else
9109 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
9110 fi
9111
9112else
9113
9114 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
9115 if test "x$LINE" != x ; then
9116 eval "DEFAULT_$LINE"
9117 else
9118 no_cache=1
9119 fi
9120
9121 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
9122
9123fi;
9124
9125 eval "$ac_cv_use_imaglist"
9126 if test "$no_cache" != 1; then
9127 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
9128 fi
9129
9130 if test "$wxUSE_IMAGLIST" = yes; then
9131 echo "$as_me:$LINENO: result: yes" >&5
9132echo "${ECHO_T}yes" >&6
9133 else
9134 echo "$as_me:$LINENO: result: no" >&5
9135echo "${ECHO_T}no" >&6
9136 fi
9137
9138
077c7880 9139 enablestring=
a848cd7e
SC
9140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
9141echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
9142 no_cache=0
9143 # Check whether --enable-listbook or --disable-listbook was given.
9144if test "${enable_listbook+set}" = set; then
9145 enableval="$enable_listbook"
9146
9147 if test "$enableval" = yes; then
9148 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
9149 else
9150 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
9151 fi
9152
9153else
9154
9155 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
9156 if test "x$LINE" != x ; then
9157 eval "DEFAULT_$LINE"
9158 else
9159 no_cache=1
9160 fi
9161
9162 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
9163
9164fi;
9165
9166 eval "$ac_cv_use_listbook"
9167 if test "$no_cache" != 1; then
9168 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
9169 fi
9170
9171 if test "$wxUSE_LISTBOOK" = yes; then
9172 echo "$as_me:$LINENO: result: yes" >&5
9173echo "${ECHO_T}yes" >&6
9174 else
9175 echo "$as_me:$LINENO: result: no" >&5
9176echo "${ECHO_T}no" >&6
9177 fi
9178
9179
077c7880 9180 enablestring=
a848cd7e
SC
9181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
9182echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
9183 no_cache=0
9184 # Check whether --enable-listbox or --disable-listbox was given.
9185if test "${enable_listbox+set}" = set; then
9186 enableval="$enable_listbox"
9187
9188 if test "$enableval" = yes; then
9189 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
9190 else
9191 ac_cv_use_listbox='wxUSE_LISTBOX=no'
9192 fi
9193
9194else
9195
9196 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
9197 if test "x$LINE" != x ; then
9198 eval "DEFAULT_$LINE"
9199 else
9200 no_cache=1
9201 fi
9202
9203 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
9204
9205fi;
9206
9207 eval "$ac_cv_use_listbox"
9208 if test "$no_cache" != 1; then
9209 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
9210 fi
9211
9212 if test "$wxUSE_LISTBOX" = yes; then
9213 echo "$as_me:$LINENO: result: yes" >&5
9214echo "${ECHO_T}yes" >&6
9215 else
9216 echo "$as_me:$LINENO: result: no" >&5
9217echo "${ECHO_T}no" >&6
9218 fi
9219
9220
077c7880 9221 enablestring=
a848cd7e
SC
9222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
9223echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
9224 no_cache=0
9225 # Check whether --enable-listctrl or --disable-listctrl was given.
9226if test "${enable_listctrl+set}" = set; then
9227 enableval="$enable_listctrl"
9228
9229 if test "$enableval" = yes; then
9230 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
9231 else
9232 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
9233 fi
9234
9235else
9236
9237 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
9238 if test "x$LINE" != x ; then
9239 eval "DEFAULT_$LINE"
9240 else
9241 no_cache=1
9242 fi
9243
9244 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
9245
9246fi;
9247
9248 eval "$ac_cv_use_listctrl"
9249 if test "$no_cache" != 1; then
9250 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
9251 fi
9252
9253 if test "$wxUSE_LISTCTRL" = yes; then
9254 echo "$as_me:$LINENO: result: yes" >&5
9255echo "${ECHO_T}yes" >&6
9256 else
9257 echo "$as_me:$LINENO: result: no" >&5
9258echo "${ECHO_T}no" >&6
9259 fi
9260
9261
077c7880 9262 enablestring=
a848cd7e
SC
9263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
9264echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
9265 no_cache=0
9266 # Check whether --enable-notebook or --disable-notebook was given.
9267if test "${enable_notebook+set}" = set; then
9268 enableval="$enable_notebook"
9269
9270 if test "$enableval" = yes; then
9271 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
9272 else
9273 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
9274 fi
9275
9276else
9277
9278 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
9279 if test "x$LINE" != x ; then
9280 eval "DEFAULT_$LINE"
9281 else
9282 no_cache=1
9283 fi
9284
9285 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
9286
9287fi;
9288
9289 eval "$ac_cv_use_notebook"
9290 if test "$no_cache" != 1; then
9291 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
9292 fi
9293
9294 if test "$wxUSE_NOTEBOOK" = yes; then
9295 echo "$as_me:$LINENO: result: yes" >&5
9296echo "${ECHO_T}yes" >&6
9297 else
9298 echo "$as_me:$LINENO: result: no" >&5
9299echo "${ECHO_T}no" >&6
9300 fi
9301
9302
077c7880 9303 enablestring=
a57d600f
VZ
9304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
9305echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 9306 no_cache=0
a57d600f
VZ
9307 # Check whether --enable-odcombobox or --disable-odcombobox was given.
9308if test "${enable_odcombobox+set}" = set; then
9309 enableval="$enable_odcombobox"
642bcba9
VZ
9310
9311 if test "$enableval" = yes; then
a57d600f 9312 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 9313 else
a57d600f 9314 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
9315 fi
9316
9317else
9318
a57d600f 9319 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
9320 if test "x$LINE" != x ; then
9321 eval "DEFAULT_$LINE"
9322 else
9323 no_cache=1
9324 fi
9325
a57d600f 9326 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
9327
9328fi;
9329
a57d600f 9330 eval "$ac_cv_use_odcombobox"
642bcba9 9331 if test "$no_cache" != 1; then
a57d600f 9332 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
9333 fi
9334
a57d600f 9335 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
9336 echo "$as_me:$LINENO: result: yes" >&5
9337echo "${ECHO_T}yes" >&6
9338 else
9339 echo "$as_me:$LINENO: result: no" >&5
9340echo "${ECHO_T}no" >&6
9341 fi
9342
9343
077c7880 9344 enablestring=
a848cd7e
SC
9345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9346echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
9347 no_cache=0
9348 # Check whether --enable-radiobox or --disable-radiobox was given.
9349if test "${enable_radiobox+set}" = set; then
9350 enableval="$enable_radiobox"
9351
9352 if test "$enableval" = yes; then
9353 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9354 else
9355 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
9356 fi
9357
9358else
9359
9360 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9361 if test "x$LINE" != x ; then
9362 eval "DEFAULT_$LINE"
9363 else
9364 no_cache=1
9365 fi
9366
9367 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9368
9369fi;
9370
9371 eval "$ac_cv_use_radiobox"
9372 if test "$no_cache" != 1; then
9373 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9374 fi
9375
9376 if test "$wxUSE_RADIOBOX" = yes; then
9377 echo "$as_me:$LINENO: result: yes" >&5
9378echo "${ECHO_T}yes" >&6
9379 else
9380 echo "$as_me:$LINENO: result: no" >&5
9381echo "${ECHO_T}no" >&6
9382 fi
9383
9384
077c7880 9385 enablestring=
a848cd7e
SC
9386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9387echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
9388 no_cache=0
9389 # Check whether --enable-radiobtn or --disable-radiobtn was given.
9390if test "${enable_radiobtn+set}" = set; then
9391 enableval="$enable_radiobtn"
9392
9393 if test "$enableval" = yes; then
9394 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9395 else
9396 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9397 fi
9398
9399else
9400
9401 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9402 if test "x$LINE" != x ; then
9403 eval "DEFAULT_$LINE"
9404 else
9405 no_cache=1
9406 fi
9407
9408 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9409
9410fi;
9411
9412 eval "$ac_cv_use_radiobtn"
9413 if test "$no_cache" != 1; then
9414 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9415 fi
9416
9417 if test "$wxUSE_RADIOBTN" = yes; then
9418 echo "$as_me:$LINENO: result: yes" >&5
9419echo "${ECHO_T}yes" >&6
9420 else
9421 echo "$as_me:$LINENO: result: no" >&5
9422echo "${ECHO_T}no" >&6
9423 fi
9424
9425
077c7880 9426 enablestring=
a848cd7e
SC
9427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9428echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
9429 no_cache=0
9430 # Check whether --enable-sash or --disable-sash was given.
9431if test "${enable_sash+set}" = set; then
9432 enableval="$enable_sash"
9433
9434 if test "$enableval" = yes; then
9435 ac_cv_use_sash='wxUSE_SASH=yes'
9436 else
9437 ac_cv_use_sash='wxUSE_SASH=no'
9438 fi
9439
9440else
9441
9442 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9443 if test "x$LINE" != x ; then
9444 eval "DEFAULT_$LINE"
9445 else
9446 no_cache=1
9447 fi
9448
9449 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9450
9451fi;
9452
9453 eval "$ac_cv_use_sash"
9454 if test "$no_cache" != 1; then
9455 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9456 fi
9457
9458 if test "$wxUSE_SASH" = yes; then
9459 echo "$as_me:$LINENO: result: yes" >&5
9460echo "${ECHO_T}yes" >&6
9461 else
9462 echo "$as_me:$LINENO: result: no" >&5
9463echo "${ECHO_T}no" >&6
9464 fi
9465
9466
077c7880 9467 enablestring=
a848cd7e
SC
9468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9469echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9470 no_cache=0
9471 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9472if test "${enable_scrollbar+set}" = set; then
9473 enableval="$enable_scrollbar"
9474
9475 if test "$enableval" = yes; then
9476 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9477 else
9478 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9479 fi
9480
9481else
9482
9483 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9484 if test "x$LINE" != x ; then
9485 eval "DEFAULT_$LINE"
9486 else
9487 no_cache=1
9488 fi
9489
9490 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9491
9492fi;
9493
9494 eval "$ac_cv_use_scrollbar"
9495 if test "$no_cache" != 1; then
9496 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9497 fi
9498
9499 if test "$wxUSE_SCROLLBAR" = yes; then
9500 echo "$as_me:$LINENO: result: yes" >&5
9501echo "${ECHO_T}yes" >&6
9502 else
9503 echo "$as_me:$LINENO: result: no" >&5
9504echo "${ECHO_T}no" >&6
9505 fi
9506
9507
077c7880 9508 enablestring=
a848cd7e
SC
9509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9510echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9511 no_cache=0
9512 # Check whether --enable-slider or --disable-slider was given.
9513if test "${enable_slider+set}" = set; then
9514 enableval="$enable_slider"
9515
9516 if test "$enableval" = yes; then
9517 ac_cv_use_slider='wxUSE_SLIDER=yes'
9518 else
9519 ac_cv_use_slider='wxUSE_SLIDER=no'
9520 fi
9521
9522else
9523
9524 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9525 if test "x$LINE" != x ; then
9526 eval "DEFAULT_$LINE"
9527 else
9528 no_cache=1
9529 fi
9530
9531 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9532
9533fi;
9534
9535 eval "$ac_cv_use_slider"
9536 if test "$no_cache" != 1; then
9537 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9538 fi
9539
9540 if test "$wxUSE_SLIDER" = yes; then
9541 echo "$as_me:$LINENO: result: yes" >&5
9542echo "${ECHO_T}yes" >&6
9543 else
9544 echo "$as_me:$LINENO: result: no" >&5
9545echo "${ECHO_T}no" >&6
9546 fi
9547
9548
077c7880 9549 enablestring=
a848cd7e
SC
9550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9551echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9552 no_cache=0
9553 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9554if test "${enable_spinbtn+set}" = set; then
9555 enableval="$enable_spinbtn"
9556
9557 if test "$enableval" = yes; then
9558 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9559 else
9560 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9561 fi
9562
9563else
9564
9565 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9566 if test "x$LINE" != x ; then
9567 eval "DEFAULT_$LINE"
9568 else
9569 no_cache=1
9570 fi
9571
9572 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9573
9574fi;
9575
9576 eval "$ac_cv_use_spinbtn"
9577 if test "$no_cache" != 1; then
9578 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9579 fi
9580
9581 if test "$wxUSE_SPINBTN" = yes; then
9582 echo "$as_me:$LINENO: result: yes" >&5
9583echo "${ECHO_T}yes" >&6
9584 else
9585 echo "$as_me:$LINENO: result: no" >&5
9586echo "${ECHO_T}no" >&6
9587 fi
9588
9589
077c7880 9590 enablestring=
a848cd7e
SC
9591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9592echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9593 no_cache=0
9594 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9595if test "${enable_spinctrl+set}" = set; then
9596 enableval="$enable_spinctrl"
9597
9598 if test "$enableval" = yes; then
9599 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9600 else
9601 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9602 fi
9603
9604else
9605
9606 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9607 if test "x$LINE" != x ; then
9608 eval "DEFAULT_$LINE"
9609 else
9610 no_cache=1
9611 fi
9612
9613 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9614
9615fi;
9616
9617 eval "$ac_cv_use_spinctrl"
9618 if test "$no_cache" != 1; then
9619 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9620 fi
9621
9622 if test "$wxUSE_SPINCTRL" = yes; then
9623 echo "$as_me:$LINENO: result: yes" >&5
9624echo "${ECHO_T}yes" >&6
9625 else
9626 echo "$as_me:$LINENO: result: no" >&5
9627echo "${ECHO_T}no" >&6
9628 fi
9629
9630
077c7880 9631 enablestring=
a848cd7e
SC
9632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9633echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9634 no_cache=0
9635 # Check whether --enable-splitter or --disable-splitter was given.
9636if test "${enable_splitter+set}" = set; then
9637 enableval="$enable_splitter"
9638
9639 if test "$enableval" = yes; then
9640 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9641 else
9642 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9643 fi
9644
9645else
9646
9647 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9648 if test "x$LINE" != x ; then
9649 eval "DEFAULT_$LINE"
9650 else
9651 no_cache=1
9652 fi
9653
9654 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9655
9656fi;
9657
9658 eval "$ac_cv_use_splitter"
9659 if test "$no_cache" != 1; then
9660 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9661 fi
9662
9663 if test "$wxUSE_SPLITTER" = yes; then
9664 echo "$as_me:$LINENO: result: yes" >&5
9665echo "${ECHO_T}yes" >&6
9666 else
9667 echo "$as_me:$LINENO: result: no" >&5
9668echo "${ECHO_T}no" >&6
9669 fi
9670
9671
077c7880 9672 enablestring=
a848cd7e
SC
9673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9674echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9675 no_cache=0
9676 # Check whether --enable-statbmp or --disable-statbmp was given.
9677if test "${enable_statbmp+set}" = set; then
9678 enableval="$enable_statbmp"
9679
9680 if test "$enableval" = yes; then
9681 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9682 else
9683 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9684 fi
9685
9686else
9687
9688 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9689 if test "x$LINE" != x ; then
9690 eval "DEFAULT_$LINE"
9691 else
9692 no_cache=1
9693 fi
9694
9695 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9696
9697fi;
9698
9699 eval "$ac_cv_use_statbmp"
9700 if test "$no_cache" != 1; then
9701 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9702 fi
9703
9704 if test "$wxUSE_STATBMP" = yes; then
9705 echo "$as_me:$LINENO: result: yes" >&5
9706echo "${ECHO_T}yes" >&6
9707 else
9708 echo "$as_me:$LINENO: result: no" >&5
9709echo "${ECHO_T}no" >&6
9710 fi
9711
9712
077c7880 9713 enablestring=
a848cd7e
SC
9714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9715echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9716 no_cache=0
9717 # Check whether --enable-statbox or --disable-statbox was given.
9718if test "${enable_statbox+set}" = set; then
9719 enableval="$enable_statbox"
9720
9721 if test "$enableval" = yes; then
9722 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9723 else
9724 ac_cv_use_statbox='wxUSE_STATBOX=no'
9725 fi
9726
9727else
9728
9729 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9730 if test "x$LINE" != x ; then
9731 eval "DEFAULT_$LINE"
9732 else
9733 no_cache=1
9734 fi
9735
9736 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9737
9738fi;
9739
9740 eval "$ac_cv_use_statbox"
9741 if test "$no_cache" != 1; then
9742 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9743 fi
9744
9745 if test "$wxUSE_STATBOX" = yes; then
9746 echo "$as_me:$LINENO: result: yes" >&5
9747echo "${ECHO_T}yes" >&6
9748 else
9749 echo "$as_me:$LINENO: result: no" >&5
9750echo "${ECHO_T}no" >&6
9751 fi
9752
9753
077c7880 9754 enablestring=
a848cd7e
SC
9755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9756echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9757 no_cache=0
9758 # Check whether --enable-statline or --disable-statline was given.
9759if test "${enable_statline+set}" = set; then
9760 enableval="$enable_statline"
9761
9762 if test "$enableval" = yes; then
9763 ac_cv_use_statline='wxUSE_STATLINE=yes'
9764 else
9765 ac_cv_use_statline='wxUSE_STATLINE=no'
9766 fi
9767
9768else
9769
9770 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9771 if test "x$LINE" != x ; then
9772 eval "DEFAULT_$LINE"
9773 else
9774 no_cache=1
9775 fi
9776
9777 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9778
9779fi;
9780
9781 eval "$ac_cv_use_statline"
9782 if test "$no_cache" != 1; then
9783 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9784 fi
9785
9786 if test "$wxUSE_STATLINE" = yes; then
9787 echo "$as_me:$LINENO: result: yes" >&5
9788echo "${ECHO_T}yes" >&6
9789 else
9790 echo "$as_me:$LINENO: result: no" >&5
9791echo "${ECHO_T}no" >&6
9792 fi
9793
9794
077c7880 9795 enablestring=
a848cd7e
SC
9796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9797echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9798 no_cache=0
9799 # Check whether --enable-stattext or --disable-stattext was given.
9800if test "${enable_stattext+set}" = set; then
9801 enableval="$enable_stattext"
9802
9803 if test "$enableval" = yes; then
9804 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9805 else
9806 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9807 fi
9808
9809else
9810
9811 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9812 if test "x$LINE" != x ; then
9813 eval "DEFAULT_$LINE"
9814 else
9815 no_cache=1
9816 fi
9817
9818 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9819
9820fi;
9821
9822 eval "$ac_cv_use_stattext"
9823 if test "$no_cache" != 1; then
9824 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9825 fi
9826
9827 if test "$wxUSE_STATTEXT" = yes; then
9828 echo "$as_me:$LINENO: result: yes" >&5
9829echo "${ECHO_T}yes" >&6
9830 else
9831 echo "$as_me:$LINENO: result: no" >&5
9832echo "${ECHO_T}no" >&6
9833 fi
9834
9835
077c7880 9836 enablestring=
a848cd7e
SC
9837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9838echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9839 no_cache=0
9840 # Check whether --enable-statusbar or --disable-statusbar was given.
9841if test "${enable_statusbar+set}" = set; then
9842 enableval="$enable_statusbar"
9843
9844 if test "$enableval" = yes; then
9845 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9846 else
9847 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9848 fi
9849
9850else
9851
9852 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9853 if test "x$LINE" != x ; then
9854 eval "DEFAULT_$LINE"
9855 else
9856 no_cache=1
9857 fi
9858
9859 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9860
9861fi;
9862
9863 eval "$ac_cv_use_statusbar"
9864 if test "$no_cache" != 1; then
9865 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9866 fi
9867
9868 if test "$wxUSE_STATUSBAR" = yes; then
9869 echo "$as_me:$LINENO: result: yes" >&5
9870echo "${ECHO_T}yes" >&6
9871 else
9872 echo "$as_me:$LINENO: result: no" >&5
9873echo "${ECHO_T}no" >&6
9874 fi
9875
9876
077c7880 9877 enablestring=
a848cd7e
SC
9878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9879echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9880 no_cache=0
9881 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9882if test "${enable_tabdialog+set}" = set; then
9883 enableval="$enable_tabdialog"
9884
9885 if test "$enableval" = yes; then
f10e38c4 9886 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9887 else
f10e38c4 9888 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9889 fi
9890
9891else
9892
f10e38c4 9893 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9894 if test "x$LINE" != x ; then
9895 eval "DEFAULT_$LINE"
9896 else
9897 no_cache=1
9898 fi
9899
f10e38c4 9900 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9901
9902fi;
9903
9904 eval "$ac_cv_use_tabdialog"
9905 if test "$no_cache" != 1; then
9906 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9907 fi
9908
f10e38c4 9909 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9910 echo "$as_me:$LINENO: result: yes" >&5
9911echo "${ECHO_T}yes" >&6
9912 else
9913 echo "$as_me:$LINENO: result: no" >&5
9914echo "${ECHO_T}no" >&6
9915 fi
9916
9917
077c7880 9918 enablestring=
a848cd7e
SC
9919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9920echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9921 no_cache=0
9922 # Check whether --enable-textctrl or --disable-textctrl was given.
9923if test "${enable_textctrl+set}" = set; then
9924 enableval="$enable_textctrl"
9925
9926 if test "$enableval" = yes; then
9927 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9928 else
9929 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9930 fi
9931
9932else
9933
9934 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9935 if test "x$LINE" != x ; then
9936 eval "DEFAULT_$LINE"
9937 else
9938 no_cache=1
9939 fi
9940
9941 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9942
9943fi;
9944
9945 eval "$ac_cv_use_textctrl"
9946 if test "$no_cache" != 1; then
9947 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9948 fi
9949
9950 if test "$wxUSE_TEXTCTRL" = yes; then
9951 echo "$as_me:$LINENO: result: yes" >&5
9952echo "${ECHO_T}yes" >&6
9953 else
9954 echo "$as_me:$LINENO: result: no" >&5
9955echo "${ECHO_T}no" >&6
9956 fi
9957
9958
077c7880 9959 enablestring=
a848cd7e
SC
9960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9961echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9962 no_cache=0
9963 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9964if test "${enable_togglebtn+set}" = set; then
9965 enableval="$enable_togglebtn"
9966
9967 if test "$enableval" = yes; then
9968 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9969 else
9970 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9971 fi
9972
9973else
9974
9975 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9976 if test "x$LINE" != x ; then
9977 eval "DEFAULT_$LINE"
9978 else
9979 no_cache=1
9980 fi
9981
9982 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9983
9984fi;
9985
9986 eval "$ac_cv_use_togglebtn"
9987 if test "$no_cache" != 1; then
9988 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9989 fi
9990
9991 if test "$wxUSE_TOGGLEBTN" = yes; then
9992 echo "$as_me:$LINENO: result: yes" >&5
9993echo "${ECHO_T}yes" >&6
9994 else
9995 echo "$as_me:$LINENO: result: no" >&5
9996echo "${ECHO_T}no" >&6
9997 fi
9998
9999
077c7880 10000 enablestring=
a848cd7e
SC
10001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
10002echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10003 no_cache=0
10004 # Check whether --enable-toolbar or --disable-toolbar was given.
10005if test "${enable_toolbar+set}" = set; then
10006 enableval="$enable_toolbar"
10007
10008 if test "$enableval" = yes; then
10009 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
10010 else
10011 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
10012 fi
10013
10014else
10015
10016 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
10017 if test "x$LINE" != x ; then
10018 eval "DEFAULT_$LINE"
10019 else
10020 no_cache=1
10021 fi
10022
10023 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10024
10025fi;
10026
10027 eval "$ac_cv_use_toolbar"
10028 if test "$no_cache" != 1; then
10029 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
10030 fi
10031
10032 if test "$wxUSE_TOOLBAR" = yes; then
10033 echo "$as_me:$LINENO: result: yes" >&5
10034echo "${ECHO_T}yes" >&6
10035 else
10036 echo "$as_me:$LINENO: result: no" >&5
10037echo "${ECHO_T}no" >&6
10038 fi
10039
10040
077c7880 10041 enablestring=
a848cd7e
SC
10042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
10043echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
10044 no_cache=0
10045 # Check whether --enable-tbarnative or --disable-tbarnative was given.
10046if test "${enable_tbarnative+set}" = set; then
10047 enableval="$enable_tbarnative"
10048
10049 if test "$enableval" = yes; then
10050 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
10051 else
10052 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
10053 fi
10054
10055else
10056
10057 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
10058 if test "x$LINE" != x ; then
10059 eval "DEFAULT_$LINE"
10060 else
10061 no_cache=1
10062 fi
10063
10064 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
10065
10066fi;
10067
10068 eval "$ac_cv_use_tbarnative"
10069 if test "$no_cache" != 1; then
10070 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
10071 fi
10072
10073 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
10074 echo "$as_me:$LINENO: result: yes" >&5
10075echo "${ECHO_T}yes" >&6
10076 else
10077 echo "$as_me:$LINENO: result: no" >&5
10078echo "${ECHO_T}no" >&6
10079 fi
10080
10081
077c7880 10082 enablestring=
0093c2fc
VZ
10083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
10084echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
10085 no_cache=0
10086 # Check whether --enable-treebook or --disable-treebook was given.
10087if test "${enable_treebook+set}" = set; then
10088 enableval="$enable_treebook"
10089
10090 if test "$enableval" = yes; then
10091 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
10092 else
10093 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
10094 fi
10095
10096else
10097
10098 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
10099 if test "x$LINE" != x ; then
10100 eval "DEFAULT_$LINE"
10101 else
10102 no_cache=1
10103 fi
10104
10105 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
10106
10107fi;
10108
10109 eval "$ac_cv_use_treebook"
10110 if test "$no_cache" != 1; then
10111 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
10112 fi
10113
10114 if test "$wxUSE_TREEBOOK" = yes; then
10115 echo "$as_me:$LINENO: result: yes" >&5
10116echo "${ECHO_T}yes" >&6
10117 else
10118 echo "$as_me:$LINENO: result: no" >&5
10119echo "${ECHO_T}no" >&6
10120 fi
10121
10122
077c7880 10123 enablestring=
5ec3bc43
JS
10124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
10125echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
10126 no_cache=0
10127 # Check whether --enable-toolbook or --disable-toolbook was given.
10128if test "${enable_toolbook+set}" = set; then
10129 enableval="$enable_toolbook"
10130
10131 if test "$enableval" = yes; then
10132 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
10133 else
10134 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
10135 fi
10136
10137else
10138
10139 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
10140 if test "x$LINE" != x ; then
10141 eval "DEFAULT_$LINE"
10142 else
10143 no_cache=1
10144 fi
10145
10146 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
10147
10148fi;
10149
10150 eval "$ac_cv_use_toolbook"
10151 if test "$no_cache" != 1; then
10152 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
10153 fi
10154
10155 if test "$wxUSE_TOOLBOOK" = yes; then
10156 echo "$as_me:$LINENO: result: yes" >&5
10157echo "${ECHO_T}yes" >&6
10158 else
10159 echo "$as_me:$LINENO: result: no" >&5
10160echo "${ECHO_T}no" >&6
10161 fi
10162
10163
077c7880 10164 enablestring=
a848cd7e
SC
10165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
10166echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10167 no_cache=0
10168 # Check whether --enable-treectrl or --disable-treectrl was given.
10169if test "${enable_treectrl+set}" = set; then
10170 enableval="$enable_treectrl"
10171
10172 if test "$enableval" = yes; then
10173 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
10174 else
10175 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
10176 fi
10177
10178else
10179
10180 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
10181 if test "x$LINE" != x ; then
10182 eval "DEFAULT_$LINE"
10183 else
10184 no_cache=1
10185 fi
10186
10187 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10188
10189fi;
10190
10191 eval "$ac_cv_use_treectrl"
10192 if test "$no_cache" != 1; then
10193 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
10194 fi
10195
10196 if test "$wxUSE_TREECTRL" = yes; then
10197 echo "$as_me:$LINENO: result: yes" >&5
10198echo "${ECHO_T}yes" >&6
10199 else
10200 echo "$as_me:$LINENO: result: no" >&5
10201echo "${ECHO_T}no" >&6
10202 fi
10203
10204
077c7880 10205 enablestring=
a848cd7e
SC
10206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
10207echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
10208 no_cache=0
10209 # Check whether --enable-tipwindow or --disable-tipwindow was given.
10210if test "${enable_tipwindow+set}" = set; then
10211 enableval="$enable_tipwindow"
10212
10213 if test "$enableval" = yes; then
10214 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
10215 else
10216 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
10217 fi
10218
10219else
10220
10221 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
10222 if test "x$LINE" != x ; then
10223 eval "DEFAULT_$LINE"
10224 else
10225 no_cache=1
10226 fi
10227
10228 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
10229
10230fi;
10231
10232 eval "$ac_cv_use_tipwindow"
10233 if test "$no_cache" != 1; then
10234 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
10235 fi
10236
10237 if test "$wxUSE_TIPWINDOW" = yes; then
10238 echo "$as_me:$LINENO: result: yes" >&5
10239echo "${ECHO_T}yes" >&6
10240 else
10241 echo "$as_me:$LINENO: result: no" >&5
10242echo "${ECHO_T}no" >&6
10243 fi
10244
10245
077c7880 10246 enablestring=
a848cd7e
SC
10247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
10248echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
10249 no_cache=0
10250 # Check whether --enable-popupwin or --disable-popupwin was given.
10251if test "${enable_popupwin+set}" = set; then
10252 enableval="$enable_popupwin"
10253
10254 if test "$enableval" = yes; then
10255 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
10256 else
10257 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
10258 fi
10259
10260else
10261
10262 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
10263 if test "x$LINE" != x ; then
10264 eval "DEFAULT_$LINE"
10265 else
10266 no_cache=1
10267 fi
10268
10269 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
10270
10271fi;
10272
10273 eval "$ac_cv_use_popupwin"
10274 if test "$no_cache" != 1; then
10275 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
10276 fi
10277
10278 if test "$wxUSE_POPUPWIN" = yes; then
10279 echo "$as_me:$LINENO: result: yes" >&5
10280echo "${ECHO_T}yes" >&6
10281 else
10282 echo "$as_me:$LINENO: result: no" >&5
10283echo "${ECHO_T}no" >&6
10284 fi
10285
10286
10287
10288
077c7880 10289 enablestring=
a848cd7e
SC
10290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
10291echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
10292 no_cache=0
10293 # Check whether --enable-commondlg or --disable-commondlg was given.
10294if test "${enable_commondlg+set}" = set; then
10295 enableval="$enable_commondlg"
10296
10297 if test "$enableval" = yes; then
10298 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
10299 else
10300 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
10301 fi
10302
10303else
10304
10305 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
10306 if test "x$LINE" != x ; then
10307 eval "DEFAULT_$LINE"
10308 else
10309 no_cache=1
10310 fi
10311
10312 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
10313
10314fi;
10315
10316 eval "$ac_cv_use_commondlg"
10317 if test "$no_cache" != 1; then
10318 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
10319 fi
10320
10321 if test "$wxUSE_COMMONDLGS" = yes; then
10322 echo "$as_me:$LINENO: result: yes" >&5
10323echo "${ECHO_T}yes" >&6
10324 else
10325 echo "$as_me:$LINENO: result: no" >&5
10326echo "${ECHO_T}no" >&6
10327 fi
10328
10329
077c7880 10330 enablestring=
319c5ed4
VZ
10331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
10332echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6
10333 no_cache=0
10334 # Check whether --enable-aboutdlg or --disable-aboutdlg was given.
10335if test "${enable_aboutdlg+set}" = set; then
10336 enableval="$enable_aboutdlg"
10337
10338 if test "$enableval" = yes; then
10339 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
10340 else
10341 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
10342 fi
10343
10344else
10345
10346 LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
10347 if test "x$LINE" != x ; then
10348 eval "DEFAULT_$LINE"
10349 else
10350 no_cache=1
10351 fi
10352
10353 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
10354
10355fi;
10356
10357 eval "$ac_cv_use_aboutdlg"
10358 if test "$no_cache" != 1; then
10359 echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
10360 fi
10361
10362 if test "$wxUSE_ABOUTDLG" = yes; then
10363 echo "$as_me:$LINENO: result: yes" >&5
10364echo "${ECHO_T}yes" >&6
10365 else
10366 echo "$as_me:$LINENO: result: no" >&5
10367echo "${ECHO_T}no" >&6
10368 fi
10369
10370
077c7880 10371 enablestring=
a848cd7e
SC
10372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
10373echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
10374 no_cache=0
10375 # Check whether --enable-choicedlg or --disable-choicedlg was given.
10376if test "${enable_choicedlg+set}" = set; then
10377 enableval="$enable_choicedlg"
10378
10379 if test "$enableval" = yes; then
10380 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
10381 else
10382 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10383 fi
10384
10385else
10386
10387 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10388 if test "x$LINE" != x ; then
10389 eval "DEFAULT_$LINE"
10390 else
10391 no_cache=1
10392 fi
10393
10394 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10395
10396fi;
10397
10398 eval "$ac_cv_use_choicedlg"
10399 if test "$no_cache" != 1; then
10400 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10401 fi
10402
10403 if test "$wxUSE_CHOICEDLG" = yes; then
10404 echo "$as_me:$LINENO: result: yes" >&5
10405echo "${ECHO_T}yes" >&6
10406 else
10407 echo "$as_me:$LINENO: result: no" >&5
10408echo "${ECHO_T}no" >&6
10409 fi
10410
10411
077c7880 10412 enablestring=
a848cd7e
SC
10413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10414echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
10415 no_cache=0
10416 # Check whether --enable-coldlg or --disable-coldlg was given.
10417if test "${enable_coldlg+set}" = set; then
10418 enableval="$enable_coldlg"
10419
10420 if test "$enableval" = yes; then
10421 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10422 else
10423 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
10424 fi
10425
10426else
10427
10428 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10429 if test "x$LINE" != x ; then
10430 eval "DEFAULT_$LINE"
10431 else
10432 no_cache=1
10433 fi
10434
10435 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10436
10437fi;
10438
10439 eval "$ac_cv_use_coldlg"
10440 if test "$no_cache" != 1; then
10441 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10442 fi
10443
10444 if test "$wxUSE_COLOURDLG" = yes; then
10445 echo "$as_me:$LINENO: result: yes" >&5
10446echo "${ECHO_T}yes" >&6
10447 else
10448 echo "$as_me:$LINENO: result: no" >&5
10449echo "${ECHO_T}no" >&6
10450 fi
10451
10452
077c7880 10453 enablestring=
a848cd7e
SC
10454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10455echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10456 no_cache=0
10457 # Check whether --enable-filedlg or --disable-filedlg was given.
10458if test "${enable_filedlg+set}" = set; then
10459 enableval="$enable_filedlg"
10460
10461 if test "$enableval" = yes; then
10462 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10463 else
10464 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10465 fi
10466
10467else
10468
10469 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10470 if test "x$LINE" != x ; then
10471 eval "DEFAULT_$LINE"
10472 else
10473 no_cache=1
10474 fi
10475
10476 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10477
10478fi;
10479
10480 eval "$ac_cv_use_filedlg"
10481 if test "$no_cache" != 1; then
10482 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10483 fi
10484
10485 if test "$wxUSE_FILEDLG" = yes; then
10486 echo "$as_me:$LINENO: result: yes" >&5
10487echo "${ECHO_T}yes" >&6
10488 else
10489 echo "$as_me:$LINENO: result: no" >&5
10490echo "${ECHO_T}no" >&6
10491 fi
10492
10493
077c7880 10494 enablestring=
a848cd7e
SC
10495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10496echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10497 no_cache=0
10498 # Check whether --enable-finddlg or --disable-finddlg was given.
10499if test "${enable_finddlg+set}" = set; then
10500 enableval="$enable_finddlg"
10501
10502 if test "$enableval" = yes; then
10503 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10504 else
10505 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10506 fi
10507
10508else
10509
10510 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10511 if test "x$LINE" != x ; then
10512 eval "DEFAULT_$LINE"
10513 else
10514 no_cache=1
10515 fi
10516
10517 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10518
10519fi;
10520
10521 eval "$ac_cv_use_finddlg"
10522 if test "$no_cache" != 1; then
10523 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10524 fi
10525
10526 if test "$wxUSE_FINDREPLDLG" = yes; then
10527 echo "$as_me:$LINENO: result: yes" >&5
10528echo "${ECHO_T}yes" >&6
10529 else
10530 echo "$as_me:$LINENO: result: no" >&5
10531echo "${ECHO_T}no" >&6
10532 fi
10533
10534
077c7880 10535 enablestring=
a848cd7e
SC
10536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10537echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10538 no_cache=0
10539 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10540if test "${enable_fontdlg+set}" = set; then
10541 enableval="$enable_fontdlg"
10542
10543 if test "$enableval" = yes; then
10544 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10545 else
10546 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10547 fi
10548
10549else
10550
10551 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10552 if test "x$LINE" != x ; then
10553 eval "DEFAULT_$LINE"
10554 else
10555 no_cache=1
10556 fi
10557
10558 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10559
10560fi;
10561
10562 eval "$ac_cv_use_fontdlg"
10563 if test "$no_cache" != 1; then
10564 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10565 fi
10566
10567 if test "$wxUSE_FONTDLG" = yes; then
10568 echo "$as_me:$LINENO: result: yes" >&5
10569echo "${ECHO_T}yes" >&6
10570 else
10571 echo "$as_me:$LINENO: result: no" >&5
10572echo "${ECHO_T}no" >&6
10573 fi
10574
10575
077c7880 10576 enablestring=
a848cd7e
SC
10577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10578echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10579 no_cache=0
10580 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10581if test "${enable_dirdlg+set}" = set; then
10582 enableval="$enable_dirdlg"
10583
10584 if test "$enableval" = yes; then
10585 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10586 else
10587 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10588 fi
10589
10590else
10591
10592 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10593 if test "x$LINE" != x ; then
10594 eval "DEFAULT_$LINE"
10595 else
10596 no_cache=1
10597 fi
10598
10599 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10600
10601fi;
10602
10603 eval "$ac_cv_use_dirdlg"
10604 if test "$no_cache" != 1; then
10605 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10606 fi
10607
10608 if test "$wxUSE_DIRDLG" = yes; then
10609 echo "$as_me:$LINENO: result: yes" >&5
10610echo "${ECHO_T}yes" >&6
10611 else
10612 echo "$as_me:$LINENO: result: no" >&5
10613echo "${ECHO_T}no" >&6
10614 fi
10615
10616
077c7880 10617 enablestring=
a848cd7e
SC
10618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10619echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10620 no_cache=0
10621 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10622if test "${enable_msgdlg+set}" = set; then
10623 enableval="$enable_msgdlg"
10624
10625 if test "$enableval" = yes; then
10626 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10627 else
10628 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10629 fi
10630
10631else
10632
10633 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10634 if test "x$LINE" != x ; then
10635 eval "DEFAULT_$LINE"
10636 else
10637 no_cache=1
10638 fi
10639
10640 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10641
10642fi;
10643
10644 eval "$ac_cv_use_msgdlg"
10645 if test "$no_cache" != 1; then
10646 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10647 fi
10648
10649 if test "$wxUSE_MSGDLG" = yes; then
10650 echo "$as_me:$LINENO: result: yes" >&5
10651echo "${ECHO_T}yes" >&6
10652 else
10653 echo "$as_me:$LINENO: result: no" >&5
10654echo "${ECHO_T}no" >&6
10655 fi
10656
10657
077c7880 10658 enablestring=
a848cd7e
SC
10659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10660echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10661 no_cache=0
10662 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10663if test "${enable_numberdlg+set}" = set; then
10664 enableval="$enable_numberdlg"
10665
10666 if test "$enableval" = yes; then
10667 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10668 else
10669 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10670 fi
10671
10672else
10673
10674 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10675 if test "x$LINE" != x ; then
10676 eval "DEFAULT_$LINE"
10677 else
10678 no_cache=1
10679 fi
10680
10681 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10682
10683fi;
10684
10685 eval "$ac_cv_use_numberdlg"
10686 if test "$no_cache" != 1; then
10687 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10688 fi
10689
10690 if test "$wxUSE_NUMBERDLG" = yes; then
10691 echo "$as_me:$LINENO: result: yes" >&5
10692echo "${ECHO_T}yes" >&6
10693 else
10694 echo "$as_me:$LINENO: result: no" >&5
10695echo "${ECHO_T}no" >&6
10696 fi
10697
10698
077c7880 10699 enablestring=
a848cd7e
SC
10700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10701echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10702 no_cache=0
10703 # Check whether --enable-splash or --disable-splash was given.
10704if test "${enable_splash+set}" = set; then
10705 enableval="$enable_splash"
10706
10707 if test "$enableval" = yes; then
10708 ac_cv_use_splash='wxUSE_SPLASH=yes'
10709 else
10710 ac_cv_use_splash='wxUSE_SPLASH=no'
10711 fi
10712
10713else
10714
10715 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10716 if test "x$LINE" != x ; then
10717 eval "DEFAULT_$LINE"
10718 else
10719 no_cache=1
10720 fi
10721
10722 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10723
10724fi;
10725
10726 eval "$ac_cv_use_splash"
10727 if test "$no_cache" != 1; then
10728 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10729 fi
10730
10731 if test "$wxUSE_SPLASH" = yes; then
10732 echo "$as_me:$LINENO: result: yes" >&5
10733echo "${ECHO_T}yes" >&6
10734 else
10735 echo "$as_me:$LINENO: result: no" >&5
10736echo "${ECHO_T}no" >&6
10737 fi
10738
10739
077c7880 10740 enablestring=
a848cd7e
SC
10741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10742echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10743 no_cache=0
10744 # Check whether --enable-textdlg or --disable-textdlg was given.
10745if test "${enable_textdlg+set}" = set; then
10746 enableval="$enable_textdlg"
10747
10748 if test "$enableval" = yes; then
10749 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10750 else
10751 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10752 fi
10753
10754else
10755
10756 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10757 if test "x$LINE" != x ; then
10758 eval "DEFAULT_$LINE"
10759 else
10760 no_cache=1
10761 fi
10762
10763 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10764
10765fi;
10766
10767 eval "$ac_cv_use_textdlg"
10768 if test "$no_cache" != 1; then
10769 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10770 fi
10771
10772 if test "$wxUSE_TEXTDLG" = yes; then
10773 echo "$as_me:$LINENO: result: yes" >&5
10774echo "${ECHO_T}yes" >&6
10775 else
10776 echo "$as_me:$LINENO: result: no" >&5
10777echo "${ECHO_T}no" >&6
10778 fi
10779
10780
077c7880 10781 enablestring=
a848cd7e
SC
10782 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10783echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10784 no_cache=0
10785 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10786if test "${enable_tipdlg+set}" = set; then
10787 enableval="$enable_tipdlg"
10788
10789 if test "$enableval" = yes; then
10790 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10791 else
10792 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10793 fi
10794
10795else
10796
10797 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10798 if test "x$LINE" != x ; then
10799 eval "DEFAULT_$LINE"
10800 else
10801 no_cache=1
10802 fi
10803
10804 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10805
10806fi;
10807
10808 eval "$ac_cv_use_tipdlg"
10809 if test "$no_cache" != 1; then
10810 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10811 fi
10812
10813 if test "$wxUSE_STARTUP_TIPS" = yes; then
10814 echo "$as_me:$LINENO: result: yes" >&5
10815echo "${ECHO_T}yes" >&6
10816 else
10817 echo "$as_me:$LINENO: result: no" >&5
10818echo "${ECHO_T}no" >&6
10819 fi
10820
10821
077c7880 10822 enablestring=
a848cd7e
SC
10823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10824echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10825 no_cache=0
10826 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10827if test "${enable_progressdlg+set}" = set; then
10828 enableval="$enable_progressdlg"
10829
10830 if test "$enableval" = yes; then
10831 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10832 else
10833 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10834 fi
10835
10836else
10837
10838 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10839 if test "x$LINE" != x ; then
10840 eval "DEFAULT_$LINE"
10841 else
10842 no_cache=1
10843 fi
10844
10845 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10846
10847fi;
10848
10849 eval "$ac_cv_use_progressdlg"
10850 if test "$no_cache" != 1; then
10851 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10852 fi
10853
10854 if test "$wxUSE_PROGRESSDLG" = yes; then
10855 echo "$as_me:$LINENO: result: yes" >&5
10856echo "${ECHO_T}yes" >&6
10857 else
10858 echo "$as_me:$LINENO: result: no" >&5
10859echo "${ECHO_T}no" >&6
10860 fi
10861
10862
077c7880 10863 enablestring=
a848cd7e
SC
10864 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10865echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10866 no_cache=0
10867 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10868if test "${enable_wizarddlg+set}" = set; then
10869 enableval="$enable_wizarddlg"
10870
10871 if test "$enableval" = yes; then
10872 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10873 else
10874 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10875 fi
10876
10877else
10878
10879 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10880 if test "x$LINE" != x ; then
10881 eval "DEFAULT_$LINE"
10882 else
10883 no_cache=1
10884 fi
10885
10886 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10887
10888fi;
10889
10890 eval "$ac_cv_use_wizarddlg"
10891 if test "$no_cache" != 1; then
10892 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10893 fi
10894
10895 if test "$wxUSE_WIZARDDLG" = yes; then
10896 echo "$as_me:$LINENO: result: yes" >&5
10897echo "${ECHO_T}yes" >&6
10898 else
10899 echo "$as_me:$LINENO: result: no" >&5
10900echo "${ECHO_T}no" >&6
10901 fi
10902
10903
10904
10905
077c7880 10906 enablestring=
a848cd7e
SC
10907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10908echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10909 no_cache=0
10910 # Check whether --enable-menus or --disable-menus was given.
10911if test "${enable_menus+set}" = set; then
10912 enableval="$enable_menus"
10913
10914 if test "$enableval" = yes; then
10915 ac_cv_use_menus='wxUSE_MENUS=yes'
10916 else
10917 ac_cv_use_menus='wxUSE_MENUS=no'
10918 fi
10919
10920else
10921
10922 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10923 if test "x$LINE" != x ; then
10924 eval "DEFAULT_$LINE"
10925 else
10926 no_cache=1
10927 fi
10928
10929 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10930
10931fi;
10932
10933 eval "$ac_cv_use_menus"
10934 if test "$no_cache" != 1; then
10935 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10936 fi
10937
10938 if test "$wxUSE_MENUS" = yes; then
10939 echo "$as_me:$LINENO: result: yes" >&5
10940echo "${ECHO_T}yes" >&6
10941 else
10942 echo "$as_me:$LINENO: result: no" >&5
10943echo "${ECHO_T}no" >&6
10944 fi
10945
10946
077c7880 10947 enablestring=
a848cd7e
SC
10948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10949echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10950 no_cache=0
10951 # Check whether --enable-miniframe or --disable-miniframe was given.
10952if test "${enable_miniframe+set}" = set; then
10953 enableval="$enable_miniframe"
10954
10955 if test "$enableval" = yes; then
10956 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10957 else
10958 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10959 fi
10960
10961else
10962
10963 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10964 if test "x$LINE" != x ; then
10965 eval "DEFAULT_$LINE"
10966 else
10967 no_cache=1
10968 fi
10969
10970 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10971
10972fi;
10973
10974 eval "$ac_cv_use_miniframe"
10975 if test "$no_cache" != 1; then
10976 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10977 fi
10978
10979 if test "$wxUSE_MINIFRAME" = yes; then
10980 echo "$as_me:$LINENO: result: yes" >&5
10981echo "${ECHO_T}yes" >&6
10982 else
10983 echo "$as_me:$LINENO: result: no" >&5
10984echo "${ECHO_T}no" >&6
10985 fi
10986
10987
077c7880 10988 enablestring=
a848cd7e
SC
10989 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10990echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10991 no_cache=0
10992 # Check whether --enable-tooltips or --disable-tooltips was given.
10993if test "${enable_tooltips+set}" = set; then
10994 enableval="$enable_tooltips"
10995
10996 if test "$enableval" = yes; then
10997 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10998 else
10999 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
11000 fi
11001
11002else
11003
11004 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
11005 if test "x$LINE" != x ; then
11006 eval "DEFAULT_$LINE"
11007 else
11008 no_cache=1
11009 fi
11010
11011 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
11012
11013fi;
11014
11015 eval "$ac_cv_use_tooltips"
11016 if test "$no_cache" != 1; then
11017 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
11018 fi
11019
11020 if test "$wxUSE_TOOLTIPS" = yes; then
11021 echo "$as_me:$LINENO: result: yes" >&5
11022echo "${ECHO_T}yes" >&6
11023 else
11024 echo "$as_me:$LINENO: result: no" >&5
11025echo "${ECHO_T}no" >&6
11026 fi
11027
11028
077c7880 11029 enablestring=
a848cd7e
SC
11030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
11031echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
11032 no_cache=0
11033 # Check whether --enable-splines or --disable-splines was given.
11034if test "${enable_splines+set}" = set; then
11035 enableval="$enable_splines"
11036
11037 if test "$enableval" = yes; then
11038 ac_cv_use_splines='wxUSE_SPLINES=yes'
11039 else
11040 ac_cv_use_splines='wxUSE_SPLINES=no'
11041 fi
11042
11043else
11044
11045 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
11046 if test "x$LINE" != x ; then
11047 eval "DEFAULT_$LINE"
11048 else
11049 no_cache=1
11050 fi
11051
11052 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
11053
11054fi;
11055
11056 eval "$ac_cv_use_splines"
11057 if test "$no_cache" != 1; then
11058 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
11059 fi
11060
11061 if test "$wxUSE_SPLINES" = yes; then
11062 echo "$as_me:$LINENO: result: yes" >&5
11063echo "${ECHO_T}yes" >&6
11064 else
11065 echo "$as_me:$LINENO: result: no" >&5
11066echo "${ECHO_T}no" >&6
11067 fi
11068
11069
077c7880 11070 enablestring=
fbe2ca43
SN
11071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
11072echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
11073 no_cache=0
11074 # Check whether --enable-mousewheel or --disable-mousewheel was given.
11075if test "${enable_mousewheel+set}" = set; then
11076 enableval="$enable_mousewheel"
11077
11078 if test "$enableval" = yes; then
11079 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
11080 else
11081 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
11082 fi
11083
11084else
11085
11086 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
11087 if test "x$LINE" != x ; then
11088 eval "DEFAULT_$LINE"
11089 else
11090 no_cache=1
11091 fi
11092
11093 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
11094
11095fi;
11096
11097 eval "$ac_cv_use_mousewheel"
11098 if test "$no_cache" != 1; then
11099 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
11100 fi
11101
11102 if test "$wxUSE_MOUSEWHEEL" = yes; then
11103 echo "$as_me:$LINENO: result: yes" >&5
11104echo "${ECHO_T}yes" >&6
11105 else
11106 echo "$as_me:$LINENO: result: no" >&5
11107echo "${ECHO_T}no" >&6
11108 fi
11109
11110
077c7880 11111 enablestring=
a848cd7e
SC
11112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
11113echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
11114 no_cache=0
11115 # Check whether --enable-validators or --disable-validators was given.
11116if test "${enable_validators+set}" = set; then
11117 enableval="$enable_validators"
11118
11119 if test "$enableval" = yes; then
11120 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
11121 else
11122 ac_cv_use_validators='wxUSE_VALIDATORS=no'
11123 fi
11124
11125else
11126
11127 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
11128 if test "x$LINE" != x ; then
11129 eval "DEFAULT_$LINE"
11130 else
11131 no_cache=1
11132 fi
11133
11134 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
11135
11136fi;
11137
11138 eval "$ac_cv_use_validators"
11139 if test "$no_cache" != 1; then
11140 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
11141 fi
11142
11143 if test "$wxUSE_VALIDATORS" = yes; then
11144 echo "$as_me:$LINENO: result: yes" >&5
11145echo "${ECHO_T}yes" >&6
11146 else
11147 echo "$as_me:$LINENO: result: no" >&5
11148echo "${ECHO_T}no" >&6
11149 fi
11150
11151
077c7880 11152 enablestring=
a848cd7e
SC
11153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
11154echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
11155 no_cache=0
11156 # Check whether --enable-busyinfo or --disable-busyinfo was given.
11157if test "${enable_busyinfo+set}" = set; then
11158 enableval="$enable_busyinfo"
11159
11160 if test "$enableval" = yes; then
11161 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
11162 else
11163 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
11164 fi
11165
11166else
11167
11168 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
11169 if test "x$LINE" != x ; then
11170 eval "DEFAULT_$LINE"
11171 else
11172 no_cache=1
11173 fi
11174
11175 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
11176
11177fi;
11178
11179 eval "$ac_cv_use_busyinfo"
11180 if test "$no_cache" != 1; then
11181 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
11182 fi
11183
11184 if test "$wxUSE_BUSYINFO" = yes; then
11185 echo "$as_me:$LINENO: result: yes" >&5
11186echo "${ECHO_T}yes" >&6
11187 else
11188 echo "$as_me:$LINENO: result: no" >&5
11189echo "${ECHO_T}no" >&6
11190 fi
11191
11192
077c7880 11193 enablestring=
a848cd7e
SC
11194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
11195echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
11196 no_cache=0
11197 # Check whether --enable-joystick or --disable-joystick was given.
11198if test "${enable_joystick+set}" = set; then
11199 enableval="$enable_joystick"
11200
11201 if test "$enableval" = yes; then
11202 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
11203 else
11204 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
11205 fi
11206
11207else
11208
11209 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
11210 if test "x$LINE" != x ; then
11211 eval "DEFAULT_$LINE"
11212 else
11213 no_cache=1
11214 fi
11215
11216 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
11217
11218fi;
11219
11220 eval "$ac_cv_use_joystick"
11221 if test "$no_cache" != 1; then
11222 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
11223 fi
11224
11225 if test "$wxUSE_JOYSTICK" = yes; then
11226 echo "$as_me:$LINENO: result: yes" >&5
11227echo "${ECHO_T}yes" >&6
11228 else
11229 echo "$as_me:$LINENO: result: no" >&5
11230echo "${ECHO_T}no" >&6
11231 fi
11232
11233
077c7880 11234 enablestring=
a848cd7e
SC
11235 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
11236echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
11237 no_cache=0
11238 # Check whether --enable-metafile or --disable-metafile was given.
11239if test "${enable_metafile+set}" = set; then
11240 enableval="$enable_metafile"
11241
11242 if test "$enableval" = yes; then
11243 ac_cv_use_metafile='wxUSE_METAFILE=yes'
11244 else
11245 ac_cv_use_metafile='wxUSE_METAFILE=no'
11246 fi
11247
11248else
11249
11250 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
11251 if test "x$LINE" != x ; then
11252 eval "DEFAULT_$LINE"
11253 else
11254 no_cache=1
11255 fi
11256
11257 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
11258
11259fi;
11260
11261 eval "$ac_cv_use_metafile"
11262 if test "$no_cache" != 1; then
11263 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
11264 fi
11265
11266 if test "$wxUSE_METAFILE" = yes; then
11267 echo "$as_me:$LINENO: result: yes" >&5
11268echo "${ECHO_T}yes" >&6
11269 else
11270 echo "$as_me:$LINENO: result: no" >&5
11271echo "${ECHO_T}no" >&6
11272 fi
11273
11274
077c7880 11275 enablestring=
a848cd7e
SC
11276 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
11277echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
11278 no_cache=0
11279 # Check whether --enable-dragimage or --disable-dragimage was given.
11280if test "${enable_dragimage+set}" = set; then
11281 enableval="$enable_dragimage"
11282
11283 if test "$enableval" = yes; then
11284 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
11285 else
11286 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
11287 fi
11288
11289else
11290
11291 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
11292 if test "x$LINE" != x ; then
11293 eval "DEFAULT_$LINE"
11294 else
11295 no_cache=1
11296 fi
11297
11298 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
11299
11300fi;
11301
11302 eval "$ac_cv_use_dragimage"
11303 if test "$no_cache" != 1; then
11304 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
11305 fi
11306
11307 if test "$wxUSE_DRAGIMAGE" = yes; then
11308 echo "$as_me:$LINENO: result: yes" >&5
11309echo "${ECHO_T}yes" >&6
11310 else
11311 echo "$as_me:$LINENO: result: no" >&5
11312echo "${ECHO_T}no" >&6
11313 fi
11314
11315
077c7880 11316 enablestring=
a848cd7e
SC
11317 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
11318echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
11319 no_cache=0
11320 # Check whether --enable-accessibility or --disable-accessibility was given.
11321if test "${enable_accessibility+set}" = set; then
11322 enableval="$enable_accessibility"
11323
11324 if test "$enableval" = yes; then
11325 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
11326 else
11327 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
11328 fi
11329
11330else
11331
11332 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
11333 if test "x$LINE" != x ; then
11334 eval "DEFAULT_$LINE"
11335 else
11336 no_cache=1
11337 fi
11338
11339 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
11340
11341fi;
11342
11343 eval "$ac_cv_use_accessibility"
11344 if test "$no_cache" != 1; then
11345 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
11346 fi
11347
11348 if test "$wxUSE_ACCESSIBILITY" = yes; then
11349 echo "$as_me:$LINENO: result: yes" >&5
11350echo "${ECHO_T}yes" >&6
11351 else
11352 echo "$as_me:$LINENO: result: no" >&5
11353echo "${ECHO_T}no" >&6
11354 fi
11355
11356
38b4a946
VZ
11357if test "$wxUSE_MSW" = "1"; then
11358
077c7880 11359 enablestring=
38b4a946
VZ
11360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
11361echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
11362 no_cache=0
11363 # Check whether --enable-dccache or --disable-dccache was given.
11364if test "${enable_dccache+set}" = set; then
11365 enableval="$enable_dccache"
11366
11367 if test "$enableval" = yes; then
11368 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
11369 else
11370 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
11371 fi
11372
11373else
11374
11375 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
11376 if test "x$LINE" != x ; then
11377 eval "DEFAULT_$LINE"
11378 else
11379 no_cache=1
11380 fi
11381
11382 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11383
11384fi;
11385
11386 eval "$ac_cv_use_dccache"
11387 if test "$no_cache" != 1; then
11388 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11389 fi
11390
11391 if test "$wxUSE_DC_CACHEING" = yes; then
11392 echo "$as_me:$LINENO: result: yes" >&5
11393echo "${ECHO_T}yes" >&6
11394 else
11395 echo "$as_me:$LINENO: result: no" >&5
11396echo "${ECHO_T}no" >&6
11397 fi
11398
11399fi
11400
a848cd7e
SC
11401
11402
077c7880 11403 enablestring=
a848cd7e
SC
11404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11405echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
11406 no_cache=0
11407 # Check whether --enable-palette or --disable-palette was given.
11408if test "${enable_palette+set}" = set; then
11409 enableval="$enable_palette"
11410
11411 if test "$enableval" = yes; then
11412 ac_cv_use_palette='wxUSE_PALETTE=yes'
11413 else
11414 ac_cv_use_palette='wxUSE_PALETTE=no'
11415 fi
11416
11417else
11418
11419 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
11420 if test "x$LINE" != x ; then
11421 eval "DEFAULT_$LINE"
11422 else
11423 no_cache=1
11424 fi
11425
11426 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11427
11428fi;
11429
11430 eval "$ac_cv_use_palette"
11431 if test "$no_cache" != 1; then
11432 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
11433 fi
11434
11435 if test "$wxUSE_PALETTE" = yes; then
11436 echo "$as_me:$LINENO: result: yes" >&5
11437echo "${ECHO_T}yes" >&6
11438 else
11439 echo "$as_me:$LINENO: result: no" >&5
11440echo "${ECHO_T}no" >&6
11441 fi
11442
11443
077c7880 11444 enablestring=
a848cd7e
SC
11445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11446echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11447 no_cache=0
11448 # Check whether --enable-image or --disable-image was given.
11449if test "${enable_image+set}" = set; then
11450 enableval="$enable_image"
11451
11452 if test "$enableval" = yes; then
11453 ac_cv_use_image='wxUSE_IMAGE=yes'
11454 else
11455 ac_cv_use_image='wxUSE_IMAGE=no'
11456 fi
11457
11458else
11459
11460 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11461 if test "x$LINE" != x ; then
11462 eval "DEFAULT_$LINE"
11463 else
11464 no_cache=1
11465 fi
11466
11467 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11468
11469fi;
11470
11471 eval "$ac_cv_use_image"
11472 if test "$no_cache" != 1; then
11473 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11474 fi
11475
11476 if test "$wxUSE_IMAGE" = yes; then
11477 echo "$as_me:$LINENO: result: yes" >&5
11478echo "${ECHO_T}yes" >&6
11479 else
11480 echo "$as_me:$LINENO: result: no" >&5
11481echo "${ECHO_T}no" >&6
11482 fi
11483
11484
077c7880 11485 enablestring=
a848cd7e
SC
11486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11487echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11488 no_cache=0
11489 # Check whether --enable-gif or --disable-gif was given.
11490if test "${enable_gif+set}" = set; then
11491 enableval="$enable_gif"
11492
11493 if test "$enableval" = yes; then
11494 ac_cv_use_gif='wxUSE_GIF=yes'
11495 else
11496 ac_cv_use_gif='wxUSE_GIF=no'
11497 fi
11498
11499else
11500
11501 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11502 if test "x$LINE" != x ; then
11503 eval "DEFAULT_$LINE"
11504 else
11505 no_cache=1
11506 fi
11507
11508 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11509
11510fi;
11511
11512 eval "$ac_cv_use_gif"
11513 if test "$no_cache" != 1; then
11514 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11515 fi
11516
11517 if test "$wxUSE_GIF" = yes; then
11518 echo "$as_me:$LINENO: result: yes" >&5
11519echo "${ECHO_T}yes" >&6
11520 else
11521 echo "$as_me:$LINENO: result: no" >&5
11522echo "${ECHO_T}no" >&6
11523 fi
11524
11525
077c7880 11526 enablestring=
a848cd7e
SC
11527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11528echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11529 no_cache=0
11530 # Check whether --enable-pcx or --disable-pcx was given.
11531if test "${enable_pcx+set}" = set; then
11532 enableval="$enable_pcx"
11533
11534 if test "$enableval" = yes; then
11535 ac_cv_use_pcx='wxUSE_PCX=yes'
11536 else
11537 ac_cv_use_pcx='wxUSE_PCX=no'
11538 fi
11539
11540else
11541
11542 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11543 if test "x$LINE" != x ; then
11544 eval "DEFAULT_$LINE"
11545 else
11546 no_cache=1
11547 fi
11548
11549 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11550
11551fi;
11552
11553 eval "$ac_cv_use_pcx"
11554 if test "$no_cache" != 1; then
11555 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11556 fi
11557
11558 if test "$wxUSE_PCX" = yes; then
11559 echo "$as_me:$LINENO: result: yes" >&5
11560echo "${ECHO_T}yes" >&6
11561 else
11562 echo "$as_me:$LINENO: result: no" >&5
11563echo "${ECHO_T}no" >&6
11564 fi
11565
11566
077c7880 11567 enablestring=
bb9e79c0
VZ
11568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
11569echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6
11570 no_cache=0
11571 # Check whether --enable-tga or --disable-tga was given.
11572if test "${enable_tga+set}" = set; then
11573 enableval="$enable_tga"
11574
11575 if test "$enableval" = yes; then
11576 ac_cv_use_tga='wxUSE_TGA=yes'
11577 else
11578 ac_cv_use_tga='wxUSE_TGA=no'
11579 fi
11580
11581else
11582
11583 LINE=`grep "wxUSE_TGA" ${wx_arg_cache_file}`
11584 if test "x$LINE" != x ; then
11585 eval "DEFAULT_$LINE"
11586 else
11587 no_cache=1
11588 fi
11589
11590 ac_cv_use_tga='wxUSE_TGA='$DEFAULT_wxUSE_TGA
11591
11592fi;
11593
11594 eval "$ac_cv_use_tga"
11595 if test "$no_cache" != 1; then
11596 echo $ac_cv_use_tga >> ${wx_arg_cache_file}.tmp
11597 fi
11598
11599 if test "$wxUSE_TGA" = yes; then
11600 echo "$as_me:$LINENO: result: yes" >&5
11601echo "${ECHO_T}yes" >&6
11602 else
11603 echo "$as_me:$LINENO: result: no" >&5
11604echo "${ECHO_T}no" >&6
11605 fi
11606
11607
077c7880 11608 enablestring=
a848cd7e
SC
11609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11610echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11611 no_cache=0
11612 # Check whether --enable-iff or --disable-iff was given.
11613if test "${enable_iff+set}" = set; then
11614 enableval="$enable_iff"
11615
11616 if test "$enableval" = yes; then
11617 ac_cv_use_iff='wxUSE_IFF=yes'
11618 else
11619 ac_cv_use_iff='wxUSE_IFF=no'
11620 fi
11621
11622else
11623
11624 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11625 if test "x$LINE" != x ; then
11626 eval "DEFAULT_$LINE"
11627 else
11628 no_cache=1
11629 fi
11630
11631 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11632
11633fi;
11634
11635 eval "$ac_cv_use_iff"
11636 if test "$no_cache" != 1; then
11637 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11638 fi
11639
11640 if test "$wxUSE_IFF" = yes; then
11641 echo "$as_me:$LINENO: result: yes" >&5
11642echo "${ECHO_T}yes" >&6
11643 else
11644 echo "$as_me:$LINENO: result: no" >&5
11645echo "${ECHO_T}no" >&6
11646 fi
11647
11648
077c7880 11649 enablestring=
a848cd7e
SC
11650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11651echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11652 no_cache=0
11653 # Check whether --enable-pnm or --disable-pnm was given.
11654if test "${enable_pnm+set}" = set; then
11655 enableval="$enable_pnm"
11656
11657 if test "$enableval" = yes; then
11658 ac_cv_use_pnm='wxUSE_PNM=yes'
11659 else
11660 ac_cv_use_pnm='wxUSE_PNM=no'
11661 fi
11662
11663else
11664
11665 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11666 if test "x$LINE" != x ; then
11667 eval "DEFAULT_$LINE"
11668 else
11669 no_cache=1
11670 fi
11671
11672 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11673
11674fi;
11675
11676 eval "$ac_cv_use_pnm"
11677 if test "$no_cache" != 1; then
11678 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11679 fi
11680
11681 if test "$wxUSE_PNM" = yes; then
11682 echo "$as_me:$LINENO: result: yes" >&5
11683echo "${ECHO_T}yes" >&6
11684 else
11685 echo "$as_me:$LINENO: result: no" >&5
11686echo "${ECHO_T}no" >&6
11687 fi
11688
11689
077c7880 11690 enablestring=
a848cd7e
SC
11691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11692echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11693 no_cache=0
11694 # Check whether --enable-xpm or --disable-xpm was given.
11695if test "${enable_xpm+set}" = set; then
11696 enableval="$enable_xpm"
11697
11698 if test "$enableval" = yes; then
11699 ac_cv_use_xpm='wxUSE_XPM=yes'
11700 else
11701 ac_cv_use_xpm='wxUSE_XPM=no'
11702 fi
11703
11704else
11705
11706 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11707 if test "x$LINE" != x ; then
11708 eval "DEFAULT_$LINE"
11709 else
11710 no_cache=1
11711 fi
11712
11713 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11714
11715fi;
11716
11717 eval "$ac_cv_use_xpm"
11718 if test "$no_cache" != 1; then
11719 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11720 fi
11721
11722 if test "$wxUSE_XPM" = yes; then
11723 echo "$as_me:$LINENO: result: yes" >&5
11724echo "${ECHO_T}yes" >&6
11725 else
11726 echo "$as_me:$LINENO: result: no" >&5
11727echo "${ECHO_T}no" >&6
11728 fi
11729
11730
077c7880 11731 enablestring=
a848cd7e
SC
11732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11733echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11734 no_cache=0
11735 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11736if test "${enable_ico_cur+set}" = set; then
11737 enableval="$enable_ico_cur"
11738
11739 if test "$enableval" = yes; then
11740 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11741 else
11742 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11743 fi
11744
11745else
11746
11747 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11748 if test "x$LINE" != x ; then
11749 eval "DEFAULT_$LINE"
11750 else
11751 no_cache=1
11752 fi
11753
11754 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11755
11756fi;
11757
11758 eval "$ac_cv_use_ico_cur"
11759 if test "$no_cache" != 1; then
11760 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11761 fi
11762
11763 if test "$wxUSE_ICO_CUR" = yes; then
11764 echo "$as_me:$LINENO: result: yes" >&5
11765echo "${ECHO_T}yes" >&6
11766 else
11767 echo "$as_me:$LINENO: result: no" >&5
11768echo "${ECHO_T}no" >&6
11769 fi
11770
11771
11772fi
11773
11774
11775
ceec2216
RL
11776# Check whether --with-flavour or --without-flavour was given.
11777if test "${with_flavour+set}" = set; then
11778 withval="$with_flavour"
11779 WX_FLAVOUR="$withval"
11780fi;
11781
11782
11783
077c7880 11784 enablestring=
a848cd7e
SC
11785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11786echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11787 no_cache=0
11788 # Check whether --enable-official_build or --disable-official_build was given.
11789if test "${enable_official_build+set}" = set; then
11790 enableval="$enable_official_build"
11791
11792 if test "$enableval" = yes; then
11793 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11794 else
11795 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11796 fi
11797
11798else
11799
11800 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11801 if test "x$LINE" != x ; then
11802 eval "DEFAULT_$LINE"
11803 else
11804 no_cache=1
11805 fi
11806
11807 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11808
11809fi;
11810
11811 eval "$ac_cv_use_official_build"
11812 if test "$no_cache" != 1; then
11813 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11814 fi
11815
11816 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11817 echo "$as_me:$LINENO: result: yes" >&5
11818echo "${ECHO_T}yes" >&6
11819 else
11820 echo "$as_me:$LINENO: result: no" >&5
11821echo "${ECHO_T}no" >&6
11822 fi
11823
11824# Check whether --enable-vendor or --disable-vendor was given.
11825if test "${enable_vendor+set}" = set; then
11826 enableval="$enable_vendor"
11827 VENDOR="$enableval"
11828fi;
11829if test "x$VENDOR" = "x"; then
11830 VENDOR="custom"
11831fi
11832
a848cd7e
SC
11833
11834
11835
11836 echo "saving argument cache $wx_arg_cache_file"
11837 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11838
11839
11840
11841echo "$as_me:$LINENO: checking for toolkit" >&5
11842echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11843
11844# In Wine, we need to default to MSW, not GTK or MOTIF
11845if test "$wxUSE_WINE" = "yes"; then
11846 DEFAULT_DEFAULT_wxUSE_GTK=0
11847 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11848 DEFAULT_DEFAULT_wxUSE_MSW=1
11849 wxUSE_SHARED=no
e604ac79
MW
11850 CC=${CC:-winegcc}
11851 CXX=${CXX:-wineg++}
a848cd7e
SC
11852fi
11853
f597b41c 11854
a848cd7e
SC
11855if test "$wxUSE_GUI" = "yes"; then
11856
11857 if test "$USE_BEOS" = 1; then
11858 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11859echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11860 { (exit 1); exit 1; }; }
11861 fi
11862
11863 if test "$TOOLKIT_GIVEN" = 1; then
11864 for toolkit in `echo $ALL_TOOLKITS`; do
11865 var=wxUSE_$toolkit
11866 eval "value=\$${var}"
f34ca037
MW
11867 if test "x$value" = "xno"; then
11868 eval "$var=0"
11869 elif test "x$value" != "x"; then
11870 eval "$var=1"
11871 fi
11872
11873 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11874 eval "wx${toolkit}_VERSION=$value"
11875 fi
a848cd7e
SC
11876 done
11877 else
11878 for toolkit in `echo $ALL_TOOLKITS`; do
11879 if test "$has_toolkit_in_cache" != 1; then
11880 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11881 else
11882 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11883
11884 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11885 if test "x$version" != "x"; then
11886 eval "wx${toolkit}_VERSION=$version"
11887 fi
a848cd7e
SC
11888 fi
11889 eval "wxUSE_$toolkit=\$${var}"
11890 done
11891 fi
11892
11893 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
b3c86150 11894 + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
a848cd7e
SC
11895 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11896
11897 case "${host}" in
11898 *-pc-os2_emx | *-pc-os2-emx )
11899 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11900 esac
11901
11902 case "$NUM_TOOLKITS" in
11903 1)
11904 ;;
11905 0)
11906 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11907echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11908 { (exit 1); exit 1; }; }
11909 ;;
11910 *)
11911 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11912echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11913 { (exit 1); exit 1; }; }
11914 esac
11915
f34ca037
MW
11916 # to be removed when --disable-gtk2 isn't needed
11917 if test "x$wxUSE_GTK2" = "xyes"; then
11918 wxGTK_VERSION=2
11919 elif test "x$wxUSE_GTK2" = "xno"; then
11920 wxGTK_VERSION=1
11921 fi
11922
a848cd7e
SC
11923 for toolkit in `echo $ALL_TOOLKITS`; do
11924 var=wxUSE_$toolkit
11925 eval "value=\$${var}"
11926 if test "x$value" != x; then
11927 cache_var=CACHE_$toolkit
11928 eval "cache=\$${cache_var}"
11929 if test "$cache" = 1; then
11930 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11931 eval "version=\$wx${toolkit}_VERSION"
11932 if test "x$version" != "x"; then
11933 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11934 fi
a848cd7e
SC
11935 fi
11936 if test "$value" = 1; then
11937 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11938 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11939echo "${ECHO_T}$toolkit_echo" >&6
11940 fi
11941 fi
11942 done
11943else
11944 if test "x$host_alias" != "x"; then
11945 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11946echo "${ECHO_T}base ($host_alias hosted) only" >&6
11947 else
11948 echo "$as_me:$LINENO: result: base only" >&5
11949echo "${ECHO_T}base only" >&6
11950 fi
11951fi
11952
8bf7f1a9
VZ
11953
11954cat >confcache <<\_ACEOF
11955# This file is a shell script that caches the results of configure
11956# tests run on this system so they can be shared between configure
11957# scripts and configure runs, see configure's option --config-cache.
11958# It is not useful on other systems. If it contains results you don't
11959# want to keep, you may remove or edit it.
11960#
11961# config.status only pays attention to the cache file if you give it
11962# the --recheck option to rerun configure.
11963#
11964# `ac_cv_env_foo' variables (set or unset) will be overridden when
11965# loading this file, other *unset* `ac_cv_foo' will be assigned the
11966# following values.
11967
11968_ACEOF
11969
11970# The following way of writing the cache mishandles newlines in values,
11971# but we know of no workaround that is simple, portable, and efficient.
11972# So, don't put newlines in cache variables' values.
11973# Ultrix sh set writes to stderr and can't be redirected directly,
11974# and sets the high bit in the cache file unless we assign to the vars.
11975{
11976 (set) 2>&1 |
11977 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11978 *ac_space=\ *)
11979 # `set' does not quote correctly, so add quotes (double-quote
11980 # substitution turns \\\\ into \\, and sed turns \\ into \).
11981 sed -n \
11982 "s/'/'\\\\''/g;
11983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11984 ;;
11985 *)
11986 # `set' quotes correctly as required by POSIX, so do not add quotes.
11987 sed -n \
11988 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11989 ;;
11990 esac;
11991} |
11992 sed '
11993 t clear
11994 : clear
11995 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11996 t end
11997 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11998 : end' >>confcache
11999if diff $cache_file confcache >/dev/null 2>&1; then :; else
12000 if test -w $cache_file; then
12001 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12002 cat confcache >$cache_file
12003 else
12004 echo "not updating unwritable cache $cache_file"
12005 fi
12006fi
12007rm -f confcache
12008
12009CFLAGS=${CFLAGS:=}
12010
12011
12012
12013 ac_ext=c
a848cd7e
SC
12014ac_cpp='$CPP $CPPFLAGS'
12015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12017ac_compiler_gnu=$ac_cv_c_compiler_gnu
12018if test -n "$ac_tool_prefix"; then
12019 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12020set dummy ${ac_tool_prefix}gcc; ac_word=$2
12021echo "$as_me:$LINENO: checking for $ac_word" >&5
12022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12023if test "${ac_cv_prog_CC+set}" = set; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12025else
12026 if test -n "$CC"; then
12027 ac_cv_prog_CC="$CC" # Let the user override the test.
12028else
12029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12030for as_dir in $PATH
12031do
12032 IFS=$as_save_IFS
12033 test -z "$as_dir" && as_dir=.
12034 for ac_exec_ext in '' $ac_executable_extensions; do
12035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12036 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12038 break 2
12039 fi
12040done
12041done
12042
12043fi
12044fi
12045CC=$ac_cv_prog_CC
12046if test -n "$CC"; then
12047 echo "$as_me:$LINENO: result: $CC" >&5
12048echo "${ECHO_T}$CC" >&6
12049else
12050 echo "$as_me:$LINENO: result: no" >&5
12051echo "${ECHO_T}no" >&6
12052fi
12053
12054fi
12055if test -z "$ac_cv_prog_CC"; then
12056 ac_ct_CC=$CC
12057 # Extract the first word of "gcc", so it can be a program name with args.
12058set dummy gcc; ac_word=$2
12059echo "$as_me:$LINENO: checking for $ac_word" >&5
12060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12061if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12063else
12064 if test -n "$ac_ct_CC"; then
12065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12066else
12067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068for as_dir in $PATH
12069do
12070 IFS=$as_save_IFS
12071 test -z "$as_dir" && as_dir=.
12072 for ac_exec_ext in '' $ac_executable_extensions; do
12073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12074 ac_cv_prog_ac_ct_CC="gcc"
12075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12076 break 2
12077 fi
12078done
12079done
12080
12081fi
12082fi
12083ac_ct_CC=$ac_cv_prog_ac_ct_CC
12084if test -n "$ac_ct_CC"; then
12085 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12086echo "${ECHO_T}$ac_ct_CC" >&6
12087else
12088 echo "$as_me:$LINENO: result: no" >&5
12089echo "${ECHO_T}no" >&6
12090fi
12091
12092 CC=$ac_ct_CC
12093else
12094 CC="$ac_cv_prog_CC"
12095fi
12096
12097if test -z "$CC"; then
12098 if test -n "$ac_tool_prefix"; then
12099 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12100set dummy ${ac_tool_prefix}cc; ac_word=$2
12101echo "$as_me:$LINENO: checking for $ac_word" >&5
12102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12103if test "${ac_cv_prog_CC+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12105else
12106 if test -n "$CC"; then
12107 ac_cv_prog_CC="$CC" # Let the user override the test.
12108else
12109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110for as_dir in $PATH
12111do
12112 IFS=$as_save_IFS
12113 test -z "$as_dir" && as_dir=.
12114 for ac_exec_ext in '' $ac_executable_extensions; do
12115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12116 ac_cv_prog_CC="${ac_tool_prefix}cc"
12117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12118 break 2
12119 fi
12120done
12121done
12122
12123fi
12124fi
12125CC=$ac_cv_prog_CC
12126if test -n "$CC"; then
12127 echo "$as_me:$LINENO: result: $CC" >&5
12128echo "${ECHO_T}$CC" >&6
12129else
12130 echo "$as_me:$LINENO: result: no" >&5
12131echo "${ECHO_T}no" >&6
12132fi
12133
12134fi
12135if test -z "$ac_cv_prog_CC"; then
12136 ac_ct_CC=$CC
12137 # Extract the first word of "cc", so it can be a program name with args.
12138set dummy cc; ac_word=$2
12139echo "$as_me:$LINENO: checking for $ac_word" >&5
12140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12141if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12143else
12144 if test -n "$ac_ct_CC"; then
12145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12146else
12147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148for as_dir in $PATH
12149do
12150 IFS=$as_save_IFS
12151 test -z "$as_dir" && as_dir=.
12152 for ac_exec_ext in '' $ac_executable_extensions; do
12153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12154 ac_cv_prog_ac_ct_CC="cc"
12155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12156 break 2
12157 fi
12158done
12159done
12160
12161fi
12162fi
12163ac_ct_CC=$ac_cv_prog_ac_ct_CC
12164if test -n "$ac_ct_CC"; then
12165 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12166echo "${ECHO_T}$ac_ct_CC" >&6
12167else
12168 echo "$as_me:$LINENO: result: no" >&5
12169echo "${ECHO_T}no" >&6
12170fi
12171
12172 CC=$ac_ct_CC
12173else
12174 CC="$ac_cv_prog_CC"
12175fi
12176
12177fi
12178if test -z "$CC"; then
12179 # Extract the first word of "cc", so it can be a program name with args.
12180set dummy cc; ac_word=$2
12181echo "$as_me:$LINENO: checking for $ac_word" >&5
12182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12183if test "${ac_cv_prog_CC+set}" = set; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
12185else
12186 if test -n "$CC"; then
12187 ac_cv_prog_CC="$CC" # Let the user override the test.
12188else
12189 ac_prog_rejected=no
12190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191for as_dir in $PATH
12192do
12193 IFS=$as_save_IFS
12194 test -z "$as_dir" && as_dir=.
12195 for ac_exec_ext in '' $ac_executable_extensions; do
12196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12197 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12198 ac_prog_rejected=yes
12199 continue
12200 fi
12201 ac_cv_prog_CC="cc"
12202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12203 break 2
12204 fi
12205done
12206done
12207
12208if test $ac_prog_rejected = yes; then
12209 # We found a bogon in the path, so make sure we never use it.
12210 set dummy $ac_cv_prog_CC
12211 shift
12212 if test $# != 0; then
12213 # We chose a different compiler from the bogus one.
12214 # However, it has the same basename, so the bogon will be chosen
12215 # first if we set CC to just the basename; use the full file name.
12216 shift
12217 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12218 fi
12219fi
12220fi
12221fi
12222CC=$ac_cv_prog_CC
12223if test -n "$CC"; then
12224 echo "$as_me:$LINENO: result: $CC" >&5
12225echo "${ECHO_T}$CC" >&6
12226else
12227 echo "$as_me:$LINENO: result: no" >&5
12228echo "${ECHO_T}no" >&6
12229fi
12230
12231fi
12232if test -z "$CC"; then
12233 if test -n "$ac_tool_prefix"; then
12234 for ac_prog in cl
12235 do
12236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12237set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12238echo "$as_me:$LINENO: checking for $ac_word" >&5
12239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12240if test "${ac_cv_prog_CC+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12242else
12243 if test -n "$CC"; then
12244 ac_cv_prog_CC="$CC" # Let the user override the test.
12245else
12246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247for as_dir in $PATH
12248do
12249 IFS=$as_save_IFS
12250 test -z "$as_dir" && as_dir=.
12251 for ac_exec_ext in '' $ac_executable_extensions; do
12252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12255 break 2
12256 fi
12257done
12258done
12259
12260fi
12261fi
12262CC=$ac_cv_prog_CC
12263if test -n "$CC"; then
12264 echo "$as_me:$LINENO: result: $CC" >&5
12265echo "${ECHO_T}$CC" >&6
12266else
12267 echo "$as_me:$LINENO: result: no" >&5
12268echo "${ECHO_T}no" >&6
12269fi
12270
12271 test -n "$CC" && break
12272 done
12273fi
12274if test -z "$CC"; then
12275 ac_ct_CC=$CC
12276 for ac_prog in cl
12277do
12278 # Extract the first word of "$ac_prog", so it can be a program name with args.
12279set dummy $ac_prog; ac_word=$2
12280echo "$as_me:$LINENO: checking for $ac_word" >&5
12281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12282if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12283 echo $ECHO_N "(cached) $ECHO_C" >&6
12284else
12285 if test -n "$ac_ct_CC"; then
12286 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12287else
12288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289for as_dir in $PATH
12290do
12291 IFS=$as_save_IFS
12292 test -z "$as_dir" && as_dir=.
12293 for ac_exec_ext in '' $ac_executable_extensions; do
12294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12295 ac_cv_prog_ac_ct_CC="$ac_prog"
12296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12297 break 2
12298 fi
12299done
12300done
12301
12302fi
12303fi
12304ac_ct_CC=$ac_cv_prog_ac_ct_CC
12305if test -n "$ac_ct_CC"; then
12306 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12307echo "${ECHO_T}$ac_ct_CC" >&6
12308else
12309 echo "$as_me:$LINENO: result: no" >&5
12310echo "${ECHO_T}no" >&6
12311fi
12312
12313 test -n "$ac_ct_CC" && break
12314done
12315
12316 CC=$ac_ct_CC
12317fi
12318
12319fi
12320
12321
12322test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12323See \`config.log' for more details." >&5
12324echo "$as_me: error: no acceptable C compiler found in \$PATH
12325See \`config.log' for more details." >&2;}
12326 { (exit 1); exit 1; }; }
12327
12328# Provide some information about the compiler.
12329echo "$as_me:$LINENO:" \
12330 "checking for C compiler version" >&5
12331ac_compiler=`set X $ac_compile; echo $2`
12332{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12333 (eval $ac_compiler --version </dev/null >&5) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }
12337{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12338 (eval $ac_compiler -v </dev/null >&5) 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }
12342{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12343 (eval $ac_compiler -V </dev/null >&5) 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }
12347
12348cat >conftest.$ac_ext <<_ACEOF
12349/* confdefs.h. */
12350_ACEOF
12351cat confdefs.h >>conftest.$ac_ext
12352cat >>conftest.$ac_ext <<_ACEOF
12353/* end confdefs.h. */
12354
12355int
12356main ()
12357{
12358
12359 ;
12360 return 0;
12361}
12362_ACEOF
12363ac_clean_files_save=$ac_clean_files
12364ac_clean_files="$ac_clean_files a.out a.exe b.out"
12365# Try to create an executable without -o first, disregard a.out.
12366# It will help us diagnose broken compilers, and finding out an intuition
12367# of exeext.
ac1cb8d3
VS
12368echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12369echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
12370ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12371if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12372 (eval $ac_link_default) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; then
12376 # Find the output, starting from the most likely. This scheme is
12377# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12378# resort.
12379
12380# Be careful to initialize this variable, since it used to be cached.
12381# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12382ac_cv_exeext=
12383# b.out is created by i960 compilers.
12384for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12385do
12386 test -f "$ac_file" || continue
12387 case $ac_file in
12388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 12389 ;;
a848cd7e 12390 conftest.$ac_ext )
ac1cb8d3
VS
12391 # This is the source file.
12392 ;;
a848cd7e 12393 [ab].out )
ac1cb8d3
VS
12394 # We found the default executable, but exeext='' is most
12395 # certainly right.
12396 break;;
a848cd7e 12397 *.* )
ac1cb8d3
VS
12398 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12399 # FIXME: I believe we export ac_cv_exeext for Libtool,
12400 # but it would be cool to find out if it's true. Does anybody
12401 # maintain Libtool? --akim.
12402 export ac_cv_exeext
12403 break;;
a848cd7e 12404 * )
ac1cb8d3 12405 break;;
a848cd7e
SC
12406 esac
12407done
12408else
12409 echo "$as_me: failed program was:" >&5
12410sed 's/^/| /' conftest.$ac_ext >&5
12411
12412{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12413See \`config.log' for more details." >&5
12414echo "$as_me: error: C compiler cannot create executables
12415See \`config.log' for more details." >&2;}
12416 { (exit 77); exit 77; }; }
12417fi
12418
12419ac_exeext=$ac_cv_exeext
12420echo "$as_me:$LINENO: result: $ac_file" >&5
12421echo "${ECHO_T}$ac_file" >&6
12422
12423# Check the compiler produces executables we can run. If not, either
12424# the compiler is broken, or we cross compile.
12425echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12426echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12427# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12428# If not cross compiling, check that we can run a simple program.
12429if test "$cross_compiling" != yes; then
12430 if { ac_try='./$ac_file'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; }; then
12436 cross_compiling=no
12437 else
12438 if test "$cross_compiling" = maybe; then
12439 cross_compiling=yes
12440 else
12441 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12442If you meant to cross compile, use \`--host'.
12443See \`config.log' for more details." >&5
12444echo "$as_me: error: cannot run C compiled programs.
12445If you meant to cross compile, use \`--host'.
12446See \`config.log' for more details." >&2;}
12447 { (exit 1); exit 1; }; }
12448 fi
12449 fi
12450fi
12451echo "$as_me:$LINENO: result: yes" >&5
12452echo "${ECHO_T}yes" >&6
12453
12454rm -f a.out a.exe conftest$ac_cv_exeext b.out
12455ac_clean_files=$ac_clean_files_save
12456# Check the compiler produces executables we can run. If not, either
12457# the compiler is broken, or we cross compile.
12458echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12459echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12460echo "$as_me:$LINENO: result: $cross_compiling" >&5
12461echo "${ECHO_T}$cross_compiling" >&6
12462
12463echo "$as_me:$LINENO: checking for suffix of executables" >&5
12464echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12466 (eval $ac_link) 2>&5
12467 ac_status=$?
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; then
12470 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12471# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12472# work properly (i.e., refer to `conftest.exe'), while it won't with
12473# `rm'.
12474for ac_file in conftest.exe conftest conftest.*; do
12475 test -f "$ac_file" || continue
12476 case $ac_file in
12477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12478 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12479 export ac_cv_exeext
12480 break;;
8bf7f1a9
VZ
12481 * ) break;;
12482 esac
6da4ac91 12483done
6da4ac91 12484else
8bf7f1a9
VZ
12485 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12486See \`config.log' for more details." >&5
12487echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12488See \`config.log' for more details." >&2;}
12489 { (exit 1); exit 1; }; }
6da4ac91
VZ
12490fi
12491
8bf7f1a9
VZ
12492rm -f conftest$ac_cv_exeext
12493echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12494echo "${ECHO_T}$ac_cv_exeext" >&6
12495
12496rm -f conftest.$ac_ext
12497EXEEXT=$ac_cv_exeext
12498ac_exeext=$EXEEXT
12499echo "$as_me:$LINENO: checking for suffix of object files" >&5
12500echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12501if test "${ac_cv_objext+set}" = set; then
6da4ac91
VZ
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12503else
8bf7f1a9
VZ
12504 cat >conftest.$ac_ext <<_ACEOF
12505/* confdefs.h. */
12506_ACEOF
12507cat confdefs.h >>conftest.$ac_ext
12508cat >>conftest.$ac_ext <<_ACEOF
12509/* end confdefs.h. */
6da4ac91 12510
8bf7f1a9
VZ
12511int
12512main ()
12513{
6da4ac91 12514
8bf7f1a9
VZ
12515 ;
12516 return 0;
12517}
12518_ACEOF
12519rm -f conftest.o conftest.obj
12520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12521 (eval $ac_compile) 2>&5
12522 ac_status=$?
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; then
12525 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12526 case $ac_file in
12527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12528 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12529 break;;
12530 esac
6da4ac91 12531done
8bf7f1a9
VZ
12532else
12533 echo "$as_me: failed program was:" >&5
12534sed 's/^/| /' conftest.$ac_ext >&5
6da4ac91 12535
8bf7f1a9 12536{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
6da4ac91 12537See \`config.log' for more details." >&5
8bf7f1a9 12538echo "$as_me: error: cannot compute suffix of object files: cannot compile
6da4ac91
VZ
12539See \`config.log' for more details." >&2;}
12540 { (exit 1); exit 1; }; }
8bf7f1a9 12541fi
6da4ac91 12542
8bf7f1a9
VZ
12543rm -f conftest.$ac_cv_objext conftest.$ac_ext
12544fi
12545echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12546echo "${ECHO_T}$ac_cv_objext" >&6
12547OBJEXT=$ac_cv_objext
12548ac_objext=$OBJEXT
6da4ac91
VZ
12549echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12550echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12551if test "${ac_cv_c_compiler_gnu+set}" = set; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12553else
12554 cat >conftest.$ac_ext <<_ACEOF
12555/* confdefs.h. */
12556_ACEOF
12557cat confdefs.h >>conftest.$ac_ext
12558cat >>conftest.$ac_ext <<_ACEOF
12559/* end confdefs.h. */
12560
12561int
12562main ()
12563{
12564#ifndef __GNUC__
12565 choke me
12566#endif
12567
12568 ;
12569 return 0;
12570}
12571_ACEOF
12572rm -f conftest.$ac_objext
12573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12574 (eval $ac_compile) 2>conftest.er1
12575 ac_status=$?
12576 grep -v '^ *+' conftest.er1 >conftest.err
12577 rm -f conftest.er1
12578 cat conftest.err >&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); } &&
12581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12584 ac_status=$?
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; } &&
12587 { ac_try='test -s conftest.$ac_objext'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; }; then
12593 ac_compiler_gnu=yes
12594else
12595 echo "$as_me: failed program was:" >&5
12596sed 's/^/| /' conftest.$ac_ext >&5
12597
12598ac_compiler_gnu=no
12599fi
12600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12601ac_cv_c_compiler_gnu=$ac_compiler_gnu
12602
12603fi
12604echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12605echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12606GCC=`test $ac_compiler_gnu = yes && echo yes`
12607ac_test_CFLAGS=${CFLAGS+set}
12608ac_save_CFLAGS=$CFLAGS
ddbd3cd5 12609CFLAGS="-g"
6da4ac91
VZ
12610echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12611echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12612if test "${ac_cv_prog_cc_g+set}" = set; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12614else
12615 cat >conftest.$ac_ext <<_ACEOF
12616/* confdefs.h. */
12617_ACEOF
12618cat confdefs.h >>conftest.$ac_ext
12619cat >>conftest.$ac_ext <<_ACEOF
12620/* end confdefs.h. */
12621
12622int
12623main ()
12624{
12625
12626 ;
12627 return 0;
12628}
12629_ACEOF
12630rm -f conftest.$ac_objext
12631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12632 (eval $ac_compile) 2>conftest.er1
12633 ac_status=$?
12634 grep -v '^ *+' conftest.er1 >conftest.err
12635 rm -f conftest.er1
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
12639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; } &&
12645 { ac_try='test -s conftest.$ac_objext'
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12648 ac_status=$?
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; }; then
12651 ac_cv_prog_cc_g=yes
12652else
12653 echo "$as_me: failed program was:" >&5
12654sed 's/^/| /' conftest.$ac_ext >&5
12655
12656ac_cv_prog_cc_g=no
12657fi
12658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12659fi
12660echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12661echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12662if test "$ac_test_CFLAGS" = set; then
12663 CFLAGS=$ac_save_CFLAGS
12664elif test $ac_cv_prog_cc_g = yes; then
12665 if test "$GCC" = yes; then
12666 CFLAGS="-g -O2"
12667 else
12668 CFLAGS="-g"
12669 fi
12670else
12671 if test "$GCC" = yes; then
12672 CFLAGS="-O2"
12673 else
12674 CFLAGS=
12675 fi
12676fi
12677echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12678echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12679if test "${ac_cv_prog_cc_stdc+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12681else
12682 ac_cv_prog_cc_stdc=no
12683ac_save_CC=$CC
12684cat >conftest.$ac_ext <<_ACEOF
12685/* confdefs.h. */
12686_ACEOF
12687cat confdefs.h >>conftest.$ac_ext
12688cat >>conftest.$ac_ext <<_ACEOF
12689/* end confdefs.h. */
12690#include <stdarg.h>
12691#include <stdio.h>
12692#include <sys/types.h>
12693#include <sys/stat.h>
12694/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12695struct buf { int x; };
12696FILE * (*rcsopen) (struct buf *, struct stat *, int);
12697static char *e (p, i)
12698 char **p;
12699 int i;
12700{
12701 return p[i];
12702}
12703static char *f (char * (*g) (char **, int), char **p, ...)
12704{
12705 char *s;
12706 va_list v;
12707 va_start (v,p);
12708 s = g (p, va_arg (v,int));
12709 va_end (v);
12710 return s;
12711}
12712
12713/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12714 function prototypes and stuff, but not '\xHH' hex character constants.
12715 These don't provoke an error unfortunately, instead are silently treated
12716 as 'x'. The following induces an error, until -std1 is added to get
12717 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12718 array size at least. It's necessary to write '\x00'==0 to get something
12719 that's true only with -std1. */
12720int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12721
12722int test (int i, double x);
12723struct s1 {int (*f) (int a);};
12724struct s2 {int (*f) (double a);};
12725int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12726int argc;
12727char **argv;
12728int
12729main ()
12730{
12731return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12732 ;
12733 return 0;
12734}
12735_ACEOF
12736# Don't try gcc -ansi; that turns off useful extensions and
12737# breaks some systems' header files.
12738# AIX -qlanglvl=ansi
12739# Ultrix and OSF/1 -std1
12740# HP-UX 10.20 and later -Ae
12741# HP-UX older versions -Aa -D_HPUX_SOURCE
12742# SVR4 -Xc -D__EXTENSIONS__
12743for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12744do
12745 CC="$ac_save_CC $ac_arg"
12746 rm -f conftest.$ac_objext
12747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12748 (eval $ac_compile) 2>conftest.er1
12749 ac_status=$?
12750 grep -v '^ *+' conftest.er1 >conftest.err
12751 rm -f conftest.er1
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; } &&
12761 { ac_try='test -s conftest.$ac_objext'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 ac_cv_prog_cc_stdc=$ac_arg
12768break
12769else
12770 echo "$as_me: failed program was:" >&5
12771sed 's/^/| /' conftest.$ac_ext >&5
12772
12773fi
12774rm -f conftest.err conftest.$ac_objext
12775done
12776rm -f conftest.$ac_ext conftest.$ac_objext
12777CC=$ac_save_CC
12778
12779fi
12780
12781case "x$ac_cv_prog_cc_stdc" in
12782 x|xno)
12783 echo "$as_me:$LINENO: result: none needed" >&5
12784echo "${ECHO_T}none needed" >&6 ;;
12785 *)
12786 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12787echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12788 CC="$CC $ac_cv_prog_cc_stdc" ;;
12789esac
12790
12791# Some people use a C++ compiler to compile C. Since we use `exit',
12792# in C++ we need to declare it. In case someone uses the same compiler
12793# for both compiling C and C++ we need to have the C++ compiler decide
12794# the declaration of exit, since it's the most demanding environment.
12795cat >conftest.$ac_ext <<_ACEOF
12796#ifndef __cplusplus
12797 choke me
12798#endif
12799_ACEOF
12800rm -f conftest.$ac_objext
12801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12802 (eval $ac_compile) 2>conftest.er1
12803 ac_status=$?
12804 grep -v '^ *+' conftest.er1 >conftest.err
12805 rm -f conftest.er1
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
12809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; } &&
12815 { ac_try='test -s conftest.$ac_objext'
12816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817 (eval $ac_try) 2>&5
12818 ac_status=$?
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; }; then
12821 for ac_declaration in \
12822 '' \
12823 'extern "C" void std::exit (int) throw (); using std::exit;' \
12824 'extern "C" void std::exit (int); using std::exit;' \
12825 'extern "C" void exit (int) throw ();' \
12826 'extern "C" void exit (int);' \
12827 'void exit (int);'
12828do
12829 cat >conftest.$ac_ext <<_ACEOF
12830/* confdefs.h. */
12831_ACEOF
12832cat confdefs.h >>conftest.$ac_ext
12833cat >>conftest.$ac_ext <<_ACEOF
12834/* end confdefs.h. */
12835$ac_declaration
12836#include <stdlib.h>
12837int
12838main ()
12839{
12840exit (42);
12841 ;
12842 return 0;
12843}
12844_ACEOF
12845rm -f conftest.$ac_objext
12846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12847 (eval $ac_compile) 2>conftest.er1
12848 ac_status=$?
12849 grep -v '^ *+' conftest.er1 >conftest.err
12850 rm -f conftest.er1
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } &&
12854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; } &&
12860 { ac_try='test -s conftest.$ac_objext'
12861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 :
12867else
12868 echo "$as_me: failed program was:" >&5
12869sed 's/^/| /' conftest.$ac_ext >&5
12870
12871continue
12872fi
12873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12874 cat >conftest.$ac_ext <<_ACEOF
12875/* confdefs.h. */
12876_ACEOF
12877cat confdefs.h >>conftest.$ac_ext
12878cat >>conftest.$ac_ext <<_ACEOF
12879/* end confdefs.h. */
12880$ac_declaration
12881int
12882main ()
12883{
12884exit (42);
12885 ;
12886 return 0;
12887}
12888_ACEOF
12889rm -f conftest.$ac_objext
12890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12891 (eval $ac_compile) 2>conftest.er1
12892 ac_status=$?
12893 grep -v '^ *+' conftest.er1 >conftest.err
12894 rm -f conftest.er1
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900 (eval $ac_try) 2>&5
12901 ac_status=$?
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; } &&
12904 { ac_try='test -s conftest.$ac_objext'
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12907 ac_status=$?
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; }; then
12910 break
12911else
12912 echo "$as_me: failed program was:" >&5
12913sed 's/^/| /' conftest.$ac_ext >&5
12914
12915fi
12916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12917done
12918rm -f conftest*
12919if test -n "$ac_declaration"; then
12920 echo '#ifdef __cplusplus' >>confdefs.h
12921 echo $ac_declaration >>confdefs.h
12922 echo '#endif' >>confdefs.h
12923fi
12924
12925else
12926 echo "$as_me: failed program was:" >&5
12927sed 's/^/| /' conftest.$ac_ext >&5
12928
12929fi
12930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12931ac_ext=c
12932ac_cpp='$CPP $CPPFLAGS'
12933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12935ac_compiler_gnu=$ac_cv_c_compiler_gnu
12936
12937
ab0ad5f1
VZ
12938
12939 ac_ext=c
12940ac_cpp='$CPP $CPPFLAGS'
12941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943ac_compiler_gnu=$ac_cv_c_compiler_gnu
12944
12945 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12946echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12947if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12949else
12950 cat >conftest.$ac_ext <<_ACEOF
12951/* confdefs.h. */
12952_ACEOF
12953cat confdefs.h >>conftest.$ac_ext
12954cat >>conftest.$ac_ext <<_ACEOF
12955/* end confdefs.h. */
12956
12957int
12958main ()
12959{
12960
12961 #ifndef __INTEL_COMPILER
12962 choke me
12963 #endif
12964
12965 ;
12966 return 0;
12967}
12968_ACEOF
12969rm -f conftest.$ac_objext
12970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12971 (eval $ac_compile) 2>conftest.er1
12972 ac_status=$?
12973 grep -v '^ *+' conftest.er1 >conftest.err
12974 rm -f conftest.er1
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
bb9e79c0 12978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12981 ac_status=$?
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; } &&
12984 { ac_try='test -s conftest.$ac_objext'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; }; then
12990 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12991else
12992 echo "$as_me: failed program was:" >&5
12993sed 's/^/| /' conftest.$ac_ext >&5
12994
12995bakefile_cv_c_compiler___INTEL_COMPILER=no
12996
12997fi
12998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12999
13000
13001fi
13002echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
13003echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
13004 ac_ext=c
13005ac_cpp='$CPP $CPPFLAGS'
13006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13008ac_compiler_gnu=$ac_cv_c_compiler_gnu
13009
13010 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
13011 :; INTELCC=yes
13012 else
13013 :;
13014 fi
13015
13016
13017 if test "x$GCC" != "xyes"; then
3006edc0
VZ
13018 if test "xCC" = "xC"; then
13019 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 13020echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13021if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
13022 echo $ECHO_N "(cached) $ECHO_C" >&6
13023else
13024 cat >conftest.$ac_ext <<_ACEOF
13025/* confdefs.h. */
13026_ACEOF
13027cat confdefs.h >>conftest.$ac_ext
13028cat >>conftest.$ac_ext <<_ACEOF
13029/* end confdefs.h. */
13030
13031int
13032main ()
13033{
13034
13035 ;
13036 return 0;
13037}
13038_ACEOF
13039rm -f conftest.$ac_objext conftest.$ac_ext.o
13040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13041 (eval $ac_compile) 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; then
13045 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13046 case $ac_file in
13047 conftest.$ac_ext.o)
0093c2fc 13048 bakefile_cv_c_exto="-ext o"
480ccd21
DE
13049 ;;
13050 *)
13051 ;;
13052 esac
13053done
13054else
13055 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13056See \`config.log' for more details." >&5
13057echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13058See \`config.log' for more details." >&2;}
13059 { (exit 1); exit 1; }; }
13060
13061fi
13062
13063rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13064
13065fi
0093c2fc
VZ
13066echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
13067echo "${ECHO_T}$bakefile_cv_c_exto" >&6
13068if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 13069 if test "c" = "c"; then
0093c2fc 13070 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
13071 fi
13072 if test "c" = "cxx"; then
0093c2fc 13073 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
13074 fi
13075fi
13076
0093c2fc 13077 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13078 unset ac_cv_prog_cc_g
13079 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 13080ac_save_CFLAGS=$CFLAGS
ddbd3cd5 13081CFLAGS="-g"
480ccd21
DE
13082echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13083echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13084if test "${ac_cv_prog_cc_g+set}" = set; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13086else
13087 cat >conftest.$ac_ext <<_ACEOF
13088/* confdefs.h. */
13089_ACEOF
13090cat confdefs.h >>conftest.$ac_ext
13091cat >>conftest.$ac_ext <<_ACEOF
13092/* end confdefs.h. */
13093
13094int
13095main ()
13096{
13097
13098 ;
13099 return 0;
13100}
13101_ACEOF
13102rm -f conftest.$ac_objext
13103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13104 (eval $ac_compile) 2>conftest.er1
13105 ac_status=$?
13106 grep -v '^ *+' conftest.er1 >conftest.err
13107 rm -f conftest.er1
13108 cat conftest.err >&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } &&
bb9e79c0 13111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13114 ac_status=$?
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; } &&
13117 { ac_try='test -s conftest.$ac_objext'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13120 ac_status=$?
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 ac_cv_prog_cc_g=yes
13124else
13125 echo "$as_me: failed program was:" >&5
13126sed 's/^/| /' conftest.$ac_ext >&5
13127
13128ac_cv_prog_cc_g=no
13129fi
13130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13131fi
13132echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13133echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13134if test "$ac_test_CFLAGS" = set; then
13135 CFLAGS=$ac_save_CFLAGS
13136elif test $ac_cv_prog_cc_g = yes; then
13137 if test "$GCC" = yes; then
13138 CFLAGS="-g -O2"
13139 else
13140 CFLAGS="-g"
13141 fi
13142else
13143 if test "$GCC" = yes; then
13144 CFLAGS="-O2"
13145 else
13146 CFLAGS=
13147 fi
13148fi
3006edc0 13149 fi
ab0ad5f1 13150 fi
3006edc0
VZ
13151
13152 case `uname -s` in
13153 AIX*)
13154 ac_ext=c
13155ac_cpp='$CPP $CPPFLAGS'
13156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13158ac_compiler_gnu=$ac_cv_c_compiler_gnu
13159
13160echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13161echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13162if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13164else
13165 cat >conftest.$ac_ext <<_ACEOF
13166/* confdefs.h. */
13167_ACEOF
13168cat confdefs.h >>conftest.$ac_ext
13169cat >>conftest.$ac_ext <<_ACEOF
13170/* end confdefs.h. */
13171
13172int
13173main ()
13174{
13175#ifndef __xlC__
13176 choke me
13177#endif
13178
13179 ;
13180 return 0;
13181}
13182_ACEOF
13183rm -f conftest.$ac_objext
13184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13185 (eval $ac_compile) 2>conftest.er1
13186 ac_status=$?
13187 grep -v '^ *+' conftest.er1 >conftest.err
13188 rm -f conftest.er1
13189 cat conftest.err >&5
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); } &&
bb9e79c0 13192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; } &&
13198 { ac_try='test -s conftest.$ac_objext'
13199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13200 (eval $ac_try) 2>&5
13201 ac_status=$?
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; }; then
0093c2fc 13204 bakefile_compiler_xlc=yes
3006edc0
VZ
13205else
13206 echo "$as_me: failed program was:" >&5
13207sed 's/^/| /' conftest.$ac_ext >&5
13208
0093c2fc 13209bakefile_compiler_xlc=no
3006edc0
VZ
13210fi
13211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13212 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13213
13214fi
0093c2fc
VZ
13215echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13216echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 13217
0093c2fc 13218XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
13219ac_ext=c
13220ac_cpp='$CPP $CPPFLAGS'
13221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13223ac_compiler_gnu=$ac_cv_c_compiler_gnu
13224
13225
13226 ;;
13227
13228 Darwin)
13229 ac_ext=c
95986553
DE
13230ac_cpp='$CPP $CPPFLAGS'
13231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13233ac_compiler_gnu=$ac_cv_c_compiler_gnu
13234
13235echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
13236echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
13237if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13239else
13240 cat >conftest.$ac_ext <<_ACEOF
13241/* confdefs.h. */
13242_ACEOF
13243cat confdefs.h >>conftest.$ac_ext
13244cat >>conftest.$ac_ext <<_ACEOF
13245/* end confdefs.h. */
13246
13247int
13248main ()
13249{
13250#ifndef __MWERKS__
13251 choke me
13252#endif
13253
13254 ;
13255 return 0;
13256}
13257_ACEOF
13258rm -f conftest.$ac_objext
13259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13260 (eval $ac_compile) 2>conftest.er1
13261 ac_status=$?
13262 grep -v '^ *+' conftest.er1 >conftest.err
13263 rm -f conftest.er1
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } &&
bb9e79c0 13267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; } &&
13273 { ac_try='test -s conftest.$ac_objext'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 bakefile_compiler_mwerks=yes
13280else
13281 echo "$as_me: failed program was:" >&5
13282sed 's/^/| /' conftest.$ac_ext >&5
13283
13284bakefile_compiler_mwerks=no
13285fi
13286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13287 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
13288
13289fi
13290echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
13291echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
13292
0e6fa1d9 13293MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
13294ac_ext=c
13295ac_cpp='$CPP $CPPFLAGS'
13296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13298ac_compiler_gnu=$ac_cv_c_compiler_gnu
13299
13300
3006edc0 13301 ac_ext=c
9273ffba
DE
13302ac_cpp='$CPP $CPPFLAGS'
13303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13305ac_compiler_gnu=$ac_cv_c_compiler_gnu
13306
13307echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13308echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13309if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13311else
13312 cat >conftest.$ac_ext <<_ACEOF
13313/* confdefs.h. */
13314_ACEOF
13315cat confdefs.h >>conftest.$ac_ext
13316cat >>conftest.$ac_ext <<_ACEOF
13317/* end confdefs.h. */
13318
13319int
13320main ()
13321{
13322#ifndef __xlC__
13323 choke me
13324#endif
13325
13326 ;
13327 return 0;
13328}
13329_ACEOF
13330rm -f conftest.$ac_objext
13331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13332 (eval $ac_compile) 2>conftest.er1
13333 ac_status=$?
13334 grep -v '^ *+' conftest.er1 >conftest.err
13335 rm -f conftest.er1
13336 cat conftest.err >&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } &&
bb9e79c0 13339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; } &&
13345 { ac_try='test -s conftest.$ac_objext'
13346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; }; then
0093c2fc 13351 bakefile_compiler_xlc=yes
9273ffba
DE
13352else
13353 echo "$as_me: failed program was:" >&5
13354sed 's/^/| /' conftest.$ac_ext >&5
13355
0093c2fc 13356bakefile_compiler_xlc=no
9273ffba
DE
13357fi
13358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13359 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13360
13361fi
0093c2fc
VZ
13362echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13363echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 13364
0093c2fc 13365XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
13366ac_ext=c
13367ac_cpp='$CPP $CPPFLAGS'
13368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13370ac_compiler_gnu=$ac_cv_c_compiler_gnu
13371
13372
3006edc0
VZ
13373 ;;
13374
13375 IRIX*)
a848cd7e 13376
6dcfc289 13377
0ad5d837
VZ
13378 ac_ext=c
13379ac_cpp='$CPP $CPPFLAGS'
13380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13382ac_compiler_gnu=$ac_cv_c_compiler_gnu
13383
13384 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13385echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
13386if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13388else
13389 cat >conftest.$ac_ext <<_ACEOF
13390/* confdefs.h. */
13391_ACEOF
13392cat confdefs.h >>conftest.$ac_ext
13393cat >>conftest.$ac_ext <<_ACEOF
13394/* end confdefs.h. */
13395
13396int
13397main ()
13398{
13399
13400 #ifndef _SGI_COMPILER_VERSION
13401 choke me
13402 #endif
13403
13404 ;
13405 return 0;
13406}
13407_ACEOF
13408rm -f conftest.$ac_objext
13409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13410 (eval $ac_compile) 2>conftest.er1
13411 ac_status=$?
13412 grep -v '^ *+' conftest.er1 >conftest.err
13413 rm -f conftest.er1
13414 cat conftest.err >&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } &&
bb9e79c0 13417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
13418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419 (eval $ac_try) 2>&5
13420 ac_status=$?
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; } &&
13423 { ac_try='test -s conftest.$ac_objext'
13424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425 (eval $ac_try) 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; }; then
13429 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13430else
13431 echo "$as_me: failed program was:" >&5
13432sed 's/^/| /' conftest.$ac_ext >&5
13433
13434bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13435
13436fi
13437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13438
13439
13440fi
13441echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13442echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13443 ac_ext=c
13444ac_cpp='$CPP $CPPFLAGS'
13445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13447ac_compiler_gnu=$ac_cv_c_compiler_gnu
13448
13449 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13450 :; SGICC=yes
13451 else
13452 :;
13453 fi
13454
13455
3006edc0
VZ
13456 ;;
13457
0093c2fc 13458 HP-UX*)
3006edc0
VZ
13459
13460
13461 ac_ext=c
13462ac_cpp='$CPP $CPPFLAGS'
13463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13465ac_compiler_gnu=$ac_cv_c_compiler_gnu
13466
0093c2fc
VZ
13467 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13468echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13469if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13471else
13472 cat >conftest.$ac_ext <<_ACEOF
13473/* confdefs.h. */
13474_ACEOF
13475cat confdefs.h >>conftest.$ac_ext
13476cat >>conftest.$ac_ext <<_ACEOF
13477/* end confdefs.h. */
13478
13479int
13480main ()
13481{
13482
0093c2fc 13483 #ifndef __HP_cc
3006edc0
VZ
13484 choke me
13485 #endif
13486
13487 ;
13488 return 0;
13489}
13490_ACEOF
13491rm -f conftest.$ac_objext
13492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13493 (eval $ac_compile) 2>conftest.er1
13494 ac_status=$?
13495 grep -v '^ *+' conftest.er1 >conftest.err
13496 rm -f conftest.er1
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
bb9e79c0 13500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13502 (eval $ac_try) 2>&5
13503 ac_status=$?
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); }; } &&
13506 { ac_try='test -s conftest.$ac_objext'
13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508 (eval $ac_try) 2>&5
13509 ac_status=$?
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; }; then
0093c2fc 13512 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13513else
13514 echo "$as_me: failed program was:" >&5
13515sed 's/^/| /' conftest.$ac_ext >&5
13516
0093c2fc 13517bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13518
13519fi
13520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13521
13522
13523fi
0093c2fc
VZ
13524echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13525echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13526 ac_ext=c
13527ac_cpp='$CPP $CPPFLAGS'
13528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13530ac_compiler_gnu=$ac_cv_c_compiler_gnu
13531
0093c2fc
VZ
13532 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13533 :; HPCC=yes
a1aa0349
VZ
13534 else
13535 :;
13536 fi
13537
13538
13539 ;;
13540
0093c2fc 13541 OSF1)
a1aa0349
VZ
13542
13543
13544 ac_ext=c
13545ac_cpp='$CPP $CPPFLAGS'
13546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13548ac_compiler_gnu=$ac_cv_c_compiler_gnu
13549
0093c2fc
VZ
13550 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13551echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13552if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13554else
13555 cat >conftest.$ac_ext <<_ACEOF
13556/* confdefs.h. */
13557_ACEOF
13558cat confdefs.h >>conftest.$ac_ext
13559cat >>conftest.$ac_ext <<_ACEOF
13560/* end confdefs.h. */
13561
13562int
13563main ()
13564{
13565
0093c2fc 13566 #ifndef __DECC
a1aa0349
VZ
13567 choke me
13568 #endif
13569
13570 ;
13571 return 0;
13572}
13573_ACEOF
13574rm -f conftest.$ac_objext
13575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13576 (eval $ac_compile) 2>conftest.er1
13577 ac_status=$?
13578 grep -v '^ *+' conftest.er1 >conftest.err
13579 rm -f conftest.er1
13580 cat conftest.err >&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } &&
bb9e79c0 13583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13586 ac_status=$?
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; } &&
13589 { ac_try='test -s conftest.$ac_objext'
13590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591 (eval $ac_try) 2>&5
13592 ac_status=$?
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
0093c2fc 13595 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13596else
13597 echo "$as_me: failed program was:" >&5
13598sed 's/^/| /' conftest.$ac_ext >&5
13599
0093c2fc 13600bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13601
13602fi
13603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13604
13605
13606fi
0093c2fc
VZ
13607echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13608echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13609 ac_ext=c
13610ac_cpp='$CPP $CPPFLAGS'
13611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13613ac_compiler_gnu=$ac_cv_c_compiler_gnu
13614
0093c2fc
VZ
13615 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13616 :; COMPAQCC=yes
13617 else
13618 :;
13619 fi
13620
13621
13622 ;;
13623
13624 SunOS)
13625
13626
13627 ac_ext=c
13628ac_cpp='$CPP $CPPFLAGS'
13629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13631ac_compiler_gnu=$ac_cv_c_compiler_gnu
13632
13633 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13634echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13635if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13637else
13638 cat >conftest.$ac_ext <<_ACEOF
13639/* confdefs.h. */
13640_ACEOF
13641cat confdefs.h >>conftest.$ac_ext
13642cat >>conftest.$ac_ext <<_ACEOF
13643/* end confdefs.h. */
13644
13645int
13646main ()
13647{
13648
13649 #ifndef __SUNPRO_C
13650 choke me
13651 #endif
13652
13653 ;
13654 return 0;
13655}
13656_ACEOF
13657rm -f conftest.$ac_objext
13658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13659 (eval $ac_compile) 2>conftest.er1
13660 ac_status=$?
13661 grep -v '^ *+' conftest.er1 >conftest.err
13662 rm -f conftest.er1
13663 cat conftest.err >&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } &&
bb9e79c0 13666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5
13669 ac_status=$?
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; } &&
13672 { ac_try='test -s conftest.$ac_objext'
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; }; then
13678 bakefile_cv_c_compiler___SUNPRO_C=yes
13679else
13680 echo "$as_me: failed program was:" >&5
13681sed 's/^/| /' conftest.$ac_ext >&5
13682
13683bakefile_cv_c_compiler___SUNPRO_C=no
13684
13685fi
13686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13687
13688
13689fi
13690echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13691echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13692 ac_ext=c
13693ac_cpp='$CPP $CPPFLAGS'
13694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13696ac_compiler_gnu=$ac_cv_c_compiler_gnu
13697
13698 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13699 :; SUNCC=yes
3006edc0
VZ
13700 else
13701 :;
13702 fi
13703
13704
13705 ;;
13706 esac
ab0ad5f1 13707 fi
a9e5b1f0
MW
13708
13709
3006edc0 13710
a848cd7e
SC
13711ac_ext=c
13712ac_cpp='$CPP $CPPFLAGS'
13713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13715ac_compiler_gnu=$ac_cv_c_compiler_gnu
13716echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13717echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13718# On Suns, sometimes $CPP names a directory.
13719if test -n "$CPP" && test -d "$CPP"; then
13720 CPP=
13721fi
13722if test -z "$CPP"; then
13723 if test "${ac_cv_prog_CPP+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13725else
13726 # Double quotes because CPP needs to be expanded
13727 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13728 do
13729 ac_preproc_ok=false
13730for ac_c_preproc_warn_flag in '' yes
13731do
13732 # Use a header file that comes with gcc, so configuring glibc
13733 # with a fresh cross-compiler works.
13734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13735 # <limits.h> exists even on freestanding compilers.
13736 # On the NeXT, cc -E runs the code through the compiler's parser,
13737 # not just through cpp. "Syntax error" is here to catch this case.
13738 cat >conftest.$ac_ext <<_ACEOF
13739/* confdefs.h. */
13740_ACEOF
13741cat confdefs.h >>conftest.$ac_ext
13742cat >>conftest.$ac_ext <<_ACEOF
13743/* end confdefs.h. */
13744#ifdef __STDC__
13745# include <limits.h>
13746#else
13747# include <assert.h>
13748#endif
ac1cb8d3 13749 Syntax error
a848cd7e
SC
13750_ACEOF
13751if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13753 ac_status=$?
13754 grep -v '^ *+' conftest.er1 >conftest.err
13755 rm -f conftest.er1
13756 cat conftest.err >&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } >/dev/null; then
13759 if test -s conftest.err; then
13760 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13762 else
13763 ac_cpp_err=
13764 fi
13765else
13766 ac_cpp_err=yes
13767fi
13768if test -z "$ac_cpp_err"; then
13769 :
13770else
13771 echo "$as_me: failed program was:" >&5
13772sed 's/^/| /' conftest.$ac_ext >&5
13773
13774 # Broken: fails on valid input.
13775continue
13776fi
13777rm -f conftest.err conftest.$ac_ext
13778
13779 # OK, works on sane cases. Now check whether non-existent headers
13780 # can be detected and how.
13781 cat >conftest.$ac_ext <<_ACEOF
13782/* confdefs.h. */
13783_ACEOF
13784cat confdefs.h >>conftest.$ac_ext
13785cat >>conftest.$ac_ext <<_ACEOF
13786/* end confdefs.h. */
13787#include <ac_nonexistent.h>
13788_ACEOF
13789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13791 ac_status=$?
13792 grep -v '^ *+' conftest.er1 >conftest.err
13793 rm -f conftest.er1
13794 cat conftest.err >&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); } >/dev/null; then
13797 if test -s conftest.err; then
13798 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13800 else
13801 ac_cpp_err=
13802 fi
13803else
13804 ac_cpp_err=yes
13805fi
13806if test -z "$ac_cpp_err"; then
13807 # Broken: success on invalid input.
13808continue
13809else
13810 echo "$as_me: failed program was:" >&5
13811sed 's/^/| /' conftest.$ac_ext >&5
13812
13813 # Passes both tests.
13814ac_preproc_ok=:
13815break
13816fi
13817rm -f conftest.err conftest.$ac_ext
13818
13819done
13820# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13821rm -f conftest.err conftest.$ac_ext
13822if $ac_preproc_ok; then
13823 break
13824fi
13825
13826 done
13827 ac_cv_prog_CPP=$CPP
13828
13829fi
13830 CPP=$ac_cv_prog_CPP
13831else
13832 ac_cv_prog_CPP=$CPP
13833fi
13834echo "$as_me:$LINENO: result: $CPP" >&5
13835echo "${ECHO_T}$CPP" >&6
13836ac_preproc_ok=false
13837for ac_c_preproc_warn_flag in '' yes
13838do
13839 # Use a header file that comes with gcc, so configuring glibc
13840 # with a fresh cross-compiler works.
13841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13842 # <limits.h> exists even on freestanding compilers.
13843 # On the NeXT, cc -E runs the code through the compiler's parser,
13844 # not just through cpp. "Syntax error" is here to catch this case.
13845 cat >conftest.$ac_ext <<_ACEOF
13846/* confdefs.h. */
13847_ACEOF
13848cat confdefs.h >>conftest.$ac_ext
13849cat >>conftest.$ac_ext <<_ACEOF
13850/* end confdefs.h. */
13851#ifdef __STDC__
13852# include <limits.h>
13853#else
13854# include <assert.h>
13855#endif
ac1cb8d3 13856 Syntax error
a848cd7e
SC
13857_ACEOF
13858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13860 ac_status=$?
13861 grep -v '^ *+' conftest.er1 >conftest.err
13862 rm -f conftest.er1
13863 cat conftest.err >&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } >/dev/null; then
13866 if test -s conftest.err; then
13867 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13869 else
13870 ac_cpp_err=
13871 fi
13872else
13873 ac_cpp_err=yes
13874fi
13875if test -z "$ac_cpp_err"; then
13876 :
13877else
13878 echo "$as_me: failed program was:" >&5
13879sed 's/^/| /' conftest.$ac_ext >&5
13880
13881 # Broken: fails on valid input.
13882continue
13883fi
13884rm -f conftest.err conftest.$ac_ext
13885
13886 # OK, works on sane cases. Now check whether non-existent headers
13887 # can be detected and how.
13888 cat >conftest.$ac_ext <<_ACEOF
13889/* confdefs.h. */
13890_ACEOF
13891cat confdefs.h >>conftest.$ac_ext
13892cat >>conftest.$ac_ext <<_ACEOF
13893/* end confdefs.h. */
13894#include <ac_nonexistent.h>
13895_ACEOF
13896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13898 ac_status=$?
13899 grep -v '^ *+' conftest.er1 >conftest.err
13900 rm -f conftest.er1
13901 cat conftest.err >&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } >/dev/null; then
13904 if test -s conftest.err; then
13905 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13907 else
13908 ac_cpp_err=
13909 fi
13910else
13911 ac_cpp_err=yes
13912fi
13913if test -z "$ac_cpp_err"; then
13914 # Broken: success on invalid input.
13915continue
13916else
13917 echo "$as_me: failed program was:" >&5
13918sed 's/^/| /' conftest.$ac_ext >&5
13919
13920 # Passes both tests.
13921ac_preproc_ok=:
13922break
13923fi
13924rm -f conftest.err conftest.$ac_ext
13925
13926done
13927# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13928rm -f conftest.err conftest.$ac_ext
13929if $ac_preproc_ok; then
13930 :
13931else
13932 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13933See \`config.log' for more details." >&5
13934echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13935See \`config.log' for more details." >&2;}
13936 { (exit 1); exit 1; }; }
13937fi
13938
13939ac_ext=c
13940ac_cpp='$CPP $CPPFLAGS'
13941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13943ac_compiler_gnu=$ac_cv_c_compiler_gnu
13944
13945
13946echo "$as_me:$LINENO: checking for egrep" >&5
13947echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13948if test "${ac_cv_prog_egrep+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13950else
13951 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13952 then ac_cv_prog_egrep='grep -E'
13953 else ac_cv_prog_egrep='egrep'
13954 fi
13955fi
13956echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13957echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13958 EGREP=$ac_cv_prog_egrep
13959
13960
13961if test $ac_cv_c_compiler_gnu = yes; then
13962 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13963echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13964if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
13966else
13967 ac_pattern="Autoconf.*'x'"
13968 cat >conftest.$ac_ext <<_ACEOF
13969/* confdefs.h. */
13970_ACEOF
13971cat confdefs.h >>conftest.$ac_ext
13972cat >>conftest.$ac_ext <<_ACEOF
13973/* end confdefs.h. */
13974#include <sgtty.h>
13975Autoconf TIOCGETP
13976_ACEOF
13977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13978 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13979 ac_cv_prog_gcc_traditional=yes
13980else
13981 ac_cv_prog_gcc_traditional=no
13982fi
13983rm -f conftest*
13984
13985
13986 if test $ac_cv_prog_gcc_traditional = no; then
13987 cat >conftest.$ac_ext <<_ACEOF
13988/* confdefs.h. */
13989_ACEOF
13990cat confdefs.h >>conftest.$ac_ext
13991cat >>conftest.$ac_ext <<_ACEOF
13992/* end confdefs.h. */
13993#include <termio.h>
13994Autoconf TCGETA
13995_ACEOF
13996if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13997 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13998 ac_cv_prog_gcc_traditional=yes
13999fi
14000rm -f conftest*
14001
14002 fi
14003fi
14004echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
14005echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
14006 if test $ac_cv_prog_gcc_traditional = yes; then
14007 CC="$CC -traditional"
14008 fi
14009fi
14010
14011
a848cd7e 14012CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
14013
14014
3006edc0 14015
6dcfc289 14016 ac_ext=cc
a848cd7e
SC
14017ac_cpp='$CXXCPP $CPPFLAGS'
14018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14021if test -n "$ac_tool_prefix"; then
14022 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
14023 do
14024 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14025set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14026echo "$as_me:$LINENO: checking for $ac_word" >&5
14027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14028if test "${ac_cv_prog_CXX+set}" = set; then
14029 echo $ECHO_N "(cached) $ECHO_C" >&6
14030else
14031 if test -n "$CXX"; then
14032 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14033else
14034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14035for as_dir in $PATH
14036do
14037 IFS=$as_save_IFS
14038 test -z "$as_dir" && as_dir=.
14039 for ac_exec_ext in '' $ac_executable_extensions; do
14040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14041 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14043 break 2
14044 fi
14045done
14046done
14047
14048fi
14049fi
14050CXX=$ac_cv_prog_CXX
14051if test -n "$CXX"; then
14052 echo "$as_me:$LINENO: result: $CXX" >&5
14053echo "${ECHO_T}$CXX" >&6
14054else
14055 echo "$as_me:$LINENO: result: no" >&5
14056echo "${ECHO_T}no" >&6
14057fi
14058
14059 test -n "$CXX" && break
14060 done
14061fi
14062if test -z "$CXX"; then
14063 ac_ct_CXX=$CXX
14064 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
14065do
14066 # Extract the first word of "$ac_prog", so it can be a program name with args.
14067set dummy $ac_prog; ac_word=$2
14068echo "$as_me:$LINENO: checking for $ac_word" >&5
14069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14070if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14072else
14073 if test -n "$ac_ct_CXX"; then
14074 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14075else
14076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14077for as_dir in $PATH
14078do
14079 IFS=$as_save_IFS
14080 test -z "$as_dir" && as_dir=.
14081 for ac_exec_ext in '' $ac_executable_extensions; do
14082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14083 ac_cv_prog_ac_ct_CXX="$ac_prog"
14084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14085 break 2
14086 fi
14087done
14088done
14089
14090fi
14091fi
14092ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14093if test -n "$ac_ct_CXX"; then
14094 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
14095echo "${ECHO_T}$ac_ct_CXX" >&6
14096else
14097 echo "$as_me:$LINENO: result: no" >&5
14098echo "${ECHO_T}no" >&6
14099fi
14100
14101 test -n "$ac_ct_CXX" && break
14102done
14103test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
14104
14105 CXX=$ac_ct_CXX
14106fi
14107
14108
14109# Provide some information about the compiler.
14110echo "$as_me:$LINENO:" \
14111 "checking for C++ compiler version" >&5
14112ac_compiler=`set X $ac_compile; echo $2`
14113{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
14114 (eval $ac_compiler --version </dev/null >&5) 2>&5
14115 ac_status=$?
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }
14118{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
14119 (eval $ac_compiler -v </dev/null >&5) 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }
14123{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
14124 (eval $ac_compiler -V </dev/null >&5) 2>&5
14125 ac_status=$?
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }
14128
14129echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
14130echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
14131if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14133else
14134 cat >conftest.$ac_ext <<_ACEOF
14135/* confdefs.h. */
14136_ACEOF
14137cat confdefs.h >>conftest.$ac_ext
14138cat >>conftest.$ac_ext <<_ACEOF
14139/* end confdefs.h. */
14140
14141int
14142main ()
14143{
14144#ifndef __GNUC__
14145 choke me
14146#endif
14147
14148 ;
14149 return 0;
14150}
14151_ACEOF
14152rm -f conftest.$ac_objext
14153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14154 (eval $ac_compile) 2>conftest.er1
a848cd7e 14155 ac_status=$?
ac1cb8d3
VS
14156 grep -v '^ *+' conftest.er1 >conftest.err
14157 rm -f conftest.er1
14158 cat conftest.err >&5
a848cd7e
SC
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } &&
bb9e79c0 14161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; } &&
14167 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14170 ac_status=$?
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; }; then
14173 ac_compiler_gnu=yes
14174else
14175 echo "$as_me: failed program was:" >&5
14176sed 's/^/| /' conftest.$ac_ext >&5
14177
14178ac_compiler_gnu=no
14179fi
ac1cb8d3 14180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14181ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14182
14183fi
14184echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
14185echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
14186GXX=`test $ac_compiler_gnu = yes && echo yes`
14187ac_test_CXXFLAGS=${CXXFLAGS+set}
14188ac_save_CXXFLAGS=$CXXFLAGS
14189CXXFLAGS="-g"
14190echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
14191echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
14192if test "${ac_cv_prog_cxx_g+set}" = set; then
14193 echo $ECHO_N "(cached) $ECHO_C" >&6
14194else
14195 cat >conftest.$ac_ext <<_ACEOF
14196/* confdefs.h. */
14197_ACEOF
14198cat confdefs.h >>conftest.$ac_ext
14199cat >>conftest.$ac_ext <<_ACEOF
14200/* end confdefs.h. */
14201
14202int
14203main ()
14204{
14205
14206 ;
14207 return 0;
14208}
14209_ACEOF
14210rm -f conftest.$ac_objext
14211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14212 (eval $ac_compile) 2>conftest.er1
a848cd7e 14213 ac_status=$?
ac1cb8d3
VS
14214 grep -v '^ *+' conftest.er1 >conftest.err
14215 rm -f conftest.er1
14216 cat conftest.err >&5
a848cd7e
SC
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } &&
bb9e79c0 14219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221 (eval $ac_try) 2>&5
14222 ac_status=$?
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; } &&
14225 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227 (eval $ac_try) 2>&5
14228 ac_status=$?
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; }; then
14231 ac_cv_prog_cxx_g=yes
14232else
14233 echo "$as_me: failed program was:" >&5
14234sed 's/^/| /' conftest.$ac_ext >&5
14235
14236ac_cv_prog_cxx_g=no
14237fi
ac1cb8d3 14238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14239fi
14240echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14241echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
14242if test "$ac_test_CXXFLAGS" = set; then
14243 CXXFLAGS=$ac_save_CXXFLAGS
14244elif test $ac_cv_prog_cxx_g = yes; then
14245 if test "$GXX" = yes; then
ddbd3cd5 14246 CXXFLAGS="-g -O2"
a848cd7e 14247 else
ddbd3cd5 14248 CXXFLAGS="-g"
a848cd7e
SC
14249 fi
14250else
14251 if test "$GXX" = yes; then
14252 CXXFLAGS="-O2"
14253 else
14254 CXXFLAGS=
14255 fi
14256fi
14257for ac_declaration in \
ac1cb8d3 14258 '' \
a848cd7e
SC
14259 'extern "C" void std::exit (int) throw (); using std::exit;' \
14260 'extern "C" void std::exit (int); using std::exit;' \
14261 'extern "C" void exit (int) throw ();' \
14262 'extern "C" void exit (int);' \
14263 'void exit (int);'
14264do
14265 cat >conftest.$ac_ext <<_ACEOF
14266/* confdefs.h. */
14267_ACEOF
14268cat confdefs.h >>conftest.$ac_ext
14269cat >>conftest.$ac_ext <<_ACEOF
14270/* end confdefs.h. */
de59c161 14271$ac_declaration
ac1cb8d3 14272#include <stdlib.h>
a848cd7e
SC
14273int
14274main ()
14275{
14276exit (42);
14277 ;
14278 return 0;
14279}
14280_ACEOF
14281rm -f conftest.$ac_objext
14282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14283 (eval $ac_compile) 2>conftest.er1
a848cd7e 14284 ac_status=$?
ac1cb8d3
VS
14285 grep -v '^ *+' conftest.er1 >conftest.err
14286 rm -f conftest.er1
14287 cat conftest.err >&5
a848cd7e
SC
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } &&
bb9e79c0 14290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14292 (eval $ac_try) 2>&5
14293 ac_status=$?
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; } &&
14296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298 (eval $ac_try) 2>&5
14299 ac_status=$?
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; }; then
14302 :
14303else
14304 echo "$as_me: failed program was:" >&5
14305sed 's/^/| /' conftest.$ac_ext >&5
14306
14307continue
14308fi
ac1cb8d3 14309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14310 cat >conftest.$ac_ext <<_ACEOF
14311/* confdefs.h. */
14312_ACEOF
14313cat confdefs.h >>conftest.$ac_ext
14314cat >>conftest.$ac_ext <<_ACEOF
14315/* end confdefs.h. */
14316$ac_declaration
14317int
14318main ()
14319{
14320exit (42);
14321 ;
14322 return 0;
14323}
14324_ACEOF
14325rm -f conftest.$ac_objext
14326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14327 (eval $ac_compile) 2>conftest.er1
a848cd7e 14328 ac_status=$?
ac1cb8d3
VS
14329 grep -v '^ *+' conftest.er1 >conftest.err
14330 rm -f conftest.er1
14331 cat conftest.err >&5
a848cd7e
SC
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } &&
bb9e79c0 14334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; } &&
14340 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342 (eval $ac_try) 2>&5
14343 ac_status=$?
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; }; then
14346 break
14347else
14348 echo "$as_me: failed program was:" >&5
14349sed 's/^/| /' conftest.$ac_ext >&5
14350
14351fi
ac1cb8d3 14352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14353done
14354rm -f conftest*
14355if test -n "$ac_declaration"; then
14356 echo '#ifdef __cplusplus' >>confdefs.h
14357 echo $ac_declaration >>confdefs.h
14358 echo '#endif' >>confdefs.h
14359fi
14360
fd5199d6
VZ
14361ac_ext=c
14362ac_cpp='$CPP $CPPFLAGS'
14363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14365ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e 14366
ab0ad5f1
VZ
14367
14368
14369 ac_ext=cc
14370ac_cpp='$CXXCPP $CPPFLAGS'
14371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14374
14375 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14376echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
14377if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14379else
14380 cat >conftest.$ac_ext <<_ACEOF
14381/* confdefs.h. */
14382_ACEOF
14383cat confdefs.h >>conftest.$ac_ext
14384cat >>conftest.$ac_ext <<_ACEOF
14385/* end confdefs.h. */
14386
14387int
14388main ()
14389{
14390
14391 #ifndef __INTEL_COMPILER
14392 choke me
14393 #endif
14394
14395 ;
14396 return 0;
14397}
14398_ACEOF
14399rm -f conftest.$ac_objext
14400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14401 (eval $ac_compile) 2>conftest.er1
14402 ac_status=$?
14403 grep -v '^ *+' conftest.er1 >conftest.err
14404 rm -f conftest.er1
14405 cat conftest.err >&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
bb9e79c0 14408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
14409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410 (eval $ac_try) 2>&5
14411 ac_status=$?
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; } &&
14414 { ac_try='test -s conftest.$ac_objext'
14415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416 (eval $ac_try) 2>&5
14417 ac_status=$?
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; }; then
14420 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14421else
14422 echo "$as_me: failed program was:" >&5
14423sed 's/^/| /' conftest.$ac_ext >&5
14424
14425bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14426
14427fi
14428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14429
14430
14431fi
14432echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14433echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
fd5199d6
VZ
14434 ac_ext=c
14435ac_cpp='$CPP $CPPFLAGS'
14436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14438ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab0ad5f1 14439
fd5199d6 14440 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
ab0ad5f1
VZ
14441 :; INTELCXX=yes
14442 else
14443 :;
14444 fi
14445
14446
3006edc0
VZ
14447 if test "x$GCXX" != "xyes"; then
14448 if test "xCXX" = "xC"; then
fd5199d6
VZ
14449 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
14450echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
14451if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14453else
14454 cat >conftest.$ac_ext <<_ACEOF
14455/* confdefs.h. */
14456_ACEOF
14457cat confdefs.h >>conftest.$ac_ext
14458cat >>conftest.$ac_ext <<_ACEOF
14459/* end confdefs.h. */
14460
14461int
14462main ()
14463{
14464
14465 ;
14466 return 0;
14467}
14468_ACEOF
14469rm -f conftest.$ac_objext conftest.$ac_ext.o
14470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14471 (eval $ac_compile) 2>&5
14472 ac_status=$?
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; then
14475 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14476 case $ac_file in
14477 conftest.$ac_ext.o)
fd5199d6 14478 bakefile_cv_c_exto="-ext o"
480ccd21
DE
14479 ;;
14480 *)
14481 ;;
14482 esac
14483done
14484else
14485 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14486See \`config.log' for more details." >&5
14487echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14488See \`config.log' for more details." >&2;}
14489 { (exit 1); exit 1; }; }
14490
14491fi
14492
14493rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14494
14495fi
fd5199d6
VZ
14496echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
14497echo "${ECHO_T}$bakefile_cv_c_exto" >&6
14498if test "x$bakefile_cv_c_exto" '!=' "x"; then
14499 if test "c" = "c"; then
14500 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21 14501 fi
fd5199d6
VZ
14502 if test "c" = "cxx"; then
14503 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
14504 fi
14505fi
14506
0093c2fc 14507 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14508 unset ac_cv_prog_cc_g
14509 ac_test_CFLAGS=${CFLAGS+set}
14510ac_save_CFLAGS=$CFLAGS
ddbd3cd5 14511CFLAGS="-g"
3006edc0
VZ
14512echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14513echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14514if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14515 echo $ECHO_N "(cached) $ECHO_C" >&6
14516else
14517 cat >conftest.$ac_ext <<_ACEOF
14518/* confdefs.h. */
14519_ACEOF
14520cat confdefs.h >>conftest.$ac_ext
14521cat >>conftest.$ac_ext <<_ACEOF
14522/* end confdefs.h. */
14523
14524int
14525main ()
14526{
14527
14528 ;
14529 return 0;
14530}
14531_ACEOF
14532rm -f conftest.$ac_objext
14533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14534 (eval $ac_compile) 2>conftest.er1
14535 ac_status=$?
14536 grep -v '^ *+' conftest.er1 >conftest.err
14537 rm -f conftest.er1
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } &&
fd5199d6 14541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14544 ac_status=$?
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; } &&
14547 { ac_try='test -s conftest.$ac_objext'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14550 ac_status=$?
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; }; then
3006edc0 14553 ac_cv_prog_cc_g=yes
480ccd21
DE
14554else
14555 echo "$as_me: failed program was:" >&5
14556sed 's/^/| /' conftest.$ac_ext >&5
14557
3006edc0 14558ac_cv_prog_cc_g=no
480ccd21
DE
14559fi
14560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14561fi
3006edc0
VZ
14562echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14563echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14564if test "$ac_test_CFLAGS" = set; then
14565 CFLAGS=$ac_save_CFLAGS
14566elif test $ac_cv_prog_cc_g = yes; then
14567 if test "$GCC" = yes; then
14568 CFLAGS="-g -O2"
480ccd21 14569 else
3006edc0 14570 CFLAGS="-g"
480ccd21
DE
14571 fi
14572else
3006edc0
VZ
14573 if test "$GCC" = yes; then
14574 CFLAGS="-O2"
480ccd21 14575 else
3006edc0 14576 CFLAGS=
480ccd21
DE
14577 fi
14578fi
3006edc0 14579 fi
ab0ad5f1 14580 fi
3006edc0
VZ
14581
14582 case `uname -s` in
14583 AIX*)
14584 ac_ext=cc
14585ac_cpp='$CXXCPP $CPPFLAGS'
14586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14589
14590echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14591echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14592if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
14594else
14595 cat >conftest.$ac_ext <<_ACEOF
14596/* confdefs.h. */
14597_ACEOF
14598cat confdefs.h >>conftest.$ac_ext
14599cat >>conftest.$ac_ext <<_ACEOF
14600/* end confdefs.h. */
14601
14602int
14603main ()
14604{
14605#ifndef __xlC__
14606 choke me
14607#endif
14608
14609 ;
14610 return 0;
14611}
14612_ACEOF
14613rm -f conftest.$ac_objext
14614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14615 (eval $ac_compile) 2>conftest.er1
14616 ac_status=$?
14617 grep -v '^ *+' conftest.er1 >conftest.err
14618 rm -f conftest.er1
14619 cat conftest.err >&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } &&
bb9e79c0 14622 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624 (eval $ac_try) 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; } &&
14628 { ac_try='test -s conftest.$ac_objext'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; }; then
0093c2fc 14634 bakefile_compiler_xlc=yes
3006edc0
VZ
14635else
14636 echo "$as_me: failed program was:" >&5
14637sed 's/^/| /' conftest.$ac_ext >&5
14638
0093c2fc 14639bakefile_compiler_xlc=no
3006edc0
VZ
14640fi
14641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14642 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14643
14644fi
0093c2fc
VZ
14645echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14646echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14647
0093c2fc 14648XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
fd5199d6
VZ
14649ac_ext=c
14650ac_cpp='$CPP $CPPFLAGS'
14651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14653ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006edc0
VZ
14654
14655
14656 ;;
14657
14658 Darwin)
14659 ac_ext=cc
95986553
DE
14660ac_cpp='$CXXCPP $CPPFLAGS'
14661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14662ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14664
14665echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14666echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14667if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14669else
14670 cat >conftest.$ac_ext <<_ACEOF
14671/* confdefs.h. */
14672_ACEOF
14673cat confdefs.h >>conftest.$ac_ext
14674cat >>conftest.$ac_ext <<_ACEOF
14675/* end confdefs.h. */
14676
14677int
14678main ()
14679{
14680#ifndef __MWERKS__
14681 choke me
14682#endif
14683
14684 ;
14685 return 0;
14686}
14687_ACEOF
14688rm -f conftest.$ac_objext
14689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14690 (eval $ac_compile) 2>conftest.er1
14691 ac_status=$?
14692 grep -v '^ *+' conftest.er1 >conftest.err
14693 rm -f conftest.er1
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } &&
bb9e79c0 14697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699 (eval $ac_try) 2>&5
14700 ac_status=$?
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); }; } &&
14703 { ac_try='test -s conftest.$ac_objext'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14706 ac_status=$?
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; }; then
14709 bakefile_compiler_mwerks=yes
14710else
14711 echo "$as_me: failed program was:" >&5
14712sed 's/^/| /' conftest.$ac_ext >&5
14713
14714bakefile_compiler_mwerks=no
14715fi
14716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14717 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14718
14719fi
14720echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14721echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14722
0e6fa1d9 14723MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
fd5199d6
VZ
14724ac_ext=c
14725ac_cpp='$CPP $CPPFLAGS'
14726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14728ac_compiler_gnu=$ac_cv_c_compiler_gnu
95986553
DE
14729
14730
3006edc0 14731 ac_ext=cc
9273ffba
DE
14732ac_cpp='$CXXCPP $CPPFLAGS'
14733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14736
14737echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14738echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14739if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14741else
14742 cat >conftest.$ac_ext <<_ACEOF
14743/* confdefs.h. */
14744_ACEOF
14745cat confdefs.h >>conftest.$ac_ext
14746cat >>conftest.$ac_ext <<_ACEOF
14747/* end confdefs.h. */
14748
14749int
14750main ()
14751{
14752#ifndef __xlC__
14753 choke me
14754#endif
14755
14756 ;
14757 return 0;
14758}
14759_ACEOF
14760rm -f conftest.$ac_objext
14761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14762 (eval $ac_compile) 2>conftest.er1
14763 ac_status=$?
14764 grep -v '^ *+' conftest.er1 >conftest.err
14765 rm -f conftest.er1
14766 cat conftest.err >&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } &&
bb9e79c0 14769 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; } &&
14775 { ac_try='test -s conftest.$ac_objext'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14778 ac_status=$?
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then
0093c2fc 14781 bakefile_compiler_xlc=yes
9273ffba
DE
14782else
14783 echo "$as_me: failed program was:" >&5
14784sed 's/^/| /' conftest.$ac_ext >&5
14785
0093c2fc 14786bakefile_compiler_xlc=no
9273ffba
DE
14787fi
14788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14789 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14790
14791fi
0093c2fc
VZ
14792echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14793echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14794
0093c2fc 14795XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
fd5199d6
VZ
14796ac_ext=c
14797ac_cpp='$CPP $CPPFLAGS'
14798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14800ac_compiler_gnu=$ac_cv_c_compiler_gnu
9273ffba
DE
14801
14802
3006edc0
VZ
14803 ;;
14804
14805 IRIX*)
95986553 14806
6dcfc289 14807
0ad5d837
VZ
14808 ac_ext=cc
14809ac_cpp='$CXXCPP $CPPFLAGS'
14810ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14811ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14812ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14813
14814 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14815echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14816if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
14818else
14819 cat >conftest.$ac_ext <<_ACEOF
14820/* confdefs.h. */
14821_ACEOF
14822cat confdefs.h >>conftest.$ac_ext
14823cat >>conftest.$ac_ext <<_ACEOF
14824/* end confdefs.h. */
14825
14826int
14827main ()
14828{
14829
14830 #ifndef _SGI_COMPILER_VERSION
14831 choke me
14832 #endif
14833
14834 ;
14835 return 0;
14836}
14837_ACEOF
14838rm -f conftest.$ac_objext
14839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14840 (eval $ac_compile) 2>conftest.er1
14841 ac_status=$?
14842 grep -v '^ *+' conftest.er1 >conftest.err
14843 rm -f conftest.er1
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } &&
bb9e79c0 14847 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14849 (eval $ac_try) 2>&5
14850 ac_status=$?
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); }; } &&
14853 { ac_try='test -s conftest.$ac_objext'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14856 ac_status=$?
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; }; then
14859 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14860else
14861 echo "$as_me: failed program was:" >&5
14862sed 's/^/| /' conftest.$ac_ext >&5
14863
14864bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14865
14866fi
14867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14868
14869
14870fi
14871echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14872echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
fd5199d6
VZ
14873 ac_ext=c
14874ac_cpp='$CPP $CPPFLAGS'
14875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14877ac_compiler_gnu=$ac_cv_c_compiler_gnu
0ad5d837 14878
fd5199d6 14879 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
0ad5d837
VZ
14880 :; SGICXX=yes
14881 else
14882 :;
14883 fi
14884
14885
3006edc0
VZ
14886 ;;
14887
0093c2fc 14888 HP-UX*)
3006edc0
VZ
14889
14890
14891 ac_ext=cc
14892ac_cpp='$CXXCPP $CPPFLAGS'
14893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14896
0093c2fc
VZ
14897 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14898echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14899if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14900 echo $ECHO_N "(cached) $ECHO_C" >&6
14901else
14902 cat >conftest.$ac_ext <<_ACEOF
14903/* confdefs.h. */
14904_ACEOF
14905cat confdefs.h >>conftest.$ac_ext
14906cat >>conftest.$ac_ext <<_ACEOF
14907/* end confdefs.h. */
14908
14909int
14910main ()
14911{
14912
0093c2fc 14913 #ifndef __HP_aCC
3006edc0
VZ
14914 choke me
14915 #endif
14916
14917 ;
14918 return 0;
14919}
14920_ACEOF
14921rm -f conftest.$ac_objext
14922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14923 (eval $ac_compile) 2>conftest.er1
14924 ac_status=$?
14925 grep -v '^ *+' conftest.er1 >conftest.err
14926 rm -f conftest.er1
14927 cat conftest.err >&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } &&
bb9e79c0 14930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14932 (eval $ac_try) 2>&5
14933 ac_status=$?
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); }; } &&
14936 { ac_try='test -s conftest.$ac_objext'
14937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14938 (eval $ac_try) 2>&5
14939 ac_status=$?
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); }; }; then
0093c2fc 14942 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14943else
14944 echo "$as_me: failed program was:" >&5
14945sed 's/^/| /' conftest.$ac_ext >&5
14946
0093c2fc 14947bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14948
14949fi
14950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14951
14952
14953fi
0093c2fc
VZ
14954echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14955echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
fd5199d6
VZ
14956 ac_ext=c
14957ac_cpp='$CPP $CPPFLAGS'
14958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14960ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006edc0 14961
fd5199d6 14962 if test "x$bakefile_cv_c_compiler___HP_aCC" = "xyes"; then
0093c2fc 14963 :; HPCXX=yes
a1aa0349
VZ
14964 else
14965 :;
14966 fi
14967
14968
14969 ;;
14970
0093c2fc 14971 OSF1)
a1aa0349
VZ
14972
14973
14974 ac_ext=cc
14975ac_cpp='$CXXCPP $CPPFLAGS'
14976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14979
0093c2fc
VZ
14980 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14981echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14982if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14983 echo $ECHO_N "(cached) $ECHO_C" >&6
14984else
14985 cat >conftest.$ac_ext <<_ACEOF
14986/* confdefs.h. */
14987_ACEOF
14988cat confdefs.h >>conftest.$ac_ext
14989cat >>conftest.$ac_ext <<_ACEOF
14990/* end confdefs.h. */
14991
14992int
14993main ()
14994{
14995
0093c2fc 14996 #ifndef __DECCXX
a1aa0349
VZ
14997 choke me
14998 #endif
14999
15000 ;
15001 return 0;
15002}
15003_ACEOF
15004rm -f conftest.$ac_objext
15005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15006 (eval $ac_compile) 2>conftest.er1
15007 ac_status=$?
15008 grep -v '^ *+' conftest.er1 >conftest.err
15009 rm -f conftest.er1
15010 cat conftest.err >&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); } &&
bb9e79c0 15013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15016 ac_status=$?
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; } &&
15019 { ac_try='test -s conftest.$ac_objext'
15020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15021 (eval $ac_try) 2>&5
15022 ac_status=$?
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); }; }; then
0093c2fc 15025 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
15026else
15027 echo "$as_me: failed program was:" >&5
15028sed 's/^/| /' conftest.$ac_ext >&5
15029
0093c2fc 15030bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
15031
15032fi
15033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15034
15035
15036fi
0093c2fc
VZ
15037echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
15038echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
fd5199d6
VZ
15039 ac_ext=c
15040ac_cpp='$CPP $CPPFLAGS'
15041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15043ac_compiler_gnu=$ac_cv_c_compiler_gnu
a1aa0349 15044
fd5199d6 15045 if test "x$bakefile_cv_c_compiler___DECCXX" = "xyes"; then
0093c2fc
VZ
15046 :; COMPAQCXX=yes
15047 else
15048 :;
15049 fi
15050
15051
15052 ;;
15053
15054 SunOS)
15055
15056
15057 ac_ext=cc
15058ac_cpp='$CXXCPP $CPPFLAGS'
15059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15062
15063 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
15064echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
15065if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
15066 echo $ECHO_N "(cached) $ECHO_C" >&6
15067else
15068 cat >conftest.$ac_ext <<_ACEOF
15069/* confdefs.h. */
15070_ACEOF
15071cat confdefs.h >>conftest.$ac_ext
15072cat >>conftest.$ac_ext <<_ACEOF
15073/* end confdefs.h. */
15074
15075int
15076main ()
15077{
15078
15079 #ifndef __SUNPRO_CC
15080 choke me
15081 #endif
15082
15083 ;
15084 return 0;
15085}
15086_ACEOF
15087rm -f conftest.$ac_objext
15088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15089 (eval $ac_compile) 2>conftest.er1
15090 ac_status=$?
15091 grep -v '^ *+' conftest.er1 >conftest.err
15092 rm -f conftest.er1
15093 cat conftest.err >&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
bb9e79c0 15096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; } &&
15102 { ac_try='test -s conftest.$ac_objext'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; }; then
15108 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
15109else
15110 echo "$as_me: failed program was:" >&5
15111sed 's/^/| /' conftest.$ac_ext >&5
15112
15113bakefile_cv_cxx_compiler___SUNPRO_CC=no
15114
15115fi
15116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15117
15118
15119fi
15120echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
15121echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
fd5199d6
VZ
15122 ac_ext=c
15123ac_cpp='$CPP $CPPFLAGS'
15124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15126ac_compiler_gnu=$ac_cv_c_compiler_gnu
0093c2fc 15127
fd5199d6 15128 if test "x$bakefile_cv_c_compiler___SUNPRO_CC" = "xyes"; then
0093c2fc 15129 :; SUNCXX=yes
3006edc0
VZ
15130 else
15131 :;
ab0ad5f1 15132 fi
a9e5b1f0
MW
15133
15134
3006edc0
VZ
15135 ;;
15136 esac
15137 fi
15138
15139
15140
a848cd7e
SC
15141if test -n "$ac_tool_prefix"; then
15142 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15143set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15144echo "$as_me:$LINENO: checking for $ac_word" >&5
15145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15146if test "${ac_cv_prog_RANLIB+set}" = set; then
15147 echo $ECHO_N "(cached) $ECHO_C" >&6
15148else
15149 if test -n "$RANLIB"; then
15150 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15151else
15152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15153for as_dir in $PATH
15154do
15155 IFS=$as_save_IFS
15156 test -z "$as_dir" && as_dir=.
15157 for ac_exec_ext in '' $ac_executable_extensions; do
15158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15159 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15161 break 2
15162 fi
15163done
15164done
15165
15166fi
15167fi
15168RANLIB=$ac_cv_prog_RANLIB
15169if test -n "$RANLIB"; then
15170 echo "$as_me:$LINENO: result: $RANLIB" >&5
15171echo "${ECHO_T}$RANLIB" >&6
15172else
15173 echo "$as_me:$LINENO: result: no" >&5
15174echo "${ECHO_T}no" >&6
15175fi
15176
15177fi
15178if test -z "$ac_cv_prog_RANLIB"; then
15179 ac_ct_RANLIB=$RANLIB
15180 # Extract the first word of "ranlib", so it can be a program name with args.
15181set dummy ranlib; ac_word=$2
15182echo "$as_me:$LINENO: checking for $ac_word" >&5
15183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15184if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15186else
15187 if test -n "$ac_ct_RANLIB"; then
15188 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15189else
15190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15191for as_dir in $PATH
15192do
15193 IFS=$as_save_IFS
15194 test -z "$as_dir" && as_dir=.
15195 for ac_exec_ext in '' $ac_executable_extensions; do
15196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15197 ac_cv_prog_ac_ct_RANLIB="ranlib"
15198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15199 break 2
15200 fi
15201done
15202done
15203
15204 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15205fi
15206fi
15207ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15208if test -n "$ac_ct_RANLIB"; then
15209 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15210echo "${ECHO_T}$ac_ct_RANLIB" >&6
15211else
15212 echo "$as_me:$LINENO: result: no" >&5
15213echo "${ECHO_T}no" >&6
15214fi
15215
15216 RANLIB=$ac_ct_RANLIB
15217else
15218 RANLIB="$ac_cv_prog_RANLIB"
15219fi
15220
15221
8c80d384
DE
15222if test -n "$ac_tool_prefix"; then
15223 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15224set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
15225echo "$as_me:$LINENO: checking for $ac_word" >&5
15226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15227if test "${ac_cv_prog_AR+set}" = set; then
15228 echo $ECHO_N "(cached) $ECHO_C" >&6
15229else
15230 if test -n "$AR"; then
15231 ac_cv_prog_AR="$AR" # Let the user override the test.
15232else
15233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15234for as_dir in $PATH
15235do
15236 IFS=$as_save_IFS
15237 test -z "$as_dir" && as_dir=.
15238 for ac_exec_ext in '' $ac_executable_extensions; do
15239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15240 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
15241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15242 break 2
15243 fi
15244done
15245done
15246
15247fi
15248fi
15249AR=$ac_cv_prog_AR
15250if test -n "$AR"; then
15251 echo "$as_me:$LINENO: result: $AR" >&5
15252echo "${ECHO_T}$AR" >&6
15253else
15254 echo "$as_me:$LINENO: result: no" >&5
15255echo "${ECHO_T}no" >&6
15256fi
15257
8c80d384
DE
15258fi
15259if test -z "$ac_cv_prog_AR"; then
15260 ac_ct_AR=$AR
15261 # Extract the first word of "ar", so it can be a program name with args.
15262set dummy ar; ac_word=$2
15263echo "$as_me:$LINENO: checking for $ac_word" >&5
15264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15265if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15267else
15268 if test -n "$ac_ct_AR"; then
15269 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15270else
15271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15272for as_dir in $PATH
15273do
15274 IFS=$as_save_IFS
15275 test -z "$as_dir" && as_dir=.
15276 for ac_exec_ext in '' $ac_executable_extensions; do
15277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15278 ac_cv_prog_ac_ct_AR="ar"
15279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15280 break 2
15281 fi
15282done
15283done
15284
15285fi
15286fi
15287ac_ct_AR=$ac_cv_prog_ac_ct_AR
15288if test -n "$ac_ct_AR"; then
15289 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15290echo "${ECHO_T}$ac_ct_AR" >&6
15291else
15292 echo "$as_me:$LINENO: result: no" >&5
15293echo "${ECHO_T}no" >&6
15294fi
15295
15296 AR=$ac_ct_AR
15297else
15298 AR="$ac_cv_prog_AR"
15299fi
15300
a848cd7e 15301if test "x$AR" = "x" ; then
77ffb593
JS
15302 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
15303echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
15304 { (exit 1); exit 1; }; }
15305fi
15306
15307# Find a good install program. We prefer a C program (faster),
15308# so one script is as good as another. But avoid the broken or
15309# incompatible versions:
15310# SysV /etc/install, /usr/sbin/install
15311# SunOS /usr/etc/install
15312# IRIX /sbin/install
15313# AIX /bin/install
15314# AmigaOS /C/install, which installs bootblocks on floppy discs
15315# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15316# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15317# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 15318# OS/2's system install, which has a completely different semantic
a848cd7e
SC
15319# ./install, which can be erroneously created by make from ./install.sh.
15320echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15321echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
15322if test -z "$INSTALL"; then
15323if test "${ac_cv_path_install+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15325else
15326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15327for as_dir in $PATH
15328do
15329 IFS=$as_save_IFS
15330 test -z "$as_dir" && as_dir=.
15331 # Account for people who put trailing slashes in PATH elements.
15332case $as_dir/ in
15333 ./ | .// | /cC/* | \
15334 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 15335 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
15336 /usr/ucb/* ) ;;
15337 *)
15338 # OSF1 and SCO ODT 3.0 have their own names for install.
15339 # Don't use installbsd from OSF since it installs stuff as root
15340 # by default.
15341 for ac_prog in ginstall scoinst install; do
15342 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
15343 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15344 if test $ac_prog = install &&
15345 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15346 # AIX install. It has an incompatible calling convention.
15347 :
15348 elif test $ac_prog = install &&
15349 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15350 # program-specific install script used by HP pwplus--don't use.
15351 :
15352 else
15353 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15354 break 3
15355 fi
15356 fi
a848cd7e
SC
15357 done
15358 done
15359 ;;
15360esac
15361done
15362
15363
15364fi
15365 if test "${ac_cv_path_install+set}" = set; then
15366 INSTALL=$ac_cv_path_install
15367 else
15368 # As a last resort, use the slow shell script. We don't cache a
15369 # path for INSTALL within a source directory, because that will
15370 # break other packages using the cache if that directory is
15371 # removed, or if the path is relative.
15372 INSTALL=$ac_install_sh
15373 fi
15374fi
15375echo "$as_me:$LINENO: result: $INSTALL" >&5
15376echo "${ECHO_T}$INSTALL" >&6
15377
15378# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15379# It thinks the first close brace ends the variable substitution.
15380test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15381
15382test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15383
15384test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15385
15386
15387case ${INSTALL} in
15388 /* ) # Absolute
15389 ;;
15390 ?:* ) # Drive letter, considered as absolute.
15391 ;;
15392 *)
15393 INSTALL=`pwd`/${INSTALL} ;;
15394esac
15395
a848cd7e
SC
15396
15397case "${host}" in
15398
cfda0ea8 15399 *-*-darwin* )
a848cd7e
SC
15400 INSTALL_PROGRAM="cp -fp"
15401 INSTALL_DATA="cp -fp"
15402 ;;
15403 *)
15404 ;;
15405esac
15406
8c80d384
DE
15407if test -n "$ac_tool_prefix"; then
15408 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15409set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
15410echo "$as_me:$LINENO: checking for $ac_word" >&5
15411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15412if test "${ac_cv_prog_STRIP+set}" = set; then
15413 echo $ECHO_N "(cached) $ECHO_C" >&6
15414else
15415 if test -n "$STRIP"; then
15416 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15417else
15418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15419for as_dir in $PATH
15420do
15421 IFS=$as_save_IFS
15422 test -z "$as_dir" && as_dir=.
15423 for ac_exec_ext in '' $ac_executable_extensions; do
15424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15425 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
15426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15427 break 2
15428 fi
15429done
15430done
15431
a848cd7e
SC
15432fi
15433fi
15434STRIP=$ac_cv_prog_STRIP
15435if test -n "$STRIP"; then
15436 echo "$as_me:$LINENO: result: $STRIP" >&5
15437echo "${ECHO_T}$STRIP" >&6
15438else
15439 echo "$as_me:$LINENO: result: no" >&5
15440echo "${ECHO_T}no" >&6
15441fi
15442
8c80d384
DE
15443fi
15444if test -z "$ac_cv_prog_STRIP"; then
15445 ac_ct_STRIP=$STRIP
15446 # Extract the first word of "strip", so it can be a program name with args.
15447set dummy strip; ac_word=$2
15448echo "$as_me:$LINENO: checking for $ac_word" >&5
15449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15450if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15451 echo $ECHO_N "(cached) $ECHO_C" >&6
15452else
15453 if test -n "$ac_ct_STRIP"; then
15454 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15455else
15456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15457for as_dir in $PATH
15458do
15459 IFS=$as_save_IFS
15460 test -z "$as_dir" && as_dir=.
15461 for ac_exec_ext in '' $ac_executable_extensions; do
15462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15463 ac_cv_prog_ac_ct_STRIP="strip"
15464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15465 break 2
15466 fi
15467done
15468done
15469
15470 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15471fi
15472fi
15473ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15474if test -n "$ac_ct_STRIP"; then
15475 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15476echo "${ECHO_T}$ac_ct_STRIP" >&6
15477else
15478 echo "$as_me:$LINENO: result: no" >&5
15479echo "${ECHO_T}no" >&6
15480fi
15481
15482 STRIP=$ac_ct_STRIP
15483else
15484 STRIP="$ac_cv_prog_STRIP"
15485fi
15486
15487
15488if test "$wxUSE_WINE" = "yes"; then
15489 if test -n "$ac_tool_prefix"; then
15490 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15491set dummy ${ac_tool_prefix}wrc; ac_word=$2
15492echo "$as_me:$LINENO: checking for $ac_word" >&5
15493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15494if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15496else
8ced02f6
DE
15497 if test -n "$WINDRES"; then
15498 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15499else
15500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15501for as_dir in $PATH
15502do
15503 IFS=$as_save_IFS
15504 test -z "$as_dir" && as_dir=.
15505 for ac_exec_ext in '' $ac_executable_extensions; do
15506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15507 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15509 break 2
15510 fi
15511done
15512done
15513
15514fi
15515fi
8ced02f6
DE
15516WINDRES=$ac_cv_prog_WINDRES
15517if test -n "$WINDRES"; then
15518 echo "$as_me:$LINENO: result: $WINDRES" >&5
15519echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15520else
15521 echo "$as_me:$LINENO: result: no" >&5
15522echo "${ECHO_T}no" >&6
15523fi
15524
15525fi
8ced02f6
DE
15526if test -z "$ac_cv_prog_WINDRES"; then
15527 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15528 # Extract the first word of "wrc", so it can be a program name with args.
15529set dummy wrc; ac_word=$2
15530echo "$as_me:$LINENO: checking for $ac_word" >&5
15531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15532if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15534else
8ced02f6
DE
15535 if test -n "$ac_ct_WINDRES"; then
15536 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15537else
15538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15539for as_dir in $PATH
15540do
15541 IFS=$as_save_IFS
15542 test -z "$as_dir" && as_dir=.
15543 for ac_exec_ext in '' $ac_executable_extensions; do
15544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15545 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15547 break 2
15548 fi
15549done
15550done
15551
15552fi
15553fi
8ced02f6
DE
15554ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15555if test -n "$ac_ct_WINDRES"; then
15556 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15557echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15558else
15559 echo "$as_me:$LINENO: result: no" >&5
15560echo "${ECHO_T}no" >&6
15561fi
15562
8ced02f6 15563 WINDRES=$ac_ct_WINDRES
8c80d384 15564else
8ced02f6 15565 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15566fi
15567
004ee6da 15568 RESCOMP="$WINDRES"
8c80d384
DE
15569else
15570 case "${host}" in
15571 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15572 if test -n "$ac_tool_prefix"; then
15573 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15574set dummy ${ac_tool_prefix}windres; ac_word=$2
15575echo "$as_me:$LINENO: checking for $ac_word" >&5
15576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15577if test "${ac_cv_prog_WINDRES+set}" = set; then
15578 echo $ECHO_N "(cached) $ECHO_C" >&6
15579else
15580 if test -n "$WINDRES"; then
15581 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15582else
15583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15584for as_dir in $PATH
15585do
15586 IFS=$as_save_IFS
15587 test -z "$as_dir" && as_dir=.
15588 for ac_exec_ext in '' $ac_executable_extensions; do
15589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15590 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15592 break 2
15593 fi
15594done
15595done
15596
15597fi
15598fi
15599WINDRES=$ac_cv_prog_WINDRES
15600if test -n "$WINDRES"; then
15601 echo "$as_me:$LINENO: result: $WINDRES" >&5
15602echo "${ECHO_T}$WINDRES" >&6
15603else
15604 echo "$as_me:$LINENO: result: no" >&5
15605echo "${ECHO_T}no" >&6
15606fi
15607
15608fi
15609if test -z "$ac_cv_prog_WINDRES"; then
15610 ac_ct_WINDRES=$WINDRES
15611 # Extract the first word of "windres", so it can be a program name with args.
15612set dummy windres; ac_word=$2
15613echo "$as_me:$LINENO: checking for $ac_word" >&5
15614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15615if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15616 echo $ECHO_N "(cached) $ECHO_C" >&6
15617else
15618 if test -n "$ac_ct_WINDRES"; then
15619 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15620else
15621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15622for as_dir in $PATH
15623do
15624 IFS=$as_save_IFS
15625 test -z "$as_dir" && as_dir=.
15626 for ac_exec_ext in '' $ac_executable_extensions; do
15627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15628 ac_cv_prog_ac_ct_WINDRES="windres"
15629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15630 break 2
15631 fi
15632done
15633done
15634
15635fi
15636fi
15637ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15638if test -n "$ac_ct_WINDRES"; then
15639 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15640echo "${ECHO_T}$ac_ct_WINDRES" >&6
15641else
15642 echo "$as_me:$LINENO: result: no" >&5
15643echo "${ECHO_T}no" >&6
15644fi
15645
15646 WINDRES=$ac_ct_WINDRES
15647else
15648 WINDRES="$ac_cv_prog_WINDRES"
15649fi
15650
15651 RESCOMP="$WINDRES"
15652 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15653 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15654set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15655echo "$as_me:$LINENO: checking for $ac_word" >&5
15656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15657if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15658 echo $ECHO_N "(cached) $ECHO_C" >&6
15659else
15660 if test -n "$DLLTOOL"; then
15661 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15662else
15663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15664for as_dir in $PATH
15665do
15666 IFS=$as_save_IFS
15667 test -z "$as_dir" && as_dir=.
15668 for ac_exec_ext in '' $ac_executable_extensions; do
15669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15670 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15672 break 2
15673 fi
15674done
15675done
15676
15677fi
15678fi
15679DLLTOOL=$ac_cv_prog_DLLTOOL
15680if test -n "$DLLTOOL"; then
15681 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15682echo "${ECHO_T}$DLLTOOL" >&6
15683else
15684 echo "$as_me:$LINENO: result: no" >&5
15685echo "${ECHO_T}no" >&6
15686fi
15687
15688fi
15689if test -z "$ac_cv_prog_DLLTOOL"; then
15690 ac_ct_DLLTOOL=$DLLTOOL
15691 # Extract the first word of "dlltool", so it can be a program name with args.
15692set dummy dlltool; ac_word=$2
15693echo "$as_me:$LINENO: checking for $ac_word" >&5
15694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15695if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15696 echo $ECHO_N "(cached) $ECHO_C" >&6
15697else
15698 if test -n "$ac_ct_DLLTOOL"; then
15699 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15700else
15701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15702for as_dir in $PATH
15703do
15704 IFS=$as_save_IFS
15705 test -z "$as_dir" && as_dir=.
15706 for ac_exec_ext in '' $ac_executable_extensions; do
15707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15708 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15710 break 2
15711 fi
15712done
15713done
15714
15715fi
15716fi
15717ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15718if test -n "$ac_ct_DLLTOOL"; then
15719 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15720echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15721else
15722 echo "$as_me:$LINENO: result: no" >&5
15723echo "${ECHO_T}no" >&6
15724fi
15725
15726 DLLTOOL=$ac_ct_DLLTOOL
15727else
15728 DLLTOOL="$ac_cv_prog_DLLTOOL"
15729fi
15730
15731 ;;
15732 esac
15733fi
a848cd7e
SC
15734
15735echo "$as_me:$LINENO: checking if make is GNU make" >&5
15736echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15737if test "${wx_cv_prog_makeisgnu+set}" = set; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15739else
15740
15741 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
252a5022 15742 $EGREP -s GNU > /dev/null); then
a848cd7e
SC
15743 wx_cv_prog_makeisgnu="yes"
15744 else
15745 wx_cv_prog_makeisgnu="no"
15746 fi
15747
15748fi
15749echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15750echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15751
15752if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15753 IF_GNU_MAKE=""
15754else
15755 IF_GNU_MAKE="#"
15756fi
15757
15758
15759
15760if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15761echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15762echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15763if test "${wx_cv_prog_makevpath+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15765else
15766
15767cat - << EOF > confMake
15768check : file
15769 cp \$? \$@
15770 cp \$? final_file
15771EOF
15772
15773if test ! -d sub ; then
15774 mkdir sub
15775fi
15776echo dummy > sub/file
15777${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15778RESULT=$?
15779rm -f sub/file check final_file confMake
15780rmdir sub
15781if test "$RESULT" = 0; then
15782 wx_cv_prog_makevpath="yes"
15783else
15784 wx_cv_prog_makevpath="no"
15785fi
15786
15787fi
15788echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15789echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15790
15791if test "x$wx_cv_prog_makevpath" != "xyes"; then
15792{ { echo "$as_me:$LINENO: error:
15793You need a make-utility that is able to use the variable
15794VPATH correctly.
15795If your version of make does not support VPATH correctly,
15796please install GNU-make (possibly as gmake), and start
15797configure with the following command:
15798export MAKE=gmake; ./configure for sh-type shells
15799setenv MAKE gmake; ./configure for csh-type shells
15800Also please do remember to use gmake in this case every time
15801you are trying to compile.
15802" >&5
15803echo "$as_me: error:
15804You need a make-utility that is able to use the variable
15805VPATH correctly.
15806If your version of make does not support VPATH correctly,
15807please install GNU-make (possibly as gmake), and start
15808configure with the following command:
15809export MAKE=gmake; ./configure for sh-type shells
15810setenv MAKE gmake; ./configure for csh-type shells
15811Also please do remember to use gmake in this case every time
15812you are trying to compile.
15813" >&2;}
15814 { (exit 1); exit 1; }; }
15815fi fi
15816echo "$as_me:$LINENO: checking whether ln -s works" >&5
15817echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15818LN_S=$as_ln_s
15819if test "$LN_S" = "ln -s"; then
15820 echo "$as_me:$LINENO: result: yes" >&5
15821echo "${ECHO_T}yes" >&6
15822else
15823 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15824echo "${ECHO_T}no, using $LN_S" >&6
15825fi
15826
15827
bcaab0f9 15828
a848cd7e 15829
2113bc77 15830if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15831 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15832fi
15833
4d7ec9f1
DE
15834case "${host}" in
15835 powerpc-*-darwin* )
15836 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15837echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15838 cat >conftest.$ac_ext <<_ACEOF
15839/* confdefs.h. */
15840_ACEOF
15841cat confdefs.h >>conftest.$ac_ext
15842cat >>conftest.$ac_ext <<_ACEOF
15843/* end confdefs.h. */
15844
15845int
15846main ()
15847{
15848#ifndef __POWERPC__
15849 choke me for lack of PowerPC
15850#endif
15851
15852 ;
15853 return 0;
15854}
15855_ACEOF
15856rm -f conftest.$ac_objext
15857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15858 (eval $ac_compile) 2>conftest.er1
15859 ac_status=$?
15860 grep -v '^ *+' conftest.er1 >conftest.err
15861 rm -f conftest.er1
15862 cat conftest.err >&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } &&
fd5199d6 15865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15868 ac_status=$?
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; } &&
15871 { ac_try='test -s conftest.$ac_objext'
15872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15874 ac_status=$?
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; }; then
15877 echo "$as_me:$LINENO: result: yes" >&5
15878echo "${ECHO_T}yes" >&6
15879else
15880 echo "$as_me: failed program was:" >&5
15881sed 's/^/| /' conftest.$ac_ext >&5
15882
15883echo "$as_me:$LINENO: result: no" >&5
15884echo "${ECHO_T}no" >&6
15885 cat >>confdefs.h <<\_ACEOF
15886#define __POWERPC__ 1
15887_ACEOF
15888
15889
15890fi
15891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15892 ;;
15893esac
15894
15895case "${host}" in
15896 *-*-darwin* )
4d7ec9f1
DE
15897 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15898echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15899 cat >conftest.$ac_ext <<_ACEOF
15900/* confdefs.h. */
15901_ACEOF
15902cat confdefs.h >>conftest.$ac_ext
15903cat >>conftest.$ac_ext <<_ACEOF
15904/* end confdefs.h. */
15905#include <CoreFoundation/CFBase.h>
15906
15907int
15908main ()
15909{
15910
15911 ;
15912 return 0;
15913}
15914_ACEOF
15915rm -f conftest.$ac_objext
15916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15917 (eval $ac_compile) 2>conftest.er1
15918 ac_status=$?
15919 grep -v '^ *+' conftest.er1 >conftest.err
15920 rm -f conftest.er1
15921 cat conftest.err >&5
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); } &&
fd5199d6 15924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926 (eval $ac_try) 2>&5
15927 ac_status=$?
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; } &&
15930 { ac_try='test -s conftest.$ac_objext'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15933 ac_status=$?
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; }; then
15936 echo "$as_me:$LINENO: result: yes" >&5
15937echo "${ECHO_T}yes" >&6
15938else
15939 echo "$as_me: failed program was:" >&5
15940sed 's/^/| /' conftest.$ac_ext >&5
15941
15942echo "$as_me:$LINENO: result: no" >&5
15943echo "${ECHO_T}no" >&6
15944 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15945echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15946 cat >conftest.$ac_ext <<_ACEOF
15947/* confdefs.h. */
15948_ACEOF
15949cat confdefs.h >>conftest.$ac_ext
15950cat >>conftest.$ac_ext <<_ACEOF
15951/* end confdefs.h. */
15952#define __CF_USE_FRAMEWORK_INCLUDES__
15953#include <CoreFoundation/CFBase.h>
15954
15955int
15956main ()
15957{
15958
15959 ;
15960 return 0;
15961}
15962_ACEOF
15963rm -f conftest.$ac_objext
15964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15965 (eval $ac_compile) 2>conftest.er1
15966 ac_status=$?
15967 grep -v '^ *+' conftest.er1 >conftest.err
15968 rm -f conftest.er1
15969 cat conftest.err >&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); } &&
fd5199d6 15972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974 (eval $ac_try) 2>&5
15975 ac_status=$?
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; } &&
15978 { ac_try='test -s conftest.$ac_objext'
15979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15980 (eval $ac_try) 2>&5
15981 ac_status=$?
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); }; }; then
15984 echo "$as_me:$LINENO: result: yes" >&5
15985echo "${ECHO_T}yes" >&6
c92ad099 15986 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15987else
15988 echo "$as_me: failed program was:" >&5
15989sed 's/^/| /' conftest.$ac_ext >&5
15990
15991{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15992See \`config.log' for more details." >&5
15993echo "$as_me: error: no. CoreFoundation not available.
15994See \`config.log' for more details." >&2;}
15995 { (exit 1); exit 1; }; }
15996
15997fi
15998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15999
16000
16001fi
16002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16003 ;;
16004esac
16005
8bf7f1a9
VZ
16006wants_win32=0
16007doesnt_want_win32=0
16008case "${host}" in
16009 *-*-cygwin*)
16010 if test "$wxUSE_MSW" = 1 ; then
16011 wants_win32=1
16012 else
16013 echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
16014echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6
16015if test "${wx_cv_nocygwin+set}" = set; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16017else
16018
16019 cat >conftest.$ac_ext <<_ACEOF
16020/* confdefs.h. */
16021_ACEOF
16022cat confdefs.h >>conftest.$ac_ext
16023cat >>conftest.$ac_ext <<_ACEOF
16024/* end confdefs.h. */
16025
16026int
16027main ()
16028{
16029
16030 #ifdef __MINGW32__
16031 choke me
16032 #endif
16033
16034 ;
16035 return 0;
16036}
16037_ACEOF
16038rm -f conftest.$ac_objext
16039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16040 (eval $ac_compile) 2>conftest.er1
16041 ac_status=$?
16042 grep -v '^ *+' conftest.er1 >conftest.err
16043 rm -f conftest.er1
16044 cat conftest.err >&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } &&
fd5199d6 16047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8bf7f1a9
VZ
16048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049 (eval $ac_try) 2>&5
16050 ac_status=$?
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; } &&
16053 { ac_try='test -s conftest.$ac_objext'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16056 ac_status=$?
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; }; then
16059 wx_cv_nocygwin=no
16060else
16061 echo "$as_me: failed program was:" >&5
16062sed 's/^/| /' conftest.$ac_ext >&5
16063
16064wx_cv_nocygwin=yes
16065
16066fi
16067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16068
16069
16070fi
16071echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
16072echo "${ECHO_T}$wx_cv_nocygwin" >&6
16073
16074 if test "$wx_cv_nocygwin" = "yes"; then
16075 wants_win32=1
16076 else
16077 doesnt_want_win32=1
16078 fi
16079 fi
16080 if test "$wants_win32" = 1 ; then
16081 BAKEFILE_FORCE_PLATFORM=win32
16082 fi
16083 ;;
16084 *-*-mingw*)
16085 wants_win32=1
16086 ;;
16087esac
16088
16089if test "$wxUSE_WINE" = "yes"; then
16090 wants_win32=1
8bf7f1a9
VZ
16091 LDFLAGS_GUI="-mwindows"
16092fi
16093
16094if test "$wants_win32" = 1 ; then
16095 USE_UNIX=0
16096 USE_WIN32=1
16097 cat >>confdefs.h <<\_ACEOF
16098#define __WIN32__ 1
16099_ACEOF
16100
16101 cat >>confdefs.h <<\_ACEOF
16102#define __WIN95__ 1
16103_ACEOF
16104
16105 cat >>confdefs.h <<\_ACEOF
16106#define __WINDOWS__ 1
16107_ACEOF
16108
16109 cat >>confdefs.h <<\_ACEOF
16110#define __GNUWIN32__ 1
16111_ACEOF
16112
16113 cat >>confdefs.h <<\_ACEOF
16114#define STRICT 1
16115_ACEOF
16116
16117fi
16118if test "$doesnt_want_win32" = 1 ; then
16119 USE_UNIX=1
16120 USE_WIN32=0
16121fi
16122
16123if test "$USE_UNIX" = 1 ; then
16124 wxUSE_UNIX=yes
16125 cat >>confdefs.h <<\_ACEOF
16126#define __UNIX__ 1
16127_ACEOF
16128
16129fi
16130
a848cd7e
SC
16131case "${host}" in
16132 *-pc-os2_emx | *-pc-os2-emx )
fd5199d6 16133 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
16134 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
16135echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
16136if test "${ac_cv_lib_cExt_drand48+set}" = set; then
16137 echo $ECHO_N "(cached) $ECHO_C" >&6
16138else
16139 ac_check_lib_save_LIBS=$LIBS
16140LIBS="-lcExt $LIBS"
16141cat >conftest.$ac_ext <<_ACEOF
16142/* confdefs.h. */
16143_ACEOF
16144cat confdefs.h >>conftest.$ac_ext
16145cat >>conftest.$ac_ext <<_ACEOF
16146/* end confdefs.h. */
16147
16148/* Override any gcc2 internal prototype to avoid an error. */
16149#ifdef __cplusplus
16150extern "C"
16151#endif
16152/* We use char because int might match the return type of a gcc2
16153 builtin and then its argument prototype would still apply. */
16154char drand48 ();
16155int
16156main ()
16157{
16158drand48 ();
16159 ;
16160 return 0;
16161}
16162_ACEOF
16163rm -f conftest.$ac_objext conftest$ac_exeext
16164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16165 (eval $ac_link) 2>conftest.er1
a848cd7e 16166 ac_status=$?
ac1cb8d3
VS
16167 grep -v '^ *+' conftest.er1 >conftest.err
16168 rm -f conftest.er1
16169 cat conftest.err >&5
a848cd7e
SC
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } &&
bb9e79c0 16172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16175 ac_status=$?
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; } &&
16178 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180 (eval $ac_try) 2>&5
16181 ac_status=$?
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; }; then
16184 ac_cv_lib_cExt_drand48=yes
16185else
16186 echo "$as_me: failed program was:" >&5
16187sed 's/^/| /' conftest.$ac_ext >&5
16188
16189ac_cv_lib_cExt_drand48=no
16190fi
ac1cb8d3
VS
16191rm -f conftest.err conftest.$ac_objext \
16192 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16193LIBS=$ac_check_lib_save_LIBS
16194fi
16195echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
16196echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
16197if test $ac_cv_lib_cExt_drand48 = yes; then
16198 LIBS="$LIBS -lcExt"
16199fi
16200
16201 else
16202 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
16203 fi
69120ee4
VZ
16204 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
16205echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
16206if test "${wx_cv_gccversion+set}" = set; then
16207 echo $ECHO_N "(cached) $ECHO_C" >&6
16208else
16209
391a765e
VS
16210 if test "$cross_compiling" = yes; then
16211 wx_cv_gccversion="EMX2"
16212
16213else
16214 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
16215/* confdefs.h. */
16216_ACEOF
16217cat confdefs.h >>conftest.$ac_ext
16218cat >>conftest.$ac_ext <<_ACEOF
16219/* end confdefs.h. */
16220
391a765e 16221 #include <stdio.h>
a848cd7e 16222
391a765e
VS
16223 int main()
16224 {
16225 FILE *f=fopen("conftestval", "w");
16226 if (!f) exit(1);
16227 fprintf(f,
a848cd7e 16228 #if (__GNUC__ < 3)
391a765e
VS
16229 "EMX2"
16230 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
16231 "EMX3"
16232 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
16233 "Innotek5"
16234 #else
16235 "Innotek6"
a848cd7e 16236 #endif
5039a2df 16237 );
391a765e
VS
16238 exit(0);
16239 }
a848cd7e 16240
a848cd7e 16241_ACEOF
391a765e
VS
16242rm -f conftest$ac_exeext
16243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16244 (eval $ac_link) 2>&5
ac1cb8d3
VS
16245 ac_status=$?
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 16247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; }; then
391a765e 16253 wx_cv_gccversion=`cat conftestval`
a848cd7e 16254else
391a765e
VS
16255 echo "$as_me: program exited with status $ac_status" >&5
16256echo "$as_me: failed program was:" >&5
a848cd7e
SC
16257sed 's/^/| /' conftest.$ac_ext >&5
16258
391a765e
VS
16259( exit $ac_status )
16260wx_cv_gccversion="EMX2"
a848cd7e 16261fi
391a765e 16262rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 16263fi
a848cd7e
SC
16264
16265fi
16266echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
16267echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 16268 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
16269 LIBS="$LIBS -lstdcpp"
16270 LDFLAGS="$LDFLAGS -Zsysv-signals"
16271 else
391a765e 16272 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 16273 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
16274 LDFLAGS="$LDFLAGS -Zsysv-signals"
16275 else
16276 LIBS="$LIBS -lstdc++"
16277 fi
16278 fi
94acd38e
DE
16279 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
16280 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
16281echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
16282 wxUSE_OMF=yes
ec3edcc9 16283 enable_omf=yes
a848cd7e
SC
16284 fi
16285 ;;
16286 *)
16287
95986553 16288 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
16289echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
16290if test "${ac_cv_string_strcasecmp+set}" = set; then
16291 echo $ECHO_N "(cached) $ECHO_C" >&6
16292else
16293
16294 cat >conftest.$ac_ext <<_ACEOF
16295/* confdefs.h. */
16296_ACEOF
16297cat confdefs.h >>conftest.$ac_ext
16298cat >>conftest.$ac_ext <<_ACEOF
16299/* end confdefs.h. */
16300
16301 #include <string.h>
16302
16303int
16304main ()
16305{
16306
16307 strcasecmp("foo", "bar");
16308
16309 ;
16310 return 0;
16311}
16312_ACEOF
16313rm -f conftest.$ac_objext conftest$ac_exeext
16314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16315 (eval $ac_link) 2>conftest.er1
a848cd7e 16316 ac_status=$?
ac1cb8d3
VS
16317 grep -v '^ *+' conftest.er1 >conftest.err
16318 rm -f conftest.er1
16319 cat conftest.err >&5
a848cd7e
SC
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } &&
fd5199d6 16322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324 (eval $ac_try) 2>&5
16325 ac_status=$?
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); }; } &&
16328 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ac_cv_string_strcasecmp=yes
16335else
16336 echo "$as_me: failed program was:" >&5
16337sed 's/^/| /' conftest.$ac_ext >&5
16338
16339ac_cv_string_strcasecmp=no
16340
16341fi
ac1cb8d3
VS
16342rm -f conftest.err conftest.$ac_objext \
16343 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16344
16345fi
16346echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
16347echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
16348
16349 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
16350 cat >>confdefs.h <<\_ACEOF
16351#define HAVE_STRCASECMP_IN_STRING_H 1
16352_ACEOF
16353
16354 else
16355 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
16356echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
16357if test "${ac_cv_strings_strcasecmp+set}" = set; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16359else
16360
16361 cat >conftest.$ac_ext <<_ACEOF
16362/* confdefs.h. */
16363_ACEOF
16364cat confdefs.h >>conftest.$ac_ext
16365cat >>conftest.$ac_ext <<_ACEOF
16366/* end confdefs.h. */
16367
16368 #include <strings.h>
16369
16370int
16371main ()
16372{
16373
16374 strcasecmp("foo", "bar");
16375
16376 ;
16377 return 0;
16378}
16379_ACEOF
16380rm -f conftest.$ac_objext conftest$ac_exeext
16381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16382 (eval $ac_link) 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); } &&
fd5199d6 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_exeext'
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_cv_strings_strcasecmp=yes
16402else
16403 echo "$as_me: failed program was:" >&5
16404sed 's/^/| /' conftest.$ac_ext >&5
16405
16406ac_cv_strings_strcasecmp=no
16407
16408fi
ac1cb8d3
VS
16409rm -f conftest.err conftest.$ac_objext \
16410 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16411
16412fi
16413echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
16414echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
16415
0c3c69fc 16416 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
16417 cat >>confdefs.h <<\_ACEOF
16418#define HAVE_STRCASECMP_IN_STRINGS_H 1
16419_ACEOF
16420
16421 else
16422 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
16423echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
16424 { (exit 1); exit 1; }; }
16425 fi
16426 fi
16427
a848cd7e
SC
16428 ;;
16429esac
16430
16431
16432echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16433echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16434if test "${ac_cv_header_stdc+set}" = set; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16436else
16437 cat >conftest.$ac_ext <<_ACEOF
16438/* confdefs.h. */
16439_ACEOF
16440cat confdefs.h >>conftest.$ac_ext
16441cat >>conftest.$ac_ext <<_ACEOF
16442/* end confdefs.h. */
16443#include <stdlib.h>
16444#include <stdarg.h>
16445#include <string.h>
16446#include <float.h>
16447
16448int
16449main ()
16450{
16451
16452 ;
16453 return 0;
16454}
16455_ACEOF
16456rm -f conftest.$ac_objext
16457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16458 (eval $ac_compile) 2>conftest.er1
a848cd7e 16459 ac_status=$?
ac1cb8d3
VS
16460 grep -v '^ *+' conftest.er1 >conftest.err
16461 rm -f conftest.er1
16462 cat conftest.err >&5
a848cd7e
SC
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); } &&
fd5199d6 16465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467 (eval $ac_try) 2>&5
16468 ac_status=$?
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); }; } &&
16471 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16473 (eval $ac_try) 2>&5
16474 ac_status=$?
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; }; then
16477 ac_cv_header_stdc=yes
16478else
16479 echo "$as_me: failed program was:" >&5
16480sed 's/^/| /' conftest.$ac_ext >&5
16481
16482ac_cv_header_stdc=no
16483fi
ac1cb8d3 16484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16485
16486if test $ac_cv_header_stdc = yes; then
16487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16488 cat >conftest.$ac_ext <<_ACEOF
16489/* confdefs.h. */
16490_ACEOF
16491cat confdefs.h >>conftest.$ac_ext
16492cat >>conftest.$ac_ext <<_ACEOF
16493/* end confdefs.h. */
16494#include <string.h>
16495
16496_ACEOF
16497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16498 $EGREP "memchr" >/dev/null 2>&1; then
16499 :
16500else
16501 ac_cv_header_stdc=no
16502fi
16503rm -f conftest*
16504
16505fi
16506
16507if test $ac_cv_header_stdc = yes; then
16508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16509 cat >conftest.$ac_ext <<_ACEOF
16510/* confdefs.h. */
16511_ACEOF
16512cat confdefs.h >>conftest.$ac_ext
16513cat >>conftest.$ac_ext <<_ACEOF
16514/* end confdefs.h. */
16515#include <stdlib.h>
16516
16517_ACEOF
16518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16519 $EGREP "free" >/dev/null 2>&1; then
16520 :
16521else
16522 ac_cv_header_stdc=no
16523fi
16524rm -f conftest*
16525
16526fi
16527
16528if test $ac_cv_header_stdc = yes; then
16529 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16530 if test "$cross_compiling" = yes; then
16531 :
16532else
16533 cat >conftest.$ac_ext <<_ACEOF
16534/* confdefs.h. */
16535_ACEOF
16536cat confdefs.h >>conftest.$ac_ext
16537cat >>conftest.$ac_ext <<_ACEOF
16538/* end confdefs.h. */
16539#include <ctype.h>
16540#if ((' ' & 0x0FF) == 0x020)
16541# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16542# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16543#else
16544# define ISLOWER(c) \
ac1cb8d3
VS
16545 (('a' <= (c) && (c) <= 'i') \
16546 || ('j' <= (c) && (c) <= 'r') \
16547 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16548# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16549#endif
16550
16551#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16552int
16553main ()
16554{
16555 int i;
16556 for (i = 0; i < 256; i++)
16557 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16558 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16559 exit(2);
16560 exit (0);
16561}
16562_ACEOF
16563rm -f conftest$ac_exeext
16564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16565 (eval $ac_link) 2>&5
16566 ac_status=$?
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; }; then
16574 :
16575else
16576 echo "$as_me: program exited with status $ac_status" >&5
16577echo "$as_me: failed program was:" >&5
16578sed 's/^/| /' conftest.$ac_ext >&5
16579
16580( exit $ac_status )
16581ac_cv_header_stdc=no
16582fi
ac1cb8d3 16583rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16584fi
16585fi
16586fi
16587echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16588echo "${ECHO_T}$ac_cv_header_stdc" >&6
16589if test $ac_cv_header_stdc = yes; then
16590
16591cat >>confdefs.h <<\_ACEOF
16592#define STDC_HEADERS 1
16593_ACEOF
16594
16595fi
16596
16597# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16608 inttypes.h stdint.h unistd.h
a848cd7e
SC
16609do
16610as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16611echo "$as_me:$LINENO: checking for $ac_header" >&5
16612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16613if eval "test \"\${$as_ac_Header+set}\" = set"; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16615else
16616 cat >conftest.$ac_ext <<_ACEOF
16617/* confdefs.h. */
16618_ACEOF
16619cat confdefs.h >>conftest.$ac_ext
16620cat >>conftest.$ac_ext <<_ACEOF
16621/* end confdefs.h. */
16622$ac_includes_default
16623
16624#include <$ac_header>
16625_ACEOF
16626rm -f conftest.$ac_objext
16627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16628 (eval $ac_compile) 2>conftest.er1
a848cd7e 16629 ac_status=$?
ac1cb8d3
VS
16630 grep -v '^ *+' conftest.er1 >conftest.err
16631 rm -f conftest.er1
16632 cat conftest.err >&5
a848cd7e
SC
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } &&
fd5199d6 16635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16637 (eval $ac_try) 2>&5
16638 ac_status=$?
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; } &&
16641 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16643 (eval $ac_try) 2>&5
16644 ac_status=$?
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); }; }; then
16647 eval "$as_ac_Header=yes"
16648else
16649 echo "$as_me: failed program was:" >&5
16650sed 's/^/| /' conftest.$ac_ext >&5
16651
16652eval "$as_ac_Header=no"
16653fi
ac1cb8d3 16654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16655fi
16656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16658if test `eval echo '${'$as_ac_Header'}'` = yes; then
16659 cat >>confdefs.h <<_ACEOF
16660#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16661_ACEOF
16662
16663fi
16664
16665done
16666
16667
16668
a848cd7e 16669
a848cd7e 16670
a848cd7e
SC
16671
16672
a848cd7e 16673
55e34571 16674for ac_header in stdlib.h fnmatch.h langinfo.h malloc.h unistd.h wchar.h
a848cd7e
SC
16675do
16676as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16677if eval "test \"\${$as_ac_Header+set}\" = set"; then
16678 echo "$as_me:$LINENO: checking for $ac_header" >&5
16679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16680if eval "test \"\${$as_ac_Header+set}\" = set"; then
16681 echo $ECHO_N "(cached) $ECHO_C" >&6
16682fi
16683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16685else
16686 # Is the header compilable?
16687echo "$as_me:$LINENO: checking $ac_header usability" >&5
16688echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16689cat >conftest.$ac_ext <<_ACEOF
16690/* confdefs.h. */
16691_ACEOF
16692cat confdefs.h >>conftest.$ac_ext
16693cat >>conftest.$ac_ext <<_ACEOF
16694/* end confdefs.h. */
16695$ac_includes_default
16696#include <$ac_header>
16697_ACEOF
16698rm -f conftest.$ac_objext
16699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16700 (eval $ac_compile) 2>conftest.er1
a848cd7e 16701 ac_status=$?
ac1cb8d3
VS
16702 grep -v '^ *+' conftest.er1 >conftest.err
16703 rm -f conftest.er1
16704 cat conftest.err >&5
a848cd7e
SC
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); } &&
fd5199d6 16707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16709 (eval $ac_try) 2>&5
16710 ac_status=$?
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; } &&
16713 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715 (eval $ac_try) 2>&5
16716 ac_status=$?
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; }; then
16719 ac_header_compiler=yes
16720else
16721 echo "$as_me: failed program was:" >&5
16722sed 's/^/| /' conftest.$ac_ext >&5
16723
16724ac_header_compiler=no
16725fi
ac1cb8d3 16726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16727echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16728echo "${ECHO_T}$ac_header_compiler" >&6
16729
16730# Is the header present?
16731echo "$as_me:$LINENO: checking $ac_header presence" >&5
16732echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16733cat >conftest.$ac_ext <<_ACEOF
16734/* confdefs.h. */
16735_ACEOF
16736cat confdefs.h >>conftest.$ac_ext
16737cat >>conftest.$ac_ext <<_ACEOF
16738/* end confdefs.h. */
16739#include <$ac_header>
16740_ACEOF
16741if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16743 ac_status=$?
16744 grep -v '^ *+' conftest.er1 >conftest.err
16745 rm -f conftest.er1
16746 cat conftest.err >&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } >/dev/null; then
16749 if test -s conftest.err; then
fd5199d6
VZ
16750 ac_cpp_err=$ac_c_preproc_warn_flag
16751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16752 else
16753 ac_cpp_err=
16754 fi
16755else
16756 ac_cpp_err=yes
16757fi
16758if test -z "$ac_cpp_err"; then
16759 ac_header_preproc=yes
16760else
16761 echo "$as_me: failed program was:" >&5
16762sed 's/^/| /' conftest.$ac_ext >&5
16763
16764 ac_header_preproc=no
16765fi
16766rm -f conftest.err conftest.$ac_ext
16767echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16768echo "${ECHO_T}$ac_header_preproc" >&6
16769
16770# So? What about this header?
fd5199d6 16771case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 16772 yes:no: )
a848cd7e
SC
16773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16774echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16776echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16777 ac_header_preproc=yes
a848cd7e 16778 ;;
ac1cb8d3 16779 no:yes:* )
a848cd7e
SC
16780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16781echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16783echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16784 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16785echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16786 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16787echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16789echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16790 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16791echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16792 (
16793 cat <<\_ASBOX
ac1cb8d3
VS
16794## ----------------------------------------- ##
16795## Report this to wx-dev@lists.wxwidgets.org ##
16796## ----------------------------------------- ##
a848cd7e
SC
16797_ASBOX
16798 ) |
16799 sed "s/^/$as_me: WARNING: /" >&2
16800 ;;
16801esac
16802echo "$as_me:$LINENO: checking for $ac_header" >&5
16803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16804if eval "test \"\${$as_ac_Header+set}\" = set"; then
16805 echo $ECHO_N "(cached) $ECHO_C" >&6
16806else
ac1cb8d3 16807 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16808fi
16809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16811
16812fi
16813if test `eval echo '${'$as_ac_Header'}'` = yes; then
16814 cat >>confdefs.h <<_ACEOF
16815#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16816_ACEOF
16817
16818fi
16819
16820done
16821
a848cd7e 16822
55e34571 16823if test "$ac_cv_header_wchar_h" != "yes"; then
a848cd7e 16824
55e34571 16825for ac_header in wcstr.h
a848cd7e
SC
16826do
16827as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16828if eval "test \"\${$as_ac_Header+set}\" = set"; then
16829 echo "$as_me:$LINENO: checking for $ac_header" >&5
16830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16831if eval "test \"\${$as_ac_Header+set}\" = set"; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16833fi
16834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16835echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16836else
16837 # Is the header compilable?
16838echo "$as_me:$LINENO: checking $ac_header usability" >&5
16839echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16840cat >conftest.$ac_ext <<_ACEOF
16841/* confdefs.h. */
16842_ACEOF
16843cat confdefs.h >>conftest.$ac_ext
16844cat >>conftest.$ac_ext <<_ACEOF
16845/* end confdefs.h. */
16846$ac_includes_default
16847#include <$ac_header>
16848_ACEOF
16849rm -f conftest.$ac_objext
16850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16851 (eval $ac_compile) 2>conftest.er1
a848cd7e 16852 ac_status=$?
ac1cb8d3
VS
16853 grep -v '^ *+' conftest.er1 >conftest.err
16854 rm -f conftest.er1
16855 cat conftest.err >&5
a848cd7e
SC
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
fd5199d6 16858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; } &&
16864 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16866 (eval $ac_try) 2>&5
16867 ac_status=$?
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; }; then
16870 ac_header_compiler=yes
16871else
16872 echo "$as_me: failed program was:" >&5
16873sed 's/^/| /' conftest.$ac_ext >&5
16874
16875ac_header_compiler=no
16876fi
ac1cb8d3 16877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16878echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16879echo "${ECHO_T}$ac_header_compiler" >&6
16880
16881# Is the header present?
16882echo "$as_me:$LINENO: checking $ac_header presence" >&5
16883echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16884cat >conftest.$ac_ext <<_ACEOF
16885/* confdefs.h. */
16886_ACEOF
16887cat confdefs.h >>conftest.$ac_ext
16888cat >>conftest.$ac_ext <<_ACEOF
16889/* end confdefs.h. */
16890#include <$ac_header>
16891_ACEOF
16892if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16894 ac_status=$?
16895 grep -v '^ *+' conftest.er1 >conftest.err
16896 rm -f conftest.er1
16897 cat conftest.err >&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } >/dev/null; then
16900 if test -s conftest.err; then
fd5199d6
VZ
16901 ac_cpp_err=$ac_c_preproc_warn_flag
16902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16903 else
16904 ac_cpp_err=
16905 fi
16906else
16907 ac_cpp_err=yes
16908fi
16909if test -z "$ac_cpp_err"; then
16910 ac_header_preproc=yes
16911else
16912 echo "$as_me: failed program was:" >&5
16913sed 's/^/| /' conftest.$ac_ext >&5
16914
16915 ac_header_preproc=no
16916fi
16917rm -f conftest.err conftest.$ac_ext
16918echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16919echo "${ECHO_T}$ac_header_preproc" >&6
16920
16921# So? What about this header?
fd5199d6 16922case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 16923 yes:no: )
a848cd7e
SC
16924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16925echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16927echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16928 ac_header_preproc=yes
a848cd7e 16929 ;;
ac1cb8d3 16930 no:yes:* )
a848cd7e
SC
16931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16932echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16934echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16936echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16938echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16940echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16942echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16943 (
16944 cat <<\_ASBOX
ac1cb8d3
VS
16945## ----------------------------------------- ##
16946## Report this to wx-dev@lists.wxwidgets.org ##
16947## ----------------------------------------- ##
a848cd7e
SC
16948_ASBOX
16949 ) |
16950 sed "s/^/$as_me: WARNING: /" >&2
16951 ;;
16952esac
16953echo "$as_me:$LINENO: checking for $ac_header" >&5
16954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16955if eval "test \"\${$as_ac_Header+set}\" = set"; then
16956 echo $ECHO_N "(cached) $ECHO_C" >&6
16957else
ac1cb8d3 16958 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16959fi
16960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16962
16963fi
16964if test `eval echo '${'$as_ac_Header'}'` = yes; then
16965 cat >>confdefs.h <<_ACEOF
16966#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16967_ACEOF
16968
16969fi
16970
16971done
16972
a848cd7e
SC
16973fi
16974
a848cd7e
SC
16975case "${host}" in
16976 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16977 if test $ac_cv_header_langinfo_h = "yes" \
16978 -a \( "$wx_cv_gccversion" = "EMX2" \
16979 -o "$wx_cv_gccversion" = "EMX3" \
16980 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16981 LIBS="$LIBS -lintl"
16982 fi
16983 ;;
16984esac
16985
bc023abb
MW
16986if test "$USE_UNIX" = 1 ; then
16987
16988for ac_header in sys/select.h
16989do
16990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16991if eval "test \"\${$as_ac_Header+set}\" = set"; then
16992 echo "$as_me:$LINENO: checking for $ac_header" >&5
16993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16994if eval "test \"\${$as_ac_Header+set}\" = set"; then
16995 echo $ECHO_N "(cached) $ECHO_C" >&6
16996fi
16997echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16998echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16999else
17000 # Is the header compilable?
17001echo "$as_me:$LINENO: checking $ac_header usability" >&5
17002echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17003cat >conftest.$ac_ext <<_ACEOF
17004/* confdefs.h. */
17005_ACEOF
17006cat confdefs.h >>conftest.$ac_ext
17007cat >>conftest.$ac_ext <<_ACEOF
17008/* end confdefs.h. */
17009$ac_includes_default
17010#include <$ac_header>
17011_ACEOF
17012rm -f conftest.$ac_objext
17013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17014 (eval $ac_compile) 2>conftest.er1
17015 ac_status=$?
17016 grep -v '^ *+' conftest.er1 >conftest.err
17017 rm -f conftest.er1
17018 cat conftest.err >&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); } &&
fd5199d6 17021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bc023abb
MW
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17024 ac_status=$?
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; } &&
17027 { ac_try='test -s conftest.$ac_objext'
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17030 ac_status=$?
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 ac_header_compiler=yes
17034else
17035 echo "$as_me: failed program was:" >&5
17036sed 's/^/| /' conftest.$ac_ext >&5
17037
17038ac_header_compiler=no
17039fi
17040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17041echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17042echo "${ECHO_T}$ac_header_compiler" >&6
17043
17044# Is the header present?
17045echo "$as_me:$LINENO: checking $ac_header presence" >&5
17046echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17047cat >conftest.$ac_ext <<_ACEOF
17048/* confdefs.h. */
17049_ACEOF
17050cat confdefs.h >>conftest.$ac_ext
17051cat >>conftest.$ac_ext <<_ACEOF
17052/* end confdefs.h. */
17053#include <$ac_header>
17054_ACEOF
17055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17057 ac_status=$?
17058 grep -v '^ *+' conftest.er1 >conftest.err
17059 rm -f conftest.er1
17060 cat conftest.err >&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } >/dev/null; then
17063 if test -s conftest.err; then
fd5199d6
VZ
17064 ac_cpp_err=$ac_c_preproc_warn_flag
17065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
bc023abb
MW
17066 else
17067 ac_cpp_err=
17068 fi
17069else
17070 ac_cpp_err=yes
17071fi
17072if test -z "$ac_cpp_err"; then
17073 ac_header_preproc=yes
17074else
17075 echo "$as_me: failed program was:" >&5
17076sed 's/^/| /' conftest.$ac_ext >&5
17077
17078 ac_header_preproc=no
17079fi
17080rm -f conftest.err conftest.$ac_ext
17081echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17082echo "${ECHO_T}$ac_header_preproc" >&6
17083
17084# So? What about this header?
fd5199d6 17085case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
bc023abb
MW
17086 yes:no: )
17087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17088echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17090echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17091 ac_header_preproc=yes
17092 ;;
17093 no:yes:* )
17094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17095echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17097echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17099echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17101echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17103echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17105echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17106 (
17107 cat <<\_ASBOX
17108## ----------------------------------------- ##
17109## Report this to wx-dev@lists.wxwidgets.org ##
17110## ----------------------------------------- ##
17111_ASBOX
17112 ) |
17113 sed "s/^/$as_me: WARNING: /" >&2
17114 ;;
17115esac
17116echo "$as_me:$LINENO: checking for $ac_header" >&5
17117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17118if eval "test \"\${$as_ac_Header+set}\" = set"; then
17119 echo $ECHO_N "(cached) $ECHO_C" >&6
17120else
17121 eval "$as_ac_Header=\$ac_header_preproc"
17122fi
17123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17125
17126fi
17127if test `eval echo '${'$as_ac_Header'}'` = yes; then
17128 cat >>confdefs.h <<_ACEOF
17129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17130_ACEOF
17131
17132fi
17133
17134done
17135
17136fi
17137
a848cd7e
SC
17138
17139echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17140echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17141if test "${ac_cv_c_const+set}" = set; then
17142 echo $ECHO_N "(cached) $ECHO_C" >&6
17143else
17144 cat >conftest.$ac_ext <<_ACEOF
17145/* confdefs.h. */
17146_ACEOF
17147cat confdefs.h >>conftest.$ac_ext
17148cat >>conftest.$ac_ext <<_ACEOF
17149/* end confdefs.h. */
17150
17151int
17152main ()
17153{
17154/* FIXME: Include the comments suggested by Paul. */
17155#ifndef __cplusplus
17156 /* Ultrix mips cc rejects this. */
17157 typedef int charset[2];
17158 const charset x;
17159 /* SunOS 4.1.1 cc rejects this. */
17160 char const *const *ccp;
17161 char **p;
17162 /* NEC SVR4.0.2 mips cc rejects this. */
17163 struct point {int x, y;};
17164 static struct point const zero = {0,0};
17165 /* AIX XL C 1.02.0.0 rejects this.
17166 It does not let you subtract one const X* pointer from another in
17167 an arm of an if-expression whose if-part is not a constant
17168 expression */
17169 const char *g = "string";
17170 ccp = &g + (g ? g-g : 0);
17171 /* HPUX 7.0 cc rejects these. */
17172 ++ccp;
17173 p = (char**) ccp;
17174 ccp = (char const *const *) p;
17175 { /* SCO 3.2v4 cc rejects this. */
17176 char *t;
17177 char const *s = 0 ? (char *) 0 : (char const *) 0;
17178
17179 *t++ = 0;
17180 }
17181 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17182 int x[] = {25, 17};
17183 const int *foo = &x[0];
17184 ++foo;
17185 }
17186 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17187 typedef const int *iptr;
17188 iptr p = 0;
17189 ++p;
17190 }
17191 { /* AIX XL C 1.02.0.0 rejects this saying
17192 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17193 struct s { int j; const int *ap[3]; };
17194 struct s *b; b->j = 5;
17195 }
17196 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17197 const int foo = 10;
17198 }
17199#endif
17200
17201 ;
17202 return 0;
17203}
17204_ACEOF
17205rm -f conftest.$ac_objext
17206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17207 (eval $ac_compile) 2>conftest.er1
a848cd7e 17208 ac_status=$?
ac1cb8d3
VS
17209 grep -v '^ *+' conftest.er1 >conftest.err
17210 rm -f conftest.er1
17211 cat conftest.err >&5
a848cd7e
SC
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); } &&
fd5199d6 17214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216 (eval $ac_try) 2>&5
17217 ac_status=$?
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; } &&
17220 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222 (eval $ac_try) 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 ac_cv_c_const=yes
17227else
17228 echo "$as_me: failed program was:" >&5
17229sed 's/^/| /' conftest.$ac_ext >&5
17230
17231ac_cv_c_const=no
17232fi
ac1cb8d3 17233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17234fi
17235echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17236echo "${ECHO_T}$ac_cv_c_const" >&6
17237if test $ac_cv_c_const = no; then
17238
17239cat >>confdefs.h <<\_ACEOF
17240#define const
17241_ACEOF
17242
17243fi
17244
17245echo "$as_me:$LINENO: checking for inline" >&5
17246echo $ECHO_N "checking for inline... $ECHO_C" >&6
17247if test "${ac_cv_c_inline+set}" = set; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
17249else
17250 ac_cv_c_inline=no
17251for ac_kw in inline __inline__ __inline; do
17252 cat >conftest.$ac_ext <<_ACEOF
17253/* confdefs.h. */
17254_ACEOF
17255cat confdefs.h >>conftest.$ac_ext
17256cat >>conftest.$ac_ext <<_ACEOF
17257/* end confdefs.h. */
17258#ifndef __cplusplus
17259typedef int foo_t;
17260static $ac_kw foo_t static_foo () {return 0; }
17261$ac_kw foo_t foo () {return 0; }
17262#endif
17263
17264_ACEOF
17265rm -f conftest.$ac_objext
17266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17267 (eval $ac_compile) 2>conftest.er1
a848cd7e 17268 ac_status=$?
ac1cb8d3
VS
17269 grep -v '^ *+' conftest.er1 >conftest.err
17270 rm -f conftest.er1
17271 cat conftest.err >&5
a848cd7e
SC
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } &&
fd5199d6 17274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17276 (eval $ac_try) 2>&5
17277 ac_status=$?
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); }; } &&
17280 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17283 ac_status=$?
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; }; then
17286 ac_cv_c_inline=$ac_kw; break
17287else
17288 echo "$as_me: failed program was:" >&5
17289sed 's/^/| /' conftest.$ac_ext >&5
17290
17291fi
ac1cb8d3 17292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17293done
17294
17295fi
17296echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17297echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17298
17299
a848cd7e
SC
17300case $ac_cv_c_inline in
17301 inline | yes) ;;
ac1cb8d3
VS
17302 *)
17303 case $ac_cv_c_inline in
17304 no) ac_val=;;
17305 *) ac_val=$ac_cv_c_inline;;
17306 esac
17307 cat >>confdefs.h <<_ACEOF
17308#ifndef __cplusplus
17309#define inline $ac_val
17310#endif
de59c161 17311_ACEOF
ac1cb8d3 17312 ;;
a848cd7e
SC
17313esac
17314
17315
17316echo "$as_me:$LINENO: checking for char" >&5
17317echo $ECHO_N "checking for char... $ECHO_C" >&6
17318if test "${ac_cv_type_char+set}" = set; then
17319 echo $ECHO_N "(cached) $ECHO_C" >&6
17320else
17321 cat >conftest.$ac_ext <<_ACEOF
17322/* confdefs.h. */
17323_ACEOF
17324cat confdefs.h >>conftest.$ac_ext
17325cat >>conftest.$ac_ext <<_ACEOF
17326/* end confdefs.h. */
17327$ac_includes_default
17328int
17329main ()
17330{
17331if ((char *) 0)
17332 return 0;
17333if (sizeof (char))
17334 return 0;
17335 ;
17336 return 0;
17337}
17338_ACEOF
17339rm -f conftest.$ac_objext
17340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17341 (eval $ac_compile) 2>conftest.er1
a848cd7e 17342 ac_status=$?
ac1cb8d3
VS
17343 grep -v '^ *+' conftest.er1 >conftest.err
17344 rm -f conftest.er1
17345 cat conftest.err >&5
a848cd7e
SC
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } &&
fd5199d6 17348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; } &&
17354 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356 (eval $ac_try) 2>&5
17357 ac_status=$?
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); }; }; then
17360 ac_cv_type_char=yes
17361else
17362 echo "$as_me: failed program was:" >&5
17363sed 's/^/| /' conftest.$ac_ext >&5
17364
17365ac_cv_type_char=no
17366fi
ac1cb8d3 17367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17368fi
17369echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17370echo "${ECHO_T}$ac_cv_type_char" >&6
17371
17372echo "$as_me:$LINENO: checking size of char" >&5
17373echo $ECHO_N "checking size of char... $ECHO_C" >&6
17374if test "${ac_cv_sizeof_char+set}" = set; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17376else
17377 if test "$ac_cv_type_char" = yes; then
17378 # The cast to unsigned long works around a bug in the HP C Compiler
17379 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17380 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17381 # This bug is HP SR number 8606223364.
17382 if test "$cross_compiling" = yes; then
17383 # Depending upon the size, compute the lo and hi bounds.
17384cat >conftest.$ac_ext <<_ACEOF
17385/* confdefs.h. */
17386_ACEOF
17387cat confdefs.h >>conftest.$ac_ext
17388cat >>conftest.$ac_ext <<_ACEOF
17389/* end confdefs.h. */
17390$ac_includes_default
17391int
17392main ()
17393{
17394static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17395test_array [0] = 0
17396
17397 ;
17398 return 0;
17399}
17400_ACEOF
17401rm -f conftest.$ac_objext
17402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17403 (eval $ac_compile) 2>conftest.er1
a848cd7e 17404 ac_status=$?
ac1cb8d3
VS
17405 grep -v '^ *+' conftest.er1 >conftest.err
17406 rm -f conftest.er1
17407 cat conftest.err >&5
a848cd7e
SC
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } &&
fd5199d6 17410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17413 ac_status=$?
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; } &&
17416 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17422 ac_lo=0 ac_mid=0
17423 while :; do
17424 cat >conftest.$ac_ext <<_ACEOF
17425/* confdefs.h. */
17426_ACEOF
17427cat confdefs.h >>conftest.$ac_ext
17428cat >>conftest.$ac_ext <<_ACEOF
17429/* end confdefs.h. */
17430$ac_includes_default
17431int
17432main ()
17433{
17434static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17435test_array [0] = 0
17436
17437 ;
17438 return 0;
17439}
17440_ACEOF
17441rm -f conftest.$ac_objext
17442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17443 (eval $ac_compile) 2>conftest.er1
a848cd7e 17444 ac_status=$?
ac1cb8d3
VS
17445 grep -v '^ *+' conftest.er1 >conftest.err
17446 rm -f conftest.er1
17447 cat conftest.err >&5
a848cd7e
SC
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } &&
fd5199d6 17450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452 (eval $ac_try) 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; } &&
17456 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458 (eval $ac_try) 2>&5
17459 ac_status=$?
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); }; }; then
17462 ac_hi=$ac_mid; break
17463else
17464 echo "$as_me: failed program was:" >&5
17465sed 's/^/| /' conftest.$ac_ext >&5
17466
17467ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17468 if test $ac_lo -le $ac_mid; then
17469 ac_lo= ac_hi=
17470 break
17471 fi
17472 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17473fi
ac1cb8d3 17474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17475 done
17476else
17477 echo "$as_me: failed program was:" >&5
17478sed 's/^/| /' conftest.$ac_ext >&5
17479
17480cat >conftest.$ac_ext <<_ACEOF
17481/* confdefs.h. */
17482_ACEOF
17483cat confdefs.h >>conftest.$ac_ext
17484cat >>conftest.$ac_ext <<_ACEOF
17485/* end confdefs.h. */
17486$ac_includes_default
17487int
17488main ()
17489{
17490static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17491test_array [0] = 0
17492
17493 ;
17494 return 0;
17495}
17496_ACEOF
17497rm -f conftest.$ac_objext
17498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17499 (eval $ac_compile) 2>conftest.er1
a848cd7e 17500 ac_status=$?
ac1cb8d3
VS
17501 grep -v '^ *+' conftest.er1 >conftest.err
17502 rm -f conftest.er1
17503 cat conftest.err >&5
a848cd7e
SC
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); } &&
fd5199d6 17506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508 (eval $ac_try) 2>&5
17509 ac_status=$?
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; } &&
17512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17515 ac_status=$?
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; }; then
17518 ac_hi=-1 ac_mid=-1
17519 while :; do
17520 cat >conftest.$ac_ext <<_ACEOF
17521/* confdefs.h. */
17522_ACEOF
17523cat confdefs.h >>conftest.$ac_ext
17524cat >>conftest.$ac_ext <<_ACEOF
17525/* end confdefs.h. */
17526$ac_includes_default
17527int
17528main ()
17529{
17530static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17531test_array [0] = 0
17532
17533 ;
17534 return 0;
17535}
17536_ACEOF
17537rm -f conftest.$ac_objext
17538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17539 (eval $ac_compile) 2>conftest.er1
a848cd7e 17540 ac_status=$?
ac1cb8d3
VS
17541 grep -v '^ *+' conftest.er1 >conftest.err
17542 rm -f conftest.er1
17543 cat conftest.err >&5
a848cd7e
SC
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
fd5199d6 17546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; } &&
17552 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; }; then
17558 ac_lo=$ac_mid; break
17559else
17560 echo "$as_me: failed program was:" >&5
17561sed 's/^/| /' conftest.$ac_ext >&5
17562
17563ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17564 if test $ac_mid -le $ac_hi; then
17565 ac_lo= ac_hi=
17566 break
17567 fi
17568 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17569fi
ac1cb8d3 17570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17571 done
17572else
17573 echo "$as_me: failed program was:" >&5
17574sed 's/^/| /' conftest.$ac_ext >&5
17575
17576ac_lo= ac_hi=
17577fi
ac1cb8d3 17578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17579fi
ac1cb8d3 17580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17581# Binary search between lo and hi bounds.
17582while test "x$ac_lo" != "x$ac_hi"; do
17583 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17584 cat >conftest.$ac_ext <<_ACEOF
17585/* confdefs.h. */
17586_ACEOF
17587cat confdefs.h >>conftest.$ac_ext
17588cat >>conftest.$ac_ext <<_ACEOF
17589/* end confdefs.h. */
17590$ac_includes_default
17591int
17592main ()
17593{
17594static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17595test_array [0] = 0
17596
17597 ;
17598 return 0;
17599}
17600_ACEOF
17601rm -f conftest.$ac_objext
17602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17603 (eval $ac_compile) 2>conftest.er1
a848cd7e 17604 ac_status=$?
ac1cb8d3
VS
17605 grep -v '^ *+' conftest.er1 >conftest.err
17606 rm -f conftest.er1
17607 cat conftest.err >&5
a848cd7e
SC
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } &&
fd5199d6 17610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ac_hi=$ac_mid
17623else
17624 echo "$as_me: failed program was:" >&5
17625sed 's/^/| /' conftest.$ac_ext >&5
17626
17627ac_lo=`expr '(' $ac_mid ')' + 1`
17628fi
ac1cb8d3 17629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17630done
17631case $ac_lo in
17632?*) ac_cv_sizeof_char=$ac_lo;;
17633'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17634See \`config.log' for more details." >&5
17635echo "$as_me: error: cannot compute sizeof (char), 77
17636See \`config.log' for more details." >&2;}
17637 { (exit 1); exit 1; }; } ;;
17638esac
17639else
17640 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
17641 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17642echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17643 { (exit 1); exit 1; }; }
17644else
17645 cat >conftest.$ac_ext <<_ACEOF
17646/* confdefs.h. */
17647_ACEOF
17648cat confdefs.h >>conftest.$ac_ext
17649cat >>conftest.$ac_ext <<_ACEOF
17650/* end confdefs.h. */
17651$ac_includes_default
17652long longval () { return (long) (sizeof (char)); }
17653unsigned long ulongval () { return (long) (sizeof (char)); }
17654#include <stdio.h>
17655#include <stdlib.h>
17656int
17657main ()
17658{
17659
17660 FILE *f = fopen ("conftest.val", "w");
17661 if (! f)
17662 exit (1);
17663 if (((long) (sizeof (char))) < 0)
17664 {
17665 long i = longval ();
17666 if (i != ((long) (sizeof (char))))
17667 exit (1);
17668 fprintf (f, "%ld\n", i);
17669 }
17670 else
17671 {
17672 unsigned long i = ulongval ();
17673 if (i != ((long) (sizeof (char))))
17674 exit (1);
17675 fprintf (f, "%lu\n", i);
17676 }
17677 exit (ferror (f) || fclose (f) != 0);
17678
17679 ;
17680 return 0;
17681}
17682_ACEOF
17683rm -f conftest$ac_exeext
17684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17685 (eval $ac_link) 2>&5
17686 ac_status=$?
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690 (eval $ac_try) 2>&5
17691 ac_status=$?
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; }; then
17694 ac_cv_sizeof_char=`cat conftest.val`
17695else
17696 echo "$as_me: program exited with status $ac_status" >&5
17697echo "$as_me: failed program was:" >&5
17698sed 's/^/| /' conftest.$ac_ext >&5
17699
17700( exit $ac_status )
17701{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17702See \`config.log' for more details." >&5
17703echo "$as_me: error: cannot compute sizeof (char), 77
17704See \`config.log' for more details." >&2;}
17705 { (exit 1); exit 1; }; }
17706fi
ac1cb8d3 17707rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17708fi
17709fi
17710rm -f conftest.val
17711else
17712 ac_cv_sizeof_char=0
17713fi
17714fi
17715echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17716echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17717cat >>confdefs.h <<_ACEOF
17718#define SIZEOF_CHAR $ac_cv_sizeof_char
17719_ACEOF
17720
17721
17722echo "$as_me:$LINENO: checking for short" >&5
17723echo $ECHO_N "checking for short... $ECHO_C" >&6
17724if test "${ac_cv_type_short+set}" = set; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
17726else
17727 cat >conftest.$ac_ext <<_ACEOF
17728/* confdefs.h. */
17729_ACEOF
17730cat confdefs.h >>conftest.$ac_ext
17731cat >>conftest.$ac_ext <<_ACEOF
17732/* end confdefs.h. */
17733$ac_includes_default
17734int
17735main ()
17736{
17737if ((short *) 0)
17738 return 0;
17739if (sizeof (short))
17740 return 0;
17741 ;
17742 return 0;
17743}
17744_ACEOF
17745rm -f conftest.$ac_objext
17746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17747 (eval $ac_compile) 2>conftest.er1
a848cd7e 17748 ac_status=$?
ac1cb8d3
VS
17749 grep -v '^ *+' conftest.er1 >conftest.err
17750 rm -f conftest.er1
17751 cat conftest.err >&5
a848cd7e
SC
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); } &&
fd5199d6 17754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; } &&
17760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
17766 ac_cv_type_short=yes
17767else
17768 echo "$as_me: failed program was:" >&5
17769sed 's/^/| /' conftest.$ac_ext >&5
17770
17771ac_cv_type_short=no
17772fi
ac1cb8d3 17773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17774fi
17775echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17776echo "${ECHO_T}$ac_cv_type_short" >&6
17777
17778echo "$as_me:$LINENO: checking size of short" >&5
17779echo $ECHO_N "checking size of short... $ECHO_C" >&6
17780if test "${ac_cv_sizeof_short+set}" = set; then
17781 echo $ECHO_N "(cached) $ECHO_C" >&6
17782else
17783 if test "$ac_cv_type_short" = yes; then
17784 # The cast to unsigned long works around a bug in the HP C Compiler
17785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17787 # This bug is HP SR number 8606223364.
17788 if test "$cross_compiling" = yes; then
17789 # Depending upon the size, compute the lo and hi bounds.
17790cat >conftest.$ac_ext <<_ACEOF
17791/* confdefs.h. */
17792_ACEOF
17793cat confdefs.h >>conftest.$ac_ext
17794cat >>conftest.$ac_ext <<_ACEOF
17795/* end confdefs.h. */
17796$ac_includes_default
17797int
17798main ()
17799{
17800static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17801test_array [0] = 0
17802
17803 ;
17804 return 0;
17805}
17806_ACEOF
17807rm -f conftest.$ac_objext
17808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17809 (eval $ac_compile) 2>conftest.er1
a848cd7e 17810 ac_status=$?
ac1cb8d3
VS
17811 grep -v '^ *+' conftest.er1 >conftest.err
17812 rm -f conftest.er1
17813 cat conftest.err >&5
a848cd7e
SC
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } &&
fd5199d6 17816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17819 ac_status=$?
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; } &&
17822 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824 (eval $ac_try) 2>&5
17825 ac_status=$?
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; }; then
17828 ac_lo=0 ac_mid=0
17829 while :; do
17830 cat >conftest.$ac_ext <<_ACEOF
17831/* confdefs.h. */
17832_ACEOF
17833cat confdefs.h >>conftest.$ac_ext
17834cat >>conftest.$ac_ext <<_ACEOF
17835/* end confdefs.h. */
17836$ac_includes_default
17837int
17838main ()
17839{
17840static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17841test_array [0] = 0
17842
17843 ;
17844 return 0;
17845}
17846_ACEOF
17847rm -f conftest.$ac_objext
17848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17849 (eval $ac_compile) 2>conftest.er1
a848cd7e 17850 ac_status=$?
ac1cb8d3
VS
17851 grep -v '^ *+' conftest.er1 >conftest.err
17852 rm -f conftest.er1
17853 cat conftest.err >&5
a848cd7e
SC
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } &&
fd5199d6 17856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; } &&
17862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864 (eval $ac_try) 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 ac_hi=$ac_mid; break
17869else
17870 echo "$as_me: failed program was:" >&5
17871sed 's/^/| /' conftest.$ac_ext >&5
17872
17873ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17874 if test $ac_lo -le $ac_mid; then
17875 ac_lo= ac_hi=
17876 break
17877 fi
17878 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17879fi
ac1cb8d3 17880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17881 done
17882else
17883 echo "$as_me: failed program was:" >&5
17884sed 's/^/| /' conftest.$ac_ext >&5
17885
17886cat >conftest.$ac_ext <<_ACEOF
17887/* confdefs.h. */
17888_ACEOF
17889cat confdefs.h >>conftest.$ac_ext
17890cat >>conftest.$ac_ext <<_ACEOF
17891/* end confdefs.h. */
17892$ac_includes_default
17893int
17894main ()
17895{
17896static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17897test_array [0] = 0
17898
17899 ;
17900 return 0;
17901}
17902_ACEOF
17903rm -f conftest.$ac_objext
17904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17905 (eval $ac_compile) 2>conftest.er1
a848cd7e 17906 ac_status=$?
ac1cb8d3
VS
17907 grep -v '^ *+' conftest.er1 >conftest.err
17908 rm -f conftest.er1
17909 cat conftest.err >&5
a848cd7e
SC
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } &&
fd5199d6 17912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17915 ac_status=$?
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; } &&
17918 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17921 ac_status=$?
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; }; then
17924 ac_hi=-1 ac_mid=-1
17925 while :; do
17926 cat >conftest.$ac_ext <<_ACEOF
17927/* confdefs.h. */
17928_ACEOF
17929cat confdefs.h >>conftest.$ac_ext
17930cat >>conftest.$ac_ext <<_ACEOF
17931/* end confdefs.h. */
17932$ac_includes_default
17933int
17934main ()
17935{
17936static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17937test_array [0] = 0
17938
17939 ;
17940 return 0;
17941}
17942_ACEOF
17943rm -f conftest.$ac_objext
17944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17945 (eval $ac_compile) 2>conftest.er1
a848cd7e 17946 ac_status=$?
ac1cb8d3
VS
17947 grep -v '^ *+' conftest.er1 >conftest.err
17948 rm -f conftest.er1
17949 cat conftest.err >&5
a848cd7e
SC
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } &&
fd5199d6 17952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17954 (eval $ac_try) 2>&5
17955 ac_status=$?
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; } &&
17958 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17960 (eval $ac_try) 2>&5
17961 ac_status=$?
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); }; }; then
17964 ac_lo=$ac_mid; break
17965else
17966 echo "$as_me: failed program was:" >&5
17967sed 's/^/| /' conftest.$ac_ext >&5
17968
17969ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17970 if test $ac_mid -le $ac_hi; then
17971 ac_lo= ac_hi=
17972 break
17973 fi
17974 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17975fi
ac1cb8d3 17976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17977 done
17978else
17979 echo "$as_me: failed program was:" >&5
17980sed 's/^/| /' conftest.$ac_ext >&5
17981
17982ac_lo= ac_hi=
17983fi
ac1cb8d3 17984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17985fi
ac1cb8d3 17986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17987# Binary search between lo and hi bounds.
17988while test "x$ac_lo" != "x$ac_hi"; do
17989 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17990 cat >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 (short))) <= $ac_mid)];
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); } &&
fd5199d6 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_hi=$ac_mid
18029else
18030 echo "$as_me: failed program was:" >&5
18031sed 's/^/| /' conftest.$ac_ext >&5
18032
18033ac_lo=`expr '(' $ac_mid ')' + 1`
18034fi
ac1cb8d3 18035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18036done
18037case $ac_lo in
18038?*) ac_cv_sizeof_short=$ac_lo;;
18039'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18040See \`config.log' for more details." >&5
18041echo "$as_me: error: cannot compute sizeof (short), 77
18042See \`config.log' for more details." >&2;}
18043 { (exit 1); exit 1; }; } ;;
18044esac
18045else
18046 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
18047 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18048echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18049 { (exit 1); exit 1; }; }
18050else
18051 cat >conftest.$ac_ext <<_ACEOF
18052/* confdefs.h. */
18053_ACEOF
18054cat confdefs.h >>conftest.$ac_ext
18055cat >>conftest.$ac_ext <<_ACEOF
18056/* end confdefs.h. */
18057$ac_includes_default
18058long longval () { return (long) (sizeof (short)); }
18059unsigned long ulongval () { return (long) (sizeof (short)); }
18060#include <stdio.h>
18061#include <stdlib.h>
18062int
18063main ()
18064{
18065
18066 FILE *f = fopen ("conftest.val", "w");
18067 if (! f)
18068 exit (1);
18069 if (((long) (sizeof (short))) < 0)
18070 {
18071 long i = longval ();
18072 if (i != ((long) (sizeof (short))))
18073 exit (1);
18074 fprintf (f, "%ld\n", i);
18075 }
18076 else
18077 {
18078 unsigned long i = ulongval ();
18079 if (i != ((long) (sizeof (short))))
18080 exit (1);
18081 fprintf (f, "%lu\n", i);
18082 }
18083 exit (ferror (f) || fclose (f) != 0);
18084
18085 ;
18086 return 0;
18087}
18088_ACEOF
18089rm -f conftest$ac_exeext
18090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18091 (eval $ac_link) 2>&5
18092 ac_status=$?
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 ac_cv_sizeof_short=`cat conftest.val`
18101else
18102 echo "$as_me: program exited with status $ac_status" >&5
18103echo "$as_me: failed program was:" >&5
18104sed 's/^/| /' conftest.$ac_ext >&5
18105
18106( exit $ac_status )
18107{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18108See \`config.log' for more details." >&5
18109echo "$as_me: error: cannot compute sizeof (short), 77
18110See \`config.log' for more details." >&2;}
18111 { (exit 1); exit 1; }; }
18112fi
ac1cb8d3 18113rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18114fi
18115fi
18116rm -f conftest.val
18117else
18118 ac_cv_sizeof_short=0
18119fi
18120fi
18121echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18122echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18123cat >>confdefs.h <<_ACEOF
18124#define SIZEOF_SHORT $ac_cv_sizeof_short
18125_ACEOF
18126
18127
18128echo "$as_me:$LINENO: checking for void *" >&5
18129echo $ECHO_N "checking for void *... $ECHO_C" >&6
18130if test "${ac_cv_type_void_p+set}" = set; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18132else
18133 cat >conftest.$ac_ext <<_ACEOF
18134/* confdefs.h. */
18135_ACEOF
18136cat confdefs.h >>conftest.$ac_ext
18137cat >>conftest.$ac_ext <<_ACEOF
18138/* end confdefs.h. */
18139$ac_includes_default
18140int
18141main ()
18142{
18143if ((void * *) 0)
18144 return 0;
18145if (sizeof (void *))
18146 return 0;
18147 ;
18148 return 0;
18149}
18150_ACEOF
18151rm -f conftest.$ac_objext
18152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18153 (eval $ac_compile) 2>conftest.er1
a848cd7e 18154 ac_status=$?
ac1cb8d3
VS
18155 grep -v '^ *+' conftest.er1 >conftest.err
18156 rm -f conftest.er1
18157 cat conftest.err >&5
a848cd7e
SC
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } &&
fd5199d6 18160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18163 ac_status=$?
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; } &&
18166 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168 (eval $ac_try) 2>&5
18169 ac_status=$?
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); }; }; then
18172 ac_cv_type_void_p=yes
18173else
18174 echo "$as_me: failed program was:" >&5
18175sed 's/^/| /' conftest.$ac_ext >&5
18176
18177ac_cv_type_void_p=no
18178fi
ac1cb8d3 18179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18180fi
18181echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18182echo "${ECHO_T}$ac_cv_type_void_p" >&6
18183
18184echo "$as_me:$LINENO: checking size of void *" >&5
18185echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18186if test "${ac_cv_sizeof_void_p+set}" = set; then
18187 echo $ECHO_N "(cached) $ECHO_C" >&6
18188else
18189 if test "$ac_cv_type_void_p" = yes; then
18190 # The cast to unsigned long works around a bug in the HP C Compiler
18191 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18192 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18193 # This bug is HP SR number 8606223364.
18194 if test "$cross_compiling" = yes; then
18195 # Depending upon the size, compute the lo and hi bounds.
18196cat >conftest.$ac_ext <<_ACEOF
18197/* confdefs.h. */
18198_ACEOF
18199cat confdefs.h >>conftest.$ac_ext
18200cat >>conftest.$ac_ext <<_ACEOF
18201/* end confdefs.h. */
18202$ac_includes_default
18203int
18204main ()
18205{
18206static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18207test_array [0] = 0
18208
18209 ;
18210 return 0;
18211}
18212_ACEOF
18213rm -f conftest.$ac_objext
18214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18215 (eval $ac_compile) 2>conftest.er1
a848cd7e 18216 ac_status=$?
ac1cb8d3
VS
18217 grep -v '^ *+' conftest.er1 >conftest.err
18218 rm -f conftest.er1
18219 cat conftest.err >&5
a848cd7e
SC
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
fd5199d6 18222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18225 ac_status=$?
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; } &&
18228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18231 ac_status=$?
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; }; then
18234 ac_lo=0 ac_mid=0
18235 while :; do
18236 cat >conftest.$ac_ext <<_ACEOF
18237/* confdefs.h. */
18238_ACEOF
18239cat confdefs.h >>conftest.$ac_ext
18240cat >>conftest.$ac_ext <<_ACEOF
18241/* end confdefs.h. */
18242$ac_includes_default
18243int
18244main ()
18245{
18246static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18247test_array [0] = 0
18248
18249 ;
18250 return 0;
18251}
18252_ACEOF
18253rm -f conftest.$ac_objext
18254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18255 (eval $ac_compile) 2>conftest.er1
a848cd7e 18256 ac_status=$?
ac1cb8d3
VS
18257 grep -v '^ *+' conftest.er1 >conftest.err
18258 rm -f conftest.er1
18259 cat conftest.err >&5
a848cd7e
SC
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); } &&
fd5199d6 18262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 (eval $ac_try) 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; } &&
18268 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270 (eval $ac_try) 2>&5
18271 ac_status=$?
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; }; then
18274 ac_hi=$ac_mid; break
18275else
18276 echo "$as_me: failed program was:" >&5
18277sed 's/^/| /' conftest.$ac_ext >&5
18278
18279ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18280 if test $ac_lo -le $ac_mid; then
18281 ac_lo= ac_hi=
18282 break
18283 fi
18284 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18285fi
ac1cb8d3 18286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18287 done
18288else
18289 echo "$as_me: failed program was:" >&5
18290sed 's/^/| /' conftest.$ac_ext >&5
18291
18292cat >conftest.$ac_ext <<_ACEOF
18293/* confdefs.h. */
18294_ACEOF
18295cat confdefs.h >>conftest.$ac_ext
18296cat >>conftest.$ac_ext <<_ACEOF
18297/* end confdefs.h. */
18298$ac_includes_default
18299int
18300main ()
18301{
18302static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18303test_array [0] = 0
18304
18305 ;
18306 return 0;
18307}
18308_ACEOF
18309rm -f conftest.$ac_objext
18310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18311 (eval $ac_compile) 2>conftest.er1
a848cd7e 18312 ac_status=$?
ac1cb8d3
VS
18313 grep -v '^ *+' conftest.er1 >conftest.err
18314 rm -f conftest.er1
18315 cat conftest.err >&5
a848cd7e
SC
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); } &&
fd5199d6 18318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320 (eval $ac_try) 2>&5
18321 ac_status=$?
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; } &&
18324 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18327 ac_status=$?
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18330 ac_hi=-1 ac_mid=-1
18331 while :; do
18332 cat >conftest.$ac_ext <<_ACEOF
18333/* confdefs.h. */
18334_ACEOF
18335cat confdefs.h >>conftest.$ac_ext
18336cat >>conftest.$ac_ext <<_ACEOF
18337/* end confdefs.h. */
18338$ac_includes_default
18339int
18340main ()
18341{
18342static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18343test_array [0] = 0
18344
18345 ;
18346 return 0;
18347}
18348_ACEOF
18349rm -f conftest.$ac_objext
18350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18351 (eval $ac_compile) 2>conftest.er1
a848cd7e 18352 ac_status=$?
ac1cb8d3
VS
18353 grep -v '^ *+' conftest.er1 >conftest.err
18354 rm -f conftest.er1
18355 cat conftest.err >&5
a848cd7e
SC
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } &&
fd5199d6 18358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18361 ac_status=$?
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; } &&
18364 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18367 ac_status=$?
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; }; then
18370 ac_lo=$ac_mid; break
18371else
18372 echo "$as_me: failed program was:" >&5
18373sed 's/^/| /' conftest.$ac_ext >&5
18374
18375ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18376 if test $ac_mid -le $ac_hi; then
18377 ac_lo= ac_hi=
18378 break
18379 fi
18380 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18381fi
ac1cb8d3 18382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18383 done
18384else
18385 echo "$as_me: failed program was:" >&5
18386sed 's/^/| /' conftest.$ac_ext >&5
18387
18388ac_lo= ac_hi=
18389fi
ac1cb8d3 18390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18391fi
ac1cb8d3 18392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18393# Binary search between lo and hi bounds.
18394while test "x$ac_lo" != "x$ac_hi"; do
18395 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18396 cat >conftest.$ac_ext <<_ACEOF
18397/* confdefs.h. */
18398_ACEOF
18399cat confdefs.h >>conftest.$ac_ext
18400cat >>conftest.$ac_ext <<_ACEOF
18401/* end confdefs.h. */
18402$ac_includes_default
18403int
18404main ()
18405{
18406static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18407test_array [0] = 0
18408
18409 ;
18410 return 0;
18411}
18412_ACEOF
18413rm -f conftest.$ac_objext
18414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18415 (eval $ac_compile) 2>conftest.er1
a848cd7e 18416 ac_status=$?
ac1cb8d3
VS
18417 grep -v '^ *+' conftest.er1 >conftest.err
18418 rm -f conftest.er1
18419 cat conftest.err >&5
a848cd7e
SC
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } &&
fd5199d6 18422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18424 (eval $ac_try) 2>&5
18425 ac_status=$?
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); }; } &&
18428 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18430 (eval $ac_try) 2>&5
18431 ac_status=$?
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); }; }; then
18434 ac_hi=$ac_mid
18435else
18436 echo "$as_me: failed program was:" >&5
18437sed 's/^/| /' conftest.$ac_ext >&5
18438
18439ac_lo=`expr '(' $ac_mid ')' + 1`
18440fi
ac1cb8d3 18441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18442done
18443case $ac_lo in
18444?*) ac_cv_sizeof_void_p=$ac_lo;;
18445'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18446See \`config.log' for more details." >&5
18447echo "$as_me: error: cannot compute sizeof (void *), 77
18448See \`config.log' for more details." >&2;}
18449 { (exit 1); exit 1; }; } ;;
18450esac
18451else
18452 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
18453 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18454echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18455 { (exit 1); exit 1; }; }
18456else
18457 cat >conftest.$ac_ext <<_ACEOF
18458/* confdefs.h. */
18459_ACEOF
18460cat confdefs.h >>conftest.$ac_ext
18461cat >>conftest.$ac_ext <<_ACEOF
18462/* end confdefs.h. */
18463$ac_includes_default
18464long longval () { return (long) (sizeof (void *)); }
18465unsigned long ulongval () { return (long) (sizeof (void *)); }
18466#include <stdio.h>
18467#include <stdlib.h>
18468int
18469main ()
18470{
18471
18472 FILE *f = fopen ("conftest.val", "w");
18473 if (! f)
18474 exit (1);
18475 if (((long) (sizeof (void *))) < 0)
18476 {
18477 long i = longval ();
18478 if (i != ((long) (sizeof (void *))))
18479 exit (1);
18480 fprintf (f, "%ld\n", i);
18481 }
18482 else
18483 {
18484 unsigned long i = ulongval ();
18485 if (i != ((long) (sizeof (void *))))
18486 exit (1);
18487 fprintf (f, "%lu\n", i);
18488 }
18489 exit (ferror (f) || fclose (f) != 0);
18490
18491 ;
18492 return 0;
18493}
18494_ACEOF
18495rm -f conftest$ac_exeext
18496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18497 (eval $ac_link) 2>&5
18498 ac_status=$?
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502 (eval $ac_try) 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; }; then
18506 ac_cv_sizeof_void_p=`cat conftest.val`
18507else
18508 echo "$as_me: program exited with status $ac_status" >&5
18509echo "$as_me: failed program was:" >&5
18510sed 's/^/| /' conftest.$ac_ext >&5
18511
18512( exit $ac_status )
18513{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18514See \`config.log' for more details." >&5
18515echo "$as_me: error: cannot compute sizeof (void *), 77
18516See \`config.log' for more details." >&2;}
18517 { (exit 1); exit 1; }; }
18518fi
ac1cb8d3 18519rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18520fi
18521fi
18522rm -f conftest.val
18523else
18524 ac_cv_sizeof_void_p=0
18525fi
18526fi
18527echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18528echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18529cat >>confdefs.h <<_ACEOF
18530#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18531_ACEOF
18532
18533
18534echo "$as_me:$LINENO: checking for int" >&5
18535echo $ECHO_N "checking for int... $ECHO_C" >&6
18536if test "${ac_cv_type_int+set}" = set; then
18537 echo $ECHO_N "(cached) $ECHO_C" >&6
18538else
18539 cat >conftest.$ac_ext <<_ACEOF
18540/* confdefs.h. */
18541_ACEOF
18542cat confdefs.h >>conftest.$ac_ext
18543cat >>conftest.$ac_ext <<_ACEOF
18544/* end confdefs.h. */
18545$ac_includes_default
18546int
18547main ()
18548{
18549if ((int *) 0)
18550 return 0;
18551if (sizeof (int))
18552 return 0;
18553 ;
18554 return 0;
18555}
18556_ACEOF
18557rm -f conftest.$ac_objext
18558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18559 (eval $ac_compile) 2>conftest.er1
a848cd7e 18560 ac_status=$?
ac1cb8d3
VS
18561 grep -v '^ *+' conftest.er1 >conftest.err
18562 rm -f conftest.er1
18563 cat conftest.err >&5
a848cd7e
SC
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } &&
fd5199d6 18566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574 (eval $ac_try) 2>&5
18575 ac_status=$?
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; }; then
18578 ac_cv_type_int=yes
18579else
18580 echo "$as_me: failed program was:" >&5
18581sed 's/^/| /' conftest.$ac_ext >&5
18582
18583ac_cv_type_int=no
18584fi
ac1cb8d3 18585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18586fi
18587echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18588echo "${ECHO_T}$ac_cv_type_int" >&6
18589
18590echo "$as_me:$LINENO: checking size of int" >&5
18591echo $ECHO_N "checking size of int... $ECHO_C" >&6
18592if test "${ac_cv_sizeof_int+set}" = set; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18594else
18595 if test "$ac_cv_type_int" = yes; then
18596 # The cast to unsigned long works around a bug in the HP C Compiler
18597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18599 # This bug is HP SR number 8606223364.
18600 if test "$cross_compiling" = yes; then
18601 # Depending upon the size, compute the lo and hi bounds.
18602cat >conftest.$ac_ext <<_ACEOF
18603/* confdefs.h. */
18604_ACEOF
18605cat confdefs.h >>conftest.$ac_ext
18606cat >>conftest.$ac_ext <<_ACEOF
18607/* end confdefs.h. */
18608$ac_includes_default
18609int
18610main ()
18611{
18612static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18613test_array [0] = 0
18614
18615 ;
18616 return 0;
18617}
18618_ACEOF
18619rm -f conftest.$ac_objext
18620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18621 (eval $ac_compile) 2>conftest.er1
a848cd7e 18622 ac_status=$?
ac1cb8d3
VS
18623 grep -v '^ *+' conftest.er1 >conftest.err
18624 rm -f conftest.er1
18625 cat conftest.err >&5
a848cd7e
SC
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } &&
fd5199d6 18628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630 (eval $ac_try) 2>&5
18631 ac_status=$?
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; } &&
18634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636 (eval $ac_try) 2>&5
18637 ac_status=$?
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; }; then
18640 ac_lo=0 ac_mid=0
18641 while :; do
18642 cat >conftest.$ac_ext <<_ACEOF
18643/* confdefs.h. */
18644_ACEOF
18645cat confdefs.h >>conftest.$ac_ext
18646cat >>conftest.$ac_ext <<_ACEOF
18647/* end confdefs.h. */
18648$ac_includes_default
18649int
18650main ()
18651{
18652static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18653test_array [0] = 0
18654
18655 ;
18656 return 0;
18657}
18658_ACEOF
18659rm -f conftest.$ac_objext
18660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18661 (eval $ac_compile) 2>conftest.er1
a848cd7e 18662 ac_status=$?
ac1cb8d3
VS
18663 grep -v '^ *+' conftest.er1 >conftest.err
18664 rm -f conftest.er1
18665 cat conftest.err >&5
a848cd7e
SC
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); } &&
fd5199d6 18668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; } &&
18674 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18676 (eval $ac_try) 2>&5
18677 ac_status=$?
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); }; }; then
18680 ac_hi=$ac_mid; break
18681else
18682 echo "$as_me: failed program was:" >&5
18683sed 's/^/| /' conftest.$ac_ext >&5
18684
18685ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18686 if test $ac_lo -le $ac_mid; then
18687 ac_lo= ac_hi=
18688 break
18689 fi
18690 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18691fi
ac1cb8d3 18692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18693 done
18694else
18695 echo "$as_me: failed program was:" >&5
18696sed 's/^/| /' conftest.$ac_ext >&5
18697
18698cat >conftest.$ac_ext <<_ACEOF
18699/* confdefs.h. */
18700_ACEOF
18701cat confdefs.h >>conftest.$ac_ext
18702cat >>conftest.$ac_ext <<_ACEOF
18703/* end confdefs.h. */
18704$ac_includes_default
18705int
18706main ()
18707{
18708static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18709test_array [0] = 0
18710
18711 ;
18712 return 0;
18713}
18714_ACEOF
18715rm -f conftest.$ac_objext
18716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18717 (eval $ac_compile) 2>conftest.er1
a848cd7e 18718 ac_status=$?
ac1cb8d3
VS
18719 grep -v '^ *+' conftest.er1 >conftest.err
18720 rm -f conftest.er1
18721 cat conftest.err >&5
a848cd7e
SC
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); } &&
fd5199d6 18724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726 (eval $ac_try) 2>&5
18727 ac_status=$?
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); }; } &&
18730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732 (eval $ac_try) 2>&5
18733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; }; then
18736 ac_hi=-1 ac_mid=-1
18737 while :; do
18738 cat >conftest.$ac_ext <<_ACEOF
18739/* confdefs.h. */
18740_ACEOF
18741cat confdefs.h >>conftest.$ac_ext
18742cat >>conftest.$ac_ext <<_ACEOF
18743/* end confdefs.h. */
18744$ac_includes_default
18745int
18746main ()
18747{
18748static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18749test_array [0] = 0
18750
18751 ;
18752 return 0;
18753}
18754_ACEOF
18755rm -f conftest.$ac_objext
18756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18757 (eval $ac_compile) 2>conftest.er1
a848cd7e 18758 ac_status=$?
ac1cb8d3
VS
18759 grep -v '^ *+' conftest.er1 >conftest.err
18760 rm -f conftest.er1
18761 cat conftest.err >&5
a848cd7e
SC
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); } &&
fd5199d6 18764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; } &&
18770 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772 (eval $ac_try) 2>&5
18773 ac_status=$?
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; }; then
18776 ac_lo=$ac_mid; break
18777else
18778 echo "$as_me: failed program was:" >&5
18779sed 's/^/| /' conftest.$ac_ext >&5
18780
18781ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18782 if test $ac_mid -le $ac_hi; then
18783 ac_lo= ac_hi=
18784 break
18785 fi
18786 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18787fi
ac1cb8d3 18788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18789 done
18790else
18791 echo "$as_me: failed program was:" >&5
18792sed 's/^/| /' conftest.$ac_ext >&5
18793
18794ac_lo= ac_hi=
18795fi
ac1cb8d3 18796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18797fi
ac1cb8d3 18798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18799# Binary search between lo and hi bounds.
18800while test "x$ac_lo" != "x$ac_hi"; do
18801 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18802 cat >conftest.$ac_ext <<_ACEOF
18803/* confdefs.h. */
18804_ACEOF
18805cat confdefs.h >>conftest.$ac_ext
18806cat >>conftest.$ac_ext <<_ACEOF
18807/* end confdefs.h. */
18808$ac_includes_default
18809int
18810main ()
18811{
18812static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18813test_array [0] = 0
18814
18815 ;
18816 return 0;
18817}
18818_ACEOF
18819rm -f conftest.$ac_objext
18820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18821 (eval $ac_compile) 2>conftest.er1
a848cd7e 18822 ac_status=$?
ac1cb8d3
VS
18823 grep -v '^ *+' conftest.er1 >conftest.err
18824 rm -f conftest.er1
18825 cat conftest.err >&5
a848cd7e
SC
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); } &&
fd5199d6 18828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18830 (eval $ac_try) 2>&5
18831 ac_status=$?
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; } &&
18834 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18836 (eval $ac_try) 2>&5
18837 ac_status=$?
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); }; }; then
18840 ac_hi=$ac_mid
18841else
18842 echo "$as_me: failed program was:" >&5
18843sed 's/^/| /' conftest.$ac_ext >&5
18844
18845ac_lo=`expr '(' $ac_mid ')' + 1`
18846fi
ac1cb8d3 18847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18848done
18849case $ac_lo in
18850?*) ac_cv_sizeof_int=$ac_lo;;
18851'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18852See \`config.log' for more details." >&5
18853echo "$as_me: error: cannot compute sizeof (int), 77
18854See \`config.log' for more details." >&2;}
18855 { (exit 1); exit 1; }; } ;;
18856esac
18857else
18858 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
18859 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18860echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18861 { (exit 1); exit 1; }; }
18862else
18863 cat >conftest.$ac_ext <<_ACEOF
18864/* confdefs.h. */
18865_ACEOF
18866cat confdefs.h >>conftest.$ac_ext
18867cat >>conftest.$ac_ext <<_ACEOF
18868/* end confdefs.h. */
18869$ac_includes_default
18870long longval () { return (long) (sizeof (int)); }
18871unsigned long ulongval () { return (long) (sizeof (int)); }
18872#include <stdio.h>
18873#include <stdlib.h>
18874int
18875main ()
18876{
18877
18878 FILE *f = fopen ("conftest.val", "w");
18879 if (! f)
18880 exit (1);
18881 if (((long) (sizeof (int))) < 0)
18882 {
18883 long i = longval ();
18884 if (i != ((long) (sizeof (int))))
18885 exit (1);
18886 fprintf (f, "%ld\n", i);
18887 }
18888 else
18889 {
18890 unsigned long i = ulongval ();
18891 if (i != ((long) (sizeof (int))))
18892 exit (1);
18893 fprintf (f, "%lu\n", i);
18894 }
18895 exit (ferror (f) || fclose (f) != 0);
18896
18897 ;
18898 return 0;
18899}
18900_ACEOF
18901rm -f conftest$ac_exeext
18902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18903 (eval $ac_link) 2>&5
18904 ac_status=$?
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908 (eval $ac_try) 2>&5
18909 ac_status=$?
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); }; }; then
18912 ac_cv_sizeof_int=`cat conftest.val`
18913else
18914 echo "$as_me: program exited with status $ac_status" >&5
18915echo "$as_me: failed program was:" >&5
18916sed 's/^/| /' conftest.$ac_ext >&5
18917
18918( exit $ac_status )
18919{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18920See \`config.log' for more details." >&5
18921echo "$as_me: error: cannot compute sizeof (int), 77
18922See \`config.log' for more details." >&2;}
18923 { (exit 1); exit 1; }; }
18924fi
ac1cb8d3 18925rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18926fi
18927fi
18928rm -f conftest.val
18929else
18930 ac_cv_sizeof_int=0
18931fi
18932fi
18933echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18934echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18935cat >>confdefs.h <<_ACEOF
18936#define SIZEOF_INT $ac_cv_sizeof_int
18937_ACEOF
18938
18939
18940echo "$as_me:$LINENO: checking for long" >&5
18941echo $ECHO_N "checking for long... $ECHO_C" >&6
18942if test "${ac_cv_type_long+set}" = set; then
18943 echo $ECHO_N "(cached) $ECHO_C" >&6
18944else
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{
18955if ((long *) 0)
18956 return 0;
18957if (sizeof (long))
18958 return 0;
18959 ;
18960 return 0;
18961}
18962_ACEOF
18963rm -f conftest.$ac_objext
18964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18965 (eval $ac_compile) 2>conftest.er1
a848cd7e 18966 ac_status=$?
ac1cb8d3
VS
18967 grep -v '^ *+' conftest.er1 >conftest.err
18968 rm -f conftest.er1
18969 cat conftest.err >&5
a848cd7e
SC
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } &&
fd5199d6 18972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18975 ac_status=$?
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; } &&
18978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980 (eval $ac_try) 2>&5
18981 ac_status=$?
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; }; then
18984 ac_cv_type_long=yes
18985else
18986 echo "$as_me: failed program was:" >&5
18987sed 's/^/| /' conftest.$ac_ext >&5
18988
18989ac_cv_type_long=no
18990fi
ac1cb8d3 18991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18992fi
18993echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18994echo "${ECHO_T}$ac_cv_type_long" >&6
18995
18996echo "$as_me:$LINENO: checking size of long" >&5
18997echo $ECHO_N "checking size of long... $ECHO_C" >&6
18998if test "${ac_cv_sizeof_long+set}" = set; then
18999 echo $ECHO_N "(cached) $ECHO_C" >&6
19000else
19001 if test "$ac_cv_type_long" = yes; then
19002 # The cast to unsigned long works around a bug in the HP C Compiler
19003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19005 # This bug is HP SR number 8606223364.
19006 if test "$cross_compiling" = yes; then
19007 # Depending upon the size, compute the lo and hi bounds.
19008cat >conftest.$ac_ext <<_ACEOF
19009/* confdefs.h. */
19010_ACEOF
19011cat confdefs.h >>conftest.$ac_ext
19012cat >>conftest.$ac_ext <<_ACEOF
19013/* end confdefs.h. */
19014$ac_includes_default
19015int
19016main ()
19017{
19018static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19019test_array [0] = 0
19020
19021 ;
19022 return 0;
19023}
19024_ACEOF
19025rm -f conftest.$ac_objext
19026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19027 (eval $ac_compile) 2>conftest.er1
a848cd7e 19028 ac_status=$?
ac1cb8d3
VS
19029 grep -v '^ *+' conftest.er1 >conftest.err
19030 rm -f conftest.er1
19031 cat conftest.err >&5
a848cd7e
SC
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); } &&
fd5199d6 19034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036 (eval $ac_try) 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; } &&
19040 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19043 ac_status=$?
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; }; then
19046 ac_lo=0 ac_mid=0
19047 while :; do
19048 cat >conftest.$ac_ext <<_ACEOF
19049/* confdefs.h. */
19050_ACEOF
19051cat confdefs.h >>conftest.$ac_ext
19052cat >>conftest.$ac_ext <<_ACEOF
19053/* end confdefs.h. */
19054$ac_includes_default
19055int
19056main ()
19057{
19058static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19059test_array [0] = 0
19060
19061 ;
19062 return 0;
19063}
19064_ACEOF
19065rm -f conftest.$ac_objext
19066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19067 (eval $ac_compile) 2>conftest.er1
a848cd7e 19068 ac_status=$?
ac1cb8d3
VS
19069 grep -v '^ *+' conftest.er1 >conftest.err
19070 rm -f conftest.er1
19071 cat conftest.err >&5
a848cd7e
SC
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); } &&
fd5199d6 19074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076 (eval $ac_try) 2>&5
19077 ac_status=$?
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }; } &&
19080 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19082 (eval $ac_try) 2>&5
19083 ac_status=$?
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); }; }; then
19086 ac_hi=$ac_mid; break
19087else
19088 echo "$as_me: failed program was:" >&5
19089sed 's/^/| /' conftest.$ac_ext >&5
19090
19091ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19092 if test $ac_lo -le $ac_mid; then
19093 ac_lo= ac_hi=
19094 break
19095 fi
19096 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19097fi
ac1cb8d3 19098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19099 done
19100else
19101 echo "$as_me: failed program was:" >&5
19102sed 's/^/| /' conftest.$ac_ext >&5
19103
19104cat >conftest.$ac_ext <<_ACEOF
19105/* confdefs.h. */
19106_ACEOF
19107cat confdefs.h >>conftest.$ac_ext
19108cat >>conftest.$ac_ext <<_ACEOF
19109/* end confdefs.h. */
19110$ac_includes_default
19111int
19112main ()
19113{
19114static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19115test_array [0] = 0
19116
19117 ;
19118 return 0;
19119}
19120_ACEOF
19121rm -f conftest.$ac_objext
19122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19123 (eval $ac_compile) 2>conftest.er1
a848cd7e 19124 ac_status=$?
ac1cb8d3
VS
19125 grep -v '^ *+' conftest.er1 >conftest.err
19126 rm -f conftest.er1
19127 cat conftest.err >&5
a848cd7e
SC
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } &&
fd5199d6 19130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19132 (eval $ac_try) 2>&5
19133 ac_status=$?
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); }; } &&
19136 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138 (eval $ac_try) 2>&5
19139 ac_status=$?
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; }; then
19142 ac_hi=-1 ac_mid=-1
19143 while :; do
19144 cat >conftest.$ac_ext <<_ACEOF
19145/* confdefs.h. */
19146_ACEOF
19147cat confdefs.h >>conftest.$ac_ext
19148cat >>conftest.$ac_ext <<_ACEOF
19149/* end confdefs.h. */
19150$ac_includes_default
19151int
19152main ()
19153{
19154static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19155test_array [0] = 0
19156
19157 ;
19158 return 0;
19159}
19160_ACEOF
19161rm -f conftest.$ac_objext
19162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19163 (eval $ac_compile) 2>conftest.er1
a848cd7e 19164 ac_status=$?
ac1cb8d3
VS
19165 grep -v '^ *+' conftest.er1 >conftest.err
19166 rm -f conftest.er1
19167 cat conftest.err >&5
a848cd7e
SC
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); } &&
fd5199d6 19170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172 (eval $ac_try) 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; } &&
19176 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; }; then
19182 ac_lo=$ac_mid; break
19183else
19184 echo "$as_me: failed program was:" >&5
19185sed 's/^/| /' conftest.$ac_ext >&5
19186
19187ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19188 if test $ac_mid -le $ac_hi; then
19189 ac_lo= ac_hi=
19190 break
19191 fi
19192 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19193fi
ac1cb8d3 19194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19195 done
19196else
19197 echo "$as_me: failed program was:" >&5
19198sed 's/^/| /' conftest.$ac_ext >&5
19199
19200ac_lo= ac_hi=
19201fi
ac1cb8d3 19202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19203fi
ac1cb8d3 19204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19205# Binary search between lo and hi bounds.
19206while test "x$ac_lo" != "x$ac_hi"; do
19207 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19208 cat >conftest.$ac_ext <<_ACEOF
19209/* confdefs.h. */
19210_ACEOF
19211cat confdefs.h >>conftest.$ac_ext
19212cat >>conftest.$ac_ext <<_ACEOF
19213/* end confdefs.h. */
19214$ac_includes_default
19215int
19216main ()
19217{
19218static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19219test_array [0] = 0
19220
19221 ;
19222 return 0;
19223}
19224_ACEOF
19225rm -f conftest.$ac_objext
19226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19227 (eval $ac_compile) 2>conftest.er1
a848cd7e 19228 ac_status=$?
ac1cb8d3
VS
19229 grep -v '^ *+' conftest.er1 >conftest.err
19230 rm -f conftest.er1
19231 cat conftest.err >&5
a848cd7e
SC
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } &&
fd5199d6 19234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19236 (eval $ac_try) 2>&5
19237 ac_status=$?
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); }; } &&
19240 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; }; then
19246 ac_hi=$ac_mid
19247else
19248 echo "$as_me: failed program was:" >&5
19249sed 's/^/| /' conftest.$ac_ext >&5
19250
19251ac_lo=`expr '(' $ac_mid ')' + 1`
19252fi
ac1cb8d3 19253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19254done
19255case $ac_lo in
19256?*) ac_cv_sizeof_long=$ac_lo;;
19257'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19258See \`config.log' for more details." >&5
19259echo "$as_me: error: cannot compute sizeof (long), 77
19260See \`config.log' for more details." >&2;}
19261 { (exit 1); exit 1; }; } ;;
19262esac
19263else
19264 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
19265 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19266echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19267 { (exit 1); exit 1; }; }
19268else
19269 cat >conftest.$ac_ext <<_ACEOF
19270/* confdefs.h. */
19271_ACEOF
19272cat confdefs.h >>conftest.$ac_ext
19273cat >>conftest.$ac_ext <<_ACEOF
19274/* end confdefs.h. */
19275$ac_includes_default
19276long longval () { return (long) (sizeof (long)); }
19277unsigned long ulongval () { return (long) (sizeof (long)); }
19278#include <stdio.h>
19279#include <stdlib.h>
19280int
19281main ()
19282{
19283
19284 FILE *f = fopen ("conftest.val", "w");
19285 if (! f)
19286 exit (1);
19287 if (((long) (sizeof (long))) < 0)
19288 {
19289 long i = longval ();
19290 if (i != ((long) (sizeof (long))))
19291 exit (1);
19292 fprintf (f, "%ld\n", i);
19293 }
19294 else
19295 {
19296 unsigned long i = ulongval ();
19297 if (i != ((long) (sizeof (long))))
19298 exit (1);
19299 fprintf (f, "%lu\n", i);
19300 }
19301 exit (ferror (f) || fclose (f) != 0);
19302
19303 ;
19304 return 0;
19305}
19306_ACEOF
19307rm -f conftest$ac_exeext
19308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19309 (eval $ac_link) 2>&5
19310 ac_status=$?
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19315 ac_status=$?
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; }; then
19318 ac_cv_sizeof_long=`cat conftest.val`
19319else
19320 echo "$as_me: program exited with status $ac_status" >&5
19321echo "$as_me: failed program was:" >&5
19322sed 's/^/| /' conftest.$ac_ext >&5
19323
19324( exit $ac_status )
19325{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19326See \`config.log' for more details." >&5
19327echo "$as_me: error: cannot compute sizeof (long), 77
19328See \`config.log' for more details." >&2;}
19329 { (exit 1); exit 1; }; }
19330fi
ac1cb8d3 19331rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19332fi
19333fi
19334rm -f conftest.val
19335else
19336 ac_cv_sizeof_long=0
19337fi
19338fi
19339echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19340echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19341cat >>confdefs.h <<_ACEOF
19342#define SIZEOF_LONG $ac_cv_sizeof_long
19343_ACEOF
19344
19345
19346echo "$as_me:$LINENO: checking for size_t" >&5
19347echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19348if test "${ac_cv_type_size_t+set}" = set; then
19349 echo $ECHO_N "(cached) $ECHO_C" >&6
19350else
19351 cat >conftest.$ac_ext <<_ACEOF
19352/* confdefs.h. */
19353_ACEOF
19354cat confdefs.h >>conftest.$ac_ext
19355cat >>conftest.$ac_ext <<_ACEOF
19356/* end confdefs.h. */
19357$ac_includes_default
19358int
19359main ()
19360{
19361if ((size_t *) 0)
19362 return 0;
19363if (sizeof (size_t))
19364 return 0;
19365 ;
19366 return 0;
19367}
19368_ACEOF
19369rm -f conftest.$ac_objext
19370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19371 (eval $ac_compile) 2>conftest.er1
a848cd7e 19372 ac_status=$?
ac1cb8d3
VS
19373 grep -v '^ *+' conftest.er1 >conftest.err
19374 rm -f conftest.er1
19375 cat conftest.err >&5
a848cd7e
SC
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
fd5199d6 19378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19381 ac_status=$?
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; } &&
19384 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; }; then
19390 ac_cv_type_size_t=yes
19391else
19392 echo "$as_me: failed program was:" >&5
19393sed 's/^/| /' conftest.$ac_ext >&5
19394
19395ac_cv_type_size_t=no
19396fi
ac1cb8d3 19397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19398fi
19399echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19400echo "${ECHO_T}$ac_cv_type_size_t" >&6
19401
19402echo "$as_me:$LINENO: checking size of size_t" >&5
19403echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19404if test "${ac_cv_sizeof_size_t+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19406else
19407 if test "$ac_cv_type_size_t" = yes; then
19408 # The cast to unsigned long works around a bug in the HP C Compiler
19409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19411 # This bug is HP SR number 8606223364.
19412 if test "$cross_compiling" = yes; then
19413 # Depending upon the size, compute the lo and hi bounds.
19414cat >conftest.$ac_ext <<_ACEOF
19415/* confdefs.h. */
19416_ACEOF
19417cat confdefs.h >>conftest.$ac_ext
19418cat >>conftest.$ac_ext <<_ACEOF
19419/* end confdefs.h. */
19420$ac_includes_default
19421int
19422main ()
19423{
19424static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19425test_array [0] = 0
19426
19427 ;
19428 return 0;
19429}
19430_ACEOF
19431rm -f conftest.$ac_objext
19432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19433 (eval $ac_compile) 2>conftest.er1
a848cd7e 19434 ac_status=$?
ac1cb8d3
VS
19435 grep -v '^ *+' conftest.er1 >conftest.err
19436 rm -f conftest.er1
19437 cat conftest.err >&5
a848cd7e
SC
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); } &&
fd5199d6 19440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19443 ac_status=$?
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; } &&
19446 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; }; then
19452 ac_lo=0 ac_mid=0
19453 while :; do
19454 cat >conftest.$ac_ext <<_ACEOF
19455/* confdefs.h. */
19456_ACEOF
19457cat confdefs.h >>conftest.$ac_ext
19458cat >>conftest.$ac_ext <<_ACEOF
19459/* end confdefs.h. */
19460$ac_includes_default
19461int
19462main ()
19463{
19464static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19465test_array [0] = 0
19466
19467 ;
19468 return 0;
19469}
19470_ACEOF
19471rm -f conftest.$ac_objext
19472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19473 (eval $ac_compile) 2>conftest.er1
a848cd7e 19474 ac_status=$?
ac1cb8d3
VS
19475 grep -v '^ *+' conftest.er1 >conftest.err
19476 rm -f conftest.er1
19477 cat conftest.err >&5
a848cd7e
SC
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); } &&
fd5199d6 19480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19483 ac_status=$?
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; } &&
19486 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19489 ac_status=$?
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; }; then
19492 ac_hi=$ac_mid; break
19493else
19494 echo "$as_me: failed program was:" >&5
19495sed 's/^/| /' conftest.$ac_ext >&5
19496
19497ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19498 if test $ac_lo -le $ac_mid; then
19499 ac_lo= ac_hi=
19500 break
19501 fi
19502 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19503fi
ac1cb8d3 19504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19505 done
19506else
19507 echo "$as_me: failed program was:" >&5
19508sed 's/^/| /' conftest.$ac_ext >&5
19509
19510cat >conftest.$ac_ext <<_ACEOF
19511/* confdefs.h. */
19512_ACEOF
19513cat confdefs.h >>conftest.$ac_ext
19514cat >>conftest.$ac_ext <<_ACEOF
19515/* end confdefs.h. */
19516$ac_includes_default
19517int
19518main ()
19519{
19520static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19521test_array [0] = 0
19522
19523 ;
19524 return 0;
19525}
19526_ACEOF
19527rm -f conftest.$ac_objext
19528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19529 (eval $ac_compile) 2>conftest.er1
a848cd7e 19530 ac_status=$?
ac1cb8d3
VS
19531 grep -v '^ *+' conftest.er1 >conftest.err
19532 rm -f conftest.er1
19533 cat conftest.err >&5
a848cd7e
SC
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } &&
fd5199d6 19536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538 (eval $ac_try) 2>&5
19539 ac_status=$?
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); }; } &&
19542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; }; then
19548 ac_hi=-1 ac_mid=-1
19549 while :; do
19550 cat >conftest.$ac_ext <<_ACEOF
19551/* confdefs.h. */
19552_ACEOF
19553cat confdefs.h >>conftest.$ac_ext
19554cat >>conftest.$ac_ext <<_ACEOF
19555/* end confdefs.h. */
19556$ac_includes_default
19557int
19558main ()
19559{
19560static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19561test_array [0] = 0
19562
19563 ;
19564 return 0;
19565}
19566_ACEOF
19567rm -f conftest.$ac_objext
19568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19569 (eval $ac_compile) 2>conftest.er1
a848cd7e 19570 ac_status=$?
ac1cb8d3
VS
19571 grep -v '^ *+' conftest.er1 >conftest.err
19572 rm -f conftest.er1
19573 cat conftest.err >&5
a848cd7e
SC
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); } &&
fd5199d6 19576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19579 ac_status=$?
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; } &&
19582 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19585 ac_status=$?
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; }; then
19588 ac_lo=$ac_mid; break
19589else
19590 echo "$as_me: failed program was:" >&5
19591sed 's/^/| /' conftest.$ac_ext >&5
19592
19593ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19594 if test $ac_mid -le $ac_hi; then
19595 ac_lo= ac_hi=
19596 break
19597 fi
19598 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19599fi
ac1cb8d3 19600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19601 done
19602else
19603 echo "$as_me: failed program was:" >&5
19604sed 's/^/| /' conftest.$ac_ext >&5
19605
19606ac_lo= ac_hi=
19607fi
ac1cb8d3 19608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19609fi
ac1cb8d3 19610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19611# Binary search between lo and hi bounds.
19612while test "x$ac_lo" != "x$ac_hi"; do
19613 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19614 cat >conftest.$ac_ext <<_ACEOF
19615/* confdefs.h. */
19616_ACEOF
19617cat confdefs.h >>conftest.$ac_ext
19618cat >>conftest.$ac_ext <<_ACEOF
19619/* end confdefs.h. */
19620$ac_includes_default
19621int
19622main ()
19623{
19624static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19625test_array [0] = 0
19626
19627 ;
19628 return 0;
19629}
19630_ACEOF
19631rm -f conftest.$ac_objext
19632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19633 (eval $ac_compile) 2>conftest.er1
a848cd7e 19634 ac_status=$?
ac1cb8d3
VS
19635 grep -v '^ *+' conftest.er1 >conftest.err
19636 rm -f conftest.er1
19637 cat conftest.err >&5
a848cd7e
SC
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } &&
fd5199d6 19640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
19646 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 ac_hi=$ac_mid
19653else
19654 echo "$as_me: failed program was:" >&5
19655sed 's/^/| /' conftest.$ac_ext >&5
19656
19657ac_lo=`expr '(' $ac_mid ')' + 1`
19658fi
ac1cb8d3 19659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19660done
19661case $ac_lo in
19662?*) ac_cv_sizeof_size_t=$ac_lo;;
19663'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19664See \`config.log' for more details." >&5
19665echo "$as_me: error: cannot compute sizeof (size_t), 77
19666See \`config.log' for more details." >&2;}
19667 { (exit 1); exit 1; }; } ;;
19668esac
19669else
19670 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
19671 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19672echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19673 { (exit 1); exit 1; }; }
19674else
19675 cat >conftest.$ac_ext <<_ACEOF
19676/* confdefs.h. */
19677_ACEOF
19678cat confdefs.h >>conftest.$ac_ext
19679cat >>conftest.$ac_ext <<_ACEOF
19680/* end confdefs.h. */
19681$ac_includes_default
19682long longval () { return (long) (sizeof (size_t)); }
19683unsigned long ulongval () { return (long) (sizeof (size_t)); }
19684#include <stdio.h>
19685#include <stdlib.h>
19686int
19687main ()
19688{
19689
19690 FILE *f = fopen ("conftest.val", "w");
19691 if (! f)
19692 exit (1);
19693 if (((long) (sizeof (size_t))) < 0)
19694 {
19695 long i = longval ();
19696 if (i != ((long) (sizeof (size_t))))
19697 exit (1);
19698 fprintf (f, "%ld\n", i);
19699 }
19700 else
19701 {
19702 unsigned long i = ulongval ();
19703 if (i != ((long) (sizeof (size_t))))
19704 exit (1);
19705 fprintf (f, "%lu\n", i);
19706 }
19707 exit (ferror (f) || fclose (f) != 0);
19708
19709 ;
19710 return 0;
19711}
19712_ACEOF
19713rm -f conftest$ac_exeext
19714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19715 (eval $ac_link) 2>&5
19716 ac_status=$?
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720 (eval $ac_try) 2>&5
19721 ac_status=$?
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; }; then
19724 ac_cv_sizeof_size_t=`cat conftest.val`
19725else
19726 echo "$as_me: program exited with status $ac_status" >&5
19727echo "$as_me: failed program was:" >&5
19728sed 's/^/| /' conftest.$ac_ext >&5
19729
19730( exit $ac_status )
19731{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19732See \`config.log' for more details." >&5
19733echo "$as_me: error: cannot compute sizeof (size_t), 77
19734See \`config.log' for more details." >&2;}
19735 { (exit 1); exit 1; }; }
19736fi
ac1cb8d3 19737rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19738fi
19739fi
19740rm -f conftest.val
19741else
19742 ac_cv_sizeof_size_t=0
19743fi
19744fi
19745echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19746echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19747cat >>confdefs.h <<_ACEOF
19748#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19749_ACEOF
19750
19751
19752
19753case "${host}" in
19754 arm-*-linux* )
19755 echo "$as_me:$LINENO: checking for long long" >&5
19756echo $ECHO_N "checking for long long... $ECHO_C" >&6
19757if test "${ac_cv_type_long_long+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19759else
19760 cat >conftest.$ac_ext <<_ACEOF
19761/* confdefs.h. */
19762_ACEOF
19763cat confdefs.h >>conftest.$ac_ext
19764cat >>conftest.$ac_ext <<_ACEOF
19765/* end confdefs.h. */
19766$ac_includes_default
19767int
19768main ()
19769{
19770if ((long long *) 0)
19771 return 0;
19772if (sizeof (long long))
19773 return 0;
19774 ;
19775 return 0;
19776}
19777_ACEOF
19778rm -f conftest.$ac_objext
19779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19780 (eval $ac_compile) 2>conftest.er1
a848cd7e 19781 ac_status=$?
ac1cb8d3
VS
19782 grep -v '^ *+' conftest.er1 >conftest.err
19783 rm -f conftest.er1
19784 cat conftest.err >&5
a848cd7e
SC
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } &&
fd5199d6 19787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789 (eval $ac_try) 2>&5
19790 ac_status=$?
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; } &&
19793 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19796 ac_status=$?
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; }; then
19799 ac_cv_type_long_long=yes
19800else
19801 echo "$as_me: failed program was:" >&5
19802sed 's/^/| /' conftest.$ac_ext >&5
19803
19804ac_cv_type_long_long=no
19805fi
ac1cb8d3 19806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19807fi
19808echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19809echo "${ECHO_T}$ac_cv_type_long_long" >&6
19810
19811echo "$as_me:$LINENO: checking size of long long" >&5
19812echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19813if test "${ac_cv_sizeof_long_long+set}" = set; then
19814 echo $ECHO_N "(cached) $ECHO_C" >&6
19815else
19816 if test "$ac_cv_type_long_long" = yes; then
19817 # The cast to unsigned long works around a bug in the HP C Compiler
19818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19820 # This bug is HP SR number 8606223364.
19821 if test "$cross_compiling" = yes; then
19822 # Depending upon the size, compute the lo and hi bounds.
19823cat >conftest.$ac_ext <<_ACEOF
19824/* confdefs.h. */
19825_ACEOF
19826cat confdefs.h >>conftest.$ac_ext
19827cat >>conftest.$ac_ext <<_ACEOF
19828/* end confdefs.h. */
19829$ac_includes_default
19830int
19831main ()
19832{
19833static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19834test_array [0] = 0
19835
19836 ;
19837 return 0;
19838}
19839_ACEOF
19840rm -f conftest.$ac_objext
19841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19842 (eval $ac_compile) 2>conftest.er1
a848cd7e 19843 ac_status=$?
ac1cb8d3
VS
19844 grep -v '^ *+' conftest.er1 >conftest.err
19845 rm -f conftest.er1
19846 cat conftest.err >&5
a848cd7e
SC
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } &&
fd5199d6 19849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; } &&
19855 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857 (eval $ac_try) 2>&5
19858 ac_status=$?
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; }; then
19861 ac_lo=0 ac_mid=0
19862 while :; do
19863 cat >conftest.$ac_ext <<_ACEOF
19864/* confdefs.h. */
19865_ACEOF
19866cat confdefs.h >>conftest.$ac_ext
19867cat >>conftest.$ac_ext <<_ACEOF
19868/* end confdefs.h. */
19869$ac_includes_default
19870int
19871main ()
19872{
19873static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19874test_array [0] = 0
19875
19876 ;
19877 return 0;
19878}
19879_ACEOF
19880rm -f conftest.$ac_objext
19881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19882 (eval $ac_compile) 2>conftest.er1
a848cd7e 19883 ac_status=$?
ac1cb8d3
VS
19884 grep -v '^ *+' conftest.er1 >conftest.err
19885 rm -f conftest.er1
19886 cat conftest.err >&5
a848cd7e
SC
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } &&
fd5199d6 19889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19892 ac_status=$?
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; } &&
19895 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897 (eval $ac_try) 2>&5
19898 ac_status=$?
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; }; then
19901 ac_hi=$ac_mid; break
19902else
19903 echo "$as_me: failed program was:" >&5
19904sed 's/^/| /' conftest.$ac_ext >&5
19905
19906ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19907 if test $ac_lo -le $ac_mid; then
19908 ac_lo= ac_hi=
19909 break
19910 fi
19911 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19912fi
ac1cb8d3 19913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19914 done
19915else
19916 echo "$as_me: failed program was:" >&5
19917sed 's/^/| /' conftest.$ac_ext >&5
19918
19919cat >conftest.$ac_ext <<_ACEOF
19920/* confdefs.h. */
19921_ACEOF
19922cat confdefs.h >>conftest.$ac_ext
19923cat >>conftest.$ac_ext <<_ACEOF
19924/* end confdefs.h. */
19925$ac_includes_default
19926int
19927main ()
19928{
19929static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19930test_array [0] = 0
19931
19932 ;
19933 return 0;
19934}
19935_ACEOF
19936rm -f conftest.$ac_objext
19937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19938 (eval $ac_compile) 2>conftest.er1
a848cd7e 19939 ac_status=$?
ac1cb8d3
VS
19940 grep -v '^ *+' conftest.er1 >conftest.err
19941 rm -f conftest.er1
19942 cat conftest.err >&5
a848cd7e
SC
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } &&
fd5199d6 19945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19948 ac_status=$?
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; } &&
19951 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; }; then
19957 ac_hi=-1 ac_mid=-1
19958 while :; do
19959 cat >conftest.$ac_ext <<_ACEOF
19960/* confdefs.h. */
19961_ACEOF
19962cat confdefs.h >>conftest.$ac_ext
19963cat >>conftest.$ac_ext <<_ACEOF
19964/* end confdefs.h. */
19965$ac_includes_default
19966int
19967main ()
19968{
19969static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19970test_array [0] = 0
19971
19972 ;
19973 return 0;
19974}
19975_ACEOF
19976rm -f conftest.$ac_objext
19977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19978 (eval $ac_compile) 2>conftest.er1
a848cd7e 19979 ac_status=$?
ac1cb8d3
VS
19980 grep -v '^ *+' conftest.er1 >conftest.err
19981 rm -f conftest.er1
19982 cat conftest.err >&5
a848cd7e
SC
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } &&
fd5199d6 19985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19988 ac_status=$?
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; } &&
19991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993 (eval $ac_try) 2>&5
19994 ac_status=$?
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; }; then
19997 ac_lo=$ac_mid; break
19998else
19999 echo "$as_me: failed program was:" >&5
20000sed 's/^/| /' conftest.$ac_ext >&5
20001
20002ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20003 if test $ac_mid -le $ac_hi; then
20004 ac_lo= ac_hi=
20005 break
20006 fi
20007 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20008fi
ac1cb8d3 20009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20010 done
20011else
20012 echo "$as_me: failed program was:" >&5
20013sed 's/^/| /' conftest.$ac_ext >&5
20014
20015ac_lo= ac_hi=
20016fi
ac1cb8d3 20017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20018fi
ac1cb8d3 20019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20020# Binary search between lo and hi bounds.
20021while test "x$ac_lo" != "x$ac_hi"; do
20022 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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$ac_includes_default
20030int
20031main ()
20032{
20033static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20034test_array [0] = 0
20035
20036 ;
20037 return 0;
20038}
20039_ACEOF
20040rm -f conftest.$ac_objext
20041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20042 (eval $ac_compile) 2>conftest.er1
a848cd7e 20043 ac_status=$?
ac1cb8d3
VS
20044 grep -v '^ *+' conftest.er1 >conftest.err
20045 rm -f conftest.er1
20046 cat conftest.err >&5
a848cd7e
SC
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); } &&
fd5199d6 20049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20052 ac_status=$?
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; } &&
20055 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057 (eval $ac_try) 2>&5
20058 ac_status=$?
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; }; then
20061 ac_hi=$ac_mid
20062else
20063 echo "$as_me: failed program was:" >&5
20064sed 's/^/| /' conftest.$ac_ext >&5
20065
20066ac_lo=`expr '(' $ac_mid ')' + 1`
20067fi
ac1cb8d3 20068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20069done
20070case $ac_lo in
20071?*) ac_cv_sizeof_long_long=$ac_lo;;
20072'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20073See \`config.log' for more details." >&5
20074echo "$as_me: error: cannot compute sizeof (long long), 77
20075See \`config.log' for more details." >&2;}
20076 { (exit 1); exit 1; }; } ;;
20077esac
20078else
20079 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
20080 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20081echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20082 { (exit 1); exit 1; }; }
20083else
20084 cat >conftest.$ac_ext <<_ACEOF
20085/* confdefs.h. */
20086_ACEOF
20087cat confdefs.h >>conftest.$ac_ext
20088cat >>conftest.$ac_ext <<_ACEOF
20089/* end confdefs.h. */
20090$ac_includes_default
20091long longval () { return (long) (sizeof (long long)); }
20092unsigned long ulongval () { return (long) (sizeof (long long)); }
20093#include <stdio.h>
20094#include <stdlib.h>
20095int
20096main ()
20097{
20098
20099 FILE *f = fopen ("conftest.val", "w");
20100 if (! f)
20101 exit (1);
20102 if (((long) (sizeof (long long))) < 0)
20103 {
20104 long i = longval ();
20105 if (i != ((long) (sizeof (long long))))
20106 exit (1);
20107 fprintf (f, "%ld\n", i);
20108 }
20109 else
20110 {
20111 unsigned long i = ulongval ();
20112 if (i != ((long) (sizeof (long long))))
20113 exit (1);
20114 fprintf (f, "%lu\n", i);
20115 }
20116 exit (ferror (f) || fclose (f) != 0);
20117
20118 ;
20119 return 0;
20120}
20121_ACEOF
20122rm -f conftest$ac_exeext
20123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20124 (eval $ac_link) 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20130 ac_status=$?
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; }; then
20133 ac_cv_sizeof_long_long=`cat conftest.val`
20134else
20135 echo "$as_me: program exited with status $ac_status" >&5
20136echo "$as_me: failed program was:" >&5
20137sed 's/^/| /' conftest.$ac_ext >&5
20138
20139( exit $ac_status )
20140{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20141See \`config.log' for more details." >&5
20142echo "$as_me: error: cannot compute sizeof (long long), 77
20143See \`config.log' for more details." >&2;}
20144 { (exit 1); exit 1; }; }
20145fi
ac1cb8d3 20146rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20147fi
20148fi
20149rm -f conftest.val
20150else
20151 ac_cv_sizeof_long_long=0
20152fi
20153fi
20154echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20155echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20156cat >>confdefs.h <<_ACEOF
20157#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20158_ACEOF
20159
20160
20161 ;;
20162 *-hp-hpux* )
20163 echo "$as_me:$LINENO: checking for long long" >&5
20164echo $ECHO_N "checking for long long... $ECHO_C" >&6
20165if test "${ac_cv_type_long_long+set}" = set; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20167else
20168 cat >conftest.$ac_ext <<_ACEOF
20169/* confdefs.h. */
20170_ACEOF
20171cat confdefs.h >>conftest.$ac_ext
20172cat >>conftest.$ac_ext <<_ACEOF
20173/* end confdefs.h. */
20174$ac_includes_default
20175int
20176main ()
20177{
20178if ((long long *) 0)
20179 return 0;
20180if (sizeof (long long))
20181 return 0;
20182 ;
20183 return 0;
20184}
20185_ACEOF
20186rm -f conftest.$ac_objext
20187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20188 (eval $ac_compile) 2>conftest.er1
a848cd7e 20189 ac_status=$?
ac1cb8d3
VS
20190 grep -v '^ *+' conftest.er1 >conftest.err
20191 rm -f conftest.er1
20192 cat conftest.err >&5
a848cd7e
SC
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } &&
fd5199d6 20195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197 (eval $ac_try) 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; } &&
20201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; }; then
20207 ac_cv_type_long_long=yes
20208else
20209 echo "$as_me: failed program was:" >&5
20210sed 's/^/| /' conftest.$ac_ext >&5
20211
20212ac_cv_type_long_long=no
20213fi
ac1cb8d3 20214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20215fi
20216echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20217echo "${ECHO_T}$ac_cv_type_long_long" >&6
20218
20219echo "$as_me:$LINENO: checking size of long long" >&5
20220echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20221if test "${ac_cv_sizeof_long_long+set}" = set; then
20222 echo $ECHO_N "(cached) $ECHO_C" >&6
20223else
20224 if test "$ac_cv_type_long_long" = yes; then
20225 # The cast to unsigned long works around a bug in the HP C Compiler
20226 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20227 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20228 # This bug is HP SR number 8606223364.
20229 if test "$cross_compiling" = yes; then
20230 # Depending upon the size, compute the lo and hi bounds.
20231cat >conftest.$ac_ext <<_ACEOF
20232/* confdefs.h. */
20233_ACEOF
20234cat confdefs.h >>conftest.$ac_ext
20235cat >>conftest.$ac_ext <<_ACEOF
20236/* end confdefs.h. */
20237$ac_includes_default
20238int
20239main ()
20240{
20241static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20242test_array [0] = 0
20243
20244 ;
20245 return 0;
20246}
20247_ACEOF
20248rm -f conftest.$ac_objext
20249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20250 (eval $ac_compile) 2>conftest.er1
a848cd7e 20251 ac_status=$?
ac1cb8d3
VS
20252 grep -v '^ *+' conftest.er1 >conftest.err
20253 rm -f conftest.er1
20254 cat conftest.err >&5
a848cd7e
SC
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); } &&
fd5199d6 20257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259 (eval $ac_try) 2>&5
20260 ac_status=$?
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; } &&
20263 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265 (eval $ac_try) 2>&5
20266 ac_status=$?
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); }; }; then
20269 ac_lo=0 ac_mid=0
20270 while :; do
20271 cat >conftest.$ac_ext <<_ACEOF
20272/* confdefs.h. */
20273_ACEOF
20274cat confdefs.h >>conftest.$ac_ext
20275cat >>conftest.$ac_ext <<_ACEOF
20276/* end confdefs.h. */
20277$ac_includes_default
20278int
20279main ()
20280{
20281static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20282test_array [0] = 0
20283
20284 ;
20285 return 0;
20286}
20287_ACEOF
20288rm -f conftest.$ac_objext
20289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20290 (eval $ac_compile) 2>conftest.er1
a848cd7e 20291 ac_status=$?
ac1cb8d3
VS
20292 grep -v '^ *+' conftest.er1 >conftest.err
20293 rm -f conftest.er1
20294 cat conftest.err >&5
a848cd7e
SC
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); } &&
fd5199d6 20297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299 (eval $ac_try) 2>&5
20300 ac_status=$?
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; } &&
20303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20306 ac_status=$?
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; }; then
20309 ac_hi=$ac_mid; break
20310else
20311 echo "$as_me: failed program was:" >&5
20312sed 's/^/| /' conftest.$ac_ext >&5
20313
20314ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20315 if test $ac_lo -le $ac_mid; then
20316 ac_lo= ac_hi=
20317 break
20318 fi
20319 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20320fi
ac1cb8d3 20321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20322 done
20323else
20324 echo "$as_me: failed program was:" >&5
20325sed 's/^/| /' conftest.$ac_ext >&5
20326
20327cat >conftest.$ac_ext <<_ACEOF
20328/* confdefs.h. */
20329_ACEOF
20330cat confdefs.h >>conftest.$ac_ext
20331cat >>conftest.$ac_ext <<_ACEOF
20332/* end confdefs.h. */
20333$ac_includes_default
20334int
20335main ()
20336{
20337static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20338test_array [0] = 0
20339
20340 ;
20341 return 0;
20342}
20343_ACEOF
20344rm -f conftest.$ac_objext
20345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20346 (eval $ac_compile) 2>conftest.er1
a848cd7e 20347 ac_status=$?
ac1cb8d3
VS
20348 grep -v '^ *+' conftest.er1 >conftest.err
20349 rm -f conftest.er1
20350 cat conftest.err >&5
a848cd7e
SC
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } &&
fd5199d6 20353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355 (eval $ac_try) 2>&5
20356 ac_status=$?
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; } &&
20359 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20361 (eval $ac_try) 2>&5
20362 ac_status=$?
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); }; }; then
20365 ac_hi=-1 ac_mid=-1
20366 while :; do
20367 cat >conftest.$ac_ext <<_ACEOF
20368/* confdefs.h. */
20369_ACEOF
20370cat confdefs.h >>conftest.$ac_ext
20371cat >>conftest.$ac_ext <<_ACEOF
20372/* end confdefs.h. */
20373$ac_includes_default
20374int
20375main ()
20376{
20377static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20378test_array [0] = 0
20379
20380 ;
20381 return 0;
20382}
20383_ACEOF
20384rm -f conftest.$ac_objext
20385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20386 (eval $ac_compile) 2>conftest.er1
a848cd7e 20387 ac_status=$?
ac1cb8d3
VS
20388 grep -v '^ *+' conftest.er1 >conftest.err
20389 rm -f conftest.er1
20390 cat conftest.err >&5
a848cd7e
SC
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); } &&
fd5199d6 20393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20395 (eval $ac_try) 2>&5
20396 ac_status=$?
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); }; } &&
20399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401 (eval $ac_try) 2>&5
20402 ac_status=$?
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; }; then
20405 ac_lo=$ac_mid; break
20406else
20407 echo "$as_me: failed program was:" >&5
20408sed 's/^/| /' conftest.$ac_ext >&5
20409
20410ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20411 if test $ac_mid -le $ac_hi; then
20412 ac_lo= ac_hi=
20413 break
20414 fi
20415 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20416fi
ac1cb8d3 20417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20418 done
20419else
20420 echo "$as_me: failed program was:" >&5
20421sed 's/^/| /' conftest.$ac_ext >&5
20422
20423ac_lo= ac_hi=
20424fi
ac1cb8d3 20425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20426fi
ac1cb8d3 20427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20428# Binary search between lo and hi bounds.
20429while test "x$ac_lo" != "x$ac_hi"; do
20430 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20431 cat >conftest.$ac_ext <<_ACEOF
20432/* confdefs.h. */
20433_ACEOF
20434cat confdefs.h >>conftest.$ac_ext
20435cat >>conftest.$ac_ext <<_ACEOF
20436/* end confdefs.h. */
20437$ac_includes_default
20438int
20439main ()
20440{
20441static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20442test_array [0] = 0
20443
20444 ;
20445 return 0;
20446}
20447_ACEOF
20448rm -f conftest.$ac_objext
20449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20450 (eval $ac_compile) 2>conftest.er1
a848cd7e 20451 ac_status=$?
ac1cb8d3
VS
20452 grep -v '^ *+' conftest.er1 >conftest.err
20453 rm -f conftest.er1
20454 cat conftest.err >&5
a848cd7e
SC
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); } &&
fd5199d6 20457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20459 (eval $ac_try) 2>&5
20460 ac_status=$?
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); }; } &&
20463 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465 (eval $ac_try) 2>&5
20466 ac_status=$?
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; }; then
20469 ac_hi=$ac_mid
20470else
20471 echo "$as_me: failed program was:" >&5
20472sed 's/^/| /' conftest.$ac_ext >&5
20473
20474ac_lo=`expr '(' $ac_mid ')' + 1`
20475fi
ac1cb8d3 20476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20477done
20478case $ac_lo in
20479?*) ac_cv_sizeof_long_long=$ac_lo;;
20480'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20481See \`config.log' for more details." >&5
20482echo "$as_me: error: cannot compute sizeof (long long), 77
20483See \`config.log' for more details." >&2;}
20484 { (exit 1); exit 1; }; } ;;
20485esac
20486else
20487 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
20488 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20489echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20490 { (exit 1); exit 1; }; }
20491else
20492 cat >conftest.$ac_ext <<_ACEOF
20493/* confdefs.h. */
20494_ACEOF
20495cat confdefs.h >>conftest.$ac_ext
20496cat >>conftest.$ac_ext <<_ACEOF
20497/* end confdefs.h. */
20498$ac_includes_default
20499long longval () { return (long) (sizeof (long long)); }
20500unsigned long ulongval () { return (long) (sizeof (long long)); }
20501#include <stdio.h>
20502#include <stdlib.h>
20503int
20504main ()
20505{
20506
20507 FILE *f = fopen ("conftest.val", "w");
20508 if (! f)
20509 exit (1);
20510 if (((long) (sizeof (long long))) < 0)
20511 {
20512 long i = longval ();
20513 if (i != ((long) (sizeof (long long))))
20514 exit (1);
20515 fprintf (f, "%ld\n", i);
20516 }
20517 else
20518 {
20519 unsigned long i = ulongval ();
20520 if (i != ((long) (sizeof (long long))))
20521 exit (1);
20522 fprintf (f, "%lu\n", i);
20523 }
20524 exit (ferror (f) || fclose (f) != 0);
20525
20526 ;
20527 return 0;
20528}
20529_ACEOF
20530rm -f conftest$ac_exeext
20531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20532 (eval $ac_link) 2>&5
20533 ac_status=$?
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20537 (eval $ac_try) 2>&5
20538 ac_status=$?
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); }; }; then
20541 ac_cv_sizeof_long_long=`cat conftest.val`
20542else
20543 echo "$as_me: program exited with status $ac_status" >&5
20544echo "$as_me: failed program was:" >&5
20545sed 's/^/| /' conftest.$ac_ext >&5
20546
20547( exit $ac_status )
20548{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20549See \`config.log' for more details." >&5
20550echo "$as_me: error: cannot compute sizeof (long long), 77
20551See \`config.log' for more details." >&2;}
20552 { (exit 1); exit 1; }; }
20553fi
ac1cb8d3 20554rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20555fi
20556fi
20557rm -f conftest.val
20558else
20559 ac_cv_sizeof_long_long=0
20560fi
20561fi
20562echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20563echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20564cat >>confdefs.h <<_ACEOF
20565#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20566_ACEOF
20567
20568
20569 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20570 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20571 fi
20572 ;;
20573 * )
20574 echo "$as_me:$LINENO: checking for long long" >&5
20575echo $ECHO_N "checking for long long... $ECHO_C" >&6
20576if test "${ac_cv_type_long_long+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20578else
20579 cat >conftest.$ac_ext <<_ACEOF
20580/* confdefs.h. */
20581_ACEOF
20582cat confdefs.h >>conftest.$ac_ext
20583cat >>conftest.$ac_ext <<_ACEOF
20584/* end confdefs.h. */
20585$ac_includes_default
20586int
20587main ()
20588{
20589if ((long long *) 0)
20590 return 0;
20591if (sizeof (long long))
20592 return 0;
20593 ;
20594 return 0;
20595}
20596_ACEOF
20597rm -f conftest.$ac_objext
20598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20599 (eval $ac_compile) 2>conftest.er1
a848cd7e 20600 ac_status=$?
ac1cb8d3
VS
20601 grep -v '^ *+' conftest.er1 >conftest.err
20602 rm -f conftest.er1
20603 cat conftest.err >&5
a848cd7e
SC
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); } &&
fd5199d6 20606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608 (eval $ac_try) 2>&5
20609 ac_status=$?
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); }; } &&
20612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20615 ac_status=$?
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; }; then
20618 ac_cv_type_long_long=yes
20619else
20620 echo "$as_me: failed program was:" >&5
20621sed 's/^/| /' conftest.$ac_ext >&5
20622
20623ac_cv_type_long_long=no
20624fi
ac1cb8d3 20625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20626fi
20627echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20628echo "${ECHO_T}$ac_cv_type_long_long" >&6
20629
20630echo "$as_me:$LINENO: checking size of long long" >&5
20631echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20632if test "${ac_cv_sizeof_long_long+set}" = set; then
20633 echo $ECHO_N "(cached) $ECHO_C" >&6
20634else
20635 if test "$ac_cv_type_long_long" = yes; then
20636 # The cast to unsigned long works around a bug in the HP C Compiler
20637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20639 # This bug is HP SR number 8606223364.
20640 if test "$cross_compiling" = yes; then
20641 # Depending upon the size, compute the lo and hi bounds.
20642cat >conftest.$ac_ext <<_ACEOF
20643/* confdefs.h. */
20644_ACEOF
20645cat confdefs.h >>conftest.$ac_ext
20646cat >>conftest.$ac_ext <<_ACEOF
20647/* end confdefs.h. */
20648$ac_includes_default
20649int
20650main ()
20651{
20652static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20653test_array [0] = 0
20654
20655 ;
20656 return 0;
20657}
20658_ACEOF
20659rm -f conftest.$ac_objext
20660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20661 (eval $ac_compile) 2>conftest.er1
a848cd7e 20662 ac_status=$?
ac1cb8d3
VS
20663 grep -v '^ *+' conftest.er1 >conftest.err
20664 rm -f conftest.er1
20665 cat conftest.err >&5
a848cd7e
SC
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } &&
fd5199d6 20668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670 (eval $ac_try) 2>&5
20671 ac_status=$?
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; } &&
20674 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676 (eval $ac_try) 2>&5
20677 ac_status=$?
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; }; then
20680 ac_lo=0 ac_mid=0
20681 while :; do
20682 cat >conftest.$ac_ext <<_ACEOF
20683/* confdefs.h. */
20684_ACEOF
20685cat confdefs.h >>conftest.$ac_ext
20686cat >>conftest.$ac_ext <<_ACEOF
20687/* end confdefs.h. */
20688$ac_includes_default
20689int
20690main ()
20691{
20692static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20693test_array [0] = 0
20694
20695 ;
20696 return 0;
20697}
20698_ACEOF
20699rm -f conftest.$ac_objext
20700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20701 (eval $ac_compile) 2>conftest.er1
a848cd7e 20702 ac_status=$?
ac1cb8d3
VS
20703 grep -v '^ *+' conftest.er1 >conftest.err
20704 rm -f conftest.er1
20705 cat conftest.err >&5
a848cd7e
SC
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); } &&
fd5199d6 20708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710 (eval $ac_try) 2>&5
20711 ac_status=$?
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; } &&
20714 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20716 (eval $ac_try) 2>&5
20717 ac_status=$?
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); }; }; then
20720 ac_hi=$ac_mid; break
20721else
20722 echo "$as_me: failed program was:" >&5
20723sed 's/^/| /' conftest.$ac_ext >&5
20724
20725ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20726 if test $ac_lo -le $ac_mid; then
20727 ac_lo= ac_hi=
20728 break
20729 fi
20730 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20731fi
ac1cb8d3 20732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20733 done
20734else
20735 echo "$as_me: failed program was:" >&5
20736sed 's/^/| /' conftest.$ac_ext >&5
20737
20738cat >conftest.$ac_ext <<_ACEOF
20739/* confdefs.h. */
20740_ACEOF
20741cat confdefs.h >>conftest.$ac_ext
20742cat >>conftest.$ac_ext <<_ACEOF
20743/* end confdefs.h. */
20744$ac_includes_default
20745int
20746main ()
20747{
20748static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20749test_array [0] = 0
20750
20751 ;
20752 return 0;
20753}
20754_ACEOF
20755rm -f conftest.$ac_objext
20756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20757 (eval $ac_compile) 2>conftest.er1
a848cd7e 20758 ac_status=$?
ac1cb8d3
VS
20759 grep -v '^ *+' conftest.er1 >conftest.err
20760 rm -f conftest.er1
20761 cat conftest.err >&5
a848cd7e
SC
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); } &&
fd5199d6 20764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766 (eval $ac_try) 2>&5
20767 ac_status=$?
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; } &&
20770 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; }; then
20776 ac_hi=-1 ac_mid=-1
20777 while :; do
20778 cat >conftest.$ac_ext <<_ACEOF
20779/* confdefs.h. */
20780_ACEOF
20781cat confdefs.h >>conftest.$ac_ext
20782cat >>conftest.$ac_ext <<_ACEOF
20783/* end confdefs.h. */
20784$ac_includes_default
20785int
20786main ()
20787{
20788static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20789test_array [0] = 0
20790
20791 ;
20792 return 0;
20793}
20794_ACEOF
20795rm -f conftest.$ac_objext
20796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20797 (eval $ac_compile) 2>conftest.er1
a848cd7e 20798 ac_status=$?
ac1cb8d3
VS
20799 grep -v '^ *+' conftest.er1 >conftest.err
20800 rm -f conftest.er1
20801 cat conftest.err >&5
a848cd7e
SC
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); } &&
fd5199d6 20804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20807 ac_status=$?
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; } &&
20810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20812 (eval $ac_try) 2>&5
20813 ac_status=$?
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); }; }; then
20816 ac_lo=$ac_mid; break
20817else
20818 echo "$as_me: failed program was:" >&5
20819sed 's/^/| /' conftest.$ac_ext >&5
20820
20821ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20822 if test $ac_mid -le $ac_hi; then
20823 ac_lo= ac_hi=
20824 break
20825 fi
20826 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20827fi
ac1cb8d3 20828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20829 done
20830else
20831 echo "$as_me: failed program was:" >&5
20832sed 's/^/| /' conftest.$ac_ext >&5
20833
20834ac_lo= ac_hi=
20835fi
ac1cb8d3 20836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20837fi
ac1cb8d3 20838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20839# Binary search between lo and hi bounds.
20840while test "x$ac_lo" != "x$ac_hi"; do
20841 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20842 cat >conftest.$ac_ext <<_ACEOF
20843/* confdefs.h. */
20844_ACEOF
20845cat confdefs.h >>conftest.$ac_ext
20846cat >>conftest.$ac_ext <<_ACEOF
20847/* end confdefs.h. */
20848$ac_includes_default
20849int
20850main ()
20851{
20852static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20853test_array [0] = 0
20854
20855 ;
20856 return 0;
20857}
20858_ACEOF
20859rm -f conftest.$ac_objext
20860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20861 (eval $ac_compile) 2>conftest.er1
a848cd7e 20862 ac_status=$?
ac1cb8d3
VS
20863 grep -v '^ *+' conftest.er1 >conftest.err
20864 rm -f conftest.er1
20865 cat conftest.err >&5
a848cd7e
SC
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); } &&
fd5199d6 20868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870 (eval $ac_try) 2>&5
20871 ac_status=$?
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }; } &&
20874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876 (eval $ac_try) 2>&5
20877 ac_status=$?
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); }; }; then
20880 ac_hi=$ac_mid
20881else
20882 echo "$as_me: failed program was:" >&5
20883sed 's/^/| /' conftest.$ac_ext >&5
20884
20885ac_lo=`expr '(' $ac_mid ')' + 1`
20886fi
ac1cb8d3 20887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20888done
20889case $ac_lo in
20890?*) ac_cv_sizeof_long_long=$ac_lo;;
20891'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20892See \`config.log' for more details." >&5
20893echo "$as_me: error: cannot compute sizeof (long long), 77
20894See \`config.log' for more details." >&2;}
20895 { (exit 1); exit 1; }; } ;;
20896esac
20897else
20898 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
20899 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20900echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20901 { (exit 1); exit 1; }; }
20902else
20903 cat >conftest.$ac_ext <<_ACEOF
20904/* confdefs.h. */
20905_ACEOF
20906cat confdefs.h >>conftest.$ac_ext
20907cat >>conftest.$ac_ext <<_ACEOF
20908/* end confdefs.h. */
20909$ac_includes_default
20910long longval () { return (long) (sizeof (long long)); }
20911unsigned long ulongval () { return (long) (sizeof (long long)); }
20912#include <stdio.h>
20913#include <stdlib.h>
20914int
20915main ()
20916{
20917
20918 FILE *f = fopen ("conftest.val", "w");
20919 if (! f)
20920 exit (1);
20921 if (((long) (sizeof (long long))) < 0)
20922 {
20923 long i = longval ();
20924 if (i != ((long) (sizeof (long long))))
20925 exit (1);
20926 fprintf (f, "%ld\n", i);
20927 }
20928 else
20929 {
20930 unsigned long i = ulongval ();
20931 if (i != ((long) (sizeof (long long))))
20932 exit (1);
20933 fprintf (f, "%lu\n", i);
20934 }
20935 exit (ferror (f) || fclose (f) != 0);
20936
20937 ;
20938 return 0;
20939}
20940_ACEOF
20941rm -f conftest$ac_exeext
20942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20943 (eval $ac_link) 2>&5
20944 ac_status=$?
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20949 ac_status=$?
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; }; then
20952 ac_cv_sizeof_long_long=`cat conftest.val`
20953else
20954 echo "$as_me: program exited with status $ac_status" >&5
20955echo "$as_me: failed program was:" >&5
20956sed 's/^/| /' conftest.$ac_ext >&5
20957
20958( exit $ac_status )
20959{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20960See \`config.log' for more details." >&5
20961echo "$as_me: error: cannot compute sizeof (long long), 77
20962See \`config.log' for more details." >&2;}
20963 { (exit 1); exit 1; }; }
20964fi
ac1cb8d3 20965rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20966fi
20967fi
20968rm -f conftest.val
20969else
20970 ac_cv_sizeof_long_long=0
20971fi
20972fi
20973echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20974echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20975cat >>confdefs.h <<_ACEOF
20976#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20977_ACEOF
20978
20979
20980esac
20981
238ecede
MW
20982echo "$as_me:$LINENO: checking for wchar_t" >&5
20983echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20984if test "${ac_cv_type_wchar_t+set}" = set; then
20985 echo $ECHO_N "(cached) $ECHO_C" >&6
20986else
20987 cat >conftest.$ac_ext <<_ACEOF
20988/* confdefs.h. */
20989_ACEOF
20990cat confdefs.h >>conftest.$ac_ext
20991cat >>conftest.$ac_ext <<_ACEOF
20992/* end confdefs.h. */
20993
83d8eb47
MW
20994 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20995 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20996 # error "fake wchar_t"
20997 #endif
20998 #ifdef HAVE_WCHAR_H
20999 # ifdef __CYGWIN__
21000 # include <stddef.h>
21001 # endif
21002 # include <wchar.h>
21003 #endif
21004 #ifdef HAVE_STDLIB_H
21005 # include <stdlib.h>
21006 #endif
21007 #include <stdio.h>
21008
21009
21010
21011int
21012main ()
21013{
21014if ((wchar_t *) 0)
21015 return 0;
21016if (sizeof (wchar_t))
21017 return 0;
21018 ;
21019 return 0;
21020}
21021_ACEOF
21022rm -f conftest.$ac_objext
21023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21024 (eval $ac_compile) 2>conftest.er1
21025 ac_status=$?
21026 grep -v '^ *+' conftest.er1 >conftest.err
21027 rm -f conftest.er1
21028 cat conftest.err >&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } &&
fd5199d6 21031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
21032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033 (eval $ac_try) 2>&5
21034 ac_status=$?
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; } &&
21037 { ac_try='test -s conftest.$ac_objext'
21038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039 (eval $ac_try) 2>&5
21040 ac_status=$?
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); }; }; then
21043 ac_cv_type_wchar_t=yes
21044else
21045 echo "$as_me: failed program was:" >&5
21046sed 's/^/| /' conftest.$ac_ext >&5
21047
21048ac_cv_type_wchar_t=no
21049fi
21050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21051fi
21052echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21053echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21054
a848cd7e
SC
21055echo "$as_me:$LINENO: checking size of wchar_t" >&5
21056echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21057if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21059else
238ecede
MW
21060 if test "$ac_cv_type_wchar_t" = yes; then
21061 # The cast to unsigned long works around a bug in the HP C Compiler
21062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21064 # This bug is HP SR number 8606223364.
21065 if test "$cross_compiling" = yes; then
21066 # Depending upon the size, compute the lo and hi bounds.
21067cat >conftest.$ac_ext <<_ACEOF
21068/* confdefs.h. */
21069_ACEOF
21070cat confdefs.h >>conftest.$ac_ext
21071cat >>conftest.$ac_ext <<_ACEOF
21072/* end confdefs.h. */
21073
83d8eb47
MW
21074 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21075 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21076 # error "fake wchar_t"
21077 #endif
21078 #ifdef HAVE_WCHAR_H
21079 # ifdef __CYGWIN__
21080 # include <stddef.h>
21081 # endif
21082 # include <wchar.h>
21083 #endif
21084 #ifdef HAVE_STDLIB_H
21085 # include <stdlib.h>
21086 #endif
21087 #include <stdio.h>
21088
21089
21090
21091int
21092main ()
21093{
21094static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21095test_array [0] = 0
21096
21097 ;
21098 return 0;
21099}
21100_ACEOF
21101rm -f conftest.$ac_objext
21102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21103 (eval $ac_compile) 2>conftest.er1
21104 ac_status=$?
21105 grep -v '^ *+' conftest.er1 >conftest.err
21106 rm -f conftest.er1
21107 cat conftest.err >&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } &&
fd5199d6 21110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21113 ac_status=$?
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; } &&
21116 { ac_try='test -s conftest.$ac_objext'
21117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118 (eval $ac_try) 2>&5
21119 ac_status=$?
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); }; }; then
21122 ac_lo=0 ac_mid=0
21123 while :; do
21124 cat >conftest.$ac_ext <<_ACEOF
21125/* confdefs.h. */
21126_ACEOF
21127cat confdefs.h >>conftest.$ac_ext
21128cat >>conftest.$ac_ext <<_ACEOF
21129/* end confdefs.h. */
21130
83d8eb47
MW
21131 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21132 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21133 # error "fake wchar_t"
21134 #endif
21135 #ifdef HAVE_WCHAR_H
21136 # ifdef __CYGWIN__
21137 # include <stddef.h>
21138 # endif
21139 # include <wchar.h>
21140 #endif
21141 #ifdef HAVE_STDLIB_H
21142 # include <stdlib.h>
21143 #endif
21144 #include <stdio.h>
21145
21146
21147
21148int
21149main ()
21150{
21151static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21152test_array [0] = 0
21153
21154 ;
21155 return 0;
21156}
21157_ACEOF
21158rm -f conftest.$ac_objext
21159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21160 (eval $ac_compile) 2>conftest.er1
21161 ac_status=$?
21162 grep -v '^ *+' conftest.er1 >conftest.err
21163 rm -f conftest.er1
21164 cat conftest.err >&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); } &&
fd5199d6 21167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
21168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21169 (eval $ac_try) 2>&5
21170 ac_status=$?
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); }; } &&
21173 { ac_try='test -s conftest.$ac_objext'
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21176 ac_status=$?
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; }; then
21179 ac_hi=$ac_mid; break
21180else
21181 echo "$as_me: failed program was:" >&5
21182sed 's/^/| /' conftest.$ac_ext >&5
21183
21184ac_lo=`expr $ac_mid + 1`
21185 if test $ac_lo -le $ac_mid; then
21186 ac_lo= ac_hi=
21187 break
21188 fi
21189 ac_mid=`expr 2 '*' $ac_mid + 1`
21190fi
21191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21192 done
21193else
21194 echo "$as_me: failed program was:" >&5
21195sed 's/^/| /' conftest.$ac_ext >&5
21196
21197cat >conftest.$ac_ext <<_ACEOF
21198/* confdefs.h. */
21199_ACEOF
21200cat confdefs.h >>conftest.$ac_ext
21201cat >>conftest.$ac_ext <<_ACEOF
21202/* end confdefs.h. */
21203
83d8eb47
MW
21204 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21205 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21206 # error "fake wchar_t"
21207 #endif
21208 #ifdef HAVE_WCHAR_H
21209 # ifdef __CYGWIN__
21210 # include <stddef.h>
21211 # endif
21212 # include <wchar.h>
21213 #endif
21214 #ifdef HAVE_STDLIB_H
21215 # include <stdlib.h>
21216 #endif
21217 #include <stdio.h>
21218
21219
21220
21221int
21222main ()
21223{
21224static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21225test_array [0] = 0
21226
21227 ;
21228 return 0;
21229}
21230_ACEOF
21231rm -f conftest.$ac_objext
21232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21233 (eval $ac_compile) 2>conftest.er1
21234 ac_status=$?
21235 grep -v '^ *+' conftest.er1 >conftest.err
21236 rm -f conftest.er1
21237 cat conftest.err >&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } &&
fd5199d6 21240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
21241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242 (eval $ac_try) 2>&5
21243 ac_status=$?
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); }; } &&
21246 { ac_try='test -s conftest.$ac_objext'
21247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21248 (eval $ac_try) 2>&5
21249 ac_status=$?
21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251 (exit $ac_status); }; }; then
21252 ac_hi=-1 ac_mid=-1
21253 while :; do
21254 cat >conftest.$ac_ext <<_ACEOF
21255/* confdefs.h. */
21256_ACEOF
21257cat confdefs.h >>conftest.$ac_ext
21258cat >>conftest.$ac_ext <<_ACEOF
21259/* end confdefs.h. */
21260
83d8eb47
MW
21261 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21262 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21263 # error "fake wchar_t"
21264 #endif
21265 #ifdef HAVE_WCHAR_H
21266 # ifdef __CYGWIN__
21267 # include <stddef.h>
21268 # endif
21269 # include <wchar.h>
21270 #endif
21271 #ifdef HAVE_STDLIB_H
21272 # include <stdlib.h>
21273 #endif
21274 #include <stdio.h>
21275
21276
21277
21278int
21279main ()
21280{
21281static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21282test_array [0] = 0
21283
21284 ;
21285 return 0;
21286}
21287_ACEOF
21288rm -f conftest.$ac_objext
21289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21290 (eval $ac_compile) 2>conftest.er1
21291 ac_status=$?
21292 grep -v '^ *+' conftest.er1 >conftest.err
21293 rm -f conftest.er1
21294 cat conftest.err >&5
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); } &&
fd5199d6 21297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
21298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21299 (eval $ac_try) 2>&5
21300 ac_status=$?
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); }; } &&
21303 { ac_try='test -s conftest.$ac_objext'
21304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305 (eval $ac_try) 2>&5
21306 ac_status=$?
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); }; }; then
21309 ac_lo=$ac_mid; break
21310else
21311 echo "$as_me: failed program was:" >&5
21312sed 's/^/| /' conftest.$ac_ext >&5
21313
21314ac_hi=`expr '(' $ac_mid ')' - 1`
21315 if test $ac_mid -le $ac_hi; then
21316 ac_lo= ac_hi=
21317 break
21318 fi
21319 ac_mid=`expr 2 '*' $ac_mid`
21320fi
21321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21322 done
21323else
21324 echo "$as_me: failed program was:" >&5
21325sed 's/^/| /' conftest.$ac_ext >&5
21326
21327ac_lo= ac_hi=
21328fi
21329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21330fi
21331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21332# Binary search between lo and hi bounds.
21333while test "x$ac_lo" != "x$ac_hi"; do
21334 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21335 cat >conftest.$ac_ext <<_ACEOF
21336/* confdefs.h. */
21337_ACEOF
21338cat confdefs.h >>conftest.$ac_ext
21339cat >>conftest.$ac_ext <<_ACEOF
21340/* end confdefs.h. */
21341
83d8eb47
MW
21342 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21343 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21344 # error "fake wchar_t"
21345 #endif
21346 #ifdef HAVE_WCHAR_H
21347 # ifdef __CYGWIN__
21348 # include <stddef.h>
21349 # endif
21350 # include <wchar.h>
21351 #endif
21352 #ifdef HAVE_STDLIB_H
21353 # include <stdlib.h>
21354 #endif
21355 #include <stdio.h>
a848cd7e 21356
a848cd7e 21357
a848cd7e 21358
238ecede
MW
21359int
21360main ()
21361{
21362static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21363test_array [0] = 0
a848cd7e 21364
238ecede
MW
21365 ;
21366 return 0;
21367}
21368_ACEOF
21369rm -f conftest.$ac_objext
21370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21371 (eval $ac_compile) 2>conftest.er1
21372 ac_status=$?
21373 grep -v '^ *+' conftest.er1 >conftest.err
21374 rm -f conftest.er1
21375 cat conftest.err >&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); } &&
fd5199d6 21378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
21379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21380 (eval $ac_try) 2>&5
21381 ac_status=$?
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); }; } &&
21384 { ac_try='test -s conftest.$ac_objext'
21385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386 (eval $ac_try) 2>&5
21387 ac_status=$?
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); }; }; then
21390 ac_hi=$ac_mid
21391else
21392 echo "$as_me: failed program was:" >&5
21393sed 's/^/| /' conftest.$ac_ext >&5
21394
21395ac_lo=`expr '(' $ac_mid ')' + 1`
21396fi
21397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21398done
21399case $ac_lo in
21400?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21401'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21402See \`config.log' for more details." >&5
21403echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21404See \`config.log' for more details." >&2;}
21405 { (exit 1); exit 1; }; } ;;
21406esac
21407else
21408 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
21409 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21410echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 21411 { (exit 1); exit 1; }; }
a848cd7e
SC
21412else
21413 cat >conftest.$ac_ext <<_ACEOF
21414/* confdefs.h. */
21415_ACEOF
21416cat confdefs.h >>conftest.$ac_ext
21417cat >>conftest.$ac_ext <<_ACEOF
21418/* end confdefs.h. */
21419
83d8eb47
MW
21420 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21421 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21422 # error "fake wchar_t"
21423 #endif
21424 #ifdef HAVE_WCHAR_H
21425 # ifdef __CYGWIN__
21426 # include <stddef.h>
21427 # endif
21428 # include <wchar.h>
21429 #endif
21430 #ifdef HAVE_STDLIB_H
21431 # include <stdlib.h>
21432 #endif
21433 #include <stdio.h>
21434
21435
21436
21437long longval () { return (long) (sizeof (wchar_t)); }
21438unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21439#include <stdio.h>
21440#include <stdlib.h>
21441int
21442main ()
21443{
a848cd7e 21444
238ecede
MW
21445 FILE *f = fopen ("conftest.val", "w");
21446 if (! f)
21447 exit (1);
21448 if (((long) (sizeof (wchar_t))) < 0)
21449 {
21450 long i = longval ();
21451 if (i != ((long) (sizeof (wchar_t))))
21452 exit (1);
21453 fprintf (f, "%ld\n", i);
21454 }
21455 else
21456 {
21457 unsigned long i = ulongval ();
21458 if (i != ((long) (sizeof (wchar_t))))
21459 exit (1);
21460 fprintf (f, "%lu\n", i);
21461 }
21462 exit (ferror (f) || fclose (f) != 0);
21463
21464 ;
21465 return 0;
21466}
a848cd7e
SC
21467_ACEOF
21468rm -f conftest$ac_exeext
21469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21470 (eval $ac_link) 2>&5
21471 ac_status=$?
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21475 (eval $ac_try) 2>&5
21476 ac_status=$?
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); }; }; then
238ecede 21479 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21480else
21481 echo "$as_me: program exited with status $ac_status" >&5
21482echo "$as_me: failed program was:" >&5
21483sed 's/^/| /' conftest.$ac_ext >&5
21484
21485( exit $ac_status )
238ecede
MW
21486{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21487See \`config.log' for more details." >&5
21488echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21489See \`config.log' for more details." >&2;}
21490 { (exit 1); exit 1; }; }
a848cd7e 21491fi
ac1cb8d3 21492rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21493fi
a848cd7e 21494fi
238ecede
MW
21495rm -f conftest.val
21496else
21497 ac_cv_sizeof_wchar_t=0
21498fi
21499fi
21500echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21501echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21502cat >>confdefs.h <<_ACEOF
238ecede 21503#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21504_ACEOF
21505
21506
47a7e797
MW
21507if test "$ac_cv_sizeof_wchar_t" != "0"; then
21508 wxUSE_WCHAR_T=yes
21509else
21510 wxUSE_WCHAR_T=no
21511fi
238ecede 21512
ba3d13e1
VZ
21513echo "$as_me:$LINENO: checking for va_copy" >&5
21514echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21515if test "${wx_cv_func_va_copy+set}" = set; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21517else
21518
21519 cat >conftest.$ac_ext <<_ACEOF
21520
21521 #include <stdarg.h>
21522 void foo(char *f, ...)
21523 {
21524 va_list ap1, ap2;
21525 va_start(ap1, f);
21526 va_copy(ap2, ap1);
21527 va_end(ap2);
21528 va_end(ap1);
21529 }
5886b072
VZ
21530 int main()
21531 {
b902e639
VZ
21532 foo("hi", 17);
21533 return 0;
5886b072 21534 }
ba3d13e1
VZ
21535_ACEOF
21536rm -f conftest.$ac_objext conftest$ac_exeext
21537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21538 (eval $ac_link) 2>conftest.er1
21539 ac_status=$?
21540 grep -v '^ *+' conftest.er1 >conftest.err
21541 rm -f conftest.er1
21542 cat conftest.err >&5
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); } &&
fd5199d6 21545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
21546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21547 (eval $ac_try) 2>&5
21548 ac_status=$?
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); }; } &&
21551 { ac_try='test -s conftest$ac_exeext'
21552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21553 (eval $ac_try) 2>&5
21554 ac_status=$?
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); }; }; then
21557 wx_cv_func_va_copy=yes
21558else
21559 echo "$as_me: failed program was:" >&5
21560sed 's/^/| /' conftest.$ac_ext >&5
21561
21562wx_cv_func_va_copy=no
21563
21564fi
21565rm -f conftest.err conftest.$ac_objext \
21566 conftest$ac_exeext conftest.$ac_ext
21567
21568
21569fi
21570echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21571echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21572
21573if test $wx_cv_func_va_copy = "yes"; then
21574 cat >>confdefs.h <<\_ACEOF
21575#define HAVE_VA_COPY 1
21576_ACEOF
21577
21578else
21579 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21580echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21581if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21582 echo $ECHO_N "(cached) $ECHO_C" >&6
21583else
21584
21585 if test "$cross_compiling" = yes; then
21586 wx_cv_type_va_list_lvalue=yes
21587
21588else
21589 cat >conftest.$ac_ext <<_ACEOF
21590
21591 #include <stdarg.h>
21592 int foo(char *f, ...)
21593 {
21594 va_list ap1, ap2;
21595 va_start(ap1, f);
21596 ap2 = ap1;
21597 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21598 return 1;
21599 va_end(ap2);
21600 va_end(ap1);
21601 return 0;
21602 }
21603 int main()
21604 {
21605 return foo("hi", 17);
21606 }
21607_ACEOF
21608rm -f conftest$ac_exeext
21609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21610 (eval $ac_link) 2>&5
21611 ac_status=$?
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21615 (eval $ac_try) 2>&5
21616 ac_status=$?
21617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); }; }; then
21619 wx_cv_type_va_list_lvalue=yes
21620else
21621 echo "$as_me: program exited with status $ac_status" >&5
21622echo "$as_me: failed program was:" >&5
21623sed 's/^/| /' conftest.$ac_ext >&5
21624
21625( exit $ac_status )
21626wx_cv_type_va_list_lvalue=no
21627fi
21628rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21629fi
21630
21631
21632fi
21633echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21634echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21635
21636 if test $wx_cv_type_va_list_lvalue != "yes"; then
21637 cat >>confdefs.h <<\_ACEOF
21638#define VA_LIST_IS_ARRAY 1
21639_ACEOF
21640
21641 fi
21642fi
21643
70c536f3
VZ
21644if test "$wxUSE_VARARG_MACROS" = "yes"; then
21645
ca766534
VS
21646echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
21647echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
21648if test "${wx_cv_have_variadic_macros+set}" = set; then
21649 echo $ECHO_N "(cached) $ECHO_C" >&6
21650else
21651
38c6938f
VZ
21652 ac_ext=cc
21653ac_cpp='$CXXCPP $CPPFLAGS'
21654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21657
ca766534
VS
21658 cat >conftest.$ac_ext <<_ACEOF
21659/* confdefs.h. */
21660_ACEOF
21661cat confdefs.h >>conftest.$ac_ext
21662cat >>conftest.$ac_ext <<_ACEOF
21663/* end confdefs.h. */
21664
21665 #include <stdio.h>
21666 #define test(fmt, ...) printf(fmt, __VA_ARGS__)
21667
21668int
21669main ()
21670{
21671
21672 test("%s %d %p", "test", 1, 0);
21673
21674
21675 ;
21676 return 0;
21677}
21678_ACEOF
21679rm -f conftest.$ac_objext
21680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21681 (eval $ac_compile) 2>conftest.er1
21682 ac_status=$?
21683 grep -v '^ *+' conftest.er1 >conftest.err
21684 rm -f conftest.er1
21685 cat conftest.err >&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } &&
38c6938f 21688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ca766534
VS
21689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690 (eval $ac_try) 2>&5
21691 ac_status=$?
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; } &&
21694 { ac_try='test -s conftest.$ac_objext'
21695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696 (eval $ac_try) 2>&5
21697 ac_status=$?
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); }; }; then
21700 wx_cv_have_variadic_macros=yes
21701else
21702 echo "$as_me: failed program was:" >&5
21703sed 's/^/| /' conftest.$ac_ext >&5
21704
21705wx_cv_have_variadic_macros=no
21706
21707fi
21708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38c6938f
VZ
21709 ac_ext=c
21710ac_cpp='$CPP $CPPFLAGS'
21711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21713ac_compiler_gnu=$ac_cv_c_compiler_gnu
21714
ca766534
VS
21715
21716
21717fi
21718echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
21719echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
21720
21721if test $wx_cv_have_variadic_macros = "yes"; then
21722 cat >>confdefs.h <<\_ACEOF
21723#define HAVE_VARIADIC_MACROS 1
21724_ACEOF
21725
21726fi
21727
70c536f3 21728fi
a848cd7e
SC
21729# Check whether --enable-largefile or --disable-largefile was given.
21730if test "${enable_largefile+set}" = set; then
21731 enableval="$enable_largefile"
21732
21733fi;
21734if test "$enable_largefile" != no; then
21735 wx_largefile=no
21736
21737 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21738echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21739if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21740 echo $ECHO_N "(cached) $ECHO_C" >&6
21741else
21742
21743 cat >conftest.$ac_ext <<_ACEOF
21744/* confdefs.h. */
21745_ACEOF
21746cat confdefs.h >>conftest.$ac_ext
21747cat >>conftest.$ac_ext <<_ACEOF
21748/* end confdefs.h. */
21749#define _FILE_OFFSET_BITS 64
21750 #include <sys/types.h>
21751int
21752main ()
21753{
21754typedef struct {
21755 unsigned int field: sizeof(off_t) == 8;
21756} wxlf;
21757
21758 ;
21759 return 0;
21760}
21761_ACEOF
21762rm -f conftest.$ac_objext
21763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21764 (eval $ac_compile) 2>conftest.er1
a848cd7e 21765 ac_status=$?
ac1cb8d3
VS
21766 grep -v '^ *+' conftest.er1 >conftest.err
21767 rm -f conftest.er1
21768 cat conftest.err >&5
a848cd7e
SC
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); } &&
fd5199d6 21771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21773 (eval $ac_try) 2>&5
21774 ac_status=$?
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); }; } &&
21777 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779 (eval $ac_try) 2>&5
21780 ac_status=$?
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); }; }; then
21783 ac_cv_sys_file_offset_bits=64
21784else
21785 echo "$as_me: failed program was:" >&5
21786sed 's/^/| /' conftest.$ac_ext >&5
21787
21788ac_cv_sys_file_offset_bits=no
21789fi
ac1cb8d3 21790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21791
21792
21793fi
21794echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21795echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21796
21797 if test "$ac_cv_sys_file_offset_bits" != no; then
21798 wx_largefile=yes
21799 cat >>confdefs.h <<_ACEOF
21800#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21801_ACEOF
21802
21803 fi
21804
21805 if test "x$wx_largefile" != "xyes"; then
21806
21807 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21808echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21809if test "${ac_cv_sys_large_files+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21811else
21812
21813 cat >conftest.$ac_ext <<_ACEOF
21814/* confdefs.h. */
21815_ACEOF
21816cat confdefs.h >>conftest.$ac_ext
21817cat >>conftest.$ac_ext <<_ACEOF
21818/* end confdefs.h. */
21819#define _LARGE_FILES 1
21820 #include <sys/types.h>
21821int
21822main ()
21823{
21824typedef struct {
21825 unsigned int field: sizeof(off_t) == 8;
21826} wxlf;
21827
21828 ;
21829 return 0;
21830}
21831_ACEOF
21832rm -f conftest.$ac_objext
21833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21834 (eval $ac_compile) 2>conftest.er1
a848cd7e 21835 ac_status=$?
ac1cb8d3
VS
21836 grep -v '^ *+' conftest.er1 >conftest.err
21837 rm -f conftest.er1
21838 cat conftest.err >&5
a848cd7e
SC
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } &&
fd5199d6 21841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843 (eval $ac_try) 2>&5
21844 ac_status=$?
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); }; } &&
21847 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849 (eval $ac_try) 2>&5
21850 ac_status=$?
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; }; then
21853 ac_cv_sys_large_files=1
21854else
21855 echo "$as_me: failed program was:" >&5
21856sed 's/^/| /' conftest.$ac_ext >&5
21857
21858ac_cv_sys_large_files=no
21859fi
ac1cb8d3 21860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21861
21862
21863fi
21864echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21865echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21866
21867 if test "$ac_cv_sys_large_files" != no; then
21868 wx_largefile=yes
21869 cat >>confdefs.h <<_ACEOF
21870#define _LARGE_FILES $ac_cv_sys_large_files
21871_ACEOF
21872
21873 fi
21874
21875 fi
21876
21877 echo "$as_me:$LINENO: checking if large file support is available" >&5
21878echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21879 if test "x$wx_largefile" = "xyes"; then
21880 cat >>confdefs.h <<\_ACEOF
21881#define HAVE_LARGEFILE_SUPPORT 1
21882_ACEOF
21883
21884 fi
21885 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21886echo "${ECHO_T}$wx_largefile" >&6
21887fi
21888
5b674b9d
DE
21889
21890if test "x$wx_largefile" = "xyes"; then
21891 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 21892 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21893
21894 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21895 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21896echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21897if test "${wx_cv_STDC_EXT_required+set}" = set; then
21898 echo $ECHO_N "(cached) $ECHO_C" >&6
21899else
21900
9b8888f9
VZ
21901 ac_ext=cc
21902ac_cpp='$CXXCPP $CPPFLAGS'
21903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21906
00421666
MW
21907 cat >conftest.$ac_ext <<_ACEOF
21908/* confdefs.h. */
21909_ACEOF
21910cat confdefs.h >>conftest.$ac_ext
21911cat >>conftest.$ac_ext <<_ACEOF
21912/* end confdefs.h. */
21913
21914int
21915main ()
21916{
21917
21918 #ifndef __STDC_EXT__
21919 choke me
21920 #endif
21921
21922 ;
21923 return 0;
21924}
21925_ACEOF
21926rm -f conftest.$ac_objext
21927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21928 (eval $ac_compile) 2>conftest.er1
21929 ac_status=$?
21930 grep -v '^ *+' conftest.er1 >conftest.err
21931 rm -f conftest.er1
21932 cat conftest.err >&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } &&
9b8888f9 21935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
21936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21937 (eval $ac_try) 2>&5
21938 ac_status=$?
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); }; } &&
21941 { ac_try='test -s conftest.$ac_objext'
21942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943 (eval $ac_try) 2>&5
21944 ac_status=$?
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); }; }; then
21947 wx_cv_STDC_EXT_required=no
21948else
21949 echo "$as_me: failed program was:" >&5
21950sed 's/^/| /' conftest.$ac_ext >&5
21951
21952wx_cv_STDC_EXT_required=yes
21953
21954fi
21955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
21956 ac_ext=c
21957ac_cpp='$CPP $CPPFLAGS'
21958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21960ac_compiler_gnu=$ac_cv_c_compiler_gnu
21961
00421666
MW
21962
21963
21964fi
21965echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21966echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21967 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 21968 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
21969 fi
21970 fi
5b674b9d 21971 else
5ff751d6 21972 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
21973 fi
21974 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21975echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21976if test "${ac_cv_sys_largefile_source+set}" = set; then
21977 echo $ECHO_N "(cached) $ECHO_C" >&6
21978else
21979 while :; do
21980 ac_cv_sys_largefile_source=no
21981 cat >conftest.$ac_ext <<_ACEOF
21982/* confdefs.h. */
21983_ACEOF
21984cat confdefs.h >>conftest.$ac_ext
21985cat >>conftest.$ac_ext <<_ACEOF
21986/* end confdefs.h. */
21987#include <stdio.h>
21988int
21989main ()
21990{
21991return !fseeko;
21992 ;
21993 return 0;
21994}
21995_ACEOF
21996rm -f conftest.$ac_objext
21997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21998 (eval $ac_compile) 2>conftest.er1
21999 ac_status=$?
22000 grep -v '^ *+' conftest.er1 >conftest.err
22001 rm -f conftest.er1
22002 cat conftest.err >&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); } &&
fd5199d6 22005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007 (eval $ac_try) 2>&5
22008 ac_status=$?
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); }; } &&
22011 { ac_try='test -s conftest.$ac_objext'
22012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22013 (eval $ac_try) 2>&5
22014 ac_status=$?
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); }; }; then
22017 break
22018else
22019 echo "$as_me: failed program was:" >&5
22020sed 's/^/| /' conftest.$ac_ext >&5
22021
22022fi
22023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22024 cat >conftest.$ac_ext <<_ACEOF
22025/* confdefs.h. */
22026_ACEOF
22027cat confdefs.h >>conftest.$ac_ext
22028cat >>conftest.$ac_ext <<_ACEOF
22029/* end confdefs.h. */
22030#define _LARGEFILE_SOURCE 1
22031#include <stdio.h>
22032int
22033main ()
22034{
22035return !fseeko;
22036 ;
22037 return 0;
22038}
22039_ACEOF
22040rm -f conftest.$ac_objext
22041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22042 (eval $ac_compile) 2>conftest.er1
22043 ac_status=$?
22044 grep -v '^ *+' conftest.er1 >conftest.err
22045 rm -f conftest.er1
22046 cat conftest.err >&5
22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); } &&
fd5199d6 22049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22051 (eval $ac_try) 2>&5
22052 ac_status=$?
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; } &&
22055 { ac_try='test -s conftest.$ac_objext'
22056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057 (eval $ac_try) 2>&5
22058 ac_status=$?
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; }; then
22061 ac_cv_sys_largefile_source=1; break
22062else
22063 echo "$as_me: failed program was:" >&5
22064sed 's/^/| /' conftest.$ac_ext >&5
22065
22066fi
22067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22068 break
22069done
22070fi
22071echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22072echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22073if test "$ac_cv_sys_largefile_source" != no; then
22074
22075cat >>confdefs.h <<_ACEOF
22076#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22077_ACEOF
22078
22079fi
22080rm -f conftest*
22081
22082# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22083# in glibc 2.1.3, but that breaks too many other things.
22084# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22085echo "$as_me:$LINENO: checking for fseeko" >&5
22086echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22087if test "${ac_cv_func_fseeko+set}" = set; then
22088 echo $ECHO_N "(cached) $ECHO_C" >&6
22089else
22090 cat >conftest.$ac_ext <<_ACEOF
22091/* confdefs.h. */
22092_ACEOF
22093cat confdefs.h >>conftest.$ac_ext
22094cat >>conftest.$ac_ext <<_ACEOF
22095/* end confdefs.h. */
22096#include <stdio.h>
22097int
22098main ()
22099{
22100return fseeko && fseeko (stdin, 0, 0);
22101 ;
22102 return 0;
22103}
22104_ACEOF
22105rm -f conftest.$ac_objext conftest$ac_exeext
22106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22107 (eval $ac_link) 2>conftest.er1
22108 ac_status=$?
22109 grep -v '^ *+' conftest.er1 >conftest.err
22110 rm -f conftest.er1
22111 cat conftest.err >&5
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } &&
fd5199d6 22114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22116 (eval $ac_try) 2>&5
22117 ac_status=$?
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); }; } &&
22120 { ac_try='test -s conftest$ac_exeext'
22121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22122 (eval $ac_try) 2>&5
22123 ac_status=$?
22124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125 (exit $ac_status); }; }; then
22126 ac_cv_func_fseeko=yes
22127else
22128 echo "$as_me: failed program was:" >&5
22129sed 's/^/| /' conftest.$ac_ext >&5
22130
22131ac_cv_func_fseeko=no
22132fi
22133rm -f conftest.err conftest.$ac_objext \
22134 conftest$ac_exeext conftest.$ac_ext
22135fi
22136echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22137echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22138if test $ac_cv_func_fseeko = yes; then
22139
22140cat >>confdefs.h <<\_ACEOF
22141#define HAVE_FSEEKO 1
22142_ACEOF
22143
22144fi
22145
5b674b9d 22146 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22147 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22148 fi
a848cd7e
SC
22149fi
22150
22151echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22152echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22153if test "${ac_cv_c_bigendian+set}" = set; then
22154 echo $ECHO_N "(cached) $ECHO_C" >&6
22155else
22156 ac_cv_c_bigendian=unknown
22157# See if sys/param.h defines the BYTE_ORDER macro.
22158cat >conftest.$ac_ext <<_ACEOF
22159/* confdefs.h. */
22160_ACEOF
22161cat confdefs.h >>conftest.$ac_ext
22162cat >>conftest.$ac_ext <<_ACEOF
22163/* end confdefs.h. */
22164#include <sys/types.h>
22165#include <sys/param.h>
22166int
22167main ()
22168{
22169
22170#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22171 bogus endian macros
22172#endif
22173 ;
22174 return 0;
22175}
22176_ACEOF
22177rm -f conftest.$ac_objext
22178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22179 (eval $ac_compile) 2>conftest.er1
a848cd7e 22180 ac_status=$?
ac1cb8d3
VS
22181 grep -v '^ *+' conftest.er1 >conftest.err
22182 rm -f conftest.er1
22183 cat conftest.err >&5
a848cd7e
SC
22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); } &&
fd5199d6 22186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22188 (eval $ac_try) 2>&5
22189 ac_status=$?
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); }; } &&
22192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194 (eval $ac_try) 2>&5
22195 ac_status=$?
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); }; }; then
22198 # It does; now see whether it defined to BIG_ENDIAN or not.
22199cat >conftest.$ac_ext <<_ACEOF
22200/* confdefs.h. */
22201_ACEOF
22202cat confdefs.h >>conftest.$ac_ext
22203cat >>conftest.$ac_ext <<_ACEOF
22204/* end confdefs.h. */
22205#include <sys/types.h>
22206#include <sys/param.h>
22207int
22208main ()
22209{
22210
22211#if BYTE_ORDER != BIG_ENDIAN
22212 not big endian
22213#endif
22214 ;
22215 return 0;
22216}
22217_ACEOF
22218rm -f conftest.$ac_objext
22219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22220 (eval $ac_compile) 2>conftest.er1
a848cd7e 22221 ac_status=$?
ac1cb8d3
VS
22222 grep -v '^ *+' conftest.er1 >conftest.err
22223 rm -f conftest.er1
22224 cat conftest.err >&5
a848cd7e
SC
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); } &&
fd5199d6 22227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22229 (eval $ac_try) 2>&5
22230 ac_status=$?
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); }; } &&
22233 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22235 (eval $ac_try) 2>&5
22236 ac_status=$?
22237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); }; }; then
22239 ac_cv_c_bigendian=yes
22240else
22241 echo "$as_me: failed program was:" >&5
22242sed 's/^/| /' conftest.$ac_ext >&5
22243
22244ac_cv_c_bigendian=no
22245fi
ac1cb8d3 22246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22247else
22248 echo "$as_me: failed program was:" >&5
22249sed 's/^/| /' conftest.$ac_ext >&5
22250
22251fi
ac1cb8d3 22252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22253if test $ac_cv_c_bigendian = unknown; then
22254if test "$cross_compiling" = yes; then
22255 ac_cv_c_bigendian=unknown
22256else
22257 cat >conftest.$ac_ext <<_ACEOF
22258/* confdefs.h. */
22259_ACEOF
22260cat confdefs.h >>conftest.$ac_ext
22261cat >>conftest.$ac_ext <<_ACEOF
22262/* end confdefs.h. */
22263main () {
22264 /* Are we little or big endian? From Harbison&Steele. */
22265 union
22266 {
22267 long l;
22268 char c[sizeof (long)];
22269 } u;
22270 u.l = 1;
22271 exit (u.c[sizeof (long) - 1] == 1);
22272}
22273_ACEOF
22274rm -f conftest$ac_exeext
22275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22276 (eval $ac_link) 2>&5
22277 ac_status=$?
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
22285 ac_cv_c_bigendian=no
22286else
22287 echo "$as_me: program exited with status $ac_status" >&5
22288echo "$as_me: failed program was:" >&5
22289sed 's/^/| /' conftest.$ac_ext >&5
22290
22291( exit $ac_status )
22292ac_cv_c_bigendian=yes
22293fi
ac1cb8d3 22294rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22295fi
22296fi
22297fi
22298echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22299echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22300if test $ac_cv_c_bigendian = unknown; then
22301 { 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
22302echo "$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;}
22303fi
22304if test $ac_cv_c_bigendian = yes; then
22305 cat >>confdefs.h <<\_ACEOF
22306#define WORDS_BIGENDIAN 1
22307_ACEOF
22308
22309fi
22310
22311
fd5199d6 22312ac_ext=cc
a848cd7e
SC
22313ac_cpp='$CXXCPP $CPPFLAGS'
22314ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22315ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22316ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
fd5199d6
VZ
22317echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
22318echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
22319if test -z "$CXXCPP"; then
22320 if test "${ac_cv_prog_CXXCPP+set}" = set; then
a848cd7e 22321 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 22322else
fd5199d6
VZ
22323 # Double quotes because CXXCPP needs to be expanded
22324 for CXXCPP in "$CXX -E" "/lib/cpp"
22325 do
22326 ac_preproc_ok=false
22327for ac_cxx_preproc_warn_flag in '' yes
22328do
22329 # Use a header file that comes with gcc, so configuring glibc
22330 # with a fresh cross-compiler works.
22331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22332 # <limits.h> exists even on freestanding compilers.
22333 # On the NeXT, cc -E runs the code through the compiler's parser,
22334 # not just through cpp. "Syntax error" is here to catch this case.
22335 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
22336/* confdefs.h. */
22337_ACEOF
22338cat confdefs.h >>conftest.$ac_ext
22339cat >>conftest.$ac_ext <<_ACEOF
22340/* end confdefs.h. */
fd5199d6
VZ
22341#ifdef __STDC__
22342# include <limits.h>
22343#else
22344# include <assert.h>
22345#endif
22346 Syntax error
a848cd7e 22347_ACEOF
fd5199d6
VZ
22348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e 22350 ac_status=$?
ac1cb8d3
VS
22351 grep -v '^ *+' conftest.er1 >conftest.err
22352 rm -f conftest.er1
22353 cat conftest.err >&5
a848cd7e 22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fd5199d6
VZ
22355 (exit $ac_status); } >/dev/null; then
22356 if test -s conftest.err; then
22357 ac_cpp_err=$ac_cxx_preproc_warn_flag
22358 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22359 else
22360 ac_cpp_err=
22361 fi
22362else
22363 ac_cpp_err=yes
22364fi
22365if test -z "$ac_cpp_err"; then
22366 :
a848cd7e
SC
22367else
22368 echo "$as_me: failed program was:" >&5
22369sed 's/^/| /' conftest.$ac_ext >&5
22370
fd5199d6
VZ
22371 # Broken: fails on valid input.
22372continue
a848cd7e 22373fi
fd5199d6 22374rm -f conftest.err conftest.$ac_ext
a848cd7e 22375
fd5199d6
VZ
22376 # OK, works on sane cases. Now check whether non-existent headers
22377 # can be detected and how.
22378 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
22379/* confdefs.h. */
22380_ACEOF
22381cat confdefs.h >>conftest.$ac_ext
22382cat >>conftest.$ac_ext <<_ACEOF
22383/* end confdefs.h. */
fd5199d6 22384#include <ac_nonexistent.h>
a848cd7e
SC
22385_ACEOF
22386if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22388 ac_status=$?
22389 grep -v '^ *+' conftest.er1 >conftest.err
22390 rm -f conftest.er1
22391 cat conftest.err >&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); } >/dev/null; then
22394 if test -s conftest.err; then
22395 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22396 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22397 else
22398 ac_cpp_err=
22399 fi
22400else
22401 ac_cpp_err=yes
22402fi
22403if test -z "$ac_cpp_err"; then
fd5199d6
VZ
22404 # Broken: success on invalid input.
22405continue
a848cd7e
SC
22406else
22407 echo "$as_me: failed program was:" >&5
22408sed 's/^/| /' conftest.$ac_ext >&5
22409
fd5199d6
VZ
22410 # Passes both tests.
22411ac_preproc_ok=:
22412break
a848cd7e
SC
22413fi
22414rm -f conftest.err conftest.$ac_ext
a848cd7e 22415
fd5199d6
VZ
22416done
22417# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22418rm -f conftest.err conftest.$ac_ext
22419if $ac_preproc_ok; then
22420 break
a848cd7e 22421fi
fd5199d6
VZ
22422
22423 done
22424 ac_cv_prog_CXXCPP=$CXXCPP
a848cd7e
SC
22425
22426fi
fd5199d6
VZ
22427 CXXCPP=$ac_cv_prog_CXXCPP
22428else
22429 ac_cv_prog_CXXCPP=$CXXCPP
22430fi
22431echo "$as_me:$LINENO: result: $CXXCPP" >&5
22432echo "${ECHO_T}$CXXCPP" >&6
22433ac_preproc_ok=false
22434for ac_cxx_preproc_warn_flag in '' yes
22435do
22436 # Use a header file that comes with gcc, so configuring glibc
22437 # with a fresh cross-compiler works.
22438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22439 # <limits.h> exists even on freestanding compilers.
22440 # On the NeXT, cc -E runs the code through the compiler's parser,
22441 # not just through cpp. "Syntax error" is here to catch this case.
22442 cat >conftest.$ac_ext <<_ACEOF
22443/* confdefs.h. */
a848cd7e 22444_ACEOF
fd5199d6
VZ
22445cat confdefs.h >>conftest.$ac_ext
22446cat >>conftest.$ac_ext <<_ACEOF
22447/* end confdefs.h. */
22448#ifdef __STDC__
22449# include <limits.h>
22450#else
22451# include <assert.h>
22452#endif
22453 Syntax error
22454_ACEOF
22455if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22457 ac_status=$?
22458 grep -v '^ *+' conftest.er1 >conftest.err
22459 rm -f conftest.er1
22460 cat conftest.err >&5
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); } >/dev/null; then
22463 if test -s conftest.err; then
22464 ac_cpp_err=$ac_cxx_preproc_warn_flag
22465 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22466 else
22467 ac_cpp_err=
22468 fi
22469else
22470 ac_cpp_err=yes
a848cd7e 22471fi
fd5199d6
VZ
22472if test -z "$ac_cpp_err"; then
22473 :
22474else
22475 echo "$as_me: failed program was:" >&5
22476sed 's/^/| /' conftest.$ac_ext >&5
a848cd7e 22477
fd5199d6
VZ
22478 # Broken: fails on valid input.
22479continue
22480fi
22481rm -f conftest.err conftest.$ac_ext
a848cd7e 22482
fd5199d6
VZ
22483 # OK, works on sane cases. Now check whether non-existent headers
22484 # can be detected and how.
22485 cat >conftest.$ac_ext <<_ACEOF
22486/* confdefs.h. */
a848cd7e 22487_ACEOF
fd5199d6
VZ
22488cat confdefs.h >>conftest.$ac_ext
22489cat >>conftest.$ac_ext <<_ACEOF
22490/* end confdefs.h. */
22491#include <ac_nonexistent.h>
22492_ACEOF
22493if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22495 ac_status=$?
22496 grep -v '^ *+' conftest.er1 >conftest.err
22497 rm -f conftest.er1
22498 cat conftest.err >&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); } >/dev/null; then
22501 if test -s conftest.err; then
22502 ac_cpp_err=$ac_cxx_preproc_warn_flag
22503 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22504 else
22505 ac_cpp_err=
22506 fi
22507else
22508 ac_cpp_err=yes
22509fi
22510if test -z "$ac_cpp_err"; then
22511 # Broken: success on invalid input.
22512continue
22513else
22514 echo "$as_me: failed program was:" >&5
22515sed 's/^/| /' conftest.$ac_ext >&5
a848cd7e 22516
fd5199d6
VZ
22517 # Passes both tests.
22518ac_preproc_ok=:
22519break
22520fi
22521rm -f conftest.err conftest.$ac_ext
a848cd7e 22522
fd5199d6
VZ
22523done
22524# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22525rm -f conftest.err conftest.$ac_ext
22526if $ac_preproc_ok; then
22527 :
22528else
22529 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22530See \`config.log' for more details." >&5
22531echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22532See \`config.log' for more details." >&2;}
22533 { (exit 1); exit 1; }; }
22534fi
22535
22536ac_ext=cc
5d7b7554
VZ
22537ac_cpp='$CXXCPP $CPPFLAGS'
22538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22541
22542
22543
22544
a848cd7e
SC
22545
22546 ac_ext=cc
22547ac_cpp='$CXXCPP $CPPFLAGS'
22548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22551
22552
fd5199d6
VZ
22553
22554for ac_header in iostream
22555do
22556as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22557if eval "test \"\${$as_ac_Header+set}\" = set"; then
22558 echo "$as_me:$LINENO: checking for $ac_header" >&5
22559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22560if eval "test \"\${$as_ac_Header+set}\" = set"; then
22561 echo $ECHO_N "(cached) $ECHO_C" >&6
22562fi
22563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22565else
22566 # Is the header compilable?
22567echo "$as_me:$LINENO: checking $ac_header usability" >&5
22568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22569cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
22570/* confdefs.h. */
22571_ACEOF
22572cat confdefs.h >>conftest.$ac_ext
22573cat >>conftest.$ac_ext <<_ACEOF
22574/* end confdefs.h. */
fd5199d6
VZ
22575$ac_includes_default
22576#include <$ac_header>
a848cd7e
SC
22577_ACEOF
22578rm -f conftest.$ac_objext
22579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22580 (eval $ac_compile) 2>conftest.er1
a848cd7e 22581 ac_status=$?
ac1cb8d3
VS
22582 grep -v '^ *+' conftest.er1 >conftest.err
22583 rm -f conftest.er1
22584 cat conftest.err >&5
a848cd7e
SC
22585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586 (exit $ac_status); } &&
bb9e79c0 22587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22589 (eval $ac_try) 2>&5
22590 ac_status=$?
22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592 (exit $ac_status); }; } &&
22593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22595 (eval $ac_try) 2>&5
22596 ac_status=$?
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); }; }; then
fd5199d6
VZ
22599 ac_header_compiler=yes
22600else
22601 echo "$as_me: failed program was:" >&5
22602sed 's/^/| /' conftest.$ac_ext >&5
a848cd7e 22603
fd5199d6
VZ
22604ac_header_compiler=no
22605fi
22606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22607echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22608echo "${ECHO_T}$ac_header_compiler" >&6
a848cd7e 22609
fd5199d6
VZ
22610# Is the header present?
22611echo "$as_me:$LINENO: checking $ac_header presence" >&5
22612echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22613cat >conftest.$ac_ext <<_ACEOF
22614/* confdefs.h. */
22615_ACEOF
22616cat confdefs.h >>conftest.$ac_ext
22617cat >>conftest.$ac_ext <<_ACEOF
22618/* end confdefs.h. */
22619#include <$ac_header>
22620_ACEOF
22621if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22623 ac_status=$?
22624 grep -v '^ *+' conftest.er1 >conftest.err
22625 rm -f conftest.er1
22626 cat conftest.err >&5
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); } >/dev/null; then
22629 if test -s conftest.err; then
22630 ac_cpp_err=$ac_cxx_preproc_warn_flag
22631 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22632 else
22633 ac_cpp_err=
22634 fi
22635else
22636 ac_cpp_err=yes
22637fi
22638if test -z "$ac_cpp_err"; then
22639 ac_header_preproc=yes
a848cd7e
SC
22640else
22641 echo "$as_me: failed program was:" >&5
22642sed 's/^/| /' conftest.$ac_ext >&5
22643
fd5199d6
VZ
22644 ac_header_preproc=no
22645fi
22646rm -f conftest.err conftest.$ac_ext
22647echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22648echo "${ECHO_T}$ac_header_preproc" >&6
a848cd7e 22649
fd5199d6
VZ
22650# So? What about this header?
22651case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22652 yes:no: )
22653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22654echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22656echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22657 ac_header_preproc=yes
22658 ;;
22659 no:yes:* )
22660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22661echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22663echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22665echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22667echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22669echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22671echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22672 (
22673 cat <<\_ASBOX
22674## ----------------------------------------- ##
22675## Report this to wx-dev@lists.wxwidgets.org ##
22676## ----------------------------------------- ##
22677_ASBOX
22678 ) |
22679 sed "s/^/$as_me: WARNING: /" >&2
22680 ;;
22681esac
22682echo "$as_me:$LINENO: checking for $ac_header" >&5
22683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22684if eval "test \"\${$as_ac_Header+set}\" = set"; then
22685 echo $ECHO_N "(cached) $ECHO_C" >&6
22686else
22687 eval "$as_ac_Header=\$ac_header_preproc"
22688fi
22689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22690echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a848cd7e 22691
fd5199d6
VZ
22692fi
22693if test `eval echo '${'$as_ac_Header'}'` = yes; then
22694 cat >>confdefs.h <<_ACEOF
22695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22696_ACEOF
a848cd7e
SC
22697
22698fi
fd5199d6
VZ
22699
22700done
22701
22702
22703 if test "$ac_cv_header_iostream" = "yes" ; then
22704 :
22705 else
22706 cat >>confdefs.h <<\_ACEOF
22707#define wxUSE_IOSTREAMH 1
22708_ACEOF
22709
22710 fi
22711
22712 ac_ext=c
22713ac_cpp='$CPP $CPPFLAGS'
22714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22716ac_compiler_gnu=$ac_cv_c_compiler_gnu
22717
22718
22719
22720
22721 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22722echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22723if test "${wx_cv_cpp_bool+set}" = set; then
22724 echo $ECHO_N "(cached) $ECHO_C" >&6
22725else
22726
22727
a848cd7e 22728
5d7b7554
VZ
22729 ac_ext=cc
22730ac_cpp='$CXXCPP $CPPFLAGS'
22731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22734
22735
fd5199d6
VZ
22736 cat >conftest.$ac_ext <<_ACEOF
22737/* confdefs.h. */
22738_ACEOF
22739cat confdefs.h >>conftest.$ac_ext
22740cat >>conftest.$ac_ext <<_ACEOF
22741/* end confdefs.h. */
22742
22743
22744int
22745main ()
22746{
22747
22748 bool b = true;
22749
22750 return 0;
22751
22752 ;
22753 return 0;
22754}
22755_ACEOF
22756rm -f conftest.$ac_objext
22757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22758 (eval $ac_compile) 2>conftest.er1
22759 ac_status=$?
22760 grep -v '^ *+' conftest.er1 >conftest.err
22761 rm -f conftest.er1
22762 cat conftest.err >&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } &&
22765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22767 (eval $ac_try) 2>&5
22768 ac_status=$?
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); }; } &&
22771 { ac_try='test -s conftest.$ac_objext'
22772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22773 (eval $ac_try) 2>&5
22774 ac_status=$?
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); }; }; then
22777
22778 wx_cv_cpp_bool=yes
22779
22780else
22781 echo "$as_me: failed program was:" >&5
22782sed 's/^/| /' conftest.$ac_ext >&5
22783
22784
22785 wx_cv_cpp_bool=no
22786
22787
22788fi
22789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22790
22791 ac_ext=c
22792ac_cpp='$CPP $CPPFLAGS'
22793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22795ac_compiler_gnu=$ac_cv_c_compiler_gnu
22796
22797
a848cd7e
SC
22798fi
22799echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22800echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22801
22802 if test "$wx_cv_cpp_bool" = "yes"; then
22803 cat >>confdefs.h <<\_ACEOF
22804#define HAVE_BOOL 1
22805_ACEOF
22806
22807 fi
22808
22809
22810
22811 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22812echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22813if test "${wx_cv_explicit+set}" = set; then
22814 echo $ECHO_N "(cached) $ECHO_C" >&6
22815else
22816
22817
22818
22819 ac_ext=cc
22820ac_cpp='$CXXCPP $CPPFLAGS'
22821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22824
22825
22826 cat >conftest.$ac_ext <<_ACEOF
22827/* confdefs.h. */
22828_ACEOF
22829cat confdefs.h >>conftest.$ac_ext
22830cat >>conftest.$ac_ext <<_ACEOF
22831/* end confdefs.h. */
22832
22833 class Foo { public: explicit Foo(int) {} };
22834
22835int
22836main ()
22837{
22838
22839 return 0;
22840
22841 ;
22842 return 0;
22843}
22844_ACEOF
22845rm -f conftest.$ac_objext
22846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22847 (eval $ac_compile) 2>conftest.er1
a848cd7e 22848 ac_status=$?
ac1cb8d3
VS
22849 grep -v '^ *+' conftest.er1 >conftest.err
22850 rm -f conftest.er1
22851 cat conftest.err >&5
a848cd7e
SC
22852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); } &&
bb9e79c0 22854 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22856 (eval $ac_try) 2>&5
22857 ac_status=$?
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); }; } &&
22860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22862 (eval $ac_try) 2>&5
22863 ac_status=$?
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); }; }; then
22866
22867 cat >conftest.$ac_ext <<_ACEOF
22868/* confdefs.h. */
22869_ACEOF
22870cat confdefs.h >>conftest.$ac_ext
22871cat >>conftest.$ac_ext <<_ACEOF
22872/* end confdefs.h. */
22873
22874 class Foo { public: explicit Foo(int) {} };
22875 static void TakeFoo(const Foo& foo) { }
22876
22877int
22878main ()
22879{
22880
22881 TakeFoo(17);
22882 return 0;
22883
22884 ;
22885 return 0;
22886}
22887_ACEOF
22888rm -f conftest.$ac_objext
22889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22890 (eval $ac_compile) 2>conftest.er1
a848cd7e 22891 ac_status=$?
ac1cb8d3
VS
22892 grep -v '^ *+' conftest.er1 >conftest.err
22893 rm -f conftest.er1
22894 cat conftest.err >&5
a848cd7e
SC
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); } &&
bb9e79c0 22897 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22899 (eval $ac_try) 2>&5
22900 ac_status=$?
22901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902 (exit $ac_status); }; } &&
22903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22905 (eval $ac_try) 2>&5
22906 ac_status=$?
22907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); }; }; then
22909 wx_cv_explicit=no
22910else
22911 echo "$as_me: failed program was:" >&5
22912sed 's/^/| /' conftest.$ac_ext >&5
22913
22914wx_cv_explicit=yes
22915
22916fi
ac1cb8d3 22917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22918
22919else
22920 echo "$as_me: failed program was:" >&5
22921sed 's/^/| /' conftest.$ac_ext >&5
22922
22923wx_cv_explicit=no
22924
22925fi
ac1cb8d3 22926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22927
fd5199d6
VZ
22928 ac_ext=c
22929ac_cpp='$CPP $CPPFLAGS'
22930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22932ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e
SC
22933
22934
22935fi
22936echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22937echo "${ECHO_T}$wx_cv_explicit" >&6
22938
22939 if test "$wx_cv_explicit" = "yes"; then
22940 cat >>confdefs.h <<\_ACEOF
22941#define HAVE_EXPLICIT 1
22942_ACEOF
22943
22944 fi
22945
22946
22947echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22948echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22949if test "${ac_cv_cxx_const_cast+set}" = set; then
22950 echo $ECHO_N "(cached) $ECHO_C" >&6
22951else
22952
22953
22954 ac_ext=cc
22955ac_cpp='$CXXCPP $CPPFLAGS'
22956ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22957ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22958ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22959
22960 cat >conftest.$ac_ext <<_ACEOF
22961/* confdefs.h. */
22962_ACEOF
22963cat confdefs.h >>conftest.$ac_ext
22964cat >>conftest.$ac_ext <<_ACEOF
22965/* end confdefs.h. */
22966
22967int
22968main ()
22969{
22970int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22971 ;
22972 return 0;
22973}
22974_ACEOF
22975rm -f conftest.$ac_objext
22976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22977 (eval $ac_compile) 2>conftest.er1
a848cd7e 22978 ac_status=$?
ac1cb8d3
VS
22979 grep -v '^ *+' conftest.er1 >conftest.err
22980 rm -f conftest.er1
22981 cat conftest.err >&5
a848cd7e
SC
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); } &&
bb9e79c0 22984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22986 (eval $ac_try) 2>&5
22987 ac_status=$?
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); }; } &&
22990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22992 (eval $ac_try) 2>&5
22993 ac_status=$?
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); }; }; then
22996 ac_cv_cxx_const_cast=yes
22997else
22998 echo "$as_me: failed program was:" >&5
22999sed 's/^/| /' conftest.$ac_ext >&5
23000
23001ac_cv_cxx_const_cast=no
23002fi
ac1cb8d3 23003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
23004 ac_ext=c
23005ac_cpp='$CPP $CPPFLAGS'
23006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23008ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e
SC
23009
23010
23011fi
23012echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23013echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23014if test "$ac_cv_cxx_const_cast" = yes; then
23015
23016cat >>confdefs.h <<\_ACEOF
23017#define HAVE_CONST_CAST
23018_ACEOF
23019
23020fi
23021
7714864e
RL
23022echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23023echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23024if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23025 echo $ECHO_N "(cached) $ECHO_C" >&6
23026else
23027
23028
23029 ac_ext=cc
23030ac_cpp='$CXXCPP $CPPFLAGS'
23031ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23032ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23033ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23034
23035 cat >conftest.$ac_ext <<_ACEOF
23036/* confdefs.h. */
23037_ACEOF
23038cat confdefs.h >>conftest.$ac_ext
23039cat >>conftest.$ac_ext <<_ACEOF
23040/* end confdefs.h. */
23041#include <typeinfo>
23042class Base { public : Base () {} virtual void f () = 0;};
23043class Derived : public Base { public : Derived () {} virtual void f () {} };
23044class Unrelated { public : Unrelated () {} };
23045int g (Unrelated&) { return 0; }
23046int
23047main ()
23048{
23049
23050Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23051 ;
23052 return 0;
23053}
23054_ACEOF
23055rm -f conftest.$ac_objext
23056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23057 (eval $ac_compile) 2>conftest.er1
23058 ac_status=$?
23059 grep -v '^ *+' conftest.er1 >conftest.err
23060 rm -f conftest.er1
23061 cat conftest.err >&5
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); } &&
bb9e79c0 23064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
23065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23066 (eval $ac_try) 2>&5
23067 ac_status=$?
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); }; } &&
23070 { ac_try='test -s conftest.$ac_objext'
23071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23072 (eval $ac_try) 2>&5
23073 ac_status=$?
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); }; }; then
23076 ac_cv_cxx_reinterpret_cast=yes
23077else
23078 echo "$as_me: failed program was:" >&5
23079sed 's/^/| /' conftest.$ac_ext >&5
23080
23081ac_cv_cxx_reinterpret_cast=no
23082fi
23083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
23084 ac_ext=c
23085ac_cpp='$CPP $CPPFLAGS'
23086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23088ac_compiler_gnu=$ac_cv_c_compiler_gnu
7714864e
RL
23089
23090
23091fi
23092echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23093echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23094if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23095
23096cat >>confdefs.h <<\_ACEOF
23097#define HAVE_REINTERPRET_CAST
23098_ACEOF
23099
23100fi
23101
a848cd7e
SC
23102echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23103echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23104if test "${ac_cv_cxx_static_cast+set}" = set; then
23105 echo $ECHO_N "(cached) $ECHO_C" >&6
23106else
23107
23108
23109 ac_ext=cc
23110ac_cpp='$CXXCPP $CPPFLAGS'
23111ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23112ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23113ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23114
23115 cat >conftest.$ac_ext <<_ACEOF
23116/* confdefs.h. */
23117_ACEOF
23118cat confdefs.h >>conftest.$ac_ext
23119cat >>conftest.$ac_ext <<_ACEOF
23120/* end confdefs.h. */
23121#include <typeinfo>
23122class Base { public : Base () {} virtual void f () = 0; };
23123class Derived : public Base { public : Derived () {} virtual void f () {} };
23124int g (Derived&) { return 0; }
23125int
23126main ()
23127{
23128
23129Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23130 ;
23131 return 0;
23132}
23133_ACEOF
23134rm -f conftest.$ac_objext
23135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23136 (eval $ac_compile) 2>conftest.er1
a848cd7e 23137 ac_status=$?
ac1cb8d3
VS
23138 grep -v '^ *+' conftest.er1 >conftest.err
23139 rm -f conftest.er1
23140 cat conftest.err >&5
a848cd7e
SC
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); } &&
bb9e79c0 23143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23145 (eval $ac_try) 2>&5
23146 ac_status=$?
23147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); }; } &&
23149 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23151 (eval $ac_try) 2>&5
23152 ac_status=$?
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); }; }; then
23155 ac_cv_cxx_static_cast=yes
23156else
23157 echo "$as_me: failed program was:" >&5
23158sed 's/^/| /' conftest.$ac_ext >&5
23159
23160ac_cv_cxx_static_cast=no
23161fi
ac1cb8d3 23162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
23163 ac_ext=c
23164ac_cpp='$CPP $CPPFLAGS'
23165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23167ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e
SC
23168
23169
23170fi
23171echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23172echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23173if test "$ac_cv_cxx_static_cast" = yes; then
23174
23175cat >>confdefs.h <<\_ACEOF
23176#define HAVE_STATIC_CAST
23177_ACEOF
23178
23179fi
23180
23181
3c28b7cb 23182if test "x$SUNCXX" = xyes; then
c92ad099 23183 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23184fi
23185
9122d155 23186if test "x$SUNCC" = xyes; then
c92ad099 23187 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23188fi
23189
0ad5d837 23190if test "x$SGICC" = "xyes"; then
c92ad099 23191 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23192fi
23193if test "x$SGICXX" = "xyes"; then
c92ad099 23194 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23195fi
23196
2eef8513 23197if test "x$HPCC" = "xyes"; then
c92ad099 23198 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23199fi
23200if test "x$HPCXX" = "xyes"; then
c92ad099 23201 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23202fi
23203
23204if test "x$COMPAQCXX" = "xyes"; then
23205 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23206fi
23207
9b8888f9
VZ
23208ac_ext=cc
23209ac_cpp='$CXXCPP $CPPFLAGS'
23210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23213
23214
f56c22b4 23215if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23216 if test "$wxUSE_UNICODE" = "yes"; then
23217 std_string="std::wstring"
23218 char_type="wchar_t"
23219 else
23220 std_string="std::string"
23221 char_type="char"
23222 fi
23223
23224 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23225echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
9b8888f9
VZ
23226if test "${wx_cv_class_stdstring+set}" = set; then
23227 echo $ECHO_N "(cached) $ECHO_C" >&6
23228else
23229
23230 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
23231/* confdefs.h. */
23232_ACEOF
23233cat confdefs.h >>conftest.$ac_ext
23234cat >>conftest.$ac_ext <<_ACEOF
23235/* end confdefs.h. */
23236#include <string>
a848cd7e
SC
23237int
23238main ()
23239{
f56c22b4 23240$std_string foo;
a848cd7e
SC
23241 ;
23242 return 0;
23243}
23244_ACEOF
23245rm -f conftest.$ac_objext
23246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23247 (eval $ac_compile) 2>conftest.er1
a848cd7e 23248 ac_status=$?
ac1cb8d3
VS
23249 grep -v '^ *+' conftest.er1 >conftest.err
23250 rm -f conftest.er1
23251 cat conftest.err >&5
a848cd7e
SC
23252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253 (exit $ac_status); } &&
9b8888f9 23254 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23256 (eval $ac_try) 2>&5
23257 ac_status=$?
23258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259 (exit $ac_status); }; } &&
23260 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23262 (eval $ac_try) 2>&5
23263 ac_status=$?
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); }; }; then
9b8888f9 23266 wx_cv_class_stdstring=yes
a848cd7e
SC
23267else
23268 echo "$as_me: failed program was:" >&5
23269sed 's/^/| /' conftest.$ac_ext >&5
23270
9b8888f9
VZ
23271wx_cv_class_stdstring=no
23272
23273fi
23274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23275
23276
23277fi
23278echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
23279echo "${ECHO_T}$wx_cv_class_stdstring" >&6
23280
23281 if test "$wx_cv_class_stdstring" = yes; then
23282 if test "$wxUSE_UNICODE" = "yes"; then
23283 cat >>confdefs.h <<\_ACEOF
23284#define HAVE_STD_WSTRING 1
23285_ACEOF
23286
23287 fi
23288 else
23289 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
f56c22b4 23290echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
9b8888f9
VZ
23291if test "${wx_cv_class_stdbasicstring+set}" = set; then
23292 echo $ECHO_N "(cached) $ECHO_C" >&6
23293else
23294
23295 cat >conftest.$ac_ext <<_ACEOF
0a08f02a
MB
23296/* confdefs.h. */
23297_ACEOF
23298cat confdefs.h >>conftest.$ac_ext
23299cat >>conftest.$ac_ext <<_ACEOF
23300/* end confdefs.h. */
23301
9b8888f9
VZ
23302 #ifdef HAVE_WCHAR_H
23303 # ifdef __CYGWIN__
23304 # include <stddef.h>
23305 # endif
23306 # include <wchar.h>
23307 #endif
23308 #ifdef HAVE_STDLIB_H
23309 # include <stdlib.h>
23310 #endif
23311 #include <stdio.h>
23312 #include <string>
0a08f02a
MB
23313
23314int
23315main ()
23316{
f56c22b4 23317std::basic_string<$char_type> foo;
9b8888f9 23318 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23319 ;
23320 return 0;
23321}
23322_ACEOF
23323rm -f conftest.$ac_objext
23324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23325 (eval $ac_compile) 2>conftest.er1
23326 ac_status=$?
23327 grep -v '^ *+' conftest.er1 >conftest.err
23328 rm -f conftest.er1
23329 cat conftest.err >&5
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } &&
9b8888f9 23332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23334 (eval $ac_try) 2>&5
23335 ac_status=$?
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); }; } &&
23338 { ac_try='test -s conftest.$ac_objext'
23339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340 (eval $ac_try) 2>&5
23341 ac_status=$?
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); }; }; then
9b8888f9 23344 wx_cv_class_stdbasicstring=yes
0a08f02a
MB
23345else
23346 echo "$as_me: failed program was:" >&5
23347sed 's/^/| /' conftest.$ac_ext >&5
23348
9b8888f9 23349wx_cv_class_stdbasicstring=no
0a08f02a 23350
a848cd7e 23351fi
ac1cb8d3 23352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23353
9b8888f9 23354
0a08f02a 23355fi
9b8888f9
VZ
23356echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
23357echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6
23358
23359 if test "$wx_cv_class_stdbasicstring" != yes; then
23360 if test "$wxUSE_STL" = "yes"; then
23361 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23362echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23363 { (exit 1); exit 1; }; }
23364 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23365 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23366echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
23367 { (exit 1); exit 1; }; }
23368 else
23369 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23370echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23371 wxUSE_STD_STRING=no
23372 fi
23373 fi
23374 fi
f56c22b4
MW
23375fi
23376
23377if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23378 echo "$as_me:$LINENO: checking for std::istream" >&5
23379echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23380if test "${ac_cv_type_std__istream+set}" = set; then
23381 echo $ECHO_N "(cached) $ECHO_C" >&6
23382else
23383 cat >conftest.$ac_ext <<_ACEOF
23384/* confdefs.h. */
23385_ACEOF
23386cat confdefs.h >>conftest.$ac_ext
23387cat >>conftest.$ac_ext <<_ACEOF
23388/* end confdefs.h. */
23389#include <iostream>
23390
23391int
23392main ()
23393{
23394if ((std::istream *) 0)
23395 return 0;
23396if (sizeof (std::istream))
23397 return 0;
23398 ;
23399 return 0;
23400}
23401_ACEOF
23402rm -f conftest.$ac_objext
23403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23404 (eval $ac_compile) 2>conftest.er1
23405 ac_status=$?
23406 grep -v '^ *+' conftest.er1 >conftest.err
23407 rm -f conftest.er1
23408 cat conftest.err >&5
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); } &&
9b8888f9 23411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23413 (eval $ac_try) 2>&5
23414 ac_status=$?
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); }; } &&
23417 { ac_try='test -s conftest.$ac_objext'
23418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23419 (eval $ac_try) 2>&5
23420 ac_status=$?
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); }; }; then
23423 ac_cv_type_std__istream=yes
23424else
23425 echo "$as_me: failed program was:" >&5
23426sed 's/^/| /' conftest.$ac_ext >&5
23427
23428ac_cv_type_std__istream=no
23429fi
23430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23431fi
23432echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23433echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23434if test $ac_cv_type_std__istream = yes; then
23435
23436cat >>confdefs.h <<_ACEOF
23437#define HAVE_STD__ISTREAM 1
23438_ACEOF
23439
23440
23441else
23442 wxUSE_STD_IOSTREAM=no
23443fi
23444echo "$as_me:$LINENO: checking for std::ostream" >&5
23445echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23446if test "${ac_cv_type_std__ostream+set}" = set; then
23447 echo $ECHO_N "(cached) $ECHO_C" >&6
23448else
23449 cat >conftest.$ac_ext <<_ACEOF
23450/* confdefs.h. */
23451_ACEOF
23452cat confdefs.h >>conftest.$ac_ext
23453cat >>conftest.$ac_ext <<_ACEOF
23454/* end confdefs.h. */
23455#include <iostream>
23456
23457int
23458main ()
23459{
23460if ((std::ostream *) 0)
23461 return 0;
23462if (sizeof (std::ostream))
23463 return 0;
23464 ;
23465 return 0;
23466}
23467_ACEOF
23468rm -f conftest.$ac_objext
23469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23470 (eval $ac_compile) 2>conftest.er1
23471 ac_status=$?
23472 grep -v '^ *+' conftest.er1 >conftest.err
23473 rm -f conftest.er1
23474 cat conftest.err >&5
23475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476 (exit $ac_status); } &&
9b8888f9 23477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23479 (eval $ac_try) 2>&5
23480 ac_status=$?
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); }; } &&
23483 { ac_try='test -s conftest.$ac_objext'
23484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23485 (eval $ac_try) 2>&5
23486 ac_status=$?
23487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488 (exit $ac_status); }; }; then
23489 ac_cv_type_std__ostream=yes
23490else
23491 echo "$as_me: failed program was:" >&5
23492sed 's/^/| /' conftest.$ac_ext >&5
23493
23494ac_cv_type_std__ostream=no
23495fi
23496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23497fi
23498echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23499echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23500if test $ac_cv_type_std__ostream = yes; then
23501
23502cat >>confdefs.h <<_ACEOF
23503#define HAVE_STD__OSTREAM 1
23504_ACEOF
23505
23506
23507else
23508 wxUSE_STD_IOSTREAM=no
23509fi
23510
23511
23512 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23513 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23514 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23515echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23516 { (exit 1); exit 1; }; }
23517 else
23518 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23519echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23520 fi
f56c22b4 23521 fi
0a08f02a
MB
23522fi
23523
23524if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23525 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23526echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
9b8888f9
VZ
23527if test "${wx_cv_lib_stl+set}" = set; then
23528 echo $ECHO_N "(cached) $ECHO_C" >&6
23529else
23530 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
23531/* confdefs.h. */
23532_ACEOF
23533cat confdefs.h >>conftest.$ac_ext
23534cat >>conftest.$ac_ext <<_ACEOF
23535/* end confdefs.h. */
23536#include <string>
9b8888f9
VZ
23537 #include <functional>
23538 #include <algorithm>
23539 #include <vector>
23540 #include <list>
a848cd7e
SC
23541int
23542main ()
23543{
0a08f02a 23544std::vector<int> moo;
9b8888f9
VZ
23545 std::list<int> foo;
23546 std::vector<int>::iterator it =
23547 std::find_if(moo.begin(), moo.end(),
23548 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23549 ;
23550 return 0;
23551}
23552_ACEOF
23553rm -f conftest.$ac_objext
23554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23555 (eval $ac_compile) 2>conftest.er1
a848cd7e 23556 ac_status=$?
ac1cb8d3
VS
23557 grep -v '^ *+' conftest.er1 >conftest.err
23558 rm -f conftest.er1
23559 cat conftest.err >&5
a848cd7e
SC
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); } &&
9b8888f9 23562 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23564 (eval $ac_try) 2>&5
23565 ac_status=$?
23566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567 (exit $ac_status); }; } &&
23568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23570 (eval $ac_try) 2>&5
23571 ac_status=$?
23572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); }; }; then
9b8888f9 23574 wx_cv_lib_stl=yes
a848cd7e
SC
23575else
23576 echo "$as_me: failed program was:" >&5
23577sed 's/^/| /' conftest.$ac_ext >&5
23578
9b8888f9
VZ
23579wx_cv_lib_stl=no
23580
a848cd7e 23581fi
ac1cb8d3 23582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23583
9b8888f9
VZ
23584fi
23585echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
23586echo "${ECHO_T}$wx_cv_lib_stl" >&6
23587
23588 if test "$wx_cv_lib_stl" != yes; then
23589 { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
23590echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
23591 { (exit 1); exit 1; }; }
23592 fi
23593
a848cd7e
SC
23594 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23595echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
9b8888f9
VZ
23596if test "${wx_cv_func_stdstring_compare+set}" = set; then
23597 echo $ECHO_N "(cached) $ECHO_C" >&6
23598else
23599 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
23600/* confdefs.h. */
23601_ACEOF
23602cat confdefs.h >>conftest.$ac_ext
23603cat >>conftest.$ac_ext <<_ACEOF
23604/* end confdefs.h. */
23605#include <string>
23606int
23607main ()
23608{
23609std::string foo, bar;
9b8888f9
VZ
23610 foo.compare(bar);
23611 foo.compare(1, 1, bar);
23612 foo.compare(1, 1, bar, 1, 1);
23613 foo.compare("");
23614 foo.compare(1, 1, "");
23615 foo.compare(1, 1, "", 2);
a848cd7e
SC
23616 ;
23617 return 0;
23618}
23619_ACEOF
23620rm -f conftest.$ac_objext
23621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23622 (eval $ac_compile) 2>conftest.er1
a848cd7e 23623 ac_status=$?
ac1cb8d3
VS
23624 grep -v '^ *+' conftest.er1 >conftest.err
23625 rm -f conftest.er1
23626 cat conftest.err >&5
a848cd7e
SC
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); } &&
9b8888f9 23629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23631 (eval $ac_try) 2>&5
23632 ac_status=$?
23633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); }; } &&
23635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23637 (eval $ac_try) 2>&5
23638 ac_status=$?
23639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640 (exit $ac_status); }; }; then
9b8888f9 23641 wx_cv_func_stdstring_compare=yes
a848cd7e
SC
23642else
23643 echo "$as_me: failed program was:" >&5
23644sed 's/^/| /' conftest.$ac_ext >&5
23645
9b8888f9
VZ
23646wx_cv_func_stdstring_compare=no
23647
a848cd7e 23648fi
ac1cb8d3 23649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a 23650
9b8888f9
VZ
23651fi
23652echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
23653echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6
23654
23655 if test "$wx_cv_func_stdstring_compare" = yes; then
23656 cat >>confdefs.h <<\_ACEOF
23657#define HAVE_STD_STRING_COMPARE 1
23658_ACEOF
23659
23660 fi
23661
bdcade0a
MB
23662 if test "${ac_cv_header_hash_map+set}" = set; then
23663 echo "$as_me:$LINENO: checking for hash_map" >&5
23664echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23665if test "${ac_cv_header_hash_map+set}" = set; then
23666 echo $ECHO_N "(cached) $ECHO_C" >&6
23667fi
23668echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23669echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23670else
23671 # Is the header compilable?
23672echo "$as_me:$LINENO: checking hash_map usability" >&5
23673echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23674cat >conftest.$ac_ext <<_ACEOF
23675/* confdefs.h. */
23676_ACEOF
23677cat confdefs.h >>conftest.$ac_ext
23678cat >>conftest.$ac_ext <<_ACEOF
23679/* end confdefs.h. */
23680$ac_includes_default
23681#include <hash_map>
23682_ACEOF
23683rm -f conftest.$ac_objext
23684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23685 (eval $ac_compile) 2>conftest.er1
bdcade0a 23686 ac_status=$?
ac1cb8d3
VS
23687 grep -v '^ *+' conftest.er1 >conftest.err
23688 rm -f conftest.er1
23689 cat conftest.err >&5
bdcade0a
MB
23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691 (exit $ac_status); } &&
9b8888f9 23692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23694 (eval $ac_try) 2>&5
23695 ac_status=$?
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); }; } &&
23698 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23700 (eval $ac_try) 2>&5
23701 ac_status=$?
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); }; }; then
23704 ac_header_compiler=yes
23705else
23706 echo "$as_me: failed program was:" >&5
23707sed 's/^/| /' conftest.$ac_ext >&5
23708
23709ac_header_compiler=no
23710fi
ac1cb8d3 23711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23712echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23713echo "${ECHO_T}$ac_header_compiler" >&6
23714
23715# Is the header present?
23716echo "$as_me:$LINENO: checking hash_map presence" >&5
23717echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23718cat >conftest.$ac_ext <<_ACEOF
23719/* confdefs.h. */
23720_ACEOF
23721cat confdefs.h >>conftest.$ac_ext
23722cat >>conftest.$ac_ext <<_ACEOF
23723/* end confdefs.h. */
23724#include <hash_map>
23725_ACEOF
23726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23728 ac_status=$?
23729 grep -v '^ *+' conftest.er1 >conftest.err
23730 rm -f conftest.er1
23731 cat conftest.err >&5
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); } >/dev/null; then
23734 if test -s conftest.err; then
9b8888f9
VZ
23735 ac_cpp_err=$ac_cxx_preproc_warn_flag
23736 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23737 else
23738 ac_cpp_err=
23739 fi
23740else
23741 ac_cpp_err=yes
23742fi
23743if test -z "$ac_cpp_err"; then
23744 ac_header_preproc=yes
23745else
23746 echo "$as_me: failed program was:" >&5
23747sed 's/^/| /' conftest.$ac_ext >&5
23748
23749 ac_header_preproc=no
23750fi
23751rm -f conftest.err conftest.$ac_ext
23752echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23753echo "${ECHO_T}$ac_header_preproc" >&6
23754
23755# So? What about this header?
9b8888f9 23756case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 23757 yes:no: )
bdcade0a
MB
23758 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23759echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23760 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23761echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23762 ac_header_preproc=yes
bdcade0a 23763 ;;
ac1cb8d3 23764 no:yes:* )
bdcade0a
MB
23765 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23766echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23767 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23768echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23769 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23770echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23771 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23772echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23773 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23774echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23775 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23776echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23777 (
23778 cat <<\_ASBOX
ac1cb8d3
VS
23779## ----------------------------------------- ##
23780## Report this to wx-dev@lists.wxwidgets.org ##
23781## ----------------------------------------- ##
bdcade0a
MB
23782_ASBOX
23783 ) |
23784 sed "s/^/$as_me: WARNING: /" >&2
23785 ;;
23786esac
23787echo "$as_me:$LINENO: checking for hash_map" >&5
23788echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23789if test "${ac_cv_header_hash_map+set}" = set; then
23790 echo $ECHO_N "(cached) $ECHO_C" >&6
23791else
23792 ac_cv_header_hash_map=$ac_header_preproc
23793fi
23794echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23795echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23796
23797fi
23798if test $ac_cv_header_hash_map = yes; then
9b8888f9
VZ
23799 echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
23800echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6
23801if test "${wx_cv_class_stdhashmapset+set}" = set; then
23802 echo $ECHO_N "(cached) $ECHO_C" >&6
23803else
23804 cat >conftest.$ac_ext <<_ACEOF
bdcade0a
MB
23805/* confdefs.h. */
23806_ACEOF
23807cat confdefs.h >>conftest.$ac_ext
23808cat >>conftest.$ac_ext <<_ACEOF
23809/* end confdefs.h. */
23810#include <hash_map>
9b8888f9 23811 #include <hash_set>
bdcade0a
MB
23812int
23813main ()
23814{
23815std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
9b8888f9 23816 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
bdcade0a
MB
23817 ;
23818 return 0;
23819}
23820_ACEOF
23821rm -f conftest.$ac_objext
23822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23823 (eval $ac_compile) 2>conftest.er1
bdcade0a 23824 ac_status=$?
ac1cb8d3
VS
23825 grep -v '^ *+' conftest.er1 >conftest.err
23826 rm -f conftest.er1
23827 cat conftest.err >&5
bdcade0a
MB
23828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829 (exit $ac_status); } &&
9b8888f9 23830 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23832 (eval $ac_try) 2>&5
23833 ac_status=$?
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); }; } &&
23836 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23838 (eval $ac_try) 2>&5
23839 ac_status=$?
23840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); }; }; then
9b8888f9 23842 wx_cv_class_stdhashmapset=yes
bdcade0a
MB
23843else
23844 echo "$as_me: failed program was:" >&5
23845sed 's/^/| /' conftest.$ac_ext >&5
23846
9b8888f9 23847wx_cv_class_stdhashmapset=no
bdcade0a 23848fi
ac1cb8d3 23849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a 23850
9b8888f9
VZ
23851
23852fi
23853echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
23854echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6
23855
bdcade0a
MB
23856fi
23857
23858
23859
9b8888f9
VZ
23860 if test "$wx_cv_class_stdhashmapset" = yes; then
23861 cat >>confdefs.h <<\_ACEOF
23862#define HAVE_HASH_MAP 1
23863_ACEOF
23864
23865 cat >>confdefs.h <<\_ACEOF
23866#define HAVE_STD_HASH_MAP 1
23867_ACEOF
23868
23869 fi
23870
bdcade0a
MB
23871 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23872 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23873echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23874if test "${ac_cv_header_ext_hash_map+set}" = set; then
23875 echo $ECHO_N "(cached) $ECHO_C" >&6
23876fi
23877echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23878echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23879else
23880 # Is the header compilable?
23881echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23882echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23883cat >conftest.$ac_ext <<_ACEOF
23884/* confdefs.h. */
23885_ACEOF
23886cat confdefs.h >>conftest.$ac_ext
23887cat >>conftest.$ac_ext <<_ACEOF
23888/* end confdefs.h. */
23889$ac_includes_default
23890#include <ext/hash_map>
23891_ACEOF
23892rm -f conftest.$ac_objext
23893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23894 (eval $ac_compile) 2>conftest.er1
bdcade0a 23895 ac_status=$?
ac1cb8d3
VS
23896 grep -v '^ *+' conftest.er1 >conftest.err
23897 rm -f conftest.er1
23898 cat conftest.err >&5
bdcade0a
MB
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } &&
9b8888f9 23901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23903 (eval $ac_try) 2>&5
23904 ac_status=$?
23905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906 (exit $ac_status); }; } &&
23907 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23909 (eval $ac_try) 2>&5
23910 ac_status=$?
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); }; }; then
23913 ac_header_compiler=yes
23914else
23915 echo "$as_me: failed program was:" >&5
23916sed 's/^/| /' conftest.$ac_ext >&5
23917
23918ac_header_compiler=no
23919fi
ac1cb8d3 23920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23921echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23922echo "${ECHO_T}$ac_header_compiler" >&6
23923
23924# Is the header present?
23925echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23926echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23927cat >conftest.$ac_ext <<_ACEOF
23928/* confdefs.h. */
23929_ACEOF
23930cat confdefs.h >>conftest.$ac_ext
23931cat >>conftest.$ac_ext <<_ACEOF
23932/* end confdefs.h. */
23933#include <ext/hash_map>
23934_ACEOF
23935if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23937 ac_status=$?
23938 grep -v '^ *+' conftest.er1 >conftest.err
23939 rm -f conftest.er1
23940 cat conftest.err >&5
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); } >/dev/null; then
23943 if test -s conftest.err; then
9b8888f9
VZ
23944 ac_cpp_err=$ac_cxx_preproc_warn_flag
23945 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23946 else
23947 ac_cpp_err=
23948 fi
23949else
23950 ac_cpp_err=yes
23951fi
23952if test -z "$ac_cpp_err"; then
23953 ac_header_preproc=yes
23954else
23955 echo "$as_me: failed program was:" >&5
23956sed 's/^/| /' conftest.$ac_ext >&5
23957
23958 ac_header_preproc=no
23959fi
23960rm -f conftest.err conftest.$ac_ext
23961echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23962echo "${ECHO_T}$ac_header_preproc" >&6
23963
23964# So? What about this header?
9b8888f9 23965case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 23966 yes:no: )
bdcade0a
MB
23967 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23968echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23969 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23970echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23971 ac_header_preproc=yes
bdcade0a 23972 ;;
ac1cb8d3 23973 no:yes:* )
bdcade0a
MB
23974 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23975echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23976 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23977echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23978 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23979echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23980 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23981echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23982 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23983echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23984 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23985echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23986 (
23987 cat <<\_ASBOX
ac1cb8d3
VS
23988## ----------------------------------------- ##
23989## Report this to wx-dev@lists.wxwidgets.org ##
23990## ----------------------------------------- ##
bdcade0a
MB
23991_ASBOX
23992 ) |
23993 sed "s/^/$as_me: WARNING: /" >&2
23994 ;;
23995esac
23996echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23997echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23998if test "${ac_cv_header_ext_hash_map+set}" = set; then
23999 echo $ECHO_N "(cached) $ECHO_C" >&6
24000else
24001 ac_cv_header_ext_hash_map=$ac_header_preproc
24002fi
24003echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24004echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24005
24006fi
24007if test $ac_cv_header_ext_hash_map = yes; then
9b8888f9
VZ
24008 echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
24009echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6
24010if test "${wx_cv_class_gnuhashmapset+set}" = set; then
24011 echo $ECHO_N "(cached) $ECHO_C" >&6
24012else
24013 cat >conftest.$ac_ext <<_ACEOF
bdcade0a
MB
24014/* confdefs.h. */
24015_ACEOF
24016cat confdefs.h >>conftest.$ac_ext
24017cat >>conftest.$ac_ext <<_ACEOF
24018/* end confdefs.h. */
24019#include <ext/hash_map>
9b8888f9 24020 #include <ext/hash_set>
bdcade0a
MB
24021int
24022main ()
24023{
24024__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
9b8888f9 24025 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
bdcade0a
MB
24026 ;
24027 return 0;
24028}
24029_ACEOF
24030rm -f conftest.$ac_objext
24031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24032 (eval $ac_compile) 2>conftest.er1
bdcade0a 24033 ac_status=$?
ac1cb8d3
VS
24034 grep -v '^ *+' conftest.er1 >conftest.err
24035 rm -f conftest.er1
24036 cat conftest.err >&5
bdcade0a
MB
24037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038 (exit $ac_status); } &&
9b8888f9 24039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24041 (eval $ac_try) 2>&5
24042 ac_status=$?
24043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); }; } &&
24045 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24047 (eval $ac_try) 2>&5
24048 ac_status=$?
24049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050 (exit $ac_status); }; }; then
9b8888f9 24051 wx_cv_class_gnuhashmapset=yes
bdcade0a
MB
24052else
24053 echo "$as_me: failed program was:" >&5
24054sed 's/^/| /' conftest.$ac_ext >&5
24055
9b8888f9 24056wx_cv_class_gnuhashmapset=no
bdcade0a 24057fi
ac1cb8d3 24058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a 24059
9b8888f9 24060
bdcade0a 24061fi
9b8888f9
VZ
24062echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
24063echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6
24064
24065fi
24066
bdcade0a
MB
24067
24068
9b8888f9
VZ
24069 if test "$wx_cv_class_gnuhashmapset" = yes; then
24070 cat >>confdefs.h <<\_ACEOF
24071#define HAVE_EXT_HASH_MAP 1
24072_ACEOF
24073
24074 cat >>confdefs.h <<\_ACEOF
24075#define HAVE_GNU_CXX_HASH_MAP 1
24076_ACEOF
24077
24078 fi
a848cd7e
SC
24079fi
24080
9b8888f9
VZ
24081ac_ext=c
24082ac_cpp='$CPP $CPPFLAGS'
24083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24085ac_compiler_gnu=$ac_cv_c_compiler_gnu
24086
24087
a848cd7e
SC
24088
24089SEARCH_INCLUDE="\
24090 /usr/local/include \
24091 \
24092 /usr/Motif-2.1/include \
24093 /usr/Motif-1.2/include \
24094 /usr/include/Motif1.2 \
a848cd7e
SC
24095 \
24096 /usr/dt/include \
24097 /usr/openwin/include \
24098 \
24099 /usr/include/Xm \
24100 \
24101 /usr/X11R6/include \
24102 /usr/X11R6.4/include \
24103 /usr/X11R5/include \
24104 /usr/X11R4/include \
24105 \
24106 /usr/include/X11R6 \
24107 /usr/include/X11R5 \
24108 /usr/include/X11R4 \
24109 \
24110 /usr/local/X11R6/include \
24111 /usr/local/X11R5/include \
24112 /usr/local/X11R4/include \
24113 \
24114 /usr/local/include/X11R6 \
24115 /usr/local/include/X11R5 \
24116 /usr/local/include/X11R4 \
24117 \
24118 /usr/X11/include \
24119 /usr/include/X11 \
24120 /usr/local/X11/include \
24121 /usr/local/include/X11 \
24122 \
a848cd7e 24123 /usr/XFree86/include/X11 \
e051b34e
MW
24124 /usr/pkg/include \
24125 \
a848cd7e
SC
24126 /usr/openwin/share/include"
24127
6f9cf1e6 24128echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24129echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24130
24131case "${host}" in
24132 *-*-irix6* )
24133 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24134 echo $ECHO_N "(cached) $ECHO_C" >&6
24135else
24136
c687b303
VZ
24137 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24138 for e in a so sl dylib dll.a; do
24139 libc="$d/libc.$e"
24140 if test -f $libc; then
24141 save_LIBS="$LIBS"
24142 LIBS="$libc"
24143 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24144int main() { return 0; }
24145_ACEOF
24146rm -f conftest.$ac_objext conftest$ac_exeext
24147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24148 (eval $ac_link) 2>conftest.er1
24149 ac_status=$?
24150 grep -v '^ *+' conftest.er1 >conftest.err
24151 rm -f conftest.er1
24152 cat conftest.err >&5
24153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154 (exit $ac_status); } &&
fd5199d6 24155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
24156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24157 (eval $ac_try) 2>&5
24158 ac_status=$?
24159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160 (exit $ac_status); }; } &&
24161 { ac_try='test -s conftest$ac_exeext'
24162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24163 (eval $ac_try) 2>&5
24164 ac_status=$?
24165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166 (exit $ac_status); }; }; then
24167 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24168else
24169 echo "$as_me: failed program was:" >&5
24170sed 's/^/| /' conftest.$ac_ext >&5
24171
24172fi
24173rm -f conftest.err conftest.$ac_objext \
24174 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24175 LIBS="$save_LIBS"
24176 if test "x$wx_cv_std_libpath" != "x"; then
24177 break 2
24178 fi
24179 fi
24180 done
24181 done
24182 if test "x$wx_cv_std_libpath" = "x"; then
24183 wx_cv_std_libpath="lib"
0ad5d837 24184 fi
0ad5d837
VZ
24185
24186
24187fi
6f9cf1e6
MW
24188
24189 ;;
24190
24191 *-*-solaris2* )
24192 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24193 wx_cv_std_libpath="lib/64"
24194 else
24195 wx_cv_std_libpath="lib"
24196 fi
24197 ;;
24198
24199 *-*-linux* )
24200 if test "$ac_cv_sizeof_void_p" = 8 -a \
24201 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24202 wx_cv_std_libpath="lib64"
24203 else
24204 wx_cv_std_libpath="lib"
24205 fi
c687b303
VZ
24206 ;;
24207
24208 *)
24209 wx_cv_std_libpath="lib";
24210 ;;
24211esac
0ad5d837 24212
6f9cf1e6
MW
24213echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24214echo "${ECHO_T}$wx_cv_std_libpath" >&6
24215
24216SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24217
3eca31dc
MW
24218if test "$build" != "$host" -a "$GCC" = yes; then
24219 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24220 cross_root=`dirname $cross_root`
24221 cross_root=`dirname $cross_root`
24222
24223 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24224 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24225 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24226
24227 if test -z "$PKG_CONFIG_PATH"; then
24228 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24229 export PKG_CONFIG_PATH
24230 fi
24231
24232 if test -z "$x_includes" -o "$x_includes" = NONE; then
24233
24234ac_find_includes=
24235for ac_dir in $SEARCH_INCLUDE /usr/include;
24236 do
24237 if test -f "$ac_dir/X11/Intrinsic.h"; then
24238 ac_find_includes=$ac_dir
24239 break
24240 fi
24241 done
24242
24243 x_includes=$ac_find_includes
24244 fi
24245 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24246
0ad5d837
VZ
24247 ac_find_libraries=
24248 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24249 do
24250 for ac_extension in a so sl dylib dll.a; do
24251 if test -f "$ac_dir/libXt.$ac_extension"; then
24252 ac_find_libraries=$ac_dir
24253 break 2
24254 fi
24255 done
24256 done
24257
24258 x_libraries=$ac_find_libraries
24259 fi
24260 fi
24261fi
24262
a848cd7e
SC
24263
24264cat >confcache <<\_ACEOF
24265# This file is a shell script that caches the results of configure
24266# tests run on this system so they can be shared between configure
24267# scripts and configure runs, see configure's option --config-cache.
24268# It is not useful on other systems. If it contains results you don't
24269# want to keep, you may remove or edit it.
24270#
24271# config.status only pays attention to the cache file if you give it
24272# the --recheck option to rerun configure.
24273#
24274# `ac_cv_env_foo' variables (set or unset) will be overridden when
24275# loading this file, other *unset* `ac_cv_foo' will be assigned the
24276# following values.
24277
24278_ACEOF
24279
24280# The following way of writing the cache mishandles newlines in values,
24281# but we know of no workaround that is simple, portable, and efficient.
24282# So, don't put newlines in cache variables' values.
24283# Ultrix sh set writes to stderr and can't be redirected directly,
24284# and sets the high bit in the cache file unless we assign to the vars.
24285{
24286 (set) 2>&1 |
24287 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24288 *ac_space=\ *)
24289 # `set' does not quote correctly, so add quotes (double-quote
24290 # substitution turns \\\\ into \\, and sed turns \\ into \).
24291 sed -n \
ac1cb8d3
VS
24292 "s/'/'\\\\''/g;
24293 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24294 ;;
24295 *)
24296 # `set' quotes correctly as required by POSIX, so do not add quotes.
24297 sed -n \
ac1cb8d3 24298 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24299 ;;
24300 esac;
24301} |
24302 sed '
24303 t clear
24304 : clear
24305 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24306 t end
24307 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24308 : end' >>confcache
24309if diff $cache_file confcache >/dev/null 2>&1; then :; else
24310 if test -w $cache_file; then
24311 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24312 cat confcache >$cache_file
24313 else
24314 echo "not updating unwritable cache $cache_file"
24315 fi
24316fi
24317rm -f confcache
24318
24319if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24320 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24321echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24322if test "${wx_cv_lib_glibc21+set}" = set; then
24323 echo $ECHO_N "(cached) $ECHO_C" >&6
24324else
24325
24326 cat >conftest.$ac_ext <<_ACEOF
24327/* confdefs.h. */
24328_ACEOF
24329cat confdefs.h >>conftest.$ac_ext
24330cat >>conftest.$ac_ext <<_ACEOF
24331/* end confdefs.h. */
24332#include <features.h>
24333int
24334main ()
24335{
24336
24337 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24338 not glibc 2.1
a848cd7e
SC
24339 #endif
24340
24341 ;
24342 return 0;
24343}
24344_ACEOF
24345rm -f conftest.$ac_objext
24346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24347 (eval $ac_compile) 2>conftest.er1
a848cd7e 24348 ac_status=$?
ac1cb8d3
VS
24349 grep -v '^ *+' conftest.er1 >conftest.err
24350 rm -f conftest.er1
24351 cat conftest.err >&5
a848cd7e
SC
24352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353 (exit $ac_status); } &&
fd5199d6 24354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24356 (eval $ac_try) 2>&5
24357 ac_status=$?
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); }; } &&
24360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24362 (eval $ac_try) 2>&5
24363 ac_status=$?
24364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365 (exit $ac_status); }; }; then
24366
24367 wx_cv_lib_glibc21=yes
24368
24369else
24370 echo "$as_me: failed program was:" >&5
24371sed 's/^/| /' conftest.$ac_ext >&5
24372
24373
24374 wx_cv_lib_glibc21=no
24375
24376
24377fi
ac1cb8d3 24378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24379
24380fi
24381echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24382echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24383 if test "$wx_cv_lib_glibc21" = "yes"; then
24384 cat >>confdefs.h <<\_ACEOF
24385#define wxHAVE_GLIBC2 1
24386_ACEOF
24387
24388 fi
24389fi
24390
24391if test "x$wx_cv_lib_glibc21" = "xyes"; then
24392 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24393 cat >>confdefs.h <<\_ACEOF
24394#define _GNU_SOURCE 1
24395_ACEOF
24396
24397 fi
24398fi
24399
5d7b7554
VZ
24400have_cos=0
24401have_floor=0
a848cd7e 24402
5d7b7554
VZ
24403for ac_func in cos
24404do
24405as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24406echo "$as_me:$LINENO: checking for $ac_func" >&5
24407echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24408if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24409 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24410else
5d7b7554 24411 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24412/* confdefs.h. */
24413_ACEOF
24414cat confdefs.h >>conftest.$ac_ext
24415cat >>conftest.$ac_ext <<_ACEOF
24416/* end confdefs.h. */
5d7b7554
VZ
24417/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24419#define $ac_func innocuous_$ac_func
24420
24421/* System header to define __stub macros and hopefully few prototypes,
24422 which can conflict with char $ac_func (); below.
24423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24424 <limits.h> exists even on freestanding compilers. */
24425
24426#ifdef __STDC__
24427# include <limits.h>
24428#else
24429# include <assert.h>
24430#endif
24431
24432#undef $ac_func
24433
24434/* Override any gcc2 internal prototype to avoid an error. */
24435#ifdef __cplusplus
24436extern "C"
24437{
24438#endif
24439/* We use char because int might match the return type of a gcc2
24440 builtin and then its argument prototype would still apply. */
24441char $ac_func ();
24442/* The GNU C library defines this for functions which it implements
24443 to always fail with ENOSYS. Some functions are actually named
24444 something starting with __ and the normal name is an alias. */
24445#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24446choke me
24447#else
24448char (*f) () = $ac_func;
24449#endif
24450#ifdef __cplusplus
24451}
24452#endif
24453
24454int
24455main ()
24456{
24457return f != $ac_func;
24458 ;
24459 return 0;
24460}
a848cd7e 24461_ACEOF
5d7b7554
VZ
24462rm -f conftest.$ac_objext conftest$ac_exeext
24463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24464 (eval $ac_link) 2>conftest.er1
a848cd7e 24465 ac_status=$?
ac1cb8d3
VS
24466 grep -v '^ *+' conftest.er1 >conftest.err
24467 rm -f conftest.er1
24468 cat conftest.err >&5
a848cd7e
SC
24469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); } &&
fd5199d6 24471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473 (eval $ac_try) 2>&5
24474 ac_status=$?
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); }; } &&
5d7b7554 24477 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 (eval $ac_try) 2>&5
24480 ac_status=$?
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); }; }; then
5d7b7554 24483 eval "$as_ac_var=yes"
a848cd7e
SC
24484else
24485 echo "$as_me: failed program was:" >&5
24486sed 's/^/| /' conftest.$ac_ext >&5
24487
5d7b7554 24488eval "$as_ac_var=no"
a848cd7e 24489fi
5d7b7554
VZ
24490rm -f conftest.err conftest.$ac_objext \
24491 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24492fi
5d7b7554
VZ
24493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24494echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24495if test `eval echo '${'$as_ac_var'}'` = yes; then
24496 cat >>confdefs.h <<_ACEOF
24497#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24498_ACEOF
24499 have_cos=1
a848cd7e 24500fi
5d7b7554 24501done
a848cd7e 24502
ab0f0edd 24503
5d7b7554 24504for ac_func in floor
a848cd7e
SC
24505do
24506as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24507echo "$as_me:$LINENO: checking for $ac_func" >&5
24508echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24509if eval "test \"\${$as_ac_var+set}\" = set"; then
24510 echo $ECHO_N "(cached) $ECHO_C" >&6
24511else
24512 cat >conftest.$ac_ext <<_ACEOF
24513/* confdefs.h. */
24514_ACEOF
24515cat confdefs.h >>conftest.$ac_ext
24516cat >>conftest.$ac_ext <<_ACEOF
24517/* end confdefs.h. */
ac1cb8d3
VS
24518/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24520#define $ac_func innocuous_$ac_func
24521
a848cd7e
SC
24522/* System header to define __stub macros and hopefully few prototypes,
24523 which can conflict with char $ac_func (); below.
24524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24525 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24526
a848cd7e
SC
24527#ifdef __STDC__
24528# include <limits.h>
24529#else
24530# include <assert.h>
24531#endif
ac1cb8d3
VS
24532
24533#undef $ac_func
24534
a848cd7e
SC
24535/* Override any gcc2 internal prototype to avoid an error. */
24536#ifdef __cplusplus
24537extern "C"
24538{
24539#endif
24540/* We use char because int might match the return type of a gcc2
24541 builtin and then its argument prototype would still apply. */
24542char $ac_func ();
24543/* The GNU C library defines this for functions which it implements
24544 to always fail with ENOSYS. Some functions are actually named
24545 something starting with __ and the normal name is an alias. */
24546#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24547choke me
24548#else
24549char (*f) () = $ac_func;
24550#endif
24551#ifdef __cplusplus
24552}
24553#endif
24554
24555int
24556main ()
24557{
24558return f != $ac_func;
24559 ;
24560 return 0;
24561}
24562_ACEOF
24563rm -f conftest.$ac_objext conftest$ac_exeext
24564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24565 (eval $ac_link) 2>conftest.er1
a848cd7e 24566 ac_status=$?
ac1cb8d3
VS
24567 grep -v '^ *+' conftest.er1 >conftest.err
24568 rm -f conftest.er1
24569 cat conftest.err >&5
a848cd7e
SC
24570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571 (exit $ac_status); } &&
fd5199d6 24572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24574 (eval $ac_try) 2>&5
24575 ac_status=$?
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); }; } &&
24578 { ac_try='test -s conftest$ac_exeext'
24579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24580 (eval $ac_try) 2>&5
24581 ac_status=$?
24582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583 (exit $ac_status); }; }; then
24584 eval "$as_ac_var=yes"
24585else
24586 echo "$as_me: failed program was:" >&5
24587sed 's/^/| /' conftest.$ac_ext >&5
24588
24589eval "$as_ac_var=no"
24590fi
24591rm -f conftest.err conftest.$ac_objext \
24592 conftest$ac_exeext conftest.$ac_ext
24593fi
24594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24595echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24596if test `eval echo '${'$as_ac_var'}'` = yes; then
24597 cat >>confdefs.h <<_ACEOF
24598#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24599_ACEOF
24600 have_floor=1
24601fi
24602done
24603
24604echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24605echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24606if test "$have_cos" = 1 -a "$have_floor" = 1; then
24607 echo "$as_me:$LINENO: result: yes" >&5
24608echo "${ECHO_T}yes" >&6
24609else
24610 echo "$as_me:$LINENO: result: no" >&5
24611echo "${ECHO_T}no" >&6
24612 LIBS="$LIBS -lm"
24613 # use different functions to avoid configure caching
24614 have_sin=0
24615 have_ceil=0
24616
24617for ac_func in sin
24618do
24619as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24620echo "$as_me:$LINENO: checking for $ac_func" >&5
24621echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24622if eval "test \"\${$as_ac_var+set}\" = set"; then
24623 echo $ECHO_N "(cached) $ECHO_C" >&6
24624else
24625 cat >conftest.$ac_ext <<_ACEOF
24626/* confdefs.h. */
24627_ACEOF
24628cat confdefs.h >>conftest.$ac_ext
24629cat >>conftest.$ac_ext <<_ACEOF
24630/* end confdefs.h. */
24631/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24633#define $ac_func innocuous_$ac_func
24634
24635/* System header to define __stub macros and hopefully few prototypes,
24636 which can conflict with char $ac_func (); below.
24637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24638 <limits.h> exists even on freestanding compilers. */
24639
24640#ifdef __STDC__
24641# include <limits.h>
24642#else
24643# include <assert.h>
24644#endif
24645
24646#undef $ac_func
24647
24648/* Override any gcc2 internal prototype to avoid an error. */
24649#ifdef __cplusplus
24650extern "C"
24651{
24652#endif
24653/* We use char because int might match the return type of a gcc2
24654 builtin and then its argument prototype would still apply. */
24655char $ac_func ();
24656/* The GNU C library defines this for functions which it implements
24657 to always fail with ENOSYS. Some functions are actually named
24658 something starting with __ and the normal name is an alias. */
24659#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24660choke me
24661#else
24662char (*f) () = $ac_func;
24663#endif
24664#ifdef __cplusplus
24665}
24666#endif
24667
24668int
24669main ()
24670{
24671return f != $ac_func;
24672 ;
24673 return 0;
24674}
24675_ACEOF
24676rm -f conftest.$ac_objext conftest$ac_exeext
24677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24678 (eval $ac_link) 2>conftest.er1
24679 ac_status=$?
24680 grep -v '^ *+' conftest.er1 >conftest.err
24681 rm -f conftest.er1
24682 cat conftest.err >&5
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); } &&
fd5199d6 24685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24687 (eval $ac_try) 2>&5
24688 ac_status=$?
24689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690 (exit $ac_status); }; } &&
24691 { ac_try='test -s conftest$ac_exeext'
24692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24693 (eval $ac_try) 2>&5
24694 ac_status=$?
24695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24696 (exit $ac_status); }; }; then
24697 eval "$as_ac_var=yes"
24698else
24699 echo "$as_me: failed program was:" >&5
24700sed 's/^/| /' conftest.$ac_ext >&5
24701
24702eval "$as_ac_var=no"
24703fi
24704rm -f conftest.err conftest.$ac_objext \
24705 conftest$ac_exeext conftest.$ac_ext
24706fi
24707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24708echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24709if test `eval echo '${'$as_ac_var'}'` = yes; then
24710 cat >>confdefs.h <<_ACEOF
24711#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24712_ACEOF
24713 have_sin=1
24714fi
24715done
24716
24717
24718for ac_func in ceil
24719do
24720as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24721echo "$as_me:$LINENO: checking for $ac_func" >&5
24722echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24723if eval "test \"\${$as_ac_var+set}\" = set"; then
24724 echo $ECHO_N "(cached) $ECHO_C" >&6
24725else
24726 cat >conftest.$ac_ext <<_ACEOF
24727/* confdefs.h. */
24728_ACEOF
24729cat confdefs.h >>conftest.$ac_ext
24730cat >>conftest.$ac_ext <<_ACEOF
24731/* end confdefs.h. */
24732/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24734#define $ac_func innocuous_$ac_func
24735
24736/* System header to define __stub macros and hopefully few prototypes,
24737 which can conflict with char $ac_func (); below.
24738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24739 <limits.h> exists even on freestanding compilers. */
24740
24741#ifdef __STDC__
24742# include <limits.h>
24743#else
24744# include <assert.h>
24745#endif
24746
24747#undef $ac_func
24748
24749/* Override any gcc2 internal prototype to avoid an error. */
24750#ifdef __cplusplus
24751extern "C"
24752{
24753#endif
24754/* We use char because int might match the return type of a gcc2
24755 builtin and then its argument prototype would still apply. */
24756char $ac_func ();
24757/* The GNU C library defines this for functions which it implements
24758 to always fail with ENOSYS. Some functions are actually named
24759 something starting with __ and the normal name is an alias. */
24760#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24761choke me
24762#else
24763char (*f) () = $ac_func;
24764#endif
24765#ifdef __cplusplus
24766}
24767#endif
24768
24769int
24770main ()
24771{
24772return f != $ac_func;
24773 ;
24774 return 0;
24775}
24776_ACEOF
24777rm -f conftest.$ac_objext conftest$ac_exeext
24778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24779 (eval $ac_link) 2>conftest.er1
24780 ac_status=$?
24781 grep -v '^ *+' conftest.er1 >conftest.err
24782 rm -f conftest.er1
24783 cat conftest.err >&5
24784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785 (exit $ac_status); } &&
fd5199d6 24786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24788 (eval $ac_try) 2>&5
24789 ac_status=$?
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); }; } &&
24792 { ac_try='test -s conftest$ac_exeext'
24793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24794 (eval $ac_try) 2>&5
24795 ac_status=$?
24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); }; }; then
24798 eval "$as_ac_var=yes"
24799else
24800 echo "$as_me: failed program was:" >&5
24801sed 's/^/| /' conftest.$ac_ext >&5
24802
24803eval "$as_ac_var=no"
24804fi
24805rm -f conftest.err conftest.$ac_objext \
24806 conftest$ac_exeext conftest.$ac_ext
24807fi
24808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24809echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24810if test `eval echo '${'$as_ac_var'}'` = yes; then
24811 cat >>confdefs.h <<_ACEOF
24812#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24813_ACEOF
24814 have_ceil=1
24815fi
24816done
24817
24818 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24819echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24820 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24821 echo "$as_me:$LINENO: result: yes" >&5
24822echo "${ECHO_T}yes" >&6
24823 else
24824 echo "$as_me:$LINENO: result: no" >&5
24825echo "${ECHO_T}no" >&6
24826 # not sure we should warn the user, crash, etc.
24827 fi
24828fi
24829
ec3edcc9
VZ
24830if test "wxUSE_UNICODE" = "yes"; then
24831
fd5199d6
VZ
24832 for wx_func in wcstoull
24833 do
24834 echo "$as_me:$LINENO: checking for $wx_func" >&5
24835echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
24836if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
ec3edcc9
VZ
24837 echo $ECHO_N "(cached) $ECHO_C" >&6
24838else
fd5199d6
VZ
24839
24840 cat >conftest.$ac_ext <<_ACEOF
24841
24842 /* confdefs.h. */
ec3edcc9
VZ
24843_ACEOF
24844cat confdefs.h >>conftest.$ac_ext
24845cat >>conftest.$ac_ext <<_ACEOF
24846/* end confdefs.h. */
ec3edcc9 24847
ec3edcc9 24848
fd5199d6 24849 $ac_includes_default
ec3edcc9
VZ
24850
24851int
24852main ()
24853{
fd5199d6
VZ
24854
24855 #ifndef $wx_func
24856 &$wx_func;
24857 #endif
24858
24859
ec3edcc9
VZ
24860 ;
24861 return 0;
24862}
fd5199d6 24863
ec3edcc9
VZ
24864_ACEOF
24865rm -f conftest.$ac_objext conftest$ac_exeext
24866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24867 (eval $ac_link) 2>conftest.er1
24868 ac_status=$?
24869 grep -v '^ *+' conftest.er1 >conftest.err
24870 rm -f conftest.er1
24871 cat conftest.err >&5
24872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873 (exit $ac_status); } &&
fd5199d6 24874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ec3edcc9
VZ
24875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24876 (eval $ac_try) 2>&5
24877 ac_status=$?
24878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); }; } &&
24880 { ac_try='test -s conftest$ac_exeext'
24881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24882 (eval $ac_try) 2>&5
24883 ac_status=$?
24884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885 (exit $ac_status); }; }; then
fd5199d6 24886 eval wx_cv_func_$wx_func=yes
ec3edcc9
VZ
24887else
24888 echo "$as_me: failed program was:" >&5
24889sed 's/^/| /' conftest.$ac_ext >&5
24890
fd5199d6 24891eval wx_cv_func_$wx_func=no
ec3edcc9
VZ
24892fi
24893rm -f conftest.err conftest.$ac_objext \
24894 conftest$ac_exeext conftest.$ac_ext
fd5199d6 24895
ec3edcc9 24896fi
fd5199d6
VZ
24897echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
24898echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
24899
24900 if eval test \$wx_cv_func_$wx_func = yes
24901 then
24902 cat >>confdefs.h <<_ACEOF
24903#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
ec3edcc9
VZ
24904_ACEOF
24905
fd5199d6
VZ
24906
24907 else
24908 :
24909
24910 fi
24911 done
ec3edcc9
VZ
24912
24913else
24914
fd5199d6
VZ
24915 for wx_func in strtoull
24916 do
24917 echo "$as_me:$LINENO: checking for $wx_func" >&5
24918echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
24919if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
ec3edcc9
VZ
24920 echo $ECHO_N "(cached) $ECHO_C" >&6
24921else
fd5199d6
VZ
24922
24923 cat >conftest.$ac_ext <<_ACEOF
24924
24925 /* confdefs.h. */
ec3edcc9
VZ
24926_ACEOF
24927cat confdefs.h >>conftest.$ac_ext
24928cat >>conftest.$ac_ext <<_ACEOF
24929/* end confdefs.h. */
ec3edcc9 24930
ec3edcc9 24931
fd5199d6 24932 $ac_includes_default
ec3edcc9
VZ
24933
24934int
24935main ()
24936{
fd5199d6
VZ
24937
24938 #ifndef $wx_func
24939 &$wx_func;
24940 #endif
24941
24942
ec3edcc9
VZ
24943 ;
24944 return 0;
24945}
fd5199d6 24946
ec3edcc9
VZ
24947_ACEOF
24948rm -f conftest.$ac_objext conftest$ac_exeext
24949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24950 (eval $ac_link) 2>conftest.er1
24951 ac_status=$?
24952 grep -v '^ *+' conftest.er1 >conftest.err
24953 rm -f conftest.er1
24954 cat conftest.err >&5
24955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956 (exit $ac_status); } &&
fd5199d6 24957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ec3edcc9
VZ
24958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24959 (eval $ac_try) 2>&5
24960 ac_status=$?
24961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962 (exit $ac_status); }; } &&
24963 { ac_try='test -s conftest$ac_exeext'
24964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24965 (eval $ac_try) 2>&5
24966 ac_status=$?
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); }; }; then
fd5199d6 24969 eval wx_cv_func_$wx_func=yes
ec3edcc9
VZ
24970else
24971 echo "$as_me: failed program was:" >&5
24972sed 's/^/| /' conftest.$ac_ext >&5
24973
fd5199d6 24974eval wx_cv_func_$wx_func=no
ec3edcc9
VZ
24975fi
24976rm -f conftest.err conftest.$ac_objext \
24977 conftest$ac_exeext conftest.$ac_ext
fd5199d6 24978
ec3edcc9 24979fi
fd5199d6
VZ
24980echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
24981echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
24982
24983 if eval test \$wx_cv_func_$wx_func = yes
24984 then
24985 cat >>confdefs.h <<_ACEOF
24986#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
ec3edcc9
VZ
24987_ACEOF
24988
fd5199d6
VZ
24989
24990 else
24991 :
24992
24993 fi
24994 done
ec3edcc9
VZ
24995
24996fi
24997
5d7b7554
VZ
24998
24999
25000if test "$wxUSE_REGEX" != "no"; then
25001 cat >>confdefs.h <<\_ACEOF
25002#define wxUSE_REGEX 1
25003_ACEOF
25004
25005
25006 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25007 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25008echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25009 wxUSE_REGEX=builtin
25010 fi
25011
25012 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25013 if test "${ac_cv_header_regex_h+set}" = set; then
25014 echo "$as_me:$LINENO: checking for regex.h" >&5
25015echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25016if test "${ac_cv_header_regex_h+set}" = set; then
25017 echo $ECHO_N "(cached) $ECHO_C" >&6
25018fi
25019echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25020echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25021else
25022 # Is the header compilable?
25023echo "$as_me:$LINENO: checking regex.h usability" >&5
25024echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
25025cat >conftest.$ac_ext <<_ACEOF
25026/* confdefs.h. */
25027_ACEOF
25028cat confdefs.h >>conftest.$ac_ext
25029cat >>conftest.$ac_ext <<_ACEOF
25030/* end confdefs.h. */
25031$ac_includes_default
25032#include <regex.h>
25033_ACEOF
25034rm -f conftest.$ac_objext
25035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25036 (eval $ac_compile) 2>conftest.er1
25037 ac_status=$?
25038 grep -v '^ *+' conftest.er1 >conftest.err
25039 rm -f conftest.er1
25040 cat conftest.err >&5
25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042 (exit $ac_status); } &&
fd5199d6 25043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25045 (eval $ac_try) 2>&5
25046 ac_status=$?
25047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); }; } &&
25049 { ac_try='test -s conftest.$ac_objext'
25050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25051 (eval $ac_try) 2>&5
25052 ac_status=$?
25053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054 (exit $ac_status); }; }; then
25055 ac_header_compiler=yes
25056else
25057 echo "$as_me: failed program was:" >&5
25058sed 's/^/| /' conftest.$ac_ext >&5
25059
25060ac_header_compiler=no
25061fi
25062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25063echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25064echo "${ECHO_T}$ac_header_compiler" >&6
25065
25066# Is the header present?
25067echo "$as_me:$LINENO: checking regex.h presence" >&5
25068echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
25069cat >conftest.$ac_ext <<_ACEOF
25070/* confdefs.h. */
25071_ACEOF
25072cat confdefs.h >>conftest.$ac_ext
25073cat >>conftest.$ac_ext <<_ACEOF
25074/* end confdefs.h. */
25075#include <regex.h>
25076_ACEOF
25077if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25079 ac_status=$?
25080 grep -v '^ *+' conftest.er1 >conftest.err
25081 rm -f conftest.er1
25082 cat conftest.err >&5
25083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084 (exit $ac_status); } >/dev/null; then
25085 if test -s conftest.err; then
fd5199d6
VZ
25086 ac_cpp_err=$ac_c_preproc_warn_flag
25087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5d7b7554
VZ
25088 else
25089 ac_cpp_err=
25090 fi
25091else
25092 ac_cpp_err=yes
25093fi
25094if test -z "$ac_cpp_err"; then
25095 ac_header_preproc=yes
25096else
25097 echo "$as_me: failed program was:" >&5
25098sed 's/^/| /' conftest.$ac_ext >&5
25099
25100 ac_header_preproc=no
25101fi
25102rm -f conftest.err conftest.$ac_ext
25103echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25104echo "${ECHO_T}$ac_header_preproc" >&6
25105
25106# So? What about this header?
fd5199d6 25107case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5d7b7554
VZ
25108 yes:no: )
25109 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25110echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25111 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25112echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25113 ac_header_preproc=yes
25114 ;;
25115 no:yes:* )
25116 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25117echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25118 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
25119echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
25120 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25121echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25122 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
25123echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25124 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25125echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25126 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25127echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25128 (
25129 cat <<\_ASBOX
25130## ----------------------------------------- ##
25131## Report this to wx-dev@lists.wxwidgets.org ##
25132## ----------------------------------------- ##
25133_ASBOX
25134 ) |
25135 sed "s/^/$as_me: WARNING: /" >&2
25136 ;;
25137esac
25138echo "$as_me:$LINENO: checking for regex.h" >&5
25139echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25140if test "${ac_cv_header_regex_h+set}" = set; then
25141 echo $ECHO_N "(cached) $ECHO_C" >&6
25142else
25143 ac_cv_header_regex_h=$ac_header_preproc
25144fi
25145echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25146echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25147
25148fi
25149if test $ac_cv_header_regex_h = yes; then
25150
25151
25152for ac_func in regcomp re_search
25153do
25154as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25155echo "$as_me:$LINENO: checking for $ac_func" >&5
25156echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25157if eval "test \"\${$as_ac_var+set}\" = set"; then
25158 echo $ECHO_N "(cached) $ECHO_C" >&6
25159else
25160 cat >conftest.$ac_ext <<_ACEOF
25161/* confdefs.h. */
25162_ACEOF
25163cat confdefs.h >>conftest.$ac_ext
25164cat >>conftest.$ac_ext <<_ACEOF
25165/* end confdefs.h. */
25166/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25168#define $ac_func innocuous_$ac_func
25169
25170/* System header to define __stub macros and hopefully few prototypes,
25171 which can conflict with char $ac_func (); below.
25172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25173 <limits.h> exists even on freestanding compilers. */
25174
25175#ifdef __STDC__
25176# include <limits.h>
25177#else
25178# include <assert.h>
25179#endif
25180
25181#undef $ac_func
25182
25183/* Override any gcc2 internal prototype to avoid an error. */
25184#ifdef __cplusplus
25185extern "C"
25186{
25187#endif
25188/* We use char because int might match the return type of a gcc2
25189 builtin and then its argument prototype would still apply. */
25190char $ac_func ();
25191/* The GNU C library defines this for functions which it implements
25192 to always fail with ENOSYS. Some functions are actually named
25193 something starting with __ and the normal name is an alias. */
25194#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25195choke me
25196#else
25197char (*f) () = $ac_func;
25198#endif
25199#ifdef __cplusplus
25200}
25201#endif
25202
25203int
25204main ()
25205{
25206return f != $ac_func;
25207 ;
25208 return 0;
25209}
25210_ACEOF
25211rm -f conftest.$ac_objext conftest$ac_exeext
25212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25213 (eval $ac_link) 2>conftest.er1
25214 ac_status=$?
25215 grep -v '^ *+' conftest.er1 >conftest.err
25216 rm -f conftest.er1
25217 cat conftest.err >&5
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); } &&
fd5199d6 25220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25222 (eval $ac_try) 2>&5
25223 ac_status=$?
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); }; } &&
25226 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25228 (eval $ac_try) 2>&5
25229 ac_status=$?
25230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231 (exit $ac_status); }; }; then
25232 eval "$as_ac_var=yes"
25233else
25234 echo "$as_me: failed program was:" >&5
25235sed 's/^/| /' conftest.$ac_ext >&5
25236
25237eval "$as_ac_var=no"
25238fi
ac1cb8d3
VS
25239rm -f conftest.err conftest.$ac_objext \
25240 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25241fi
25242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25243echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25244if test `eval echo '${'$as_ac_var'}'` = yes; then
25245 cat >>confdefs.h <<_ACEOF
25246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25247_ACEOF
25248
25249fi
25250done
25251
25252fi
25253
25254
25255
25256 if test "x$ac_cv_func_regcomp" != "xyes"; then
25257 if test "$wxUSE_REGEX" = "sys" ; then
25258 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25259echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25260 { (exit 1); exit 1; }; }
25261 else
25262 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25263echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25264 wxUSE_REGEX=builtin
25265 fi
25266 else
25267 wxUSE_REGEX=sys
25268 cat >>confdefs.h <<\_ACEOF
25269#define WX_NO_REGEX_ADVANCED 1
25270_ACEOF
25271
25272 fi
25273 fi
25274fi
25275
25276
25277ZLIB_LINK=
25278if test "$wxUSE_ZLIB" != "no" ; then
25279 cat >>confdefs.h <<\_ACEOF
25280#define wxUSE_ZLIB 1
25281_ACEOF
25282
25283
25284 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25285 if test "$USE_DARWIN" = 1; then
25286 system_zlib_h_ok="yes"
25287 else
25288 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25289echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25290if test "${ac_cv_header_zlib_h+set}" = set; then
25291 echo $ECHO_N "(cached) $ECHO_C" >&6
25292else
25293 if test "$cross_compiling" = yes; then
25294 unset ac_cv_header_zlib_h
25295
25296else
25297 cat >conftest.$ac_ext <<_ACEOF
25298/* confdefs.h. */
25299_ACEOF
25300cat confdefs.h >>conftest.$ac_ext
25301cat >>conftest.$ac_ext <<_ACEOF
25302/* end confdefs.h. */
25303
25304 #include <zlib.h>
25305 #include <stdio.h>
25306
25307 int main()
25308 {
25309 FILE *f=fopen("conftestval", "w");
25310 if (!f) exit(1);
25311 fprintf(f, "%s",
25312 ZLIB_VERSION[0] == '1' &&
25313 (ZLIB_VERSION[2] > '1' ||
25314 (ZLIB_VERSION[2] == '1' &&
25315 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25316 exit(0);
25317 }
25318
25319_ACEOF
25320rm -f conftest$ac_exeext
25321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25322 (eval $ac_link) 2>&5
25323 ac_status=$?
25324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25327 (eval $ac_try) 2>&5
25328 ac_status=$?
25329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); }; }; then
25331 ac_cv_header_zlib_h=`cat conftestval`
25332else
25333 echo "$as_me: program exited with status $ac_status" >&5
25334echo "$as_me: failed program was:" >&5
25335sed 's/^/| /' conftest.$ac_ext >&5
25336
25337( exit $ac_status )
25338ac_cv_header_zlib_h=no
25339fi
ac1cb8d3 25340rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25341fi
25342
25343fi
25344echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25345echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25346 if test "${ac_cv_header_zlib_h+set}" = set; then
25347 echo "$as_me:$LINENO: checking for zlib.h" >&5
25348echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25349if test "${ac_cv_header_zlib_h+set}" = set; then
25350 echo $ECHO_N "(cached) $ECHO_C" >&6
25351fi
25352echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25353echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25354else
25355 # Is the header compilable?
25356echo "$as_me:$LINENO: checking zlib.h usability" >&5
25357echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25358cat >conftest.$ac_ext <<_ACEOF
25359/* confdefs.h. */
25360_ACEOF
25361cat confdefs.h >>conftest.$ac_ext
25362cat >>conftest.$ac_ext <<_ACEOF
25363/* end confdefs.h. */
25364$ac_includes_default
25365#include <zlib.h>
25366_ACEOF
25367rm -f conftest.$ac_objext
25368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25369 (eval $ac_compile) 2>conftest.er1
a848cd7e 25370 ac_status=$?
ac1cb8d3
VS
25371 grep -v '^ *+' conftest.er1 >conftest.err
25372 rm -f conftest.er1
25373 cat conftest.err >&5
a848cd7e
SC
25374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375 (exit $ac_status); } &&
fd5199d6 25376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25378 (eval $ac_try) 2>&5
25379 ac_status=$?
25380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381 (exit $ac_status); }; } &&
25382 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384 (eval $ac_try) 2>&5
25385 ac_status=$?
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); }; }; then
25388 ac_header_compiler=yes
25389else
25390 echo "$as_me: failed program was:" >&5
25391sed 's/^/| /' conftest.$ac_ext >&5
25392
25393ac_header_compiler=no
25394fi
ac1cb8d3 25395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25396echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25397echo "${ECHO_T}$ac_header_compiler" >&6
25398
25399# Is the header present?
25400echo "$as_me:$LINENO: checking zlib.h presence" >&5
25401echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25402cat >conftest.$ac_ext <<_ACEOF
25403/* confdefs.h. */
25404_ACEOF
25405cat confdefs.h >>conftest.$ac_ext
25406cat >>conftest.$ac_ext <<_ACEOF
25407/* end confdefs.h. */
25408#include <zlib.h>
25409_ACEOF
25410if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25412 ac_status=$?
25413 grep -v '^ *+' conftest.er1 >conftest.err
25414 rm -f conftest.er1
25415 cat conftest.err >&5
25416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417 (exit $ac_status); } >/dev/null; then
25418 if test -s conftest.err; then
fd5199d6
VZ
25419 ac_cpp_err=$ac_c_preproc_warn_flag
25420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25421 else
25422 ac_cpp_err=
25423 fi
25424else
25425 ac_cpp_err=yes
25426fi
25427if test -z "$ac_cpp_err"; then
25428 ac_header_preproc=yes
25429else
25430 echo "$as_me: failed program was:" >&5
25431sed 's/^/| /' conftest.$ac_ext >&5
25432
25433 ac_header_preproc=no
25434fi
25435rm -f conftest.err conftest.$ac_ext
25436echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25437echo "${ECHO_T}$ac_header_preproc" >&6
25438
25439# So? What about this header?
fd5199d6 25440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 25441 yes:no: )
a848cd7e
SC
25442 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25443echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25444 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25445echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25446 ac_header_preproc=yes
a848cd7e 25447 ;;
ac1cb8d3 25448 no:yes:* )
a848cd7e
SC
25449 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25450echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25451 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25452echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25453 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25454echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25455 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25456echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25457 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25458echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25459 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25460echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25461 (
25462 cat <<\_ASBOX
ac1cb8d3
VS
25463## ----------------------------------------- ##
25464## Report this to wx-dev@lists.wxwidgets.org ##
25465## ----------------------------------------- ##
a848cd7e
SC
25466_ASBOX
25467 ) |
25468 sed "s/^/$as_me: WARNING: /" >&2
25469 ;;
25470esac
25471echo "$as_me:$LINENO: checking for zlib.h" >&5
25472echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25473if test "${ac_cv_header_zlib_h+set}" = set; then
25474 echo $ECHO_N "(cached) $ECHO_C" >&6
25475else
25476 ac_cv_header_zlib_h=$ac_header_preproc
25477fi
25478echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25479echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25480
25481fi
25482
25483
25484
25485 system_zlib_h_ok=$ac_cv_header_zlib_h
25486 fi
25487
25488 if test "$system_zlib_h_ok" = "yes"; then
25489 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25490echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25491if test "${ac_cv_lib_z_deflate+set}" = set; then
25492 echo $ECHO_N "(cached) $ECHO_C" >&6
25493else
25494 ac_check_lib_save_LIBS=$LIBS
25495LIBS="-lz $LIBS"
25496cat >conftest.$ac_ext <<_ACEOF
25497/* confdefs.h. */
25498_ACEOF
25499cat confdefs.h >>conftest.$ac_ext
25500cat >>conftest.$ac_ext <<_ACEOF
25501/* end confdefs.h. */
25502
25503/* Override any gcc2 internal prototype to avoid an error. */
25504#ifdef __cplusplus
25505extern "C"
25506#endif
25507/* We use char because int might match the return type of a gcc2
25508 builtin and then its argument prototype would still apply. */
25509char deflate ();
25510int
25511main ()
25512{
25513deflate ();
25514 ;
25515 return 0;
25516}
25517_ACEOF
25518rm -f conftest.$ac_objext conftest$ac_exeext
25519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25520 (eval $ac_link) 2>conftest.er1
a848cd7e 25521 ac_status=$?
ac1cb8d3
VS
25522 grep -v '^ *+' conftest.er1 >conftest.err
25523 rm -f conftest.er1
25524 cat conftest.err >&5
a848cd7e
SC
25525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526 (exit $ac_status); } &&
fd5199d6 25527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25529 (eval $ac_try) 2>&5
25530 ac_status=$?
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); }; } &&
25533 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25535 (eval $ac_try) 2>&5
25536 ac_status=$?
25537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538 (exit $ac_status); }; }; then
25539 ac_cv_lib_z_deflate=yes
25540else
25541 echo "$as_me: failed program was:" >&5
25542sed 's/^/| /' conftest.$ac_ext >&5
25543
25544ac_cv_lib_z_deflate=no
25545fi
ac1cb8d3
VS
25546rm -f conftest.err conftest.$ac_objext \
25547 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25548LIBS=$ac_check_lib_save_LIBS
25549fi
25550echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25551echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25552if test $ac_cv_lib_z_deflate = yes; then
25553 ZLIB_LINK=" -lz"
25554fi
25555
25556 fi
25557
25558 if test "x$ZLIB_LINK" = "x" ; then
25559 if test "$wxUSE_ZLIB" = "sys" ; then
25560 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25561echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25562 { (exit 1); exit 1; }; }
25563 else
25564 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25565echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25566 wxUSE_ZLIB=builtin
25567 fi
25568 else
25569 wxUSE_ZLIB=sys
25570 fi
25571 fi
25572fi
25573
25574
25575PNG_LINK=
25576if test "$wxUSE_LIBPNG" != "no" ; then
25577 cat >>confdefs.h <<\_ACEOF
25578#define wxUSE_LIBPNG 1
25579_ACEOF
25580
25581
25582 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25583 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25584echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25585 wxUSE_LIBPNG=sys
25586 fi
25587
25588 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25589 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25590echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25591 wxUSE_LIBPNG=builtin
25592 fi
25593
25594 if test "$wxUSE_MGL" != 1 ; then
25595 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25596 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25597echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25598if test "${ac_cv_header_png_h+set}" = set; then
25599 echo $ECHO_N "(cached) $ECHO_C" >&6
25600else
25601 if test "$cross_compiling" = yes; then
25602 unset ac_cv_header_png_h
25603
25604else
25605 cat >conftest.$ac_ext <<_ACEOF
25606/* confdefs.h. */
25607_ACEOF
25608cat confdefs.h >>conftest.$ac_ext
25609cat >>conftest.$ac_ext <<_ACEOF
25610/* end confdefs.h. */
25611
25612 #include <png.h>
25613 #include <stdio.h>
25614
25615 int main()
25616 {
25617 FILE *f=fopen("conftestval", "w");
25618 if (!f) exit(1);
25619 fprintf(f, "%s",
25620 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25621 exit(0);
25622 }
25623
25624_ACEOF
25625rm -f conftest$ac_exeext
25626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25627 (eval $ac_link) 2>&5
25628 ac_status=$?
25629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25632 (eval $ac_try) 2>&5
25633 ac_status=$?
25634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635 (exit $ac_status); }; }; then
25636 ac_cv_header_png_h=`cat conftestval`
25637else
25638 echo "$as_me: program exited with status $ac_status" >&5
25639echo "$as_me: failed program was:" >&5
25640sed 's/^/| /' conftest.$ac_ext >&5
25641
25642( exit $ac_status )
25643ac_cv_header_png_h=no
25644fi
ac1cb8d3 25645rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25646fi
25647
25648fi
25649echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25650echo "${ECHO_T}$ac_cv_header_png_h" >&6
25651 if test "${ac_cv_header_png_h+set}" = set; then
25652 echo "$as_me:$LINENO: checking for png.h" >&5
25653echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25654if test "${ac_cv_header_png_h+set}" = set; then
25655 echo $ECHO_N "(cached) $ECHO_C" >&6
25656fi
25657echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25658echo "${ECHO_T}$ac_cv_header_png_h" >&6
25659else
25660 # Is the header compilable?
25661echo "$as_me:$LINENO: checking png.h usability" >&5
25662echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25663cat >conftest.$ac_ext <<_ACEOF
25664/* confdefs.h. */
25665_ACEOF
25666cat confdefs.h >>conftest.$ac_ext
25667cat >>conftest.$ac_ext <<_ACEOF
25668/* end confdefs.h. */
25669$ac_includes_default
25670#include <png.h>
25671_ACEOF
25672rm -f conftest.$ac_objext
25673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25674 (eval $ac_compile) 2>conftest.er1
a848cd7e 25675 ac_status=$?
ac1cb8d3
VS
25676 grep -v '^ *+' conftest.er1 >conftest.err
25677 rm -f conftest.er1
25678 cat conftest.err >&5
a848cd7e
SC
25679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); } &&
fd5199d6 25681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25683 (eval $ac_try) 2>&5
25684 ac_status=$?
25685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686 (exit $ac_status); }; } &&
25687 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25689 (eval $ac_try) 2>&5
25690 ac_status=$?
25691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692 (exit $ac_status); }; }; then
25693 ac_header_compiler=yes
25694else
25695 echo "$as_me: failed program was:" >&5
25696sed 's/^/| /' conftest.$ac_ext >&5
25697
25698ac_header_compiler=no
25699fi
ac1cb8d3 25700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25701echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25702echo "${ECHO_T}$ac_header_compiler" >&6
25703
25704# Is the header present?
25705echo "$as_me:$LINENO: checking png.h presence" >&5
25706echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25707cat >conftest.$ac_ext <<_ACEOF
25708/* confdefs.h. */
25709_ACEOF
25710cat confdefs.h >>conftest.$ac_ext
25711cat >>conftest.$ac_ext <<_ACEOF
25712/* end confdefs.h. */
25713#include <png.h>
25714_ACEOF
25715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25717 ac_status=$?
25718 grep -v '^ *+' conftest.er1 >conftest.err
25719 rm -f conftest.er1
25720 cat conftest.err >&5
25721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722 (exit $ac_status); } >/dev/null; then
25723 if test -s conftest.err; then
fd5199d6
VZ
25724 ac_cpp_err=$ac_c_preproc_warn_flag
25725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25726 else
25727 ac_cpp_err=
25728 fi
25729else
25730 ac_cpp_err=yes
25731fi
25732if test -z "$ac_cpp_err"; then
25733 ac_header_preproc=yes
25734else
25735 echo "$as_me: failed program was:" >&5
25736sed 's/^/| /' conftest.$ac_ext >&5
25737
25738 ac_header_preproc=no
25739fi
25740rm -f conftest.err conftest.$ac_ext
25741echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25742echo "${ECHO_T}$ac_header_preproc" >&6
25743
25744# So? What about this header?
fd5199d6 25745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 25746 yes:no: )
a848cd7e
SC
25747 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25748echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25749 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25750echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25751 ac_header_preproc=yes
a848cd7e 25752 ;;
ac1cb8d3 25753 no:yes:* )
a848cd7e
SC
25754 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25755echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25756 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25757echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25758 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25759echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25760 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25761echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25762 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25763echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25764 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25765echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25766 (
25767 cat <<\_ASBOX
ac1cb8d3
VS
25768## ----------------------------------------- ##
25769## Report this to wx-dev@lists.wxwidgets.org ##
25770## ----------------------------------------- ##
a848cd7e
SC
25771_ASBOX
25772 ) |
25773 sed "s/^/$as_me: WARNING: /" >&2
25774 ;;
25775esac
25776echo "$as_me:$LINENO: checking for png.h" >&5
25777echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25778if test "${ac_cv_header_png_h+set}" = set; then
25779 echo $ECHO_N "(cached) $ECHO_C" >&6
25780else
25781 ac_cv_header_png_h=$ac_header_preproc
25782fi
25783echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25784echo "${ECHO_T}$ac_cv_header_png_h" >&6
25785
25786fi
25787
25788
25789
25790 if test "$ac_cv_header_png_h" = "yes"; then
25791 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25792echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25793if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25794 echo $ECHO_N "(cached) $ECHO_C" >&6
25795else
25796 ac_check_lib_save_LIBS=$LIBS
25797LIBS="-lpng -lz -lm $LIBS"
25798cat >conftest.$ac_ext <<_ACEOF
25799/* confdefs.h. */
25800_ACEOF
25801cat confdefs.h >>conftest.$ac_ext
25802cat >>conftest.$ac_ext <<_ACEOF
25803/* end confdefs.h. */
25804
25805/* Override any gcc2 internal prototype to avoid an error. */
25806#ifdef __cplusplus
25807extern "C"
25808#endif
25809/* We use char because int might match the return type of a gcc2
25810 builtin and then its argument prototype would still apply. */
25811char png_check_sig ();
25812int
25813main ()
25814{
25815png_check_sig ();
25816 ;
25817 return 0;
25818}
25819_ACEOF
25820rm -f conftest.$ac_objext conftest$ac_exeext
25821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25822 (eval $ac_link) 2>conftest.er1
a848cd7e 25823 ac_status=$?
ac1cb8d3
VS
25824 grep -v '^ *+' conftest.er1 >conftest.err
25825 rm -f conftest.er1
25826 cat conftest.err >&5
a848cd7e
SC
25827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828 (exit $ac_status); } &&
fd5199d6 25829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25831 (eval $ac_try) 2>&5
25832 ac_status=$?
25833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); }; } &&
25835 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25837 (eval $ac_try) 2>&5
25838 ac_status=$?
25839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840 (exit $ac_status); }; }; then
25841 ac_cv_lib_png_png_check_sig=yes
25842else
25843 echo "$as_me: failed program was:" >&5
25844sed 's/^/| /' conftest.$ac_ext >&5
25845
25846ac_cv_lib_png_png_check_sig=no
25847fi
ac1cb8d3
VS
25848rm -f conftest.err conftest.$ac_objext \
25849 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25850LIBS=$ac_check_lib_save_LIBS
25851fi
25852echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25853echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25854if test $ac_cv_lib_png_png_check_sig = yes; then
25855 PNG_LINK=" -lpng -lz"
25856fi
25857
25858 fi
25859
25860 if test "x$PNG_LINK" = "x" ; then
25861 if test "$wxUSE_LIBPNG" = "sys" ; then
25862 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25863echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25864 { (exit 1); exit 1; }; }
25865 else
25866 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25867echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25868 wxUSE_LIBPNG=builtin
25869 fi
25870 else
25871 wxUSE_LIBPNG=sys
25872 fi
25873 fi
25874 fi
25875
25876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25877fi
25878
25879
25880JPEG_LINK=
25881if test "$wxUSE_LIBJPEG" != "no" ; then
25882 cat >>confdefs.h <<\_ACEOF
25883#define wxUSE_LIBJPEG 1
25884_ACEOF
25885
25886
25887 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25888 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25889echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25890 wxUSE_LIBJPEG=sys
25891 fi
25892
25893 if test "$wxUSE_MGL" != 1 ; then
25894 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25895 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25896echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25897 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25898 echo $ECHO_N "(cached) $ECHO_C" >&6
25899else
25900 cat >conftest.$ac_ext <<_ACEOF
25901/* confdefs.h. */
25902_ACEOF
25903cat confdefs.h >>conftest.$ac_ext
25904cat >>conftest.$ac_ext <<_ACEOF
25905/* end confdefs.h. */
25906
25907 #undef HAVE_STDLIB_H
25908 #include <stdio.h>
25909 #include <jpeglib.h>
25910
25911int
25912main ()
25913{
25914
25915
25916 ;
25917 return 0;
25918}
25919_ACEOF
25920rm -f conftest.$ac_objext
25921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25922 (eval $ac_compile) 2>conftest.er1
a848cd7e 25923 ac_status=$?
ac1cb8d3
VS
25924 grep -v '^ *+' conftest.er1 >conftest.err
25925 rm -f conftest.er1
25926 cat conftest.err >&5
a848cd7e
SC
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); } &&
fd5199d6 25929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25931 (eval $ac_try) 2>&5
25932 ac_status=$?
25933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); }; } &&
25935 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25937 (eval $ac_try) 2>&5
25938 ac_status=$?
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); }; }; then
25941 ac_cv_header_jpeglib_h=yes
25942else
25943 echo "$as_me: failed program was:" >&5
25944sed 's/^/| /' conftest.$ac_ext >&5
25945
25946ac_cv_header_jpeglib_h=no
25947
25948fi
ac1cb8d3 25949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25950
25951fi
25952
25953 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25954echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25955
25956 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25957 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25958echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25959if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25960 echo $ECHO_N "(cached) $ECHO_C" >&6
25961else
25962 ac_check_lib_save_LIBS=$LIBS
25963LIBS="-ljpeg $LIBS"
25964cat >conftest.$ac_ext <<_ACEOF
25965/* confdefs.h. */
25966_ACEOF
25967cat confdefs.h >>conftest.$ac_ext
25968cat >>conftest.$ac_ext <<_ACEOF
25969/* end confdefs.h. */
25970
25971/* Override any gcc2 internal prototype to avoid an error. */
25972#ifdef __cplusplus
25973extern "C"
25974#endif
25975/* We use char because int might match the return type of a gcc2
25976 builtin and then its argument prototype would still apply. */
25977char jpeg_read_header ();
25978int
25979main ()
25980{
25981jpeg_read_header ();
25982 ;
25983 return 0;
25984}
25985_ACEOF
25986rm -f conftest.$ac_objext conftest$ac_exeext
25987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25988 (eval $ac_link) 2>conftest.er1
a848cd7e 25989 ac_status=$?
ac1cb8d3
VS
25990 grep -v '^ *+' conftest.er1 >conftest.err
25991 rm -f conftest.er1
25992 cat conftest.err >&5
a848cd7e
SC
25993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); } &&
fd5199d6 25995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25997 (eval $ac_try) 2>&5
25998 ac_status=$?
25999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); }; } &&
26001 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26003 (eval $ac_try) 2>&5
26004 ac_status=$?
26005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006 (exit $ac_status); }; }; then
26007 ac_cv_lib_jpeg_jpeg_read_header=yes
26008else
26009 echo "$as_me: failed program was:" >&5
26010sed 's/^/| /' conftest.$ac_ext >&5
26011
26012ac_cv_lib_jpeg_jpeg_read_header=no
26013fi
ac1cb8d3
VS
26014rm -f conftest.err conftest.$ac_objext \
26015 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26016LIBS=$ac_check_lib_save_LIBS
26017fi
26018echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26019echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
26020if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26021 JPEG_LINK=" -ljpeg"
26022fi
26023
26024 fi
26025
26026 if test "x$JPEG_LINK" = "x" ; then
26027 if test "$wxUSE_LIBJPEG" = "sys" ; then
26028 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26029echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26030 { (exit 1); exit 1; }; }
26031 else
26032 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26033echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26034 wxUSE_LIBJPEG=builtin
26035 fi
26036 else
26037 wxUSE_LIBJPEG=sys
90eaf433
MW
26038
26039 if test "$wxUSE_MSW" = 1; then
26040 echo "$as_me:$LINENO: checking for boolean" >&5
26041echo $ECHO_N "checking for boolean... $ECHO_C" >&6
26042if test "${ac_cv_type_boolean+set}" = set; then
26043 echo $ECHO_N "(cached) $ECHO_C" >&6
26044else
26045 cat >conftest.$ac_ext <<_ACEOF
26046/* confdefs.h. */
26047_ACEOF
26048cat confdefs.h >>conftest.$ac_ext
26049cat >>conftest.$ac_ext <<_ACEOF
26050/* end confdefs.h. */
26051#include <windows.h>
26052
26053int
26054main ()
26055{
26056if ((boolean *) 0)
26057 return 0;
26058if (sizeof (boolean))
26059 return 0;
26060 ;
26061 return 0;
26062}
26063_ACEOF
26064rm -f conftest.$ac_objext
26065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26066 (eval $ac_compile) 2>conftest.er1
26067 ac_status=$?
26068 grep -v '^ *+' conftest.er1 >conftest.err
26069 rm -f conftest.er1
26070 cat conftest.err >&5
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); } &&
26073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26075 (eval $ac_try) 2>&5
26076 ac_status=$?
26077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078 (exit $ac_status); }; } &&
26079 { ac_try='test -s conftest.$ac_objext'
26080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26081 (eval $ac_try) 2>&5
26082 ac_status=$?
26083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084 (exit $ac_status); }; }; then
26085 ac_cv_type_boolean=yes
26086else
26087 echo "$as_me: failed program was:" >&5
26088sed 's/^/| /' conftest.$ac_ext >&5
26089
26090ac_cv_type_boolean=no
26091fi
26092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26093fi
26094echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
26095echo "${ECHO_T}$ac_cv_type_boolean" >&6
26096if test $ac_cv_type_boolean = yes; then
26097
26098cat >>confdefs.h <<_ACEOF
26099#define HAVE_BOOLEAN 1
26100_ACEOF
26101
26102
26103 echo "$as_me:$LINENO: checking for boolean" >&5
26104echo $ECHO_N "checking for boolean... $ECHO_C" >&6
26105if test "${ac_cv_type_boolean+set}" = set; then
26106 echo $ECHO_N "(cached) $ECHO_C" >&6
26107else
26108 cat >conftest.$ac_ext <<_ACEOF
26109/* confdefs.h. */
26110_ACEOF
26111cat confdefs.h >>conftest.$ac_ext
26112cat >>conftest.$ac_ext <<_ACEOF
26113/* end confdefs.h. */
26114
26115 #undef HAVE_BOOLEAN
26116 #include <stdio.h>
26117 #include <jpeglib.h>
26118
26119
26120int
26121main ()
26122{
26123if ((boolean *) 0)
26124 return 0;
26125if (sizeof (boolean))
26126 return 0;
26127 ;
26128 return 0;
26129}
26130_ACEOF
26131rm -f conftest.$ac_objext
26132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26133 (eval $ac_compile) 2>conftest.er1
26134 ac_status=$?
26135 grep -v '^ *+' conftest.er1 >conftest.err
26136 rm -f conftest.er1
26137 cat conftest.err >&5
26138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139 (exit $ac_status); } &&
26140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26142 (eval $ac_try) 2>&5
26143 ac_status=$?
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); }; } &&
26146 { ac_try='test -s conftest.$ac_objext'
26147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148 (eval $ac_try) 2>&5
26149 ac_status=$?
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); }; }; then
26152 ac_cv_type_boolean=yes
26153else
26154 echo "$as_me: failed program was:" >&5
26155sed 's/^/| /' conftest.$ac_ext >&5
26156
26157ac_cv_type_boolean=no
26158fi
26159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26160fi
26161echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
26162echo "${ECHO_T}$ac_cv_type_boolean" >&6
26163
26164echo "$as_me:$LINENO: checking size of boolean" >&5
26165echo $ECHO_N "checking size of boolean... $ECHO_C" >&6
26166if test "${ac_cv_sizeof_boolean+set}" = set; then
26167 echo $ECHO_N "(cached) $ECHO_C" >&6
26168else
26169 if test "$ac_cv_type_boolean" = yes; then
26170 # The cast to unsigned long works around a bug in the HP C Compiler
26171 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26172 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26173 # This bug is HP SR number 8606223364.
26174 if test "$cross_compiling" = yes; then
26175 # Depending upon the size, compute the lo and hi bounds.
26176cat >conftest.$ac_ext <<_ACEOF
26177/* confdefs.h. */
26178_ACEOF
26179cat confdefs.h >>conftest.$ac_ext
26180cat >>conftest.$ac_ext <<_ACEOF
26181/* end confdefs.h. */
26182
26183 #undef HAVE_BOOLEAN
26184 #include <stdio.h>
26185 #include <jpeglib.h>
26186
26187
26188int
26189main ()
26190{
26191static int test_array [1 - 2 * !(((long) (sizeof (boolean))) >= 0)];
26192test_array [0] = 0
26193
26194 ;
26195 return 0;
26196}
26197_ACEOF
26198rm -f conftest.$ac_objext
26199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26200 (eval $ac_compile) 2>conftest.er1
26201 ac_status=$?
26202 grep -v '^ *+' conftest.er1 >conftest.err
26203 rm -f conftest.er1
26204 cat conftest.err >&5
26205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26206 (exit $ac_status); } &&
26207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26209 (eval $ac_try) 2>&5
26210 ac_status=$?
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); }; } &&
26213 { ac_try='test -s conftest.$ac_objext'
26214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26215 (eval $ac_try) 2>&5
26216 ac_status=$?
26217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218 (exit $ac_status); }; }; then
26219 ac_lo=0 ac_mid=0
26220 while :; do
26221 cat >conftest.$ac_ext <<_ACEOF
26222/* confdefs.h. */
26223_ACEOF
26224cat confdefs.h >>conftest.$ac_ext
26225cat >>conftest.$ac_ext <<_ACEOF
26226/* end confdefs.h. */
26227
26228 #undef HAVE_BOOLEAN
26229 #include <stdio.h>
26230 #include <jpeglib.h>
26231
26232
26233int
26234main ()
26235{
26236static int test_array [1 - 2 * !(((long) (sizeof (boolean))) <= $ac_mid)];
26237test_array [0] = 0
26238
26239 ;
26240 return 0;
26241}
26242_ACEOF
26243rm -f conftest.$ac_objext
26244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26245 (eval $ac_compile) 2>conftest.er1
26246 ac_status=$?
26247 grep -v '^ *+' conftest.er1 >conftest.err
26248 rm -f conftest.er1
26249 cat conftest.err >&5
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); } &&
26252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26254 (eval $ac_try) 2>&5
26255 ac_status=$?
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); }; } &&
26258 { ac_try='test -s conftest.$ac_objext'
26259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26260 (eval $ac_try) 2>&5
26261 ac_status=$?
26262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263 (exit $ac_status); }; }; then
26264 ac_hi=$ac_mid; break
26265else
26266 echo "$as_me: failed program was:" >&5
26267sed 's/^/| /' conftest.$ac_ext >&5
26268
26269ac_lo=`expr $ac_mid + 1`
26270 if test $ac_lo -le $ac_mid; then
26271 ac_lo= ac_hi=
26272 break
26273 fi
26274 ac_mid=`expr 2 '*' $ac_mid + 1`
26275fi
26276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26277 done
26278else
26279 echo "$as_me: failed program was:" >&5
26280sed 's/^/| /' conftest.$ac_ext >&5
26281
26282cat >conftest.$ac_ext <<_ACEOF
26283/* confdefs.h. */
26284_ACEOF
26285cat confdefs.h >>conftest.$ac_ext
26286cat >>conftest.$ac_ext <<_ACEOF
26287/* end confdefs.h. */
26288
26289 #undef HAVE_BOOLEAN
26290 #include <stdio.h>
26291 #include <jpeglib.h>
26292
26293
26294int
26295main ()
26296{
26297static int test_array [1 - 2 * !(((long) (sizeof (boolean))) < 0)];
26298test_array [0] = 0
26299
26300 ;
26301 return 0;
26302}
26303_ACEOF
26304rm -f conftest.$ac_objext
26305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26306 (eval $ac_compile) 2>conftest.er1
26307 ac_status=$?
26308 grep -v '^ *+' conftest.er1 >conftest.err
26309 rm -f conftest.er1
26310 cat conftest.err >&5
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); } &&
26313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26315 (eval $ac_try) 2>&5
26316 ac_status=$?
26317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318 (exit $ac_status); }; } &&
26319 { ac_try='test -s conftest.$ac_objext'
26320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26321 (eval $ac_try) 2>&5
26322 ac_status=$?
26323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324 (exit $ac_status); }; }; then
26325 ac_hi=-1 ac_mid=-1
26326 while :; do
26327 cat >conftest.$ac_ext <<_ACEOF
26328/* confdefs.h. */
26329_ACEOF
26330cat confdefs.h >>conftest.$ac_ext
26331cat >>conftest.$ac_ext <<_ACEOF
26332/* end confdefs.h. */
26333
26334 #undef HAVE_BOOLEAN
26335 #include <stdio.h>
26336 #include <jpeglib.h>
26337
26338
26339int
26340main ()
26341{
26342static int test_array [1 - 2 * !(((long) (sizeof (boolean))) >= $ac_mid)];
26343test_array [0] = 0
26344
26345 ;
26346 return 0;
26347}
26348_ACEOF
26349rm -f conftest.$ac_objext
26350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26351 (eval $ac_compile) 2>conftest.er1
26352 ac_status=$?
26353 grep -v '^ *+' conftest.er1 >conftest.err
26354 rm -f conftest.er1
26355 cat conftest.err >&5
26356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); } &&
26358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26360 (eval $ac_try) 2>&5
26361 ac_status=$?
26362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26363 (exit $ac_status); }; } &&
26364 { ac_try='test -s conftest.$ac_objext'
26365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26366 (eval $ac_try) 2>&5
26367 ac_status=$?
26368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 (exit $ac_status); }; }; then
26370 ac_lo=$ac_mid; break
26371else
26372 echo "$as_me: failed program was:" >&5
26373sed 's/^/| /' conftest.$ac_ext >&5
26374
26375ac_hi=`expr '(' $ac_mid ')' - 1`
26376 if test $ac_mid -le $ac_hi; then
26377 ac_lo= ac_hi=
26378 break
26379 fi
26380 ac_mid=`expr 2 '*' $ac_mid`
26381fi
26382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26383 done
26384else
26385 echo "$as_me: failed program was:" >&5
26386sed 's/^/| /' conftest.$ac_ext >&5
26387
26388ac_lo= ac_hi=
26389fi
26390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26391fi
26392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26393# Binary search between lo and hi bounds.
26394while test "x$ac_lo" != "x$ac_hi"; do
26395 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26396 cat >conftest.$ac_ext <<_ACEOF
26397/* confdefs.h. */
26398_ACEOF
26399cat confdefs.h >>conftest.$ac_ext
26400cat >>conftest.$ac_ext <<_ACEOF
26401/* end confdefs.h. */
26402
26403 #undef HAVE_BOOLEAN
26404 #include <stdio.h>
26405 #include <jpeglib.h>
26406
26407
26408int
26409main ()
26410{
26411static int test_array [1 - 2 * !(((long) (sizeof (boolean))) <= $ac_mid)];
26412test_array [0] = 0
26413
26414 ;
26415 return 0;
26416}
26417_ACEOF
26418rm -f conftest.$ac_objext
26419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26420 (eval $ac_compile) 2>conftest.er1
26421 ac_status=$?
26422 grep -v '^ *+' conftest.er1 >conftest.err
26423 rm -f conftest.er1
26424 cat conftest.err >&5
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); } &&
26427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26429 (eval $ac_try) 2>&5
26430 ac_status=$?
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); }; } &&
26433 { ac_try='test -s conftest.$ac_objext'
26434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26435 (eval $ac_try) 2>&5
26436 ac_status=$?
26437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26438 (exit $ac_status); }; }; then
26439 ac_hi=$ac_mid
26440else
26441 echo "$as_me: failed program was:" >&5
26442sed 's/^/| /' conftest.$ac_ext >&5
26443
26444ac_lo=`expr '(' $ac_mid ')' + 1`
26445fi
26446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26447done
26448case $ac_lo in
26449?*) ac_cv_sizeof_boolean=$ac_lo;;
26450'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean), 77
26451See \`config.log' for more details." >&5
26452echo "$as_me: error: cannot compute sizeof (boolean), 77
26453See \`config.log' for more details." >&2;}
26454 { (exit 1); exit 1; }; } ;;
26455esac
26456else
26457 if test "$cross_compiling" = yes; then
26458 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26459echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26460 { (exit 1); exit 1; }; }
26461else
26462 cat >conftest.$ac_ext <<_ACEOF
26463/* confdefs.h. */
26464_ACEOF
26465cat confdefs.h >>conftest.$ac_ext
26466cat >>conftest.$ac_ext <<_ACEOF
26467/* end confdefs.h. */
26468
26469 #undef HAVE_BOOLEAN
26470 #include <stdio.h>
26471 #include <jpeglib.h>
26472
26473
26474long longval () { return (long) (sizeof (boolean)); }
26475unsigned long ulongval () { return (long) (sizeof (boolean)); }
26476#include <stdio.h>
26477#include <stdlib.h>
26478int
26479main ()
26480{
26481
26482 FILE *f = fopen ("conftest.val", "w");
26483 if (! f)
26484 exit (1);
26485 if (((long) (sizeof (boolean))) < 0)
26486 {
26487 long i = longval ();
26488 if (i != ((long) (sizeof (boolean))))
26489 exit (1);
26490 fprintf (f, "%ld\n", i);
26491 }
26492 else
26493 {
26494 unsigned long i = ulongval ();
26495 if (i != ((long) (sizeof (boolean))))
26496 exit (1);
26497 fprintf (f, "%lu\n", i);
26498 }
26499 exit (ferror (f) || fclose (f) != 0);
26500
26501 ;
26502 return 0;
26503}
26504_ACEOF
26505rm -f conftest$ac_exeext
26506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26507 (eval $ac_link) 2>&5
26508 ac_status=$?
26509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512 (eval $ac_try) 2>&5
26513 ac_status=$?
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); }; }; then
26516 ac_cv_sizeof_boolean=`cat conftest.val`
26517else
26518 echo "$as_me: program exited with status $ac_status" >&5
26519echo "$as_me: failed program was:" >&5
26520sed 's/^/| /' conftest.$ac_ext >&5
26521
26522( exit $ac_status )
26523{ { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean), 77
26524See \`config.log' for more details." >&5
26525echo "$as_me: error: cannot compute sizeof (boolean), 77
26526See \`config.log' for more details." >&2;}
26527 { (exit 1); exit 1; }; }
26528fi
26529rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26530fi
26531fi
26532rm -f conftest.val
26533else
26534 ac_cv_sizeof_boolean=0
26535fi
26536fi
26537echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
26538echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6
26539cat >>confdefs.h <<_ACEOF
26540#define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
26541_ACEOF
26542
26543
26544 cat >>confdefs.h <<_ACEOF
26545#define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
26546_ACEOF
26547
26548
26549fi
26550
26551 fi
a848cd7e
SC
26552 fi
26553 fi
26554 fi
26555fi
26556
26557
26558TIFF_LINK=
26559TIFF_PREREQ_LINKS=-lm
26560if test "$wxUSE_LIBTIFF" != "no" ; then
26561 cat >>confdefs.h <<\_ACEOF
26562#define wxUSE_LIBTIFF 1
26563_ACEOF
26564
26565
26566 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26567 if test "$wxUSE_LIBJPEG" = "sys"; then
26568 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26569 fi
26570 if test "$wxUSE_ZLIB" = "sys"; then
26571 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26572 fi
26573 if test "${ac_cv_header_tiffio_h+set}" = set; then
26574 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26575echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26576if test "${ac_cv_header_tiffio_h+set}" = set; then
26577 echo $ECHO_N "(cached) $ECHO_C" >&6
26578fi
26579echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26580echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26581else
26582 # Is the header compilable?
26583echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26584echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26585cat >conftest.$ac_ext <<_ACEOF
26586/* confdefs.h. */
26587_ACEOF
26588cat confdefs.h >>conftest.$ac_ext
26589cat >>conftest.$ac_ext <<_ACEOF
26590/* end confdefs.h. */
26591$ac_includes_default
26592#include <tiffio.h>
26593_ACEOF
26594rm -f conftest.$ac_objext
26595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26596 (eval $ac_compile) 2>conftest.er1
a848cd7e 26597 ac_status=$?
ac1cb8d3
VS
26598 grep -v '^ *+' conftest.er1 >conftest.err
26599 rm -f conftest.er1
26600 cat conftest.err >&5
a848cd7e
SC
26601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602 (exit $ac_status); } &&
fd5199d6 26603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26605 (eval $ac_try) 2>&5
26606 ac_status=$?
26607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608 (exit $ac_status); }; } &&
26609 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26611 (eval $ac_try) 2>&5
26612 ac_status=$?
26613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614 (exit $ac_status); }; }; then
26615 ac_header_compiler=yes
26616else
26617 echo "$as_me: failed program was:" >&5
26618sed 's/^/| /' conftest.$ac_ext >&5
26619
26620ac_header_compiler=no
26621fi
ac1cb8d3 26622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26623echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26624echo "${ECHO_T}$ac_header_compiler" >&6
26625
26626# Is the header present?
26627echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26628echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26629cat >conftest.$ac_ext <<_ACEOF
26630/* confdefs.h. */
26631_ACEOF
26632cat confdefs.h >>conftest.$ac_ext
26633cat >>conftest.$ac_ext <<_ACEOF
26634/* end confdefs.h. */
26635#include <tiffio.h>
26636_ACEOF
26637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26639 ac_status=$?
26640 grep -v '^ *+' conftest.er1 >conftest.err
26641 rm -f conftest.er1
26642 cat conftest.err >&5
26643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); } >/dev/null; then
26645 if test -s conftest.err; then
fd5199d6
VZ
26646 ac_cpp_err=$ac_c_preproc_warn_flag
26647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26648 else
26649 ac_cpp_err=
26650 fi
26651else
26652 ac_cpp_err=yes
26653fi
26654if test -z "$ac_cpp_err"; then
26655 ac_header_preproc=yes
26656else
26657 echo "$as_me: failed program was:" >&5
26658sed 's/^/| /' conftest.$ac_ext >&5
26659
26660 ac_header_preproc=no
26661fi
26662rm -f conftest.err conftest.$ac_ext
26663echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26664echo "${ECHO_T}$ac_header_preproc" >&6
26665
26666# So? What about this header?
fd5199d6 26667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 26668 yes:no: )
a848cd7e
SC
26669 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26670echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26671 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26672echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26673 ac_header_preproc=yes
a848cd7e 26674 ;;
ac1cb8d3 26675 no:yes:* )
a848cd7e
SC
26676 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26677echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26678 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26679echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26680 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26681echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26682 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26683echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26684 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26685echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26686 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26687echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26688 (
26689 cat <<\_ASBOX
ac1cb8d3
VS
26690## ----------------------------------------- ##
26691## Report this to wx-dev@lists.wxwidgets.org ##
26692## ----------------------------------------- ##
a848cd7e
SC
26693_ASBOX
26694 ) |
26695 sed "s/^/$as_me: WARNING: /" >&2
26696 ;;
26697esac
26698echo "$as_me:$LINENO: checking for tiffio.h" >&5
26699echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26700if test "${ac_cv_header_tiffio_h+set}" = set; then
26701 echo $ECHO_N "(cached) $ECHO_C" >&6
26702else
26703 ac_cv_header_tiffio_h=$ac_header_preproc
26704fi
26705echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26706echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26707
26708fi
26709if test $ac_cv_header_tiffio_h = yes; then
26710
26711 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26712echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26713if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26714 echo $ECHO_N "(cached) $ECHO_C" >&6
26715else
26716 ac_check_lib_save_LIBS=$LIBS
26717LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26718cat >conftest.$ac_ext <<_ACEOF
26719/* confdefs.h. */
26720_ACEOF
26721cat confdefs.h >>conftest.$ac_ext
26722cat >>conftest.$ac_ext <<_ACEOF
26723/* end confdefs.h. */
26724
26725/* Override any gcc2 internal prototype to avoid an error. */
26726#ifdef __cplusplus
26727extern "C"
26728#endif
26729/* We use char because int might match the return type of a gcc2
26730 builtin and then its argument prototype would still apply. */
26731char TIFFError ();
26732int
26733main ()
26734{
26735TIFFError ();
26736 ;
26737 return 0;
26738}
26739_ACEOF
26740rm -f conftest.$ac_objext conftest$ac_exeext
26741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26742 (eval $ac_link) 2>conftest.er1
a848cd7e 26743 ac_status=$?
ac1cb8d3
VS
26744 grep -v '^ *+' conftest.er1 >conftest.err
26745 rm -f conftest.er1
26746 cat conftest.err >&5
a848cd7e
SC
26747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748 (exit $ac_status); } &&
fd5199d6 26749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26751 (eval $ac_try) 2>&5
26752 ac_status=$?
26753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754 (exit $ac_status); }; } &&
26755 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26757 (eval $ac_try) 2>&5
26758 ac_status=$?
26759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); }; }; then
26761 ac_cv_lib_tiff_TIFFError=yes
26762else
26763 echo "$as_me: failed program was:" >&5
26764sed 's/^/| /' conftest.$ac_ext >&5
26765
26766ac_cv_lib_tiff_TIFFError=no
26767fi
ac1cb8d3
VS
26768rm -f conftest.err conftest.$ac_objext \
26769 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26770LIBS=$ac_check_lib_save_LIBS
26771fi
26772echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26773echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26774if test $ac_cv_lib_tiff_TIFFError = yes; then
26775 TIFF_LINK=" -ltiff"
26776fi
26777
26778
26779
26780fi
26781
26782
26783
26784 if test "x$TIFF_LINK" = "x" ; then
26785 if test "$wxUSE_LIBTIFF" = "sys" ; then
26786 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26787echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26788 { (exit 1); exit 1; }; }
26789 else
26790 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26791echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26792 wxUSE_LIBTIFF=builtin
26793 fi
26794 else
26795 wxUSE_LIBTIFF=sys
26796 fi
26797 fi
26798fi
26799
26800
47a7e797
MW
26801if test "$wxUSE_WCHAR_T" != "yes"; then
26802 if test "$wxUSE_EXPAT" != "no"; then
26803 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26804echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26805 wxUSE_EXPAT=no
26806 fi
26807 if test "$wxUSE_XML" != "no"; then
26808 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26809echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26810 wxUSE_XML=no
26811 fi
26812fi
26813
a848cd7e
SC
26814if test "$wxUSE_EXPAT" != "no"; then
26815 wxUSE_XML=yes
26816 cat >>confdefs.h <<\_ACEOF
26817#define wxUSE_EXPAT 1
26818_ACEOF
26819
26820 cat >>confdefs.h <<\_ACEOF
26821#define wxUSE_XML 1
26822_ACEOF
26823
26824
26825 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26826 if test "${ac_cv_header_expat_h+set}" = set; then
26827 echo "$as_me:$LINENO: checking for expat.h" >&5
26828echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26829if test "${ac_cv_header_expat_h+set}" = set; then
26830 echo $ECHO_N "(cached) $ECHO_C" >&6
26831fi
26832echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26833echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26834else
26835 # Is the header compilable?
26836echo "$as_me:$LINENO: checking expat.h usability" >&5
26837echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26838cat >conftest.$ac_ext <<_ACEOF
26839/* confdefs.h. */
26840_ACEOF
26841cat confdefs.h >>conftest.$ac_ext
26842cat >>conftest.$ac_ext <<_ACEOF
26843/* end confdefs.h. */
26844$ac_includes_default
26845#include <expat.h>
26846_ACEOF
26847rm -f conftest.$ac_objext
26848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26849 (eval $ac_compile) 2>conftest.er1
a848cd7e 26850 ac_status=$?
ac1cb8d3
VS
26851 grep -v '^ *+' conftest.er1 >conftest.err
26852 rm -f conftest.er1
26853 cat conftest.err >&5
a848cd7e
SC
26854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); } &&
fd5199d6 26856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26858 (eval $ac_try) 2>&5
26859 ac_status=$?
26860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26861 (exit $ac_status); }; } &&
26862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26864 (eval $ac_try) 2>&5
26865 ac_status=$?
26866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867 (exit $ac_status); }; }; then
26868 ac_header_compiler=yes
26869else
26870 echo "$as_me: failed program was:" >&5
26871sed 's/^/| /' conftest.$ac_ext >&5
26872
26873ac_header_compiler=no
26874fi
ac1cb8d3 26875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26876echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26877echo "${ECHO_T}$ac_header_compiler" >&6
26878
26879# Is the header present?
26880echo "$as_me:$LINENO: checking expat.h presence" >&5
26881echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26882cat >conftest.$ac_ext <<_ACEOF
26883/* confdefs.h. */
26884_ACEOF
26885cat confdefs.h >>conftest.$ac_ext
26886cat >>conftest.$ac_ext <<_ACEOF
26887/* end confdefs.h. */
26888#include <expat.h>
26889_ACEOF
26890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26892 ac_status=$?
26893 grep -v '^ *+' conftest.er1 >conftest.err
26894 rm -f conftest.er1
26895 cat conftest.err >&5
26896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897 (exit $ac_status); } >/dev/null; then
26898 if test -s conftest.err; then
fd5199d6
VZ
26899 ac_cpp_err=$ac_c_preproc_warn_flag
26900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26901 else
26902 ac_cpp_err=
26903 fi
26904else
26905 ac_cpp_err=yes
26906fi
26907if test -z "$ac_cpp_err"; then
26908 ac_header_preproc=yes
26909else
26910 echo "$as_me: failed program was:" >&5
26911sed 's/^/| /' conftest.$ac_ext >&5
26912
26913 ac_header_preproc=no
26914fi
26915rm -f conftest.err conftest.$ac_ext
26916echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26917echo "${ECHO_T}$ac_header_preproc" >&6
26918
26919# So? What about this header?
fd5199d6 26920case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 26921 yes:no: )
a848cd7e
SC
26922 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26923echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26924 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26925echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26926 ac_header_preproc=yes
a848cd7e 26927 ;;
ac1cb8d3 26928 no:yes:* )
a848cd7e
SC
26929 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26930echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26931 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26932echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26933 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26934echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26935 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26936echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26937 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26938echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26939 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26940echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26941 (
26942 cat <<\_ASBOX
ac1cb8d3
VS
26943## ----------------------------------------- ##
26944## Report this to wx-dev@lists.wxwidgets.org ##
26945## ----------------------------------------- ##
a848cd7e
SC
26946_ASBOX
26947 ) |
26948 sed "s/^/$as_me: WARNING: /" >&2
26949 ;;
26950esac
26951echo "$as_me:$LINENO: checking for expat.h" >&5
26952echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26953if test "${ac_cv_header_expat_h+set}" = set; then
26954 echo $ECHO_N "(cached) $ECHO_C" >&6
26955else
26956 ac_cv_header_expat_h=$ac_header_preproc
26957fi
26958echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26959echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26960
26961fi
26962if test $ac_cv_header_expat_h = yes; then
26963 found_expat_h=1
26964fi
26965
26966
26967 if test "x$found_expat_h" = "x1"; then
26968 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26969echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26970if test "${wx_cv_expat_is_not_broken+set}" = set; then
26971 echo $ECHO_N "(cached) $ECHO_C" >&6
26972else
26973
9b8888f9
VZ
26974 ac_ext=cc
26975ac_cpp='$CXXCPP $CPPFLAGS'
26976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26979
a848cd7e
SC
26980 cat >conftest.$ac_ext <<_ACEOF
26981/* confdefs.h. */
26982_ACEOF
26983cat confdefs.h >>conftest.$ac_ext
26984cat >>conftest.$ac_ext <<_ACEOF
26985/* end confdefs.h. */
26986#include <expat.h>
26987int
26988main ()
26989{
26990
26991 ;
26992 return 0;
26993}
26994_ACEOF
26995rm -f conftest.$ac_objext
26996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26997 (eval $ac_compile) 2>conftest.er1
a848cd7e 26998 ac_status=$?
ac1cb8d3
VS
26999 grep -v '^ *+' conftest.er1 >conftest.err
27000 rm -f conftest.er1
27001 cat conftest.err >&5
a848cd7e
SC
27002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003 (exit $ac_status); } &&
9b8888f9 27004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27006 (eval $ac_try) 2>&5
27007 ac_status=$?
27008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); }; } &&
27010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27012 (eval $ac_try) 2>&5
27013 ac_status=$?
27014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27015 (exit $ac_status); }; }; then
27016 wx_cv_expat_is_not_broken=yes
27017else
27018 echo "$as_me: failed program was:" >&5
27019sed 's/^/| /' conftest.$ac_ext >&5
27020
27021wx_cv_expat_is_not_broken=no
27022
27023fi
ac1cb8d3 27024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
27025 ac_ext=c
27026ac_cpp='$CPP $CPPFLAGS'
27027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27029ac_compiler_gnu=$ac_cv_c_compiler_gnu
27030
a848cd7e
SC
27031
27032
27033fi
27034echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27035echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
27036 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27037 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27038echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
27039if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27040 echo $ECHO_N "(cached) $ECHO_C" >&6
27041else
27042 ac_check_lib_save_LIBS=$LIBS
27043LIBS="-lexpat $LIBS"
27044cat >conftest.$ac_ext <<_ACEOF
27045/* confdefs.h. */
27046_ACEOF
27047cat confdefs.h >>conftest.$ac_ext
27048cat >>conftest.$ac_ext <<_ACEOF
27049/* end confdefs.h. */
27050
27051/* Override any gcc2 internal prototype to avoid an error. */
27052#ifdef __cplusplus
27053extern "C"
27054#endif
27055/* We use char because int might match the return type of a gcc2
27056 builtin and then its argument prototype would still apply. */
27057char XML_ParserCreate ();
27058int
27059main ()
27060{
27061XML_ParserCreate ();
27062 ;
27063 return 0;
27064}
27065_ACEOF
27066rm -f conftest.$ac_objext conftest$ac_exeext
27067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27068 (eval $ac_link) 2>conftest.er1
a848cd7e 27069 ac_status=$?
ac1cb8d3
VS
27070 grep -v '^ *+' conftest.er1 >conftest.err
27071 rm -f conftest.er1
27072 cat conftest.err >&5
a848cd7e
SC
27073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074 (exit $ac_status); } &&
fd5199d6 27075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27077 (eval $ac_try) 2>&5
27078 ac_status=$?
27079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080 (exit $ac_status); }; } &&
27081 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27083 (eval $ac_try) 2>&5
27084 ac_status=$?
27085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 (exit $ac_status); }; }; then
27087 ac_cv_lib_expat_XML_ParserCreate=yes
27088else
27089 echo "$as_me: failed program was:" >&5
27090sed 's/^/| /' conftest.$ac_ext >&5
27091
27092ac_cv_lib_expat_XML_ParserCreate=no
27093fi
ac1cb8d3
VS
27094rm -f conftest.err conftest.$ac_objext \
27095 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27096LIBS=$ac_check_lib_save_LIBS
27097fi
27098echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27099echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
27100if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27101 EXPAT_LINK=" -lexpat"
27102fi
27103
27104 fi
27105 fi
27106 if test "x$EXPAT_LINK" = "x" ; then
27107 if test "$wxUSE_EXPAT" = "sys" ; then
27108 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27109echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27110 { (exit 1); exit 1; }; }
27111 else
27112 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27113echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27114 wxUSE_EXPAT=builtin
27115 fi
27116 else
27117 wxUSE_EXPAT=sys
27118 fi
27119 fi
27120 if test "$wxUSE_EXPAT" = "builtin" ; then
27121
27122
27123subdirs="$subdirs src/expat"
27124
27125 fi
27126fi
27127
27128
27129
27130if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
27131 if test "${ac_cv_header_mspack_h+set}" = set; then
27132 echo "$as_me:$LINENO: checking for mspack.h" >&5
27133echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
27134if test "${ac_cv_header_mspack_h+set}" = set; then
27135 echo $ECHO_N "(cached) $ECHO_C" >&6
27136fi
27137echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27138echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
27139else
27140 # Is the header compilable?
27141echo "$as_me:$LINENO: checking mspack.h usability" >&5
27142echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
27143cat >conftest.$ac_ext <<_ACEOF
27144/* confdefs.h. */
27145_ACEOF
27146cat confdefs.h >>conftest.$ac_ext
27147cat >>conftest.$ac_ext <<_ACEOF
27148/* end confdefs.h. */
27149$ac_includes_default
27150#include <mspack.h>
27151_ACEOF
27152rm -f conftest.$ac_objext
27153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27154 (eval $ac_compile) 2>conftest.er1
a848cd7e 27155 ac_status=$?
ac1cb8d3
VS
27156 grep -v '^ *+' conftest.er1 >conftest.err
27157 rm -f conftest.er1
27158 cat conftest.err >&5
a848cd7e
SC
27159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 (exit $ac_status); } &&
fd5199d6 27161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27163 (eval $ac_try) 2>&5
27164 ac_status=$?
27165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166 (exit $ac_status); }; } &&
27167 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27169 (eval $ac_try) 2>&5
27170 ac_status=$?
27171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172 (exit $ac_status); }; }; then
27173 ac_header_compiler=yes
27174else
27175 echo "$as_me: failed program was:" >&5
27176sed 's/^/| /' conftest.$ac_ext >&5
27177
27178ac_header_compiler=no
27179fi
ac1cb8d3 27180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27182echo "${ECHO_T}$ac_header_compiler" >&6
27183
27184# Is the header present?
27185echo "$as_me:$LINENO: checking mspack.h presence" >&5
27186echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
27187cat >conftest.$ac_ext <<_ACEOF
27188/* confdefs.h. */
27189_ACEOF
27190cat confdefs.h >>conftest.$ac_ext
27191cat >>conftest.$ac_ext <<_ACEOF
27192/* end confdefs.h. */
27193#include <mspack.h>
27194_ACEOF
27195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27197 ac_status=$?
27198 grep -v '^ *+' conftest.er1 >conftest.err
27199 rm -f conftest.er1
27200 cat conftest.err >&5
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); } >/dev/null; then
27203 if test -s conftest.err; then
fd5199d6
VZ
27204 ac_cpp_err=$ac_c_preproc_warn_flag
27205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27206 else
27207 ac_cpp_err=
27208 fi
27209else
27210 ac_cpp_err=yes
27211fi
27212if test -z "$ac_cpp_err"; then
27213 ac_header_preproc=yes
27214else
27215 echo "$as_me: failed program was:" >&5
27216sed 's/^/| /' conftest.$ac_ext >&5
27217
27218 ac_header_preproc=no
27219fi
27220rm -f conftest.err conftest.$ac_ext
27221echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27222echo "${ECHO_T}$ac_header_preproc" >&6
27223
27224# So? What about this header?
fd5199d6 27225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 27226 yes:no: )
a848cd7e
SC
27227 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
27228echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27229 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
27230echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
27231 ac_header_preproc=yes
a848cd7e 27232 ;;
ac1cb8d3 27233 no:yes:* )
a848cd7e
SC
27234 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
27235echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27236 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
27237echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
27238 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
27239echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
27240 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
27241echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27242 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
27243echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27244 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
27245echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27246 (
27247 cat <<\_ASBOX
ac1cb8d3
VS
27248## ----------------------------------------- ##
27249## Report this to wx-dev@lists.wxwidgets.org ##
27250## ----------------------------------------- ##
a848cd7e
SC
27251_ASBOX
27252 ) |
27253 sed "s/^/$as_me: WARNING: /" >&2
27254 ;;
27255esac
27256echo "$as_me:$LINENO: checking for mspack.h" >&5
27257echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
27258if test "${ac_cv_header_mspack_h+set}" = set; then
27259 echo $ECHO_N "(cached) $ECHO_C" >&6
27260else
27261 ac_cv_header_mspack_h=$ac_header_preproc
27262fi
27263echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27264echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
27265
27266fi
27267if test $ac_cv_header_mspack_h = yes; then
27268 found_mspack_h=1
27269fi
27270
27271
27272 if test "x$found_mspack_h" = "x1"; then
27273 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27274echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
27275if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27276 echo $ECHO_N "(cached) $ECHO_C" >&6
27277else
27278 ac_check_lib_save_LIBS=$LIBS
27279LIBS="-lmspack $LIBS"
27280cat >conftest.$ac_ext <<_ACEOF
27281/* confdefs.h. */
27282_ACEOF
27283cat confdefs.h >>conftest.$ac_ext
27284cat >>conftest.$ac_ext <<_ACEOF
27285/* end confdefs.h. */
27286
27287/* Override any gcc2 internal prototype to avoid an error. */
27288#ifdef __cplusplus
27289extern "C"
27290#endif
27291/* We use char because int might match the return type of a gcc2
27292 builtin and then its argument prototype would still apply. */
27293char mspack_create_chm_decompressor ();
27294int
27295main ()
27296{
27297mspack_create_chm_decompressor ();
27298 ;
27299 return 0;
27300}
27301_ACEOF
27302rm -f conftest.$ac_objext conftest$ac_exeext
27303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27304 (eval $ac_link) 2>conftest.er1
a848cd7e 27305 ac_status=$?
ac1cb8d3
VS
27306 grep -v '^ *+' conftest.er1 >conftest.err
27307 rm -f conftest.er1
27308 cat conftest.err >&5
a848cd7e
SC
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); } &&
fd5199d6 27311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27313 (eval $ac_try) 2>&5
27314 ac_status=$?
27315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); }; } &&
27317 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27319 (eval $ac_try) 2>&5
27320 ac_status=$?
27321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322 (exit $ac_status); }; }; then
27323 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27324else
27325 echo "$as_me: failed program was:" >&5
27326sed 's/^/| /' conftest.$ac_ext >&5
27327
27328ac_cv_lib_mspack_mspack_create_chm_decompressor=no
27329fi
ac1cb8d3
VS
27330rm -f conftest.err conftest.$ac_objext \
27331 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27332LIBS=$ac_check_lib_save_LIBS
27333fi
27334echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
27335echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
27336if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
27337 MSPACK_LINK=" -lmspack"
27338fi
27339
27340 fi
27341 if test "x$MSPACK_LINK" = "x" ; then
27342 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
27343 fi
27344fi
27345
27346if test "$wxUSE_LIBMSPACK" != "no"; then
27347 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
27348#define wxUSE_LIBMSPACK 1
27349_ACEOF
27350
a848cd7e
SC
27351fi
27352
27353
27354
27355AFMINSTALL=
27356WIN32INSTALL=
27357
27358TOOLKIT=
27359TOOLKIT_INCLUDE=
27360WIDGET_SET=
27361
27362if test "$USE_WIN32" = 1 ; then
27363
27364for ac_header in w32api.h
27365do
27366as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27367if eval "test \"\${$as_ac_Header+set}\" = set"; then
27368 echo "$as_me:$LINENO: checking for $ac_header" >&5
27369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27370if eval "test \"\${$as_ac_Header+set}\" = set"; then
27371 echo $ECHO_N "(cached) $ECHO_C" >&6
27372fi
27373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27374echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27375else
27376 # Is the header compilable?
27377echo "$as_me:$LINENO: checking $ac_header usability" >&5
27378echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27379cat >conftest.$ac_ext <<_ACEOF
27380/* confdefs.h. */
27381_ACEOF
27382cat confdefs.h >>conftest.$ac_ext
27383cat >>conftest.$ac_ext <<_ACEOF
27384/* end confdefs.h. */
27385$ac_includes_default
27386#include <$ac_header>
27387_ACEOF
27388rm -f conftest.$ac_objext
27389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27390 (eval $ac_compile) 2>conftest.er1
a848cd7e 27391 ac_status=$?
ac1cb8d3
VS
27392 grep -v '^ *+' conftest.er1 >conftest.err
27393 rm -f conftest.er1
27394 cat conftest.err >&5
a848cd7e
SC
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); } &&
fd5199d6 27397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399 (eval $ac_try) 2>&5
27400 ac_status=$?
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; } &&
27403 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27406 ac_status=$?
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; }; then
27409 ac_header_compiler=yes
27410else
27411 echo "$as_me: failed program was:" >&5
27412sed 's/^/| /' conftest.$ac_ext >&5
27413
27414ac_header_compiler=no
27415fi
ac1cb8d3 27416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27417echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27418echo "${ECHO_T}$ac_header_compiler" >&6
27419
27420# Is the header present?
27421echo "$as_me:$LINENO: checking $ac_header presence" >&5
27422echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27423cat >conftest.$ac_ext <<_ACEOF
27424/* confdefs.h. */
27425_ACEOF
27426cat confdefs.h >>conftest.$ac_ext
27427cat >>conftest.$ac_ext <<_ACEOF
27428/* end confdefs.h. */
27429#include <$ac_header>
27430_ACEOF
27431if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27433 ac_status=$?
27434 grep -v '^ *+' conftest.er1 >conftest.err
27435 rm -f conftest.er1
27436 cat conftest.err >&5
27437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438 (exit $ac_status); } >/dev/null; then
27439 if test -s conftest.err; then
fd5199d6
VZ
27440 ac_cpp_err=$ac_c_preproc_warn_flag
27441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27442 else
27443 ac_cpp_err=
27444 fi
27445else
27446 ac_cpp_err=yes
27447fi
27448if test -z "$ac_cpp_err"; then
27449 ac_header_preproc=yes
27450else
27451 echo "$as_me: failed program was:" >&5
27452sed 's/^/| /' conftest.$ac_ext >&5
27453
27454 ac_header_preproc=no
27455fi
27456rm -f conftest.err conftest.$ac_ext
27457echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27458echo "${ECHO_T}$ac_header_preproc" >&6
27459
27460# So? What about this header?
fd5199d6 27461case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 27462 yes:no: )
a848cd7e
SC
27463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27464echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27466echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27467 ac_header_preproc=yes
a848cd7e 27468 ;;
ac1cb8d3 27469 no:yes:* )
a848cd7e
SC
27470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27471echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27473echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27475echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27477echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27481echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27482 (
27483 cat <<\_ASBOX
ac1cb8d3
VS
27484## ----------------------------------------- ##
27485## Report this to wx-dev@lists.wxwidgets.org ##
27486## ----------------------------------------- ##
a848cd7e
SC
27487_ASBOX
27488 ) |
27489 sed "s/^/$as_me: WARNING: /" >&2
27490 ;;
27491esac
27492echo "$as_me:$LINENO: checking for $ac_header" >&5
27493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27494if eval "test \"\${$as_ac_Header+set}\" = set"; then
27495 echo $ECHO_N "(cached) $ECHO_C" >&6
27496else
ac1cb8d3 27497 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
27498fi
27499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27500echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27501
27502fi
27503if test `eval echo '${'$as_ac_Header'}'` = yes; then
27504 cat >>confdefs.h <<_ACEOF
27505#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27506_ACEOF
27507
27508fi
27509
27510done
27511
27512 if test "${ac_cv_header_windows_h+set}" = set; then
27513 echo "$as_me:$LINENO: checking for windows.h" >&5
27514echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27515if test "${ac_cv_header_windows_h+set}" = set; then
27516 echo $ECHO_N "(cached) $ECHO_C" >&6
27517fi
27518echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27519echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27520else
27521 # Is the header compilable?
27522echo "$as_me:$LINENO: checking windows.h usability" >&5
27523echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
27524cat >conftest.$ac_ext <<_ACEOF
27525/* confdefs.h. */
27526_ACEOF
27527cat confdefs.h >>conftest.$ac_ext
27528cat >>conftest.$ac_ext <<_ACEOF
27529/* end confdefs.h. */
27530$ac_includes_default
27531#include <windows.h>
27532_ACEOF
27533rm -f conftest.$ac_objext
27534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27535 (eval $ac_compile) 2>conftest.er1
a848cd7e 27536 ac_status=$?
ac1cb8d3
VS
27537 grep -v '^ *+' conftest.er1 >conftest.err
27538 rm -f conftest.er1
27539 cat conftest.err >&5
a848cd7e
SC
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); } &&
fd5199d6 27542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27544 (eval $ac_try) 2>&5
27545 ac_status=$?
27546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27547 (exit $ac_status); }; } &&
27548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27550 (eval $ac_try) 2>&5
27551 ac_status=$?
27552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); }; }; then
27554 ac_header_compiler=yes
27555else
27556 echo "$as_me: failed program was:" >&5
27557sed 's/^/| /' conftest.$ac_ext >&5
27558
27559ac_header_compiler=no
27560fi
ac1cb8d3 27561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27562echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27563echo "${ECHO_T}$ac_header_compiler" >&6
27564
27565# Is the header present?
27566echo "$as_me:$LINENO: checking windows.h presence" >&5
27567echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27568cat >conftest.$ac_ext <<_ACEOF
27569/* confdefs.h. */
27570_ACEOF
27571cat confdefs.h >>conftest.$ac_ext
27572cat >>conftest.$ac_ext <<_ACEOF
27573/* end confdefs.h. */
27574#include <windows.h>
27575_ACEOF
27576if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27578 ac_status=$?
27579 grep -v '^ *+' conftest.er1 >conftest.err
27580 rm -f conftest.er1
27581 cat conftest.err >&5
27582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583 (exit $ac_status); } >/dev/null; then
27584 if test -s conftest.err; then
fd5199d6
VZ
27585 ac_cpp_err=$ac_c_preproc_warn_flag
27586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27587 else
27588 ac_cpp_err=
27589 fi
27590else
27591 ac_cpp_err=yes
27592fi
27593if test -z "$ac_cpp_err"; then
27594 ac_header_preproc=yes
27595else
27596 echo "$as_me: failed program was:" >&5
27597sed 's/^/| /' conftest.$ac_ext >&5
27598
27599 ac_header_preproc=no
27600fi
27601rm -f conftest.err conftest.$ac_ext
27602echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27603echo "${ECHO_T}$ac_header_preproc" >&6
27604
27605# So? What about this header?
fd5199d6 27606case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 27607 yes:no: )
a848cd7e
SC
27608 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27609echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27610 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27611echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27612 ac_header_preproc=yes
a848cd7e 27613 ;;
ac1cb8d3 27614 no:yes:* )
a848cd7e
SC
27615 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27616echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27617 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
27618echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
27619 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27620echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27621 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
27622echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27623 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27624echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27625 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27626echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27627 (
27628 cat <<\_ASBOX
ac1cb8d3
VS
27629## ----------------------------------------- ##
27630## Report this to wx-dev@lists.wxwidgets.org ##
27631## ----------------------------------------- ##
a848cd7e
SC
27632_ASBOX
27633 ) |
27634 sed "s/^/$as_me: WARNING: /" >&2
27635 ;;
27636esac
27637echo "$as_me:$LINENO: checking for windows.h" >&5
27638echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27639if test "${ac_cv_header_windows_h+set}" = set; then
27640 echo $ECHO_N "(cached) $ECHO_C" >&6
27641else
27642 ac_cv_header_windows_h=$ac_header_preproc
27643fi
27644echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27645echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27646
27647fi
27648if test $ac_cv_header_windows_h = yes; then
27649 :
27650else
27651
27652 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27653echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27654 { (exit 1); exit 1; }; }
27655
27656fi
27657
27658
27659
27660 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27661
27662 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27663 LIBS="$LIBS -loleacc"
27664 fi
27665
27666 case "${host}" in
27667 *-*-cygwin* )
27668 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
27669 esac
27670
27671 if test "$wxUSE_ODBC" = "sys" ; then
27672 wxUSE_ODBC = "yes"
27673 fi
27674 if test "$wxUSE_ODBC" = "yes" ; then
27675 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27676 cat >>confdefs.h <<\_ACEOF
27677#define wxUSE_ODBC 1
27678_ACEOF
27679
27680 fi
27681
370d2fd7 27682 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27683 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27684
004ee6da 27685 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27686
a848cd7e 27687 WIN32INSTALL=win32install
5f41d1bf 27688
dcfd4ac4
MW
27689
27690for ac_header in pbt.h
27691do
27692as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27693if eval "test \"\${$as_ac_Header+set}\" = set"; then
27694 echo "$as_me:$LINENO: checking for $ac_header" >&5
27695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27696if eval "test \"\${$as_ac_Header+set}\" = set"; then
27697 echo $ECHO_N "(cached) $ECHO_C" >&6
27698fi
27699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27701else
27702 # Is the header compilable?
27703echo "$as_me:$LINENO: checking $ac_header usability" >&5
27704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27705cat >conftest.$ac_ext <<_ACEOF
27706/* confdefs.h. */
27707_ACEOF
27708cat confdefs.h >>conftest.$ac_ext
27709cat >>conftest.$ac_ext <<_ACEOF
27710/* end confdefs.h. */
27711$ac_includes_default
27712#include <$ac_header>
27713_ACEOF
27714rm -f conftest.$ac_objext
27715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27716 (eval $ac_compile) 2>conftest.er1
27717 ac_status=$?
27718 grep -v '^ *+' conftest.er1 >conftest.err
27719 rm -f conftest.er1
27720 cat conftest.err >&5
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); } &&
fd5199d6 27723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
dcfd4ac4
MW
27724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27725 (eval $ac_try) 2>&5
27726 ac_status=$?
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); }; } &&
27729 { ac_try='test -s conftest.$ac_objext'
27730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27731 (eval $ac_try) 2>&5
27732 ac_status=$?
27733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734 (exit $ac_status); }; }; then
27735 ac_header_compiler=yes
27736else
27737 echo "$as_me: failed program was:" >&5
27738sed 's/^/| /' conftest.$ac_ext >&5
27739
27740ac_header_compiler=no
27741fi
27742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27743echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27744echo "${ECHO_T}$ac_header_compiler" >&6
27745
27746# Is the header present?
27747echo "$as_me:$LINENO: checking $ac_header presence" >&5
27748echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27749cat >conftest.$ac_ext <<_ACEOF
27750/* confdefs.h. */
27751_ACEOF
27752cat confdefs.h >>conftest.$ac_ext
27753cat >>conftest.$ac_ext <<_ACEOF
27754/* end confdefs.h. */
27755#include <$ac_header>
27756_ACEOF
27757if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27759 ac_status=$?
27760 grep -v '^ *+' conftest.er1 >conftest.err
27761 rm -f conftest.er1
27762 cat conftest.err >&5
27763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764 (exit $ac_status); } >/dev/null; then
27765 if test -s conftest.err; then
fd5199d6
VZ
27766 ac_cpp_err=$ac_c_preproc_warn_flag
27767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
dcfd4ac4
MW
27768 else
27769 ac_cpp_err=
27770 fi
27771else
27772 ac_cpp_err=yes
27773fi
27774if test -z "$ac_cpp_err"; then
27775 ac_header_preproc=yes
27776else
27777 echo "$as_me: failed program was:" >&5
27778sed 's/^/| /' conftest.$ac_ext >&5
27779
27780 ac_header_preproc=no
27781fi
27782rm -f conftest.err conftest.$ac_ext
27783echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27784echo "${ECHO_T}$ac_header_preproc" >&6
27785
27786# So? What about this header?
fd5199d6 27787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
dcfd4ac4
MW
27788 yes:no: )
27789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27790echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27792echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27793 ac_header_preproc=yes
27794 ;;
27795 no:yes:* )
27796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27797echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27799echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27801echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27803echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27805echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27807echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27808 (
27809 cat <<\_ASBOX
27810## ----------------------------------------- ##
27811## Report this to wx-dev@lists.wxwidgets.org ##
27812## ----------------------------------------- ##
27813_ASBOX
27814 ) |
27815 sed "s/^/$as_me: WARNING: /" >&2
27816 ;;
27817esac
27818echo "$as_me:$LINENO: checking for $ac_header" >&5
27819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27820if eval "test \"\${$as_ac_Header+set}\" = set"; then
27821 echo $ECHO_N "(cached) $ECHO_C" >&6
27822else
27823 eval "$as_ac_Header=\$ac_header_preproc"
27824fi
27825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27826echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27827
27828fi
27829if test `eval echo '${'$as_ac_Header'}'` = yes; then
27830 cat >>confdefs.h <<_ACEOF
27831#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27832_ACEOF
27833
27834else
27835 cat >>confdefs.h <<\_ACEOF
27836#define NEED_PBT_H 1
27837_ACEOF
27838
27839fi
27840
27841done
27842
a848cd7e
SC
27843fi
27844
27845if test "$wxUSE_GUI" = "yes"; then
27846 USE_GUI=1
27847
27848 GUI_TK_LIBRARY=
27849
27850 WXGTK12=
27851 WXGTK127=
27852 WXGTK20=
27853 WXGPE=
27854
207bc66c
RN
27855 if test "$wxUSE_COCOA" = 1 ; then
27856 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27857 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27858echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27859 wxUSE_PRINTING_ARCHITECTURE=no
27860 fi
27861 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27862 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27863echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27864 wxUSE_DRAG_AND_DROP=no
27865 fi
27866 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27867 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27868echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27869 wxUSE_DRAGIMAGE=no
27870 fi
27871 fi
27872
a848cd7e
SC
27873 if test "$wxUSE_MSW" = 1 ; then
27874 TOOLKIT=MSW
27875 GUIDIST=MSW_DIST
27876
ceec2216 27877 case "${host}" in
a848cd7e
SC
27878 *-*-mingw32* )
27879 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27880 esac
27881 fi
27882
27883 if test "$wxUSE_GTK" = 1; then
fd5199d6 27884 echo "$as_me:$LINENO: checking for GTK+ version" >&5
a848cd7e
SC
27885echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27886
27887 gtk_version_cached=1
27888 if test "${wx_cv_lib_gtk+set}" = set; then
27889 echo $ECHO_N "(cached) $ECHO_C" >&6
27890else
27891
27892 gtk_version_cached=0
27893 echo "$as_me:$LINENO: result: " >&5
27894echo "${ECHO_T}" >&6
27895
27896 GTK_MODULES=
27897 if test "$wxUSE_THREADS" = "yes"; then
27898 GTK_MODULES=gthread
27899 fi
27900
f597b41c 27901 wx_cv_lib_gtk=
5001df0d
MW
27902 if test "x$wxGTK_VERSION" != "x1"
27903 then
27904 case "${host}" in
27905 *-*-solaris2* )
27906 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27907 enable_gtktest=no
5001df0d
MW
27908 fi
27909 esac
27910
a848cd7e
SC
27911 # Check whether --enable-gtktest or --disable-gtktest was given.
27912if test "${enable_gtktest+set}" = set; then
27913 enableval="$enable_gtktest"
27914
27915else
27916 enable_gtktest=yes
27917fi;
27918
27919 pkg_config_args=gtk+-2.0
27920 for module in . $GTK_MODULES
27921 do
27922 case "$module" in
27923 gthread)
27924 pkg_config_args="$pkg_config_args gthread-2.0"
27925 ;;
27926 esac
27927 done
27928
27929 no_gtk=""
27930
27931 # Extract the first word of "pkg-config", so it can be a program name with args.
27932set dummy pkg-config; ac_word=$2
27933echo "$as_me:$LINENO: checking for $ac_word" >&5
27934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27935if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27936 echo $ECHO_N "(cached) $ECHO_C" >&6
27937else
27938 case $PKG_CONFIG in
27939 [\\/]* | ?:[\\/]*)
27940 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27941 ;;
27942 *)
27943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27944for as_dir in $PATH
27945do
27946 IFS=$as_save_IFS
27947 test -z "$as_dir" && as_dir=.
27948 for ac_exec_ext in '' $ac_executable_extensions; do
27949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27950 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27952 break 2
27953 fi
27954done
27955done
27956
27957 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27958 ;;
27959esac
27960fi
27961PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27962
27963if test -n "$PKG_CONFIG"; then
27964 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27965echo "${ECHO_T}$PKG_CONFIG" >&6
27966else
27967 echo "$as_me:$LINENO: result: no" >&5
27968echo "${ECHO_T}no" >&6
27969fi
27970
27971
27972 if test x$PKG_CONFIG != xno ; then
27973 if pkg-config --atleast-pkgconfig-version 0.7 ; then
27974 :
27975 else
c2218763 27976 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
27977 no_gtk=yes
27978 PKG_CONFIG=no
27979 fi
27980 else
27981 no_gtk=yes
27982 fi
27983
27984 min_gtk_version=2.0.0
27985 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27986echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27987
27988 if test x$PKG_CONFIG != xno ; then
27989 ## don't try to run the test against uninstalled libtool libs
27990 if $PKG_CONFIG --uninstalled $pkg_config_args; then
27991 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27992 enable_gtktest=no
27993 fi
27994
27995 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27996 :
27997 else
27998 no_gtk=yes
27999 fi
28000 fi
28001
28002 if test x"$no_gtk" = x ; then
28003 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28004 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28005 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28006 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28007 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28008 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28009 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28010 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28011 if test "x$enable_gtktest" = "xyes" ; then
28012 ac_save_CFLAGS="$CFLAGS"
28013 ac_save_LIBS="$LIBS"
28014 CFLAGS="$CFLAGS $GTK_CFLAGS"
28015 LIBS="$GTK_LIBS $LIBS"
28016 rm -f conf.gtktest
28017 if test "$cross_compiling" = yes; then
28018 echo $ac_n "cross compiling; assumed OK... $ac_c"
28019else
28020 cat >conftest.$ac_ext <<_ACEOF
28021/* confdefs.h. */
28022_ACEOF
28023cat confdefs.h >>conftest.$ac_ext
28024cat >>conftest.$ac_ext <<_ACEOF
28025/* end confdefs.h. */
28026
28027#include <gtk/gtk.h>
28028#include <stdio.h>
28029#include <stdlib.h>
28030
28031int
28032main ()
28033{
28034 int major, minor, micro;
28035 char *tmp_version;
28036
28037 system ("touch conf.gtktest");
28038
28039 /* HP/UX 9 (%@#!) writes to sscanf strings */
28040 tmp_version = g_strdup("$min_gtk_version");
28041 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28042 printf("%s, bad version string\n", "$min_gtk_version");
28043 exit(1);
28044 }
28045
28046 if ((gtk_major_version != $gtk_config_major_version) ||
28047 (gtk_minor_version != $gtk_config_minor_version) ||
28048 (gtk_micro_version != $gtk_config_micro_version))
28049 {
28050 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28051 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28052 gtk_major_version, gtk_minor_version, gtk_micro_version);
28053 printf ("*** was found! If pkg-config was correct, then it is best\n");
28054 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28055 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28056 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28057 printf("*** required on your system.\n");
28058 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28059 printf("*** to point to the correct configuration files\n");
28060 }
28061 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28062 (gtk_minor_version != GTK_MINOR_VERSION) ||
28063 (gtk_micro_version != GTK_MICRO_VERSION))
28064 {
28065 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28066 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28067 printf("*** library (version %d.%d.%d)\n",
28068 gtk_major_version, gtk_minor_version, gtk_micro_version);
28069 }
28070 else
28071 {
28072 if ((gtk_major_version > major) ||
28073 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28074 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28075 {
28076 return 0;
28077 }
28078 else
28079 {
28080 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28081 gtk_major_version, gtk_minor_version, gtk_micro_version);
28082 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28083 major, minor, micro);
28084 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28085 printf("***\n");
28086 printf("*** If you have already installed a sufficiently new version, this error\n");
28087 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28088 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28089 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28090 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28091 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28092 printf("*** so that the correct libraries are found at run-time))\n");
28093 }
28094 }
28095 return 1;
28096}
28097
28098_ACEOF
28099rm -f conftest$ac_exeext
28100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28101 (eval $ac_link) 2>&5
28102 ac_status=$?
28103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28106 (eval $ac_try) 2>&5
28107 ac_status=$?
28108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109 (exit $ac_status); }; }; then
28110 :
28111else
28112 echo "$as_me: program exited with status $ac_status" >&5
28113echo "$as_me: failed program was:" >&5
28114sed 's/^/| /' conftest.$ac_ext >&5
28115
28116( exit $ac_status )
28117no_gtk=yes
28118fi
ac1cb8d3 28119rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28120fi
28121 CFLAGS="$ac_save_CFLAGS"
28122 LIBS="$ac_save_LIBS"
28123 fi
28124 fi
28125 if test "x$no_gtk" = x ; then
28126 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28127echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
28128 wx_cv_lib_gtk=2.0
28129 else
28130 echo "$as_me:$LINENO: result: no" >&5
28131echo "${ECHO_T}no" >&6
28132 if test "$PKG_CONFIG" = "no" ; then
28133 echo "*** A new enough version of pkg-config was not found."
28134 echo "*** See http://pkgconfig.sourceforge.net"
28135 else
28136 if test -f conf.gtktest ; then
28137 :
28138 else
28139 echo "*** Could not run GTK+ test program, checking why..."
28140 ac_save_CFLAGS="$CFLAGS"
28141 ac_save_LIBS="$LIBS"
28142 CFLAGS="$CFLAGS $GTK_CFLAGS"
28143 LIBS="$LIBS $GTK_LIBS"
28144 cat >conftest.$ac_ext <<_ACEOF
28145/* confdefs.h. */
28146_ACEOF
28147cat confdefs.h >>conftest.$ac_ext
28148cat >>conftest.$ac_ext <<_ACEOF
28149/* end confdefs.h. */
28150
28151#include <gtk/gtk.h>
28152#include <stdio.h>
28153
28154int
28155main ()
28156{
28157 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28158 ;
28159 return 0;
28160}
28161_ACEOF
28162rm -f conftest.$ac_objext conftest$ac_exeext
28163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28164 (eval $ac_link) 2>conftest.er1
a848cd7e 28165 ac_status=$?
ac1cb8d3
VS
28166 grep -v '^ *+' conftest.er1 >conftest.err
28167 rm -f conftest.er1
28168 cat conftest.err >&5
a848cd7e
SC
28169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170 (exit $ac_status); } &&
bb9e79c0 28171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28173 (eval $ac_try) 2>&5
28174 ac_status=$?
28175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176 (exit $ac_status); }; } &&
28177 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28179 (eval $ac_try) 2>&5
28180 ac_status=$?
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); }; }; then
28183 echo "*** The test program compiled, but did not run. This usually means"
28184 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28185 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28186 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28187 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28188 echo "*** is required on your system"
28189 echo "***"
28190 echo "*** If you have an old version installed, it is best to remove it, although"
28191 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28192else
28193 echo "$as_me: failed program was:" >&5
28194sed 's/^/| /' conftest.$ac_ext >&5
28195
28196 echo "*** The test program failed to compile or link. See the file config.log for the"
28197 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28198fi
ac1cb8d3
VS
28199rm -f conftest.err conftest.$ac_objext \
28200 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28201 CFLAGS="$ac_save_CFLAGS"
28202 LIBS="$ac_save_LIBS"
28203 fi
28204 fi
28205 GTK_CFLAGS=""
28206 GTK_LIBS=""
28207 :
28208 fi
28209
28210
28211 rm -f conf.gtktest
28212
5001df0d
MW
28213
28214 case "${host}" in
28215 *-*-solaris2* )
28216 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28217 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
28218 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
28219 fi
28220 if test "$wxUSE_SHARED" != "yes"; then
28221 GTK_LIBS="$GTK_LIBS -lX11"
28222 fi
28223 esac
f597b41c
MW
28224 fi
28225
f34ca037
MW
28226 if test -z "$wx_cv_lib_gtk"; then
28227 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
28228
28229# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28230if test "${with_gtk_prefix+set}" = set; then
28231 withval="$with_gtk_prefix"
28232 gtk_config_prefix="$withval"
28233else
28234 gtk_config_prefix=""
28235fi;
28236
28237# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28238if test "${with_gtk_exec_prefix+set}" = set; then
28239 withval="$with_gtk_exec_prefix"
28240 gtk_config_exec_prefix="$withval"
28241else
28242 gtk_config_exec_prefix=""
28243fi;
28244# Check whether --enable-gtktest or --disable-gtktest was given.
28245if test "${enable_gtktest+set}" = set; then
28246 enableval="$enable_gtktest"
28247
28248else
28249 enable_gtktest=yes
28250fi;
28251
28252 for module in . $GTK_MODULES
28253 do
28254 case "$module" in
28255 gthread)
28256 gtk_config_args="$gtk_config_args gthread"
28257 ;;
28258 esac
28259 done
28260
28261 if test x$gtk_config_exec_prefix != x ; then
28262 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28263 if test x${GTK_CONFIG+set} != xset ; then
28264 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28265 fi
28266 fi
28267 if test x$gtk_config_prefix != x ; then
28268 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28269 if test x${GTK_CONFIG+set} != xset ; then
28270 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28271 fi
28272 fi
28273
28274 # Extract the first word of "gtk-config", so it can be a program name with args.
28275set dummy gtk-config; ac_word=$2
28276echo "$as_me:$LINENO: checking for $ac_word" >&5
28277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28278if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28279 echo $ECHO_N "(cached) $ECHO_C" >&6
28280else
28281 case $GTK_CONFIG in
28282 [\\/]* | ?:[\\/]*)
28283 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28284 ;;
28285 *)
28286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28287for as_dir in $PATH
28288do
28289 IFS=$as_save_IFS
28290 test -z "$as_dir" && as_dir=.
28291 for ac_exec_ext in '' $ac_executable_extensions; do
28292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28293 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28295 break 2
28296 fi
28297done
28298done
28299
28300 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28301 ;;
28302esac
28303fi
28304GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28305
28306if test -n "$GTK_CONFIG"; then
28307 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28308echo "${ECHO_T}$GTK_CONFIG" >&6
28309else
28310 echo "$as_me:$LINENO: result: no" >&5
28311echo "${ECHO_T}no" >&6
28312fi
28313
28314 min_gtk_version=1.2.7
28315 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28316echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28317 no_gtk=""
28318 if test "$GTK_CONFIG" = "no" ; then
28319 no_gtk=yes
28320 else
28321 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28322 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28323 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28324 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28325 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28326 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28327 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28328 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28329 if test "x$enable_gtktest" = "xyes" ; then
28330 ac_save_CFLAGS="$CFLAGS"
28331 ac_save_LIBS="$LIBS"
28332 CFLAGS="$CFLAGS $GTK_CFLAGS"
28333 LIBS="$GTK_LIBS $LIBS"
28334 rm -f conf.gtktest
28335 if test "$cross_compiling" = yes; then
28336 echo $ac_n "cross compiling; assumed OK... $ac_c"
28337else
28338 cat >conftest.$ac_ext <<_ACEOF
28339/* confdefs.h. */
28340_ACEOF
28341cat confdefs.h >>conftest.$ac_ext
28342cat >>conftest.$ac_ext <<_ACEOF
28343/* end confdefs.h. */
28344
28345#include <gtk/gtk.h>
28346#include <stdio.h>
28347#include <stdlib.h>
28348
28349int
28350main ()
28351{
28352 int major, minor, micro;
28353 char *tmp_version;
28354
28355 system ("touch conf.gtktest");
28356
28357 /* HP/UX 9 (%@#!) writes to sscanf strings */
28358 tmp_version = g_strdup("$min_gtk_version");
28359 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28360 printf("%s, bad version string\n", "$min_gtk_version");
28361 exit(1);
28362 }
28363
28364 if ((gtk_major_version != $gtk_config_major_version) ||
28365 (gtk_minor_version != $gtk_config_minor_version) ||
28366 (gtk_micro_version != $gtk_config_micro_version))
28367 {
28368 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28369 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28370 gtk_major_version, gtk_minor_version, gtk_micro_version);
28371 printf ("*** was found! If gtk-config was correct, then it is best\n");
28372 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28373 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28374 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28375 printf("*** required on your system.\n");
28376 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28377 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28378 printf("*** before re-running configure\n");
28379 }
28380#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28381 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28382 (gtk_minor_version != GTK_MINOR_VERSION) ||
28383 (gtk_micro_version != GTK_MICRO_VERSION))
28384 {
28385 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28386 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28387 printf("*** library (version %d.%d.%d)\n",
28388 gtk_major_version, gtk_minor_version, gtk_micro_version);
28389 }
28390#endif /* defined (GTK_MAJOR_VERSION) ... */
28391 else
28392 {
28393 if ((gtk_major_version > major) ||
28394 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28395 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28396 {
28397 return 0;
28398 }
28399 else
28400 {
28401 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28402 gtk_major_version, gtk_minor_version, gtk_micro_version);
28403 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28404 major, minor, micro);
28405 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28406 printf("***\n");
28407 printf("*** If you have already installed a sufficiently new version, this error\n");
28408 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28409 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28410 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28411 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28412 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28413 printf("*** so that the correct libraries are found at run-time))\n");
28414 }
28415 }
28416 return 1;
28417}
28418
28419_ACEOF
28420rm -f conftest$ac_exeext
28421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28422 (eval $ac_link) 2>&5
28423 ac_status=$?
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28427 (eval $ac_try) 2>&5
28428 ac_status=$?
28429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430 (exit $ac_status); }; }; then
28431 :
28432else
28433 echo "$as_me: program exited with status $ac_status" >&5
28434echo "$as_me: failed program was:" >&5
28435sed 's/^/| /' conftest.$ac_ext >&5
28436
28437( exit $ac_status )
28438no_gtk=yes
28439fi
ac1cb8d3 28440rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28441fi
28442 CFLAGS="$ac_save_CFLAGS"
28443 LIBS="$ac_save_LIBS"
28444 fi
28445 fi
28446 if test "x$no_gtk" = x ; then
28447 echo "$as_me:$LINENO: result: yes" >&5
28448echo "${ECHO_T}yes" >&6
28449 wx_cv_lib_gtk=1.2.7
28450 else
28451 echo "$as_me:$LINENO: result: no" >&5
28452echo "${ECHO_T}no" >&6
28453 if test "$GTK_CONFIG" = "no" ; then
28454 echo "*** The gtk-config script installed by GTK could not be found"
28455 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28456 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28457 echo "*** full path to gtk-config."
28458 else
28459 if test -f conf.gtktest ; then
28460 :
28461 else
28462 echo "*** Could not run GTK test program, checking why..."
28463 CFLAGS="$CFLAGS $GTK_CFLAGS"
28464 LIBS="$LIBS $GTK_LIBS"
28465 cat >conftest.$ac_ext <<_ACEOF
28466/* confdefs.h. */
28467_ACEOF
28468cat confdefs.h >>conftest.$ac_ext
28469cat >>conftest.$ac_ext <<_ACEOF
28470/* end confdefs.h. */
28471
28472#include <gtk/gtk.h>
28473#include <stdio.h>
28474
28475int
28476main ()
28477{
28478 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28479 ;
28480 return 0;
28481}
28482_ACEOF
28483rm -f conftest.$ac_objext conftest$ac_exeext
28484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28485 (eval $ac_link) 2>conftest.er1
a848cd7e 28486 ac_status=$?
ac1cb8d3
VS
28487 grep -v '^ *+' conftest.er1 >conftest.err
28488 rm -f conftest.er1
28489 cat conftest.err >&5
a848cd7e
SC
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 (exit $ac_status); } &&
bb9e79c0 28492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494 (eval $ac_try) 2>&5
28495 ac_status=$?
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); }; } &&
28498 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28500 (eval $ac_try) 2>&5
28501 ac_status=$?
28502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); }; }; then
28504 echo "*** The test program compiled, but did not run. This usually means"
28505 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28506 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28507 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28508 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28509 echo "*** is required on your system"
28510 echo "***"
28511 echo "*** If you have an old version installed, it is best to remove it, although"
28512 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28513 echo "***"
28514 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28515 echo "*** came with the system with the command"
28516 echo "***"
28517 echo "*** rpm --erase --nodeps gtk gtk-devel"
28518else
28519 echo "$as_me: failed program was:" >&5
28520sed 's/^/| /' conftest.$ac_ext >&5
28521
28522 echo "*** The test program failed to compile or link. See the file config.log for the"
28523 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28524 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28525 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28526fi
ac1cb8d3
VS
28527rm -f conftest.err conftest.$ac_objext \
28528 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28529 CFLAGS="$ac_save_CFLAGS"
28530 LIBS="$ac_save_LIBS"
28531 fi
28532 fi
28533 GTK_CFLAGS=""
28534 GTK_LIBS=""
28535 :
28536 fi
28537
28538
28539 rm -f conf.gtktest
28540
28541
f34ca037 28542 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
28543
28544# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28545if test "${with_gtk_prefix+set}" = set; then
28546 withval="$with_gtk_prefix"
28547 gtk_config_prefix="$withval"
28548else
28549 gtk_config_prefix=""
28550fi;
28551
28552# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28553if test "${with_gtk_exec_prefix+set}" = set; then
28554 withval="$with_gtk_exec_prefix"
28555 gtk_config_exec_prefix="$withval"
28556else
28557 gtk_config_exec_prefix=""
28558fi;
28559# Check whether --enable-gtktest or --disable-gtktest was given.
28560if test "${enable_gtktest+set}" = set; then
28561 enableval="$enable_gtktest"
28562
28563else
28564 enable_gtktest=yes
28565fi;
28566
28567 for module in . $GTK_MODULES
28568 do
28569 case "$module" in
28570 gthread)
28571 gtk_config_args="$gtk_config_args gthread"
28572 ;;
28573 esac
28574 done
28575
28576 if test x$gtk_config_exec_prefix != x ; then
28577 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28578 if test x${GTK_CONFIG+set} != xset ; then
28579 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28580 fi
28581 fi
28582 if test x$gtk_config_prefix != x ; then
28583 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28584 if test x${GTK_CONFIG+set} != xset ; then
28585 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28586 fi
28587 fi
28588
28589 # Extract the first word of "gtk-config", so it can be a program name with args.
28590set dummy gtk-config; ac_word=$2
28591echo "$as_me:$LINENO: checking for $ac_word" >&5
28592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28593if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28594 echo $ECHO_N "(cached) $ECHO_C" >&6
28595else
28596 case $GTK_CONFIG in
28597 [\\/]* | ?:[\\/]*)
28598 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28599 ;;
28600 *)
28601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28602for as_dir in $PATH
28603do
28604 IFS=$as_save_IFS
28605 test -z "$as_dir" && as_dir=.
28606 for ac_exec_ext in '' $ac_executable_extensions; do
28607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28608 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28610 break 2
28611 fi
28612done
28613done
28614
28615 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28616 ;;
28617esac
28618fi
28619GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28620
28621if test -n "$GTK_CONFIG"; then
28622 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28623echo "${ECHO_T}$GTK_CONFIG" >&6
28624else
28625 echo "$as_me:$LINENO: result: no" >&5
28626echo "${ECHO_T}no" >&6
28627fi
28628
28629 min_gtk_version=1.2.3
28630 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28631echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28632 no_gtk=""
28633 if test "$GTK_CONFIG" = "no" ; then
28634 no_gtk=yes
28635 else
28636 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28637 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28638 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28639 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28640 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28641 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28642 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28643 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28644 if test "x$enable_gtktest" = "xyes" ; then
28645 ac_save_CFLAGS="$CFLAGS"
28646 ac_save_LIBS="$LIBS"
28647 CFLAGS="$CFLAGS $GTK_CFLAGS"
28648 LIBS="$GTK_LIBS $LIBS"
28649 rm -f conf.gtktest
28650 if test "$cross_compiling" = yes; then
28651 echo $ac_n "cross compiling; assumed OK... $ac_c"
28652else
28653 cat >conftest.$ac_ext <<_ACEOF
28654/* confdefs.h. */
28655_ACEOF
28656cat confdefs.h >>conftest.$ac_ext
28657cat >>conftest.$ac_ext <<_ACEOF
28658/* end confdefs.h. */
28659
28660#include <gtk/gtk.h>
28661#include <stdio.h>
28662#include <stdlib.h>
28663
28664int
28665main ()
28666{
28667 int major, minor, micro;
28668 char *tmp_version;
28669
28670 system ("touch conf.gtktest");
28671
28672 /* HP/UX 9 (%@#!) writes to sscanf strings */
28673 tmp_version = g_strdup("$min_gtk_version");
28674 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28675 printf("%s, bad version string\n", "$min_gtk_version");
28676 exit(1);
28677 }
28678
28679 if ((gtk_major_version != $gtk_config_major_version) ||
28680 (gtk_minor_version != $gtk_config_minor_version) ||
28681 (gtk_micro_version != $gtk_config_micro_version))
28682 {
28683 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28684 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28685 gtk_major_version, gtk_minor_version, gtk_micro_version);
28686 printf ("*** was found! If gtk-config was correct, then it is best\n");
28687 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28688 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28689 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28690 printf("*** required on your system.\n");
28691 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28692 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28693 printf("*** before re-running configure\n");
28694 }
28695#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28696 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28697 (gtk_minor_version != GTK_MINOR_VERSION) ||
28698 (gtk_micro_version != GTK_MICRO_VERSION))
28699 {
28700 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28701 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28702 printf("*** library (version %d.%d.%d)\n",
28703 gtk_major_version, gtk_minor_version, gtk_micro_version);
28704 }
28705#endif /* defined (GTK_MAJOR_VERSION) ... */
28706 else
28707 {
28708 if ((gtk_major_version > major) ||
28709 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28710 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28711 {
28712 return 0;
28713 }
28714 else
28715 {
28716 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28717 gtk_major_version, gtk_minor_version, gtk_micro_version);
28718 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28719 major, minor, micro);
28720 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28721 printf("***\n");
28722 printf("*** If you have already installed a sufficiently new version, this error\n");
28723 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28724 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28725 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28726 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28727 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28728 printf("*** so that the correct libraries are found at run-time))\n");
28729 }
28730 }
28731 return 1;
28732}
28733
28734_ACEOF
28735rm -f conftest$ac_exeext
28736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28737 (eval $ac_link) 2>&5
28738 ac_status=$?
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742 (eval $ac_try) 2>&5
28743 ac_status=$?
28744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); }; }; then
28746 :
28747else
28748 echo "$as_me: program exited with status $ac_status" >&5
28749echo "$as_me: failed program was:" >&5
28750sed 's/^/| /' conftest.$ac_ext >&5
28751
28752( exit $ac_status )
28753no_gtk=yes
28754fi
ac1cb8d3 28755rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28756fi
28757 CFLAGS="$ac_save_CFLAGS"
28758 LIBS="$ac_save_LIBS"
28759 fi
28760 fi
28761 if test "x$no_gtk" = x ; then
28762 echo "$as_me:$LINENO: result: yes" >&5
28763echo "${ECHO_T}yes" >&6
28764 wx_cv_lib_gtk=1.2.3
28765 else
28766 echo "$as_me:$LINENO: result: no" >&5
28767echo "${ECHO_T}no" >&6
28768 if test "$GTK_CONFIG" = "no" ; then
28769 echo "*** The gtk-config script installed by GTK could not be found"
28770 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28771 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28772 echo "*** full path to gtk-config."
28773 else
28774 if test -f conf.gtktest ; then
28775 :
28776 else
28777 echo "*** Could not run GTK test program, checking why..."
28778 CFLAGS="$CFLAGS $GTK_CFLAGS"
28779 LIBS="$LIBS $GTK_LIBS"
28780 cat >conftest.$ac_ext <<_ACEOF
28781/* confdefs.h. */
28782_ACEOF
28783cat confdefs.h >>conftest.$ac_ext
28784cat >>conftest.$ac_ext <<_ACEOF
28785/* end confdefs.h. */
28786
28787#include <gtk/gtk.h>
28788#include <stdio.h>
28789
28790int
28791main ()
28792{
28793 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28794 ;
28795 return 0;
28796}
28797_ACEOF
28798rm -f conftest.$ac_objext conftest$ac_exeext
28799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28800 (eval $ac_link) 2>conftest.er1
a848cd7e 28801 ac_status=$?
ac1cb8d3
VS
28802 grep -v '^ *+' conftest.er1 >conftest.err
28803 rm -f conftest.er1
28804 cat conftest.err >&5
a848cd7e
SC
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); } &&
bb9e79c0 28807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28809 (eval $ac_try) 2>&5
28810 ac_status=$?
28811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812 (exit $ac_status); }; } &&
28813 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28815 (eval $ac_try) 2>&5
28816 ac_status=$?
28817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818 (exit $ac_status); }; }; then
28819 echo "*** The test program compiled, but did not run. This usually means"
28820 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28821 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28822 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28823 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28824 echo "*** is required on your system"
28825 echo "***"
28826 echo "*** If you have an old version installed, it is best to remove it, although"
28827 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28828 echo "***"
28829 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28830 echo "*** came with the system with the command"
28831 echo "***"
28832 echo "*** rpm --erase --nodeps gtk gtk-devel"
28833else
28834 echo "$as_me: failed program was:" >&5
28835sed 's/^/| /' conftest.$ac_ext >&5
28836
28837 echo "*** The test program failed to compile or link. See the file config.log for the"
28838 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28839 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28840 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28841fi
ac1cb8d3
VS
28842rm -f conftest.err conftest.$ac_objext \
28843 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28844 CFLAGS="$ac_save_CFLAGS"
28845 LIBS="$ac_save_LIBS"
28846 fi
28847 fi
28848 GTK_CFLAGS=""
28849 GTK_LIBS=""
28850 :
28851 fi
28852
28853
28854 rm -f conf.gtktest
28855
f34ca037 28856 fi
a848cd7e
SC
28857 fi
28858 fi
28859
28860 if test -z "$wx_cv_lib_gtk"; then
28861 wx_cv_lib_gtk=none
28862 else
28863 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28864 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28865 fi
28866
28867
28868fi
28869
28870
28871 if test "$gtk_version_cached" = 1; then
28872 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28873echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28874 fi
28875
28876 case "$wx_cv_lib_gtk" in
28877 2.0) WXGTK20=1
28878 TOOLKIT_VERSION=2
28879 ;;
28880 1.2.7) WXGTK127=1
28881 WXGTK12=1
28882 ;;
28883 1.2.3) WXGTK12=1
28884 ;;
28885 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28886The development files for GTK+ were not found. For GTK+ 2, please
28887ensure that pkg-config is in the path and that gtk+-2.0.pc is
28888installed. For GTK+ 1.2 please check that gtk-config is in the path,
28889and that the version is 1.2.3 or above. Also check that the
28890libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28891--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28892 " >&5
28893echo "$as_me: error:
f597b41c
MW
28894The development files for GTK+ were not found. For GTK+ 2, please
28895ensure that pkg-config is in the path and that gtk+-2.0.pc is
28896installed. For GTK+ 1.2 please check that gtk-config is in the path,
28897and that the version is 1.2.3 or above. Also check that the
28898libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28899--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28900 " >&2;}
28901 { (exit 1); exit 1; }; }
28902 ;;
28903 esac
28904
28905 if test "$WXGTK20" = 1; then
6954625c 28906 save_CFLAGS="$CFLAGS"
304205f1 28907 save_LIBS="$LIBS"
6954625c 28908 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28909 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28910
58e65954
MW
28911 echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
28912echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
28913if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
28914 echo $ECHO_N "(cached) $ECHO_C" >&6
28915else
28916 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28917/* confdefs.h. */
28918_ACEOF
28919cat confdefs.h >>conftest.$ac_ext
28920cat >>conftest.$ac_ext <<_ACEOF
28921/* end confdefs.h. */
58e65954 28922#include <gtk/gtk.h>
304205f1 28923
d12aef51
VZ
28924int
28925main ()
28926{
58e65954
MW
28927#ifndef gtk_icon_size_lookup
28928 char *p = (char *) gtk_icon_size_lookup;
28929#endif
abc736fd
MW
28930
28931 ;
28932 return 0;
28933}
28934_ACEOF
28935rm -f conftest.$ac_objext
28936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28937 (eval $ac_compile) 2>conftest.er1
28938 ac_status=$?
28939 grep -v '^ *+' conftest.er1 >conftest.err
28940 rm -f conftest.er1
28941 cat conftest.err >&5
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); } &&
bb9e79c0 28944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
28945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28946 (eval $ac_try) 2>&5
28947 ac_status=$?
28948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 (exit $ac_status); }; } &&
28950 { ac_try='test -s conftest.$ac_objext'
28951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28952 (eval $ac_try) 2>&5
28953 ac_status=$?
28954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955 (exit $ac_status); }; }; then
58e65954 28956 ac_cv_have_decl_gtk_icon_size_lookup=yes
abc736fd
MW
28957else
28958 echo "$as_me: failed program was:" >&5
28959sed 's/^/| /' conftest.$ac_ext >&5
28960
58e65954
MW
28961ac_cv_have_decl_gtk_icon_size_lookup=no
28962fi
28963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28964fi
28965echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
28966echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
28967if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
abc736fd 28968
58e65954
MW
28969cat >>confdefs.h <<_ACEOF
28970#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
abc736fd
MW
28971_ACEOF
28972
58e65954
MW
28973
28974else
28975 cat >>confdefs.h <<_ACEOF
28976#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
28977_ACEOF
28978
28979cat >>confdefs.h <<\_ACEOF
28980#define NEED_GTK_ICON_SIZE_LOOKUP 1
28981_ACEOF
abc736fd
MW
28982
28983fi
58e65954
MW
28984
28985
abc736fd 28986
e9263684
VZ
28987 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28988echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28989 cat >conftest.$ac_ext <<_ACEOF
28990/* confdefs.h. */
28991_ACEOF
28992cat confdefs.h >>conftest.$ac_ext
28993cat >>conftest.$ac_ext <<_ACEOF
28994/* end confdefs.h. */
28995
28996 #include <gtk/gtk.h>
28997
28998int
28999main ()
29000{
29001
29002 #if !GTK_CHECK_VERSION(2,6,0)
29003 Not GTK+ 2.6
29004 #endif
29005
29006 ;
29007 return 0;
29008}
29009_ACEOF
29010rm -f conftest.$ac_objext
29011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29012 (eval $ac_compile) 2>conftest.er1
29013 ac_status=$?
29014 grep -v '^ *+' conftest.er1 >conftest.err
29015 rm -f conftest.er1
29016 cat conftest.err >&5
29017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); } &&
bb9e79c0 29019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
29020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29021 (eval $ac_try) 2>&5
29022 ac_status=$?
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); }; } &&
29025 { ac_try='test -s conftest.$ac_objext'
29026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29027 (eval $ac_try) 2>&5
29028 ac_status=$?
29029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 (exit $ac_status); }; }; then
29031
29032 cat >>confdefs.h <<\_ACEOF
29033#define __WXGTK26__ 1
29034_ACEOF
29035
29036 cat >>confdefs.h <<\_ACEOF
29037#define __WXGTK24__ 1
29038_ACEOF
29039
29040 echo "$as_me:$LINENO: result: yes" >&5
29041echo "${ECHO_T}yes" >&6
29042 ac_wxgtk26=1
29043
29044else
29045 echo "$as_me: failed program was:" >&5
29046sed 's/^/| /' conftest.$ac_ext >&5
29047
29048
29049 echo "$as_me:$LINENO: result: no" >&5
29050echo "${ECHO_T}no" >&6
29051 ac_wxgtk26=0
29052
29053fi
29054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29055
29056 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
29057 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
29058echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
29059 cat >conftest.$ac_ext <<_ACEOF
29060/* confdefs.h. */
29061_ACEOF
29062cat confdefs.h >>conftest.$ac_ext
29063cat >>conftest.$ac_ext <<_ACEOF
29064/* end confdefs.h. */
29065
29066 #include <gtk/gtk.h>
29067
29068int
29069main ()
29070{
29071
29072 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 29073 Not GTK+ 2.4
9755e73b
VS
29074 #endif
29075
29076 ;
29077 return 0;
29078}
29079_ACEOF
29080rm -f conftest.$ac_objext
29081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29082 (eval $ac_compile) 2>conftest.er1
29083 ac_status=$?
29084 grep -v '^ *+' conftest.er1 >conftest.err
29085 rm -f conftest.er1
29086 cat conftest.err >&5
29087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29088 (exit $ac_status); } &&
bb9e79c0 29089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
29090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29091 (eval $ac_try) 2>&5
29092 ac_status=$?
29093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094 (exit $ac_status); }; } &&
29095 { ac_try='test -s conftest.$ac_objext'
29096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29097 (eval $ac_try) 2>&5
29098 ac_status=$?
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); }; }; then
29101
29102 cat >>confdefs.h <<\_ACEOF
29103#define __WXGTK24__ 1
29104_ACEOF
29105
29106 echo "$as_me:$LINENO: result: yes" >&5
29107echo "${ECHO_T}yes" >&6
29108
29109else
29110 echo "$as_me: failed program was:" >&5
29111sed 's/^/| /' conftest.$ac_ext >&5
29112
29113
29114 echo "$as_me:$LINENO: result: no" >&5
29115echo "${ECHO_T}no" >&6
29116
29117fi
29118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 29119 fi
9755e73b 29120
6954625c 29121 CFLAGS="$save_CFLAGS"
304205f1 29122 LIBS="$save_LIBS"
a848cd7e
SC
29123 else
29124 if test "$wxUSE_UNICODE" = "yes"; then
29125 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29126echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29127 wxUSE_UNICODE=no
29128 fi
64b75e64
RD
29129
29130 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29131echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
29132if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29133 echo $ECHO_N "(cached) $ECHO_C" >&6
29134else
29135 ac_check_lib_save_LIBS=$LIBS
29136LIBS="-lgdk $LIBS"
29137cat >conftest.$ac_ext <<_ACEOF
29138/* confdefs.h. */
29139_ACEOF
29140cat confdefs.h >>conftest.$ac_ext
29141cat >>conftest.$ac_ext <<_ACEOF
29142/* end confdefs.h. */
29143
29144/* Override any gcc2 internal prototype to avoid an error. */
29145#ifdef __cplusplus
29146extern "C"
29147#endif
29148/* We use char because int might match the return type of a gcc2
29149 builtin and then its argument prototype would still apply. */
29150char gdk_im_open ();
29151int
29152main ()
29153{
29154gdk_im_open ();
29155 ;
29156 return 0;
29157}
29158_ACEOF
29159rm -f conftest.$ac_objext conftest$ac_exeext
29160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29161 (eval $ac_link) 2>conftest.er1
29162 ac_status=$?
29163 grep -v '^ *+' conftest.er1 >conftest.err
29164 rm -f conftest.er1
29165 cat conftest.err >&5
29166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167 (exit $ac_status); } &&
bb9e79c0 29168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
64b75e64
RD
29169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29170 (eval $ac_try) 2>&5
29171 ac_status=$?
29172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173 (exit $ac_status); }; } &&
29174 { ac_try='test -s conftest$ac_exeext'
29175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29176 (eval $ac_try) 2>&5
29177 ac_status=$?
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); }; }; then
29180 ac_cv_lib_gdk_gdk_im_open=yes
29181else
29182 echo "$as_me: failed program was:" >&5
29183sed 's/^/| /' conftest.$ac_ext >&5
29184
29185ac_cv_lib_gdk_gdk_im_open=no
29186fi
29187rm -f conftest.err conftest.$ac_objext \
29188 conftest$ac_exeext conftest.$ac_ext
29189LIBS=$ac_check_lib_save_LIBS
29190fi
29191echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29192echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
29193if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29194 cat >>confdefs.h <<\_ACEOF
29195#define HAVE_XIM 1
29196_ACEOF
29197
29198fi
29199
a848cd7e
SC
29200 fi
29201
29202 if test "$USE_DARWIN" != 1; then
29203
29204for ac_func in poll
29205do
29206as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29207echo "$as_me:$LINENO: checking for $ac_func" >&5
29208echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29209if eval "test \"\${$as_ac_var+set}\" = set"; then
29210 echo $ECHO_N "(cached) $ECHO_C" >&6
29211else
29212 cat >conftest.$ac_ext <<_ACEOF
29213/* confdefs.h. */
29214_ACEOF
29215cat confdefs.h >>conftest.$ac_ext
29216cat >>conftest.$ac_ext <<_ACEOF
29217/* end confdefs.h. */
ac1cb8d3
VS
29218/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29220#define $ac_func innocuous_$ac_func
29221
a848cd7e
SC
29222/* System header to define __stub macros and hopefully few prototypes,
29223 which can conflict with char $ac_func (); below.
29224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29225 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29226
a848cd7e
SC
29227#ifdef __STDC__
29228# include <limits.h>
29229#else
29230# include <assert.h>
29231#endif
ac1cb8d3
VS
29232
29233#undef $ac_func
29234
a848cd7e
SC
29235/* Override any gcc2 internal prototype to avoid an error. */
29236#ifdef __cplusplus
29237extern "C"
29238{
29239#endif
29240/* We use char because int might match the return type of a gcc2
29241 builtin and then its argument prototype would still apply. */
29242char $ac_func ();
29243/* The GNU C library defines this for functions which it implements
29244 to always fail with ENOSYS. Some functions are actually named
29245 something starting with __ and the normal name is an alias. */
29246#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29247choke me
29248#else
29249char (*f) () = $ac_func;
29250#endif
29251#ifdef __cplusplus
29252}
29253#endif
29254
29255int
29256main ()
29257{
29258return f != $ac_func;
29259 ;
29260 return 0;
29261}
29262_ACEOF
29263rm -f conftest.$ac_objext conftest$ac_exeext
29264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29265 (eval $ac_link) 2>conftest.er1
a848cd7e 29266 ac_status=$?
ac1cb8d3
VS
29267 grep -v '^ *+' conftest.er1 >conftest.err
29268 rm -f conftest.er1
29269 cat conftest.err >&5
a848cd7e
SC
29270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); } &&
fd5199d6 29272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29274 (eval $ac_try) 2>&5
29275 ac_status=$?
29276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29277 (exit $ac_status); }; } &&
29278 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29280 (eval $ac_try) 2>&5
29281 ac_status=$?
29282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283 (exit $ac_status); }; }; then
29284 eval "$as_ac_var=yes"
29285else
29286 echo "$as_me: failed program was:" >&5
29287sed 's/^/| /' conftest.$ac_ext >&5
29288
29289eval "$as_ac_var=no"
29290fi
ac1cb8d3
VS
29291rm -f conftest.err conftest.$ac_objext \
29292 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29293fi
29294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29295echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29296if test `eval echo '${'$as_ac_var'}'` = yes; then
29297 cat >>confdefs.h <<_ACEOF
29298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29299_ACEOF
29300
29301fi
29302done
29303
29304 fi
29305
29306 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29307 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29308
29309 AFMINSTALL=afminstall
29310 TOOLKIT=GTK
29311 GUIDIST=GTK_DIST
29312
a848cd7e
SC
29313 if test "$wxUSE_GPE" = "yes"; then
29314 echo "$as_me:$LINENO: checking for gpewidget library" >&5
29315echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
29316
0ad5d837
VZ
29317 ac_find_libraries=
29318 for ac_dir in $SEARCH_LIB;
a848cd7e 29319 do
3eca31dc 29320 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29321 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29322 ac_find_libraries=$ac_dir
29323 break 2
29324 fi
29325 done
29326 done
29327
29328 if test "$ac_find_libraries" != "" ; then
29329
0ad5d837 29330 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29331 ac_path_to_link=""
29332 else
0ad5d837
VZ
29333 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29334 result=$?
29335 if test $result = 0; then
29336 ac_path_to_link=""
29337 else
29338 ac_path_to_link=" -L$ac_find_libraries"
29339 fi
a848cd7e
SC
29340 fi
29341
29342 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29343 WXGPE=1
0ad5d837
VZ
29344 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29345echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29346 else
29347 echo "$as_me:$LINENO: result: not found" >&5
29348echo "${ECHO_T}not found" >&6
29349 fi
29350
29351 fi
29352 fi
29353
29354 if test "$wxUSE_MGL" = 1; then
29355 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29356echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
29357 if test "x$MGL_ROOT" = x ; then
29358 echo "$as_me:$LINENO: result: not found" >&5
29359echo "${ECHO_T}not found" >&6
29360 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29361echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29362 { (exit 1); exit 1; }; }
29363 else
29364 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29365echo "${ECHO_T}$MGL_ROOT" >&6
29366 fi
29367
29368 echo "$as_me:$LINENO: checking for libmgl location" >&5
29369echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
29370 case "${host}" in
29371 *-*-linux* )
29372 if test "x$wxUSE_SHARED" = xyes ; then
29373 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29374 else
29375 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29376 fi
29377 ;;
29378 *-pc-msdosdjgpp )
29379 mgl_os_candidates="dos32/dj2"
29380 ;;
29381 *)
29382 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29383echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29384 { (exit 1); exit 1; }; }
29385 esac
29386
29387 mgl_lib_type=""
29388 mgl_os=""
29389
29390 for mgl_os_i in $mgl_os_candidates ; do
29391 if test "x$mgl_os" = x ; then
29392 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29393 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29394 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29395 mgl_lib_type=debug
29396 mgl_os=$mgl_os_i
29397 fi
29398 fi
29399 if test "x$mgl_lib_type" = x ; then
29400 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29401 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29402 mgl_lib_type=release
29403 mgl_os=$mgl_os_i
29404 fi
29405 fi
29406 fi
29407 done
29408
29409 if test "x$mgl_os" = x ; then
29410 echo "$as_me:$LINENO: result: not found" >&5
29411echo "${ECHO_T}not found" >&6
29412 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29413echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29414 { (exit 1); exit 1; }; }
29415 fi
29416 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29417echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
29418
29419 wxUSE_UNIVERSAL="yes"
29420
29421 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29422 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29423
29424 AFMINSTALL=afminstall
29425 TOOLKIT=MGL
29426 GUIDIST=MGL_DIST
29427 fi
29428
b3c86150
VS
29429 if test "$wxUSE_DFB" = 1; then
29430
29431
29432if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29433 if test -n "$ac_tool_prefix"; then
29434 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29435set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29436echo "$as_me:$LINENO: checking for $ac_word" >&5
29437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29438if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29439 echo $ECHO_N "(cached) $ECHO_C" >&6
29440else
29441 case $PKG_CONFIG in
29442 [\\/]* | ?:[\\/]*)
29443 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29444 ;;
29445 *)
29446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29447for as_dir in $PATH
29448do
29449 IFS=$as_save_IFS
29450 test -z "$as_dir" && as_dir=.
29451 for ac_exec_ext in '' $ac_executable_extensions; do
29452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29453 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29455 break 2
29456 fi
29457done
29458done
29459
29460 ;;
29461esac
29462fi
29463PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29464
29465if test -n "$PKG_CONFIG"; then
29466 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29467echo "${ECHO_T}$PKG_CONFIG" >&6
29468else
29469 echo "$as_me:$LINENO: result: no" >&5
29470echo "${ECHO_T}no" >&6
29471fi
29472
29473fi
29474if test -z "$ac_cv_path_PKG_CONFIG"; then
29475 ac_pt_PKG_CONFIG=$PKG_CONFIG
29476 # Extract the first word of "pkg-config", so it can be a program name with args.
29477set dummy pkg-config; ac_word=$2
29478echo "$as_me:$LINENO: checking for $ac_word" >&5
29479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29480if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29481 echo $ECHO_N "(cached) $ECHO_C" >&6
29482else
29483 case $ac_pt_PKG_CONFIG in
29484 [\\/]* | ?:[\\/]*)
29485 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29486 ;;
29487 *)
29488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29489for as_dir in $PATH
29490do
29491 IFS=$as_save_IFS
29492 test -z "$as_dir" && as_dir=.
29493 for ac_exec_ext in '' $ac_executable_extensions; do
29494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29495 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29497 break 2
29498 fi
29499done
29500done
29501
29502 ;;
29503esac
29504fi
29505ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29506
29507if test -n "$ac_pt_PKG_CONFIG"; then
29508 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29509echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29510else
29511 echo "$as_me:$LINENO: result: no" >&5
29512echo "${ECHO_T}no" >&6
29513fi
29514
29515 PKG_CONFIG=$ac_pt_PKG_CONFIG
29516else
29517 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29518fi
29519
29520fi
29521if test -n "$PKG_CONFIG"; then
29522 _pkg_min_version=0.9.0
29523 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29524echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29525 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29526 echo "$as_me:$LINENO: result: yes" >&5
29527echo "${ECHO_T}yes" >&6
29528 else
29529 echo "$as_me:$LINENO: result: no" >&5
29530echo "${ECHO_T}no" >&6
29531 PKG_CONFIG=""
29532 fi
29533
29534fi
29535
479c790c 29536
b3c86150
VS
29537pkg_failed=no
29538echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29539echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29540
29541if test -n "$PKG_CONFIG"; then
29542 if test -n "$DIRECTFB_CFLAGS"; then
29543 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29544 else
29545 if test -n "$PKG_CONFIG" && \
d7ae4a62
VS
29546 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29547 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
b3c86150
VS
29548 ac_status=$?
29549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550 (exit $ac_status); }; then
d7ae4a62 29551 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
b3c86150
VS
29552else
29553 pkg_failed=yes
29554fi
29555 fi
29556else
29557 pkg_failed=untried
29558fi
29559if test -n "$PKG_CONFIG"; then
29560 if test -n "$DIRECTFB_LIBS"; then
29561 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29562 else
29563 if test -n "$PKG_CONFIG" && \
d7ae4a62
VS
29564 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29565 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
b3c86150
VS
29566 ac_status=$?
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); }; then
d7ae4a62 29569 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
b3c86150
VS
29570else
29571 pkg_failed=yes
29572fi
29573 fi
29574else
29575 pkg_failed=untried
29576fi
29577
29578
29579
29580if test $pkg_failed = yes; then
29581
29582if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29583 _pkg_short_errors_supported=yes
29584else
29585 _pkg_short_errors_supported=no
29586fi
29587 if test $_pkg_short_errors_supported = yes; then
d7ae4a62 29588 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
b3c86150 29589 else
d7ae4a62 29590 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
b3c86150
VS
29591 fi
29592 # Put the nasty error message in config.log where it belongs
29593 echo "$DIRECTFB_PKG_ERRORS" >&5
29594
29595
29596 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29597echo "$as_me: error: DirectFB not found." >&2;}
29598 { (exit 1); exit 1; }; }
29599
29600
29601elif test $pkg_failed = untried; then
29602
29603 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29604echo "$as_me: error: DirectFB not found." >&2;}
29605 { (exit 1); exit 1; }; }
29606
29607
29608else
29609 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29610 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29611 echo "$as_me:$LINENO: result: yes" >&5
29612echo "${ECHO_T}yes" >&6
29613
29614 wxUSE_UNIVERSAL="yes"
29615 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29616 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29617 TOOLKIT=DFB
29618 GUIDIST=DFB_DIST
29619
29620fi
29621 fi
29622
a848cd7e
SC
29623 if test "$wxUSE_MICROWIN" = 1; then
29624 echo "$as_me:$LINENO: checking for MicroWindows" >&5
29625echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29626 if test "x$MICROWINDOWS" = x ; then
29627 echo "$as_me:$LINENO: result: not found" >&5
29628echo "${ECHO_T}not found" >&6
29629 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29630echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29631 { (exit 1); exit 1; }; }
29632 else
29633 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29634echo "${ECHO_T}$MICROWINDOWS" >&6
29635 fi
29636
29637 if test -f $MICROWINDOWS/lib/libmwin.a; then
29638 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29639echo "${ECHO_T}MicroWindows' libraries found." >&6
29640 else
29641 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29642echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29643 { (exit 1); exit 1; }; }
29644 fi
29645
29646 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29647 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29648
29649 wxUSE_UNIVERSAL="yes"
29650
29651 AFMINSTALL=afminstall
29652 TOOLKIT=MICROWIN
29653 GUIDIST=MICROWIN_DIST
29654
29655 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29656 fi
29657
74b84332 29658 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
bb9e79c0
VZ
29659
29660if test "x$ac_path_x_has_been_run" != xyes; then
29661 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
29662echo $ECHO_N "checking for X... $ECHO_C" >&6
29663
bb9e79c0 29664ac_path_x_has_been_run=yes
a848cd7e
SC
29665
29666# Check whether --with-x or --without-x was given.
29667if test "${with_x+set}" = set; then
29668 withval="$with_x"
29669
29670fi;
29671# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29672if test "x$with_x" = xno; then
29673 # The user explicitly disabled X.
29674 have_x=disabled
29675else
29676 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29677 # Both variables are already set.
29678 have_x=yes
29679 else
29680 if test "${ac_cv_have_x+set}" = set; then
29681 echo $ECHO_N "(cached) $ECHO_C" >&6
29682else
29683 # One or both of the vars are not set, and there is no cached value.
29684ac_x_includes=no ac_x_libraries=no
29685rm -fr conftest.dir
29686if mkdir conftest.dir; then
29687 cd conftest.dir
29688 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29689 cat >Imakefile <<'_ACEOF'
29690acfindx:
29691 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29692_ACEOF
29693 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29694 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29695 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29696 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29697 for ac_extension in a so sl; do
29698 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
29699 test -f $ac_im_libdir/libX11.$ac_extension; then
29700 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
29701 fi
29702 done
29703 # Screen out bogus values from the imake configuration. They are
29704 # bogus both because they are the default anyway, and because
29705 # using them would break gcc on systems where it needs fixed includes.
29706 case $ac_im_incroot in
29707 /usr/include) ;;
29708 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29709 esac
29710 case $ac_im_usrlibdir in
29711 /usr/lib | /lib) ;;
29712 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29713 esac
29714 fi
29715 cd ..
29716 rm -fr conftest.dir
29717fi
29718
29719# Standard set of common directories for X headers.
29720# Check X11 before X11Rn because it is often a symlink to the current release.
29721ac_x_header_dirs='
29722/usr/X11/include
29723/usr/X11R6/include
29724/usr/X11R5/include
29725/usr/X11R4/include
29726
29727/usr/include/X11
29728/usr/include/X11R6
29729/usr/include/X11R5
29730/usr/include/X11R4
29731
29732/usr/local/X11/include
29733/usr/local/X11R6/include
29734/usr/local/X11R5/include
29735/usr/local/X11R4/include
29736
29737/usr/local/include/X11
29738/usr/local/include/X11R6
29739/usr/local/include/X11R5
29740/usr/local/include/X11R4
29741
29742/usr/X386/include
29743/usr/x386/include
29744/usr/XFree86/include/X11
29745
29746/usr/include
29747/usr/local/include
29748/usr/unsupported/include
29749/usr/athena/include
29750/usr/local/x11r5/include
29751/usr/lpp/Xamples/include
29752
29753/usr/openwin/include
29754/usr/openwin/share/include'
29755
29756if test "$ac_x_includes" = no; then
bb9e79c0 29757 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
29758 # First, try using that file with no special directory specified.
29759 cat >conftest.$ac_ext <<_ACEOF
29760/* confdefs.h. */
29761_ACEOF
29762cat confdefs.h >>conftest.$ac_ext
29763cat >>conftest.$ac_ext <<_ACEOF
29764/* end confdefs.h. */
1ecacba4 29765#include <X11/Xlib.h>
a848cd7e
SC
29766_ACEOF
29767if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29769 ac_status=$?
29770 grep -v '^ *+' conftest.er1 >conftest.err
29771 rm -f conftest.er1
29772 cat conftest.err >&5
29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774 (exit $ac_status); } >/dev/null; then
29775 if test -s conftest.err; then
fd5199d6
VZ
29776 ac_cpp_err=$ac_c_preproc_warn_flag
29777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29778 else
29779 ac_cpp_err=
29780 fi
29781else
29782 ac_cpp_err=yes
29783fi
29784if test -z "$ac_cpp_err"; then
29785 # We can compile using X headers with no special include directory.
29786ac_x_includes=
29787else
29788 echo "$as_me: failed program was:" >&5
29789sed 's/^/| /' conftest.$ac_ext >&5
29790
29791 for ac_dir in $ac_x_header_dirs; do
1ecacba4 29792 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
29793 ac_x_includes=$ac_dir
29794 break
29795 fi
29796done
29797fi
29798rm -f conftest.err conftest.$ac_ext
29799fi # $ac_x_includes = no
29800
29801if test "$ac_x_libraries" = no; then
29802 # Check for the libraries.
29803 # See if we find them without any special options.
29804 # Don't add to $LIBS permanently.
29805 ac_save_LIBS=$LIBS
1ecacba4 29806 LIBS="-lX11 $LIBS"
a848cd7e
SC
29807 cat >conftest.$ac_ext <<_ACEOF
29808/* confdefs.h. */
29809_ACEOF
29810cat confdefs.h >>conftest.$ac_ext
29811cat >>conftest.$ac_ext <<_ACEOF
29812/* end confdefs.h. */
1ecacba4 29813#include <X11/Xlib.h>
a848cd7e
SC
29814int
29815main ()
29816{
1ecacba4 29817XrmInitialize ()
a848cd7e
SC
29818 ;
29819 return 0;
29820}
29821_ACEOF
29822rm -f conftest.$ac_objext conftest$ac_exeext
29823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29824 (eval $ac_link) 2>conftest.er1
a848cd7e 29825 ac_status=$?
ac1cb8d3
VS
29826 grep -v '^ *+' conftest.er1 >conftest.err
29827 rm -f conftest.er1
29828 cat conftest.err >&5
a848cd7e
SC
29829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830 (exit $ac_status); } &&
fd5199d6 29831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29833 (eval $ac_try) 2>&5
29834 ac_status=$?
29835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836 (exit $ac_status); }; } &&
29837 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29839 (eval $ac_try) 2>&5
29840 ac_status=$?
29841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842 (exit $ac_status); }; }; then
29843 LIBS=$ac_save_LIBS
29844# We can link X programs with no special library path.
29845ac_x_libraries=
29846else
29847 echo "$as_me: failed program was:" >&5
29848sed 's/^/| /' conftest.$ac_ext >&5
29849
29850LIBS=$ac_save_LIBS
29851for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29852do
29853 # Don't even attempt the hair of trying to link an X program!
29854 for ac_extension in a so sl; do
1ecacba4 29855 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
29856 ac_x_libraries=$ac_dir
29857 break 2
29858 fi
29859 done
29860done
29861fi
ac1cb8d3
VS
29862rm -f conftest.err conftest.$ac_objext \
29863 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29864fi # $ac_x_libraries = no
29865
29866if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29867 # Didn't find X anywhere. Cache the known absence of X.
29868 ac_cv_have_x="have_x=no"
29869else
29870 # Record where we found X for the cache.
29871 ac_cv_have_x="have_x=yes \
ac1cb8d3 29872 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
29873fi
29874fi
29875
29876 fi
29877 eval "$ac_cv_have_x"
29878fi # $with_x != no
29879
29880if test "$have_x" != yes; then
29881 echo "$as_me:$LINENO: result: $have_x" >&5
29882echo "${ECHO_T}$have_x" >&6
29883 no_x=yes
29884else
29885 # If each of the values was on the command line, it overrides each guess.
29886 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29887 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29888 # Update the cache value to reflect the command line values.
29889 ac_cv_have_x="have_x=yes \
29890 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
bb9e79c0
VZ
29891 # It might be that x_includes is empty (headers are found in the
29892 # standard search path. Then output the corresponding message
29893 ac_out_x_includes=$x_includes
29894 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
29895 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
29896echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
29897fi
29898
bb9e79c0 29899fi
a848cd7e
SC
29900if test "$no_x" = yes; then
29901 # Not all programs may use this symbol, but it does not hurt to define it.
29902
29903cat >>confdefs.h <<\_ACEOF
29904#define X_DISPLAY_MISSING 1
29905_ACEOF
29906
29907 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29908else
29909 if test -n "$x_includes"; then
29910 X_CFLAGS="$X_CFLAGS -I$x_includes"
29911 fi
29912
29913 # It would also be nice to do this for all -L options, not just this one.
29914 if test -n "$x_libraries"; then
29915 X_LIBS="$X_LIBS -L$x_libraries"
29916 # For Solaris; some versions of Sun CC require a space after -R and
29917 # others require no space. Words are not sufficient . . . .
29918 case `(uname -sr) 2>/dev/null` in
29919 "SunOS 5"*)
29920 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29921echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29922 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29923 cat >conftest.$ac_ext <<_ACEOF
29924/* confdefs.h. */
29925_ACEOF
29926cat confdefs.h >>conftest.$ac_ext
29927cat >>conftest.$ac_ext <<_ACEOF
29928/* end confdefs.h. */
29929
29930int
29931main ()
29932{
29933
29934 ;
29935 return 0;
29936}
29937_ACEOF
29938rm -f conftest.$ac_objext conftest$ac_exeext
29939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29940 (eval $ac_link) 2>conftest.er1
a848cd7e 29941 ac_status=$?
ac1cb8d3
VS
29942 grep -v '^ *+' conftest.er1 >conftest.err
29943 rm -f conftest.er1
29944 cat conftest.err >&5
a848cd7e
SC
29945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946 (exit $ac_status); } &&
fd5199d6 29947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29949 (eval $ac_try) 2>&5
29950 ac_status=$?
29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); }; } &&
29953 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29955 (eval $ac_try) 2>&5
29956 ac_status=$?
29957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29958 (exit $ac_status); }; }; then
29959 ac_R_nospace=yes
29960else
29961 echo "$as_me: failed program was:" >&5
29962sed 's/^/| /' conftest.$ac_ext >&5
29963
29964ac_R_nospace=no
29965fi
ac1cb8d3
VS
29966rm -f conftest.err conftest.$ac_objext \
29967 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29968 if test $ac_R_nospace = yes; then
29969 echo "$as_me:$LINENO: result: no" >&5
29970echo "${ECHO_T}no" >&6
29971 X_LIBS="$X_LIBS -R$x_libraries"
29972 else
29973 LIBS="$ac_xsave_LIBS -R $x_libraries"
29974 cat >conftest.$ac_ext <<_ACEOF
29975/* confdefs.h. */
29976_ACEOF
29977cat confdefs.h >>conftest.$ac_ext
29978cat >>conftest.$ac_ext <<_ACEOF
29979/* end confdefs.h. */
29980
29981int
29982main ()
29983{
29984
29985 ;
29986 return 0;
29987}
29988_ACEOF
29989rm -f conftest.$ac_objext conftest$ac_exeext
29990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29991 (eval $ac_link) 2>conftest.er1
a848cd7e 29992 ac_status=$?
ac1cb8d3
VS
29993 grep -v '^ *+' conftest.er1 >conftest.err
29994 rm -f conftest.er1
29995 cat conftest.err >&5
a848cd7e
SC
29996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29997 (exit $ac_status); } &&
fd5199d6 29998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30000 (eval $ac_try) 2>&5
30001 ac_status=$?
30002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003 (exit $ac_status); }; } &&
30004 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30006 (eval $ac_try) 2>&5
30007 ac_status=$?
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); }; }; then
30010 ac_R_space=yes
30011else
30012 echo "$as_me: failed program was:" >&5
30013sed 's/^/| /' conftest.$ac_ext >&5
30014
30015ac_R_space=no
30016fi
ac1cb8d3
VS
30017rm -f conftest.err conftest.$ac_objext \
30018 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30019 if test $ac_R_space = yes; then
30020 echo "$as_me:$LINENO: result: yes" >&5
30021echo "${ECHO_T}yes" >&6
30022 X_LIBS="$X_LIBS -R $x_libraries"
30023 else
30024 echo "$as_me:$LINENO: result: neither works" >&5
30025echo "${ECHO_T}neither works" >&6
30026 fi
30027 fi
30028 LIBS=$ac_xsave_LIBS
30029 esac
30030 fi
30031
30032 # Check for system-dependent libraries X programs must link with.
30033 # Do this before checking for the system-independent R6 libraries
30034 # (-lICE), since we may need -lsocket or whatever for X linking.
30035
30036 if test "$ISC" = yes; then
30037 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30038 else
30039 # Martyn Johnson says this is needed for Ultrix, if the X
30040 # libraries were built with DECnet support. And Karl Berry says
30041 # the Alpha needs dnet_stub (dnet does not exist).
30042 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30043 cat >conftest.$ac_ext <<_ACEOF
30044/* confdefs.h. */
30045_ACEOF
30046cat confdefs.h >>conftest.$ac_ext
30047cat >>conftest.$ac_ext <<_ACEOF
30048/* end confdefs.h. */
30049
30050/* Override any gcc2 internal prototype to avoid an error. */
30051#ifdef __cplusplus
30052extern "C"
30053#endif
30054/* We use char because int might match the return type of a gcc2
30055 builtin and then its argument prototype would still apply. */
30056char XOpenDisplay ();
30057int
30058main ()
30059{
30060XOpenDisplay ();
30061 ;
30062 return 0;
30063}
30064_ACEOF
30065rm -f conftest.$ac_objext conftest$ac_exeext
30066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30067 (eval $ac_link) 2>conftest.er1
a848cd7e 30068 ac_status=$?
ac1cb8d3
VS
30069 grep -v '^ *+' conftest.er1 >conftest.err
30070 rm -f conftest.er1
30071 cat conftest.err >&5
a848cd7e
SC
30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); } &&
fd5199d6 30074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30076 (eval $ac_try) 2>&5
30077 ac_status=$?
30078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30079 (exit $ac_status); }; } &&
30080 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30082 (eval $ac_try) 2>&5
30083 ac_status=$?
30084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085 (exit $ac_status); }; }; then
30086 :
30087else
30088 echo "$as_me: failed program was:" >&5
30089sed 's/^/| /' conftest.$ac_ext >&5
30090
30091echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30092echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
30093if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30094 echo $ECHO_N "(cached) $ECHO_C" >&6
30095else
30096 ac_check_lib_save_LIBS=$LIBS
30097LIBS="-ldnet $LIBS"
30098cat >conftest.$ac_ext <<_ACEOF
30099/* confdefs.h. */
30100_ACEOF
30101cat confdefs.h >>conftest.$ac_ext
30102cat >>conftest.$ac_ext <<_ACEOF
30103/* end confdefs.h. */
30104
30105/* Override any gcc2 internal prototype to avoid an error. */
30106#ifdef __cplusplus
30107extern "C"
30108#endif
30109/* We use char because int might match the return type of a gcc2
30110 builtin and then its argument prototype would still apply. */
30111char dnet_ntoa ();
30112int
30113main ()
30114{
30115dnet_ntoa ();
30116 ;
30117 return 0;
30118}
30119_ACEOF
30120rm -f conftest.$ac_objext conftest$ac_exeext
30121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30122 (eval $ac_link) 2>conftest.er1
a848cd7e 30123 ac_status=$?
ac1cb8d3
VS
30124 grep -v '^ *+' conftest.er1 >conftest.err
30125 rm -f conftest.er1
30126 cat conftest.err >&5
a848cd7e
SC
30127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128 (exit $ac_status); } &&
fd5199d6 30129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30131 (eval $ac_try) 2>&5
30132 ac_status=$?
30133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134 (exit $ac_status); }; } &&
30135 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30137 (eval $ac_try) 2>&5
30138 ac_status=$?
30139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140 (exit $ac_status); }; }; then
30141 ac_cv_lib_dnet_dnet_ntoa=yes
30142else
30143 echo "$as_me: failed program was:" >&5
30144sed 's/^/| /' conftest.$ac_ext >&5
30145
30146ac_cv_lib_dnet_dnet_ntoa=no
30147fi
ac1cb8d3
VS
30148rm -f conftest.err conftest.$ac_objext \
30149 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30150LIBS=$ac_check_lib_save_LIBS
30151fi
30152echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30153echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
30154if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30155 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30156fi
30157
30158 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30159 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30160echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
30161if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30162 echo $ECHO_N "(cached) $ECHO_C" >&6
30163else
30164 ac_check_lib_save_LIBS=$LIBS
30165LIBS="-ldnet_stub $LIBS"
30166cat >conftest.$ac_ext <<_ACEOF
30167/* confdefs.h. */
30168_ACEOF
30169cat confdefs.h >>conftest.$ac_ext
30170cat >>conftest.$ac_ext <<_ACEOF
30171/* end confdefs.h. */
30172
30173/* Override any gcc2 internal prototype to avoid an error. */
30174#ifdef __cplusplus
30175extern "C"
30176#endif
30177/* We use char because int might match the return type of a gcc2
30178 builtin and then its argument prototype would still apply. */
30179char dnet_ntoa ();
30180int
30181main ()
30182{
30183dnet_ntoa ();
30184 ;
30185 return 0;
30186}
30187_ACEOF
30188rm -f conftest.$ac_objext conftest$ac_exeext
30189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30190 (eval $ac_link) 2>conftest.er1
a848cd7e 30191 ac_status=$?
ac1cb8d3
VS
30192 grep -v '^ *+' conftest.er1 >conftest.err
30193 rm -f conftest.er1
30194 cat conftest.err >&5
a848cd7e
SC
30195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196 (exit $ac_status); } &&
fd5199d6 30197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30199 (eval $ac_try) 2>&5
30200 ac_status=$?
30201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30202 (exit $ac_status); }; } &&
30203 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30205 (eval $ac_try) 2>&5
30206 ac_status=$?
30207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208 (exit $ac_status); }; }; then
30209 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30210else
30211 echo "$as_me: failed program was:" >&5
30212sed 's/^/| /' conftest.$ac_ext >&5
30213
30214ac_cv_lib_dnet_stub_dnet_ntoa=no
30215fi
ac1cb8d3
VS
30216rm -f conftest.err conftest.$ac_objext \
30217 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30218LIBS=$ac_check_lib_save_LIBS
30219fi
30220echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30221echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
30222if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30223 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30224fi
30225
30226 fi
30227fi
ac1cb8d3
VS
30228rm -f conftest.err conftest.$ac_objext \
30229 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30230 LIBS="$ac_xsave_LIBS"
30231
30232 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30233 # to get the SysV transport functions.
30234 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30235 # needs -lnsl.
30236 # The nsl library prevents programs from opening the X display
30237 # on Irix 5.2, according to T.E. Dickey.
30238 # The functions gethostbyname, getservbyname, and inet_addr are
30239 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30240 echo "$as_me:$LINENO: checking for gethostbyname" >&5
30241echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
30242if test "${ac_cv_func_gethostbyname+set}" = set; then
30243 echo $ECHO_N "(cached) $ECHO_C" >&6
30244else
30245 cat >conftest.$ac_ext <<_ACEOF
30246/* confdefs.h. */
30247_ACEOF
30248cat confdefs.h >>conftest.$ac_ext
30249cat >>conftest.$ac_ext <<_ACEOF
30250/* end confdefs.h. */
ac1cb8d3
VS
30251/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30253#define gethostbyname innocuous_gethostbyname
30254
a848cd7e
SC
30255/* System header to define __stub macros and hopefully few prototypes,
30256 which can conflict with char gethostbyname (); below.
30257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30258 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30259
a848cd7e
SC
30260#ifdef __STDC__
30261# include <limits.h>
30262#else
30263# include <assert.h>
30264#endif
ac1cb8d3
VS
30265
30266#undef gethostbyname
30267
a848cd7e
SC
30268/* Override any gcc2 internal prototype to avoid an error. */
30269#ifdef __cplusplus
30270extern "C"
30271{
30272#endif
30273/* We use char because int might match the return type of a gcc2
30274 builtin and then its argument prototype would still apply. */
30275char gethostbyname ();
30276/* The GNU C library defines this for functions which it implements
30277 to always fail with ENOSYS. Some functions are actually named
30278 something starting with __ and the normal name is an alias. */
30279#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
30280choke me
30281#else
30282char (*f) () = gethostbyname;
30283#endif
30284#ifdef __cplusplus
30285}
30286#endif
30287
30288int
30289main ()
30290{
30291return f != gethostbyname;
30292 ;
30293 return 0;
30294}
30295_ACEOF
30296rm -f conftest.$ac_objext conftest$ac_exeext
30297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30298 (eval $ac_link) 2>conftest.er1
a848cd7e 30299 ac_status=$?
ac1cb8d3
VS
30300 grep -v '^ *+' conftest.er1 >conftest.err
30301 rm -f conftest.er1
30302 cat conftest.err >&5
a848cd7e
SC
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); } &&
fd5199d6 30305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30307 (eval $ac_try) 2>&5
30308 ac_status=$?
30309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30310 (exit $ac_status); }; } &&
30311 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30313 (eval $ac_try) 2>&5
30314 ac_status=$?
30315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30316 (exit $ac_status); }; }; then
30317 ac_cv_func_gethostbyname=yes
30318else
30319 echo "$as_me: failed program was:" >&5
30320sed 's/^/| /' conftest.$ac_ext >&5
30321
30322ac_cv_func_gethostbyname=no
30323fi
ac1cb8d3
VS
30324rm -f conftest.err conftest.$ac_objext \
30325 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30326fi
30327echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30328echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
30329
30330 if test $ac_cv_func_gethostbyname = no; then
30331 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30332echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
30333if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30334 echo $ECHO_N "(cached) $ECHO_C" >&6
30335else
30336 ac_check_lib_save_LIBS=$LIBS
30337LIBS="-lnsl $LIBS"
30338cat >conftest.$ac_ext <<_ACEOF
30339/* confdefs.h. */
30340_ACEOF
30341cat confdefs.h >>conftest.$ac_ext
30342cat >>conftest.$ac_ext <<_ACEOF
30343/* end confdefs.h. */
30344
30345/* Override any gcc2 internal prototype to avoid an error. */
30346#ifdef __cplusplus
30347extern "C"
30348#endif
30349/* We use char because int might match the return type of a gcc2
30350 builtin and then its argument prototype would still apply. */
30351char gethostbyname ();
30352int
30353main ()
30354{
30355gethostbyname ();
30356 ;
30357 return 0;
30358}
30359_ACEOF
30360rm -f conftest.$ac_objext conftest$ac_exeext
30361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
30362 (eval $ac_link) 2>conftest.er1
30363 ac_status=$?
30364 grep -v '^ *+' conftest.er1 >conftest.err
30365 rm -f conftest.er1
30366 cat conftest.err >&5
30367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368 (exit $ac_status); } &&
fd5199d6 30369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30371 (eval $ac_try) 2>&5
30372 ac_status=$?
30373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374 (exit $ac_status); }; } &&
30375 { ac_try='test -s conftest$ac_exeext'
30376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30377 (eval $ac_try) 2>&5
30378 ac_status=$?
30379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30380 (exit $ac_status); }; }; then
30381 ac_cv_lib_nsl_gethostbyname=yes
30382else
30383 echo "$as_me: failed program was:" >&5
30384sed 's/^/| /' conftest.$ac_ext >&5
30385
30386ac_cv_lib_nsl_gethostbyname=no
30387fi
30388rm -f conftest.err conftest.$ac_objext \
30389 conftest$ac_exeext conftest.$ac_ext
30390LIBS=$ac_check_lib_save_LIBS
30391fi
30392echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30393echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
30394if test $ac_cv_lib_nsl_gethostbyname = yes; then
30395 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30396fi
30397
30398 if test $ac_cv_lib_nsl_gethostbyname = no; then
30399 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30400echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
30401if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30402 echo $ECHO_N "(cached) $ECHO_C" >&6
30403else
30404 ac_check_lib_save_LIBS=$LIBS
30405LIBS="-lbsd $LIBS"
30406cat >conftest.$ac_ext <<_ACEOF
30407/* confdefs.h. */
30408_ACEOF
30409cat confdefs.h >>conftest.$ac_ext
30410cat >>conftest.$ac_ext <<_ACEOF
30411/* end confdefs.h. */
30412
30413/* Override any gcc2 internal prototype to avoid an error. */
30414#ifdef __cplusplus
30415extern "C"
30416#endif
30417/* We use char because int might match the return type of a gcc2
30418 builtin and then its argument prototype would still apply. */
30419char gethostbyname ();
30420int
30421main ()
30422{
30423gethostbyname ();
30424 ;
30425 return 0;
30426}
30427_ACEOF
30428rm -f conftest.$ac_objext conftest$ac_exeext
30429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30430 (eval $ac_link) 2>conftest.er1
a848cd7e 30431 ac_status=$?
ac1cb8d3
VS
30432 grep -v '^ *+' conftest.er1 >conftest.err
30433 rm -f conftest.er1
30434 cat conftest.err >&5
a848cd7e
SC
30435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436 (exit $ac_status); } &&
fd5199d6 30437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30439 (eval $ac_try) 2>&5
30440 ac_status=$?
30441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
30442 (exit $ac_status); }; } &&
30443 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30445 (eval $ac_try) 2>&5
30446 ac_status=$?
30447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448 (exit $ac_status); }; }; then
30449 ac_cv_lib_bsd_gethostbyname=yes
30450else
30451 echo "$as_me: failed program was:" >&5
30452sed 's/^/| /' conftest.$ac_ext >&5
30453
30454ac_cv_lib_bsd_gethostbyname=no
30455fi
ac1cb8d3
VS
30456rm -f conftest.err conftest.$ac_objext \
30457 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30458LIBS=$ac_check_lib_save_LIBS
30459fi
30460echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30461echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
30462if test $ac_cv_lib_bsd_gethostbyname = yes; then
30463 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30464fi
30465
30466 fi
30467 fi
30468
30469 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30470 # socket/setsockopt and other routines are undefined under SCO ODT
30471 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30472 # on later versions), says Simon Leinen: it contains gethostby*
30473 # variants that don't use the name server (or something). -lsocket
30474 # must be given before -lnsl if both are needed. We assume that
30475 # if connect needs -lnsl, so does gethostbyname.
30476 echo "$as_me:$LINENO: checking for connect" >&5
30477echo $ECHO_N "checking for connect... $ECHO_C" >&6
30478if test "${ac_cv_func_connect+set}" = set; then
30479 echo $ECHO_N "(cached) $ECHO_C" >&6
30480else
30481 cat >conftest.$ac_ext <<_ACEOF
30482/* confdefs.h. */
30483_ACEOF
30484cat confdefs.h >>conftest.$ac_ext
30485cat >>conftest.$ac_ext <<_ACEOF
30486/* end confdefs.h. */
ac1cb8d3
VS
30487/* Define connect to an innocuous variant, in case <limits.h> declares connect.
30488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30489#define connect innocuous_connect
30490
a848cd7e
SC
30491/* System header to define __stub macros and hopefully few prototypes,
30492 which can conflict with char connect (); below.
30493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30494 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30495
a848cd7e
SC
30496#ifdef __STDC__
30497# include <limits.h>
30498#else
30499# include <assert.h>
30500#endif
ac1cb8d3
VS
30501
30502#undef connect
30503
a848cd7e
SC
30504/* Override any gcc2 internal prototype to avoid an error. */
30505#ifdef __cplusplus
30506extern "C"
30507{
30508#endif
30509/* We use char because int might match the return type of a gcc2
30510 builtin and then its argument prototype would still apply. */
30511char connect ();
30512/* The GNU C library defines this for functions which it implements
30513 to always fail with ENOSYS. Some functions are actually named
30514 something starting with __ and the normal name is an alias. */
30515#if defined (__stub_connect) || defined (__stub___connect)
30516choke me
30517#else
30518char (*f) () = connect;
30519#endif
30520#ifdef __cplusplus
30521}
30522#endif
30523
30524int
30525main ()
30526{
30527return f != connect;
30528 ;
30529 return 0;
30530}
30531_ACEOF
30532rm -f conftest.$ac_objext conftest$ac_exeext
30533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30534 (eval $ac_link) 2>conftest.er1
a848cd7e 30535 ac_status=$?
ac1cb8d3
VS
30536 grep -v '^ *+' conftest.er1 >conftest.err
30537 rm -f conftest.er1
30538 cat conftest.err >&5
a848cd7e
SC
30539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30540 (exit $ac_status); } &&
fd5199d6 30541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30543 (eval $ac_try) 2>&5
30544 ac_status=$?
30545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546 (exit $ac_status); }; } &&
30547 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30549 (eval $ac_try) 2>&5
30550 ac_status=$?
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); }; }; then
30553 ac_cv_func_connect=yes
30554else
30555 echo "$as_me: failed program was:" >&5
30556sed 's/^/| /' conftest.$ac_ext >&5
30557
30558ac_cv_func_connect=no
30559fi
ac1cb8d3
VS
30560rm -f conftest.err conftest.$ac_objext \
30561 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30562fi
30563echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30564echo "${ECHO_T}$ac_cv_func_connect" >&6
30565
30566 if test $ac_cv_func_connect = no; then
30567 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30568echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30569if test "${ac_cv_lib_socket_connect+set}" = set; then
30570 echo $ECHO_N "(cached) $ECHO_C" >&6
30571else
30572 ac_check_lib_save_LIBS=$LIBS
30573LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30574cat >conftest.$ac_ext <<_ACEOF
30575/* confdefs.h. */
30576_ACEOF
30577cat confdefs.h >>conftest.$ac_ext
30578cat >>conftest.$ac_ext <<_ACEOF
30579/* end confdefs.h. */
30580
30581/* Override any gcc2 internal prototype to avoid an error. */
30582#ifdef __cplusplus
30583extern "C"
30584#endif
30585/* We use char because int might match the return type of a gcc2
30586 builtin and then its argument prototype would still apply. */
30587char connect ();
30588int
30589main ()
30590{
30591connect ();
30592 ;
30593 return 0;
30594}
30595_ACEOF
30596rm -f conftest.$ac_objext conftest$ac_exeext
30597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30598 (eval $ac_link) 2>conftest.er1
a848cd7e 30599 ac_status=$?
ac1cb8d3
VS
30600 grep -v '^ *+' conftest.er1 >conftest.err
30601 rm -f conftest.er1
30602 cat conftest.err >&5
a848cd7e
SC
30603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30604 (exit $ac_status); } &&
fd5199d6 30605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30607 (eval $ac_try) 2>&5
30608 ac_status=$?
30609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30610 (exit $ac_status); }; } &&
30611 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30613 (eval $ac_try) 2>&5
30614 ac_status=$?
30615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616 (exit $ac_status); }; }; then
30617 ac_cv_lib_socket_connect=yes
30618else
30619 echo "$as_me: failed program was:" >&5
30620sed 's/^/| /' conftest.$ac_ext >&5
30621
30622ac_cv_lib_socket_connect=no
30623fi
ac1cb8d3
VS
30624rm -f conftest.err conftest.$ac_objext \
30625 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30626LIBS=$ac_check_lib_save_LIBS
30627fi
30628echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30629echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30630if test $ac_cv_lib_socket_connect = yes; then
30631 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30632fi
30633
30634 fi
30635
30636 # Guillermo Gomez says -lposix is necessary on A/UX.
30637 echo "$as_me:$LINENO: checking for remove" >&5
30638echo $ECHO_N "checking for remove... $ECHO_C" >&6
30639if test "${ac_cv_func_remove+set}" = set; then
30640 echo $ECHO_N "(cached) $ECHO_C" >&6
30641else
30642 cat >conftest.$ac_ext <<_ACEOF
30643/* confdefs.h. */
30644_ACEOF
30645cat confdefs.h >>conftest.$ac_ext
30646cat >>conftest.$ac_ext <<_ACEOF
30647/* end confdefs.h. */
ac1cb8d3
VS
30648/* Define remove to an innocuous variant, in case <limits.h> declares remove.
30649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30650#define remove innocuous_remove
30651
a848cd7e
SC
30652/* System header to define __stub macros and hopefully few prototypes,
30653 which can conflict with char remove (); below.
30654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30655 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30656
a848cd7e
SC
30657#ifdef __STDC__
30658# include <limits.h>
30659#else
30660# include <assert.h>
30661#endif
ac1cb8d3
VS
30662
30663#undef remove
30664
a848cd7e
SC
30665/* Override any gcc2 internal prototype to avoid an error. */
30666#ifdef __cplusplus
30667extern "C"
30668{
30669#endif
30670/* We use char because int might match the return type of a gcc2
30671 builtin and then its argument prototype would still apply. */
30672char remove ();
30673/* The GNU C library defines this for functions which it implements
30674 to always fail with ENOSYS. Some functions are actually named
30675 something starting with __ and the normal name is an alias. */
30676#if defined (__stub_remove) || defined (__stub___remove)
30677choke me
30678#else
30679char (*f) () = remove;
30680#endif
30681#ifdef __cplusplus
30682}
30683#endif
30684
30685int
30686main ()
30687{
30688return f != remove;
30689 ;
30690 return 0;
30691}
30692_ACEOF
30693rm -f conftest.$ac_objext conftest$ac_exeext
30694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30695 (eval $ac_link) 2>conftest.er1
a848cd7e 30696 ac_status=$?
ac1cb8d3
VS
30697 grep -v '^ *+' conftest.er1 >conftest.err
30698 rm -f conftest.er1
30699 cat conftest.err >&5
a848cd7e
SC
30700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30701 (exit $ac_status); } &&
fd5199d6 30702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30704 (eval $ac_try) 2>&5
30705 ac_status=$?
30706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707 (exit $ac_status); }; } &&
30708 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30710 (eval $ac_try) 2>&5
30711 ac_status=$?
30712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30713 (exit $ac_status); }; }; then
30714 ac_cv_func_remove=yes
30715else
30716 echo "$as_me: failed program was:" >&5
30717sed 's/^/| /' conftest.$ac_ext >&5
30718
30719ac_cv_func_remove=no
30720fi
ac1cb8d3
VS
30721rm -f conftest.err conftest.$ac_objext \
30722 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30723fi
30724echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30725echo "${ECHO_T}$ac_cv_func_remove" >&6
30726
30727 if test $ac_cv_func_remove = no; then
30728 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30729echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30730if test "${ac_cv_lib_posix_remove+set}" = set; then
30731 echo $ECHO_N "(cached) $ECHO_C" >&6
30732else
30733 ac_check_lib_save_LIBS=$LIBS
30734LIBS="-lposix $LIBS"
30735cat >conftest.$ac_ext <<_ACEOF
30736/* confdefs.h. */
30737_ACEOF
30738cat confdefs.h >>conftest.$ac_ext
30739cat >>conftest.$ac_ext <<_ACEOF
30740/* end confdefs.h. */
30741
30742/* Override any gcc2 internal prototype to avoid an error. */
30743#ifdef __cplusplus
30744extern "C"
30745#endif
30746/* We use char because int might match the return type of a gcc2
30747 builtin and then its argument prototype would still apply. */
30748char remove ();
30749int
30750main ()
30751{
30752remove ();
30753 ;
30754 return 0;
30755}
30756_ACEOF
30757rm -f conftest.$ac_objext conftest$ac_exeext
30758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30759 (eval $ac_link) 2>conftest.er1
a848cd7e 30760 ac_status=$?
ac1cb8d3
VS
30761 grep -v '^ *+' conftest.er1 >conftest.err
30762 rm -f conftest.er1
30763 cat conftest.err >&5
a848cd7e
SC
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); } &&
fd5199d6 30766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30768 (eval $ac_try) 2>&5
30769 ac_status=$?
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); }; } &&
30772 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30774 (eval $ac_try) 2>&5
30775 ac_status=$?
30776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777 (exit $ac_status); }; }; then
30778 ac_cv_lib_posix_remove=yes
30779else
30780 echo "$as_me: failed program was:" >&5
30781sed 's/^/| /' conftest.$ac_ext >&5
30782
30783ac_cv_lib_posix_remove=no
30784fi
ac1cb8d3
VS
30785rm -f conftest.err conftest.$ac_objext \
30786 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30787LIBS=$ac_check_lib_save_LIBS
30788fi
30789echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30790echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30791if test $ac_cv_lib_posix_remove = yes; then
30792 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30793fi
30794
30795 fi
30796
30797 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30798 echo "$as_me:$LINENO: checking for shmat" >&5
30799echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30800if test "${ac_cv_func_shmat+set}" = set; then
30801 echo $ECHO_N "(cached) $ECHO_C" >&6
30802else
30803 cat >conftest.$ac_ext <<_ACEOF
30804/* confdefs.h. */
30805_ACEOF
30806cat confdefs.h >>conftest.$ac_ext
30807cat >>conftest.$ac_ext <<_ACEOF
30808/* end confdefs.h. */
ac1cb8d3
VS
30809/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30811#define shmat innocuous_shmat
30812
a848cd7e
SC
30813/* System header to define __stub macros and hopefully few prototypes,
30814 which can conflict with char shmat (); below.
30815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30816 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30817
a848cd7e
SC
30818#ifdef __STDC__
30819# include <limits.h>
30820#else
30821# include <assert.h>
30822#endif
ac1cb8d3
VS
30823
30824#undef shmat
30825
a848cd7e
SC
30826/* Override any gcc2 internal prototype to avoid an error. */
30827#ifdef __cplusplus
30828extern "C"
30829{
30830#endif
30831/* We use char because int might match the return type of a gcc2
30832 builtin and then its argument prototype would still apply. */
30833char shmat ();
30834/* The GNU C library defines this for functions which it implements
30835 to always fail with ENOSYS. Some functions are actually named
30836 something starting with __ and the normal name is an alias. */
30837#if defined (__stub_shmat) || defined (__stub___shmat)
30838choke me
30839#else
30840char (*f) () = shmat;
30841#endif
30842#ifdef __cplusplus
30843}
30844#endif
30845
30846int
30847main ()
30848{
30849return f != shmat;
30850 ;
30851 return 0;
30852}
30853_ACEOF
30854rm -f conftest.$ac_objext conftest$ac_exeext
30855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30856 (eval $ac_link) 2>conftest.er1
a848cd7e 30857 ac_status=$?
ac1cb8d3
VS
30858 grep -v '^ *+' conftest.er1 >conftest.err
30859 rm -f conftest.er1
30860 cat conftest.err >&5
a848cd7e
SC
30861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30862 (exit $ac_status); } &&
fd5199d6 30863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30865 (eval $ac_try) 2>&5
30866 ac_status=$?
30867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30868 (exit $ac_status); }; } &&
30869 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30871 (eval $ac_try) 2>&5
30872 ac_status=$?
30873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30874 (exit $ac_status); }; }; then
30875 ac_cv_func_shmat=yes
30876else
30877 echo "$as_me: failed program was:" >&5
30878sed 's/^/| /' conftest.$ac_ext >&5
30879
30880ac_cv_func_shmat=no
30881fi
ac1cb8d3
VS
30882rm -f conftest.err conftest.$ac_objext \
30883 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30884fi
30885echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30886echo "${ECHO_T}$ac_cv_func_shmat" >&6
30887
30888 if test $ac_cv_func_shmat = no; then
30889 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30890echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30891if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30892 echo $ECHO_N "(cached) $ECHO_C" >&6
30893else
30894 ac_check_lib_save_LIBS=$LIBS
30895LIBS="-lipc $LIBS"
30896cat >conftest.$ac_ext <<_ACEOF
30897/* confdefs.h. */
30898_ACEOF
30899cat confdefs.h >>conftest.$ac_ext
30900cat >>conftest.$ac_ext <<_ACEOF
30901/* end confdefs.h. */
30902
30903/* Override any gcc2 internal prototype to avoid an error. */
30904#ifdef __cplusplus
30905extern "C"
30906#endif
30907/* We use char because int might match the return type of a gcc2
30908 builtin and then its argument prototype would still apply. */
30909char shmat ();
30910int
30911main ()
30912{
30913shmat ();
30914 ;
30915 return 0;
30916}
30917_ACEOF
30918rm -f conftest.$ac_objext conftest$ac_exeext
30919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30920 (eval $ac_link) 2>conftest.er1
a848cd7e 30921 ac_status=$?
ac1cb8d3
VS
30922 grep -v '^ *+' conftest.er1 >conftest.err
30923 rm -f conftest.er1
30924 cat conftest.err >&5
a848cd7e
SC
30925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30926 (exit $ac_status); } &&
fd5199d6 30927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30929 (eval $ac_try) 2>&5
30930 ac_status=$?
30931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30932 (exit $ac_status); }; } &&
30933 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30935 (eval $ac_try) 2>&5
30936 ac_status=$?
30937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30938 (exit $ac_status); }; }; then
30939 ac_cv_lib_ipc_shmat=yes
30940else
30941 echo "$as_me: failed program was:" >&5
30942sed 's/^/| /' conftest.$ac_ext >&5
30943
30944ac_cv_lib_ipc_shmat=no
30945fi
ac1cb8d3
VS
30946rm -f conftest.err conftest.$ac_objext \
30947 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30948LIBS=$ac_check_lib_save_LIBS
30949fi
30950echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30951echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30952if test $ac_cv_lib_ipc_shmat = yes; then
30953 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30954fi
30955
30956 fi
30957 fi
30958
30959 # Check for libraries that X11R6 Xt/Xaw programs need.
30960 ac_save_LDFLAGS=$LDFLAGS
30961 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30962 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30963 # check for ICE first), but we must link in the order -lSM -lICE or
30964 # we get undefined symbols. So assume we have SM if we have ICE.
30965 # These have to be linked with before -lX11, unlike the other
30966 # libraries we check for below, so use a different variable.
30967 # John Interrante, Karl Berry
30968 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30969echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30970if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30971 echo $ECHO_N "(cached) $ECHO_C" >&6
30972else
30973 ac_check_lib_save_LIBS=$LIBS
30974LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30975cat >conftest.$ac_ext <<_ACEOF
30976/* confdefs.h. */
30977_ACEOF
30978cat confdefs.h >>conftest.$ac_ext
30979cat >>conftest.$ac_ext <<_ACEOF
30980/* end confdefs.h. */
30981
30982/* Override any gcc2 internal prototype to avoid an error. */
30983#ifdef __cplusplus
30984extern "C"
30985#endif
30986/* We use char because int might match the return type of a gcc2
30987 builtin and then its argument prototype would still apply. */
30988char IceConnectionNumber ();
30989int
30990main ()
30991{
30992IceConnectionNumber ();
30993 ;
30994 return 0;
30995}
30996_ACEOF
30997rm -f conftest.$ac_objext conftest$ac_exeext
30998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30999 (eval $ac_link) 2>conftest.er1
a848cd7e 31000 ac_status=$?
ac1cb8d3
VS
31001 grep -v '^ *+' conftest.er1 >conftest.err
31002 rm -f conftest.er1
31003 cat conftest.err >&5
a848cd7e
SC
31004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31005 (exit $ac_status); } &&
fd5199d6 31006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31008 (eval $ac_try) 2>&5
31009 ac_status=$?
31010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011 (exit $ac_status); }; } &&
31012 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31014 (eval $ac_try) 2>&5
31015 ac_status=$?
31016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017 (exit $ac_status); }; }; then
31018 ac_cv_lib_ICE_IceConnectionNumber=yes
31019else
31020 echo "$as_me: failed program was:" >&5
31021sed 's/^/| /' conftest.$ac_ext >&5
31022
31023ac_cv_lib_ICE_IceConnectionNumber=no
31024fi
ac1cb8d3
VS
31025rm -f conftest.err conftest.$ac_objext \
31026 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31027LIBS=$ac_check_lib_save_LIBS
31028fi
31029echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31030echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
31031if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31032 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31033fi
31034
31035 LDFLAGS=$ac_save_LDFLAGS
31036
31037fi
31038
31039
31040 if test "$no_x" = "yes"; then
89d90d6d
VZ
31041 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31042echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31043 { (exit 1); exit 1; }; }
a848cd7e
SC
31044 fi
31045
74b84332
VS
31046 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31047 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
31048 AFMINSTALL=afminstall
31049 COMPILED_X_PROGRAM=0
31050
74b84332
VS
31051 fi
31052
31053 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
31054 if test "$wxUSE_NANOX" = "yes"; then
31055 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31056echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
31057 if test "x$MICROWIN" = x ; then
31058 echo "$as_me:$LINENO: result: not found" >&5
31059echo "${ECHO_T}not found" >&6
31060 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31061echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31062 { (exit 1); exit 1; }; }
31063 else
31064 echo "$as_me:$LINENO: result: $MICROWIN" >&5
31065echo "${ECHO_T}$MICROWIN" >&6
31066 cat >>confdefs.h <<\_ACEOF
31067#define wxUSE_NANOX 1
31068_ACEOF
31069
31070 fi
31071 fi
31072
31073 if test "$wxUSE_UNICODE" = "yes"; then
31074
479c790c
VZ
31075
31076if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31077 if test -n "$ac_tool_prefix"; then
31078 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31079set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31080echo "$as_me:$LINENO: checking for $ac_word" >&5
31081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31082if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31083 echo $ECHO_N "(cached) $ECHO_C" >&6
31084else
31085 case $PKG_CONFIG in
31086 [\\/]* | ?:[\\/]*)
31087 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31088 ;;
31089 *)
31090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31091for as_dir in $PATH
31092do
31093 IFS=$as_save_IFS
31094 test -z "$as_dir" && as_dir=.
31095 for ac_exec_ext in '' $ac_executable_extensions; do
31096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31097 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31099 break 2
31100 fi
31101done
31102done
31103
31104 ;;
31105esac
31106fi
31107PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31108
31109if test -n "$PKG_CONFIG"; then
31110 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31111echo "${ECHO_T}$PKG_CONFIG" >&6
31112else
31113 echo "$as_me:$LINENO: result: no" >&5
31114echo "${ECHO_T}no" >&6
31115fi
31116
31117fi
31118if test -z "$ac_cv_path_PKG_CONFIG"; then
31119 ac_pt_PKG_CONFIG=$PKG_CONFIG
31120 # Extract the first word of "pkg-config", so it can be a program name with args.
31121set dummy pkg-config; ac_word=$2
31122echo "$as_me:$LINENO: checking for $ac_word" >&5
31123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31124if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31125 echo $ECHO_N "(cached) $ECHO_C" >&6
31126else
31127 case $ac_pt_PKG_CONFIG in
31128 [\\/]* | ?:[\\/]*)
31129 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31130 ;;
31131 *)
31132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31133for as_dir in $PATH
31134do
31135 IFS=$as_save_IFS
31136 test -z "$as_dir" && as_dir=.
31137 for ac_exec_ext in '' $ac_executable_extensions; do
31138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31139 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31141 break 2
31142 fi
31143done
31144done
31145
31146 ;;
31147esac
31148fi
31149ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31150
31151if test -n "$ac_pt_PKG_CONFIG"; then
31152 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31153echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
31154else
31155 echo "$as_me:$LINENO: result: no" >&5
31156echo "${ECHO_T}no" >&6
31157fi
31158
31159 PKG_CONFIG=$ac_pt_PKG_CONFIG
31160else
31161 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31162fi
31163
31164fi
31165if test -n "$PKG_CONFIG"; then
31166 _pkg_min_version=0.9.0
31167 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31168echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
31169 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31170 echo "$as_me:$LINENO: result: yes" >&5
31171echo "${ECHO_T}yes" >&6
31172 else
31173 echo "$as_me:$LINENO: result: no" >&5
31174echo "${ECHO_T}no" >&6
31175 PKG_CONFIG=""
31176 fi
31177
31178fi
31179
31180
3ecd9f92
MW
31181pkg_failed=no
31182echo "$as_me:$LINENO: checking for PANGOX" >&5
31183echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 31184
3ecd9f92
MW
31185if test -n "$PKG_CONFIG"; then
31186 if test -n "$PANGOX_CFLAGS"; then
31187 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31188 else
31189 if test -n "$PKG_CONFIG" && \
31190 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31191 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31192 ac_status=$?
31193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194 (exit $ac_status); }; then
31195 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31196else
31197 pkg_failed=yes
31198fi
31199 fi
31200else
31201 pkg_failed=untried
31202fi
31203if test -n "$PKG_CONFIG"; then
31204 if test -n "$PANGOX_LIBS"; then
31205 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31206 else
31207 if test -n "$PKG_CONFIG" && \
31208 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31209 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31210 ac_status=$?
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); }; then
31213 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31214else
31215 pkg_failed=yes
31216fi
31217 fi
31218else
31219 pkg_failed=untried
31220fi
31221
31222
31223
31224if test $pkg_failed = yes; then
31225
31226if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31227 _pkg_short_errors_supported=yes
31228else
31229 _pkg_short_errors_supported=no
31230fi
31231 if test $_pkg_short_errors_supported = yes; then
31232 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31233 else
31234 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 31235 fi
3ecd9f92
MW
31236 # Put the nasty error message in config.log where it belongs
31237 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
31238
31239
479c790c 31240 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
31241echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31242 { (exit 1); exit 1; }; }
a848cd7e 31243
a848cd7e 31244
3ecd9f92 31245elif test $pkg_failed = untried; then
a848cd7e 31246
479c790c 31247 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
31248echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31249 { (exit 1); exit 1; }; }
31250
31251
31252else
31253 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31254 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31255 echo "$as_me:$LINENO: result: yes" >&5
31256echo "${ECHO_T}yes" >&6
31257
9b8888f9 31258 CFLAGS="$PANGOX_CFLAGS $CFLAGS"
479c790c
VZ
31259 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31260 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
3ecd9f92
MW
31261
31262fi
31263
31264pkg_failed=no
31265echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31266echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
31267
31268if test -n "$PKG_CONFIG"; then
31269 if test -n "$PANGOFT2_CFLAGS"; then
31270 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31271 else
31272 if test -n "$PKG_CONFIG" && \
31273 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31274 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31275 ac_status=$?
31276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31277 (exit $ac_status); }; then
31278 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31279else
31280 pkg_failed=yes
31281fi
31282 fi
31283else
31284 pkg_failed=untried
31285fi
31286if test -n "$PKG_CONFIG"; then
31287 if test -n "$PANGOFT2_LIBS"; then
31288 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31289 else
31290 if test -n "$PKG_CONFIG" && \
31291 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31292 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31293 ac_status=$?
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295 (exit $ac_status); }; then
31296 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31297else
31298 pkg_failed=yes
31299fi
31300 fi
31301else
31302 pkg_failed=untried
31303fi
31304
31305
31306
31307if test $pkg_failed = yes; then
31308
31309if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31310 _pkg_short_errors_supported=yes
31311else
31312 _pkg_short_errors_supported=no
31313fi
31314 if test $_pkg_short_errors_supported = yes; then
31315 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31316 else
31317 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31318 fi
31319 # Put the nasty error message in config.log where it belongs
31320 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 31321
a848cd7e 31322
479c790c 31323 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
a848cd7e 31324echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 31325 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e
SC
31326
31327
3ecd9f92 31328elif test $pkg_failed = untried; then
a848cd7e 31329
479c790c 31330 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
3ecd9f92 31331echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 31332 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 31333
a848cd7e 31334
a848cd7e 31335else
3ecd9f92
MW
31336 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31337 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31338 echo "$as_me:$LINENO: result: yes" >&5
31339echo "${ECHO_T}yes" >&6
31340
9b8888f9 31341 CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
479c790c
VZ
31342 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31343 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 31344
a848cd7e 31345fi
3ecd9f92
MW
31346
31347pkg_failed=no
31348echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31349echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
31350
31351if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
31352 if test -n "$PANGOXFT_CFLAGS"; then
31353 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31354 else
31355 if test -n "$PKG_CONFIG" && \
31356 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31357 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31358 ac_status=$?
31359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360 (exit $ac_status); }; then
31361 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 31362else
3ecd9f92
MW
31363 pkg_failed=yes
31364fi
31365 fi
31366else
31367 pkg_failed=untried
31368fi
31369if test -n "$PKG_CONFIG"; then
31370 if test -n "$PANGOXFT_LIBS"; then
31371 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31372 else
31373 if test -n "$PKG_CONFIG" && \
31374 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31375 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31376 ac_status=$?
31377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378 (exit $ac_status); }; then
31379 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31380else
31381 pkg_failed=yes
31382fi
31383 fi
31384else
31385 pkg_failed=untried
a848cd7e
SC
31386fi
31387
a848cd7e 31388
a848cd7e 31389
3ecd9f92 31390if test $pkg_failed = yes; then
a848cd7e 31391
3ecd9f92
MW
31392if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31393 _pkg_short_errors_supported=yes
31394else
31395 _pkg_short_errors_supported=no
31396fi
31397 if test $_pkg_short_errors_supported = yes; then
31398 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31399 else
31400 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 31401 fi
3ecd9f92
MW
31402 # Put the nasty error message in config.log where it belongs
31403 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
31404
31405
479c790c 31406 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
31407echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31408
a848cd7e 31409
3ecd9f92 31410elif test $pkg_failed = untried; then
a848cd7e 31411
479c790c 31412 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
31413echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31414
31415
31416else
31417 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31418 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31419 echo "$as_me:$LINENO: result: yes" >&5
31420echo "${ECHO_T}yes" >&6
a848cd7e 31421
479c790c 31422 cat >>confdefs.h <<\_ACEOF
4ae1af05
MB
31423#define HAVE_PANGO_XFT 1
31424_ACEOF
31425
9b8888f9 31426 CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
479c790c
VZ
31427 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31428 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
a848cd7e 31429
3ecd9f92 31430fi
479c790c 31431 save_LIBS="$LIBS"
479c790c 31432 LIBS="$LIBS $PANGOX_LIBS"
304205f1
VS
31433
31434for ac_func in pango_font_family_is_monospace
31435do
31436as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31437echo "$as_me:$LINENO: checking for $ac_func" >&5
31438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31439if eval "test \"\${$as_ac_var+set}\" = set"; then
31440 echo $ECHO_N "(cached) $ECHO_C" >&6
31441else
31442 cat >conftest.$ac_ext <<_ACEOF
31443/* confdefs.h. */
31444_ACEOF
31445cat confdefs.h >>conftest.$ac_ext
31446cat >>conftest.$ac_ext <<_ACEOF
31447/* end confdefs.h. */
31448/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31450#define $ac_func innocuous_$ac_func
31451
31452/* System header to define __stub macros and hopefully few prototypes,
31453 which can conflict with char $ac_func (); below.
31454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31455 <limits.h> exists even on freestanding compilers. */
31456
31457#ifdef __STDC__
31458# include <limits.h>
31459#else
31460# include <assert.h>
31461#endif
31462
31463#undef $ac_func
31464
31465/* Override any gcc2 internal prototype to avoid an error. */
31466#ifdef __cplusplus
31467extern "C"
31468{
31469#endif
31470/* We use char because int might match the return type of a gcc2
31471 builtin and then its argument prototype would still apply. */
31472char $ac_func ();
31473/* The GNU C library defines this for functions which it implements
31474 to always fail with ENOSYS. Some functions are actually named
31475 something starting with __ and the normal name is an alias. */
31476#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31477choke me
31478#else
31479char (*f) () = $ac_func;
31480#endif
31481#ifdef __cplusplus
31482}
31483#endif
31484
31485int
31486main ()
31487{
31488return f != $ac_func;
31489 ;
31490 return 0;
31491}
31492_ACEOF
31493rm -f conftest.$ac_objext conftest$ac_exeext
31494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31495 (eval $ac_link) 2>conftest.er1
31496 ac_status=$?
31497 grep -v '^ *+' conftest.er1 >conftest.err
31498 rm -f conftest.er1
31499 cat conftest.err >&5
31500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501 (exit $ac_status); } &&
fd5199d6 31502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
31503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31504 (eval $ac_try) 2>&5
31505 ac_status=$?
31506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507 (exit $ac_status); }; } &&
31508 { ac_try='test -s conftest$ac_exeext'
31509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31510 (eval $ac_try) 2>&5
31511 ac_status=$?
31512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31513 (exit $ac_status); }; }; then
31514 eval "$as_ac_var=yes"
31515else
31516 echo "$as_me: failed program was:" >&5
31517sed 's/^/| /' conftest.$ac_ext >&5
31518
31519eval "$as_ac_var=no"
31520fi
31521rm -f conftest.err conftest.$ac_objext \
31522 conftest$ac_exeext conftest.$ac_ext
31523fi
31524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31525echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31526if test `eval echo '${'$as_ac_var'}'` = yes; then
31527 cat >>confdefs.h <<_ACEOF
31528#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31529_ACEOF
31530
31531fi
31532done
31533
479c790c 31534 LIBS="$save_LIBS"
a848cd7e
SC
31535 fi
31536
31537 wxUSE_UNIVERSAL="yes"
31538
31539 if test "$wxUSE_NANOX" = "yes"; then
31540 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31541 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"
31542 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31543 else
31544 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31545 fi
31546
a848cd7e
SC
31547 TOOLKIT=X11
31548 GUIDIST=X11_DIST
31549 fi
31550
31551 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
31552 if test "$wxUSE_UNICODE" = "yes"; then
31553 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31554echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31555 { (exit 1); exit 1; }; }
31556 fi
31557
74b84332
VS
31558 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31559echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 31560
74b84332
VS
31561ac_find_includes=
31562for ac_dir in $SEARCH_INCLUDE /usr/include;
31563 do
31564 if test -f "$ac_dir/Xm/Xm.h"; then
31565 ac_find_includes=$ac_dir
31566 break
31567 fi
31568 done
a848cd7e 31569
74b84332
VS
31570 if test "$ac_find_includes" != "" ; then
31571 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31572echo "${ECHO_T}found in $ac_find_includes" >&6
31573
31574 if test "x$ac_find_includes" = "x/usr/include"; then
31575 ac_path_to_include=""
31576 else
31577 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31578 result=$?
31579 if test $result = 0; then
31580 ac_path_to_include=""
31581 else
31582 ac_path_to_include=" -I$ac_find_includes"
31583 fi
a848cd7e
SC
31584 fi
31585
74b84332
VS
31586 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31587 else
9b8888f9
VZ
31588 save_CFLAGS=$CFLAGS
31589 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
e051b34e 31590
74b84332 31591 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31592/* confdefs.h. */
31593_ACEOF
31594cat confdefs.h >>conftest.$ac_ext
31595cat >>conftest.$ac_ext <<_ACEOF
31596/* end confdefs.h. */
31597
74b84332
VS
31598 #include <Xm/Xm.h>
31599
a848cd7e
SC
31600int
31601main ()
31602{
31603
74b84332
VS
31604 int version;
31605 version = xmUseVersion;
31606
a848cd7e
SC
31607 ;
31608 return 0;
31609}
31610_ACEOF
74b84332
VS
31611rm -f conftest.$ac_objext
31612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31613 (eval $ac_compile) 2>conftest.er1
a848cd7e 31614 ac_status=$?
ac1cb8d3
VS
31615 grep -v '^ *+' conftest.er1 >conftest.err
31616 rm -f conftest.er1
31617 cat conftest.err >&5
a848cd7e
SC
31618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619 (exit $ac_status); } &&
fd5199d6 31620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31622 (eval $ac_try) 2>&5
31623 ac_status=$?
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); }; } &&
74b84332 31626 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31628 (eval $ac_try) 2>&5
31629 ac_status=$?
31630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631 (exit $ac_status); }; }; then
74b84332
VS
31632
31633 echo "$as_me:$LINENO: result: found in default search path" >&5
31634echo "${ECHO_T}found in default search path" >&6
31635 COMPILED_X_PROGRAM=1
31636
a848cd7e
SC
31637else
31638 echo "$as_me: failed program was:" >&5
31639sed 's/^/| /' conftest.$ac_ext >&5
31640
a848cd7e 31641
74b84332
VS
31642 echo "$as_me:$LINENO: result: no" >&5
31643echo "${ECHO_T}no" >&6
e051b34e
MW
31644 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31645echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 31646 { (exit 1); exit 1; }; }
a848cd7e 31647
a848cd7e 31648
a848cd7e 31649fi
74b84332 31650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 31651
9b8888f9 31652 CFLAGS=$save_CFLAGS
74b84332
VS
31653 fi
31654
0ad5d837
VZ
31655
31656 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
31657echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31658
0ad5d837
VZ
31659 ac_find_libraries=
31660 for ac_dir in $SEARCH_LIB;
74b84332 31661 do
3eca31dc 31662 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
31663 if test -f "$ac_dir/libXm.$ac_extension"; then
31664 ac_find_libraries=$ac_dir
31665 break 2
a848cd7e 31666 fi
74b84332
VS
31667 done
31668 done
a848cd7e 31669
0ad5d837
VZ
31670
31671 if test "x$ac_find_libraries" != "x" ; then
31672 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31673echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 31674
74b84332 31675
0ad5d837 31676 if test "$ac_find_libraries" = "default location"; then
74b84332 31677 ac_path_to_link=""
a848cd7e 31678 else
0ad5d837
VZ
31679 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31680 result=$?
31681 if test $result = 0; then
31682 ac_path_to_link=""
31683 else
31684 ac_path_to_link=" -L$ac_find_libraries"
31685 fi
74b84332
VS
31686 fi
31687
0ad5d837
VZ
31688 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31689 else
9b8888f9
VZ
31690 save_CFLAGS=$CFLAGS
31691 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
6f9cf1e6
MW
31692 save_LIBS="$LIBS"
31693 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 31694
0ad5d837 31695 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31696/* confdefs.h. */
31697_ACEOF
31698cat confdefs.h >>conftest.$ac_ext
31699cat >>conftest.$ac_ext <<_ACEOF
31700/* end confdefs.h. */
31701
0ad5d837 31702 #include <Xm/Xm.h>
74b84332 31703
a848cd7e
SC
31704int
31705main ()
31706{
74b84332 31707
0ad5d837
VZ
31708 int version;
31709 version = xmUseVersion;
74b84332 31710
a848cd7e
SC
31711 ;
31712 return 0;
31713}
31714_ACEOF
0ad5d837
VZ
31715rm -f conftest.$ac_objext conftest$ac_exeext
31716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31717 (eval $ac_link) 2>conftest.er1
a848cd7e 31718 ac_status=$?
ac1cb8d3
VS
31719 grep -v '^ *+' conftest.er1 >conftest.err
31720 rm -f conftest.er1
31721 cat conftest.err >&5
a848cd7e
SC
31722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31723 (exit $ac_status); } &&
fd5199d6 31724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31726 (eval $ac_try) 2>&5
31727 ac_status=$?
31728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729 (exit $ac_status); }; } &&
0ad5d837 31730 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31732 (eval $ac_try) 2>&5
31733 ac_status=$?
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); }; }; then
74b84332 31736
0ad5d837 31737 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 31738echo "${ECHO_T}found in default search path" >&6
0ad5d837 31739 COMPILED_X_PROGRAM=1
74b84332 31740
a848cd7e
SC
31741else
31742 echo "$as_me: failed program was:" >&5
31743sed 's/^/| /' conftest.$ac_ext >&5
31744
74b84332 31745
6f9cf1e6 31746 echo "$as_me:$LINENO: result: no" >&5
74b84332 31747echo "${ECHO_T}no" >&6
6f9cf1e6 31748 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
31749echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31750 { (exit 1); exit 1; }; }
31751
31752
31753fi
0ad5d837
VZ
31754rm -f conftest.err conftest.$ac_objext \
31755 conftest$ac_exeext conftest.$ac_ext
74b84332 31756
9b8888f9 31757 CFLAGS=$save_CFLAGS
6f9cf1e6 31758 LIBS="$save_LIBS"
74b84332
VS
31759 fi
31760
31761 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31762echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31763 libp_link=""
31764 libsm_ice_link=""
31765 libs_found=0
31766 for libp in "" " -lXp"; do
31767 if test "$libs_found" = "0"; then
31768 for libsm_ice in "" " -lSM -lICE"; do
31769 if test "$libs_found" = "0"; then
31770 save_LIBS="$LIBS"
31771 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
9b8888f9
VZ
31772 save_CFLAGS=$CFLAGS
31773 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
74b84332
VS
31774
31775 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31776/* confdefs.h. */
31777_ACEOF
31778cat confdefs.h >>conftest.$ac_ext
31779cat >>conftest.$ac_ext <<_ACEOF
31780/* end confdefs.h. */
31781
74b84332
VS
31782 #include <Xm/Xm.h>
31783 #include <Xm/List.h>
31784
a848cd7e
SC
31785int
31786main ()
31787{
74b84332
VS
31788
31789 XmString string = NULL;
31790 Widget w = NULL;
31791 int position = 0;
31792 XmListAddItem(w, string, position);
31793
a848cd7e
SC
31794 ;
31795 return 0;
31796}
31797_ACEOF
31798rm -f conftest.$ac_objext conftest$ac_exeext
31799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31800 (eval $ac_link) 2>conftest.er1
a848cd7e 31801 ac_status=$?
ac1cb8d3
VS
31802 grep -v '^ *+' conftest.er1 >conftest.err
31803 rm -f conftest.er1
31804 cat conftest.err >&5
a848cd7e
SC
31805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806 (exit $ac_status); } &&
fd5199d6 31807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31809 (eval $ac_try) 2>&5
31810 ac_status=$?
31811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812 (exit $ac_status); }; } &&
31813 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31815 (eval $ac_try) 2>&5
31816 ac_status=$?
31817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818 (exit $ac_status); }; }; then
31819
31820 libp_link="$libp"
31821 libsm_ice_link="$libsm_ice"
31822 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31823echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31824 libs_found=1
31825
31826else
31827 echo "$as_me: failed program was:" >&5
31828sed 's/^/| /' conftest.$ac_ext >&5
31829
31830
31831
31832fi
ac1cb8d3
VS
31833rm -f conftest.err conftest.$ac_objext \
31834 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31835
31836 LIBS="$save_LIBS"
9b8888f9 31837 CFLAGS=$save_CFLAGS
a848cd7e
SC
31838 fi
31839 done
31840 fi
31841 done
31842
31843 if test "$libs_found" = "0"; then
31844 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31845echo "${ECHO_T}can't find the right libraries" >&6
31846 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31847echo "$as_me: error: can't link a simple motif program" >&2;}
31848 { (exit 1); exit 1; }; }
31849 fi
31850
62fa8b3a
MW
31851 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31852echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31853if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31854 echo $ECHO_N "(cached) $ECHO_C" >&6
31855else
31856 ac_check_lib_save_LIBS=$LIBS
31857LIBS="-lSgm $LIBS"
31858cat >conftest.$ac_ext <<_ACEOF
31859/* confdefs.h. */
31860_ACEOF
31861cat confdefs.h >>conftest.$ac_ext
31862cat >>conftest.$ac_ext <<_ACEOF
31863/* end confdefs.h. */
31864
31865/* Override any gcc2 internal prototype to avoid an error. */
31866#ifdef __cplusplus
31867extern "C"
31868#endif
31869/* We use char because int might match the return type of a gcc2
31870 builtin and then its argument prototype would still apply. */
31871char SgCreateList ();
31872int
31873main ()
31874{
31875SgCreateList ();
31876 ;
31877 return 0;
31878}
31879_ACEOF
31880rm -f conftest.$ac_objext conftest$ac_exeext
31881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31882 (eval $ac_link) 2>conftest.er1
31883 ac_status=$?
31884 grep -v '^ *+' conftest.er1 >conftest.err
31885 rm -f conftest.er1
31886 cat conftest.err >&5
31887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31888 (exit $ac_status); } &&
fd5199d6 31889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
31890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31891 (eval $ac_try) 2>&5
31892 ac_status=$?
31893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894 (exit $ac_status); }; } &&
31895 { ac_try='test -s conftest$ac_exeext'
31896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31897 (eval $ac_try) 2>&5
31898 ac_status=$?
31899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900 (exit $ac_status); }; }; then
31901 ac_cv_lib_Sgm_SgCreateList=yes
31902else
31903 echo "$as_me: failed program was:" >&5
31904sed 's/^/| /' conftest.$ac_ext >&5
31905
31906ac_cv_lib_Sgm_SgCreateList=no
31907fi
31908rm -f conftest.err conftest.$ac_objext \
31909 conftest$ac_exeext conftest.$ac_ext
31910LIBS=$ac_check_lib_save_LIBS
31911fi
31912echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31913echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
31914if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31915 libsgm_link=" -lSgm"
31916fi
31917
31918
9b8888f9
VZ
31919 save_CFLAGS=$CFLAGS
31920 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
0ad5d837 31921
a848cd7e
SC
31922 echo "$as_me:$LINENO: checking for Motif 2" >&5
31923echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
31924if test "${wx_cv_lib_motif2+set}" = set; then
31925 echo $ECHO_N "(cached) $ECHO_C" >&6
31926else
31927 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31928/* confdefs.h. */
31929_ACEOF
31930cat confdefs.h >>conftest.$ac_ext
31931cat >>conftest.$ac_ext <<_ACEOF
31932/* end confdefs.h. */
31933
0ad5d837 31934 #include <Xm/Xm.h>
a848cd7e
SC
31935
31936int
31937main ()
31938{
31939
0ad5d837
VZ
31940 #if XmVersion < 2000
31941 Not Motif 2
31942 #endif
a848cd7e
SC
31943
31944 ;
31945 return 0;
31946}
31947_ACEOF
31948rm -f conftest.$ac_objext
31949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31950 (eval $ac_compile) 2>conftest.er1
a848cd7e 31951 ac_status=$?
ac1cb8d3
VS
31952 grep -v '^ *+' conftest.er1 >conftest.err
31953 rm -f conftest.er1
31954 cat conftest.err >&5
a848cd7e
SC
31955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956 (exit $ac_status); } &&
fd5199d6 31957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31959 (eval $ac_try) 2>&5
31960 ac_status=$?
31961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31962 (exit $ac_status); }; } &&
31963 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31965 (eval $ac_try) 2>&5
31966 ac_status=$?
31967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968 (exit $ac_status); }; }; then
0ad5d837 31969 wx_cv_lib_motif2="yes"
a848cd7e
SC
31970else
31971 echo "$as_me: failed program was:" >&5
31972sed 's/^/| /' conftest.$ac_ext >&5
31973
0ad5d837
VZ
31974wx_cv_lib_motif2="no"
31975fi
31976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31977fi
31978echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31979echo "${ECHO_T}$wx_cv_lib_motif2" >&6
31980 if test "$wx_cv_lib_motif2" = "yes"; then
31981 cat >>confdefs.h <<\_ACEOF
31982#define __WXMOTIF20__ 1
31983_ACEOF
a848cd7e 31984
0ad5d837
VZ
31985 else
31986 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31987#define __WXMOTIF20__ 0
31988_ACEOF
31989
0ad5d837 31990 fi
2113bc77
MW
31991
31992 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31993echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
31994if test "${wx_cv_lib_lesstif+set}" = set; then
31995 echo $ECHO_N "(cached) $ECHO_C" >&6
31996else
31997 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
31998/* confdefs.h. */
31999_ACEOF
32000cat confdefs.h >>conftest.$ac_ext
32001cat >>conftest.$ac_ext <<_ACEOF
32002/* end confdefs.h. */
32003
0ad5d837 32004 #include <Xm/Xm.h>
2113bc77
MW
32005
32006int
32007main ()
32008{
32009
0ad5d837
VZ
32010 #if !defined(LesstifVersion) || LesstifVersion <= 0
32011 Not Lesstif
32012 #endif
2113bc77
MW
32013
32014 ;
32015 return 0;
32016}
32017_ACEOF
32018rm -f conftest.$ac_objext
32019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32020 (eval $ac_compile) 2>conftest.er1
32021 ac_status=$?
32022 grep -v '^ *+' conftest.er1 >conftest.err
32023 rm -f conftest.er1
32024 cat conftest.err >&5
32025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32026 (exit $ac_status); } &&
fd5199d6 32027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
32028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32029 (eval $ac_try) 2>&5
32030 ac_status=$?
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); }; } &&
32033 { ac_try='test -s conftest.$ac_objext'
32034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32035 (eval $ac_try) 2>&5
32036 ac_status=$?
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); }; }; then
0ad5d837 32039 wx_cv_lib_lesstif="yes"
2113bc77
MW
32040else
32041 echo "$as_me: failed program was:" >&5
32042sed 's/^/| /' conftest.$ac_ext >&5
32043
0ad5d837
VZ
32044wx_cv_lib_lesstif="no"
32045fi
32046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 32047
0ad5d837
VZ
32048fi
32049echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32050echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
32051 if test "$wx_cv_lib_lesstif" = "yes"; then
32052 cat >>confdefs.h <<\_ACEOF
32053#define __WXLESSTIF__ 1
32054_ACEOF
32055
32056 else
32057 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
32058#define __WXLESSTIF__ 0
32059_ACEOF
32060
0ad5d837 32061 fi
2113bc77 32062
9b8888f9 32063 CFLAGS=$save_CFLAGS
a848cd7e 32064
62fa8b3a 32065 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
32066 TOOLKIT=MOTIF
32067 GUIDIST=MOTIF_DIST
32068 fi
32069
74b84332 32070 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
32071 if test "$wxUSE_LIBXPM" = "sys"; then
32072 echo "$as_me:$LINENO: checking for Xpm library" >&5
32073echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
32074
0ad5d837
VZ
32075 ac_find_libraries=
32076 for ac_dir in $SEARCH_LIB;
a848cd7e 32077 do
3eca31dc 32078 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32079 if test -f "$ac_dir/libXpm.$ac_extension"; then
32080 ac_find_libraries=$ac_dir
32081 break 2
32082 fi
32083 done
32084 done
32085
32086 if test "$ac_find_libraries" != "" ; then
32087
0ad5d837 32088 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32089 ac_path_to_link=""
32090 else
0ad5d837
VZ
32091 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32092 result=$?
32093 if test $result = 0; then
32094 ac_path_to_link=""
32095 else
32096 ac_path_to_link=" -L$ac_find_libraries"
32097 fi
a848cd7e
SC
32098 fi
32099
32100 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
32101 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32102echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
32103
32104 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32105echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
32106if test "${wx_cv_x11_xpm_h+set}" = set; then
32107 echo $ECHO_N "(cached) $ECHO_C" >&6
32108else
32109
9b8888f9
VZ
32110 save_CFLAGS=$CFLAGS
32111 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
32112
32113 cat >conftest.$ac_ext <<_ACEOF
32114/* confdefs.h. */
32115_ACEOF
32116cat confdefs.h >>conftest.$ac_ext
32117cat >>conftest.$ac_ext <<_ACEOF
32118/* end confdefs.h. */
32119
32120 #include <X11/xpm.h>
32121
32122int
32123main ()
32124{
32125
32126 int version;
32127 version = XpmLibraryVersion();
32128
32129 ;
32130 return 0;
32131}
32132_ACEOF
32133rm -f conftest.$ac_objext
32134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32135 (eval $ac_compile) 2>conftest.er1
a848cd7e 32136 ac_status=$?
ac1cb8d3
VS
32137 grep -v '^ *+' conftest.er1 >conftest.err
32138 rm -f conftest.er1
32139 cat conftest.err >&5
a848cd7e
SC
32140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32141 (exit $ac_status); } &&
fd5199d6 32142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32144 (eval $ac_try) 2>&5
32145 ac_status=$?
32146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32147 (exit $ac_status); }; } &&
32148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32150 (eval $ac_try) 2>&5
32151 ac_status=$?
32152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32153 (exit $ac_status); }; }; then
32154 wx_cv_x11_xpm_h=yes
32155else
32156 echo "$as_me: failed program was:" >&5
32157sed 's/^/| /' conftest.$ac_ext >&5
32158
32159wx_cv_x11_xpm_h=no
32160
32161fi
ac1cb8d3 32162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 32163
9b8888f9 32164 CFLAGS=$save_CFLAGS
a848cd7e
SC
32165
32166
32167fi
32168echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32169echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
32170
32171 if test $wx_cv_x11_xpm_h = "yes"; then
32172 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32173 cat >>confdefs.h <<\_ACEOF
32174#define wxHAVE_LIB_XPM 1
32175_ACEOF
32176
32177 else
32178 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32179echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32180 fi
32181 fi
32182
32183 fi
32184
32185 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32186echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
32187if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32188 echo $ECHO_N "(cached) $ECHO_C" >&6
32189else
32190 ac_check_lib_save_LIBS=$LIBS
32191LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32192cat >conftest.$ac_ext <<_ACEOF
32193/* confdefs.h. */
32194_ACEOF
32195cat confdefs.h >>conftest.$ac_ext
32196cat >>conftest.$ac_ext <<_ACEOF
32197/* end confdefs.h. */
32198
32199/* Override any gcc2 internal prototype to avoid an error. */
32200#ifdef __cplusplus
32201extern "C"
32202#endif
32203/* We use char because int might match the return type of a gcc2
32204 builtin and then its argument prototype would still apply. */
32205char XShapeQueryExtension ();
32206int
32207main ()
32208{
32209XShapeQueryExtension ();
32210 ;
32211 return 0;
32212}
32213_ACEOF
32214rm -f conftest.$ac_objext conftest$ac_exeext
32215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32216 (eval $ac_link) 2>conftest.er1
a848cd7e 32217 ac_status=$?
ac1cb8d3
VS
32218 grep -v '^ *+' conftest.er1 >conftest.err
32219 rm -f conftest.er1
32220 cat conftest.err >&5
a848cd7e
SC
32221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222 (exit $ac_status); } &&
fd5199d6 32223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32225 (eval $ac_try) 2>&5
32226 ac_status=$?
32227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32228 (exit $ac_status); }; } &&
32229 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32231 (eval $ac_try) 2>&5
32232 ac_status=$?
32233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234 (exit $ac_status); }; }; then
32235 ac_cv_lib_Xext_XShapeQueryExtension=yes
32236else
32237 echo "$as_me: failed program was:" >&5
32238sed 's/^/| /' conftest.$ac_ext >&5
32239
32240ac_cv_lib_Xext_XShapeQueryExtension=no
32241fi
ac1cb8d3
VS
32242rm -f conftest.err conftest.$ac_objext \
32243 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32244LIBS=$ac_check_lib_save_LIBS
32245fi
32246echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32247echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
32248if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32249
32250 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32251 wxHAVE_XEXT_LIB=1
32252
32253fi
32254
32255
32256 if test "$wxHAVE_XEXT_LIB" = 1; then
9b8888f9
VZ
32257 save_CFLAGS="$CFLAGS"
32258 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
32259
32260 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32261echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
32262 cat >conftest.$ac_ext <<_ACEOF
32263/* confdefs.h. */
32264_ACEOF
32265cat confdefs.h >>conftest.$ac_ext
32266cat >>conftest.$ac_ext <<_ACEOF
32267/* end confdefs.h. */
32268
32269 #include <X11/Xlib.h>
32270 #include <X11/extensions/shape.h>
32271
32272int
32273main ()
32274{
32275
32276 int dummy1, dummy2;
32277 XShapeQueryExtension((Display*)NULL,
32278 (int*)NULL, (int*)NULL);
32279
32280 ;
32281 return 0;
32282}
32283_ACEOF
32284rm -f conftest.$ac_objext
32285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32286 (eval $ac_compile) 2>conftest.er1
a848cd7e 32287 ac_status=$?
ac1cb8d3
VS
32288 grep -v '^ *+' conftest.er1 >conftest.err
32289 rm -f conftest.er1
32290 cat conftest.err >&5
a848cd7e
SC
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); } &&
fd5199d6 32293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32295 (eval $ac_try) 2>&5
32296 ac_status=$?
32297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298 (exit $ac_status); }; } &&
32299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32301 (eval $ac_try) 2>&5
32302 ac_status=$?
32303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304 (exit $ac_status); }; }; then
32305
32306 cat >>confdefs.h <<\_ACEOF
32307#define HAVE_XSHAPE 1
32308_ACEOF
32309
32310 echo "$as_me:$LINENO: result: found" >&5
32311echo "${ECHO_T}found" >&6
32312
32313else
32314 echo "$as_me: failed program was:" >&5
32315sed 's/^/| /' conftest.$ac_ext >&5
32316
32317
32318 echo "$as_me:$LINENO: result: not found" >&5
32319echo "${ECHO_T}not found" >&6
32320
32321fi
ac1cb8d3 32322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9 32323 CFLAGS="$save_CFLAGS"
a848cd7e
SC
32324
32325 fi
32326 fi
32327
32328 if test "$wxUSE_MAC" = 1; then
32329 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32330echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
32331 if test "$GCC" = yes; then
32332 echo "$as_me:$LINENO: result: gcc" >&5
32333echo "${ECHO_T}gcc" >&6
32334 CPPFLAGS_PASCAL="-fpascal-strings"
32335 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32336 echo "$as_me:$LINENO: result: xlc" >&5
32337echo "${ECHO_T}xlc" >&6
32338 CPPFLAGS_PASCAL="-qmacpstr"
32339 else
32340 echo "$as_me:$LINENO: result: none" >&5
32341echo "${ECHO_T}none" >&6
32342 fi
32343
1e9e8aba 32344 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 32345 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 32346 else
c92ad099 32347 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 32348 fi
a848cd7e 32349
a848cd7e
SC
32350 TOOLKIT=MAC
32351 GUIDIST=MACX_DIST
dd21ced8 32352 WXBASEPORT="_carbon"
a848cd7e
SC
32353 fi
32354
32355 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
32356 TOOLKIT=COCOA
32357 GUIDIST=COCOA_DIST
32358 fi
32359
32360 if test "$wxUSE_PM" = 1; then
32361 TOOLKIT=PM
de59c161
RD
32362 GUIDIST=PM_DIST
32363 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32364echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
32365if test "${wx_cv_spbcdata+set}" = set; then
32366 echo $ECHO_N "(cached) $ECHO_C" >&6
32367else
32368
32369 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
32370/* confdefs.h. */
32371_ACEOF
32372cat confdefs.h >>conftest.$ac_ext
32373cat >>conftest.$ac_ext <<_ACEOF
32374/* end confdefs.h. */
32375
32376 #define INCL_PM
32377 #include <os2.h>
32378
32379int
32380main ()
32381{
32382
32383 SPBCDATA test;
32384
32385 ;
32386 return 0;
32387}
32388_ACEOF
32389rm -f conftest.$ac_objext
32390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32391 (eval $ac_compile) 2>conftest.er1
de59c161 32392 ac_status=$?
ac1cb8d3
VS
32393 grep -v '^ *+' conftest.er1 >conftest.err
32394 rm -f conftest.er1
32395 cat conftest.err >&5
de59c161
RD
32396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397 (exit $ac_status); } &&
fd5199d6 32398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32400 (eval $ac_try) 2>&5
32401 ac_status=$?
32402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403 (exit $ac_status); }; } &&
32404 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
32405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32406 (eval $ac_try) 2>&5
32407 ac_status=$?
32408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32409 (exit $ac_status); }; }; then
32410 wx_cv_spbcdata=yes
32411else
32412 echo "$as_me: failed program was:" >&5
32413sed 's/^/| /' conftest.$ac_ext >&5
32414
32415wx_cv_spbcdata=no
32416
32417fi
ac1cb8d3 32418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
32419
32420
32421fi
32422echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32423echo "${ECHO_T}$wx_cv_spbcdata" >&6
32424
32425 if test $wx_cv_spbcdata = "yes"; then
32426 cat >>confdefs.h <<\_ACEOF
32427#define HAVE_SPBCDATA 1
32428_ACEOF
32429
32430 fi
a848cd7e
SC
32431 fi
32432
32433 if test "$TOOLKIT" = "PM" ; then
32434 TOOLKIT_DIR="os2"
32435 else
32436 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
32437 fi
32438
a848cd7e 32439 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
32440 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32441 WIDGET_SET=univ
a848cd7e
SC
32442 fi
32443
32444 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32445 DISTDIR="wx\$(TOOLKIT)"
32446else
32447 USE_GUI=0
32448
32449 TOOLKIT_DIR="base"
32450
32451 if test "$USE_WIN32" = 1 ; then
a848cd7e 32452 TOOLKIT="MSW"
a848cd7e
SC
32453 fi
32454
a848cd7e
SC
32455 GUIDIST="BASE_DIST"
32456 DISTDIR="wxBase"
32457fi
32458
32459
d12aef51
VZ
32460if test "$wxUSE_GUI" = "yes"; then
32461 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32462
32463for ac_header in X11/Xlib.h
32464do
32465as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32466if eval "test \"\${$as_ac_Header+set}\" = set"; then
32467 echo "$as_me:$LINENO: checking for $ac_header" >&5
32468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32469if eval "test \"\${$as_ac_Header+set}\" = set"; then
32470 echo $ECHO_N "(cached) $ECHO_C" >&6
32471fi
32472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32473echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32474else
32475 # Is the header compilable?
32476echo "$as_me:$LINENO: checking $ac_header usability" >&5
32477echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32478cat >conftest.$ac_ext <<_ACEOF
32479/* confdefs.h. */
32480_ACEOF
32481cat confdefs.h >>conftest.$ac_ext
32482cat >>conftest.$ac_ext <<_ACEOF
32483/* end confdefs.h. */
32484$ac_includes_default
32485#include <$ac_header>
32486_ACEOF
32487rm -f conftest.$ac_objext
32488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32489 (eval $ac_compile) 2>conftest.er1
32490 ac_status=$?
32491 grep -v '^ *+' conftest.er1 >conftest.err
32492 rm -f conftest.er1
32493 cat conftest.err >&5
32494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495 (exit $ac_status); } &&
fd5199d6 32496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32498 (eval $ac_try) 2>&5
32499 ac_status=$?
32500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501 (exit $ac_status); }; } &&
32502 { ac_try='test -s conftest.$ac_objext'
32503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32504 (eval $ac_try) 2>&5
32505 ac_status=$?
32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507 (exit $ac_status); }; }; then
32508 ac_header_compiler=yes
32509else
32510 echo "$as_me: failed program was:" >&5
32511sed 's/^/| /' conftest.$ac_ext >&5
32512
32513ac_header_compiler=no
32514fi
32515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32516echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32517echo "${ECHO_T}$ac_header_compiler" >&6
32518
32519# Is the header present?
32520echo "$as_me:$LINENO: checking $ac_header presence" >&5
32521echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32522cat >conftest.$ac_ext <<_ACEOF
32523/* confdefs.h. */
32524_ACEOF
32525cat confdefs.h >>conftest.$ac_ext
32526cat >>conftest.$ac_ext <<_ACEOF
32527/* end confdefs.h. */
32528#include <$ac_header>
32529_ACEOF
32530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32532 ac_status=$?
32533 grep -v '^ *+' conftest.er1 >conftest.err
32534 rm -f conftest.er1
32535 cat conftest.err >&5
32536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32537 (exit $ac_status); } >/dev/null; then
32538 if test -s conftest.err; then
fd5199d6
VZ
32539 ac_cpp_err=$ac_c_preproc_warn_flag
32540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d12aef51
VZ
32541 else
32542 ac_cpp_err=
32543 fi
32544else
32545 ac_cpp_err=yes
32546fi
32547if test -z "$ac_cpp_err"; then
32548 ac_header_preproc=yes
32549else
32550 echo "$as_me: failed program was:" >&5
32551sed 's/^/| /' conftest.$ac_ext >&5
32552
32553 ac_header_preproc=no
32554fi
32555rm -f conftest.err conftest.$ac_ext
32556echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32557echo "${ECHO_T}$ac_header_preproc" >&6
32558
32559# So? What about this header?
fd5199d6 32560case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
d12aef51
VZ
32561 yes:no: )
32562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32563echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32565echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32566 ac_header_preproc=yes
32567 ;;
32568 no:yes:* )
32569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32570echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32572echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32574echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32576echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32578echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32580echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32581 (
32582 cat <<\_ASBOX
32583## ----------------------------------------- ##
32584## Report this to wx-dev@lists.wxwidgets.org ##
32585## ----------------------------------------- ##
32586_ASBOX
32587 ) |
32588 sed "s/^/$as_me: WARNING: /" >&2
32589 ;;
32590esac
32591echo "$as_me:$LINENO: checking for $ac_header" >&5
32592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32593if eval "test \"\${$as_ac_Header+set}\" = set"; then
32594 echo $ECHO_N "(cached) $ECHO_C" >&6
32595else
32596 eval "$as_ac_Header=\$ac_header_preproc"
32597fi
32598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32599echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32600
32601fi
32602if test `eval echo '${'$as_ac_Header'}'` = yes; then
32603 cat >>confdefs.h <<_ACEOF
32604#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32605_ACEOF
32606
32607fi
32608
32609done
32610
32611
32612for ac_header in X11/XKBlib.h
32613do
32614as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32615echo "$as_me:$LINENO: checking for $ac_header" >&5
32616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32617if eval "test \"\${$as_ac_Header+set}\" = set"; then
32618 echo $ECHO_N "(cached) $ECHO_C" >&6
32619else
32620 cat >conftest.$ac_ext <<_ACEOF
32621/* confdefs.h. */
32622_ACEOF
32623cat confdefs.h >>conftest.$ac_ext
32624cat >>conftest.$ac_ext <<_ACEOF
32625/* end confdefs.h. */
32626
32627 #if HAVE_X11_XLIB_H
32628 #include <X11/Xlib.h>
32629 #endif
32630
32631
32632#include <$ac_header>
32633_ACEOF
32634rm -f conftest.$ac_objext
32635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32636 (eval $ac_compile) 2>conftest.er1
32637 ac_status=$?
32638 grep -v '^ *+' conftest.er1 >conftest.err
32639 rm -f conftest.er1
32640 cat conftest.err >&5
32641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642 (exit $ac_status); } &&
fd5199d6 32643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32645 (eval $ac_try) 2>&5
32646 ac_status=$?
32647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); }; } &&
32649 { ac_try='test -s conftest.$ac_objext'
32650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32651 (eval $ac_try) 2>&5
32652 ac_status=$?
32653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654 (exit $ac_status); }; }; then
32655 eval "$as_ac_Header=yes"
32656else
32657 echo "$as_me: failed program was:" >&5
32658sed 's/^/| /' conftest.$ac_ext >&5
32659
32660eval "$as_ac_Header=no"
32661fi
32662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32663fi
32664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32665echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32666if test `eval echo '${'$as_ac_Header'}'` = yes; then
32667 cat >>confdefs.h <<_ACEOF
32668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32669_ACEOF
32670
32671fi
32672
32673done
32674
32675 fi
32676fi
32677
a848cd7e
SC
32678
32679
32680IODBC_C_SRC=""
32681
32682
32683if test "$TOOLKIT" != "MSW" ; then
32684
32685 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32686
32687 if test "${ac_cv_header_sql_h+set}" = set; then
32688 echo "$as_me:$LINENO: checking for sql.h" >&5
32689echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32690if test "${ac_cv_header_sql_h+set}" = set; then
32691 echo $ECHO_N "(cached) $ECHO_C" >&6
32692fi
32693echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32694echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32695else
32696 # Is the header compilable?
32697echo "$as_me:$LINENO: checking sql.h usability" >&5
32698echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
32699cat >conftest.$ac_ext <<_ACEOF
32700/* confdefs.h. */
32701_ACEOF
32702cat confdefs.h >>conftest.$ac_ext
32703cat >>conftest.$ac_ext <<_ACEOF
32704/* end confdefs.h. */
32705$ac_includes_default
32706#include <sql.h>
32707_ACEOF
32708rm -f conftest.$ac_objext
32709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32710 (eval $ac_compile) 2>conftest.er1
a848cd7e 32711 ac_status=$?
ac1cb8d3
VS
32712 grep -v '^ *+' conftest.er1 >conftest.err
32713 rm -f conftest.er1
32714 cat conftest.err >&5
a848cd7e
SC
32715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716 (exit $ac_status); } &&
fd5199d6 32717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32719 (eval $ac_try) 2>&5
32720 ac_status=$?
32721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722 (exit $ac_status); }; } &&
32723 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32725 (eval $ac_try) 2>&5
32726 ac_status=$?
32727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728 (exit $ac_status); }; }; then
32729 ac_header_compiler=yes
32730else
32731 echo "$as_me: failed program was:" >&5
32732sed 's/^/| /' conftest.$ac_ext >&5
32733
32734ac_header_compiler=no
32735fi
ac1cb8d3 32736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32737echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32738echo "${ECHO_T}$ac_header_compiler" >&6
32739
32740# Is the header present?
32741echo "$as_me:$LINENO: checking sql.h presence" >&5
32742echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32743cat >conftest.$ac_ext <<_ACEOF
32744/* confdefs.h. */
32745_ACEOF
32746cat confdefs.h >>conftest.$ac_ext
32747cat >>conftest.$ac_ext <<_ACEOF
32748/* end confdefs.h. */
32749#include <sql.h>
32750_ACEOF
32751if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32753 ac_status=$?
32754 grep -v '^ *+' conftest.er1 >conftest.err
32755 rm -f conftest.er1
32756 cat conftest.err >&5
32757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32758 (exit $ac_status); } >/dev/null; then
32759 if test -s conftest.err; then
fd5199d6
VZ
32760 ac_cpp_err=$ac_c_preproc_warn_flag
32761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32762 else
32763 ac_cpp_err=
32764 fi
32765else
32766 ac_cpp_err=yes
32767fi
32768if test -z "$ac_cpp_err"; then
32769 ac_header_preproc=yes
32770else
32771 echo "$as_me: failed program was:" >&5
32772sed 's/^/| /' conftest.$ac_ext >&5
32773
32774 ac_header_preproc=no
32775fi
32776rm -f conftest.err conftest.$ac_ext
32777echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32778echo "${ECHO_T}$ac_header_preproc" >&6
32779
32780# So? What about this header?
fd5199d6 32781case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 32782 yes:no: )
a848cd7e
SC
32783 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32784echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32785 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32786echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32787 ac_header_preproc=yes
a848cd7e 32788 ;;
ac1cb8d3 32789 no:yes:* )
a848cd7e
SC
32790 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32791echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32792 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
32793echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
32794 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32795echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32796 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
32797echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32798 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32799echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32800 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32801echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32802 (
32803 cat <<\_ASBOX
ac1cb8d3
VS
32804## ----------------------------------------- ##
32805## Report this to wx-dev@lists.wxwidgets.org ##
32806## ----------------------------------------- ##
a848cd7e
SC
32807_ASBOX
32808 ) |
32809 sed "s/^/$as_me: WARNING: /" >&2
32810 ;;
32811esac
32812echo "$as_me:$LINENO: checking for sql.h" >&5
32813echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32814if test "${ac_cv_header_sql_h+set}" = set; then
32815 echo $ECHO_N "(cached) $ECHO_C" >&6
32816else
32817 ac_cv_header_sql_h=$ac_header_preproc
32818fi
32819echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32820echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32821
32822fi
32823if test $ac_cv_header_sql_h = yes; then
32824 found_sql_h=1
32825fi
32826
32827
32828 if test "x$found_sql_h" = "x1" ; then
32829 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32830echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32831if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32832 echo $ECHO_N "(cached) $ECHO_C" >&6
32833else
32834 ac_check_lib_save_LIBS=$LIBS
32835LIBS="-liodbc $LIBS"
32836cat >conftest.$ac_ext <<_ACEOF
32837/* confdefs.h. */
32838_ACEOF
32839cat confdefs.h >>conftest.$ac_ext
32840cat >>conftest.$ac_ext <<_ACEOF
32841/* end confdefs.h. */
32842
32843/* Override any gcc2 internal prototype to avoid an error. */
32844#ifdef __cplusplus
32845extern "C"
32846#endif
32847/* We use char because int might match the return type of a gcc2
32848 builtin and then its argument prototype would still apply. */
32849char SQLAllocEnv ();
32850int
32851main ()
32852{
32853SQLAllocEnv ();
32854 ;
32855 return 0;
32856}
32857_ACEOF
32858rm -f conftest.$ac_objext conftest$ac_exeext
32859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32860 (eval $ac_link) 2>conftest.er1
a848cd7e 32861 ac_status=$?
ac1cb8d3
VS
32862 grep -v '^ *+' conftest.er1 >conftest.err
32863 rm -f conftest.er1
32864 cat conftest.err >&5
a848cd7e
SC
32865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32866 (exit $ac_status); } &&
fd5199d6 32867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32869 (eval $ac_try) 2>&5
32870 ac_status=$?
32871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32872 (exit $ac_status); }; } &&
32873 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32875 (eval $ac_try) 2>&5
32876 ac_status=$?
32877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878 (exit $ac_status); }; }; then
32879 ac_cv_lib_iodbc_SQLAllocEnv=yes
32880else
32881 echo "$as_me: failed program was:" >&5
32882sed 's/^/| /' conftest.$ac_ext >&5
32883
32884ac_cv_lib_iodbc_SQLAllocEnv=no
32885fi
ac1cb8d3
VS
32886rm -f conftest.err conftest.$ac_objext \
32887 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32888LIBS=$ac_check_lib_save_LIBS
32889fi
32890echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32891echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
32892if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32893 ODBC_LINK=" -liodbc"
32894else
32895
32896 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32897echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
32898if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32899 echo $ECHO_N "(cached) $ECHO_C" >&6
32900else
32901 ac_check_lib_save_LIBS=$LIBS
32902LIBS="-lunixodbc $LIBS"
32903cat >conftest.$ac_ext <<_ACEOF
32904/* confdefs.h. */
32905_ACEOF
32906cat confdefs.h >>conftest.$ac_ext
32907cat >>conftest.$ac_ext <<_ACEOF
32908/* end confdefs.h. */
32909
32910/* Override any gcc2 internal prototype to avoid an error. */
32911#ifdef __cplusplus
32912extern "C"
32913#endif
32914/* We use char because int might match the return type of a gcc2
32915 builtin and then its argument prototype would still apply. */
32916char SQLAllocEnv ();
32917int
32918main ()
32919{
32920SQLAllocEnv ();
32921 ;
32922 return 0;
32923}
32924_ACEOF
32925rm -f conftest.$ac_objext conftest$ac_exeext
32926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32927 (eval $ac_link) 2>conftest.er1
a848cd7e 32928 ac_status=$?
ac1cb8d3
VS
32929 grep -v '^ *+' conftest.er1 >conftest.err
32930 rm -f conftest.er1
32931 cat conftest.err >&5
a848cd7e
SC
32932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32933 (exit $ac_status); } &&
fd5199d6 32934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32936 (eval $ac_try) 2>&5
32937 ac_status=$?
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); }; } &&
32940 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32942 (eval $ac_try) 2>&5
32943 ac_status=$?
32944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); }; }; then
32946 ac_cv_lib_unixodbc_SQLAllocEnv=yes
32947else
32948 echo "$as_me: failed program was:" >&5
32949sed 's/^/| /' conftest.$ac_ext >&5
32950
32951ac_cv_lib_unixodbc_SQLAllocEnv=no
32952fi
ac1cb8d3
VS
32953rm -f conftest.err conftest.$ac_objext \
32954 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32955LIBS=$ac_check_lib_save_LIBS
32956fi
32957echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
32958echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
32959if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
32960 ODBC_LINK=" -lunixodbc"
32961else
32962
32963 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
32964echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
32965if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
32966 echo $ECHO_N "(cached) $ECHO_C" >&6
32967else
32968 ac_check_lib_save_LIBS=$LIBS
32969LIBS="-lodbc $LIBS"
32970cat >conftest.$ac_ext <<_ACEOF
32971/* confdefs.h. */
32972_ACEOF
32973cat confdefs.h >>conftest.$ac_ext
32974cat >>conftest.$ac_ext <<_ACEOF
32975/* end confdefs.h. */
32976
32977/* Override any gcc2 internal prototype to avoid an error. */
32978#ifdef __cplusplus
32979extern "C"
32980#endif
32981/* We use char because int might match the return type of a gcc2
32982 builtin and then its argument prototype would still apply. */
32983char SQLAllocEnv ();
32984int
32985main ()
32986{
32987SQLAllocEnv ();
32988 ;
32989 return 0;
32990}
32991_ACEOF
32992rm -f conftest.$ac_objext conftest$ac_exeext
32993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32994 (eval $ac_link) 2>conftest.er1
a848cd7e 32995 ac_status=$?
ac1cb8d3
VS
32996 grep -v '^ *+' conftest.er1 >conftest.err
32997 rm -f conftest.er1
32998 cat conftest.err >&5
a848cd7e
SC
32999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000 (exit $ac_status); } &&
fd5199d6 33001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33003 (eval $ac_try) 2>&5
33004 ac_status=$?
33005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006 (exit $ac_status); }; } &&
33007 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33009 (eval $ac_try) 2>&5
33010 ac_status=$?
33011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33012 (exit $ac_status); }; }; then
33013 ac_cv_lib_odbc_SQLAllocEnv=yes
33014else
33015 echo "$as_me: failed program was:" >&5
33016sed 's/^/| /' conftest.$ac_ext >&5
33017
33018ac_cv_lib_odbc_SQLAllocEnv=no
33019fi
ac1cb8d3
VS
33020rm -f conftest.err conftest.$ac_objext \
33021 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33022LIBS=$ac_check_lib_save_LIBS
33023fi
33024echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
33025echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
33026if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
33027 ODBC_LINK=" -lodbc"
33028fi
33029
33030
33031fi
33032
33033
33034fi
33035
33036 fi
33037 if test "x$ODBC_LINK" = "x" ; then
33038 if test "$wxUSE_ODBC" = "sys" ; then
33039 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
33040echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
33041 { (exit 1); exit 1; }; }
33042 else
33043 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
33044echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
33045 wxUSE_ODBC=builtin
33046 fi
33047 else
33048 wxUSE_ODBC=sys
33049 fi
33050 fi
a848cd7e 33051
2da0c077
RD
33052 if test "$wxUSE_ODBC" = "builtin" ; then
33053 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
33054#define wxUSE_BUILTIN_IODBC 1
33055_ACEOF
33056
a848cd7e
SC
33057 fi
33058fi
33059
2da0c077
RD
33060if test "$wxUSE_ODBC" != "no" ; then
33061 cat >>confdefs.h <<\_ACEOF
33062#define wxUSE_ODBC 1
33063_ACEOF
33064
33065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
33066
5ff751d6 33067 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 33068fi
a848cd7e 33069
01cb68df 33070
a848cd7e 33071if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 33072 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
33073 echo "$as_me:$LINENO: checking for Xinerama" >&5
33074echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
33075
0ad5d837
VZ
33076 ac_find_libraries=
33077 for ac_dir in $SEARCH_LIB;
33078 do
33079 for ac_extension in a so sl dylib dll.a; do
33080 if test -f "$ac_dir/libXinerama.$ac_extension"; then
33081 ac_find_libraries=$ac_dir
33082 break 2
33083 fi
33084 done
33085 done
33086
a848cd7e
SC
33087 if test "$ac_find_libraries" != "" ; then
33088
0ad5d837 33089 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33090 ac_path_to_link=""
33091 else
0ad5d837
VZ
33092 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33093 result=$?
33094 if test $result = 0; then
33095 ac_path_to_link=""
33096 else
33097 ac_path_to_link=" -L$ac_find_libraries"
33098 fi
a848cd7e
SC
33099 fi
33100
33101 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33102 LDFLAGS="$LDFLAGS $ac_path_to_link"
33103 fi
33104 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
33105 echo "$as_me:$LINENO: result: yes" >&5
33106echo "${ECHO_T}yes" >&6
33107
33108 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
33109echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
33110
0ad5d837
VZ
33111 ac_find_libraries=
33112 for ac_dir in $SEARCH_LIB;
a848cd7e 33113 do
3eca31dc 33114 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33115 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
33116 ac_find_libraries=$ac_dir
33117 break 2
33118 fi
33119 done
33120 done
33121
33122 if test "$ac_find_libraries" != "" ; then
33123 echo "$as_me:$LINENO: result: yes" >&5
33124echo "${ECHO_T}yes" >&6
33125
33126for ac_header in X11/extensions/xf86vmode.h
33127do
33128as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33129echo "$as_me:$LINENO: checking for $ac_header" >&5
33130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33131if eval "test \"\${$as_ac_Header+set}\" = set"; then
33132 echo $ECHO_N "(cached) $ECHO_C" >&6
33133else
33134 cat >conftest.$ac_ext <<_ACEOF
33135/* confdefs.h. */
33136_ACEOF
33137cat confdefs.h >>conftest.$ac_ext
33138cat >>conftest.$ac_ext <<_ACEOF
33139/* end confdefs.h. */
33140
33141 #if HAVE_X11_XLIB_H
33142 #include <X11/Xlib.h>
33143 #endif
33144
33145
33146#include <$ac_header>
33147_ACEOF
33148rm -f conftest.$ac_objext
33149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33150 (eval $ac_compile) 2>conftest.er1
a848cd7e 33151 ac_status=$?
ac1cb8d3
VS
33152 grep -v '^ *+' conftest.er1 >conftest.err
33153 rm -f conftest.er1
33154 cat conftest.err >&5
a848cd7e
SC
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); } &&
fd5199d6 33157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33159 (eval $ac_try) 2>&5
33160 ac_status=$?
33161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33162 (exit $ac_status); }; } &&
33163 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33165 (eval $ac_try) 2>&5
33166 ac_status=$?
33167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168 (exit $ac_status); }; }; then
33169 eval "$as_ac_Header=yes"
33170else
33171 echo "$as_me: failed program was:" >&5
33172sed 's/^/| /' conftest.$ac_ext >&5
33173
33174eval "$as_ac_Header=no"
33175fi
ac1cb8d3 33176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33177fi
33178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33180if test `eval echo '${'$as_ac_Header'}'` = yes; then
33181 cat >>confdefs.h <<_ACEOF
33182#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33183_ACEOF
33184
33185 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
33186
33187fi
33188
33189done
33190
33191 else
33192 echo "$as_me:$LINENO: result: no" >&5
33193echo "${ECHO_T}no" >&6
33194 fi
33195
33196 else
33197 echo "$as_me:$LINENO: result: no" >&5
33198echo "${ECHO_T}no" >&6
dcc1b6ad
VS
33199 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
33200echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
33201 wxUSE_DISPLAY="no"
33202 fi
01cb68df
RG
33203 elif test "$wxUSE_MSW" = 1; then
33204
e5efa97e 33205for ac_header in ddraw.h
01cb68df
RG
33206do
33207as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 33208echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
33209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33210if eval "test \"\${$as_ac_Header+set}\" = set"; then
33211 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 33212else
5294a27e 33213 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
33214/* confdefs.h. */
33215_ACEOF
33216cat confdefs.h >>conftest.$ac_ext
33217cat >>conftest.$ac_ext <<_ACEOF
33218/* end confdefs.h. */
5294a27e
VZ
33219#include <windows.h>
33220
01cb68df
RG
33221#include <$ac_header>
33222_ACEOF
33223rm -f conftest.$ac_objext
33224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33225 (eval $ac_compile) 2>conftest.er1
01cb68df 33226 ac_status=$?
ac1cb8d3
VS
33227 grep -v '^ *+' conftest.er1 >conftest.err
33228 rm -f conftest.er1
33229 cat conftest.err >&5
01cb68df
RG
33230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33231 (exit $ac_status); } &&
fd5199d6 33232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33234 (eval $ac_try) 2>&5
33235 ac_status=$?
33236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237 (exit $ac_status); }; } &&
33238 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
33239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33240 (eval $ac_try) 2>&5
33241 ac_status=$?
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); }; }; then
5294a27e 33244 eval "$as_ac_Header=yes"
01cb68df
RG
33245else
33246 echo "$as_me: failed program was:" >&5
33247sed 's/^/| /' conftest.$ac_ext >&5
33248
5294a27e 33249eval "$as_ac_Header=no"
01cb68df 33250fi
ac1cb8d3 33251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
33252fi
33253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33254echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
33255if test `eval echo '${'$as_ac_Header'}'` = yes; then
33256 cat >>confdefs.h <<_ACEOF
33257#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33258_ACEOF
33259
01cb68df
RG
33260fi
33261
33262done
33263
a848cd7e
SC
33264 fi
33265fi
33266
88bbc332
RR
33267if test "$wxUSE_DETECT_SM" = "yes"; then
33268 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33269 echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33270echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6
33271
33272 ac_find_libraries=
33273 for ac_dir in $SEARCH_LIB;
33274 do
33275 for ac_extension in a so sl dylib dll.a; do
33276 if test -f "$ac_dir/libSM.$ac_extension"; then
33277 ac_find_libraries=$ac_dir
33278 break 2
33279 fi
33280 done
33281 done
33282
33283 if test "$ac_find_libraries" != "" ; then
33284
33285 if test "$ac_find_libraries" = "default location"; then
33286 ac_path_to_link=""
33287 else
33288 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33289 result=$?
33290 if test $result = 0; then
33291 ac_path_to_link=""
33292 else
33293 ac_path_to_link=" -L$ac_find_libraries"
33294 fi
33295 fi
33296
33297 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33298 LDFLAGS="$LDFLAGS $ac_path_to_link"
33299 fi
33300 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33301 echo "$as_me:$LINENO: result: yes" >&5
33302echo "${ECHO_T}yes" >&6
33303 else
33304 echo "$as_me:$LINENO: result: no" >&5
33305echo "${ECHO_T}no" >&6
33306 { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33307echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33308 wxUSE_DETECT_SM="no"
33309 fi
33310 else
33311 wxUSE_DETECT_SM="no"
33312 fi
33313fi
33314
33315
a848cd7e
SC
33316
33317USE_OPENGL=0
33318if test "$wxUSE_OPENGL" = "yes"; then
2e35565a
VZ
33319 if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
33320 { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
33321echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
33322 wxUSE_OPENGL="no"
33323 elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
a848cd7e
SC
33324 OPENGL_LIBS="-framework OpenGL -framework AGL"
33325 elif test "$wxUSE_MSW" = 1; then
33326 OPENGL_LIBS="-lopengl32 -lglu32"
33327 else
e541dae0
VZ
33328 echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33329echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6
a848cd7e 33330
a848cd7e 33331ac_find_includes=
02b05020 33332for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
a848cd7e
SC
33333 do
33334 if test -f "$ac_dir/GL/gl.h"; then
33335 ac_find_includes=$ac_dir
33336 break
33337 fi
33338 done
33339
33340 if test "$ac_find_includes" != "" ; then
33341 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33342echo "${ECHO_T}found in $ac_find_includes" >&6
33343
33344 if test "x$ac_find_includes" = "x/usr/include"; then
33345 ac_path_to_include=""
33346 else
33347 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33348 result=$?
33349 if test $result = 0; then
33350 ac_path_to_include=""
33351 else
33352 ac_path_to_include=" -I$ac_find_includes"
33353 fi
33354 fi
33355
c92ad099 33356 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
e541dae0
VZ
33357 else
33358 echo "$as_me:$LINENO: result: not found" >&5
33359echo "${ECHO_T}not found" >&6
a848cd7e
SC
33360 fi
33361
33362 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33363 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33364echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33365if test "${ac_cv_header_GL_gl_h+set}" = set; then
33366 echo $ECHO_N "(cached) $ECHO_C" >&6
33367fi
33368echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33369echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33370else
33371 # Is the header compilable?
33372echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
33373echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
33374cat >conftest.$ac_ext <<_ACEOF
33375/* confdefs.h. */
33376_ACEOF
33377cat confdefs.h >>conftest.$ac_ext
33378cat >>conftest.$ac_ext <<_ACEOF
33379/* end confdefs.h. */
33380$ac_includes_default
33381#include <GL/gl.h>
33382_ACEOF
33383rm -f conftest.$ac_objext
33384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33385 (eval $ac_compile) 2>conftest.er1
a848cd7e 33386 ac_status=$?
ac1cb8d3
VS
33387 grep -v '^ *+' conftest.er1 >conftest.err
33388 rm -f conftest.er1
33389 cat conftest.err >&5
a848cd7e
SC
33390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391 (exit $ac_status); } &&
fd5199d6 33392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33394 (eval $ac_try) 2>&5
33395 ac_status=$?
33396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33397 (exit $ac_status); }; } &&
33398 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33400 (eval $ac_try) 2>&5
33401 ac_status=$?
33402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403 (exit $ac_status); }; }; then
33404 ac_header_compiler=yes
33405else
33406 echo "$as_me: failed program was:" >&5
33407sed 's/^/| /' conftest.$ac_ext >&5
33408
33409ac_header_compiler=no
33410fi
ac1cb8d3 33411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33412echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33413echo "${ECHO_T}$ac_header_compiler" >&6
33414
33415# Is the header present?
33416echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
33417echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
33418cat >conftest.$ac_ext <<_ACEOF
33419/* confdefs.h. */
33420_ACEOF
33421cat confdefs.h >>conftest.$ac_ext
33422cat >>conftest.$ac_ext <<_ACEOF
33423/* end confdefs.h. */
33424#include <GL/gl.h>
33425_ACEOF
33426if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33428 ac_status=$?
33429 grep -v '^ *+' conftest.er1 >conftest.err
33430 rm -f conftest.er1
33431 cat conftest.err >&5
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); } >/dev/null; then
33434 if test -s conftest.err; then
fd5199d6
VZ
33435 ac_cpp_err=$ac_c_preproc_warn_flag
33436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33437 else
33438 ac_cpp_err=
33439 fi
33440else
33441 ac_cpp_err=yes
33442fi
33443if test -z "$ac_cpp_err"; then
33444 ac_header_preproc=yes
33445else
33446 echo "$as_me: failed program was:" >&5
33447sed 's/^/| /' conftest.$ac_ext >&5
33448
33449 ac_header_preproc=no
33450fi
33451rm -f conftest.err conftest.$ac_ext
33452echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33453echo "${ECHO_T}$ac_header_preproc" >&6
33454
33455# So? What about this header?
fd5199d6 33456case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 33457 yes:no: )
a848cd7e
SC
33458 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33459echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33460 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
33461echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
33462 ac_header_preproc=yes
a848cd7e 33463 ;;
ac1cb8d3 33464 no:yes:* )
a848cd7e
SC
33465 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
33466echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33467 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
33468echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
33469 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
33470echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
33471 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
33472echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33473 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
33474echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33475 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
33476echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33477 (
33478 cat <<\_ASBOX
ac1cb8d3
VS
33479## ----------------------------------------- ##
33480## Report this to wx-dev@lists.wxwidgets.org ##
33481## ----------------------------------------- ##
a848cd7e
SC
33482_ASBOX
33483 ) |
33484 sed "s/^/$as_me: WARNING: /" >&2
33485 ;;
33486esac
33487echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33488echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33489if test "${ac_cv_header_GL_gl_h+set}" = set; then
33490 echo $ECHO_N "(cached) $ECHO_C" >&6
33491else
33492 ac_cv_header_GL_gl_h=$ac_header_preproc
33493fi
33494echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33495echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33496
33497fi
33498if test $ac_cv_header_GL_gl_h = yes; then
33499
5dfc7e56
VZ
33500 if test "${ac_cv_header_GL_glu_h+set}" = set; then
33501 echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33502echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6
33503if test "${ac_cv_header_GL_glu_h+set}" = set; then
33504 echo $ECHO_N "(cached) $ECHO_C" >&6
33505fi
33506echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33507echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6
33508else
33509 # Is the header compilable?
33510echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
33511echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6
33512cat >conftest.$ac_ext <<_ACEOF
33513/* confdefs.h. */
33514_ACEOF
33515cat confdefs.h >>conftest.$ac_ext
33516cat >>conftest.$ac_ext <<_ACEOF
33517/* end confdefs.h. */
33518$ac_includes_default
33519#include <GL/glu.h>
33520_ACEOF
33521rm -f conftest.$ac_objext
33522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33523 (eval $ac_compile) 2>conftest.er1
33524 ac_status=$?
33525 grep -v '^ *+' conftest.er1 >conftest.err
33526 rm -f conftest.er1
33527 cat conftest.err >&5
33528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33529 (exit $ac_status); } &&
fd5199d6 33530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5dfc7e56
VZ
33531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33532 (eval $ac_try) 2>&5
33533 ac_status=$?
33534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33535 (exit $ac_status); }; } &&
33536 { ac_try='test -s conftest.$ac_objext'
33537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33538 (eval $ac_try) 2>&5
33539 ac_status=$?
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); }; }; then
33542 ac_header_compiler=yes
33543else
33544 echo "$as_me: failed program was:" >&5
33545sed 's/^/| /' conftest.$ac_ext >&5
33546
33547ac_header_compiler=no
33548fi
33549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33550echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33551echo "${ECHO_T}$ac_header_compiler" >&6
33552
33553# Is the header present?
33554echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
33555echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6
33556cat >conftest.$ac_ext <<_ACEOF
33557/* confdefs.h. */
33558_ACEOF
33559cat confdefs.h >>conftest.$ac_ext
33560cat >>conftest.$ac_ext <<_ACEOF
33561/* end confdefs.h. */
33562#include <GL/glu.h>
33563_ACEOF
33564if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33566 ac_status=$?
33567 grep -v '^ *+' conftest.er1 >conftest.err
33568 rm -f conftest.er1
33569 cat conftest.err >&5
33570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571 (exit $ac_status); } >/dev/null; then
33572 if test -s conftest.err; then
fd5199d6
VZ
33573 ac_cpp_err=$ac_c_preproc_warn_flag
33574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5dfc7e56
VZ
33575 else
33576 ac_cpp_err=
33577 fi
33578else
33579 ac_cpp_err=yes
33580fi
33581if test -z "$ac_cpp_err"; then
33582 ac_header_preproc=yes
33583else
33584 echo "$as_me: failed program was:" >&5
33585sed 's/^/| /' conftest.$ac_ext >&5
33586
33587 ac_header_preproc=no
33588fi
33589rm -f conftest.err conftest.$ac_ext
33590echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33591echo "${ECHO_T}$ac_header_preproc" >&6
33592
33593# So? What about this header?
fd5199d6 33594case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5dfc7e56
VZ
33595 yes:no: )
33596 { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
33597echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33598 { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
33599echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
33600 ac_header_preproc=yes
33601 ;;
33602 no:yes:* )
33603 { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
33604echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
33605 { echo "$as_me:$LINENO: WARNING: GL/glu.h: check for missing prerequisite headers?" >&5
33606echo "$as_me: WARNING: GL/glu.h: check for missing prerequisite headers?" >&2;}
33607 { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
33608echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
33609 { echo "$as_me:$LINENO: WARNING: GL/glu.h: section \"Present But Cannot Be Compiled\"" >&5
33610echo "$as_me: WARNING: GL/glu.h: section \"Present But Cannot Be Compiled\"" >&2;}
33611 { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
33612echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
33613 { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
33614echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
33615 (
33616 cat <<\_ASBOX
33617## ----------------------------------------- ##
33618## Report this to wx-dev@lists.wxwidgets.org ##
33619## ----------------------------------------- ##
33620_ASBOX
33621 ) |
33622 sed "s/^/$as_me: WARNING: /" >&2
33623 ;;
33624esac
33625echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33626echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6
33627if test "${ac_cv_header_GL_glu_h+set}" = set; then
33628 echo $ECHO_N "(cached) $ECHO_C" >&6
33629else
33630 ac_cv_header_GL_glu_h=$ac_header_preproc
33631fi
33632echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33633echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6
33634
33635fi
33636if test $ac_cv_header_GL_glu_h = yes; then
33637
a848cd7e
SC
33638 found_gl=0
33639
33640 echo "$as_me:$LINENO: checking for -lGL" >&5
33641echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
33642
0ad5d837 33643 ac_find_libraries=
02b05020 33644 for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
a848cd7e 33645 do
3eca31dc 33646 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33647 if test -f "$ac_dir/libGL.$ac_extension"; then
33648 ac_find_libraries=$ac_dir
33649 break 2
33650 fi
33651 done
33652 done
33653
33654 if test "$ac_find_libraries" != "" ; then
02b05020
VZ
33655 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33656echo "${ECHO_T}found in $ac_find_libraries" >&6
69120ee4 33657
a848cd7e 33658
0ad5d837 33659 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33660 ac_path_to_link=""
33661 else
0ad5d837
VZ
33662 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33663 result=$?
33664 if test $result = 0; then
33665 ac_path_to_link=""
33666 else
33667 ac_path_to_link=" -L$ac_find_libraries"
33668 fi
a848cd7e
SC
33669 fi
33670
33671 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33672 LDFLAGS_GL="$ac_path_to_link"
33673 fi
33674
69120ee4
VZ
33675 echo "$as_me:$LINENO: checking for -lGLU" >&5
33676echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 33677
0ad5d837
VZ
33678 ac_find_libraries=
33679 for ac_dir in $SEARCH_LIB;
33680 do
33681 for ac_extension in a so sl dylib dll.a; do
33682 if test -f "$ac_dir/libGLU.$ac_extension"; then
33683 ac_find_libraries=$ac_dir
33684 break 2
33685 fi
33686 done
33687 done
33688
a848cd7e
SC
33689 if test "$ac_find_libraries" != "" ; then
33690
0ad5d837 33691 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33692 ac_path_to_link=""
33693 else
0ad5d837
VZ
33694 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33695 result=$?
33696 if test $result = 0; then
33697 ac_path_to_link=""
33698 else
33699 ac_path_to_link=" -L$ac_find_libraries"
33700 fi
a848cd7e
SC
33701 fi
33702
33703 if test "$ac_path_to_link" != " -L/usr/lib" -a \
33704 "$ac_path_to_link" != "$LDFLAGS_GL"; then
33705 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33706 fi
33707
33708 found_gl=1
33709 OPENGL_LIBS="-lGL -lGLU"
33710 echo "$as_me:$LINENO: result: yes" >&5
33711echo "${ECHO_T}yes" >&6
69120ee4
VZ
33712 else
33713 echo "$as_me:$LINENO: result: no" >&5
33714echo "${ECHO_T}no" >&6
a848cd7e 33715 fi
69120ee4
VZ
33716 else
33717 echo "$as_me:$LINENO: result: no" >&5
33718echo "${ECHO_T}no" >&6
a848cd7e
SC
33719 fi
33720
33721 if test "$found_gl" != 1; then
a848cd7e
SC
33722 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33723echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
33724
0ad5d837
VZ
33725 ac_find_libraries=
33726 for ac_dir in $SEARCH_LIB;
a848cd7e 33727 do
3eca31dc 33728 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33729 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33730 ac_find_libraries=$ac_dir
33731 break 2
33732 fi
33733 done
33734 done
33735
33736 if test "$ac_find_libraries" != "" ; then
33737
0ad5d837 33738 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33739 ac_path_to_link=""
33740 else
0ad5d837
VZ
33741 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33742 result=$?
33743 if test $result = 0; then
33744 ac_path_to_link=""
33745 else
33746 ac_path_to_link=" -L$ac_find_libraries"
33747 fi
a848cd7e
SC
33748 fi
33749
33750 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33751 OPENGL_LIBS="-lMesaGL -lMesaGLU"
33752 echo "$as_me:$LINENO: result: yes" >&5
33753echo "${ECHO_T}yes" >&6
33754 else
33755 echo "$as_me:$LINENO: result: no" >&5
33756echo "${ECHO_T}no" >&6
33757 fi
33758 fi
33759
33760fi
33761
33762
33763
5dfc7e56
VZ
33764fi
33765
33766
33767
a848cd7e
SC
33768 if test "x$OPENGL_LIBS" = "x"; then
33769 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33770echo "$as_me: error: OpenGL libraries not available" >&2;}
33771 { (exit 1); exit 1; }; }
33772 fi
33773 fi
33774
33775 if test "$wxUSE_OPENGL" = "yes"; then
33776 USE_OPENGL=1
33777 cat >>confdefs.h <<\_ACEOF
33778#define wxUSE_OPENGL 1
33779_ACEOF
33780
33781 cat >>confdefs.h <<\_ACEOF
33782#define wxUSE_GLCANVAS 1
33783_ACEOF
33784
33785 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33786 fi
33787fi
33788
a848cd7e
SC
33789
33790if test -n "$TOOLKIT" ; then
33791 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33792fi
33793
a848cd7e
SC
33794
33795
33796if test "$wxUSE_SHARED" = "yes"; then
33797 case "${host}" in
33798 *-pc-msdosdjgpp )
33799 wxUSE_SHARED=no
33800 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33801echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33802 ;;
33803 esac
33804fi
33805
a848cd7e 33806if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
33807
33808
077c7880
VZ
33809 case "${host}" in
33810 *-*-cygwin* | *-*-mingw* )
2dbd07cb 33811 wx_cv_version_script=no
077c7880 33812 ;;
a848cd7e 33813
077c7880
VZ
33814 *)
33815 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
a848cd7e
SC
33816echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
33817if test "${wx_cv_version_script+set}" = set; then
33818 echo $ECHO_N "(cached) $ECHO_C" >&6
33819else
33820
077c7880
VZ
33821 echo "VER_1 { *; };" >conftest.sym
33822 echo "int main() { return 0; }" >conftest.cpp
a848cd7e 33823
077c7880
VZ
33824 if { ac_try='
33825 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33826 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
a848cd7e
SC
33827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33828 (eval $ac_try) 2>&5
33829 ac_status=$?
33830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33831 (exit $ac_status); }; } ; then
077c7880
VZ
33832 if test -s conftest.stderr ; then
33833 wx_cv_version_script=no
33834 else
33835 wx_cv_version_script=yes
33836 fi
33837 else
33838 wx_cv_version_script=no
33839 fi
e5d4b470 33840
077c7880
VZ
33841 if test $wx_cv_version_script = yes
33842 then
33843 echo "struct B { virtual ~B() { } }; \
33844 struct D : public B { }; \
33845 void F() { D d; }" > conftest.cpp
e5d4b470 33846
077c7880
VZ
33847 if { ac_try='
33848 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33849 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
e5d4b470
MW
33850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33851 (eval $ac_try) 2>&5
33852 ac_status=$?
33853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33854 (exit $ac_status); }; } &&
077c7880
VZ
33855 { ac_try='
33856 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33857 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
e5d4b470
MW
33858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33859 (eval $ac_try) 2>&5
33860 ac_status=$?
33861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33862 (exit $ac_status); }; }
077c7880
VZ
33863 then
33864 if { ac_try='
33865 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33866 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
e5d4b470
MW
33867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33868 (eval $ac_try) 2>&5
33869 ac_status=$?
33870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33871 (exit $ac_status); }; }
077c7880
VZ
33872 then
33873 wx_cv_version_script=yes
33874 else
33875 wx_cv_version_script=no
33876 fi
33877 fi
33878 fi
e5d4b470 33879
077c7880
VZ
33880 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33881 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
33882
33883fi
33884echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33885echo "${ECHO_T}$wx_cv_version_script" >&6
077c7880
VZ
33886
33887 if test $wx_cv_version_script = yes ; then
33888 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33889 fi
33890 ;;
33891 esac
a848cd7e
SC
33892
33893
33894 case "${host}" in
33895 *-*-linux* | *-*-gnu* )
02b05020 33896 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
ffa0583f 33897 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 33898 ;;
a848cd7e
SC
33899
33900 *-*-solaris2* )
33901 if test "$GCC" = yes ; then
c92ad099 33902 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
33903
33904 saveLdflags="$LDFLAGS"
33905 LDFLAGS="$saveLdflags -Wl,-rpath,/"
33906 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33907echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
33908 cat >conftest.$ac_ext <<_ACEOF
33909/* confdefs.h. */
33910_ACEOF
33911cat confdefs.h >>conftest.$ac_ext
33912cat >>conftest.$ac_ext <<_ACEOF
33913/* end confdefs.h. */
33914
33915int
33916main ()
33917{
33918
33919 ;
33920 return 0;
33921}
33922_ACEOF
33923rm -f conftest.$ac_objext conftest$ac_exeext
33924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33925 (eval $ac_link) 2>conftest.er1
a848cd7e 33926 ac_status=$?
ac1cb8d3
VS
33927 grep -v '^ *+' conftest.er1 >conftest.err
33928 rm -f conftest.er1
33929 cat conftest.err >&5
a848cd7e
SC
33930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33931 (exit $ac_status); } &&
fd5199d6 33932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33934 (eval $ac_try) 2>&5
33935 ac_status=$?
33936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33937 (exit $ac_status); }; } &&
33938 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33940 (eval $ac_try) 2>&5
33941 ac_status=$?
33942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33943 (exit $ac_status); }; }; then
33944
33945 echo "$as_me:$LINENO: result: yes" >&5
33946echo "${ECHO_T}yes" >&6
02b05020 33947 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
ffa0583f 33948 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
33949
33950else
33951 echo "$as_me: failed program was:" >&5
33952sed 's/^/| /' conftest.$ac_ext >&5
33953
33954
33955 echo "$as_me:$LINENO: result: no" >&5
33956echo "${ECHO_T}no" >&6
33957 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33958echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33959 LDFLAGS="$saveLdflags -Wl,-R,/"
33960 cat >conftest.$ac_ext <<_ACEOF
33961/* confdefs.h. */
33962_ACEOF
33963cat confdefs.h >>conftest.$ac_ext
33964cat >>conftest.$ac_ext <<_ACEOF
33965/* end confdefs.h. */
33966
33967int
33968main ()
33969{
33970
33971 ;
33972 return 0;
33973}
33974_ACEOF
33975rm -f conftest.$ac_objext conftest$ac_exeext
33976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33977 (eval $ac_link) 2>conftest.er1
a848cd7e 33978 ac_status=$?
ac1cb8d3
VS
33979 grep -v '^ *+' conftest.er1 >conftest.err
33980 rm -f conftest.er1
33981 cat conftest.err >&5
a848cd7e
SC
33982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33983 (exit $ac_status); } &&
fd5199d6 33984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33986 (eval $ac_try) 2>&5
33987 ac_status=$?
33988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33989 (exit $ac_status); }; } &&
33990 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33992 (eval $ac_try) 2>&5
33993 ac_status=$?
33994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33995 (exit $ac_status); }; }; then
33996
ffa0583f 33997 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 33998echo "${ECHO_T}yes" >&6
02b05020 33999 SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
ffa0583f
RL
34000 WXCONFIG_RPATH="-Wl,-R,\$libdir"
34001
a848cd7e
SC
34002else
34003 echo "$as_me: failed program was:" >&5
34004sed 's/^/| /' conftest.$ac_ext >&5
34005
34006
34007 echo "$as_me:$LINENO: result: no" >&5
34008echo "${ECHO_T}no" >&6
34009
34010fi
ac1cb8d3
VS
34011rm -f conftest.err conftest.$ac_objext \
34012 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34013
34014fi
ac1cb8d3
VS
34015rm -f conftest.err conftest.$ac_objext \
34016 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34017 LDFLAGS="$saveLdflags"
34018 else
02b05020 34019 SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
ffa0583f 34020 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
34021 fi
34022 ;;
34023
cfda0ea8 34024 *-*-darwin* )
0caebc27
MW
34025 install_name_tool=`which install_name_tool`
34026 if test "$install_name_tool" -a -x "$install_name_tool"; then
02b05020 34027 SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
0caebc27 34028 cat <<EOF >change-install-names
a848cd7e
SC
34029#!/bin/sh
34030libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
34031inst_cmd="install_name_tool "
34032for i in \${libnames} ; do
34033 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
34034done
34035\${inst_cmd} \${3}
34036EOF
0caebc27
MW
34037 chmod +x change-install-names
34038 fi
a848cd7e
SC
34039 ;;
34040
34041 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
34042 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
34043 ;;
a848cd7e 34044
81f90336 34045 *-*-hpux* )
02b05020 34046 SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
81f90336 34047 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 34048 ;;
81f90336 34049
a848cd7e 34050 esac
ceec2216 34051
ffa0583f
RL
34052 if test $wxUSE_RPATH = "no"; then
34053 SAMPLES_RPATH_FLAG=''
34054 SAMPLES_RPATH_POSTLINK=''
34055 WXCONFIG_RPATH=''
34056 fi
34057
34058 SHARED=1
34059
34060else
34061
ceec2216
RL
34062 config_linkage_component="-static"
34063 SHARED=0
ffa0583f 34064
ceec2216 34065fi
a848cd7e 34066
a848cd7e 34067
ceec2216
RL
34068UNICODE=0
34069lib_unicode_suffix=
34070WX_CHARTYPE="ansi"
34071if test "$wxUSE_UNICODE" = "yes"; then
34072 lib_unicode_suffix=u
34073 WX_CHARTYPE="unicode"
34074 UNICODE=1
a848cd7e
SC
34075fi
34076
ceec2216
RL
34077lib_debug_suffix=
34078WX_DEBUGTYPE="release"
34079DEBUG_FLAG=0
34080if test "$wxUSE_DEBUG_FLAG" = "yes"; then
34081 lib_debug_suffix=d
34082 WX_DEBUGTYPE="debug"
34083 DEBUG_FLAG=1
34084fi
a848cd7e 34085
ceec2216
RL
34086WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
34087WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 34088
ceec2216
RL
34089DEBUG_INFO=0
34090if test "$wxUSE_DEBUG_INFO" = "yes"; then
34091 DEBUG_INFO=1
34092fi
a848cd7e 34093
ceec2216 34094WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 34095
ceec2216 34096TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 34097
ceec2216 34098TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 34099
ceec2216
RL
34100if test "$cross_compiling" = "yes"; then
34101 HOST_SUFFIX="-$host_alias"
34102 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
34103 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
34104fi
34105
dd21ced8 34106WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
34107if test "${TOOLKIT_DIR}" = "os2"; then
34108 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34109else
34110 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34111fi
ceec2216
RL
34112
34113
34114
1d1af5ea
DE
34115if test "$wxUSE_COCOA" = 1; then
34116
34117
34118 ac_ext=c
34119ac_cpp='$CPP $CPPFLAGS'
34120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34122ac_compiler_gnu=$ac_cv_c_compiler_gnu
34123
34124ac_ext=m
34125
34126 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
34127echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
34128 cat >conftest.$ac_ext <<_ACEOF
34129/* confdefs.h. */
34130_ACEOF
34131cat confdefs.h >>conftest.$ac_ext
34132cat >>conftest.$ac_ext <<_ACEOF
34133/* end confdefs.h. */
34134#include <AppKit/NSEvent.h>
34135#include <CoreFoundation/CoreFoundation.h>
34136
34137int
34138main ()
34139{
34140
34141 ;
34142 return 0;
34143}
34144_ACEOF
34145rm -f conftest.$ac_objext
34146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34147 (eval $ac_compile) 2>conftest.er1
34148 ac_status=$?
34149 grep -v '^ *+' conftest.er1 >conftest.err
34150 rm -f conftest.er1
34151 cat conftest.err >&5
34152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153 (exit $ac_status); } &&
bb9e79c0 34154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
34155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34156 (eval $ac_try) 2>&5
34157 ac_status=$?
34158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159 (exit $ac_status); }; } &&
34160 { ac_try='test -s conftest.$ac_objext'
34161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34162 (eval $ac_try) 2>&5
34163 ac_status=$?
34164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34165 (exit $ac_status); }; }; then
34166 echo "$as_me:$LINENO: result: no" >&5
34167echo "${ECHO_T}no" >&6
34168else
34169 echo "$as_me: failed program was:" >&5
34170sed 's/^/| /' conftest.$ac_ext >&5
34171
34172echo "$as_me:$LINENO: result: yes" >&5
34173echo "${ECHO_T}yes" >&6
34174 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34175echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
34176 cat >conftest.$ac_ext <<_ACEOF
34177/* confdefs.h. */
34178_ACEOF
34179cat confdefs.h >>conftest.$ac_ext
34180cat >>conftest.$ac_ext <<_ACEOF
34181/* end confdefs.h. */
34182#define __Point__ 1
34183#include <AppKit/NSEvent.h>
34184#include <CoreFoundation/CoreFoundation.h>
34185
34186int
34187main ()
34188{
34189
34190 ;
34191 return 0;
34192}
34193_ACEOF
34194rm -f conftest.$ac_objext
34195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34196 (eval $ac_compile) 2>conftest.er1
34197 ac_status=$?
34198 grep -v '^ *+' conftest.er1 >conftest.err
34199 rm -f conftest.er1
34200 cat conftest.err >&5
34201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34202 (exit $ac_status); } &&
bb9e79c0 34203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
34204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34205 (eval $ac_try) 2>&5
34206 ac_status=$?
34207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34208 (exit $ac_status); }; } &&
34209 { ac_try='test -s conftest.$ac_objext'
34210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34211 (eval $ac_try) 2>&5
34212 ac_status=$?
34213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34214 (exit $ac_status); }; }; then
34215 echo "$as_me:$LINENO: result: yes" >&5
34216echo "${ECHO_T}yes" >&6
34217 cat >>confdefs.h <<\_ACEOF
34218#define __Point__ 1
34219_ACEOF
34220
34221
34222else
34223 echo "$as_me: failed program was:" >&5
34224sed 's/^/| /' conftest.$ac_ext >&5
34225
34226{ { echo "$as_me:$LINENO: error: no
34227See \`config.log' for more details." >&5
34228echo "$as_me: error: no
34229See \`config.log' for more details." >&2;}
34230 { (exit 1); exit 1; }; }
34231
34232fi
34233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34234
34235fi
34236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
34237 ac_ext=c
34238ac_cpp='$CPP $CPPFLAGS'
34239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34241ac_compiler_gnu=$ac_cv_c_compiler_gnu
1d1af5ea
DE
34242
34243fi
34244
a848cd7e 34245if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
34246 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
34247 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 34248
02b05020 34249 LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
34250
34251 # Extract the first word of "Rez", so it can be a program name with args.
34252set dummy Rez; ac_word=$2
34253echo "$as_me:$LINENO: checking for $ac_word" >&5
34254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 34255if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
34256 echo $ECHO_N "(cached) $ECHO_C" >&6
34257else
8ced02f6
DE
34258 if test -n "$REZ"; then
34259 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
34260else
34261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34262for as_dir in $PATH
34263do
34264 IFS=$as_save_IFS
34265 test -z "$as_dir" && as_dir=.
34266 for ac_exec_ext in '' $ac_executable_extensions; do
34267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 34268 ac_cv_prog_REZ="Rez"
a848cd7e
SC
34269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34270 break 2
34271 fi
34272done
34273done
34274
8ced02f6 34275 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
34276fi
34277fi
8ced02f6
DE
34278REZ=$ac_cv_prog_REZ
34279if test -n "$REZ"; then
34280 echo "$as_me:$LINENO: result: $REZ" >&5
34281echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
34282else
34283 echo "$as_me:$LINENO: result: no" >&5
34284echo "${ECHO_T}no" >&6
34285fi
34286
34287 # Extract the first word of "DeRez", so it can be a program name with args.
34288set dummy DeRez; ac_word=$2
34289echo "$as_me:$LINENO: checking for $ac_word" >&5
34290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34291if test "${ac_cv_prog_DEREZ+set}" = set; then
34292 echo $ECHO_N "(cached) $ECHO_C" >&6
34293else
34294 if test -n "$DEREZ"; then
34295 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
34296else
34297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34298for as_dir in $PATH
34299do
34300 IFS=$as_save_IFS
34301 test -z "$as_dir" && as_dir=.
34302 for ac_exec_ext in '' $ac_executable_extensions; do
34303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34304 ac_cv_prog_DEREZ="DeRez"
34305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34306 break 2
34307 fi
34308done
34309done
34310
34311 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
34312fi
34313fi
34314DEREZ=$ac_cv_prog_DEREZ
34315if test -n "$DEREZ"; then
34316 echo "$as_me:$LINENO: result: $DEREZ" >&5
34317echo "${ECHO_T}$DEREZ" >&6
34318else
34319 echo "$as_me:$LINENO: result: no" >&5
34320echo "${ECHO_T}no" >&6
34321fi
34322
34323 # Extract the first word of "SetFile", so it can be a program name with args.
34324set dummy SetFile; ac_word=$2
34325echo "$as_me:$LINENO: checking for $ac_word" >&5
34326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34327if test "${ac_cv_prog_SETFILE+set}" = set; then
34328 echo $ECHO_N "(cached) $ECHO_C" >&6
34329else
34330 if test -n "$SETFILE"; then
34331 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34332else
34333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34334for as_dir in $PATH
34335do
34336 IFS=$as_save_IFS
34337 test -z "$as_dir" && as_dir=.
34338 for ac_exec_ext in '' $ac_executable_extensions; do
34339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34340 ac_cv_prog_SETFILE="SetFile"
34341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34342 break 2
34343 fi
34344done
34345done
34346
34347 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34348fi
34349fi
34350SETFILE=$ac_cv_prog_SETFILE
34351if test -n "$SETFILE"; then
34352 echo "$as_me:$LINENO: result: $SETFILE" >&5
34353echo "${ECHO_T}$SETFILE" >&6
34354else
34355 echo "$as_me:$LINENO: result: no" >&5
34356echo "${ECHO_T}no" >&6
34357fi
34358
34359
34360 MACSETFILE="\$(SETFILE)"
34361
34362 if test "$wxUSE_MAC" = 1; then
8ced02f6 34363 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
34364 RESCOMP="$REZ"
34365 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 34366 else
004ee6da
RL
34367 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
34368 RESCOMP="echo -n \| $REZ"
34369 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 34370 fi
004ee6da 34371
a848cd7e 34372else
ffa0583f 34373 MACSETFILE="@true"
a848cd7e 34374
8ced02f6 34375 if test "$wxUSE_PM" = 1; then
004ee6da
RL
34376 RESCOMP="emxbind"
34377 WXCONFIG_RESFLAGS="-ep"
34378
34379 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 34380 else
8ced02f6 34381 POSTLINK_COMMAND="@true"
a848cd7e 34382 fi
004ee6da 34383
a848cd7e
SC
34384fi
34385
34386
34387
34388echo "$as_me:$LINENO: checking for mode_t" >&5
34389echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
34390if test "${ac_cv_type_mode_t+set}" = set; then
34391 echo $ECHO_N "(cached) $ECHO_C" >&6
34392else
34393 cat >conftest.$ac_ext <<_ACEOF
34394/* confdefs.h. */
34395_ACEOF
34396cat confdefs.h >>conftest.$ac_ext
34397cat >>conftest.$ac_ext <<_ACEOF
34398/* end confdefs.h. */
34399$ac_includes_default
34400int
34401main ()
34402{
34403if ((mode_t *) 0)
34404 return 0;
34405if (sizeof (mode_t))
34406 return 0;
34407 ;
34408 return 0;
34409}
34410_ACEOF
34411rm -f conftest.$ac_objext
34412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34413 (eval $ac_compile) 2>conftest.er1
a848cd7e 34414 ac_status=$?
ac1cb8d3
VS
34415 grep -v '^ *+' conftest.er1 >conftest.err
34416 rm -f conftest.er1
34417 cat conftest.err >&5
a848cd7e
SC
34418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34419 (exit $ac_status); } &&
fd5199d6 34420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34422 (eval $ac_try) 2>&5
34423 ac_status=$?
34424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425 (exit $ac_status); }; } &&
34426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34428 (eval $ac_try) 2>&5
34429 ac_status=$?
34430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34431 (exit $ac_status); }; }; then
34432 ac_cv_type_mode_t=yes
34433else
34434 echo "$as_me: failed program was:" >&5
34435sed 's/^/| /' conftest.$ac_ext >&5
34436
34437ac_cv_type_mode_t=no
34438fi
ac1cb8d3 34439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34440fi
34441echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34442echo "${ECHO_T}$ac_cv_type_mode_t" >&6
34443if test $ac_cv_type_mode_t = yes; then
34444 :
34445else
34446
34447cat >>confdefs.h <<_ACEOF
34448#define mode_t int
34449_ACEOF
34450
34451fi
34452
34453echo "$as_me:$LINENO: checking for off_t" >&5
34454echo $ECHO_N "checking for off_t... $ECHO_C" >&6
34455if test "${ac_cv_type_off_t+set}" = set; then
34456 echo $ECHO_N "(cached) $ECHO_C" >&6
34457else
34458 cat >conftest.$ac_ext <<_ACEOF
34459/* confdefs.h. */
34460_ACEOF
34461cat confdefs.h >>conftest.$ac_ext
34462cat >>conftest.$ac_ext <<_ACEOF
34463/* end confdefs.h. */
34464$ac_includes_default
34465int
34466main ()
34467{
34468if ((off_t *) 0)
34469 return 0;
34470if (sizeof (off_t))
34471 return 0;
34472 ;
34473 return 0;
34474}
34475_ACEOF
34476rm -f conftest.$ac_objext
34477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34478 (eval $ac_compile) 2>conftest.er1
a848cd7e 34479 ac_status=$?
ac1cb8d3
VS
34480 grep -v '^ *+' conftest.er1 >conftest.err
34481 rm -f conftest.er1
34482 cat conftest.err >&5
a848cd7e
SC
34483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484 (exit $ac_status); } &&
fd5199d6 34485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34487 (eval $ac_try) 2>&5
34488 ac_status=$?
34489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34490 (exit $ac_status); }; } &&
34491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34493 (eval $ac_try) 2>&5
34494 ac_status=$?
34495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34496 (exit $ac_status); }; }; then
34497 ac_cv_type_off_t=yes
34498else
34499 echo "$as_me: failed program was:" >&5
34500sed 's/^/| /' conftest.$ac_ext >&5
34501
34502ac_cv_type_off_t=no
34503fi
ac1cb8d3 34504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34505fi
34506echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34507echo "${ECHO_T}$ac_cv_type_off_t" >&6
34508if test $ac_cv_type_off_t = yes; then
34509 :
34510else
34511
34512cat >>confdefs.h <<_ACEOF
34513#define off_t long
34514_ACEOF
34515
34516fi
34517
34518echo "$as_me:$LINENO: checking for pid_t" >&5
34519echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
34520if test "${ac_cv_type_pid_t+set}" = set; then
34521 echo $ECHO_N "(cached) $ECHO_C" >&6
34522else
34523 cat >conftest.$ac_ext <<_ACEOF
34524/* confdefs.h. */
34525_ACEOF
34526cat confdefs.h >>conftest.$ac_ext
34527cat >>conftest.$ac_ext <<_ACEOF
34528/* end confdefs.h. */
34529$ac_includes_default
34530int
34531main ()
34532{
34533if ((pid_t *) 0)
34534 return 0;
34535if (sizeof (pid_t))
34536 return 0;
34537 ;
34538 return 0;
34539}
34540_ACEOF
34541rm -f conftest.$ac_objext
34542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34543 (eval $ac_compile) 2>conftest.er1
a848cd7e 34544 ac_status=$?
ac1cb8d3
VS
34545 grep -v '^ *+' conftest.er1 >conftest.err
34546 rm -f conftest.er1
34547 cat conftest.err >&5
a848cd7e
SC
34548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34549 (exit $ac_status); } &&
fd5199d6 34550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34552 (eval $ac_try) 2>&5
34553 ac_status=$?
34554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34555 (exit $ac_status); }; } &&
34556 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34558 (eval $ac_try) 2>&5
34559 ac_status=$?
34560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34561 (exit $ac_status); }; }; then
34562 ac_cv_type_pid_t=yes
34563else
34564 echo "$as_me: failed program was:" >&5
34565sed 's/^/| /' conftest.$ac_ext >&5
34566
34567ac_cv_type_pid_t=no
34568fi
ac1cb8d3 34569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34570fi
34571echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34572echo "${ECHO_T}$ac_cv_type_pid_t" >&6
34573if test $ac_cv_type_pid_t = yes; then
34574 :
34575else
34576
34577cat >>confdefs.h <<_ACEOF
34578#define pid_t int
34579_ACEOF
34580
34581fi
34582
34583echo "$as_me:$LINENO: checking for size_t" >&5
34584echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34585if test "${ac_cv_type_size_t+set}" = set; then
34586 echo $ECHO_N "(cached) $ECHO_C" >&6
34587else
34588 cat >conftest.$ac_ext <<_ACEOF
34589/* confdefs.h. */
34590_ACEOF
34591cat confdefs.h >>conftest.$ac_ext
34592cat >>conftest.$ac_ext <<_ACEOF
34593/* end confdefs.h. */
34594$ac_includes_default
34595int
34596main ()
34597{
34598if ((size_t *) 0)
34599 return 0;
34600if (sizeof (size_t))
34601 return 0;
34602 ;
34603 return 0;
34604}
34605_ACEOF
34606rm -f conftest.$ac_objext
34607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34608 (eval $ac_compile) 2>conftest.er1
a848cd7e 34609 ac_status=$?
ac1cb8d3
VS
34610 grep -v '^ *+' conftest.er1 >conftest.err
34611 rm -f conftest.er1
34612 cat conftest.err >&5
a848cd7e
SC
34613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34614 (exit $ac_status); } &&
fd5199d6 34615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34617 (eval $ac_try) 2>&5
34618 ac_status=$?
34619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34620 (exit $ac_status); }; } &&
34621 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34623 (eval $ac_try) 2>&5
34624 ac_status=$?
34625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34626 (exit $ac_status); }; }; then
34627 ac_cv_type_size_t=yes
34628else
34629 echo "$as_me: failed program was:" >&5
34630sed 's/^/| /' conftest.$ac_ext >&5
34631
34632ac_cv_type_size_t=no
34633fi
ac1cb8d3 34634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34635fi
34636echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34637echo "${ECHO_T}$ac_cv_type_size_t" >&6
34638if test $ac_cv_type_size_t = yes; then
34639 :
34640else
34641
34642cat >>confdefs.h <<_ACEOF
34643#define size_t unsigned
34644_ACEOF
34645
34646fi
34647
34648echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34649echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34650if test "${ac_cv_type_uid_t+set}" = set; then
34651 echo $ECHO_N "(cached) $ECHO_C" >&6
34652else
34653 cat >conftest.$ac_ext <<_ACEOF
34654/* confdefs.h. */
34655_ACEOF
34656cat confdefs.h >>conftest.$ac_ext
34657cat >>conftest.$ac_ext <<_ACEOF
34658/* end confdefs.h. */
34659#include <sys/types.h>
34660
34661_ACEOF
34662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34663 $EGREP "uid_t" >/dev/null 2>&1; then
34664 ac_cv_type_uid_t=yes
34665else
34666 ac_cv_type_uid_t=no
34667fi
34668rm -f conftest*
34669
34670fi
34671echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34672echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34673if test $ac_cv_type_uid_t = no; then
34674
34675cat >>confdefs.h <<\_ACEOF
34676#define uid_t int
34677_ACEOF
34678
34679
34680cat >>confdefs.h <<\_ACEOF
34681#define gid_t int
34682_ACEOF
34683
34684fi
34685
34686
d51253e8
RL
34687echo "$as_me:$LINENO: checking for ssize_t" >&5
34688echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34689if test "${ac_cv_type_ssize_t+set}" = set; then
34690 echo $ECHO_N "(cached) $ECHO_C" >&6
34691else
34692 cat >conftest.$ac_ext <<_ACEOF
34693/* confdefs.h. */
34694_ACEOF
34695cat confdefs.h >>conftest.$ac_ext
34696cat >>conftest.$ac_ext <<_ACEOF
34697/* end confdefs.h. */
34698$ac_includes_default
34699int
34700main ()
34701{
34702if ((ssize_t *) 0)
34703 return 0;
34704if (sizeof (ssize_t))
34705 return 0;
34706 ;
34707 return 0;
34708}
34709_ACEOF
34710rm -f conftest.$ac_objext
34711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34712 (eval $ac_compile) 2>conftest.er1
34713 ac_status=$?
34714 grep -v '^ *+' conftest.er1 >conftest.err
34715 rm -f conftest.er1
34716 cat conftest.err >&5
34717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34718 (exit $ac_status); } &&
fd5199d6 34719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
34720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34721 (eval $ac_try) 2>&5
34722 ac_status=$?
34723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34724 (exit $ac_status); }; } &&
34725 { ac_try='test -s conftest.$ac_objext'
34726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34727 (eval $ac_try) 2>&5
34728 ac_status=$?
34729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34730 (exit $ac_status); }; }; then
34731 ac_cv_type_ssize_t=yes
34732else
34733 echo "$as_me: failed program was:" >&5
34734sed 's/^/| /' conftest.$ac_ext >&5
34735
34736ac_cv_type_ssize_t=no
34737fi
34738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34739fi
34740echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34741echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34742if test $ac_cv_type_ssize_t = yes; then
34743
34744cat >>confdefs.h <<_ACEOF
34745#define HAVE_SSIZE_T 1
34746_ACEOF
34747
34748
34749fi
34750
34751
9b8888f9
VZ
34752ac_ext=cc
34753ac_cpp='$CXXCPP $CPPFLAGS'
34754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34757 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
a848cd7e
SC
34758echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34759if test "${wx_cv_size_t_is_uint+set}" = set; then
34760 echo $ECHO_N "(cached) $ECHO_C" >&6
34761else
34762
34763 cat >conftest.$ac_ext <<_ACEOF
34764/* confdefs.h. */
34765_ACEOF
34766cat confdefs.h >>conftest.$ac_ext
34767cat >>conftest.$ac_ext <<_ACEOF
34768/* end confdefs.h. */
34769#include <stddef.h>
34770int
34771main ()
34772{
34773
34774 return 0; }
34775
34776 struct Foo { void foo(size_t); void foo(unsigned int); };
34777
34778 int bar() {
34779
34780 ;
34781 return 0;
34782}
34783_ACEOF
34784rm -f conftest.$ac_objext
34785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34786 (eval $ac_compile) 2>conftest.er1
a848cd7e 34787 ac_status=$?
ac1cb8d3
VS
34788 grep -v '^ *+' conftest.er1 >conftest.err
34789 rm -f conftest.er1
34790 cat conftest.err >&5
a848cd7e
SC
34791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34792 (exit $ac_status); } &&
9b8888f9 34793 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34795 (eval $ac_try) 2>&5
34796 ac_status=$?
34797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34798 (exit $ac_status); }; } &&
34799 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34801 (eval $ac_try) 2>&5
34802 ac_status=$?
34803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34804 (exit $ac_status); }; }; then
34805 wx_cv_size_t_is_uint=no
34806else
34807 echo "$as_me: failed program was:" >&5
34808sed 's/^/| /' conftest.$ac_ext >&5
34809
34810wx_cv_size_t_is_uint=yes
34811
34812fi
ac1cb8d3 34813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34814
34815
34816fi
34817echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34818echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
34819
34820if test "$wx_cv_size_t_is_uint" = "yes"; then
34821 cat >>confdefs.h <<\_ACEOF
34822#define wxSIZE_T_IS_UINT 1
34823_ACEOF
34824
34825else
34826 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34827echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
34828if test "${wx_cv_size_t_is_ulong+set}" = set; then
34829 echo $ECHO_N "(cached) $ECHO_C" >&6
34830else
34831 cat >conftest.$ac_ext <<_ACEOF
34832/* confdefs.h. */
34833_ACEOF
34834cat confdefs.h >>conftest.$ac_ext
34835cat >>conftest.$ac_ext <<_ACEOF
34836/* end confdefs.h. */
34837#include <stddef.h>
34838int
34839main ()
34840{
34841
34842 return 0; }
34843
34844 struct Foo { void foo(size_t); void foo(unsigned long); };
34845
34846 int bar() {
34847
34848 ;
34849 return 0;
34850}
34851_ACEOF
34852rm -f conftest.$ac_objext
34853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34854 (eval $ac_compile) 2>conftest.er1
a848cd7e 34855 ac_status=$?
ac1cb8d3
VS
34856 grep -v '^ *+' conftest.er1 >conftest.err
34857 rm -f conftest.er1
34858 cat conftest.err >&5
a848cd7e
SC
34859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34860 (exit $ac_status); } &&
9b8888f9 34861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34863 (eval $ac_try) 2>&5
34864 ac_status=$?
34865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34866 (exit $ac_status); }; } &&
34867 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34869 (eval $ac_try) 2>&5
34870 ac_status=$?
34871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34872 (exit $ac_status); }; }; then
34873 wx_cv_size_t_is_ulong=no
34874else
34875 echo "$as_me: failed program was:" >&5
34876sed 's/^/| /' conftest.$ac_ext >&5
34877
34878wx_cv_size_t_is_ulong=yes
34879
34880fi
ac1cb8d3 34881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34882
34883fi
34884echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34885echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
34886
34887 if test "$wx_cv_size_t_is_ulong" = "yes"; then
34888 cat >>confdefs.h <<\_ACEOF
34889#define wxSIZE_T_IS_ULONG 1
34890_ACEOF
34891
34892 fi
34893fi
34894
9b8888f9
VZ
34895ac_ext=c
34896ac_cpp='$CPP $CPPFLAGS'
34897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34899ac_compiler_gnu=$ac_cv_c_compiler_gnu
34900
a848cd7e
SC
34901
34902echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34903echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
34904if test "${wx_cv_struct_pw_gecos+set}" = set; then
34905 echo $ECHO_N "(cached) $ECHO_C" >&6
34906else
34907
34908 cat >conftest.$ac_ext <<_ACEOF
34909/* confdefs.h. */
34910_ACEOF
34911cat confdefs.h >>conftest.$ac_ext
34912cat >>conftest.$ac_ext <<_ACEOF
34913/* end confdefs.h. */
34914#include <pwd.h>
34915int
34916main ()
34917{
34918
34919 char *p;
34920 struct passwd *pw;
34921 p = pw->pw_gecos;
34922
34923 ;
34924 return 0;
34925}
34926_ACEOF
34927rm -f conftest.$ac_objext
34928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34929 (eval $ac_compile) 2>conftest.er1
a848cd7e 34930 ac_status=$?
ac1cb8d3
VS
34931 grep -v '^ *+' conftest.er1 >conftest.err
34932 rm -f conftest.er1
34933 cat conftest.err >&5
a848cd7e
SC
34934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34935 (exit $ac_status); } &&
fd5199d6 34936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34938 (eval $ac_try) 2>&5
34939 ac_status=$?
34940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34941 (exit $ac_status); }; } &&
34942 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34944 (eval $ac_try) 2>&5
34945 ac_status=$?
34946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34947 (exit $ac_status); }; }; then
34948
34949 wx_cv_struct_pw_gecos=yes
34950
34951else
34952 echo "$as_me: failed program was:" >&5
34953sed 's/^/| /' conftest.$ac_ext >&5
34954
34955
34956 wx_cv_struct_pw_gecos=no
34957
34958
34959fi
ac1cb8d3 34960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34961
34962
34963fi
34964echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34965echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34966
34967if test "$wx_cv_struct_pw_gecos" = "yes"; then
34968 cat >>confdefs.h <<\_ACEOF
34969#define HAVE_PW_GECOS 1
34970_ACEOF
34971
34972fi
34973
34974
47a7e797 34975if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
34976 cat >>confdefs.h <<\_ACEOF
34977#define wxUSE_WCHAR_T 1
34978_ACEOF
34979
34980
34981 WCSLEN_FOUND=0
34982 WCHAR_LINK=
34983
34984for ac_func in wcslen
34985do
34986as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34987echo "$as_me:$LINENO: checking for $ac_func" >&5
34988echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34989if eval "test \"\${$as_ac_var+set}\" = set"; then
34990 echo $ECHO_N "(cached) $ECHO_C" >&6
34991else
34992 cat >conftest.$ac_ext <<_ACEOF
34993/* confdefs.h. */
34994_ACEOF
34995cat confdefs.h >>conftest.$ac_ext
34996cat >>conftest.$ac_ext <<_ACEOF
34997/* end confdefs.h. */
ac1cb8d3
VS
34998/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35000#define $ac_func innocuous_$ac_func
35001
a848cd7e
SC
35002/* System header to define __stub macros and hopefully few prototypes,
35003 which can conflict with char $ac_func (); below.
35004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35005 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35006
a848cd7e
SC
35007#ifdef __STDC__
35008# include <limits.h>
35009#else
35010# include <assert.h>
35011#endif
ac1cb8d3
VS
35012
35013#undef $ac_func
35014
a848cd7e
SC
35015/* Override any gcc2 internal prototype to avoid an error. */
35016#ifdef __cplusplus
35017extern "C"
35018{
35019#endif
35020/* We use char because int might match the return type of a gcc2
35021 builtin and then its argument prototype would still apply. */
35022char $ac_func ();
35023/* The GNU C library defines this for functions which it implements
35024 to always fail with ENOSYS. Some functions are actually named
35025 something starting with __ and the normal name is an alias. */
35026#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35027choke me
35028#else
35029char (*f) () = $ac_func;
35030#endif
35031#ifdef __cplusplus
35032}
35033#endif
35034
35035int
35036main ()
35037{
35038return f != $ac_func;
35039 ;
35040 return 0;
35041}
35042_ACEOF
35043rm -f conftest.$ac_objext conftest$ac_exeext
35044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35045 (eval $ac_link) 2>conftest.er1
a848cd7e 35046 ac_status=$?
ac1cb8d3
VS
35047 grep -v '^ *+' conftest.er1 >conftest.err
35048 rm -f conftest.er1
35049 cat conftest.err >&5
a848cd7e
SC
35050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35051 (exit $ac_status); } &&
fd5199d6 35052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35054 (eval $ac_try) 2>&5
35055 ac_status=$?
35056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35057 (exit $ac_status); }; } &&
35058 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35060 (eval $ac_try) 2>&5
35061 ac_status=$?
35062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35063 (exit $ac_status); }; }; then
35064 eval "$as_ac_var=yes"
35065else
35066 echo "$as_me: failed program was:" >&5
35067sed 's/^/| /' conftest.$ac_ext >&5
35068
35069eval "$as_ac_var=no"
35070fi
ac1cb8d3
VS
35071rm -f conftest.err conftest.$ac_objext \
35072 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35073fi
35074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35075echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35076if test `eval echo '${'$as_ac_var'}'` = yes; then
35077 cat >>confdefs.h <<_ACEOF
35078#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35079_ACEOF
35080 WCSLEN_FOUND=1
35081fi
35082done
35083
35084
35085 if test "$WCSLEN_FOUND" = 0; then
35086 if test "$TOOLKIT" = "MSW"; then
35087 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
35088echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
35089if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
35090 echo $ECHO_N "(cached) $ECHO_C" >&6
35091else
35092 ac_check_lib_save_LIBS=$LIBS
35093LIBS="-lmsvcrt $LIBS"
35094cat >conftest.$ac_ext <<_ACEOF
35095/* confdefs.h. */
35096_ACEOF
35097cat confdefs.h >>conftest.$ac_ext
35098cat >>conftest.$ac_ext <<_ACEOF
35099/* end confdefs.h. */
35100
35101/* Override any gcc2 internal prototype to avoid an error. */
35102#ifdef __cplusplus
35103extern "C"
35104#endif
35105/* We use char because int might match the return type of a gcc2
35106 builtin and then its argument prototype would still apply. */
35107char wcslen ();
35108int
35109main ()
35110{
35111wcslen ();
35112 ;
35113 return 0;
35114}
35115_ACEOF
35116rm -f conftest.$ac_objext conftest$ac_exeext
35117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35118 (eval $ac_link) 2>conftest.er1
a848cd7e 35119 ac_status=$?
ac1cb8d3
VS
35120 grep -v '^ *+' conftest.er1 >conftest.err
35121 rm -f conftest.er1
35122 cat conftest.err >&5
a848cd7e
SC
35123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35124 (exit $ac_status); } &&
fd5199d6 35125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35127 (eval $ac_try) 2>&5
35128 ac_status=$?
35129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130 (exit $ac_status); }; } &&
35131 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35133 (eval $ac_try) 2>&5
35134 ac_status=$?
35135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35136 (exit $ac_status); }; }; then
35137 ac_cv_lib_msvcrt_wcslen=yes
35138else
35139 echo "$as_me: failed program was:" >&5
35140sed 's/^/| /' conftest.$ac_ext >&5
35141
35142ac_cv_lib_msvcrt_wcslen=no
35143fi
ac1cb8d3
VS
35144rm -f conftest.err conftest.$ac_objext \
35145 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35146LIBS=$ac_check_lib_save_LIBS
35147fi
35148echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
35149echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
35150if test $ac_cv_lib_msvcrt_wcslen = yes; then
35151 WCHAR_OK=1
35152fi
35153
35154 else
35155 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
35156echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
35157if test "${ac_cv_lib_w_wcslen+set}" = set; then
35158 echo $ECHO_N "(cached) $ECHO_C" >&6
35159else
35160 ac_check_lib_save_LIBS=$LIBS
35161LIBS="-lw $LIBS"
35162cat >conftest.$ac_ext <<_ACEOF
35163/* confdefs.h. */
35164_ACEOF
35165cat confdefs.h >>conftest.$ac_ext
35166cat >>conftest.$ac_ext <<_ACEOF
35167/* end confdefs.h. */
35168
35169/* Override any gcc2 internal prototype to avoid an error. */
35170#ifdef __cplusplus
35171extern "C"
35172#endif
35173/* We use char because int might match the return type of a gcc2
35174 builtin and then its argument prototype would still apply. */
35175char wcslen ();
35176int
35177main ()
35178{
35179wcslen ();
35180 ;
35181 return 0;
35182}
35183_ACEOF
35184rm -f conftest.$ac_objext conftest$ac_exeext
35185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35186 (eval $ac_link) 2>conftest.er1
a848cd7e 35187 ac_status=$?
ac1cb8d3
VS
35188 grep -v '^ *+' conftest.er1 >conftest.err
35189 rm -f conftest.er1
35190 cat conftest.err >&5
a848cd7e
SC
35191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35192 (exit $ac_status); } &&
fd5199d6 35193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35195 (eval $ac_try) 2>&5
35196 ac_status=$?
35197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35198 (exit $ac_status); }; } &&
35199 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35201 (eval $ac_try) 2>&5
35202 ac_status=$?
35203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35204 (exit $ac_status); }; }; then
35205 ac_cv_lib_w_wcslen=yes
35206else
35207 echo "$as_me: failed program was:" >&5
35208sed 's/^/| /' conftest.$ac_ext >&5
35209
35210ac_cv_lib_w_wcslen=no
35211fi
ac1cb8d3
VS
35212rm -f conftest.err conftest.$ac_objext \
35213 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35214LIBS=$ac_check_lib_save_LIBS
35215fi
35216echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
35217echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
35218if test $ac_cv_lib_w_wcslen = yes; then
35219
35220 WCHAR_LINK=" -lw"
35221 WCSLEN_FOUND=1
35222
35223fi
35224
35225 fi
35226 fi
35227
35228 if test "$WCSLEN_FOUND" = 1; then
35229 cat >>confdefs.h <<\_ACEOF
35230#define HAVE_WCSLEN 1
35231_ACEOF
35232
35233 fi
35234
efdf6afe 35235 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 35236 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
35237 fi
35238
efdf6afe
VZ
35239 echo "$as_me:$LINENO: checking for mbstate_t" >&5
35240echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
35241if test "${ac_cv_type_mbstate_t+set}" = set; then
35242 echo $ECHO_N "(cached) $ECHO_C" >&6
35243else
35244 cat >conftest.$ac_ext <<_ACEOF
35245/* confdefs.h. */
35246_ACEOF
35247cat confdefs.h >>conftest.$ac_ext
35248cat >>conftest.$ac_ext <<_ACEOF
35249/* end confdefs.h. */
35250#include <wchar.h>
35251
35252int
35253main ()
35254{
35255if ((mbstate_t *) 0)
35256 return 0;
35257if (sizeof (mbstate_t))
35258 return 0;
35259 ;
35260 return 0;
35261}
35262_ACEOF
35263rm -f conftest.$ac_objext
35264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35265 (eval $ac_compile) 2>conftest.er1
35266 ac_status=$?
35267 grep -v '^ *+' conftest.er1 >conftest.err
35268 rm -f conftest.er1
35269 cat conftest.err >&5
35270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35271 (exit $ac_status); } &&
fd5199d6 35272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
35273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35274 (eval $ac_try) 2>&5
35275 ac_status=$?
35276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35277 (exit $ac_status); }; } &&
35278 { ac_try='test -s conftest.$ac_objext'
35279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35280 (eval $ac_try) 2>&5
35281 ac_status=$?
35282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35283 (exit $ac_status); }; }; then
35284 ac_cv_type_mbstate_t=yes
35285else
35286 echo "$as_me: failed program was:" >&5
35287sed 's/^/| /' conftest.$ac_ext >&5
35288
35289ac_cv_type_mbstate_t=no
35290fi
35291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35292fi
35293echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35294echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
35295if test $ac_cv_type_mbstate_t = yes; then
35296
35297cat >>confdefs.h <<_ACEOF
35298#define HAVE_MBSTATE_T 1
35299_ACEOF
35300
a848cd7e
SC
35301
35302for ac_func in wcsrtombs
35303do
35304as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35305echo "$as_me:$LINENO: checking for $ac_func" >&5
35306echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35307if eval "test \"\${$as_ac_var+set}\" = set"; then
35308 echo $ECHO_N "(cached) $ECHO_C" >&6
35309else
35310 cat >conftest.$ac_ext <<_ACEOF
35311/* confdefs.h. */
35312_ACEOF
35313cat confdefs.h >>conftest.$ac_ext
35314cat >>conftest.$ac_ext <<_ACEOF
35315/* end confdefs.h. */
ac1cb8d3
VS
35316/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35318#define $ac_func innocuous_$ac_func
35319
a848cd7e
SC
35320/* System header to define __stub macros and hopefully few prototypes,
35321 which can conflict with char $ac_func (); below.
35322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35323 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35324
a848cd7e
SC
35325#ifdef __STDC__
35326# include <limits.h>
35327#else
35328# include <assert.h>
35329#endif
ac1cb8d3
VS
35330
35331#undef $ac_func
35332
a848cd7e
SC
35333/* Override any gcc2 internal prototype to avoid an error. */
35334#ifdef __cplusplus
35335extern "C"
35336{
35337#endif
35338/* We use char because int might match the return type of a gcc2
35339 builtin and then its argument prototype would still apply. */
35340char $ac_func ();
35341/* The GNU C library defines this for functions which it implements
35342 to always fail with ENOSYS. Some functions are actually named
35343 something starting with __ and the normal name is an alias. */
35344#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35345choke me
35346#else
35347char (*f) () = $ac_func;
35348#endif
35349#ifdef __cplusplus
35350}
35351#endif
35352
35353int
35354main ()
35355{
35356return f != $ac_func;
35357 ;
35358 return 0;
35359}
35360_ACEOF
35361rm -f conftest.$ac_objext conftest$ac_exeext
35362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35363 (eval $ac_link) 2>conftest.er1
a848cd7e 35364 ac_status=$?
ac1cb8d3
VS
35365 grep -v '^ *+' conftest.er1 >conftest.err
35366 rm -f conftest.er1
35367 cat conftest.err >&5
a848cd7e
SC
35368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35369 (exit $ac_status); } &&
fd5199d6 35370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35372 (eval $ac_try) 2>&5
35373 ac_status=$?
35374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35375 (exit $ac_status); }; } &&
35376 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35378 (eval $ac_try) 2>&5
35379 ac_status=$?
35380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35381 (exit $ac_status); }; }; then
35382 eval "$as_ac_var=yes"
35383else
35384 echo "$as_me: failed program was:" >&5
35385sed 's/^/| /' conftest.$ac_ext >&5
35386
35387eval "$as_ac_var=no"
35388fi
ac1cb8d3
VS
35389rm -f conftest.err conftest.$ac_objext \
35390 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35391fi
35392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35393echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35394if test `eval echo '${'$as_ac_var'}'` = yes; then
35395 cat >>confdefs.h <<_ACEOF
35396#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35397_ACEOF
35398
35399fi
35400done
35401
efdf6afe
VZ
35402fi
35403
a848cd7e
SC
35404else
35405 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35406echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35407fi
35408
a848cd7e 35409
4a767dd5
VZ
35410
35411for ac_func in snprintf vsnprintf
a848cd7e
SC
35412do
35413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35414echo "$as_me:$LINENO: checking for $ac_func" >&5
35415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35416if eval "test \"\${$as_ac_var+set}\" = set"; then
35417 echo $ECHO_N "(cached) $ECHO_C" >&6
35418else
35419 cat >conftest.$ac_ext <<_ACEOF
35420/* confdefs.h. */
35421_ACEOF
35422cat confdefs.h >>conftest.$ac_ext
35423cat >>conftest.$ac_ext <<_ACEOF
35424/* end confdefs.h. */
ac1cb8d3
VS
35425/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35427#define $ac_func innocuous_$ac_func
35428
a848cd7e
SC
35429/* System header to define __stub macros and hopefully few prototypes,
35430 which can conflict with char $ac_func (); below.
35431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35432 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35433
a848cd7e
SC
35434#ifdef __STDC__
35435# include <limits.h>
35436#else
35437# include <assert.h>
35438#endif
ac1cb8d3
VS
35439
35440#undef $ac_func
35441
a848cd7e
SC
35442/* Override any gcc2 internal prototype to avoid an error. */
35443#ifdef __cplusplus
35444extern "C"
35445{
35446#endif
35447/* We use char because int might match the return type of a gcc2
35448 builtin and then its argument prototype would still apply. */
35449char $ac_func ();
35450/* The GNU C library defines this for functions which it implements
35451 to always fail with ENOSYS. Some functions are actually named
35452 something starting with __ and the normal name is an alias. */
35453#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35454choke me
35455#else
35456char (*f) () = $ac_func;
35457#endif
35458#ifdef __cplusplus
35459}
35460#endif
35461
35462int
35463main ()
35464{
35465return f != $ac_func;
35466 ;
35467 return 0;
35468}
35469_ACEOF
35470rm -f conftest.$ac_objext conftest$ac_exeext
35471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35472 (eval $ac_link) 2>conftest.er1
a848cd7e 35473 ac_status=$?
ac1cb8d3
VS
35474 grep -v '^ *+' conftest.er1 >conftest.err
35475 rm -f conftest.er1
35476 cat conftest.err >&5
a848cd7e
SC
35477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35478 (exit $ac_status); } &&
fd5199d6 35479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35481 (eval $ac_try) 2>&5
35482 ac_status=$?
35483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35484 (exit $ac_status); }; } &&
35485 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35487 (eval $ac_try) 2>&5
35488 ac_status=$?
35489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35490 (exit $ac_status); }; }; then
35491 eval "$as_ac_var=yes"
35492else
35493 echo "$as_me: failed program was:" >&5
35494sed 's/^/| /' conftest.$ac_ext >&5
35495
35496eval "$as_ac_var=no"
35497fi
ac1cb8d3
VS
35498rm -f conftest.err conftest.$ac_objext \
35499 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35500fi
35501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35502echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35503if test `eval echo '${'$as_ac_var'}'` = yes; then
35504 cat >>confdefs.h <<_ACEOF
35505#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35506_ACEOF
35507
35508fi
35509done
35510
35511
35512if test "$ac_cv_func_vsnprintf" = "yes"; then
35513 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35514echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
35515if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35516 echo $ECHO_N "(cached) $ECHO_C" >&6
35517else
35518
efdf6afe 35519 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
35520/* confdefs.h. */
35521_ACEOF
35522cat confdefs.h >>conftest.$ac_ext
35523cat >>conftest.$ac_ext <<_ACEOF
35524/* end confdefs.h. */
35525
35526 #include <stdio.h>
35527 #include <stdarg.h>
efdf6afe
VZ
35528 #ifdef __MSL__
35529 #if __MSL__ >= 0x6000
35530 namespace std {}
35531 using namespace std;
35532 #endif
35533 #endif
a848cd7e
SC
35534
35535int
35536main ()
35537{
35538
35539 char *buf;
35540 va_list ap;
62fa8b3a 35541 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
35542
35543 ;
35544 return 0;
35545}
35546_ACEOF
35547rm -f conftest.$ac_objext
35548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35549 (eval $ac_compile) 2>conftest.er1
35550 ac_status=$?
35551 grep -v '^ *+' conftest.er1 >conftest.err
35552 rm -f conftest.er1
35553 cat conftest.err >&5
35554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35555 (exit $ac_status); } &&
fd5199d6 35556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
c122b164
DE
35557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35558 (eval $ac_try) 2>&5
35559 ac_status=$?
35560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35561 (exit $ac_status); }; } &&
35562 { ac_try='test -s conftest.$ac_objext'
35563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35564 (eval $ac_try) 2>&5
35565 ac_status=$?
35566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35567 (exit $ac_status); }; }; then
35568 wx_cv_func_vsnprintf_decl=yes
35569else
35570 echo "$as_me: failed program was:" >&5
35571sed 's/^/| /' conftest.$ac_ext >&5
35572
a848cd7e
SC
35573wx_cv_func_vsnprintf_decl=no
35574
35575fi
ac1cb8d3 35576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35577
35578
35579fi
35580echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35581echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
35582
35583 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35584 cat >>confdefs.h <<\_ACEOF
35585#define HAVE_VSNPRINTF_DECL 1
35586_ACEOF
35587
62fa8b3a
MW
35588
35589 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35590echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
35591if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35592 echo $ECHO_N "(cached) $ECHO_C" >&6
35593else
35594
35595 cat >conftest.$ac_ext <<_ACEOF
35596/* confdefs.h. */
35597_ACEOF
35598cat confdefs.h >>conftest.$ac_ext
35599cat >>conftest.$ac_ext <<_ACEOF
35600/* end confdefs.h. */
35601
35602 #include <stdio.h>
35603 #include <stdarg.h>
35604 #ifdef __MSL__
35605 #if __MSL__ >= 0x6000
35606 namespace std {}
35607 using namespace std;
35608 #endif
35609 #endif
35610
35611int
35612main ()
35613{
35614
35615 char *buf;
35616 va_list ap;
35617 const char *fmt = "%s";
35618 vsnprintf(buf, 10u, fmt, ap);
35619
35620 ;
35621 return 0;
35622}
35623_ACEOF
35624rm -f conftest.$ac_objext
35625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35626 (eval $ac_compile) 2>conftest.er1
35627 ac_status=$?
35628 grep -v '^ *+' conftest.er1 >conftest.err
35629 rm -f conftest.er1
35630 cat conftest.err >&5
35631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35632 (exit $ac_status); } &&
fd5199d6 35633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35635 (eval $ac_try) 2>&5
35636 ac_status=$?
35637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35638 (exit $ac_status); }; } &&
35639 { ac_try='test -s conftest.$ac_objext'
35640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35641 (eval $ac_try) 2>&5
35642 ac_status=$?
35643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35644 (exit $ac_status); }; }; then
35645 wx_cv_func_broken_vsnprintf_decl=no
35646else
35647 echo "$as_me: failed program was:" >&5
35648sed 's/^/| /' conftest.$ac_ext >&5
35649
35650wx_cv_func_broken_vsnprintf_decl=yes
35651
35652fi
35653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35654
35655
35656fi
35657echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35658echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
35659
35660 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35661 cat >>confdefs.h <<\_ACEOF
35662#define HAVE_BROKEN_VSNPRINTF_DECL 1
35663_ACEOF
35664
35665 fi
a848cd7e
SC
35666 fi
35667fi
35668
4a767dd5
VZ
35669if test "$ac_cv_func_snprintf" = "yes"; then
35670 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35671echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
35672if test "${wx_cv_func_snprintf_decl+set}" = set; then
35673 echo $ECHO_N "(cached) $ECHO_C" >&6
35674else
35675
35676 cat >conftest.$ac_ext <<_ACEOF
35677/* confdefs.h. */
35678_ACEOF
35679cat confdefs.h >>conftest.$ac_ext
35680cat >>conftest.$ac_ext <<_ACEOF
35681/* end confdefs.h. */
35682
35683 #include <stdio.h>
35684 #include <stdarg.h>
35685 #ifdef __MSL__
35686 #if __MSL__ >= 0x6000
35687 namespace std {}
35688 using namespace std;
35689 #endif
35690 #endif
35691
35692int
35693main ()
35694{
35695
35696 char *buf;
62fa8b3a 35697 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
35698
35699 ;
35700 return 0;
35701}
35702_ACEOF
35703rm -f conftest.$ac_objext
35704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35705 (eval $ac_compile) 2>conftest.er1
35706 ac_status=$?
35707 grep -v '^ *+' conftest.er1 >conftest.err
35708 rm -f conftest.er1
35709 cat conftest.err >&5
35710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35711 (exit $ac_status); } &&
fd5199d6 35712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
35713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35714 (eval $ac_try) 2>&5
35715 ac_status=$?
35716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35717 (exit $ac_status); }; } &&
35718 { ac_try='test -s conftest.$ac_objext'
35719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35720 (eval $ac_try) 2>&5
35721 ac_status=$?
35722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35723 (exit $ac_status); }; }; then
35724 wx_cv_func_snprintf_decl=yes
35725else
35726 echo "$as_me: failed program was:" >&5
35727sed 's/^/| /' conftest.$ac_ext >&5
35728
35729wx_cv_func_snprintf_decl=no
35730
35731fi
35732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35733
35734
35735fi
35736echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35737echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
35738
35739 if test "$wx_cv_func_snprintf_decl" = "yes"; then
35740 cat >>confdefs.h <<\_ACEOF
35741#define HAVE_SNPRINTF_DECL 1
35742_ACEOF
35743
62fa8b3a
MW
35744
35745 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35746echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
35747if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35748 echo $ECHO_N "(cached) $ECHO_C" >&6
35749else
35750
35751 cat >conftest.$ac_ext <<_ACEOF
35752/* confdefs.h. */
35753_ACEOF
35754cat confdefs.h >>conftest.$ac_ext
35755cat >>conftest.$ac_ext <<_ACEOF
35756/* end confdefs.h. */
35757
35758 #include <stdio.h>
35759 #include <stdarg.h>
35760 #ifdef __MSL__
35761 #if __MSL__ >= 0x6000
35762 namespace std {}
35763 using namespace std;
35764 #endif
35765 #endif
35766
35767int
35768main ()
35769{
35770
35771 char *buf;
35772 const char *fmt = "%s";
35773 snprintf(buf, 10u, fmt, "wx");
35774
35775 ;
35776 return 0;
35777}
35778_ACEOF
35779rm -f conftest.$ac_objext
35780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35781 (eval $ac_compile) 2>conftest.er1
35782 ac_status=$?
35783 grep -v '^ *+' conftest.er1 >conftest.err
35784 rm -f conftest.er1
35785 cat conftest.err >&5
35786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787 (exit $ac_status); } &&
fd5199d6 35788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35790 (eval $ac_try) 2>&5
35791 ac_status=$?
35792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35793 (exit $ac_status); }; } &&
35794 { ac_try='test -s conftest.$ac_objext'
35795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35796 (eval $ac_try) 2>&5
35797 ac_status=$?
35798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35799 (exit $ac_status); }; }; then
35800 wx_cv_func_broken_snprintf_decl=no
35801else
35802 echo "$as_me: failed program was:" >&5
35803sed 's/^/| /' conftest.$ac_ext >&5
35804
35805wx_cv_func_broken_snprintf_decl=yes
35806
35807fi
35808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35809
35810
35811fi
35812echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35813echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
35814
35815 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35816 cat >>confdefs.h <<\_ACEOF
35817#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
35818_ACEOF
35819
35820 fi
35821 fi
35822
35823 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35824
35825 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35826echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
35827if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35828 echo $ECHO_N "(cached) $ECHO_C" >&6
35829else
35830
35831 if test "$cross_compiling" = yes; then
5039a2df
VZ
35832
35833 { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35834define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35835echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35836define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35837 wx_cv_func_snprintf_pos_params=no
35838
35839
8b6682b9
JS
35840else
35841 cat >conftest.$ac_ext <<_ACEOF
35842/* confdefs.h. */
35843_ACEOF
35844cat confdefs.h >>conftest.$ac_ext
35845cat >>conftest.$ac_ext <<_ACEOF
35846/* end confdefs.h. */
35847
35848 #include <stdio.h>
35849
35850 int main (void)
35851 {
35852 char buffer[128];
35853 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
35854 if (strcmp ("2 3 1", buffer) == 0)
35855 exit (0);
35856 exit (1);
35857 }
35858
35859_ACEOF
35860rm -f conftest$ac_exeext
35861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35862 (eval $ac_link) 2>&5
35863 ac_status=$?
35864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35867 (eval $ac_try) 2>&5
35868 ac_status=$?
35869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35870 (exit $ac_status); }; }; then
35871 wx_cv_func_snprintf_pos_params=no
35872else
35873 echo "$as_me: program exited with status $ac_status" >&5
35874echo "$as_me: failed program was:" >&5
35875sed 's/^/| /' conftest.$ac_ext >&5
35876
35877( exit $ac_status )
35878wx_cv_func_snprintf_pos_params=yes
8b6682b9
JS
35879fi
35880rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35881fi
35882
35883
35884fi
35885echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35886echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
35887
35888 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35889 cat >>confdefs.h <<\_ACEOF
35890#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
35891_ACEOF
35892
35893 fi
4a767dd5
VZ
35894 fi
35895fi
35896
a848cd7e
SC
35897if test "$wxUSE_UNICODE" = yes; then
35898
35899
6a5c9b3f
RR
35900for ac_func in swprintf
35901do
35902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35903echo "$as_me:$LINENO: checking for $ac_func" >&5
35904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35905if eval "test \"\${$as_ac_var+set}\" = set"; then
35906 echo $ECHO_N "(cached) $ECHO_C" >&6
35907else
35908 cat >conftest.$ac_ext <<_ACEOF
35909/* confdefs.h. */
35910_ACEOF
35911cat confdefs.h >>conftest.$ac_ext
35912cat >>conftest.$ac_ext <<_ACEOF
35913/* end confdefs.h. */
35914/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35916#define $ac_func innocuous_$ac_func
35917
35918/* System header to define __stub macros and hopefully few prototypes,
35919 which can conflict with char $ac_func (); below.
35920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35921 <limits.h> exists even on freestanding compilers. */
35922
35923#ifdef __STDC__
35924# include <limits.h>
35925#else
35926# include <assert.h>
35927#endif
35928
35929#undef $ac_func
35930
35931/* Override any gcc2 internal prototype to avoid an error. */
35932#ifdef __cplusplus
35933extern "C"
35934{
35935#endif
35936/* We use char because int might match the return type of a gcc2
35937 builtin and then its argument prototype would still apply. */
35938char $ac_func ();
35939/* The GNU C library defines this for functions which it implements
35940 to always fail with ENOSYS. Some functions are actually named
35941 something starting with __ and the normal name is an alias. */
35942#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35943choke me
35944#else
35945char (*f) () = $ac_func;
35946#endif
35947#ifdef __cplusplus
35948}
35949#endif
35950
35951int
35952main ()
35953{
35954return f != $ac_func;
35955 ;
35956 return 0;
35957}
35958_ACEOF
35959rm -f conftest.$ac_objext conftest$ac_exeext
35960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35961 (eval $ac_link) 2>conftest.er1
35962 ac_status=$?
35963 grep -v '^ *+' conftest.er1 >conftest.err
35964 rm -f conftest.er1
35965 cat conftest.err >&5
35966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35967 (exit $ac_status); } &&
fd5199d6 35968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35970 (eval $ac_try) 2>&5
35971 ac_status=$?
35972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35973 (exit $ac_status); }; } &&
35974 { ac_try='test -s conftest$ac_exeext'
35975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35976 (eval $ac_try) 2>&5
35977 ac_status=$?
35978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35979 (exit $ac_status); }; }; then
35980 eval "$as_ac_var=yes"
35981else
35982 echo "$as_me: failed program was:" >&5
35983sed 's/^/| /' conftest.$ac_ext >&5
35984
35985eval "$as_ac_var=no"
35986fi
35987rm -f conftest.err conftest.$ac_objext \
35988 conftest$ac_exeext conftest.$ac_ext
35989fi
35990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35991echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35992if test `eval echo '${'$as_ac_var'}'` = yes; then
35993 cat >>confdefs.h <<_ACEOF
35994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35995_ACEOF
35996
35997fi
35998done
35999
36000
36001 if test "$ac_cv_func_swprintf" = "yes"; then
36002 echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
36003echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
36004if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
36005 echo $ECHO_N "(cached) $ECHO_C" >&6
36006else
36007
36008 cat >conftest.$ac_ext <<_ACEOF
36009/* confdefs.h. */
36010_ACEOF
36011cat confdefs.h >>conftest.$ac_ext
36012cat >>conftest.$ac_ext <<_ACEOF
36013/* end confdefs.h. */
36014
36015 #include <stdio.h>
36016 #include <stdarg.h>
36017 #include <wchar.h>
36018
36019int
36020main ()
36021{
36022
36023 wchar_t *buf;
36024 const wchar_t *fmt = L"test";
36025 swprintf(buf, 10u, fmt);
36026
36027 ;
36028 return 0;
36029}
36030_ACEOF
36031rm -f conftest.$ac_objext
36032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36033 (eval $ac_compile) 2>conftest.er1
36034 ac_status=$?
36035 grep -v '^ *+' conftest.er1 >conftest.err
36036 rm -f conftest.er1
36037 cat conftest.err >&5
36038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36039 (exit $ac_status); } &&
fd5199d6 36040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
36041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36042 (eval $ac_try) 2>&5
36043 ac_status=$?
36044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36045 (exit $ac_status); }; } &&
36046 { ac_try='test -s conftest.$ac_objext'
36047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36048 (eval $ac_try) 2>&5
36049 ac_status=$?
36050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36051 (exit $ac_status); }; }; then
36052 wx_cv_func_broken_swprintf_decl=no
36053else
36054 echo "$as_me: failed program was:" >&5
36055sed 's/^/| /' conftest.$ac_ext >&5
36056
36057wx_cv_func_broken_swprintf_decl=yes
36058
36059fi
36060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36061
36062
36063fi
36064echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
36065echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
36066
36067 if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
36068 cat >>confdefs.h <<\_ACEOF
36069#define HAVE_BROKEN_SWPRINTF_DECL 1
36070_ACEOF
36071
36072 fi
36073 fi
36074
a49ffb32
VZ
36075 wchar_headers="#include <stdio.h>
36076#include <wchar.h>"
36077 case "${host}" in
36078 *-*-solaris2* )
36079
36080for ac_header in widec.h
36081do
36082as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36083if eval "test \"\${$as_ac_Header+set}\" = set"; then
36084 echo "$as_me:$LINENO: checking for $ac_header" >&5
36085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36086if eval "test \"\${$as_ac_Header+set}\" = set"; then
36087 echo $ECHO_N "(cached) $ECHO_C" >&6
36088fi
36089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36091else
36092 # Is the header compilable?
36093echo "$as_me:$LINENO: checking $ac_header usability" >&5
36094echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36095cat >conftest.$ac_ext <<_ACEOF
36096/* confdefs.h. */
36097_ACEOF
36098cat confdefs.h >>conftest.$ac_ext
36099cat >>conftest.$ac_ext <<_ACEOF
36100/* end confdefs.h. */
36101$ac_includes_default
36102#include <$ac_header>
36103_ACEOF
36104rm -f conftest.$ac_objext
36105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36106 (eval $ac_compile) 2>conftest.er1
36107 ac_status=$?
36108 grep -v '^ *+' conftest.er1 >conftest.err
36109 rm -f conftest.er1
36110 cat conftest.err >&5
36111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36112 (exit $ac_status); } &&
36113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36115 (eval $ac_try) 2>&5
36116 ac_status=$?
36117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36118 (exit $ac_status); }; } &&
36119 { ac_try='test -s conftest.$ac_objext'
36120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36121 (eval $ac_try) 2>&5
36122 ac_status=$?
36123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36124 (exit $ac_status); }; }; then
36125 ac_header_compiler=yes
36126else
36127 echo "$as_me: failed program was:" >&5
36128sed 's/^/| /' conftest.$ac_ext >&5
36129
36130ac_header_compiler=no
36131fi
36132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36133echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36134echo "${ECHO_T}$ac_header_compiler" >&6
36135
36136# Is the header present?
36137echo "$as_me:$LINENO: checking $ac_header presence" >&5
36138echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36139cat >conftest.$ac_ext <<_ACEOF
36140/* confdefs.h. */
36141_ACEOF
36142cat confdefs.h >>conftest.$ac_ext
36143cat >>conftest.$ac_ext <<_ACEOF
36144/* end confdefs.h. */
36145#include <$ac_header>
36146_ACEOF
36147if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36149 ac_status=$?
36150 grep -v '^ *+' conftest.er1 >conftest.err
36151 rm -f conftest.er1
36152 cat conftest.err >&5
36153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36154 (exit $ac_status); } >/dev/null; then
36155 if test -s conftest.err; then
36156 ac_cpp_err=$ac_c_preproc_warn_flag
36157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36158 else
36159 ac_cpp_err=
36160 fi
36161else
36162 ac_cpp_err=yes
36163fi
36164if test -z "$ac_cpp_err"; then
36165 ac_header_preproc=yes
36166else
36167 echo "$as_me: failed program was:" >&5
36168sed 's/^/| /' conftest.$ac_ext >&5
36169
36170 ac_header_preproc=no
36171fi
36172rm -f conftest.err conftest.$ac_ext
36173echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36174echo "${ECHO_T}$ac_header_preproc" >&6
36175
36176# So? What about this header?
36177case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36178 yes:no: )
36179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36180echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36182echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36183 ac_header_preproc=yes
36184 ;;
36185 no:yes:* )
36186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36187echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36189echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36191echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36193echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36195echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36197echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36198 (
36199 cat <<\_ASBOX
36200## ----------------------------------------- ##
36201## Report this to wx-dev@lists.wxwidgets.org ##
36202## ----------------------------------------- ##
36203_ASBOX
36204 ) |
36205 sed "s/^/$as_me: WARNING: /" >&2
36206 ;;
36207esac
36208echo "$as_me:$LINENO: checking for $ac_header" >&5
36209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36210if eval "test \"\${$as_ac_Header+set}\" = set"; then
36211 echo $ECHO_N "(cached) $ECHO_C" >&6
36212else
36213 eval "$as_ac_Header=\$ac_header_preproc"
36214fi
36215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36216echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36217
36218fi
36219if test `eval echo '${'$as_ac_Header'}'` = yes; then
36220 cat >>confdefs.h <<_ACEOF
36221#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36222_ACEOF
36223
36224fi
36225
36226done
36227
36228 if test "$ac_cv_header_widec_h" = "yes"; then
36229 wchar_headers="$wchar_headers
36230#include <widec.h>"
36231 fi
36232 esac
36233
6a5c9b3f 36234
fd5199d6
VZ
36235 for wx_func in wputc wputchar putws fputws wprintf vswprintf
36236 do
36237 echo "$as_me:$LINENO: checking for $wx_func" >&5
36238echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
36239if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
36240 echo $ECHO_N "(cached) $ECHO_C" >&6
36241else
fd5199d6
VZ
36242
36243 cat >conftest.$ac_ext <<_ACEOF
36244
36245 /* confdefs.h. */
a848cd7e
SC
36246_ACEOF
36247cat confdefs.h >>conftest.$ac_ext
36248cat >>conftest.$ac_ext <<_ACEOF
36249/* end confdefs.h. */
ac1cb8d3 36250
a49ffb32 36251 $wchar_headers
fd5199d6 36252 $ac_includes_default
a848cd7e
SC
36253
36254int
36255main ()
36256{
fd5199d6
VZ
36257
36258 #ifndef $wx_func
36259 &$wx_func;
36260 #endif
36261
36262
a848cd7e
SC
36263 ;
36264 return 0;
36265}
fd5199d6 36266
a848cd7e
SC
36267_ACEOF
36268rm -f conftest.$ac_objext conftest$ac_exeext
36269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36270 (eval $ac_link) 2>conftest.er1
a848cd7e 36271 ac_status=$?
ac1cb8d3
VS
36272 grep -v '^ *+' conftest.er1 >conftest.err
36273 rm -f conftest.er1
36274 cat conftest.err >&5
a848cd7e
SC
36275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276 (exit $ac_status); } &&
fd5199d6 36277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36279 (eval $ac_try) 2>&5
36280 ac_status=$?
36281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36282 (exit $ac_status); }; } &&
36283 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36285 (eval $ac_try) 2>&5
36286 ac_status=$?
36287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36288 (exit $ac_status); }; }; then
fd5199d6 36289 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
36290else
36291 echo "$as_me: failed program was:" >&5
36292sed 's/^/| /' conftest.$ac_ext >&5
36293
fd5199d6 36294eval wx_cv_func_$wx_func=no
a848cd7e 36295fi
ac1cb8d3
VS
36296rm -f conftest.err conftest.$ac_objext \
36297 conftest$ac_exeext conftest.$ac_ext
fd5199d6 36298
a848cd7e 36299fi
fd5199d6
VZ
36300echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
36301echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
36302
36303 if eval test \$wx_cv_func_$wx_func = yes
36304 then
36305 cat >>confdefs.h <<_ACEOF
36306#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
a848cd7e
SC
36307_ACEOF
36308
fd5199d6
VZ
36309
36310 else
36311 :
36312
36313 fi
36314 done
a848cd7e
SC
36315
36316
36317 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
36318echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
36319 cat >conftest.$ac_ext <<_ACEOF
36320/* confdefs.h. */
36321_ACEOF
36322cat confdefs.h >>conftest.$ac_ext
36323cat >>conftest.$ac_ext <<_ACEOF
36324/* end confdefs.h. */
36325#include <wchar.h>
36326int
36327main ()
36328{
36329&_vsnwprintf;
36330 ;
36331 return 0;
36332}
36333_ACEOF
36334rm -f conftest.$ac_objext
36335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36336 (eval $ac_compile) 2>conftest.er1
a848cd7e 36337 ac_status=$?
ac1cb8d3
VS
36338 grep -v '^ *+' conftest.er1 >conftest.err
36339 rm -f conftest.er1
36340 cat conftest.err >&5
a848cd7e
SC
36341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36342 (exit $ac_status); } &&
fd5199d6 36343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36345 (eval $ac_try) 2>&5
36346 ac_status=$?
36347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36348 (exit $ac_status); }; } &&
36349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36351 (eval $ac_try) 2>&5
36352 ac_status=$?
36353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354 (exit $ac_status); }; }; then
36355 echo "$as_me:$LINENO: result: yes" >&5
36356echo "${ECHO_T}yes" >&6
36357 cat >>confdefs.h <<\_ACEOF
36358#define HAVE__VSNWPRINTF 1
36359_ACEOF
36360
36361else
36362 echo "$as_me: failed program was:" >&5
36363sed 's/^/| /' conftest.$ac_ext >&5
36364
36365echo "$as_me:$LINENO: result: no" >&5
36366echo "${ECHO_T}no" >&6
36367fi
ac1cb8d3 36368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
36369fi
36370
6ebeb4c7
VZ
36371if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
36372
fd5199d6
VZ
36373 for wx_func in fnmatch
36374 do
36375 echo "$as_me:$LINENO: checking for $wx_func" >&5
36376echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
36377if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
6ebeb4c7
VZ
36378 echo $ECHO_N "(cached) $ECHO_C" >&6
36379else
fd5199d6
VZ
36380
36381 cat >conftest.$ac_ext <<_ACEOF
36382
36383 /* confdefs.h. */
6ebeb4c7
VZ
36384_ACEOF
36385cat confdefs.h >>conftest.$ac_ext
36386cat >>conftest.$ac_ext <<_ACEOF
36387/* end confdefs.h. */
6ebeb4c7 36388
9b8888f9 36389 #include <fnmatch.h>
fd5199d6 36390 $ac_includes_default
6ebeb4c7
VZ
36391
36392int
36393main ()
36394{
fd5199d6
VZ
36395
36396 #ifndef $wx_func
36397 &$wx_func;
36398 #endif
36399
36400
6ebeb4c7
VZ
36401 ;
36402 return 0;
36403}
fd5199d6 36404
6ebeb4c7
VZ
36405_ACEOF
36406rm -f conftest.$ac_objext conftest$ac_exeext
36407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36408 (eval $ac_link) 2>conftest.er1
36409 ac_status=$?
36410 grep -v '^ *+' conftest.er1 >conftest.err
36411 rm -f conftest.er1
36412 cat conftest.err >&5
36413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414 (exit $ac_status); } &&
fd5199d6 36415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
36416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36417 (eval $ac_try) 2>&5
36418 ac_status=$?
36419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36420 (exit $ac_status); }; } &&
36421 { ac_try='test -s conftest$ac_exeext'
36422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36423 (eval $ac_try) 2>&5
36424 ac_status=$?
36425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426 (exit $ac_status); }; }; then
fd5199d6 36427 eval wx_cv_func_$wx_func=yes
6ebeb4c7
VZ
36428else
36429 echo "$as_me: failed program was:" >&5
36430sed 's/^/| /' conftest.$ac_ext >&5
36431
fd5199d6 36432eval wx_cv_func_$wx_func=no
6ebeb4c7
VZ
36433fi
36434rm -f conftest.err conftest.$ac_objext \
36435 conftest$ac_exeext conftest.$ac_ext
fd5199d6 36436
6ebeb4c7 36437fi
fd5199d6
VZ
36438echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
36439echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
36440
36441 if eval test \$wx_cv_func_$wx_func = yes
36442 then
36443 cat >>confdefs.h <<_ACEOF
36444#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
6ebeb4c7
VZ
36445_ACEOF
36446
fd5199d6
VZ
36447
36448 else
36449 :
36450
36451 fi
36452 done
6ebeb4c7
VZ
36453
36454fi
36455
36456if test "$wxUSE_FILE" = "yes"; then
36457
fd5199d6
VZ
36458 for wx_func in fsync
36459 do
36460 echo "$as_me:$LINENO: checking for $wx_func" >&5
36461echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
36462if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
6ebeb4c7
VZ
36463 echo $ECHO_N "(cached) $ECHO_C" >&6
36464else
fd5199d6
VZ
36465
36466 cat >conftest.$ac_ext <<_ACEOF
36467
36468 /* confdefs.h. */
6ebeb4c7
VZ
36469_ACEOF
36470cat confdefs.h >>conftest.$ac_ext
36471cat >>conftest.$ac_ext <<_ACEOF
36472/* end confdefs.h. */
6ebeb4c7 36473
6ebeb4c7 36474
fd5199d6 36475 $ac_includes_default
6ebeb4c7
VZ
36476
36477int
36478main ()
36479{
fd5199d6
VZ
36480
36481 #ifndef $wx_func
36482 &$wx_func;
36483 #endif
36484
36485
6ebeb4c7
VZ
36486 ;
36487 return 0;
36488}
fd5199d6 36489
6ebeb4c7
VZ
36490_ACEOF
36491rm -f conftest.$ac_objext conftest$ac_exeext
36492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36493 (eval $ac_link) 2>conftest.er1
36494 ac_status=$?
36495 grep -v '^ *+' conftest.er1 >conftest.err
36496 rm -f conftest.er1
36497 cat conftest.err >&5
36498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36499 (exit $ac_status); } &&
fd5199d6 36500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
36501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36502 (eval $ac_try) 2>&5
36503 ac_status=$?
36504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36505 (exit $ac_status); }; } &&
36506 { ac_try='test -s conftest$ac_exeext'
36507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36508 (eval $ac_try) 2>&5
36509 ac_status=$?
36510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36511 (exit $ac_status); }; }; then
fd5199d6 36512 eval wx_cv_func_$wx_func=yes
6ebeb4c7
VZ
36513else
36514 echo "$as_me: failed program was:" >&5
36515sed 's/^/| /' conftest.$ac_ext >&5
36516
fd5199d6 36517eval wx_cv_func_$wx_func=no
6ebeb4c7
VZ
36518fi
36519rm -f conftest.err conftest.$ac_objext \
36520 conftest$ac_exeext conftest.$ac_ext
fd5199d6 36521
6ebeb4c7 36522fi
fd5199d6
VZ
36523echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
36524echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
36525
36526 if eval test \$wx_cv_func_$wx_func = yes
36527 then
36528 cat >>confdefs.h <<_ACEOF
36529#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
6ebeb4c7
VZ
36530_ACEOF
36531
fd5199d6
VZ
36532
36533 else
36534 :
36535
36536 fi
36537 done
6ebeb4c7
VZ
36538
36539fi
a848cd7e
SC
36540
36541
fd5199d6
VZ
36542 for wx_func in round
36543 do
36544 echo "$as_me:$LINENO: checking for $wx_func" >&5
36545echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
36546if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
c2e9ada4
VZ
36547 echo $ECHO_N "(cached) $ECHO_C" >&6
36548else
fd5199d6
VZ
36549
36550 cat >conftest.$ac_ext <<_ACEOF
36551
36552 /* confdefs.h. */
c2e9ada4
VZ
36553_ACEOF
36554cat confdefs.h >>conftest.$ac_ext
36555cat >>conftest.$ac_ext <<_ACEOF
36556/* end confdefs.h. */
c2e9ada4 36557
fd5199d6
VZ
36558 #include <math.h>
36559 $ac_includes_default
c2e9ada4
VZ
36560
36561int
36562main ()
36563{
fd5199d6
VZ
36564
36565 #ifndef $wx_func
36566 &$wx_func;
36567 #endif
36568
36569
c2e9ada4
VZ
36570 ;
36571 return 0;
36572}
fd5199d6 36573
c2e9ada4
VZ
36574_ACEOF
36575rm -f conftest.$ac_objext conftest$ac_exeext
36576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36577 (eval $ac_link) 2>conftest.er1
36578 ac_status=$?
36579 grep -v '^ *+' conftest.er1 >conftest.err
36580 rm -f conftest.er1
36581 cat conftest.err >&5
36582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36583 (exit $ac_status); } &&
fd5199d6 36584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
36585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36586 (eval $ac_try) 2>&5
36587 ac_status=$?
36588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36589 (exit $ac_status); }; } &&
36590 { ac_try='test -s conftest$ac_exeext'
36591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36592 (eval $ac_try) 2>&5
36593 ac_status=$?
36594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36595 (exit $ac_status); }; }; then
fd5199d6 36596 eval wx_cv_func_$wx_func=yes
c2e9ada4
VZ
36597else
36598 echo "$as_me: failed program was:" >&5
36599sed 's/^/| /' conftest.$ac_ext >&5
36600
fd5199d6 36601eval wx_cv_func_$wx_func=no
c2e9ada4
VZ
36602fi
36603rm -f conftest.err conftest.$ac_objext \
36604 conftest$ac_exeext conftest.$ac_ext
c2e9ada4 36605
c2e9ada4 36606fi
fd5199d6
VZ
36607echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
36608echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
c2e9ada4 36609
fd5199d6
VZ
36610 if eval test \$wx_cv_func_$wx_func = yes
36611 then
36612 cat >>confdefs.h <<_ACEOF
36613#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
c2e9ada4
VZ
36614_ACEOF
36615
36616
fd5199d6
VZ
36617 else
36618 :
c2e9ada4 36619
fd5199d6
VZ
36620 fi
36621 done
c2e9ada4
VZ
36622
36623
a848cd7e
SC
36624if test "$TOOLKIT" != "MSW"; then
36625
36626
a848cd7e
SC
36627
36628
36629
36630# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36631if test "${with_libiconv_prefix+set}" = set; then
36632 withval="$with_libiconv_prefix"
36633
36634 for dir in `echo "$withval" | tr : ' '`; do
36635 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36636 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36637 done
36638
36639fi;
36640
36641 echo "$as_me:$LINENO: checking for iconv" >&5
36642echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36643if test "${am_cv_func_iconv+set}" = set; then
36644 echo $ECHO_N "(cached) $ECHO_C" >&6
36645else
36646
36647 am_cv_func_iconv="no, consider installing GNU libiconv"
36648 am_cv_lib_iconv=no
36649 cat >conftest.$ac_ext <<_ACEOF
36650/* confdefs.h. */
36651_ACEOF
36652cat confdefs.h >>conftest.$ac_ext
36653cat >>conftest.$ac_ext <<_ACEOF
36654/* end confdefs.h. */
36655#include <stdlib.h>
36656#include <iconv.h>
36657int
36658main ()
36659{
36660iconv_t cd = iconv_open("","");
36661 iconv(cd,NULL,NULL,NULL,NULL);
36662 iconv_close(cd);
36663 ;
36664 return 0;
36665}
36666_ACEOF
36667rm -f conftest.$ac_objext conftest$ac_exeext
36668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36669 (eval $ac_link) 2>conftest.er1
a848cd7e 36670 ac_status=$?
ac1cb8d3
VS
36671 grep -v '^ *+' conftest.er1 >conftest.err
36672 rm -f conftest.er1
36673 cat conftest.err >&5
a848cd7e
SC
36674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36675 (exit $ac_status); } &&
fd5199d6 36676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36678 (eval $ac_try) 2>&5
36679 ac_status=$?
36680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36681 (exit $ac_status); }; } &&
36682 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36684 (eval $ac_try) 2>&5
36685 ac_status=$?
36686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36687 (exit $ac_status); }; }; then
36688 am_cv_func_iconv=yes
36689else
36690 echo "$as_me: failed program was:" >&5
36691sed 's/^/| /' conftest.$ac_ext >&5
36692
36693fi
ac1cb8d3
VS
36694rm -f conftest.err conftest.$ac_objext \
36695 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36696 if test "$am_cv_func_iconv" != yes; then
36697 am_save_LIBS="$LIBS"
36698 LIBS="$LIBS -liconv"
36699 cat >conftest.$ac_ext <<_ACEOF
36700/* confdefs.h. */
36701_ACEOF
36702cat confdefs.h >>conftest.$ac_ext
36703cat >>conftest.$ac_ext <<_ACEOF
36704/* end confdefs.h. */
36705#include <stdlib.h>
36706#include <iconv.h>
36707int
36708main ()
36709{
36710iconv_t cd = iconv_open("","");
36711 iconv(cd,NULL,NULL,NULL,NULL);
36712 iconv_close(cd);
36713 ;
36714 return 0;
36715}
36716_ACEOF
36717rm -f conftest.$ac_objext conftest$ac_exeext
36718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36719 (eval $ac_link) 2>conftest.er1
a848cd7e 36720 ac_status=$?
ac1cb8d3
VS
36721 grep -v '^ *+' conftest.er1 >conftest.err
36722 rm -f conftest.er1
36723 cat conftest.err >&5
a848cd7e
SC
36724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36725 (exit $ac_status); } &&
fd5199d6 36726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36728 (eval $ac_try) 2>&5
36729 ac_status=$?
36730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36731 (exit $ac_status); }; } &&
36732 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36734 (eval $ac_try) 2>&5
36735 ac_status=$?
36736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36737 (exit $ac_status); }; }; then
36738 am_cv_lib_iconv=yes
36739 am_cv_func_iconv=yes
36740else
36741 echo "$as_me: failed program was:" >&5
36742sed 's/^/| /' conftest.$ac_ext >&5
36743
36744fi
ac1cb8d3
VS
36745rm -f conftest.err conftest.$ac_objext \
36746 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36747 LIBS="$am_save_LIBS"
36748 fi
36749
36750fi
36751echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36752echo "${ECHO_T}$am_cv_func_iconv" >&6
36753 if test "$am_cv_func_iconv" = yes; then
36754
36755cat >>confdefs.h <<\_ACEOF
36756#define HAVE_ICONV 1
36757_ACEOF
36758
36759 echo "$as_me:$LINENO: checking if iconv needs const" >&5
36760echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
36761if test "${wx_cv_func_iconv_const+set}" = set; then
36762 echo $ECHO_N "(cached) $ECHO_C" >&6
36763else
36764 cat >conftest.$ac_ext <<_ACEOF
36765/* confdefs.h. */
36766_ACEOF
36767cat confdefs.h >>conftest.$ac_ext
36768cat >>conftest.$ac_ext <<_ACEOF
36769/* end confdefs.h. */
36770
36771#include <stdlib.h>
36772#include <iconv.h>
36773extern
36774#ifdef __cplusplus
36775"C"
36776#endif
36777#if defined(__STDC__) || defined(__cplusplus)
36778size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36779#else
36780size_t iconv();
36781#endif
36782
36783int
36784main ()
36785{
36786
36787 ;
36788 return 0;
36789}
36790_ACEOF
36791rm -f conftest.$ac_objext
36792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36793 (eval $ac_compile) 2>conftest.er1
a848cd7e 36794 ac_status=$?
ac1cb8d3
VS
36795 grep -v '^ *+' conftest.er1 >conftest.err
36796 rm -f conftest.er1
36797 cat conftest.err >&5
a848cd7e
SC
36798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36799 (exit $ac_status); } &&
fd5199d6 36800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36802 (eval $ac_try) 2>&5
36803 ac_status=$?
36804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36805 (exit $ac_status); }; } &&
36806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36808 (eval $ac_try) 2>&5
36809 ac_status=$?
36810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36811 (exit $ac_status); }; }; then
36812 wx_cv_func_iconv_const="no"
36813else
36814 echo "$as_me: failed program was:" >&5
36815sed 's/^/| /' conftest.$ac_ext >&5
36816
36817wx_cv_func_iconv_const="yes"
36818
36819fi
ac1cb8d3 36820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36821
36822fi
36823echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36824echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
36825
36826 iconv_const=
36827 if test "x$wx_cv_func_iconv_const" = "xyes"; then
36828 iconv_const="const"
36829 fi
36830
36831
36832cat >>confdefs.h <<_ACEOF
36833#define ICONV_CONST $iconv_const
36834_ACEOF
36835
36836 fi
36837 LIBICONV=
36838 if test "$am_cv_lib_iconv" = yes; then
36839 LIBICONV="-liconv"
36840 fi
36841
36842
36843LIBS="$LIBICONV $LIBS"
a848cd7e
SC
36844
36845if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36846
36847for ac_func in sigaction
36848do
36849as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36850echo "$as_me:$LINENO: checking for $ac_func" >&5
36851echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36852if eval "test \"\${$as_ac_var+set}\" = set"; then
36853 echo $ECHO_N "(cached) $ECHO_C" >&6
36854else
36855 cat >conftest.$ac_ext <<_ACEOF
36856/* confdefs.h. */
36857_ACEOF
36858cat confdefs.h >>conftest.$ac_ext
36859cat >>conftest.$ac_ext <<_ACEOF
36860/* end confdefs.h. */
ac1cb8d3
VS
36861/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36863#define $ac_func innocuous_$ac_func
36864
a848cd7e
SC
36865/* System header to define __stub macros and hopefully few prototypes,
36866 which can conflict with char $ac_func (); below.
36867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36868 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36869
a848cd7e
SC
36870#ifdef __STDC__
36871# include <limits.h>
36872#else
36873# include <assert.h>
36874#endif
ac1cb8d3
VS
36875
36876#undef $ac_func
36877
a848cd7e
SC
36878/* Override any gcc2 internal prototype to avoid an error. */
36879#ifdef __cplusplus
36880extern "C"
36881{
36882#endif
36883/* We use char because int might match the return type of a gcc2
36884 builtin and then its argument prototype would still apply. */
36885char $ac_func ();
36886/* The GNU C library defines this for functions which it implements
36887 to always fail with ENOSYS. Some functions are actually named
36888 something starting with __ and the normal name is an alias. */
36889#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36890choke me
36891#else
36892char (*f) () = $ac_func;
36893#endif
36894#ifdef __cplusplus
36895}
36896#endif
36897
36898int
36899main ()
36900{
36901return f != $ac_func;
36902 ;
36903 return 0;
36904}
36905_ACEOF
36906rm -f conftest.$ac_objext conftest$ac_exeext
36907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36908 (eval $ac_link) 2>conftest.er1
a848cd7e 36909 ac_status=$?
ac1cb8d3
VS
36910 grep -v '^ *+' conftest.er1 >conftest.err
36911 rm -f conftest.er1
36912 cat conftest.err >&5
a848cd7e
SC
36913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36914 (exit $ac_status); } &&
fd5199d6 36915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36917 (eval $ac_try) 2>&5
36918 ac_status=$?
36919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36920 (exit $ac_status); }; } &&
36921 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36923 (eval $ac_try) 2>&5
36924 ac_status=$?
36925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36926 (exit $ac_status); }; }; then
36927 eval "$as_ac_var=yes"
36928else
36929 echo "$as_me: failed program was:" >&5
36930sed 's/^/| /' conftest.$ac_ext >&5
36931
36932eval "$as_ac_var=no"
36933fi
ac1cb8d3
VS
36934rm -f conftest.err conftest.$ac_objext \
36935 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36936fi
36937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36938echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36939if test `eval echo '${'$as_ac_var'}'` = yes; then
36940 cat >>confdefs.h <<_ACEOF
36941#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36942_ACEOF
36943
36944fi
36945done
36946
36947
36948 if test "$ac_cv_func_sigaction" = "no"; then
36949 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36950echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36951 wxUSE_ON_FATAL_EXCEPTION=no
36952 fi
36953
36954 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
36955 echo "$as_me:$LINENO: checking for sa_handler type" >&5
36956echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
36957if test "${wx_cv_type_sa_handler+set}" = set; then
36958 echo $ECHO_N "(cached) $ECHO_C" >&6
36959else
36960
9b8888f9
VZ
36961 ac_ext=cc
36962ac_cpp='$CXXCPP $CPPFLAGS'
36963ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36964ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36965ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36966
a848cd7e
SC
36967 cat >conftest.$ac_ext <<_ACEOF
36968/* confdefs.h. */
36969_ACEOF
36970cat confdefs.h >>conftest.$ac_ext
36971cat >>conftest.$ac_ext <<_ACEOF
36972/* end confdefs.h. */
36973#include <signal.h>
36974int
36975main ()
36976{
36977
36978 extern void testSigHandler(int);
36979
36980 struct sigaction sa;
36981 sa.sa_handler = testSigHandler;
36982
36983 ;
36984 return 0;
36985}
36986_ACEOF
36987rm -f conftest.$ac_objext
36988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36989 (eval $ac_compile) 2>conftest.er1
a848cd7e 36990 ac_status=$?
ac1cb8d3
VS
36991 grep -v '^ *+' conftest.er1 >conftest.err
36992 rm -f conftest.er1
36993 cat conftest.err >&5
a848cd7e
SC
36994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36995 (exit $ac_status); } &&
9b8888f9 36996 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36998 (eval $ac_try) 2>&5
36999 ac_status=$?
37000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37001 (exit $ac_status); }; } &&
37002 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37004 (eval $ac_try) 2>&5
37005 ac_status=$?
37006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37007 (exit $ac_status); }; }; then
37008
37009 wx_cv_type_sa_handler=int
37010
37011else
37012 echo "$as_me: failed program was:" >&5
37013sed 's/^/| /' conftest.$ac_ext >&5
37014
37015
37016 wx_cv_type_sa_handler=void
37017
37018fi
ac1cb8d3 37019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
37020 ac_ext=c
37021ac_cpp='$CPP $CPPFLAGS'
37022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37024ac_compiler_gnu=$ac_cv_c_compiler_gnu
37025
a848cd7e
SC
37026
37027fi
37028echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
37029echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
37030
a848cd7e
SC
37031 cat >>confdefs.h <<_ACEOF
37032#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
37033_ACEOF
37034
37035 fi
37036fi
37037
eaff0f0d 37038if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
37039 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
37040echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
37041if test "${wx_cv_func_backtrace+set}" = set; then
37042 echo $ECHO_N "(cached) $ECHO_C" >&6
37043else
37044
9b8888f9
VZ
37045 ac_ext=cc
37046ac_cpp='$CXXCPP $CPPFLAGS'
37047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37050
eaff0f0d
VZ
37051 cat >conftest.$ac_ext <<_ACEOF
37052/* confdefs.h. */
37053_ACEOF
37054cat confdefs.h >>conftest.$ac_ext
37055cat >>conftest.$ac_ext <<_ACEOF
37056/* end confdefs.h. */
37057#include <execinfo.h>
37058int
37059main ()
37060{
37061
37062 void *trace[1];
37063 char **messages;
37064
37065 backtrace(trace, 1);
37066 messages = backtrace_symbols(trace, 1);
37067
37068 ;
37069 return 0;
37070}
37071_ACEOF
37072rm -f conftest.$ac_objext
37073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37074 (eval $ac_compile) 2>conftest.er1
37075 ac_status=$?
37076 grep -v '^ *+' conftest.er1 >conftest.err
37077 rm -f conftest.er1
37078 cat conftest.err >&5
37079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37080 (exit $ac_status); } &&
9b8888f9 37081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
37082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37083 (eval $ac_try) 2>&5
37084 ac_status=$?
37085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37086 (exit $ac_status); }; } &&
37087 { ac_try='test -s conftest.$ac_objext'
37088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37089 (eval $ac_try) 2>&5
37090 ac_status=$?
37091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37092 (exit $ac_status); }; }; then
37093 wx_cv_func_backtrace=yes
37094else
37095 echo "$as_me: failed program was:" >&5
37096sed 's/^/| /' conftest.$ac_ext >&5
37097
37098wx_cv_func_backtrace=no
37099
37100fi
37101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
37102 ac_ext=c
37103ac_cpp='$CPP $CPPFLAGS'
37104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37106ac_compiler_gnu=$ac_cv_c_compiler_gnu
37107
eaff0f0d
VZ
37108
37109
37110fi
37111echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
37112echo "${ECHO_T}$wx_cv_func_backtrace" >&6
37113
37114
37115 if test "$wx_cv_func_backtrace" = "no"; then
37116 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
37117echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
37118 wxUSE_STACKWALKER=no
37119 else
37120 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
37121echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
37122if test "${wx_cv_func_cxa_demangle+set}" = set; then
37123 echo $ECHO_N "(cached) $ECHO_C" >&6
37124else
37125
9b8888f9
VZ
37126 ac_ext=cc
37127ac_cpp='$CXXCPP $CPPFLAGS'
37128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37131
eaff0f0d
VZ
37132 cat >conftest.$ac_ext <<_ACEOF
37133/* confdefs.h. */
37134_ACEOF
37135cat confdefs.h >>conftest.$ac_ext
37136cat >>conftest.$ac_ext <<_ACEOF
37137/* end confdefs.h. */
37138#include <cxxabi.h>
37139int
37140main ()
37141{
37142
37143 int rc;
37144 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
37145
37146 ;
37147 return 0;
37148}
37149_ACEOF
dfe0c803
JS
37150rm -f conftest.$ac_objext conftest$ac_exeext
37151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37152 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
37153 ac_status=$?
37154 grep -v '^ *+' conftest.er1 >conftest.err
37155 rm -f conftest.er1
37156 cat conftest.err >&5
37157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37158 (exit $ac_status); } &&
9b8888f9 37159 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
37160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37161 (eval $ac_try) 2>&5
37162 ac_status=$?
37163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37164 (exit $ac_status); }; } &&
dfe0c803 37165 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
37166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37167 (eval $ac_try) 2>&5
37168 ac_status=$?
37169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37170 (exit $ac_status); }; }; then
37171 wx_cv_func_cxa_demangle=yes
37172else
37173 echo "$as_me: failed program was:" >&5
37174sed 's/^/| /' conftest.$ac_ext >&5
37175
37176wx_cv_func_cxa_demangle=no
37177
37178fi
dfe0c803
JS
37179rm -f conftest.err conftest.$ac_objext \
37180 conftest$ac_exeext conftest.$ac_ext
9b8888f9
VZ
37181 ac_ext=c
37182ac_cpp='$CPP $CPPFLAGS'
37183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37185ac_compiler_gnu=$ac_cv_c_compiler_gnu
37186
eaff0f0d
VZ
37187
37188
37189fi
37190echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
37191echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
37192
37193 if test "$wx_cv_func_cxa_demangle" = "yes"; then
37194 cat >>confdefs.h <<\_ACEOF
37195#define HAVE_CXA_DEMANGLE 1
37196_ACEOF
37197
37198 fi
37199 fi
eaff0f0d
VZ
37200fi
37201
898beab1
DE
37202if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
37203 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
37204echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
37205 wxUSE_STACKWALKER=no
37206fi
37207
37208
a848cd7e
SC
37209
37210
37211for ac_func in mkstemp mktemp
37212do
37213as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37214echo "$as_me:$LINENO: checking for $ac_func" >&5
37215echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37216if eval "test \"\${$as_ac_var+set}\" = set"; then
37217 echo $ECHO_N "(cached) $ECHO_C" >&6
37218else
37219 cat >conftest.$ac_ext <<_ACEOF
37220/* confdefs.h. */
37221_ACEOF
37222cat confdefs.h >>conftest.$ac_ext
37223cat >>conftest.$ac_ext <<_ACEOF
37224/* end confdefs.h. */
ac1cb8d3
VS
37225/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37227#define $ac_func innocuous_$ac_func
37228
a848cd7e
SC
37229/* System header to define __stub macros and hopefully few prototypes,
37230 which can conflict with char $ac_func (); below.
37231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37232 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37233
a848cd7e
SC
37234#ifdef __STDC__
37235# include <limits.h>
37236#else
37237# include <assert.h>
37238#endif
ac1cb8d3
VS
37239
37240#undef $ac_func
37241
a848cd7e
SC
37242/* Override any gcc2 internal prototype to avoid an error. */
37243#ifdef __cplusplus
37244extern "C"
37245{
37246#endif
37247/* We use char because int might match the return type of a gcc2
37248 builtin and then its argument prototype would still apply. */
37249char $ac_func ();
37250/* The GNU C library defines this for functions which it implements
37251 to always fail with ENOSYS. Some functions are actually named
37252 something starting with __ and the normal name is an alias. */
37253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37254choke me
37255#else
37256char (*f) () = $ac_func;
37257#endif
37258#ifdef __cplusplus
37259}
37260#endif
37261
37262int
37263main ()
37264{
37265return f != $ac_func;
37266 ;
37267 return 0;
37268}
37269_ACEOF
37270rm -f conftest.$ac_objext conftest$ac_exeext
37271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37272 (eval $ac_link) 2>conftest.er1
a848cd7e 37273 ac_status=$?
ac1cb8d3
VS
37274 grep -v '^ *+' conftest.er1 >conftest.err
37275 rm -f conftest.er1
37276 cat conftest.err >&5
a848cd7e
SC
37277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37278 (exit $ac_status); } &&
fd5199d6 37279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37281 (eval $ac_try) 2>&5
37282 ac_status=$?
37283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37284 (exit $ac_status); }; } &&
37285 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37287 (eval $ac_try) 2>&5
37288 ac_status=$?
37289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37290 (exit $ac_status); }; }; then
37291 eval "$as_ac_var=yes"
37292else
37293 echo "$as_me: failed program was:" >&5
37294sed 's/^/| /' conftest.$ac_ext >&5
37295
37296eval "$as_ac_var=no"
37297fi
ac1cb8d3
VS
37298rm -f conftest.err conftest.$ac_objext \
37299 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37300fi
37301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37302echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37303if test `eval echo '${'$as_ac_var'}'` = yes; then
37304 cat >>confdefs.h <<_ACEOF
37305#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37306_ACEOF
37307 break
37308fi
37309done
37310
37311
37312echo "$as_me:$LINENO: checking for statfs" >&5
37313echo $ECHO_N "checking for statfs... $ECHO_C" >&6
37314if test "${wx_cv_func_statfs+set}" = set; then
37315 echo $ECHO_N "(cached) $ECHO_C" >&6
37316else
37317 cat >conftest.$ac_ext <<_ACEOF
37318/* confdefs.h. */
37319_ACEOF
37320cat confdefs.h >>conftest.$ac_ext
37321cat >>conftest.$ac_ext <<_ACEOF
37322/* end confdefs.h. */
37323
37324 #if defined(__BSD__)
84ae7ca4
VZ
37325 #include <sys/param.h>
37326 #include <sys/mount.h>
a848cd7e 37327 #else
84ae7ca4 37328 #include <sys/vfs.h>
a848cd7e
SC
37329 #endif
37330
37331int
37332main ()
37333{
37334
37335 long l;
37336 struct statfs fs;
37337 statfs("/", &fs);
37338 l = fs.f_bsize;
37339 l += fs.f_blocks;
37340 l += fs.f_bavail;
37341
37342 ;
37343 return 0;
37344}
37345_ACEOF
37346rm -f conftest.$ac_objext
37347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37348 (eval $ac_compile) 2>conftest.er1
a848cd7e 37349 ac_status=$?
ac1cb8d3
VS
37350 grep -v '^ *+' conftest.er1 >conftest.err
37351 rm -f conftest.er1
37352 cat conftest.err >&5
a848cd7e
SC
37353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37354 (exit $ac_status); } &&
fd5199d6 37355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37357 (eval $ac_try) 2>&5
37358 ac_status=$?
37359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37360 (exit $ac_status); }; } &&
37361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37363 (eval $ac_try) 2>&5
37364 ac_status=$?
37365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37366 (exit $ac_status); }; }; then
84ae7ca4 37367 wx_cv_func_statfs=yes
a848cd7e
SC
37368else
37369 echo "$as_me: failed program was:" >&5
37370sed 's/^/| /' conftest.$ac_ext >&5
37371
84ae7ca4 37372wx_cv_func_statfs=no
a848cd7e
SC
37373
37374fi
ac1cb8d3 37375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37376
37377fi
37378echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
37379echo "${ECHO_T}$wx_cv_func_statfs" >&6
37380
37381if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 37382 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
37383echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
37384if test "${wx_cv_func_statfs_decl+set}" = set; then
37385 echo $ECHO_N "(cached) $ECHO_C" >&6
37386else
9b8888f9
VZ
37387 ac_ext=cc
37388ac_cpp='$CXXCPP $CPPFLAGS'
37389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37392
37393 cat >conftest.$ac_ext <<_ACEOF
0683aca6
VZ
37394/* confdefs.h. */
37395_ACEOF
37396cat confdefs.h >>conftest.$ac_ext
37397cat >>conftest.$ac_ext <<_ACEOF
37398/* end confdefs.h. */
84ae7ca4 37399
0683aca6
VZ
37400 #if defined(__BSD__)
37401 #include <sys/param.h>
37402 #include <sys/mount.h>
37403 #else
37404 #include <sys/vfs.h>
37405 #endif
37406
37407int
37408main ()
37409{
37410
37411 struct statfs fs;
37412 statfs("", &fs);
37413
37414 ;
37415 return 0;
37416}
37417_ACEOF
37418rm -f conftest.$ac_objext
37419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37420 (eval $ac_compile) 2>conftest.er1
37421 ac_status=$?
37422 grep -v '^ *+' conftest.er1 >conftest.err
37423 rm -f conftest.er1
37424 cat conftest.err >&5
37425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37426 (exit $ac_status); } &&
9b8888f9 37427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
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'
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_statfs_decl=yes
37440else
37441 echo "$as_me: failed program was:" >&5
37442sed 's/^/| /' conftest.$ac_ext >&5
37443
37444wx_cv_func_statfs_decl=no
37445
37446fi
37447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
37448 ac_ext=c
37449ac_cpp='$CPP $CPPFLAGS'
37450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37452ac_compiler_gnu=$ac_cv_c_compiler_gnu
37453
84ae7ca4
VZ
37454
37455fi
37456echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
37457echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
37458
37459 if test "$wx_cv_func_statfs_decl" = "yes"; then
37460 cat >>confdefs.h <<\_ACEOF
37461#define HAVE_STATFS_DECL 1
37462_ACEOF
37463
37464 fi
37465
a848cd7e
SC
37466 wx_cv_type_statvfs_t="struct statfs"
37467 cat >>confdefs.h <<\_ACEOF
37468#define HAVE_STATFS 1
37469_ACEOF
37470
37471else
37472 echo "$as_me:$LINENO: checking for statvfs" >&5
37473echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
37474if test "${wx_cv_func_statvfs+set}" = set; then
37475 echo $ECHO_N "(cached) $ECHO_C" >&6
37476else
37477 cat >conftest.$ac_ext <<_ACEOF
37478/* confdefs.h. */
37479_ACEOF
37480cat confdefs.h >>conftest.$ac_ext
37481cat >>conftest.$ac_ext <<_ACEOF
37482/* end confdefs.h. */
37483
37484 #include <stddef.h>
37485 #include <sys/statvfs.h>
37486
37487int
37488main ()
37489{
37490
37491 statvfs("/", NULL);
37492
37493 ;
37494 return 0;
37495}
37496_ACEOF
37497rm -f conftest.$ac_objext
37498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37499 (eval $ac_compile) 2>conftest.er1
a848cd7e 37500 ac_status=$?
ac1cb8d3
VS
37501 grep -v '^ *+' conftest.er1 >conftest.err
37502 rm -f conftest.er1
37503 cat conftest.err >&5
a848cd7e
SC
37504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37505 (exit $ac_status); } &&
fd5199d6 37506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37508 (eval $ac_try) 2>&5
37509 ac_status=$?
37510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511 (exit $ac_status); }; } &&
37512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37514 (eval $ac_try) 2>&5
37515 ac_status=$?
37516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37517 (exit $ac_status); }; }; then
37518 wx_cv_func_statvfs=yes
37519else
37520 echo "$as_me: failed program was:" >&5
37521sed 's/^/| /' conftest.$ac_ext >&5
37522
37523wx_cv_func_statvfs=no
37524
37525fi
ac1cb8d3 37526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37527
37528fi
37529echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37530echo "${ECHO_T}$wx_cv_func_statvfs" >&6
37531
37532 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 37533 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
37534echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
37535if test "${wx_cv_type_statvfs_t+set}" = set; then
37536 echo $ECHO_N "(cached) $ECHO_C" >&6
37537else
9b8888f9
VZ
37538 ac_ext=cc
37539ac_cpp='$CXXCPP $CPPFLAGS'
37540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37543
37544 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
37545/* confdefs.h. */
37546_ACEOF
37547cat confdefs.h >>conftest.$ac_ext
37548cat >>conftest.$ac_ext <<_ACEOF
37549/* end confdefs.h. */
37550
37551 #include <sys/statvfs.h>
37552
37553int
37554main ()
37555{
37556
37557 long l;
37558 statvfs_t fs;
37559 statvfs("/", &fs);
37560 l = fs.f_bsize;
37561 l += fs.f_blocks;
37562 l += fs.f_bavail;
37563
37564 ;
37565 return 0;
37566}
37567_ACEOF
37568rm -f conftest.$ac_objext
37569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37570 (eval $ac_compile) 2>conftest.er1
a848cd7e 37571 ac_status=$?
ac1cb8d3
VS
37572 grep -v '^ *+' conftest.er1 >conftest.err
37573 rm -f conftest.er1
37574 cat conftest.err >&5
a848cd7e
SC
37575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37576 (exit $ac_status); } &&
9b8888f9 37577 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37579 (eval $ac_try) 2>&5
37580 ac_status=$?
37581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37582 (exit $ac_status); }; } &&
37583 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37585 (eval $ac_try) 2>&5
37586 ac_status=$?
37587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37588 (exit $ac_status); }; }; then
37589 wx_cv_type_statvfs_t=statvfs_t
37590else
37591 echo "$as_me: failed program was:" >&5
37592sed 's/^/| /' conftest.$ac_ext >&5
37593
37594
37595 cat >conftest.$ac_ext <<_ACEOF
37596/* confdefs.h. */
37597_ACEOF
37598cat confdefs.h >>conftest.$ac_ext
37599cat >>conftest.$ac_ext <<_ACEOF
37600/* end confdefs.h. */
37601
37602 #include <sys/statvfs.h>
37603
37604int
37605main ()
37606{
37607
37608 long l;
37609 struct statvfs fs;
37610 statvfs("/", &fs);
37611 l = fs.f_bsize;
37612 l += fs.f_blocks;
37613 l += fs.f_bavail;
37614
37615 ;
37616 return 0;
37617}
37618_ACEOF
37619rm -f conftest.$ac_objext
37620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37621 (eval $ac_compile) 2>conftest.er1
a848cd7e 37622 ac_status=$?
ac1cb8d3
VS
37623 grep -v '^ *+' conftest.er1 >conftest.err
37624 rm -f conftest.er1
37625 cat conftest.err >&5
a848cd7e
SC
37626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37627 (exit $ac_status); } &&
9b8888f9 37628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37630 (eval $ac_try) 2>&5
37631 ac_status=$?
37632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37633 (exit $ac_status); }; } &&
37634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37636 (eval $ac_try) 2>&5
37637 ac_status=$?
37638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37639 (exit $ac_status); }; }; then
37640 wx_cv_type_statvfs_t="struct statvfs"
37641else
37642 echo "$as_me: failed program was:" >&5
37643sed 's/^/| /' conftest.$ac_ext >&5
37644
37645wx_cv_type_statvfs_t="unknown"
37646
37647fi
ac1cb8d3 37648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37649
37650
37651fi
ac1cb8d3 37652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
37653 ac_ext=c
37654ac_cpp='$CPP $CPPFLAGS'
37655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37657ac_compiler_gnu=$ac_cv_c_compiler_gnu
37658
a848cd7e
SC
37659
37660fi
37661echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37662echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
37663
a848cd7e
SC
37664 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37665 cat >>confdefs.h <<\_ACEOF
37666#define HAVE_STATVFS 1
37667_ACEOF
37668
37669 fi
37670 else
37671 wx_cv_type_statvfs_t="unknown"
37672 fi
37673fi
37674
37675if test "$wx_cv_type_statvfs_t" != "unknown"; then
37676 cat >>confdefs.h <<_ACEOF
37677#define WX_STATFS_T $wx_cv_type_statvfs_t
37678_ACEOF
37679
37680else
37681 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37682echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37683fi
37684
37685if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37686
37687
37688for ac_func in fcntl flock
37689do
37690as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37691echo "$as_me:$LINENO: checking for $ac_func" >&5
37692echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37693if eval "test \"\${$as_ac_var+set}\" = set"; then
37694 echo $ECHO_N "(cached) $ECHO_C" >&6
37695else
37696 cat >conftest.$ac_ext <<_ACEOF
37697/* confdefs.h. */
37698_ACEOF
37699cat confdefs.h >>conftest.$ac_ext
37700cat >>conftest.$ac_ext <<_ACEOF
37701/* end confdefs.h. */
ac1cb8d3
VS
37702/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37704#define $ac_func innocuous_$ac_func
37705
a848cd7e
SC
37706/* System header to define __stub macros and hopefully few prototypes,
37707 which can conflict with char $ac_func (); below.
37708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37709 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37710
a848cd7e
SC
37711#ifdef __STDC__
37712# include <limits.h>
37713#else
37714# include <assert.h>
37715#endif
ac1cb8d3
VS
37716
37717#undef $ac_func
37718
a848cd7e
SC
37719/* Override any gcc2 internal prototype to avoid an error. */
37720#ifdef __cplusplus
37721extern "C"
37722{
37723#endif
37724/* We use char because int might match the return type of a gcc2
37725 builtin and then its argument prototype would still apply. */
37726char $ac_func ();
37727/* The GNU C library defines this for functions which it implements
37728 to always fail with ENOSYS. Some functions are actually named
37729 something starting with __ and the normal name is an alias. */
37730#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37731choke me
37732#else
37733char (*f) () = $ac_func;
37734#endif
37735#ifdef __cplusplus
37736}
37737#endif
37738
37739int
37740main ()
37741{
37742return f != $ac_func;
37743 ;
37744 return 0;
37745}
37746_ACEOF
37747rm -f conftest.$ac_objext conftest$ac_exeext
37748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37749 (eval $ac_link) 2>conftest.er1
a848cd7e 37750 ac_status=$?
ac1cb8d3
VS
37751 grep -v '^ *+' conftest.er1 >conftest.err
37752 rm -f conftest.er1
37753 cat conftest.err >&5
a848cd7e
SC
37754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37755 (exit $ac_status); } &&
fd5199d6 37756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37758 (eval $ac_try) 2>&5
37759 ac_status=$?
37760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37761 (exit $ac_status); }; } &&
37762 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37764 (eval $ac_try) 2>&5
37765 ac_status=$?
37766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37767 (exit $ac_status); }; }; then
37768 eval "$as_ac_var=yes"
37769else
37770 echo "$as_me: failed program was:" >&5
37771sed 's/^/| /' conftest.$ac_ext >&5
37772
37773eval "$as_ac_var=no"
37774fi
ac1cb8d3
VS
37775rm -f conftest.err conftest.$ac_objext \
37776 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37777fi
37778echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37779echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37780if test `eval echo '${'$as_ac_var'}'` = yes; then
37781 cat >>confdefs.h <<_ACEOF
37782#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37783_ACEOF
37784 break
37785fi
37786done
37787
37788
37789 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37790 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37791echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37792 wxUSE_SNGLINST_CHECKER=no
37793 fi
37794fi
37795
37796
37797for ac_func in timegm
37798do
37799as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37800echo "$as_me:$LINENO: checking for $ac_func" >&5
37801echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37802if eval "test \"\${$as_ac_var+set}\" = set"; then
37803 echo $ECHO_N "(cached) $ECHO_C" >&6
37804else
37805 cat >conftest.$ac_ext <<_ACEOF
37806/* confdefs.h. */
37807_ACEOF
37808cat confdefs.h >>conftest.$ac_ext
37809cat >>conftest.$ac_ext <<_ACEOF
37810/* end confdefs.h. */
ac1cb8d3
VS
37811/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37813#define $ac_func innocuous_$ac_func
37814
a848cd7e
SC
37815/* System header to define __stub macros and hopefully few prototypes,
37816 which can conflict with char $ac_func (); below.
37817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37818 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37819
a848cd7e
SC
37820#ifdef __STDC__
37821# include <limits.h>
37822#else
37823# include <assert.h>
37824#endif
ac1cb8d3
VS
37825
37826#undef $ac_func
37827
a848cd7e
SC
37828/* Override any gcc2 internal prototype to avoid an error. */
37829#ifdef __cplusplus
37830extern "C"
37831{
37832#endif
37833/* We use char because int might match the return type of a gcc2
37834 builtin and then its argument prototype would still apply. */
37835char $ac_func ();
37836/* The GNU C library defines this for functions which it implements
37837 to always fail with ENOSYS. Some functions are actually named
37838 something starting with __ and the normal name is an alias. */
37839#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37840choke me
37841#else
37842char (*f) () = $ac_func;
37843#endif
37844#ifdef __cplusplus
37845}
37846#endif
37847
37848int
37849main ()
37850{
37851return f != $ac_func;
37852 ;
37853 return 0;
37854}
37855_ACEOF
37856rm -f conftest.$ac_objext conftest$ac_exeext
37857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37858 (eval $ac_link) 2>conftest.er1
a848cd7e 37859 ac_status=$?
ac1cb8d3
VS
37860 grep -v '^ *+' conftest.er1 >conftest.err
37861 rm -f conftest.er1
37862 cat conftest.err >&5
a848cd7e
SC
37863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37864 (exit $ac_status); } &&
fd5199d6 37865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37867 (eval $ac_try) 2>&5
37868 ac_status=$?
37869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37870 (exit $ac_status); }; } &&
37871 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37873 (eval $ac_try) 2>&5
37874 ac_status=$?
37875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37876 (exit $ac_status); }; }; then
37877 eval "$as_ac_var=yes"
37878else
37879 echo "$as_me: failed program was:" >&5
37880sed 's/^/| /' conftest.$ac_ext >&5
37881
37882eval "$as_ac_var=no"
37883fi
ac1cb8d3
VS
37884rm -f conftest.err conftest.$ac_objext \
37885 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37886fi
37887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37888echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37889if test `eval echo '${'$as_ac_var'}'` = yes; then
37890 cat >>confdefs.h <<_ACEOF
37891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37892_ACEOF
37893
37894fi
37895done
37896
37897
37898
37899
37900for ac_func in putenv setenv
37901do
37902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37903echo "$as_me:$LINENO: checking for $ac_func" >&5
37904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37905if eval "test \"\${$as_ac_var+set}\" = set"; then
37906 echo $ECHO_N "(cached) $ECHO_C" >&6
37907else
37908 cat >conftest.$ac_ext <<_ACEOF
37909/* confdefs.h. */
37910_ACEOF
37911cat confdefs.h >>conftest.$ac_ext
37912cat >>conftest.$ac_ext <<_ACEOF
37913/* end confdefs.h. */
ac1cb8d3
VS
37914/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37916#define $ac_func innocuous_$ac_func
37917
a848cd7e
SC
37918/* System header to define __stub macros and hopefully few prototypes,
37919 which can conflict with char $ac_func (); below.
37920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37921 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37922
a848cd7e
SC
37923#ifdef __STDC__
37924# include <limits.h>
37925#else
37926# include <assert.h>
37927#endif
ac1cb8d3
VS
37928
37929#undef $ac_func
37930
a848cd7e
SC
37931/* Override any gcc2 internal prototype to avoid an error. */
37932#ifdef __cplusplus
37933extern "C"
37934{
37935#endif
37936/* We use char because int might match the return type of a gcc2
37937 builtin and then its argument prototype would still apply. */
37938char $ac_func ();
37939/* The GNU C library defines this for functions which it implements
37940 to always fail with ENOSYS. Some functions are actually named
37941 something starting with __ and the normal name is an alias. */
37942#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37943choke me
37944#else
37945char (*f) () = $ac_func;
37946#endif
37947#ifdef __cplusplus
37948}
37949#endif
37950
37951int
37952main ()
37953{
37954return f != $ac_func;
37955 ;
37956 return 0;
37957}
37958_ACEOF
37959rm -f conftest.$ac_objext conftest$ac_exeext
37960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37961 (eval $ac_link) 2>conftest.er1
a848cd7e 37962 ac_status=$?
ac1cb8d3
VS
37963 grep -v '^ *+' conftest.er1 >conftest.err
37964 rm -f conftest.er1
37965 cat conftest.err >&5
a848cd7e
SC
37966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37967 (exit $ac_status); } &&
fd5199d6 37968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37970 (eval $ac_try) 2>&5
37971 ac_status=$?
37972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37973 (exit $ac_status); }; } &&
37974 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37976 (eval $ac_try) 2>&5
37977 ac_status=$?
37978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37979 (exit $ac_status); }; }; then
37980 eval "$as_ac_var=yes"
37981else
37982 echo "$as_me: failed program was:" >&5
37983sed 's/^/| /' conftest.$ac_ext >&5
37984
37985eval "$as_ac_var=no"
37986fi
ac1cb8d3
VS
37987rm -f conftest.err conftest.$ac_objext \
37988 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37989fi
37990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37991echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37992if test `eval echo '${'$as_ac_var'}'` = yes; then
37993 cat >>confdefs.h <<_ACEOF
37994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37995_ACEOF
37996 break
37997fi
37998done
37999
38000
38001HAVE_SOME_SLEEP_FUNC=0
38002if test "$USE_BEOS" = 1; then
38003 cat >>confdefs.h <<\_ACEOF
38004#define HAVE_SLEEP 1
38005_ACEOF
38006
38007 HAVE_SOME_SLEEP_FUNC=1
38008fi
38009
38010if test "$USE_DARWIN" = 1; then
38011 cat >>confdefs.h <<\_ACEOF
38012#define HAVE_USLEEP 1
38013_ACEOF
38014
38015 HAVE_SOME_SLEEP_FUNC=1
38016fi
38017
38018if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
38019 POSIX4_LINK=
38020
38021for ac_func in nanosleep
38022do
38023as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38024echo "$as_me:$LINENO: checking for $ac_func" >&5
38025echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38026if eval "test \"\${$as_ac_var+set}\" = set"; then
38027 echo $ECHO_N "(cached) $ECHO_C" >&6
38028else
38029 cat >conftest.$ac_ext <<_ACEOF
38030/* confdefs.h. */
38031_ACEOF
38032cat confdefs.h >>conftest.$ac_ext
38033cat >>conftest.$ac_ext <<_ACEOF
38034/* end confdefs.h. */
ac1cb8d3
VS
38035/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38037#define $ac_func innocuous_$ac_func
38038
a848cd7e
SC
38039/* System header to define __stub macros and hopefully few prototypes,
38040 which can conflict with char $ac_func (); below.
38041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38042 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38043
a848cd7e
SC
38044#ifdef __STDC__
38045# include <limits.h>
38046#else
38047# include <assert.h>
38048#endif
ac1cb8d3
VS
38049
38050#undef $ac_func
38051
a848cd7e
SC
38052/* Override any gcc2 internal prototype to avoid an error. */
38053#ifdef __cplusplus
38054extern "C"
38055{
38056#endif
38057/* We use char because int might match the return type of a gcc2
38058 builtin and then its argument prototype would still apply. */
38059char $ac_func ();
38060/* The GNU C library defines this for functions which it implements
38061 to always fail with ENOSYS. Some functions are actually named
38062 something starting with __ and the normal name is an alias. */
38063#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38064choke me
38065#else
38066char (*f) () = $ac_func;
38067#endif
38068#ifdef __cplusplus
38069}
38070#endif
38071
38072int
38073main ()
38074{
38075return f != $ac_func;
38076 ;
38077 return 0;
38078}
38079_ACEOF
38080rm -f conftest.$ac_objext conftest$ac_exeext
38081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38082 (eval $ac_link) 2>conftest.er1
a848cd7e 38083 ac_status=$?
ac1cb8d3
VS
38084 grep -v '^ *+' conftest.er1 >conftest.err
38085 rm -f conftest.er1
38086 cat conftest.err >&5
a848cd7e
SC
38087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38088 (exit $ac_status); } &&
fd5199d6 38089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38091 (eval $ac_try) 2>&5
38092 ac_status=$?
38093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38094 (exit $ac_status); }; } &&
38095 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38097 (eval $ac_try) 2>&5
38098 ac_status=$?
38099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38100 (exit $ac_status); }; }; then
38101 eval "$as_ac_var=yes"
38102else
38103 echo "$as_me: failed program was:" >&5
38104sed 's/^/| /' conftest.$ac_ext >&5
38105
38106eval "$as_ac_var=no"
38107fi
ac1cb8d3
VS
38108rm -f conftest.err conftest.$ac_objext \
38109 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38110fi
38111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38112echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38113if test `eval echo '${'$as_ac_var'}'` = yes; then
38114 cat >>confdefs.h <<_ACEOF
38115#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38116_ACEOF
38117 cat >>confdefs.h <<\_ACEOF
38118#define HAVE_NANOSLEEP 1
38119_ACEOF
38120
38121else
38122
38123 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
38124echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
38125if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
38126 echo $ECHO_N "(cached) $ECHO_C" >&6
38127else
38128 ac_check_lib_save_LIBS=$LIBS
38129LIBS="-lposix4 $LIBS"
38130cat >conftest.$ac_ext <<_ACEOF
38131/* confdefs.h. */
38132_ACEOF
38133cat confdefs.h >>conftest.$ac_ext
38134cat >>conftest.$ac_ext <<_ACEOF
38135/* end confdefs.h. */
38136
38137/* Override any gcc2 internal prototype to avoid an error. */
38138#ifdef __cplusplus
38139extern "C"
38140#endif
38141/* We use char because int might match the return type of a gcc2
38142 builtin and then its argument prototype would still apply. */
38143char nanosleep ();
38144int
38145main ()
38146{
38147nanosleep ();
38148 ;
38149 return 0;
38150}
38151_ACEOF
38152rm -f conftest.$ac_objext conftest$ac_exeext
38153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38154 (eval $ac_link) 2>conftest.er1
a848cd7e 38155 ac_status=$?
ac1cb8d3
VS
38156 grep -v '^ *+' conftest.er1 >conftest.err
38157 rm -f conftest.er1
38158 cat conftest.err >&5
a848cd7e
SC
38159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38160 (exit $ac_status); } &&
fd5199d6 38161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38163 (eval $ac_try) 2>&5
38164 ac_status=$?
38165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38166 (exit $ac_status); }; } &&
38167 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38169 (eval $ac_try) 2>&5
38170 ac_status=$?
38171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38172 (exit $ac_status); }; }; then
38173 ac_cv_lib_posix4_nanosleep=yes
38174else
38175 echo "$as_me: failed program was:" >&5
38176sed 's/^/| /' conftest.$ac_ext >&5
38177
38178ac_cv_lib_posix4_nanosleep=no
38179fi
ac1cb8d3
VS
38180rm -f conftest.err conftest.$ac_objext \
38181 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38182LIBS=$ac_check_lib_save_LIBS
38183fi
38184echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
38185echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
38186if test $ac_cv_lib_posix4_nanosleep = yes; then
38187
38188 cat >>confdefs.h <<\_ACEOF
38189#define HAVE_NANOSLEEP 1
38190_ACEOF
38191
38192 POSIX4_LINK=" -lposix4"
38193
38194else
38195
38196
fd5199d6
VZ
38197 for wx_func in usleep
38198 do
38199 echo "$as_me:$LINENO: checking for $wx_func" >&5
38200echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38201if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
38202 echo $ECHO_N "(cached) $ECHO_C" >&6
38203else
fd5199d6
VZ
38204
38205 cat >conftest.$ac_ext <<_ACEOF
38206
38207 /* confdefs.h. */
a848cd7e
SC
38208_ACEOF
38209cat confdefs.h >>conftest.$ac_ext
38210cat >>conftest.$ac_ext <<_ACEOF
38211/* end confdefs.h. */
ac1cb8d3 38212
ac1cb8d3 38213
fd5199d6 38214 $ac_includes_default
a848cd7e
SC
38215
38216int
38217main ()
38218{
fd5199d6
VZ
38219
38220 #ifndef $wx_func
38221 &$wx_func;
38222 #endif
38223
38224
a848cd7e
SC
38225 ;
38226 return 0;
38227}
fd5199d6 38228
a848cd7e
SC
38229_ACEOF
38230rm -f conftest.$ac_objext conftest$ac_exeext
38231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38232 (eval $ac_link) 2>conftest.er1
a848cd7e 38233 ac_status=$?
ac1cb8d3
VS
38234 grep -v '^ *+' conftest.er1 >conftest.err
38235 rm -f conftest.er1
38236 cat conftest.err >&5
a848cd7e
SC
38237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38238 (exit $ac_status); } &&
fd5199d6 38239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38241 (eval $ac_try) 2>&5
38242 ac_status=$?
38243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38244 (exit $ac_status); }; } &&
38245 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38247 (eval $ac_try) 2>&5
38248 ac_status=$?
38249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38250 (exit $ac_status); }; }; then
fd5199d6 38251 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
38252else
38253 echo "$as_me: failed program was:" >&5
38254sed 's/^/| /' conftest.$ac_ext >&5
38255
fd5199d6 38256eval wx_cv_func_$wx_func=no
a848cd7e 38257fi
ac1cb8d3
VS
38258rm -f conftest.err conftest.$ac_objext \
38259 conftest$ac_exeext conftest.$ac_ext
fd5199d6 38260
a848cd7e 38261fi
fd5199d6
VZ
38262echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38263echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
38264
38265 if eval test \$wx_cv_func_$wx_func = yes
38266 then
38267 cat >>confdefs.h <<_ACEOF
38268#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
a848cd7e
SC
38269_ACEOF
38270
fd5199d6
VZ
38271
38272 else
38273 :
38274 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
a848cd7e
SC
38275echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
38276
fd5199d6
VZ
38277 fi
38278 done
a848cd7e
SC
38279
38280
38281
38282fi
38283
38284
38285
38286fi
38287done
38288
38289fi
38290
38291
9b8888f9
VZ
38292 for wx_func in uname
38293 do
38294 echo "$as_me:$LINENO: checking for $wx_func" >&5
38295echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38296if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
38297 echo $ECHO_N "(cached) $ECHO_C" >&6
38298else
38299
38300 cat >conftest.$ac_ext <<_ACEOF
38301
38302 /* confdefs.h. */
38303_ACEOF
38304cat confdefs.h >>conftest.$ac_ext
38305cat >>conftest.$ac_ext <<_ACEOF
38306/* end confdefs.h. */
38307
38308 #include <sys/utsname.h>
38309 $ac_includes_default
38310
38311int
38312main ()
38313{
38314
38315 #ifndef $wx_func
38316 &$wx_func;
38317 #endif
38318
38319
38320 ;
38321 return 0;
38322}
38323
38324_ACEOF
38325rm -f conftest.$ac_objext conftest$ac_exeext
38326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38327 (eval $ac_link) 2>conftest.er1
38328 ac_status=$?
38329 grep -v '^ *+' conftest.er1 >conftest.err
38330 rm -f conftest.er1
38331 cat conftest.err >&5
38332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38333 (exit $ac_status); } &&
38334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38336 (eval $ac_try) 2>&5
38337 ac_status=$?
38338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38339 (exit $ac_status); }; } &&
38340 { ac_try='test -s conftest$ac_exeext'
38341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38342 (eval $ac_try) 2>&5
38343 ac_status=$?
38344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38345 (exit $ac_status); }; }; then
38346 eval wx_cv_func_$wx_func=yes
38347else
38348 echo "$as_me: failed program was:" >&5
38349sed 's/^/| /' conftest.$ac_ext >&5
38350
38351eval wx_cv_func_$wx_func=no
38352fi
38353rm -f conftest.err conftest.$ac_objext \
38354 conftest$ac_exeext conftest.$ac_ext
38355
38356fi
38357echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38358echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
38359
38360 if eval test \$wx_cv_func_$wx_func = yes
38361 then
38362 cat >>confdefs.h <<_ACEOF
38363#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38364_ACEOF
38365
38366
38367 else
38368 :
38369
38370 fi
38371 done
38372
38373if test "$wx_cv_func_uname" != yes; then
38374
38375 for wx_func in gethostname
fd5199d6
VZ
38376 do
38377 echo "$as_me:$LINENO: checking for $wx_func" >&5
38378echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38379if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
38380 echo $ECHO_N "(cached) $ECHO_C" >&6
38381else
fd5199d6
VZ
38382
38383 cat >conftest.$ac_ext <<_ACEOF
38384
38385 /* confdefs.h. */
a848cd7e
SC
38386_ACEOF
38387cat confdefs.h >>conftest.$ac_ext
38388cat >>conftest.$ac_ext <<_ACEOF
38389/* end confdefs.h. */
ac1cb8d3 38390
ac1cb8d3 38391
fd5199d6 38392 $ac_includes_default
a848cd7e
SC
38393
38394int
38395main ()
38396{
fd5199d6
VZ
38397
38398 #ifndef $wx_func
38399 &$wx_func;
38400 #endif
38401
38402
a848cd7e
SC
38403 ;
38404 return 0;
38405}
fd5199d6 38406
a848cd7e
SC
38407_ACEOF
38408rm -f conftest.$ac_objext conftest$ac_exeext
38409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38410 (eval $ac_link) 2>conftest.er1
a848cd7e 38411 ac_status=$?
ac1cb8d3
VS
38412 grep -v '^ *+' conftest.er1 >conftest.err
38413 rm -f conftest.er1
38414 cat conftest.err >&5
a848cd7e
SC
38415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38416 (exit $ac_status); } &&
fd5199d6 38417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38419 (eval $ac_try) 2>&5
38420 ac_status=$?
38421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38422 (exit $ac_status); }; } &&
38423 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38425 (eval $ac_try) 2>&5
38426 ac_status=$?
38427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38428 (exit $ac_status); }; }; then
fd5199d6 38429 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
38430else
38431 echo "$as_me: failed program was:" >&5
38432sed 's/^/| /' conftest.$ac_ext >&5
38433
fd5199d6 38434eval wx_cv_func_$wx_func=no
a848cd7e 38435fi
ac1cb8d3
VS
38436rm -f conftest.err conftest.$ac_objext \
38437 conftest$ac_exeext conftest.$ac_ext
fd5199d6 38438
a848cd7e 38439fi
fd5199d6
VZ
38440echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38441echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
38442
38443 if eval test \$wx_cv_func_$wx_func = yes
38444 then
38445 cat >>confdefs.h <<_ACEOF
38446#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
a848cd7e 38447_ACEOF
fd5199d6 38448
9b8888f9 38449
fd5199d6
VZ
38450 else
38451 :
38452
38453 fi
38454 done
a848cd7e 38455
9b8888f9 38456fi
a848cd7e 38457
56632e81
MW
38458
38459 for wx_func in strtok_r
38460 do
38461 echo "$as_me:$LINENO: checking for $wx_func" >&5
38462echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38463if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
38464 echo $ECHO_N "(cached) $ECHO_C" >&6
38465else
56632e81
MW
38466
38467 cat >conftest.$ac_ext <<_ACEOF
38468
38469 /* confdefs.h. */
a848cd7e
SC
38470_ACEOF
38471cat confdefs.h >>conftest.$ac_ext
38472cat >>conftest.$ac_ext <<_ACEOF
38473/* end confdefs.h. */
56632e81
MW
38474
38475 #define _REENTRANT
38476 $ac_includes_default
38477
a848cd7e
SC
38478int
38479main ()
38480{
56632e81
MW
38481
38482 #ifndef $wx_func
38483 &$wx_func;
38484 #endif
38485
5acfd58d 38486
a848cd7e
SC
38487 ;
38488 return 0;
38489}
56632e81 38490
a848cd7e 38491_ACEOF
56632e81
MW
38492rm -f conftest.$ac_objext conftest$ac_exeext
38493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38494 (eval $ac_link) 2>conftest.er1
a848cd7e 38495 ac_status=$?
ac1cb8d3
VS
38496 grep -v '^ *+' conftest.er1 >conftest.err
38497 rm -f conftest.er1
38498 cat conftest.err >&5
a848cd7e
SC
38499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38500 (exit $ac_status); } &&
fd5199d6 38501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38503 (eval $ac_try) 2>&5
38504 ac_status=$?
38505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38506 (exit $ac_status); }; } &&
56632e81 38507 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38509 (eval $ac_try) 2>&5
38510 ac_status=$?
38511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38512 (exit $ac_status); }; }; then
56632e81 38513 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
38514else
38515 echo "$as_me: failed program was:" >&5
38516sed 's/^/| /' conftest.$ac_ext >&5
38517
56632e81 38518eval wx_cv_func_$wx_func=no
a848cd7e 38519fi
56632e81
MW
38520rm -f conftest.err conftest.$ac_objext \
38521 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38522
56632e81
MW
38523fi
38524echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38525echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
a848cd7e 38526
56632e81
MW
38527 if eval test \$wx_cv_func_$wx_func = yes
38528 then
38529 cat >>confdefs.h <<_ACEOF
38530#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
82a2636b
MW
38531_ACEOF
38532
38533
56632e81
MW
38534 else
38535 :
5acfd58d 38536
56632e81
MW
38537 fi
38538 done
5acfd58d 38539
a848cd7e 38540
a848cd7e
SC
38541INET_LINK=
38542
38543for ac_func in inet_addr
38544do
38545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38546echo "$as_me:$LINENO: checking for $ac_func" >&5
38547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38548if eval "test \"\${$as_ac_var+set}\" = set"; then
38549 echo $ECHO_N "(cached) $ECHO_C" >&6
38550else
38551 cat >conftest.$ac_ext <<_ACEOF
38552/* confdefs.h. */
38553_ACEOF
38554cat confdefs.h >>conftest.$ac_ext
38555cat >>conftest.$ac_ext <<_ACEOF
38556/* end confdefs.h. */
ac1cb8d3
VS
38557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38559#define $ac_func innocuous_$ac_func
38560
a848cd7e
SC
38561/* System header to define __stub macros and hopefully few prototypes,
38562 which can conflict with char $ac_func (); below.
38563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38564 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38565
a848cd7e
SC
38566#ifdef __STDC__
38567# include <limits.h>
38568#else
38569# include <assert.h>
38570#endif
ac1cb8d3
VS
38571
38572#undef $ac_func
38573
a848cd7e
SC
38574/* Override any gcc2 internal prototype to avoid an error. */
38575#ifdef __cplusplus
38576extern "C"
38577{
38578#endif
38579/* We use char because int might match the return type of a gcc2
38580 builtin and then its argument prototype would still apply. */
38581char $ac_func ();
38582/* The GNU C library defines this for functions which it implements
38583 to always fail with ENOSYS. Some functions are actually named
38584 something starting with __ and the normal name is an alias. */
38585#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38586choke me
38587#else
38588char (*f) () = $ac_func;
38589#endif
38590#ifdef __cplusplus
38591}
38592#endif
38593
38594int
38595main ()
38596{
38597return f != $ac_func;
38598 ;
38599 return 0;
38600}
38601_ACEOF
38602rm -f conftest.$ac_objext conftest$ac_exeext
38603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38604 (eval $ac_link) 2>conftest.er1
a848cd7e 38605 ac_status=$?
ac1cb8d3
VS
38606 grep -v '^ *+' conftest.er1 >conftest.err
38607 rm -f conftest.er1
38608 cat conftest.err >&5
a848cd7e
SC
38609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38610 (exit $ac_status); } &&
fd5199d6 38611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38613 (eval $ac_try) 2>&5
38614 ac_status=$?
38615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38616 (exit $ac_status); }; } &&
38617 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38619 (eval $ac_try) 2>&5
38620 ac_status=$?
38621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38622 (exit $ac_status); }; }; then
38623 eval "$as_ac_var=yes"
38624else
38625 echo "$as_me: failed program was:" >&5
38626sed 's/^/| /' conftest.$ac_ext >&5
38627
38628eval "$as_ac_var=no"
38629fi
ac1cb8d3
VS
38630rm -f conftest.err conftest.$ac_objext \
38631 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38632fi
38633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38634echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38635if test `eval echo '${'$as_ac_var'}'` = yes; then
38636 cat >>confdefs.h <<_ACEOF
38637#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38638_ACEOF
38639 cat >>confdefs.h <<\_ACEOF
38640#define HAVE_INET_ADDR 1
38641_ACEOF
38642
38643else
38644
38645 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38646echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
38647if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38648 echo $ECHO_N "(cached) $ECHO_C" >&6
38649else
38650 ac_check_lib_save_LIBS=$LIBS
38651LIBS="-lnsl $LIBS"
38652cat >conftest.$ac_ext <<_ACEOF
38653/* confdefs.h. */
38654_ACEOF
38655cat confdefs.h >>conftest.$ac_ext
38656cat >>conftest.$ac_ext <<_ACEOF
38657/* end confdefs.h. */
38658
38659/* Override any gcc2 internal prototype to avoid an error. */
38660#ifdef __cplusplus
38661extern "C"
38662#endif
38663/* We use char because int might match the return type of a gcc2
38664 builtin and then its argument prototype would still apply. */
38665char inet_addr ();
38666int
38667main ()
38668{
38669inet_addr ();
38670 ;
38671 return 0;
38672}
38673_ACEOF
38674rm -f conftest.$ac_objext conftest$ac_exeext
38675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38676 (eval $ac_link) 2>conftest.er1
a848cd7e 38677 ac_status=$?
ac1cb8d3
VS
38678 grep -v '^ *+' conftest.er1 >conftest.err
38679 rm -f conftest.er1
38680 cat conftest.err >&5
a848cd7e
SC
38681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38682 (exit $ac_status); } &&
fd5199d6 38683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38685 (eval $ac_try) 2>&5
38686 ac_status=$?
38687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38688 (exit $ac_status); }; } &&
38689 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38691 (eval $ac_try) 2>&5
38692 ac_status=$?
38693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38694 (exit $ac_status); }; }; then
38695 ac_cv_lib_nsl_inet_addr=yes
38696else
38697 echo "$as_me: failed program was:" >&5
38698sed 's/^/| /' conftest.$ac_ext >&5
38699
38700ac_cv_lib_nsl_inet_addr=no
38701fi
ac1cb8d3
VS
38702rm -f conftest.err conftest.$ac_objext \
38703 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38704LIBS=$ac_check_lib_save_LIBS
38705fi
38706echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38707echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
38708if test $ac_cv_lib_nsl_inet_addr = yes; then
38709 INET_LINK="nsl"
38710else
38711
38712 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38713echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
38714if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38715 echo $ECHO_N "(cached) $ECHO_C" >&6
38716else
38717 ac_check_lib_save_LIBS=$LIBS
38718LIBS="-lresolv $LIBS"
38719cat >conftest.$ac_ext <<_ACEOF
38720/* confdefs.h. */
38721_ACEOF
38722cat confdefs.h >>conftest.$ac_ext
38723cat >>conftest.$ac_ext <<_ACEOF
38724/* end confdefs.h. */
38725
38726/* Override any gcc2 internal prototype to avoid an error. */
38727#ifdef __cplusplus
38728extern "C"
38729#endif
38730/* We use char because int might match the return type of a gcc2
38731 builtin and then its argument prototype would still apply. */
38732char inet_addr ();
38733int
38734main ()
38735{
38736inet_addr ();
38737 ;
38738 return 0;
38739}
38740_ACEOF
38741rm -f conftest.$ac_objext conftest$ac_exeext
38742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38743 (eval $ac_link) 2>conftest.er1
a848cd7e 38744 ac_status=$?
ac1cb8d3
VS
38745 grep -v '^ *+' conftest.er1 >conftest.err
38746 rm -f conftest.er1
38747 cat conftest.err >&5
a848cd7e
SC
38748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38749 (exit $ac_status); } &&
fd5199d6 38750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38752 (eval $ac_try) 2>&5
38753 ac_status=$?
38754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38755 (exit $ac_status); }; } &&
38756 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38758 (eval $ac_try) 2>&5
38759 ac_status=$?
38760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38761 (exit $ac_status); }; }; then
38762 ac_cv_lib_resolv_inet_addr=yes
38763else
38764 echo "$as_me: failed program was:" >&5
38765sed 's/^/| /' conftest.$ac_ext >&5
38766
38767ac_cv_lib_resolv_inet_addr=no
38768fi
ac1cb8d3
VS
38769rm -f conftest.err conftest.$ac_objext \
38770 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38771LIBS=$ac_check_lib_save_LIBS
38772fi
38773echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38774echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
38775if test $ac_cv_lib_resolv_inet_addr = yes; then
38776 INET_LINK="resolv"
38777else
38778
38779 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38780echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
38781if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38782 echo $ECHO_N "(cached) $ECHO_C" >&6
38783else
38784 ac_check_lib_save_LIBS=$LIBS
38785LIBS="-lsocket $LIBS"
38786cat >conftest.$ac_ext <<_ACEOF
38787/* confdefs.h. */
38788_ACEOF
38789cat confdefs.h >>conftest.$ac_ext
38790cat >>conftest.$ac_ext <<_ACEOF
38791/* end confdefs.h. */
38792
38793/* Override any gcc2 internal prototype to avoid an error. */
38794#ifdef __cplusplus
38795extern "C"
38796#endif
38797/* We use char because int might match the return type of a gcc2
38798 builtin and then its argument prototype would still apply. */
38799char inet_addr ();
38800int
38801main ()
38802{
38803inet_addr ();
38804 ;
38805 return 0;
38806}
38807_ACEOF
38808rm -f conftest.$ac_objext conftest$ac_exeext
38809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38810 (eval $ac_link) 2>conftest.er1
a848cd7e 38811 ac_status=$?
ac1cb8d3
VS
38812 grep -v '^ *+' conftest.er1 >conftest.err
38813 rm -f conftest.er1
38814 cat conftest.err >&5
a848cd7e
SC
38815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38816 (exit $ac_status); } &&
fd5199d6 38817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38819 (eval $ac_try) 2>&5
38820 ac_status=$?
38821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38822 (exit $ac_status); }; } &&
38823 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38825 (eval $ac_try) 2>&5
38826 ac_status=$?
38827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38828 (exit $ac_status); }; }; then
38829 ac_cv_lib_socket_inet_addr=yes
38830else
38831 echo "$as_me: failed program was:" >&5
38832sed 's/^/| /' conftest.$ac_ext >&5
38833
38834ac_cv_lib_socket_inet_addr=no
38835fi
ac1cb8d3
VS
38836rm -f conftest.err conftest.$ac_objext \
38837 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38838LIBS=$ac_check_lib_save_LIBS
38839fi
38840echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38841echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
38842if test $ac_cv_lib_socket_inet_addr = yes; then
38843 INET_LINK="socket"
38844
38845fi
38846
38847
38848
38849fi
38850
38851
38852
38853fi
38854
38855
38856
38857fi
38858done
38859
38860
38861
38862for ac_func in inet_aton
38863do
38864as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38865echo "$as_me:$LINENO: checking for $ac_func" >&5
38866echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38867if eval "test \"\${$as_ac_var+set}\" = set"; then
38868 echo $ECHO_N "(cached) $ECHO_C" >&6
38869else
38870 cat >conftest.$ac_ext <<_ACEOF
38871/* confdefs.h. */
38872_ACEOF
38873cat confdefs.h >>conftest.$ac_ext
38874cat >>conftest.$ac_ext <<_ACEOF
38875/* end confdefs.h. */
ac1cb8d3
VS
38876/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38878#define $ac_func innocuous_$ac_func
38879
a848cd7e
SC
38880/* System header to define __stub macros and hopefully few prototypes,
38881 which can conflict with char $ac_func (); below.
38882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38883 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38884
a848cd7e
SC
38885#ifdef __STDC__
38886# include <limits.h>
38887#else
38888# include <assert.h>
38889#endif
ac1cb8d3
VS
38890
38891#undef $ac_func
38892
a848cd7e
SC
38893/* Override any gcc2 internal prototype to avoid an error. */
38894#ifdef __cplusplus
38895extern "C"
38896{
38897#endif
38898/* We use char because int might match the return type of a gcc2
38899 builtin and then its argument prototype would still apply. */
38900char $ac_func ();
38901/* The GNU C library defines this for functions which it implements
38902 to always fail with ENOSYS. Some functions are actually named
38903 something starting with __ and the normal name is an alias. */
38904#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38905choke me
38906#else
38907char (*f) () = $ac_func;
38908#endif
38909#ifdef __cplusplus
38910}
38911#endif
38912
38913int
38914main ()
38915{
38916return f != $ac_func;
38917 ;
38918 return 0;
38919}
38920_ACEOF
38921rm -f conftest.$ac_objext conftest$ac_exeext
38922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38923 (eval $ac_link) 2>conftest.er1
a848cd7e 38924 ac_status=$?
ac1cb8d3
VS
38925 grep -v '^ *+' conftest.er1 >conftest.err
38926 rm -f conftest.er1
38927 cat conftest.err >&5
a848cd7e
SC
38928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38929 (exit $ac_status); } &&
fd5199d6 38930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38932 (eval $ac_try) 2>&5
38933 ac_status=$?
38934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38935 (exit $ac_status); }; } &&
38936 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38938 (eval $ac_try) 2>&5
38939 ac_status=$?
38940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38941 (exit $ac_status); }; }; then
38942 eval "$as_ac_var=yes"
38943else
38944 echo "$as_me: failed program was:" >&5
38945sed 's/^/| /' conftest.$ac_ext >&5
38946
38947eval "$as_ac_var=no"
38948fi
ac1cb8d3
VS
38949rm -f conftest.err conftest.$ac_objext \
38950 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38951fi
38952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38953echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38954if test `eval echo '${'$as_ac_var'}'` = yes; then
38955 cat >>confdefs.h <<_ACEOF
38956#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38957_ACEOF
38958 cat >>confdefs.h <<\_ACEOF
38959#define HAVE_INET_ATON 1
38960_ACEOF
38961
38962else
38963
38964 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38965echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38966echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
38967if eval "test \"\${$as_ac_Lib+set}\" = set"; then
38968 echo $ECHO_N "(cached) $ECHO_C" >&6
38969else
38970 ac_check_lib_save_LIBS=$LIBS
38971LIBS="-l$INET_LINK $LIBS"
38972cat >conftest.$ac_ext <<_ACEOF
38973/* confdefs.h. */
38974_ACEOF
38975cat confdefs.h >>conftest.$ac_ext
38976cat >>conftest.$ac_ext <<_ACEOF
38977/* end confdefs.h. */
38978
38979/* Override any gcc2 internal prototype to avoid an error. */
38980#ifdef __cplusplus
38981extern "C"
38982#endif
38983/* We use char because int might match the return type of a gcc2
38984 builtin and then its argument prototype would still apply. */
38985char inet_aton ();
38986int
38987main ()
38988{
38989inet_aton ();
38990 ;
38991 return 0;
38992}
38993_ACEOF
38994rm -f conftest.$ac_objext conftest$ac_exeext
38995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38996 (eval $ac_link) 2>conftest.er1
a848cd7e 38997 ac_status=$?
ac1cb8d3
VS
38998 grep -v '^ *+' conftest.er1 >conftest.err
38999 rm -f conftest.er1
39000 cat conftest.err >&5
a848cd7e
SC
39001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39002 (exit $ac_status); } &&
fd5199d6 39003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39005 (eval $ac_try) 2>&5
39006 ac_status=$?
39007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39008 (exit $ac_status); }; } &&
39009 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39011 (eval $ac_try) 2>&5
39012 ac_status=$?
39013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39014 (exit $ac_status); }; }; then
39015 eval "$as_ac_Lib=yes"
39016else
39017 echo "$as_me: failed program was:" >&5
39018sed 's/^/| /' conftest.$ac_ext >&5
39019
39020eval "$as_ac_Lib=no"
39021fi
ac1cb8d3
VS
39022rm -f conftest.err conftest.$ac_objext \
39023 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39024LIBS=$ac_check_lib_save_LIBS
39025fi
39026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
39027echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
39028if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39029 cat >>confdefs.h <<\_ACEOF
39030#define HAVE_INET_ATON 1
39031_ACEOF
39032
39033fi
39034
39035
39036fi
39037done
39038
39039
39040if test "x$INET_LINK" != "x"; then
39041 cat >>confdefs.h <<\_ACEOF
39042#define HAVE_INET_ADDR 1
39043_ACEOF
39044
39045 INET_LINK=" -l$INET_LINK"
39046fi
39047
f8f6c91a
MW
39048
39049 for wx_func in fdopen
39050 do
39051 echo "$as_me:$LINENO: checking for $wx_func" >&5
39052echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
39053if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
39054 echo $ECHO_N "(cached) $ECHO_C" >&6
39055else
39056
39057 cat >conftest.$ac_ext <<_ACEOF
39058
39059 /* confdefs.h. */
39060_ACEOF
39061cat confdefs.h >>conftest.$ac_ext
39062cat >>conftest.$ac_ext <<_ACEOF
39063/* end confdefs.h. */
39064
39065
39066 $ac_includes_default
39067
39068int
39069main ()
39070{
39071
39072 #ifndef $wx_func
39073 &$wx_func;
39074 #endif
39075
39076
39077 ;
39078 return 0;
39079}
39080
39081_ACEOF
39082rm -f conftest.$ac_objext conftest$ac_exeext
39083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39084 (eval $ac_link) 2>conftest.er1
39085 ac_status=$?
39086 grep -v '^ *+' conftest.er1 >conftest.err
39087 rm -f conftest.er1
39088 cat conftest.err >&5
39089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39090 (exit $ac_status); } &&
fd5199d6 39091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f8f6c91a
MW
39092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39093 (eval $ac_try) 2>&5
39094 ac_status=$?
39095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39096 (exit $ac_status); }; } &&
39097 { ac_try='test -s conftest$ac_exeext'
39098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39099 (eval $ac_try) 2>&5
39100 ac_status=$?
39101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39102 (exit $ac_status); }; }; then
39103 eval wx_cv_func_$wx_func=yes
39104else
39105 echo "$as_me: failed program was:" >&5
39106sed 's/^/| /' conftest.$ac_ext >&5
39107
39108eval wx_cv_func_$wx_func=no
a848cd7e 39109fi
f8f6c91a
MW
39110rm -f conftest.err conftest.$ac_objext \
39111 conftest$ac_exeext conftest.$ac_ext
39112
39113fi
39114echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
39115echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
39116
39117 if eval test \$wx_cv_func_$wx_func = yes
39118 then
39119 cat >>confdefs.h <<_ACEOF
39120#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39121_ACEOF
39122
39123
39124 else
39125 :
39126
39127 fi
39128 done
39129
39130
39131fi
39132
a848cd7e
SC
39133
39134
39135
39136EXTRALIBS_ESD=
39137echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
39138echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
39139if test "${ac_cv_lib_esd_esd_close+set}" = set; then
39140 echo $ECHO_N "(cached) $ECHO_C" >&6
39141else
39142 ac_check_lib_save_LIBS=$LIBS
39143LIBS="-lesd $LIBS"
39144cat >conftest.$ac_ext <<_ACEOF
39145/* confdefs.h. */
39146_ACEOF
39147cat confdefs.h >>conftest.$ac_ext
39148cat >>conftest.$ac_ext <<_ACEOF
39149/* end confdefs.h. */
39150
39151/* Override any gcc2 internal prototype to avoid an error. */
39152#ifdef __cplusplus
39153extern "C"
39154#endif
39155/* We use char because int might match the return type of a gcc2
39156 builtin and then its argument prototype would still apply. */
39157char esd_close ();
39158int
39159main ()
39160{
39161esd_close ();
39162 ;
39163 return 0;
39164}
39165_ACEOF
39166rm -f conftest.$ac_objext conftest$ac_exeext
39167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39168 (eval $ac_link) 2>conftest.er1
a848cd7e 39169 ac_status=$?
ac1cb8d3
VS
39170 grep -v '^ *+' conftest.er1 >conftest.err
39171 rm -f conftest.er1
39172 cat conftest.err >&5
a848cd7e
SC
39173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39174 (exit $ac_status); } &&
fd5199d6 39175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39177 (eval $ac_try) 2>&5
39178 ac_status=$?
39179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39180 (exit $ac_status); }; } &&
39181 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39183 (eval $ac_try) 2>&5
39184 ac_status=$?
39185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39186 (exit $ac_status); }; }; then
39187 ac_cv_lib_esd_esd_close=yes
39188else
39189 echo "$as_me: failed program was:" >&5
39190sed 's/^/| /' conftest.$ac_ext >&5
39191
39192ac_cv_lib_esd_esd_close=no
39193fi
ac1cb8d3
VS
39194rm -f conftest.err conftest.$ac_objext \
39195 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39196LIBS=$ac_check_lib_save_LIBS
39197fi
39198echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
39199echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
39200if test $ac_cv_lib_esd_esd_close = yes; then
39201
39202
39203for ac_header in esd.h
39204do
39205as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39206if eval "test \"\${$as_ac_Header+set}\" = set"; then
39207 echo "$as_me:$LINENO: checking for $ac_header" >&5
39208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39209if eval "test \"\${$as_ac_Header+set}\" = set"; then
39210 echo $ECHO_N "(cached) $ECHO_C" >&6
39211fi
39212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39213echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39214else
39215 # Is the header compilable?
39216echo "$as_me:$LINENO: checking $ac_header usability" >&5
39217echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39218cat >conftest.$ac_ext <<_ACEOF
39219/* confdefs.h. */
39220_ACEOF
39221cat confdefs.h >>conftest.$ac_ext
39222cat >>conftest.$ac_ext <<_ACEOF
39223/* end confdefs.h. */
39224$ac_includes_default
39225#include <$ac_header>
39226_ACEOF
39227rm -f conftest.$ac_objext
39228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39229 (eval $ac_compile) 2>conftest.er1
a848cd7e 39230 ac_status=$?
ac1cb8d3
VS
39231 grep -v '^ *+' conftest.er1 >conftest.err
39232 rm -f conftest.er1
39233 cat conftest.err >&5
a848cd7e
SC
39234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39235 (exit $ac_status); } &&
fd5199d6 39236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39238 (eval $ac_try) 2>&5
39239 ac_status=$?
39240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39241 (exit $ac_status); }; } &&
39242 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39244 (eval $ac_try) 2>&5
39245 ac_status=$?
39246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39247 (exit $ac_status); }; }; then
39248 ac_header_compiler=yes
39249else
39250 echo "$as_me: failed program was:" >&5
39251sed 's/^/| /' conftest.$ac_ext >&5
39252
39253ac_header_compiler=no
39254fi
ac1cb8d3 39255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39256echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39257echo "${ECHO_T}$ac_header_compiler" >&6
39258
39259# Is the header present?
39260echo "$as_me:$LINENO: checking $ac_header presence" >&5
39261echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39262cat >conftest.$ac_ext <<_ACEOF
39263/* confdefs.h. */
39264_ACEOF
39265cat confdefs.h >>conftest.$ac_ext
39266cat >>conftest.$ac_ext <<_ACEOF
39267/* end confdefs.h. */
39268#include <$ac_header>
39269_ACEOF
39270if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39272 ac_status=$?
39273 grep -v '^ *+' conftest.er1 >conftest.err
39274 rm -f conftest.er1
39275 cat conftest.err >&5
39276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277 (exit $ac_status); } >/dev/null; then
39278 if test -s conftest.err; then
fd5199d6
VZ
39279 ac_cpp_err=$ac_c_preproc_warn_flag
39280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39281 else
39282 ac_cpp_err=
39283 fi
39284else
39285 ac_cpp_err=yes
39286fi
39287if test -z "$ac_cpp_err"; then
39288 ac_header_preproc=yes
39289else
39290 echo "$as_me: failed program was:" >&5
39291sed 's/^/| /' conftest.$ac_ext >&5
39292
39293 ac_header_preproc=no
39294fi
39295rm -f conftest.err conftest.$ac_ext
39296echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39297echo "${ECHO_T}$ac_header_preproc" >&6
39298
39299# So? What about this header?
fd5199d6 39300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 39301 yes:no: )
a848cd7e
SC
39302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39303echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39305echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39306 ac_header_preproc=yes
a848cd7e 39307 ;;
ac1cb8d3 39308 no:yes:* )
a848cd7e
SC
39309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39310echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39312echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39314echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39316echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39318echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39320echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39321 (
39322 cat <<\_ASBOX
ac1cb8d3
VS
39323## ----------------------------------------- ##
39324## Report this to wx-dev@lists.wxwidgets.org ##
39325## ----------------------------------------- ##
a848cd7e
SC
39326_ASBOX
39327 ) |
39328 sed "s/^/$as_me: WARNING: /" >&2
39329 ;;
39330esac
39331echo "$as_me:$LINENO: checking for $ac_header" >&5
39332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39333if eval "test \"\${$as_ac_Header+set}\" = set"; then
39334 echo $ECHO_N "(cached) $ECHO_C" >&6
39335else
ac1cb8d3 39336 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39337fi
39338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39339echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39340
39341fi
39342if test `eval echo '${'$as_ac_Header'}'` = yes; then
39343 cat >>confdefs.h <<_ACEOF
39344#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39345_ACEOF
39346
39347 EXTRALIBS_ESD="-lesd"
39348
39349fi
39350
39351done
39352
39353
39354fi
39355
39356
39357
39358echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
39359echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
39360cat >conftest.$ac_ext <<_ACEOF
39361/* confdefs.h. */
39362_ACEOF
39363cat confdefs.h >>conftest.$ac_ext
39364cat >>conftest.$ac_ext <<_ACEOF
39365/* end confdefs.h. */
39366#ifdef __linux__
39367 #include <linux/cdrom.h>
39368 #else
39369 /* For Solaris */
39370 #include <sys/cdio.h>
39371 #endif
39372
39373int
39374main ()
39375{
39376struct cdrom_tocentry entry, old_entry;
39377 ;
39378 return 0;
39379}
39380_ACEOF
39381rm -f conftest.$ac_objext
39382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39383 (eval $ac_compile) 2>conftest.er1
a848cd7e 39384 ac_status=$?
ac1cb8d3
VS
39385 grep -v '^ *+' conftest.er1 >conftest.err
39386 rm -f conftest.er1
39387 cat conftest.err >&5
a848cd7e
SC
39388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39389 (exit $ac_status); } &&
fd5199d6 39390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39392 (eval $ac_try) 2>&5
39393 ac_status=$?
39394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39395 (exit $ac_status); }; } &&
39396 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
39402 echo "$as_me:$LINENO: result: yes" >&5
39403echo "${ECHO_T}yes" >&6
39404 cat >>confdefs.h <<\_ACEOF
39405#define HAVE_KNOWN_CDROM_INTERFACE 1
39406_ACEOF
39407
39408else
39409 echo "$as_me: failed program was:" >&5
39410sed 's/^/| /' conftest.$ac_ext >&5
39411
39412echo "$as_me:$LINENO: result: no" >&5
39413echo "${ECHO_T}no" >&6
39414fi
ac1cb8d3 39415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39416
39417
39418cat >confcache <<\_ACEOF
39419# This file is a shell script that caches the results of configure
39420# tests run on this system so they can be shared between configure
39421# scripts and configure runs, see configure's option --config-cache.
39422# It is not useful on other systems. If it contains results you don't
39423# want to keep, you may remove or edit it.
39424#
39425# config.status only pays attention to the cache file if you give it
39426# the --recheck option to rerun configure.
39427#
39428# `ac_cv_env_foo' variables (set or unset) will be overridden when
39429# loading this file, other *unset* `ac_cv_foo' will be assigned the
39430# following values.
39431
39432_ACEOF
39433
39434# The following way of writing the cache mishandles newlines in values,
39435# but we know of no workaround that is simple, portable, and efficient.
39436# So, don't put newlines in cache variables' values.
39437# Ultrix sh set writes to stderr and can't be redirected directly,
39438# and sets the high bit in the cache file unless we assign to the vars.
39439{
39440 (set) 2>&1 |
39441 case `(ac_space=' '; set | grep ac_space) 2>&1` in
39442 *ac_space=\ *)
39443 # `set' does not quote correctly, so add quotes (double-quote
39444 # substitution turns \\\\ into \\, and sed turns \\ into \).
39445 sed -n \
ac1cb8d3
VS
39446 "s/'/'\\\\''/g;
39447 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
39448 ;;
39449 *)
39450 # `set' quotes correctly as required by POSIX, so do not add quotes.
39451 sed -n \
ac1cb8d3 39452 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
39453 ;;
39454 esac;
39455} |
39456 sed '
39457 t clear
39458 : clear
39459 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39460 t end
39461 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39462 : end' >>confcache
39463if diff $cache_file confcache >/dev/null 2>&1; then :; else
39464 if test -w $cache_file; then
39465 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39466 cat confcache >$cache_file
39467 else
39468 echo "not updating unwritable cache $cache_file"
39469 fi
39470fi
39471rm -f confcache
39472
39473
a848cd7e
SC
39474if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39475
39476
39477 THREADS_LINK=
9b8888f9 39478 THREADS_CFLAGS=
a848cd7e
SC
39479
39480 if test "$wxUSE_THREADS" = "yes" ; then
39481 if test "$USE_BEOS" = 1; then
39482 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
39483echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
39484 wxUSE_THREADS="no"
39485 fi
39486 fi
39487
39488 if test "$wxUSE_THREADS" = "yes" ; then
39489
39490
39491 THREAD_OPTS="-pthread"
39492 case "${host}" in
39493 *-*-solaris2* | *-*-sunos4* )
39494 if test "x$GCC" = "xyes"; then
39495 THREAD_OPTS="-pthreads $THREAD_OPTS"
39496 else
39497 THREAD_OPTS="-mt $THREAD_OPTS"
39498 fi
39499 ;;
39500 *-*-freebsd*)
39501 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
39502 ;;
39503 *-*-darwin* | *-*-cygwin* )
39504 THREAD_OPTS=""
39505 ;;
39506 *-*-aix*)
39507 THREAD_OPTS="pthreads"
39508 ;;
39509 *-hp-hpux* )
00421666
MW
39510 if test "x$GCC" = "xyes"; then
39511 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
39512 THREAD_OPTS=""
39513 else
0093c2fc 39514 THREAD_OPTS="-mt"
a848cd7e
SC
39515 fi
39516 ;;
39517
39518 *-*-irix* )
39519 if test "x$GCC" = "xyes"; then
39520 THREAD_OPTS=""
39521 fi
39522 ;;
39523
39524 *-*-*UnixWare*)
39525 if test "x$GCC" != "xyes"; then
39526 THREAD_OPTS="-Ethread"
39527 fi
39528 ;;
39529 esac
39530
39531 THREAD_OPTS="$THREAD_OPTS pthread none"
39532
39533 THREADS_OK=no
39534 for flag in $THREAD_OPTS; do
39535 case $flag in
39536 none)
39537 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39538echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
39539 ;;
39540
39541 -*)
39542 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39543echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
9b8888f9 39544 THREADS_CFLAGS="$flag"
a848cd7e
SC
39545 ;;
39546
39547 *)
39548 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39549echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
39550 THREADS_LINK="-l$flag"
39551 ;;
39552 esac
39553
39554 save_LIBS="$LIBS"
9b8888f9 39555 save_CFLAGS="$CFLAGS"
a848cd7e 39556 LIBS="$THREADS_LINK $LIBS"
9b8888f9 39557 CFLAGS="$THREADS_CFLAGS $CFLAGS"
a848cd7e
SC
39558
39559 cat >conftest.$ac_ext <<_ACEOF
39560/* confdefs.h. */
39561_ACEOF
39562cat confdefs.h >>conftest.$ac_ext
39563cat >>conftest.$ac_ext <<_ACEOF
39564/* end confdefs.h. */
39565#include <pthread.h>
39566int
39567main ()
39568{
39569pthread_create(0,0,0,0);
39570 ;
39571 return 0;
39572}
39573_ACEOF
39574rm -f conftest.$ac_objext conftest$ac_exeext
39575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39576 (eval $ac_link) 2>conftest.er1
a848cd7e 39577 ac_status=$?
ac1cb8d3
VS
39578 grep -v '^ *+' conftest.er1 >conftest.err
39579 rm -f conftest.er1
39580 cat conftest.err >&5
a848cd7e
SC
39581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39582 (exit $ac_status); } &&
fd5199d6 39583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39585 (eval $ac_try) 2>&5
39586 ac_status=$?
39587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39588 (exit $ac_status); }; } &&
39589 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39591 (eval $ac_try) 2>&5
39592 ac_status=$?
39593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39594 (exit $ac_status); }; }; then
39595 THREADS_OK=yes
39596else
39597 echo "$as_me: failed program was:" >&5
39598sed 's/^/| /' conftest.$ac_ext >&5
39599
39600fi
ac1cb8d3
VS
39601rm -f conftest.err conftest.$ac_objext \
39602 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39603
39604 LIBS="$save_LIBS"
9b8888f9 39605 CFLAGS="$save_CFLAGS"
a848cd7e
SC
39606
39607 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39608echo "${ECHO_T}$THREADS_OK" >&6
39609 if test "x$THREADS_OK" = "xyes"; then
39610 break;
39611 fi
39612
39613 THREADS_LINK=""
9b8888f9 39614 THREADS_CFLAGS=""
a848cd7e
SC
39615 done
39616
39617 if test "x$THREADS_OK" != "xyes"; then
39618 wxUSE_THREADS=no
39619 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39620echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39621 else
9b8888f9 39622 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
a848cd7e
SC
39623 LIBS="$THREADS_LINK $LIBS"
39624
39625 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39626echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
39627 flag=no
39628 case "${host}" in
39629 *-aix*)
39630 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39631 flag="-D_THREAD_SAFE"
39632 ;;
39633 *-freebsd*)
39634 flag="-D_THREAD_SAFE"
39635 ;;
39636 *-hp-hpux* )
39637 flag="-D_REENTRANT"
39638 if test "x$GCC" != "xyes"; then
39639 flag="$flag -D_RWSTD_MULTI_THREAD"
39640 fi
39641 ;;
39642 *solaris* | alpha*-osf*)
39643 flag="-D_REENTRANT"
39644 ;;
39645 esac
39646 echo "$as_me:$LINENO: result: ${flag}" >&5
39647echo "${ECHO_T}${flag}" >&6
39648 if test "x$flag" != xno; then
9b8888f9 39649 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
a848cd7e
SC
39650 fi
39651
9b8888f9 39652 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
a848cd7e
SC
39653 fi
39654 fi
39655
39656 if test "$wxUSE_THREADS" = "yes" ; then
39657
39658for ac_func in thr_setconcurrency
39659do
39660as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39661echo "$as_me:$LINENO: checking for $ac_func" >&5
39662echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39663if eval "test \"\${$as_ac_var+set}\" = set"; then
39664 echo $ECHO_N "(cached) $ECHO_C" >&6
39665else
39666 cat >conftest.$ac_ext <<_ACEOF
39667/* confdefs.h. */
39668_ACEOF
39669cat confdefs.h >>conftest.$ac_ext
39670cat >>conftest.$ac_ext <<_ACEOF
39671/* end confdefs.h. */
ac1cb8d3
VS
39672/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39674#define $ac_func innocuous_$ac_func
39675
a848cd7e
SC
39676/* System header to define __stub macros and hopefully few prototypes,
39677 which can conflict with char $ac_func (); below.
39678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39679 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39680
a848cd7e
SC
39681#ifdef __STDC__
39682# include <limits.h>
39683#else
39684# include <assert.h>
39685#endif
ac1cb8d3
VS
39686
39687#undef $ac_func
39688
a848cd7e
SC
39689/* Override any gcc2 internal prototype to avoid an error. */
39690#ifdef __cplusplus
39691extern "C"
39692{
39693#endif
39694/* We use char because int might match the return type of a gcc2
39695 builtin and then its argument prototype would still apply. */
39696char $ac_func ();
39697/* The GNU C library defines this for functions which it implements
39698 to always fail with ENOSYS. Some functions are actually named
39699 something starting with __ and the normal name is an alias. */
39700#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39701choke me
39702#else
39703char (*f) () = $ac_func;
39704#endif
39705#ifdef __cplusplus
39706}
39707#endif
39708
39709int
39710main ()
39711{
39712return f != $ac_func;
39713 ;
39714 return 0;
39715}
39716_ACEOF
39717rm -f conftest.$ac_objext conftest$ac_exeext
39718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39719 (eval $ac_link) 2>conftest.er1
a848cd7e 39720 ac_status=$?
ac1cb8d3
VS
39721 grep -v '^ *+' conftest.er1 >conftest.err
39722 rm -f conftest.er1
39723 cat conftest.err >&5
a848cd7e
SC
39724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39725 (exit $ac_status); } &&
fd5199d6 39726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39728 (eval $ac_try) 2>&5
39729 ac_status=$?
39730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39731 (exit $ac_status); }; } &&
39732 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39734 (eval $ac_try) 2>&5
39735 ac_status=$?
39736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39737 (exit $ac_status); }; }; then
39738 eval "$as_ac_var=yes"
39739else
39740 echo "$as_me: failed program was:" >&5
39741sed 's/^/| /' conftest.$ac_ext >&5
39742
39743eval "$as_ac_var=no"
39744fi
ac1cb8d3
VS
39745rm -f conftest.err conftest.$ac_objext \
39746 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39747fi
39748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39749echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39750if test `eval echo '${'$as_ac_var'}'` = yes; then
39751 cat >>confdefs.h <<_ACEOF
39752#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39753_ACEOF
39754
39755fi
39756done
39757
39758
6ebeb4c7
VZ
39759 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39760echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
39761if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39762 echo $ECHO_N "(cached) $ECHO_C" >&6
39763else
39764
39765 cat >conftest.$ac_ext <<_ACEOF
39766/* confdefs.h. */
39767_ACEOF
39768cat confdefs.h >>conftest.$ac_ext
39769cat >>conftest.$ac_ext <<_ACEOF
39770/* end confdefs.h. */
39771#include <pthread.h>
39772 void ThreadCleanupFunc(void *p);
39773
39774int
39775main ()
39776{
39777
39778 void *p;
39779 pthread_cleanup_push(ThreadCleanupFunc, p);
39780 pthread_cleanup_pop(0);
39781
39782 ;
39783 return 0;
39784}
39785_ACEOF
39786rm -f conftest.$ac_objext
39787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39788 (eval $ac_compile) 2>conftest.er1
39789 ac_status=$?
39790 grep -v '^ *+' conftest.er1 >conftest.err
39791 rm -f conftest.er1
39792 cat conftest.err >&5
39793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39794 (exit $ac_status); } &&
fd5199d6 39795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
39796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39797 (eval $ac_try) 2>&5
39798 ac_status=$?
39799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39800 (exit $ac_status); }; } &&
39801 { ac_try='test -s conftest.$ac_objext'
39802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39803 (eval $ac_try) 2>&5
39804 ac_status=$?
39805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39806 (exit $ac_status); }; }; then
39807
39808 wx_cv_func_pthread_cleanup=yes
39809
39810else
39811 echo "$as_me: failed program was:" >&5
39812sed 's/^/| /' conftest.$ac_ext >&5
39813
39814
39815 wx_cv_func_pthread_cleanup=no
39816
39817
39818fi
39819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39820
39821fi
39822echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39823echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
39824 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39825 cat >>confdefs.h <<\_ACEOF
39826#define wxHAVE_PTHREAD_CLEANUP 1
39827_ACEOF
39828
39829 fi
39830
a848cd7e
SC
39831
39832for ac_header in sched.h
39833do
39834as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39835if eval "test \"\${$as_ac_Header+set}\" = set"; then
39836 echo "$as_me:$LINENO: checking for $ac_header" >&5
39837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39838if eval "test \"\${$as_ac_Header+set}\" = set"; then
39839 echo $ECHO_N "(cached) $ECHO_C" >&6
39840fi
39841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39843else
39844 # Is the header compilable?
39845echo "$as_me:$LINENO: checking $ac_header usability" >&5
39846echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39847cat >conftest.$ac_ext <<_ACEOF
39848/* confdefs.h. */
39849_ACEOF
39850cat confdefs.h >>conftest.$ac_ext
39851cat >>conftest.$ac_ext <<_ACEOF
39852/* end confdefs.h. */
39853$ac_includes_default
39854#include <$ac_header>
39855_ACEOF
39856rm -f conftest.$ac_objext
39857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39858 (eval $ac_compile) 2>conftest.er1
a848cd7e 39859 ac_status=$?
ac1cb8d3
VS
39860 grep -v '^ *+' conftest.er1 >conftest.err
39861 rm -f conftest.er1
39862 cat conftest.err >&5
a848cd7e
SC
39863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39864 (exit $ac_status); } &&
fd5199d6 39865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39867 (eval $ac_try) 2>&5
39868 ac_status=$?
39869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39870 (exit $ac_status); }; } &&
39871 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39873 (eval $ac_try) 2>&5
39874 ac_status=$?
39875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39876 (exit $ac_status); }; }; then
39877 ac_header_compiler=yes
39878else
39879 echo "$as_me: failed program was:" >&5
39880sed 's/^/| /' conftest.$ac_ext >&5
39881
39882ac_header_compiler=no
39883fi
ac1cb8d3 39884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39885echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39886echo "${ECHO_T}$ac_header_compiler" >&6
39887
39888# Is the header present?
39889echo "$as_me:$LINENO: checking $ac_header presence" >&5
39890echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39891cat >conftest.$ac_ext <<_ACEOF
39892/* confdefs.h. */
39893_ACEOF
39894cat confdefs.h >>conftest.$ac_ext
39895cat >>conftest.$ac_ext <<_ACEOF
39896/* end confdefs.h. */
39897#include <$ac_header>
39898_ACEOF
39899if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39901 ac_status=$?
39902 grep -v '^ *+' conftest.er1 >conftest.err
39903 rm -f conftest.er1
39904 cat conftest.err >&5
39905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39906 (exit $ac_status); } >/dev/null; then
39907 if test -s conftest.err; then
fd5199d6
VZ
39908 ac_cpp_err=$ac_c_preproc_warn_flag
39909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39910 else
39911 ac_cpp_err=
39912 fi
39913else
39914 ac_cpp_err=yes
39915fi
39916if test -z "$ac_cpp_err"; then
39917 ac_header_preproc=yes
39918else
39919 echo "$as_me: failed program was:" >&5
39920sed 's/^/| /' conftest.$ac_ext >&5
39921
39922 ac_header_preproc=no
39923fi
39924rm -f conftest.err conftest.$ac_ext
39925echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39926echo "${ECHO_T}$ac_header_preproc" >&6
39927
39928# So? What about this header?
fd5199d6 39929case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 39930 yes:no: )
a848cd7e
SC
39931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39932echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39934echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39935 ac_header_preproc=yes
a848cd7e 39936 ;;
ac1cb8d3 39937 no:yes:* )
a848cd7e
SC
39938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39939echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39941echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39943echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39945echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39947echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39949echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39950 (
39951 cat <<\_ASBOX
ac1cb8d3
VS
39952## ----------------------------------------- ##
39953## Report this to wx-dev@lists.wxwidgets.org ##
39954## ----------------------------------------- ##
a848cd7e
SC
39955_ASBOX
39956 ) |
39957 sed "s/^/$as_me: WARNING: /" >&2
39958 ;;
39959esac
39960echo "$as_me:$LINENO: checking for $ac_header" >&5
39961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39962if eval "test \"\${$as_ac_Header+set}\" = set"; then
39963 echo $ECHO_N "(cached) $ECHO_C" >&6
39964else
ac1cb8d3 39965 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39966fi
39967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39968echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39969
39970fi
39971if test `eval echo '${'$as_ac_Header'}'` = yes; then
39972 cat >>confdefs.h <<_ACEOF
39973#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39974_ACEOF
39975
39976fi
39977
39978done
39979
39980 if test "$ac_cv_header_sched_h" = "yes"; then
39981 echo "$as_me:$LINENO: checking for sched_yield" >&5
39982echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
39983if test "${ac_cv_func_sched_yield+set}" = set; then
39984 echo $ECHO_N "(cached) $ECHO_C" >&6
39985else
39986 cat >conftest.$ac_ext <<_ACEOF
39987/* confdefs.h. */
39988_ACEOF
39989cat confdefs.h >>conftest.$ac_ext
39990cat >>conftest.$ac_ext <<_ACEOF
39991/* end confdefs.h. */
ac1cb8d3
VS
39992/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39994#define sched_yield innocuous_sched_yield
39995
a848cd7e
SC
39996/* System header to define __stub macros and hopefully few prototypes,
39997 which can conflict with char sched_yield (); below.
39998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39999 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40000
a848cd7e
SC
40001#ifdef __STDC__
40002# include <limits.h>
40003#else
40004# include <assert.h>
40005#endif
ac1cb8d3
VS
40006
40007#undef sched_yield
40008
a848cd7e
SC
40009/* Override any gcc2 internal prototype to avoid an error. */
40010#ifdef __cplusplus
40011extern "C"
40012{
40013#endif
40014/* We use char because int might match the return type of a gcc2
40015 builtin and then its argument prototype would still apply. */
40016char sched_yield ();
40017/* The GNU C library defines this for functions which it implements
40018 to always fail with ENOSYS. Some functions are actually named
40019 something starting with __ and the normal name is an alias. */
40020#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
40021choke me
40022#else
40023char (*f) () = sched_yield;
40024#endif
40025#ifdef __cplusplus
40026}
40027#endif
40028
40029int
40030main ()
40031{
40032return f != sched_yield;
40033 ;
40034 return 0;
40035}
40036_ACEOF
40037rm -f conftest.$ac_objext conftest$ac_exeext
40038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40039 (eval $ac_link) 2>conftest.er1
a848cd7e 40040 ac_status=$?
ac1cb8d3
VS
40041 grep -v '^ *+' conftest.er1 >conftest.err
40042 rm -f conftest.er1
40043 cat conftest.err >&5
a848cd7e
SC
40044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40045 (exit $ac_status); } &&
fd5199d6 40046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40048 (eval $ac_try) 2>&5
40049 ac_status=$?
40050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40051 (exit $ac_status); }; } &&
40052 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40054 (eval $ac_try) 2>&5
40055 ac_status=$?
40056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40057 (exit $ac_status); }; }; then
40058 ac_cv_func_sched_yield=yes
40059else
40060 echo "$as_me: failed program was:" >&5
40061sed 's/^/| /' conftest.$ac_ext >&5
40062
40063ac_cv_func_sched_yield=no
40064fi
ac1cb8d3
VS
40065rm -f conftest.err conftest.$ac_objext \
40066 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40067fi
40068echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
40069echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
40070if test $ac_cv_func_sched_yield = yes; then
40071 cat >>confdefs.h <<\_ACEOF
40072#define HAVE_SCHED_YIELD 1
40073_ACEOF
40074
40075else
40076
40077 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
40078echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
40079if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
40080 echo $ECHO_N "(cached) $ECHO_C" >&6
40081else
40082 ac_check_lib_save_LIBS=$LIBS
40083LIBS="-lposix4 $LIBS"
40084cat >conftest.$ac_ext <<_ACEOF
40085/* confdefs.h. */
40086_ACEOF
40087cat confdefs.h >>conftest.$ac_ext
40088cat >>conftest.$ac_ext <<_ACEOF
40089/* end confdefs.h. */
40090
40091/* Override any gcc2 internal prototype to avoid an error. */
40092#ifdef __cplusplus
40093extern "C"
40094#endif
40095/* We use char because int might match the return type of a gcc2
40096 builtin and then its argument prototype would still apply. */
40097char sched_yield ();
40098int
40099main ()
40100{
40101sched_yield ();
40102 ;
40103 return 0;
40104}
40105_ACEOF
40106rm -f conftest.$ac_objext conftest$ac_exeext
40107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40108 (eval $ac_link) 2>conftest.er1
a848cd7e 40109 ac_status=$?
ac1cb8d3
VS
40110 grep -v '^ *+' conftest.er1 >conftest.err
40111 rm -f conftest.er1
40112 cat conftest.err >&5
a848cd7e
SC
40113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40114 (exit $ac_status); } &&
fd5199d6 40115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40117 (eval $ac_try) 2>&5
40118 ac_status=$?
40119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40120 (exit $ac_status); }; } &&
40121 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40123 (eval $ac_try) 2>&5
40124 ac_status=$?
40125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40126 (exit $ac_status); }; }; then
40127 ac_cv_lib_posix4_sched_yield=yes
40128else
40129 echo "$as_me: failed program was:" >&5
40130sed 's/^/| /' conftest.$ac_ext >&5
40131
40132ac_cv_lib_posix4_sched_yield=no
40133fi
ac1cb8d3
VS
40134rm -f conftest.err conftest.$ac_objext \
40135 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40136LIBS=$ac_check_lib_save_LIBS
40137fi
40138echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
40139echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
40140if test $ac_cv_lib_posix4_sched_yield = yes; then
40141 cat >>confdefs.h <<\_ACEOF
40142#define HAVE_SCHED_YIELD 1
40143_ACEOF
40144 POSIX4_LINK=" -lposix4"
40145else
40146 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
40147echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
40148
40149fi
40150
40151
40152
40153fi
40154
40155 fi
40156
40157 HAVE_PRIOR_FUNCS=0
40158 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
40159echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
40160if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
40161 echo $ECHO_N "(cached) $ECHO_C" >&6
40162else
40163 cat >conftest.$ac_ext <<_ACEOF
40164/* confdefs.h. */
40165_ACEOF
40166cat confdefs.h >>conftest.$ac_ext
40167cat >>conftest.$ac_ext <<_ACEOF
40168/* end confdefs.h. */
ac1cb8d3
VS
40169/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
40170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40171#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
40172
a848cd7e
SC
40173/* System header to define __stub macros and hopefully few prototypes,
40174 which can conflict with char pthread_attr_getschedpolicy (); below.
40175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40176 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40177
a848cd7e
SC
40178#ifdef __STDC__
40179# include <limits.h>
40180#else
40181# include <assert.h>
40182#endif
ac1cb8d3
VS
40183
40184#undef pthread_attr_getschedpolicy
40185
a848cd7e
SC
40186/* Override any gcc2 internal prototype to avoid an error. */
40187#ifdef __cplusplus
40188extern "C"
40189{
40190#endif
40191/* We use char because int might match the return type of a gcc2
40192 builtin and then its argument prototype would still apply. */
40193char pthread_attr_getschedpolicy ();
40194/* The GNU C library defines this for functions which it implements
40195 to always fail with ENOSYS. Some functions are actually named
40196 something starting with __ and the normal name is an alias. */
40197#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
40198choke me
40199#else
40200char (*f) () = pthread_attr_getschedpolicy;
40201#endif
40202#ifdef __cplusplus
40203}
40204#endif
40205
40206int
40207main ()
40208{
40209return f != pthread_attr_getschedpolicy;
40210 ;
40211 return 0;
40212}
40213_ACEOF
40214rm -f conftest.$ac_objext conftest$ac_exeext
40215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40216 (eval $ac_link) 2>conftest.er1
a848cd7e 40217 ac_status=$?
ac1cb8d3
VS
40218 grep -v '^ *+' conftest.er1 >conftest.err
40219 rm -f conftest.er1
40220 cat conftest.err >&5
a848cd7e
SC
40221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40222 (exit $ac_status); } &&
fd5199d6 40223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40225 (eval $ac_try) 2>&5
40226 ac_status=$?
40227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40228 (exit $ac_status); }; } &&
40229 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40231 (eval $ac_try) 2>&5
40232 ac_status=$?
40233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40234 (exit $ac_status); }; }; then
40235 ac_cv_func_pthread_attr_getschedpolicy=yes
40236else
40237 echo "$as_me: failed program was:" >&5
40238sed 's/^/| /' conftest.$ac_ext >&5
40239
40240ac_cv_func_pthread_attr_getschedpolicy=no
40241fi
ac1cb8d3
VS
40242rm -f conftest.err conftest.$ac_objext \
40243 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40244fi
40245echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
40246echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
40247if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
40248 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
40249echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
40250if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
40251 echo $ECHO_N "(cached) $ECHO_C" >&6
40252else
40253 cat >conftest.$ac_ext <<_ACEOF
40254/* confdefs.h. */
40255_ACEOF
40256cat confdefs.h >>conftest.$ac_ext
40257cat >>conftest.$ac_ext <<_ACEOF
40258/* end confdefs.h. */
ac1cb8d3
VS
40259/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
40260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40261#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
40262
a848cd7e
SC
40263/* System header to define __stub macros and hopefully few prototypes,
40264 which can conflict with char pthread_attr_setschedparam (); below.
40265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40266 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40267
a848cd7e
SC
40268#ifdef __STDC__
40269# include <limits.h>
40270#else
40271# include <assert.h>
40272#endif
ac1cb8d3
VS
40273
40274#undef pthread_attr_setschedparam
40275
a848cd7e
SC
40276/* Override any gcc2 internal prototype to avoid an error. */
40277#ifdef __cplusplus
40278extern "C"
40279{
40280#endif
40281/* We use char because int might match the return type of a gcc2
40282 builtin and then its argument prototype would still apply. */
40283char pthread_attr_setschedparam ();
40284/* The GNU C library defines this for functions which it implements
40285 to always fail with ENOSYS. Some functions are actually named
40286 something starting with __ and the normal name is an alias. */
40287#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
40288choke me
40289#else
40290char (*f) () = pthread_attr_setschedparam;
40291#endif
40292#ifdef __cplusplus
40293}
40294#endif
40295
40296int
40297main ()
40298{
40299return f != pthread_attr_setschedparam;
40300 ;
40301 return 0;
40302}
40303_ACEOF
40304rm -f conftest.$ac_objext conftest$ac_exeext
40305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40306 (eval $ac_link) 2>conftest.er1
a848cd7e 40307 ac_status=$?
ac1cb8d3
VS
40308 grep -v '^ *+' conftest.er1 >conftest.err
40309 rm -f conftest.er1
40310 cat conftest.err >&5
a848cd7e
SC
40311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40312 (exit $ac_status); } &&
fd5199d6 40313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40315 (eval $ac_try) 2>&5
40316 ac_status=$?
40317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40318 (exit $ac_status); }; } &&
40319 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40321 (eval $ac_try) 2>&5
40322 ac_status=$?
40323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40324 (exit $ac_status); }; }; then
40325 ac_cv_func_pthread_attr_setschedparam=yes
40326else
40327 echo "$as_me: failed program was:" >&5
40328sed 's/^/| /' conftest.$ac_ext >&5
40329
40330ac_cv_func_pthread_attr_setschedparam=no
40331fi
ac1cb8d3
VS
40332rm -f conftest.err conftest.$ac_objext \
40333 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40334fi
40335echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
40336echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
40337if test $ac_cv_func_pthread_attr_setschedparam = yes; then
40338 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
40339echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
40340if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
40341 echo $ECHO_N "(cached) $ECHO_C" >&6
40342else
40343 cat >conftest.$ac_ext <<_ACEOF
40344/* confdefs.h. */
40345_ACEOF
40346cat confdefs.h >>conftest.$ac_ext
40347cat >>conftest.$ac_ext <<_ACEOF
40348/* end confdefs.h. */
ac1cb8d3
VS
40349/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
40350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40351#define sched_get_priority_max innocuous_sched_get_priority_max
40352
a848cd7e
SC
40353/* System header to define __stub macros and hopefully few prototypes,
40354 which can conflict with char sched_get_priority_max (); below.
40355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40356 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40357
a848cd7e
SC
40358#ifdef __STDC__
40359# include <limits.h>
40360#else
40361# include <assert.h>
40362#endif
ac1cb8d3
VS
40363
40364#undef sched_get_priority_max
40365
a848cd7e
SC
40366/* Override any gcc2 internal prototype to avoid an error. */
40367#ifdef __cplusplus
40368extern "C"
40369{
40370#endif
40371/* We use char because int might match the return type of a gcc2
40372 builtin and then its argument prototype would still apply. */
40373char sched_get_priority_max ();
40374/* The GNU C library defines this for functions which it implements
40375 to always fail with ENOSYS. Some functions are actually named
40376 something starting with __ and the normal name is an alias. */
40377#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
40378choke me
40379#else
40380char (*f) () = sched_get_priority_max;
40381#endif
40382#ifdef __cplusplus
40383}
40384#endif
40385
40386int
40387main ()
40388{
40389return f != sched_get_priority_max;
40390 ;
40391 return 0;
40392}
40393_ACEOF
40394rm -f conftest.$ac_objext conftest$ac_exeext
40395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40396 (eval $ac_link) 2>conftest.er1
a848cd7e 40397 ac_status=$?
ac1cb8d3
VS
40398 grep -v '^ *+' conftest.er1 >conftest.err
40399 rm -f conftest.er1
40400 cat conftest.err >&5
a848cd7e
SC
40401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40402 (exit $ac_status); } &&
fd5199d6 40403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40405 (eval $ac_try) 2>&5
40406 ac_status=$?
40407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40408 (exit $ac_status); }; } &&
40409 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40411 (eval $ac_try) 2>&5
40412 ac_status=$?
40413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40414 (exit $ac_status); }; }; then
40415 ac_cv_func_sched_get_priority_max=yes
40416else
40417 echo "$as_me: failed program was:" >&5
40418sed 's/^/| /' conftest.$ac_ext >&5
40419
40420ac_cv_func_sched_get_priority_max=no
40421fi
ac1cb8d3
VS
40422rm -f conftest.err conftest.$ac_objext \
40423 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40424fi
40425echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
40426echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
40427if test $ac_cv_func_sched_get_priority_max = yes; then
40428 HAVE_PRIOR_FUNCS=1
40429else
40430 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
40431echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
40432if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
40433 echo $ECHO_N "(cached) $ECHO_C" >&6
40434else
40435 ac_check_lib_save_LIBS=$LIBS
40436LIBS="-lposix4 $LIBS"
40437cat >conftest.$ac_ext <<_ACEOF
40438/* confdefs.h. */
40439_ACEOF
40440cat confdefs.h >>conftest.$ac_ext
40441cat >>conftest.$ac_ext <<_ACEOF
40442/* end confdefs.h. */
40443
40444/* Override any gcc2 internal prototype to avoid an error. */
40445#ifdef __cplusplus
40446extern "C"
40447#endif
40448/* We use char because int might match the return type of a gcc2
40449 builtin and then its argument prototype would still apply. */
40450char sched_get_priority_max ();
40451int
40452main ()
40453{
40454sched_get_priority_max ();
40455 ;
40456 return 0;
40457}
40458_ACEOF
40459rm -f conftest.$ac_objext conftest$ac_exeext
40460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40461 (eval $ac_link) 2>conftest.er1
a848cd7e 40462 ac_status=$?
ac1cb8d3
VS
40463 grep -v '^ *+' conftest.er1 >conftest.err
40464 rm -f conftest.er1
40465 cat conftest.err >&5
a848cd7e
SC
40466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40467 (exit $ac_status); } &&
fd5199d6 40468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40470 (eval $ac_try) 2>&5
40471 ac_status=$?
40472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40473 (exit $ac_status); }; } &&
40474 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40476 (eval $ac_try) 2>&5
40477 ac_status=$?
40478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40479 (exit $ac_status); }; }; then
40480 ac_cv_lib_posix4_sched_get_priority_max=yes
40481else
40482 echo "$as_me: failed program was:" >&5
40483sed 's/^/| /' conftest.$ac_ext >&5
40484
40485ac_cv_lib_posix4_sched_get_priority_max=no
40486fi
ac1cb8d3
VS
40487rm -f conftest.err conftest.$ac_objext \
40488 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40489LIBS=$ac_check_lib_save_LIBS
40490fi
40491echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
40492echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
40493if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
40494
40495 HAVE_PRIOR_FUNCS=1
40496 POSIX4_LINK=" -lposix4"
40497
40498fi
40499
40500
40501fi
40502
40503
40504fi
40505
40506
40507fi
40508
40509
40510 if test "$HAVE_PRIOR_FUNCS" = 1; then
40511 cat >>confdefs.h <<\_ACEOF
40512#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
40513_ACEOF
40514
40515 else
40516 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
40517echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
40518 fi
40519
40520 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
40521echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
40522if test "${ac_cv_func_pthread_cancel+set}" = set; then
40523 echo $ECHO_N "(cached) $ECHO_C" >&6
40524else
40525 cat >conftest.$ac_ext <<_ACEOF
40526/* confdefs.h. */
40527_ACEOF
40528cat confdefs.h >>conftest.$ac_ext
40529cat >>conftest.$ac_ext <<_ACEOF
40530/* end confdefs.h. */
ac1cb8d3
VS
40531/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
40532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40533#define pthread_cancel innocuous_pthread_cancel
40534
a848cd7e
SC
40535/* System header to define __stub macros and hopefully few prototypes,
40536 which can conflict with char pthread_cancel (); below.
40537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40538 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40539
a848cd7e
SC
40540#ifdef __STDC__
40541# include <limits.h>
40542#else
40543# include <assert.h>
40544#endif
ac1cb8d3
VS
40545
40546#undef pthread_cancel
40547
a848cd7e
SC
40548/* Override any gcc2 internal prototype to avoid an error. */
40549#ifdef __cplusplus
40550extern "C"
40551{
40552#endif
40553/* We use char because int might match the return type of a gcc2
40554 builtin and then its argument prototype would still apply. */
40555char pthread_cancel ();
40556/* The GNU C library defines this for functions which it implements
40557 to always fail with ENOSYS. Some functions are actually named
40558 something starting with __ and the normal name is an alias. */
40559#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
40560choke me
40561#else
40562char (*f) () = pthread_cancel;
40563#endif
40564#ifdef __cplusplus
40565}
40566#endif
40567
40568int
40569main ()
40570{
40571return f != pthread_cancel;
40572 ;
40573 return 0;
40574}
40575_ACEOF
40576rm -f conftest.$ac_objext conftest$ac_exeext
40577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40578 (eval $ac_link) 2>conftest.er1
a848cd7e 40579 ac_status=$?
ac1cb8d3
VS
40580 grep -v '^ *+' conftest.er1 >conftest.err
40581 rm -f conftest.er1
40582 cat conftest.err >&5
a848cd7e
SC
40583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40584 (exit $ac_status); } &&
fd5199d6 40585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40587 (eval $ac_try) 2>&5
40588 ac_status=$?
40589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40590 (exit $ac_status); }; } &&
40591 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40593 (eval $ac_try) 2>&5
40594 ac_status=$?
40595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40596 (exit $ac_status); }; }; then
40597 ac_cv_func_pthread_cancel=yes
40598else
40599 echo "$as_me: failed program was:" >&5
40600sed 's/^/| /' conftest.$ac_ext >&5
40601
40602ac_cv_func_pthread_cancel=no
40603fi
ac1cb8d3
VS
40604rm -f conftest.err conftest.$ac_objext \
40605 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40606fi
40607echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
40608echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
40609if test $ac_cv_func_pthread_cancel = yes; then
40610 cat >>confdefs.h <<\_ACEOF
40611#define HAVE_PTHREAD_CANCEL 1
40612_ACEOF
40613
40614else
40615 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
40616echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
40617fi
40618
40619
abc736fd
MW
40620 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40621echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
40622if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40623 echo $ECHO_N "(cached) $ECHO_C" >&6
40624else
40625 cat >conftest.$ac_ext <<_ACEOF
40626/* confdefs.h. */
40627_ACEOF
40628cat confdefs.h >>conftest.$ac_ext
40629cat >>conftest.$ac_ext <<_ACEOF
40630/* end confdefs.h. */
40631/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40633#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40634
40635/* System header to define __stub macros and hopefully few prototypes,
40636 which can conflict with char pthread_attr_setstacksize (); below.
40637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40638 <limits.h> exists even on freestanding compilers. */
40639
40640#ifdef __STDC__
40641# include <limits.h>
40642#else
40643# include <assert.h>
40644#endif
40645
40646#undef pthread_attr_setstacksize
40647
40648/* Override any gcc2 internal prototype to avoid an error. */
40649#ifdef __cplusplus
40650extern "C"
40651{
40652#endif
40653/* We use char because int might match the return type of a gcc2
40654 builtin and then its argument prototype would still apply. */
40655char pthread_attr_setstacksize ();
40656/* The GNU C library defines this for functions which it implements
40657 to always fail with ENOSYS. Some functions are actually named
40658 something starting with __ and the normal name is an alias. */
40659#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
40660choke me
40661#else
40662char (*f) () = pthread_attr_setstacksize;
40663#endif
40664#ifdef __cplusplus
40665}
40666#endif
40667
40668int
40669main ()
40670{
40671return f != pthread_attr_setstacksize;
40672 ;
40673 return 0;
40674}
40675_ACEOF
40676rm -f conftest.$ac_objext conftest$ac_exeext
40677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40678 (eval $ac_link) 2>conftest.er1
40679 ac_status=$?
40680 grep -v '^ *+' conftest.er1 >conftest.err
40681 rm -f conftest.er1
40682 cat conftest.err >&5
40683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40684 (exit $ac_status); } &&
fd5199d6 40685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
40686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40687 (eval $ac_try) 2>&5
40688 ac_status=$?
40689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40690 (exit $ac_status); }; } &&
40691 { ac_try='test -s conftest$ac_exeext'
40692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40693 (eval $ac_try) 2>&5
40694 ac_status=$?
40695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40696 (exit $ac_status); }; }; then
40697 ac_cv_func_pthread_attr_setstacksize=yes
40698else
40699 echo "$as_me: failed program was:" >&5
40700sed 's/^/| /' conftest.$ac_ext >&5
40701
40702ac_cv_func_pthread_attr_setstacksize=no
40703fi
40704rm -f conftest.err conftest.$ac_objext \
40705 conftest$ac_exeext conftest.$ac_ext
40706fi
40707echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40708echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
40709if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40710 cat >>confdefs.h <<\_ACEOF
40711#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40712_ACEOF
40713
40714fi
40715
a848cd7e
SC
40716
40717
40718 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40719echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
40720if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40721 echo $ECHO_N "(cached) $ECHO_C" >&6
40722else
40723
40724 cat >conftest.$ac_ext <<_ACEOF
40725/* confdefs.h. */
40726_ACEOF
40727cat confdefs.h >>conftest.$ac_ext
40728cat >>conftest.$ac_ext <<_ACEOF
40729/* end confdefs.h. */
40730#include <pthread.h>
40731int
40732main ()
40733{
40734
40735 pthread_mutexattr_t attr;
40736 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40737
40738 ;
40739 return 0;
40740}
40741_ACEOF
40742rm -f conftest.$ac_objext
40743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40744 (eval $ac_compile) 2>conftest.er1
a848cd7e 40745 ac_status=$?
ac1cb8d3
VS
40746 grep -v '^ *+' conftest.er1 >conftest.err
40747 rm -f conftest.er1
40748 cat conftest.err >&5
a848cd7e
SC
40749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40750 (exit $ac_status); } &&
fd5199d6 40751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40753 (eval $ac_try) 2>&5
40754 ac_status=$?
40755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40756 (exit $ac_status); }; } &&
40757 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40759 (eval $ac_try) 2>&5
40760 ac_status=$?
40761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40762 (exit $ac_status); }; }; then
123dca7d 40763 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
40764else
40765 echo "$as_me: failed program was:" >&5
40766sed 's/^/| /' conftest.$ac_ext >&5
40767
123dca7d 40768wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
40769
40770fi
ac1cb8d3 40771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40772
40773fi
40774echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40775echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
40776
40777 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40778 cat >>confdefs.h <<\_ACEOF
40779#define HAVE_PTHREAD_MUTEXATTR_T 1
40780_ACEOF
40781
123dca7d
VZ
40782
40783 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40784echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
40785if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40786 echo $ECHO_N "(cached) $ECHO_C" >&6
40787else
40788
40789 cat >conftest.$ac_ext <<_ACEOF
40790/* confdefs.h. */
40791_ACEOF
40792cat confdefs.h >>conftest.$ac_ext
40793cat >>conftest.$ac_ext <<_ACEOF
40794/* end confdefs.h. */
40795#include <pthread.h>
40796int
40797main ()
40798{
40799
40800 pthread_mutexattr_t attr;
40801 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40802
40803 ;
40804 return 0;
40805}
40806_ACEOF
40807rm -f conftest.$ac_objext
40808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40809 (eval $ac_compile) 2>conftest.er1
40810 ac_status=$?
40811 grep -v '^ *+' conftest.er1 >conftest.err
40812 rm -f conftest.er1
40813 cat conftest.err >&5
40814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40815 (exit $ac_status); } &&
fd5199d6 40816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
40817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40818 (eval $ac_try) 2>&5
40819 ac_status=$?
40820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40821 (exit $ac_status); }; } &&
40822 { ac_try='test -s conftest.$ac_objext'
40823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40824 (eval $ac_try) 2>&5
40825 ac_status=$?
40826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40827 (exit $ac_status); }; }; then
40828 wx_cv_func_pthread_mutexattr_settype_decl=yes
40829else
40830 echo "$as_me: failed program was:" >&5
40831sed 's/^/| /' conftest.$ac_ext >&5
40832
40833wx_cv_func_pthread_mutexattr_settype_decl=no
40834
40835fi
40836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40837
40838fi
40839echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40840echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
40841 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40842 cat >>confdefs.h <<\_ACEOF
40843#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40844_ACEOF
40845
40846 fi
a848cd7e
SC
40847 else
40848 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40849echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
40850if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40851 echo $ECHO_N "(cached) $ECHO_C" >&6
40852else
40853
40854 cat >conftest.$ac_ext <<_ACEOF
40855/* confdefs.h. */
40856_ACEOF
40857cat confdefs.h >>conftest.$ac_ext
40858cat >>conftest.$ac_ext <<_ACEOF
40859/* end confdefs.h. */
40860#include <pthread.h>
40861int
40862main ()
40863{
40864
40865 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40866
40867 ;
40868 return 0;
40869}
40870_ACEOF
40871rm -f conftest.$ac_objext
40872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40873 (eval $ac_compile) 2>conftest.er1
a848cd7e 40874 ac_status=$?
ac1cb8d3
VS
40875 grep -v '^ *+' conftest.er1 >conftest.err
40876 rm -f conftest.er1
40877 cat conftest.err >&5
a848cd7e
SC
40878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40879 (exit $ac_status); } &&
fd5199d6 40880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40882 (eval $ac_try) 2>&5
40883 ac_status=$?
40884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40885 (exit $ac_status); }; } &&
40886 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40888 (eval $ac_try) 2>&5
40889 ac_status=$?
40890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40891 (exit $ac_status); }; }; then
40892
40893 wx_cv_type_pthread_rec_mutex_init=yes
40894
40895else
40896 echo "$as_me: failed program was:" >&5
40897sed 's/^/| /' conftest.$ac_ext >&5
40898
40899
40900 wx_cv_type_pthread_rec_mutex_init=no
40901
40902
40903fi
ac1cb8d3 40904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40905
40906fi
40907echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40908echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
40909 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40910 cat >>confdefs.h <<\_ACEOF
40911#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40912_ACEOF
40913
40914 else
40915 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40916echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40917 fi
40918 fi
40919 fi
40920
40921else
40922 if test "$wxUSE_THREADS" = "yes" ; then
40923 case "${host}" in
40924 *-*-mingw32* )
40925 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40926echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
40927if test "${wx_cv_cflags_mthread+set}" = set; then
40928 echo $ECHO_N "(cached) $ECHO_C" >&6
40929else
40930
9b8888f9
VZ
40931 CFLAGS_OLD="$CFLAGS"
40932 CFLAGS="-mthreads $CFLAGS"
a848cd7e
SC
40933 cat >conftest.$ac_ext <<_ACEOF
40934/* confdefs.h. */
40935_ACEOF
40936cat confdefs.h >>conftest.$ac_ext
40937cat >>conftest.$ac_ext <<_ACEOF
40938/* end confdefs.h. */
40939
40940int
40941main ()
40942{
40943
40944 ;
40945 return 0;
40946}
40947_ACEOF
40948rm -f conftest.$ac_objext
40949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40950 (eval $ac_compile) 2>conftest.er1
a848cd7e 40951 ac_status=$?
ac1cb8d3
VS
40952 grep -v '^ *+' conftest.er1 >conftest.err
40953 rm -f conftest.er1
40954 cat conftest.err >&5
a848cd7e
SC
40955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40956 (exit $ac_status); } &&
fd5199d6 40957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40959 (eval $ac_try) 2>&5
40960 ac_status=$?
40961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40962 (exit $ac_status); }; } &&
40963 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40965 (eval $ac_try) 2>&5
40966 ac_status=$?
40967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40968 (exit $ac_status); }; }; then
40969 wx_cv_cflags_mthread=yes
40970else
40971 echo "$as_me: failed program was:" >&5
40972sed 's/^/| /' conftest.$ac_ext >&5
40973
40974wx_cv_cflags_mthread=no
40975
40976fi
ac1cb8d3 40977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40978
40979
40980fi
40981echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40982echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
40983
40984 if test "$wx_cv_cflags_mthread" = "yes"; then
9b8888f9 40985 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
a848cd7e
SC
40986 LDFLAGS="$LDFLAGS -mthreads"
40987 else
9b8888f9 40988 CFLAGS="$CFLAGS_OLD"
a848cd7e
SC
40989 fi
40990 ;;
40991 *-pc-os2*emx )
5ff751d6 40992 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
40993 LDFLAGS="$LDFLAGS -Zmt"
40994 ;;
40995 esac
40996 fi
40997fi
40998
004ee6da
RL
40999echo "$as_me:$LINENO: checking for localtime_r" >&5
41000echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
41001if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
41002 echo $ECHO_N "(cached) $ECHO_C" >&6
41003else
41004 cat >conftest.$ac_ext <<_ACEOF
41005/* confdefs.h. */
41006_ACEOF
41007cat confdefs.h >>conftest.$ac_ext
41008cat >>conftest.$ac_ext <<_ACEOF
41009/* end confdefs.h. */
004ee6da 41010/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 41011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 41012#define localtime_r innocuous_localtime_r
ac1cb8d3 41013
a848cd7e 41014/* System header to define __stub macros and hopefully few prototypes,
004ee6da 41015 which can conflict with char localtime_r (); below.
a848cd7e
SC
41016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41017 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41018
a848cd7e
SC
41019#ifdef __STDC__
41020# include <limits.h>
41021#else
41022# include <assert.h>
41023#endif
ac1cb8d3 41024
004ee6da 41025#undef localtime_r
ac1cb8d3 41026
a848cd7e
SC
41027/* Override any gcc2 internal prototype to avoid an error. */
41028#ifdef __cplusplus
41029extern "C"
41030{
41031#endif
41032/* We use char because int might match the return type of a gcc2
41033 builtin and then its argument prototype would still apply. */
004ee6da 41034char localtime_r ();
a848cd7e
SC
41035/* The GNU C library defines this for functions which it implements
41036 to always fail with ENOSYS. Some functions are actually named
41037 something starting with __ and the normal name is an alias. */
004ee6da 41038#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
41039choke me
41040#else
004ee6da 41041char (*f) () = localtime_r;
a848cd7e
SC
41042#endif
41043#ifdef __cplusplus
41044}
41045#endif
41046
41047int
41048main ()
41049{
004ee6da
RL
41050return f != localtime_r;
41051 ;
41052 return 0;
41053}
41054_ACEOF
41055rm -f conftest.$ac_objext conftest$ac_exeext
41056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41057 (eval $ac_link) 2>conftest.er1
41058 ac_status=$?
41059 grep -v '^ *+' conftest.er1 >conftest.err
41060 rm -f conftest.er1
41061 cat conftest.err >&5
41062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41063 (exit $ac_status); } &&
fd5199d6 41064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41066 (eval $ac_try) 2>&5
41067 ac_status=$?
41068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41069 (exit $ac_status); }; } &&
41070 { ac_try='test -s conftest$ac_exeext'
41071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41072 (eval $ac_try) 2>&5
41073 ac_status=$?
41074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41075 (exit $ac_status); }; }; then
41076 ac_cv_func_localtime_r=yes
41077else
41078 echo "$as_me: failed program was:" >&5
41079sed 's/^/| /' conftest.$ac_ext >&5
41080
41081ac_cv_func_localtime_r=no
41082fi
41083rm -f conftest.err conftest.$ac_objext \
41084 conftest$ac_exeext conftest.$ac_ext
41085fi
41086echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
41087echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
41088if test $ac_cv_func_localtime_r = yes; then
41089 cat >>confdefs.h <<\_ACEOF
41090#define HAVE_LOCALTIME_R 1
41091_ACEOF
41092
41093fi
41094
41095echo "$as_me:$LINENO: checking for gmtime_r" >&5
41096echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
41097if test "${ac_cv_func_gmtime_r+set}" = set; then
41098 echo $ECHO_N "(cached) $ECHO_C" >&6
41099else
41100 cat >conftest.$ac_ext <<_ACEOF
41101/* confdefs.h. */
41102_ACEOF
41103cat confdefs.h >>conftest.$ac_ext
41104cat >>conftest.$ac_ext <<_ACEOF
41105/* end confdefs.h. */
41106/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
41107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41108#define gmtime_r innocuous_gmtime_r
41109
41110/* System header to define __stub macros and hopefully few prototypes,
41111 which can conflict with char gmtime_r (); below.
41112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41113 <limits.h> exists even on freestanding compilers. */
41114
41115#ifdef __STDC__
41116# include <limits.h>
41117#else
41118# include <assert.h>
41119#endif
41120
41121#undef gmtime_r
41122
41123/* Override any gcc2 internal prototype to avoid an error. */
41124#ifdef __cplusplus
41125extern "C"
41126{
41127#endif
41128/* We use char because int might match the return type of a gcc2
41129 builtin and then its argument prototype would still apply. */
41130char gmtime_r ();
41131/* The GNU C library defines this for functions which it implements
41132 to always fail with ENOSYS. Some functions are actually named
41133 something starting with __ and the normal name is an alias. */
41134#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
41135choke me
41136#else
41137char (*f) () = gmtime_r;
41138#endif
41139#ifdef __cplusplus
41140}
41141#endif
41142
41143int
41144main ()
41145{
41146return f != gmtime_r;
41147 ;
41148 return 0;
41149}
41150_ACEOF
41151rm -f conftest.$ac_objext conftest$ac_exeext
41152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41153 (eval $ac_link) 2>conftest.er1
41154 ac_status=$?
41155 grep -v '^ *+' conftest.er1 >conftest.err
41156 rm -f conftest.er1
41157 cat conftest.err >&5
41158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41159 (exit $ac_status); } &&
fd5199d6 41160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41162 (eval $ac_try) 2>&5
41163 ac_status=$?
41164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41165 (exit $ac_status); }; } &&
41166 { ac_try='test -s conftest$ac_exeext'
41167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41168 (eval $ac_try) 2>&5
41169 ac_status=$?
41170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41171 (exit $ac_status); }; }; then
41172 ac_cv_func_gmtime_r=yes
41173else
41174 echo "$as_me: failed program was:" >&5
41175sed 's/^/| /' conftest.$ac_ext >&5
41176
41177ac_cv_func_gmtime_r=no
41178fi
41179rm -f conftest.err conftest.$ac_objext \
41180 conftest$ac_exeext conftest.$ac_ext
41181fi
41182echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
41183echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
41184if test $ac_cv_func_gmtime_r = yes; then
41185 cat >>confdefs.h <<\_ACEOF
41186#define HAVE_GMTIME_R 1
41187_ACEOF
41188
41189fi
41190
41191echo "$as_me:$LINENO: checking for readdir_r" >&5
41192echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
41193if test "${ac_cv_func_readdir_r+set}" = set; then
41194 echo $ECHO_N "(cached) $ECHO_C" >&6
41195else
41196 cat >conftest.$ac_ext <<_ACEOF
41197/* confdefs.h. */
41198_ACEOF
41199cat confdefs.h >>conftest.$ac_ext
41200cat >>conftest.$ac_ext <<_ACEOF
41201/* end confdefs.h. */
41202/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
41203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41204#define readdir_r innocuous_readdir_r
41205
41206/* System header to define __stub macros and hopefully few prototypes,
41207 which can conflict with char readdir_r (); below.
41208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41209 <limits.h> exists even on freestanding compilers. */
41210
41211#ifdef __STDC__
41212# include <limits.h>
41213#else
41214# include <assert.h>
41215#endif
41216
41217#undef readdir_r
41218
41219/* Override any gcc2 internal prototype to avoid an error. */
41220#ifdef __cplusplus
41221extern "C"
41222{
41223#endif
41224/* We use char because int might match the return type of a gcc2
41225 builtin and then its argument prototype would still apply. */
41226char readdir_r ();
41227/* The GNU C library defines this for functions which it implements
41228 to always fail with ENOSYS. Some functions are actually named
41229 something starting with __ and the normal name is an alias. */
41230#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
41231choke me
41232#else
41233char (*f) () = readdir_r;
41234#endif
41235#ifdef __cplusplus
41236}
41237#endif
41238
41239int
41240main ()
41241{
41242return f != readdir_r;
41243 ;
41244 return 0;
41245}
41246_ACEOF
41247rm -f conftest.$ac_objext conftest$ac_exeext
41248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41249 (eval $ac_link) 2>conftest.er1
41250 ac_status=$?
41251 grep -v '^ *+' conftest.er1 >conftest.err
41252 rm -f conftest.er1
41253 cat conftest.err >&5
41254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41255 (exit $ac_status); } &&
fd5199d6 41256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41258 (eval $ac_try) 2>&5
41259 ac_status=$?
41260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41261 (exit $ac_status); }; } &&
41262 { ac_try='test -s conftest$ac_exeext'
41263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41264 (eval $ac_try) 2>&5
41265 ac_status=$?
41266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41267 (exit $ac_status); }; }; then
41268 ac_cv_func_readdir_r=yes
41269else
41270 echo "$as_me: failed program was:" >&5
41271sed 's/^/| /' conftest.$ac_ext >&5
41272
41273ac_cv_func_readdir_r=no
41274fi
41275rm -f conftest.err conftest.$ac_objext \
41276 conftest$ac_exeext conftest.$ac_ext
41277fi
41278echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
41279echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
41280if test $ac_cv_func_readdir_r = yes; then
41281 cat >>confdefs.h <<\_ACEOF
41282#define HAVE_READDIR_R 1
41283_ACEOF
41284
41285fi
41286
004ee6da 41287
004ee6da
RL
41288
41289
41290 ac_ext=c
41291ac_cpp='$CPP $CPPFLAGS'
41292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41294ac_compiler_gnu=$ac_cv_c_compiler_gnu
41295
41296 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
41297echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
41298
41299 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
41300 echo $ECHO_N "(cached) $ECHO_C" >&6
41301else
41302
41303
2f6c5bb5 41304################################################################
004ee6da
RL
41305
41306ac_cv_func_which_gethostbyname_r=unknown
41307
41308#
41309# ONE ARGUMENT (sanity check)
41310#
41311
41312# This should fail, as there is no variant of gethostbyname_r() that takes
41313# a single argument. If it actually compiles, then we can assume that
41314# netdb.h is not declaring the function, and the compiler is thereby
41315# assuming an implicit prototype. In which case, we're out of luck.
41316#
41317cat >conftest.$ac_ext <<_ACEOF
41318/* confdefs.h. */
41319_ACEOF
41320cat confdefs.h >>conftest.$ac_ext
41321cat >>conftest.$ac_ext <<_ACEOF
41322/* end confdefs.h. */
41323#include <netdb.h>
41324int
41325main ()
41326{
41327
41328 char *name = "www.gnu.org";
41329 (void)gethostbyname_r(name) /* ; */
41330
41331 ;
41332 return 0;
41333}
41334_ACEOF
41335rm -f conftest.$ac_objext
41336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41337 (eval $ac_compile) 2>conftest.er1
41338 ac_status=$?
41339 grep -v '^ *+' conftest.er1 >conftest.err
41340 rm -f conftest.er1
41341 cat conftest.err >&5
41342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41343 (exit $ac_status); } &&
bb9e79c0 41344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41346 (eval $ac_try) 2>&5
41347 ac_status=$?
41348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41349 (exit $ac_status); }; } &&
41350 { ac_try='test -s conftest.$ac_objext'
41351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41352 (eval $ac_try) 2>&5
41353 ac_status=$?
41354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41355 (exit $ac_status); }; }; then
41356 ac_cv_func_which_gethostbyname_r=no
41357else
41358 echo "$as_me: failed program was:" >&5
41359sed 's/^/| /' conftest.$ac_ext >&5
41360
41361fi
41362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41363
41364#
41365# SIX ARGUMENTS
41366# (e.g. Linux)
41367#
41368
41369if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41370
41371cat >conftest.$ac_ext <<_ACEOF
41372/* confdefs.h. */
41373_ACEOF
41374cat confdefs.h >>conftest.$ac_ext
41375cat >>conftest.$ac_ext <<_ACEOF
41376/* end confdefs.h. */
41377#include <netdb.h>
41378int
41379main ()
41380{
41381
41382 char *name = "www.gnu.org";
41383 struct hostent ret, *retp;
41384 char buf[1024];
41385 int buflen = 1024;
41386 int my_h_errno;
41387 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
41388
41389 ;
41390 return 0;
41391}
41392_ACEOF
41393rm -f conftest.$ac_objext
41394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41395 (eval $ac_compile) 2>conftest.er1
41396 ac_status=$?
41397 grep -v '^ *+' conftest.er1 >conftest.err
41398 rm -f conftest.er1
41399 cat conftest.err >&5
41400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41401 (exit $ac_status); } &&
bb9e79c0 41402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41404 (eval $ac_try) 2>&5
41405 ac_status=$?
41406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41407 (exit $ac_status); }; } &&
41408 { ac_try='test -s conftest.$ac_objext'
41409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41410 (eval $ac_try) 2>&5
41411 ac_status=$?
41412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41413 (exit $ac_status); }; }; then
41414 ac_cv_func_which_gethostbyname_r=six
41415else
41416 echo "$as_me: failed program was:" >&5
41417sed 's/^/| /' conftest.$ac_ext >&5
41418
41419fi
41420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41421
41422fi
41423
41424#
41425# FIVE ARGUMENTS
41426# (e.g. Solaris)
41427#
41428
41429if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41430
41431cat >conftest.$ac_ext <<_ACEOF
41432/* confdefs.h. */
41433_ACEOF
41434cat confdefs.h >>conftest.$ac_ext
41435cat >>conftest.$ac_ext <<_ACEOF
41436/* end confdefs.h. */
41437#include <netdb.h>
41438int
41439main ()
41440{
41441
41442 char *name = "www.gnu.org";
41443 struct hostent ret;
41444 char buf[1024];
41445 int buflen = 1024;
41446 int my_h_errno;
41447 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
41448
41449 ;
41450 return 0;
41451}
41452_ACEOF
41453rm -f conftest.$ac_objext
41454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41455 (eval $ac_compile) 2>conftest.er1
41456 ac_status=$?
41457 grep -v '^ *+' conftest.er1 >conftest.err
41458 rm -f conftest.er1
41459 cat conftest.err >&5
41460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41461 (exit $ac_status); } &&
bb9e79c0 41462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41464 (eval $ac_try) 2>&5
41465 ac_status=$?
41466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41467 (exit $ac_status); }; } &&
41468 { ac_try='test -s conftest.$ac_objext'
41469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41470 (eval $ac_try) 2>&5
41471 ac_status=$?
41472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41473 (exit $ac_status); }; }; then
41474 ac_cv_func_which_gethostbyname_r=five
41475else
41476 echo "$as_me: failed program was:" >&5
41477sed 's/^/| /' conftest.$ac_ext >&5
41478
41479fi
41480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41481
41482fi
41483
41484#
41485# THREE ARGUMENTS
41486# (e.g. AIX, HP-UX, Tru64)
41487#
41488
41489if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41490
41491cat >conftest.$ac_ext <<_ACEOF
41492/* confdefs.h. */
41493_ACEOF
41494cat confdefs.h >>conftest.$ac_ext
41495cat >>conftest.$ac_ext <<_ACEOF
41496/* end confdefs.h. */
41497#include <netdb.h>
41498int
41499main ()
41500{
41501
41502 char *name = "www.gnu.org";
41503 struct hostent ret;
41504 struct hostent_data data;
41505 (void)gethostbyname_r(name, &ret, &data) /* ; */
41506
41507 ;
41508 return 0;
41509}
41510_ACEOF
41511rm -f conftest.$ac_objext
41512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41513 (eval $ac_compile) 2>conftest.er1
41514 ac_status=$?
41515 grep -v '^ *+' conftest.er1 >conftest.err
41516 rm -f conftest.er1
41517 cat conftest.err >&5
41518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41519 (exit $ac_status); } &&
bb9e79c0 41520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41522 (eval $ac_try) 2>&5
41523 ac_status=$?
41524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41525 (exit $ac_status); }; } &&
41526 { ac_try='test -s conftest.$ac_objext'
41527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41528 (eval $ac_try) 2>&5
41529 ac_status=$?
41530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41531 (exit $ac_status); }; }; then
41532 ac_cv_func_which_gethostbyname_r=three
41533else
41534 echo "$as_me: failed program was:" >&5
41535sed 's/^/| /' conftest.$ac_ext >&5
41536
41537fi
41538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41539
41540fi
41541
2f6c5bb5 41542################################################################
004ee6da
RL
41543
41544
41545fi
41546
41547case "$ac_cv_func_which_gethostbyname_r" in
41548 three)
41549 echo "$as_me:$LINENO: result: three" >&5
41550echo "${ECHO_T}three" >&6
41551 cat >>confdefs.h <<\_ACEOF
41552#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
41553_ACEOF
41554
41555 ;;
41556
41557 five)
41558 echo "$as_me:$LINENO: result: five" >&5
41559echo "${ECHO_T}five" >&6
41560 cat >>confdefs.h <<\_ACEOF
41561#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
41562_ACEOF
41563
41564 ;;
41565
41566 six)
41567 echo "$as_me:$LINENO: result: six" >&5
41568echo "${ECHO_T}six" >&6
41569 cat >>confdefs.h <<\_ACEOF
41570#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
41571_ACEOF
41572
41573 ;;
41574
41575 no)
41576 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
41577echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
41578 ;;
41579
41580 unknown)
41581 echo "$as_me:$LINENO: result: can't tell" >&5
41582echo "${ECHO_T}can't tell" >&6
41583 ;;
41584
41585 *)
41586 { { echo "$as_me:$LINENO: error: internal error" >&5
41587echo "$as_me: error: internal error" >&2;}
41588 { (exit 1); exit 1; }; }
41589 ;;
41590esac
41591
fd5199d6
VZ
41592ac_ext=c
41593ac_cpp='$CPP $CPPFLAGS'
41594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41596ac_compiler_gnu=$ac_cv_c_compiler_gnu
004ee6da
RL
41597
41598
41599
41600 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
ec3edcc9 41601 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
004ee6da
RL
41602 echo "$as_me:$LINENO: checking for gethostbyname" >&5
41603echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
41604if test "${ac_cv_func_gethostbyname+set}" = set; then
41605 echo $ECHO_N "(cached) $ECHO_C" >&6
41606else
41607 cat >conftest.$ac_ext <<_ACEOF
41608/* confdefs.h. */
41609_ACEOF
41610cat confdefs.h >>conftest.$ac_ext
41611cat >>conftest.$ac_ext <<_ACEOF
41612/* end confdefs.h. */
41613/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41615#define gethostbyname innocuous_gethostbyname
41616
41617/* System header to define __stub macros and hopefully few prototypes,
41618 which can conflict with char gethostbyname (); below.
41619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41620 <limits.h> exists even on freestanding compilers. */
41621
41622#ifdef __STDC__
41623# include <limits.h>
41624#else
41625# include <assert.h>
41626#endif
41627
41628#undef gethostbyname
41629
41630/* Override any gcc2 internal prototype to avoid an error. */
41631#ifdef __cplusplus
41632extern "C"
41633{
41634#endif
41635/* We use char because int might match the return type of a gcc2
41636 builtin and then its argument prototype would still apply. */
41637char gethostbyname ();
41638/* The GNU C library defines this for functions which it implements
41639 to always fail with ENOSYS. Some functions are actually named
41640 something starting with __ and the normal name is an alias. */
41641#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
41642choke me
41643#else
41644char (*f) () = gethostbyname;
41645#endif
41646#ifdef __cplusplus
41647}
41648#endif
41649
41650int
41651main ()
41652{
41653return f != gethostbyname;
41654 ;
41655 return 0;
41656}
41657_ACEOF
41658rm -f conftest.$ac_objext conftest$ac_exeext
41659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41660 (eval $ac_link) 2>conftest.er1
41661 ac_status=$?
41662 grep -v '^ *+' conftest.er1 >conftest.err
41663 rm -f conftest.er1
41664 cat conftest.err >&5
41665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41666 (exit $ac_status); } &&
fd5199d6 41667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41669 (eval $ac_try) 2>&5
41670 ac_status=$?
41671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41672 (exit $ac_status); }; } &&
41673 { ac_try='test -s conftest$ac_exeext'
41674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41675 (eval $ac_try) 2>&5
41676 ac_status=$?
41677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41678 (exit $ac_status); }; }; then
41679 ac_cv_func_gethostbyname=yes
41680else
41681 echo "$as_me: failed program was:" >&5
41682sed 's/^/| /' conftest.$ac_ext >&5
41683
41684ac_cv_func_gethostbyname=no
41685fi
41686rm -f conftest.err conftest.$ac_objext \
41687 conftest$ac_exeext conftest.$ac_ext
41688fi
41689echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41690echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
41691if test $ac_cv_func_gethostbyname = yes; then
41692 cat >>confdefs.h <<\_ACEOF
41693#define HAVE_GETHOSTBYNAME 1
41694_ACEOF
41695
41696fi
41697
41698 fi
3ecd9f92 41699
81c330c6
VZ
41700echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41701echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
41702if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
004ee6da
RL
41703 echo $ECHO_N "(cached) $ECHO_C" >&6
41704else
3ecd9f92 41705
fd5199d6
VZ
41706 ac_ext=cc
41707ac_cpp='$CXXCPP $CPPFLAGS'
41708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41711
41712
3ecd9f92 41713 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41714/* confdefs.h. */
41715_ACEOF
41716cat confdefs.h >>conftest.$ac_ext
41717cat >>conftest.$ac_ext <<_ACEOF
41718/* end confdefs.h. */
81c330c6 41719#include <netdb.h>
004ee6da
RL
41720int
41721main ()
41722{
41723
81c330c6
VZ
41724 char *name;
41725 char *proto;
41726 struct servent *se, *res;
41727 char buffer[2048];
41728 int buflen = 2048;
41729 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
41730
41731 ;
41732 return 0;
41733}
41734_ACEOF
41735rm -f conftest.$ac_objext
41736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41737 (eval $ac_compile) 2>conftest.er1
41738 ac_status=$?
41739 grep -v '^ *+' conftest.er1 >conftest.err
41740 rm -f conftest.er1
41741 cat conftest.err >&5
41742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41743 (exit $ac_status); } &&
bb9e79c0 41744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41746 (eval $ac_try) 2>&5
41747 ac_status=$?
41748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41749 (exit $ac_status); }; } &&
41750 { ac_try='test -s conftest.$ac_objext'
41751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41752 (eval $ac_try) 2>&5
41753 ac_status=$?
41754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41755 (exit $ac_status); }; }; then
81c330c6 41756 ac_cv_func_which_getservbyname_r=six
004ee6da
RL
41757else
41758 echo "$as_me: failed program was:" >&5
41759sed 's/^/| /' conftest.$ac_ext >&5
41760
3ecd9f92 41761
81c330c6 41762 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41763/* confdefs.h. */
41764_ACEOF
41765cat confdefs.h >>conftest.$ac_ext
41766cat >>conftest.$ac_ext <<_ACEOF
41767/* end confdefs.h. */
81c330c6 41768#include <netdb.h>
004ee6da
RL
41769int
41770main ()
41771{
41772
81c330c6
VZ
41773 char *name;
41774 char *proto;
41775 struct servent *se;
41776 char buffer[2048];
41777 int buflen = 2048;
41778 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
41779
41780 ;
41781 return 0;
41782}
41783_ACEOF
41784rm -f conftest.$ac_objext
41785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41786 (eval $ac_compile) 2>conftest.er1
41787 ac_status=$?
41788 grep -v '^ *+' conftest.er1 >conftest.err
41789 rm -f conftest.er1
41790 cat conftest.err >&5
41791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41792 (exit $ac_status); } &&
bb9e79c0 41793 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41795 (eval $ac_try) 2>&5
41796 ac_status=$?
41797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41798 (exit $ac_status); }; } &&
41799 { ac_try='test -s conftest.$ac_objext'
41800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41801 (eval $ac_try) 2>&5
41802 ac_status=$?
41803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41804 (exit $ac_status); }; }; then
81c330c6 41805 ac_cv_func_which_getservbyname_r=five
004ee6da
RL
41806else
41807 echo "$as_me: failed program was:" >&5
41808sed 's/^/| /' conftest.$ac_ext >&5
41809
3ecd9f92 41810
81c330c6 41811 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41812/* confdefs.h. */
41813_ACEOF
41814cat confdefs.h >>conftest.$ac_ext
41815cat >>conftest.$ac_ext <<_ACEOF
41816/* end confdefs.h. */
81c330c6 41817#include <netdb.h>
004ee6da
RL
41818int
41819main ()
41820{
41821
81c330c6
VZ
41822 char *name;
41823 char *proto;
41824 struct servent *se;
41825 struct servent_data data;
41826 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
41827
41828 ;
41829 return 0;
41830}
41831_ACEOF
41832rm -f conftest.$ac_objext
41833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41834 (eval $ac_compile) 2>conftest.er1
41835 ac_status=$?
41836 grep -v '^ *+' conftest.er1 >conftest.err
41837 rm -f conftest.er1
41838 cat conftest.err >&5
41839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41840 (exit $ac_status); } &&
bb9e79c0 41841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41843 (eval $ac_try) 2>&5
41844 ac_status=$?
41845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41846 (exit $ac_status); }; } &&
41847 { ac_try='test -s conftest.$ac_objext'
41848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41849 (eval $ac_try) 2>&5
41850 ac_status=$?
41851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41852 (exit $ac_status); }; }; then
81c330c6 41853 ac_cv_func_which_getservbyname_r=four
004ee6da
RL
41854else
41855 echo "$as_me: failed program was:" >&5
41856sed 's/^/| /' conftest.$ac_ext >&5
41857
41858ac_cv_func_which_getservbyname_r=no
81c330c6 41859
004ee6da
RL
41860fi
41861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41862
3ecd9f92 41863
004ee6da
RL
41864fi
41865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41866
3ecd9f92 41867
004ee6da
RL
41868fi
41869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
41870 ac_ext=c
41871ac_cpp='$CPP $CPPFLAGS'
41872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41874ac_compiler_gnu=$ac_cv_c_compiler_gnu
41875
3ecd9f92 41876
004ee6da 41877
3ecd9f92
MW
41878fi
41879echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41880echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
41881
41882if test $ac_cv_func_which_getservbyname_r = six; then
41883 cat >>confdefs.h <<\_ACEOF
41884#define HAVE_FUNC_GETSERVBYNAME_R_6 1
41885_ACEOF
41886
41887elif test $ac_cv_func_which_getservbyname_r = five; then
41888 cat >>confdefs.h <<\_ACEOF
41889#define HAVE_FUNC_GETSERVBYNAME_R_5 1
41890_ACEOF
41891
41892elif test $ac_cv_func_which_getservbyname_r = four; then
41893 cat >>confdefs.h <<\_ACEOF
41894#define HAVE_FUNC_GETSERVBYNAME_R_4 1
41895_ACEOF
41896
004ee6da
RL
41897fi
41898
41899
41900 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
ec3edcc9 41901 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
004ee6da
RL
41902
41903for ac_func in getservbyname
41904do
41905as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41906echo "$as_me:$LINENO: checking for $ac_func" >&5
41907echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41908if eval "test \"\${$as_ac_var+set}\" = set"; then
41909 echo $ECHO_N "(cached) $ECHO_C" >&6
41910else
41911 cat >conftest.$ac_ext <<_ACEOF
41912/* confdefs.h. */
41913_ACEOF
41914cat confdefs.h >>conftest.$ac_ext
41915cat >>conftest.$ac_ext <<_ACEOF
41916/* end confdefs.h. */
41917/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41919#define $ac_func innocuous_$ac_func
41920
41921/* System header to define __stub macros and hopefully few prototypes,
41922 which can conflict with char $ac_func (); below.
41923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41924 <limits.h> exists even on freestanding compilers. */
41925
41926#ifdef __STDC__
41927# include <limits.h>
41928#else
41929# include <assert.h>
41930#endif
41931
41932#undef $ac_func
41933
41934/* Override any gcc2 internal prototype to avoid an error. */
41935#ifdef __cplusplus
41936extern "C"
41937{
41938#endif
41939/* We use char because int might match the return type of a gcc2
41940 builtin and then its argument prototype would still apply. */
41941char $ac_func ();
41942/* The GNU C library defines this for functions which it implements
41943 to always fail with ENOSYS. Some functions are actually named
41944 something starting with __ and the normal name is an alias. */
41945#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41946choke me
41947#else
41948char (*f) () = $ac_func;
41949#endif
41950#ifdef __cplusplus
41951}
41952#endif
41953
41954int
41955main ()
41956{
41957return f != $ac_func;
41958 ;
41959 return 0;
41960}
41961_ACEOF
41962rm -f conftest.$ac_objext conftest$ac_exeext
41963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41964 (eval $ac_link) 2>conftest.er1
41965 ac_status=$?
41966 grep -v '^ *+' conftest.er1 >conftest.err
41967 rm -f conftest.er1
41968 cat conftest.err >&5
41969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41970 (exit $ac_status); } &&
fd5199d6 41971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41973 (eval $ac_try) 2>&5
41974 ac_status=$?
41975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41976 (exit $ac_status); }; } &&
41977 { ac_try='test -s conftest$ac_exeext'
41978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41979 (eval $ac_try) 2>&5
41980 ac_status=$?
41981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41982 (exit $ac_status); }; }; then
41983 eval "$as_ac_var=yes"
41984else
41985 echo "$as_me: failed program was:" >&5
41986sed 's/^/| /' conftest.$ac_ext >&5
41987
41988eval "$as_ac_var=no"
41989fi
41990rm -f conftest.err conftest.$ac_objext \
41991 conftest$ac_exeext conftest.$ac_ext
41992fi
41993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41994echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41995if test `eval echo '${'$as_ac_var'}'` = yes; then
41996 cat >>confdefs.h <<_ACEOF
41997#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41998_ACEOF
41999 cat >>confdefs.h <<\_ACEOF
42000#define HAVE_GETSERVBYNAME 1
42001_ACEOF
42002
42003fi
42004done
42005
42006 fi
42007
004ee6da
RL
42008if test "$wxUSE_THREADS" = "yes"; then
42009 cat >>confdefs.h <<\_ACEOF
42010#define wxUSE_THREADS 1
42011_ACEOF
42012
42013
42014 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
42015else
56632e81 42016 if test "$wx_cv_func_strtok_r" = "yes"; then
004ee6da
RL
42017 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
42018echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
42019 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
42020 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
42021 echo "$as_me:$LINENO: result: yes" >&5
42022echo "${ECHO_T}yes" >&6
42023 else
42024 echo "$as_me:$LINENO: result: no" >&5
42025echo "${ECHO_T}no" >&6
42026 fi
42027 fi
42028fi
42029
42030if test "$WXGTK20" = 1 ; then
42031 cat >>confdefs.h <<_ACEOF
42032#define __WXGTK20__ $WXGTK20
42033_ACEOF
42034
42035 WXGTK12=1
42036fi
42037
42038if test "$WXGTK12" = 1 ; then
42039 cat >>confdefs.h <<_ACEOF
42040#define __WXGTK12__ $WXGTK12
42041_ACEOF
42042
42043fi
42044
42045if test "$WXGTK127" = 1 ; then
42046 cat >>confdefs.h <<_ACEOF
42047#define __WXGTK127__ $WXGTK127
42048_ACEOF
42049
42050fi
42051
42052if test "$WXGPE" = 1 ; then
42053 cat >>confdefs.h <<_ACEOF
42054#define __WXGPE__ $WXGPE
42055_ACEOF
42056
42057fi
42058
42059DEBUG_CFLAGS=
42060if test "$wxUSE_DEBUG_INFO" = "yes" ; then
42061 DEBUG_CFLAGS="-g"
42062 wxUSE_OPTIMISE=no
42063fi
42064
42065if test "$wxUSE_DEBUG_GDB" = "yes" ; then
42066 wxUSE_DEBUG_INFO=yes
42067 if test "$GCC" = yes; then
42068 DEBUG_CFLAGS="-ggdb"
42069 fi
42070fi
42071
42072if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
42073 cat >>confdefs.h <<\_ACEOF
42074#define WXDEBUG 1
42075_ACEOF
42076
42077 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
42078else
42079 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
42080 if test "x$wxGTK_VERSION" = "x1" ; then
42081 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
42082 fi
004ee6da
RL
42083 fi
42084fi
42085
42086if test "$wxUSE_MEM_TRACING" = "yes" ; then
42087 cat >>confdefs.h <<\_ACEOF
42088#define wxUSE_MEMORY_TRACING 1
42089_ACEOF
42090
42091 cat >>confdefs.h <<\_ACEOF
42092#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
42093_ACEOF
42094
42095 cat >>confdefs.h <<\_ACEOF
42096#define wxUSE_DEBUG_NEW_ALWAYS 1
42097_ACEOF
42098
42099 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
42100fi
42101
42102if test "$wxUSE_DMALLOC" = "yes" ; then
42103 DMALLOC_LIBS="-ldmallocthcxx"
42104fi
42105
42106PROFILE_FLAGS=
42107if test "$wxUSE_PROFILE" = "yes" ; then
42108 PROFILE_FLAGS=" -pg"
42109fi
42110
42111if test "$GCC" = "yes" ; then
42112 if test "$wxUSE_NO_RTTI" = "yes" ; then
42113 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
42114 fi
42115 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42116 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
42117 fi
42118 if test "$wxUSE_PERMISSIVE" = "yes" ; then
42119 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
42120 fi
42121
42122 case "${host}" in
42123 powerpc*-*-aix* )
42124 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
42125 ;;
42126 *-hppa* )
42127 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
42128 ;;
42129 esac
42130fi
42131
42132OPTIMISE_CFLAGS=
42133if test "$wxUSE_OPTIMISE" = "no" ; then
42134 if test "$GCC" = yes ; then
42135 OPTIMISE_CFLAGS="-O0"
42136 fi
42137else
42138 if test "$GCC" = yes ; then
e5efa97e
VZ
42139 case "${host}" in
42140 *-pc-os2_emx | *-pc-os2-emx )
42141 OPTIMISE_CFLAGS="-O2"
42142 ;;
42143 *)
42144 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
42145 ;;
42146 esac
004ee6da
RL
42147 else
42148 OPTIMISE_CFLAGS="-O"
42149 fi
42150fi
42151
42152
42153if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
42154 cat >>confdefs.h <<\_ACEOF
42155#define WXWIN_COMPATIBILITY_2_4 1
42156_ACEOF
42157
42158
42159 WXWIN_COMPATIBILITY_2_6="yes"
42160fi
42161
42162if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
42163 cat >>confdefs.h <<\_ACEOF
42164#define WXWIN_COMPATIBILITY_2_6 1
42165_ACEOF
42166
42167fi
42168
42169
42170if test "$wxUSE_GUI" = "yes"; then
42171 cat >>confdefs.h <<\_ACEOF
42172#define wxUSE_GUI 1
42173_ACEOF
42174
42175
42176 fi
42177
42178
42179if test "$wxUSE_UNIX" = "yes"; then
42180 cat >>confdefs.h <<\_ACEOF
42181#define wxUSE_UNIX 1
42182_ACEOF
42183
42184fi
42185
42186
42187if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
42188
42189 HAVE_DL_FUNCS=0
42190 HAVE_SHL_FUNCS=0
42191 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42192 if test "$USE_DARWIN" = 1; then
42193 HAVE_DL_FUNCS=1
42194 elif test "$USE_DOS" = 1; then
42195 HAVE_DL_FUNCS=0
42196 else
42197
42198for ac_func in dlopen
42199do
42200as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42201echo "$as_me:$LINENO: checking for $ac_func" >&5
42202echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42203if eval "test \"\${$as_ac_var+set}\" = set"; then
42204 echo $ECHO_N "(cached) $ECHO_C" >&6
42205else
42206 cat >conftest.$ac_ext <<_ACEOF
42207/* confdefs.h. */
42208_ACEOF
42209cat confdefs.h >>conftest.$ac_ext
42210cat >>conftest.$ac_ext <<_ACEOF
42211/* end confdefs.h. */
42212/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42214#define $ac_func innocuous_$ac_func
42215
42216/* System header to define __stub macros and hopefully few prototypes,
42217 which can conflict with char $ac_func (); below.
42218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42219 <limits.h> exists even on freestanding compilers. */
42220
42221#ifdef __STDC__
42222# include <limits.h>
42223#else
42224# include <assert.h>
42225#endif
42226
42227#undef $ac_func
42228
42229/* Override any gcc2 internal prototype to avoid an error. */
42230#ifdef __cplusplus
42231extern "C"
42232{
42233#endif
42234/* We use char because int might match the return type of a gcc2
42235 builtin and then its argument prototype would still apply. */
42236char $ac_func ();
42237/* The GNU C library defines this for functions which it implements
42238 to always fail with ENOSYS. Some functions are actually named
42239 something starting with __ and the normal name is an alias. */
42240#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42241choke me
42242#else
42243char (*f) () = $ac_func;
42244#endif
42245#ifdef __cplusplus
42246}
42247#endif
42248
42249int
42250main ()
42251{
42252return f != $ac_func;
a848cd7e
SC
42253 ;
42254 return 0;
42255}
42256_ACEOF
42257rm -f conftest.$ac_objext conftest$ac_exeext
42258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42259 (eval $ac_link) 2>conftest.er1
a848cd7e 42260 ac_status=$?
ac1cb8d3
VS
42261 grep -v '^ *+' conftest.er1 >conftest.err
42262 rm -f conftest.er1
42263 cat conftest.err >&5
a848cd7e
SC
42264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42265 (exit $ac_status); } &&
fd5199d6 42266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42268 (eval $ac_try) 2>&5
42269 ac_status=$?
42270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42271 (exit $ac_status); }; } &&
42272 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42274 (eval $ac_try) 2>&5
42275 ac_status=$?
42276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42277 (exit $ac_status); }; }; then
42278 eval "$as_ac_var=yes"
42279else
42280 echo "$as_me: failed program was:" >&5
42281sed 's/^/| /' conftest.$ac_ext >&5
42282
42283eval "$as_ac_var=no"
42284fi
ac1cb8d3
VS
42285rm -f conftest.err conftest.$ac_objext \
42286 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42287fi
42288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42289echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42290if test `eval echo '${'$as_ac_var'}'` = yes; then
42291 cat >>confdefs.h <<_ACEOF
42292#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42293_ACEOF
42294
42295 cat >>confdefs.h <<\_ACEOF
42296#define HAVE_DLOPEN 1
42297_ACEOF
42298
42299 HAVE_DL_FUNCS=1
42300
42301else
42302
42303 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
42304echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
42305if test "${ac_cv_lib_dl_dlopen+set}" = set; then
42306 echo $ECHO_N "(cached) $ECHO_C" >&6
42307else
42308 ac_check_lib_save_LIBS=$LIBS
42309LIBS="-ldl $LIBS"
42310cat >conftest.$ac_ext <<_ACEOF
42311/* confdefs.h. */
42312_ACEOF
42313cat confdefs.h >>conftest.$ac_ext
42314cat >>conftest.$ac_ext <<_ACEOF
42315/* end confdefs.h. */
42316
42317/* Override any gcc2 internal prototype to avoid an error. */
42318#ifdef __cplusplus
42319extern "C"
42320#endif
42321/* We use char because int might match the return type of a gcc2
42322 builtin and then its argument prototype would still apply. */
42323char dlopen ();
42324int
42325main ()
42326{
42327dlopen ();
42328 ;
42329 return 0;
42330}
42331_ACEOF
42332rm -f conftest.$ac_objext conftest$ac_exeext
42333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42334 (eval $ac_link) 2>conftest.er1
a848cd7e 42335 ac_status=$?
ac1cb8d3
VS
42336 grep -v '^ *+' conftest.er1 >conftest.err
42337 rm -f conftest.er1
42338 cat conftest.err >&5
a848cd7e
SC
42339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42340 (exit $ac_status); } &&
fd5199d6 42341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42343 (eval $ac_try) 2>&5
42344 ac_status=$?
42345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42346 (exit $ac_status); }; } &&
42347 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42349 (eval $ac_try) 2>&5
42350 ac_status=$?
42351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42352 (exit $ac_status); }; }; then
42353 ac_cv_lib_dl_dlopen=yes
42354else
42355 echo "$as_me: failed program was:" >&5
42356sed 's/^/| /' conftest.$ac_ext >&5
42357
42358ac_cv_lib_dl_dlopen=no
42359fi
ac1cb8d3
VS
42360rm -f conftest.err conftest.$ac_objext \
42361 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42362LIBS=$ac_check_lib_save_LIBS
42363fi
42364echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
42365echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
42366if test $ac_cv_lib_dl_dlopen = yes; then
42367
42368 cat >>confdefs.h <<\_ACEOF
42369#define HAVE_DLOPEN 1
42370_ACEOF
42371
42372 HAVE_DL_FUNCS=1
42373 DL_LINK=" -ldl$DL_LINK"
42374
42375else
42376
42377
42378for ac_func in shl_load
42379do
42380as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42381echo "$as_me:$LINENO: checking for $ac_func" >&5
42382echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42383if eval "test \"\${$as_ac_var+set}\" = set"; then
42384 echo $ECHO_N "(cached) $ECHO_C" >&6
42385else
42386 cat >conftest.$ac_ext <<_ACEOF
42387/* confdefs.h. */
42388_ACEOF
42389cat confdefs.h >>conftest.$ac_ext
42390cat >>conftest.$ac_ext <<_ACEOF
42391/* end confdefs.h. */
ac1cb8d3
VS
42392/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42394#define $ac_func innocuous_$ac_func
42395
a848cd7e
SC
42396/* System header to define __stub macros and hopefully few prototypes,
42397 which can conflict with char $ac_func (); below.
42398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42399 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42400
a848cd7e
SC
42401#ifdef __STDC__
42402# include <limits.h>
42403#else
42404# include <assert.h>
42405#endif
ac1cb8d3
VS
42406
42407#undef $ac_func
42408
a848cd7e
SC
42409/* Override any gcc2 internal prototype to avoid an error. */
42410#ifdef __cplusplus
42411extern "C"
42412{
42413#endif
42414/* We use char because int might match the return type of a gcc2
42415 builtin and then its argument prototype would still apply. */
42416char $ac_func ();
42417/* The GNU C library defines this for functions which it implements
42418 to always fail with ENOSYS. Some functions are actually named
42419 something starting with __ and the normal name is an alias. */
42420#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42421choke me
42422#else
42423char (*f) () = $ac_func;
42424#endif
42425#ifdef __cplusplus
42426}
42427#endif
42428
42429int
42430main ()
42431{
42432return f != $ac_func;
42433 ;
42434 return 0;
42435}
42436_ACEOF
42437rm -f conftest.$ac_objext conftest$ac_exeext
42438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42439 (eval $ac_link) 2>conftest.er1
a848cd7e 42440 ac_status=$?
ac1cb8d3
VS
42441 grep -v '^ *+' conftest.er1 >conftest.err
42442 rm -f conftest.er1
42443 cat conftest.err >&5
a848cd7e
SC
42444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42445 (exit $ac_status); } &&
fd5199d6 42446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42448 (eval $ac_try) 2>&5
42449 ac_status=$?
42450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42451 (exit $ac_status); }; } &&
42452 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42454 (eval $ac_try) 2>&5
42455 ac_status=$?
42456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42457 (exit $ac_status); }; }; then
42458 eval "$as_ac_var=yes"
42459else
42460 echo "$as_me: failed program was:" >&5
42461sed 's/^/| /' conftest.$ac_ext >&5
42462
42463eval "$as_ac_var=no"
42464fi
ac1cb8d3
VS
42465rm -f conftest.err conftest.$ac_objext \
42466 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42467fi
42468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42469echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42470if test `eval echo '${'$as_ac_var'}'` = yes; then
42471 cat >>confdefs.h <<_ACEOF
42472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42473_ACEOF
42474
42475 cat >>confdefs.h <<\_ACEOF
42476#define HAVE_SHL_LOAD 1
42477_ACEOF
42478
42479 HAVE_SHL_FUNCS=1
42480
42481else
42482
42483 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
42484echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
42485if test "${ac_cv_lib_shl_load_dld+set}" = set; then
42486 echo $ECHO_N "(cached) $ECHO_C" >&6
42487else
42488 ac_check_lib_save_LIBS=$LIBS
42489LIBS="-lshl_load $LIBS"
42490cat >conftest.$ac_ext <<_ACEOF
42491/* confdefs.h. */
42492_ACEOF
42493cat confdefs.h >>conftest.$ac_ext
42494cat >>conftest.$ac_ext <<_ACEOF
42495/* end confdefs.h. */
42496
42497/* Override any gcc2 internal prototype to avoid an error. */
42498#ifdef __cplusplus
42499extern "C"
42500#endif
42501/* We use char because int might match the return type of a gcc2
42502 builtin and then its argument prototype would still apply. */
42503char dld ();
42504int
42505main ()
42506{
42507dld ();
42508 ;
42509 return 0;
42510}
42511_ACEOF
42512rm -f conftest.$ac_objext conftest$ac_exeext
42513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42514 (eval $ac_link) 2>conftest.er1
a848cd7e 42515 ac_status=$?
ac1cb8d3
VS
42516 grep -v '^ *+' conftest.er1 >conftest.err
42517 rm -f conftest.er1
42518 cat conftest.err >&5
a848cd7e
SC
42519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42520 (exit $ac_status); } &&
fd5199d6 42521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42523 (eval $ac_try) 2>&5
42524 ac_status=$?
42525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42526 (exit $ac_status); }; } &&
42527 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42529 (eval $ac_try) 2>&5
42530 ac_status=$?
42531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42532 (exit $ac_status); }; }; then
42533 ac_cv_lib_shl_load_dld=yes
42534else
42535 echo "$as_me: failed program was:" >&5
42536sed 's/^/| /' conftest.$ac_ext >&5
42537
42538ac_cv_lib_shl_load_dld=no
42539fi
ac1cb8d3
VS
42540rm -f conftest.err conftest.$ac_objext \
42541 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42542LIBS=$ac_check_lib_save_LIBS
42543fi
42544echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
42545echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
42546if test $ac_cv_lib_shl_load_dld = yes; then
42547
42548 HAVE_SHL_FUNCS=1
42549 DL_LINK=" -ldld$DL_LINK"
42550
42551fi
42552
42553
42554fi
42555done
42556
42557
42558fi
42559
42560
42561fi
42562done
42563
42564
42565 if test "$HAVE_DL_FUNCS" = 1; then
42566
42567for ac_func in dlerror
42568do
42569as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42570echo "$as_me:$LINENO: checking for $ac_func" >&5
42571echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42572if eval "test \"\${$as_ac_var+set}\" = set"; then
42573 echo $ECHO_N "(cached) $ECHO_C" >&6
42574else
42575 cat >conftest.$ac_ext <<_ACEOF
42576/* confdefs.h. */
42577_ACEOF
42578cat confdefs.h >>conftest.$ac_ext
42579cat >>conftest.$ac_ext <<_ACEOF
42580/* end confdefs.h. */
ac1cb8d3
VS
42581/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42583#define $ac_func innocuous_$ac_func
42584
a848cd7e
SC
42585/* System header to define __stub macros and hopefully few prototypes,
42586 which can conflict with char $ac_func (); below.
42587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42588 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42589
a848cd7e
SC
42590#ifdef __STDC__
42591# include <limits.h>
42592#else
42593# include <assert.h>
42594#endif
ac1cb8d3
VS
42595
42596#undef $ac_func
42597
a848cd7e
SC
42598/* Override any gcc2 internal prototype to avoid an error. */
42599#ifdef __cplusplus
42600extern "C"
42601{
42602#endif
42603/* We use char because int might match the return type of a gcc2
42604 builtin and then its argument prototype would still apply. */
42605char $ac_func ();
42606/* The GNU C library defines this for functions which it implements
42607 to always fail with ENOSYS. Some functions are actually named
42608 something starting with __ and the normal name is an alias. */
42609#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42610choke me
42611#else
42612char (*f) () = $ac_func;
42613#endif
42614#ifdef __cplusplus
42615}
42616#endif
42617
42618int
42619main ()
42620{
42621return f != $ac_func;
42622 ;
42623 return 0;
42624}
42625_ACEOF
42626rm -f conftest.$ac_objext conftest$ac_exeext
42627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42628 (eval $ac_link) 2>conftest.er1
a848cd7e 42629 ac_status=$?
ac1cb8d3
VS
42630 grep -v '^ *+' conftest.er1 >conftest.err
42631 rm -f conftest.er1
42632 cat conftest.err >&5
a848cd7e
SC
42633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42634 (exit $ac_status); } &&
fd5199d6 42635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42637 (eval $ac_try) 2>&5
42638 ac_status=$?
42639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42640 (exit $ac_status); }; } &&
42641 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42643 (eval $ac_try) 2>&5
42644 ac_status=$?
42645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42646 (exit $ac_status); }; }; then
42647 eval "$as_ac_var=yes"
42648else
42649 echo "$as_me: failed program was:" >&5
42650sed 's/^/| /' conftest.$ac_ext >&5
42651
42652eval "$as_ac_var=no"
42653fi
ac1cb8d3
VS
42654rm -f conftest.err conftest.$ac_objext \
42655 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42656fi
42657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42658echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42659if test `eval echo '${'$as_ac_var'}'` = yes; then
42660 cat >>confdefs.h <<_ACEOF
42661#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42662_ACEOF
42663 cat >>confdefs.h <<\_ACEOF
42664#define HAVE_DLERROR 1
42665_ACEOF
42666
42667else
42668
42669 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42670echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
42671if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42672 echo $ECHO_N "(cached) $ECHO_C" >&6
42673else
42674 ac_check_lib_save_LIBS=$LIBS
42675LIBS="-ldl $LIBS"
42676cat >conftest.$ac_ext <<_ACEOF
42677/* confdefs.h. */
42678_ACEOF
42679cat confdefs.h >>conftest.$ac_ext
42680cat >>conftest.$ac_ext <<_ACEOF
42681/* end confdefs.h. */
42682
42683/* Override any gcc2 internal prototype to avoid an error. */
42684#ifdef __cplusplus
42685extern "C"
42686#endif
42687/* We use char because int might match the return type of a gcc2
42688 builtin and then its argument prototype would still apply. */
42689char dlerror ();
42690int
42691main ()
42692{
42693dlerror ();
42694 ;
42695 return 0;
42696}
42697_ACEOF
42698rm -f conftest.$ac_objext conftest$ac_exeext
42699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42700 (eval $ac_link) 2>conftest.er1
a848cd7e 42701 ac_status=$?
ac1cb8d3
VS
42702 grep -v '^ *+' conftest.er1 >conftest.err
42703 rm -f conftest.er1
42704 cat conftest.err >&5
a848cd7e
SC
42705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42706 (exit $ac_status); } &&
fd5199d6 42707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42709 (eval $ac_try) 2>&5
42710 ac_status=$?
42711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42712 (exit $ac_status); }; } &&
42713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42715 (eval $ac_try) 2>&5
42716 ac_status=$?
42717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42718 (exit $ac_status); }; }; then
42719 ac_cv_lib_dl_dlerror=yes
42720else
42721 echo "$as_me: failed program was:" >&5
42722sed 's/^/| /' conftest.$ac_ext >&5
42723
42724ac_cv_lib_dl_dlerror=no
42725fi
ac1cb8d3
VS
42726rm -f conftest.err conftest.$ac_objext \
42727 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42728LIBS=$ac_check_lib_save_LIBS
42729fi
42730echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42731echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
42732if test $ac_cv_lib_dl_dlerror = yes; then
42733 cat >>confdefs.h <<\_ACEOF
42734#define HAVE_DLERROR 1
42735_ACEOF
42736
42737fi
42738
42739
42740
42741fi
42742done
42743
42744 fi
42745 fi
42746
42747 if test "$HAVE_DL_FUNCS" = 0; then
42748 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 42749 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
42750 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42751echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42752 wxUSE_DYNAMIC_LOADER=no
42753 wxUSE_DYNLIB_CLASS=no
42754 else
42755 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42756echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42757 fi
42758 fi
42759 fi
42760 fi
42761fi
42762
42763if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42764 cat >>confdefs.h <<\_ACEOF
42765#define wxUSE_DYNAMIC_LOADER 1
42766_ACEOF
42767
42768fi
42769if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42770 cat >>confdefs.h <<\_ACEOF
42771#define wxUSE_DYNLIB_CLASS 1
42772_ACEOF
42773
42774fi
42775
42776
42777
42778if test "$wxUSE_PLUGINS" = "yes" ; then
42779 if test "$wxUSE_SHARED" = "no" ; then
42780 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42781echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42782 wxUSE_PLUGINS=no
42783 fi
42784 if test "$wxUSE_MONOLITHIC" = "yes" ; then
42785 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42786echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42787 wxUSE_PLUGINS=no
42788 fi
42789 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42790 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42791echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42792 wxUSE_PLUGINS=no
42793 fi
42794 if test "$wxUSE_PLUGINS" = "yes" ; then
42795 cat >>confdefs.h <<\_ACEOF
42796#define wxUSE_PLUGINS 1
42797_ACEOF
42798
42799 fi
42800fi
42801
42802
42803if test "$wxUSE_STL" = "yes"; then
42804 cat >>confdefs.h <<\_ACEOF
42805#define wxUSE_STL 1
42806_ACEOF
42807
42808fi
42809
42810if test "$wxUSE_APPLE_IEEE" = "yes"; then
42811 cat >>confdefs.h <<\_ACEOF
42812#define wxUSE_APPLE_IEEE 1
42813_ACEOF
42814
42815fi
42816
42817if test "$wxUSE_TIMER" = "yes"; then
42818 cat >>confdefs.h <<\_ACEOF
42819#define wxUSE_TIMER 1
42820_ACEOF
42821
42822fi
42823
9c112555 42824if test "$USE_UNIX" = "1" ; then
a1b1cf33
VZ
42825 if test "$wxUSE_MGL" != 1; then
42826 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
31714590 42827echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 42828if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 42829 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 42830else
d12aef51 42831
a1b1cf33 42832 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42833/* confdefs.h. */
42834_ACEOF
42835cat confdefs.h >>conftest.$ac_ext
42836cat >>conftest.$ac_ext <<_ACEOF
42837/* end confdefs.h. */
d12aef51 42838
a1b1cf33
VZ
42839 #include <sys/ioctl.h>
42840 #include <sys/soundcard.h>
d12aef51
VZ
42841
42842int
42843main ()
42844{
42845
a1b1cf33 42846 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42847
42848 ;
42849 return 0;
42850}
a848cd7e 42851_ACEOF
d12aef51
VZ
42852rm -f conftest.$ac_objext conftest$ac_exeext
42853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42854 (eval $ac_link) 2>conftest.er1
a848cd7e 42855 ac_status=$?
ac1cb8d3
VS
42856 grep -v '^ *+' conftest.er1 >conftest.err
42857 rm -f conftest.er1
42858 cat conftest.err >&5
a848cd7e
SC
42859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42860 (exit $ac_status); } &&
fd5199d6 42861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42863 (eval $ac_try) 2>&5
42864 ac_status=$?
42865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42866 (exit $ac_status); }; } &&
d12aef51 42867 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42869 (eval $ac_try) 2>&5
42870 ac_status=$?
42871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42872 (exit $ac_status); }; }; then
d12aef51 42873 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42874else
42875 echo "$as_me: failed program was:" >&5
42876sed 's/^/| /' conftest.$ac_ext >&5
42877
a848cd7e 42878
a1b1cf33
VZ
42879 saveLibs="$LIBS"
42880 LIBS="$saveLibs -lossaudio"
42881 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42882/* confdefs.h. */
42883_ACEOF
42884cat confdefs.h >>conftest.$ac_ext
42885cat >>conftest.$ac_ext <<_ACEOF
42886/* end confdefs.h. */
d12aef51 42887
a1b1cf33
VZ
42888 #include <sys/ioctl.h>
42889 #include <sys/soundcard.h>
d12aef51
VZ
42890
42891int
42892main ()
42893{
42894
a1b1cf33 42895 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42896
42897 ;
42898 return 0;
42899}
a848cd7e 42900_ACEOF
d12aef51
VZ
42901rm -f conftest.$ac_objext conftest$ac_exeext
42902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42903 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
42904 ac_status=$?
42905 grep -v '^ *+' conftest.er1 >conftest.err
42906 rm -f conftest.er1
42907 cat conftest.err >&5
42908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 42909 (exit $ac_status); } &&
fd5199d6 42910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
42911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42912 (eval $ac_try) 2>&5
42913 ac_status=$?
42914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42915 (exit $ac_status); }; } &&
42916 { ac_try='test -s conftest$ac_exeext'
42917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42918 (eval $ac_try) 2>&5
42919 ac_status=$?
42920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42921 (exit $ac_status); }; }; then
42922 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42923else
42924 echo "$as_me: failed program was:" >&5
42925sed 's/^/| /' conftest.$ac_ext >&5
42926
a848cd7e 42927
a1b1cf33
VZ
42928 LIBS="$saveLibs"
42929 ac_cv_header_sys_soundcard=no
d12aef51
VZ
42930
42931
a848cd7e 42932fi
d12aef51
VZ
42933rm -f conftest.err conftest.$ac_objext \
42934 conftest$ac_exeext conftest.$ac_ext
42935
a848cd7e
SC
42936
42937fi
d12aef51
VZ
42938rm -f conftest.err conftest.$ac_objext \
42939 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42940
42941fi
d12aef51
VZ
42942echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42943echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a1b1cf33 42944 fi
a848cd7e 42945
d12aef51
VZ
42946 if test "$ac_cv_header_sys_soundcard" = "yes"; then
42947 cat >>confdefs.h <<\_ACEOF
42948#define HAVE_SYS_SOUNDCARD_H 1
42949_ACEOF
a848cd7e 42950
d12aef51
VZ
42951 else
42952 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
42953 fi
9c112555 42954fi
a1b1cf33 42955
9c112555
MW
42956WITH_PLUGIN_SDL=0
42957if test "$wxUSE_SOUND" = "yes"; then
42958 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
42959 if test "$wxUSE_LIBSDL" != "no"; then
42960
42961# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
42962if test "${with_sdl_prefix+set}" = set; then
42963 withval="$with_sdl_prefix"
42964 sdl_prefix="$withval"
42965else
42966 sdl_prefix=""
42967fi;
42968
42969# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
42970if test "${with_sdl_exec_prefix+set}" = set; then
42971 withval="$with_sdl_exec_prefix"
42972 sdl_exec_prefix="$withval"
42973else
42974 sdl_exec_prefix=""
42975fi;
42976# Check whether --enable-sdltest or --disable-sdltest was given.
42977if test "${enable_sdltest+set}" = set; then
42978 enableval="$enable_sdltest"
42979
42980else
42981 enable_sdltest=yes
42982fi;
42983
42984 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
42985 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42986 if test x${SDL_CONFIG+set} != xset ; then
42987 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42988 fi
a848cd7e
SC
42989 fi
42990 if test x$sdl_prefix != x ; then
3ecd9f92
MW
42991 sdl_args="$sdl_args --prefix=$sdl_prefix"
42992 if test x${SDL_CONFIG+set} != xset ; then
42993 SDL_CONFIG=$sdl_prefix/bin/sdl-config
42994 fi
a848cd7e
SC
42995 fi
42996
3ecd9f92
MW
42997 if test "x$prefix" != xNONE; then
42998 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42999 fi
a848cd7e
SC
43000 # Extract the first word of "sdl-config", so it can be a program name with args.
43001set dummy sdl-config; ac_word=$2
43002echo "$as_me:$LINENO: checking for $ac_word" >&5
43003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43004if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
43005 echo $ECHO_N "(cached) $ECHO_C" >&6
43006else
43007 case $SDL_CONFIG in
43008 [\\/]* | ?:[\\/]*)
43009 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
43010 ;;
43011 *)
43012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43013for as_dir in $PATH
43014do
43015 IFS=$as_save_IFS
43016 test -z "$as_dir" && as_dir=.
43017 for ac_exec_ext in '' $ac_executable_extensions; do
43018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43019 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43021 break 2
43022 fi
43023done
43024done
43025
43026 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
43027 ;;
43028esac
43029fi
43030SDL_CONFIG=$ac_cv_path_SDL_CONFIG
43031
43032if test -n "$SDL_CONFIG"; then
43033 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
43034echo "${ECHO_T}$SDL_CONFIG" >&6
43035else
43036 echo "$as_me:$LINENO: result: no" >&5
43037echo "${ECHO_T}no" >&6
43038fi
43039
43040 min_sdl_version=1.2.0
43041 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
43042echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
43043 no_sdl=""
43044 if test "$SDL_CONFIG" = "no" ; then
43045 no_sdl=yes
43046 else
43047 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
43048 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
43049
43050 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
43051 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43052 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
43053 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43054 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
43055 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43056 if test "x$enable_sdltest" = "xyes" ; then
43057 ac_save_CFLAGS="$CFLAGS"
94acd38e 43058 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
43059 ac_save_LIBS="$LIBS"
43060 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 43061 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
43062 LIBS="$LIBS $SDL_LIBS"
43063 rm -f conf.sdltest
43064 if test "$cross_compiling" = yes; then
43065 echo $ac_n "cross compiling; assumed OK... $ac_c"
43066else
43067 cat >conftest.$ac_ext <<_ACEOF
43068/* confdefs.h. */
43069_ACEOF
43070cat confdefs.h >>conftest.$ac_ext
43071cat >>conftest.$ac_ext <<_ACEOF
43072/* end confdefs.h. */
43073
43074#include <stdio.h>
43075#include <stdlib.h>
43076#include <string.h>
43077#include "SDL.h"
43078
43079char*
43080my_strdup (char *str)
43081{
43082 char *new_str;
43083
43084 if (str)
43085 {
43086 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
43087 strcpy (new_str, str);
43088 }
43089 else
43090 new_str = NULL;
43091
43092 return new_str;
43093}
43094
43095int main (int argc, char *argv[])
43096{
43097 int major, minor, micro;
43098 char *tmp_version;
43099
43100 /* This hangs on some systems (?)
43101 system ("touch conf.sdltest");
43102 */
43103 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
43104
43105 /* HP/UX 9 (%@#!) writes to sscanf strings */
43106 tmp_version = my_strdup("$min_sdl_version");
43107 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
43108 printf("%s, bad version string\n", "$min_sdl_version");
43109 exit(1);
43110 }
43111
43112 if (($sdl_major_version > major) ||
43113 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
43114 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
43115 {
43116 return 0;
43117 }
43118 else
43119 {
43120 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
43121 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
43122 printf("*** best to upgrade to the required version.\n");
43123 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
43124 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
43125 printf("*** config.cache before re-running configure\n");
43126 return 1;
43127 }
43128}
43129
43130
43131_ACEOF
43132rm -f conftest$ac_exeext
43133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43134 (eval $ac_link) 2>&5
43135 ac_status=$?
43136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43139 (eval $ac_try) 2>&5
43140 ac_status=$?
43141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43142 (exit $ac_status); }; }; then
43143 :
43144else
43145 echo "$as_me: program exited with status $ac_status" >&5
43146echo "$as_me: failed program was:" >&5
43147sed 's/^/| /' conftest.$ac_ext >&5
43148
43149( exit $ac_status )
43150no_sdl=yes
43151fi
ac1cb8d3 43152rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43153fi
43154 CFLAGS="$ac_save_CFLAGS"
94acd38e 43155 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
43156 LIBS="$ac_save_LIBS"
43157 fi
43158 fi
43159 if test "x$no_sdl" = x ; then
43160 echo "$as_me:$LINENO: result: yes" >&5
43161echo "${ECHO_T}yes" >&6
43162
43163 EXTRALIBS_SDL="$SDL_LIBS"
9b8888f9 43164 CFLAGS="$SDL_CFLAGS $CFLAGS"
c92ad099 43165 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
43166 cat >>confdefs.h <<\_ACEOF
43167#define wxUSE_LIBSDL 1
43168_ACEOF
43169
43170
43171 else
43172 echo "$as_me:$LINENO: result: no" >&5
43173echo "${ECHO_T}no" >&6
43174 if test "$SDL_CONFIG" = "no" ; then
43175 echo "*** The sdl-config script installed by SDL could not be found"
43176 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
43177 echo "*** your path, or set the SDL_CONFIG environment variable to the"
43178 echo "*** full path to sdl-config."
43179 else
43180 if test -f conf.sdltest ; then
43181 :
43182 else
43183 echo "*** Could not run SDL test program, checking why..."
43184 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 43185 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
43186 LIBS="$LIBS $SDL_LIBS"
43187 cat >conftest.$ac_ext <<_ACEOF
43188/* confdefs.h. */
43189_ACEOF
43190cat confdefs.h >>conftest.$ac_ext
43191cat >>conftest.$ac_ext <<_ACEOF
43192/* end confdefs.h. */
43193
43194#include <stdio.h>
43195#include "SDL.h"
43196
43197int main(int argc, char *argv[])
43198{ return 0; }
43199#undef main
43200#define main K_and_R_C_main
43201
43202int
43203main ()
43204{
43205 return 0;
43206 ;
43207 return 0;
43208}
43209_ACEOF
43210rm -f conftest.$ac_objext conftest$ac_exeext
43211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43212 (eval $ac_link) 2>conftest.er1
a848cd7e 43213 ac_status=$?
ac1cb8d3
VS
43214 grep -v '^ *+' conftest.er1 >conftest.err
43215 rm -f conftest.er1
43216 cat conftest.err >&5
a848cd7e
SC
43217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43218 (exit $ac_status); } &&
fd5199d6 43219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43221 (eval $ac_try) 2>&5
43222 ac_status=$?
43223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43224 (exit $ac_status); }; } &&
43225 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43227 (eval $ac_try) 2>&5
43228 ac_status=$?
43229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43230 (exit $ac_status); }; }; then
43231 echo "*** The test program compiled, but did not run. This usually means"
43232 echo "*** that the run-time linker is not finding SDL or finding the wrong"
43233 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
43234 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
43235 echo "*** to the installed location Also, make sure you have run ldconfig if that"
43236 echo "*** is required on your system"
43237 echo "***"
43238 echo "*** If you have an old version installed, it is best to remove it, although"
43239 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
43240else
43241 echo "$as_me: failed program was:" >&5
43242sed 's/^/| /' conftest.$ac_ext >&5
43243
43244 echo "*** The test program failed to compile or link. See the file config.log for the"
43245 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
43246 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
43247 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
43248fi
ac1cb8d3
VS
43249rm -f conftest.err conftest.$ac_objext \
43250 conftest$ac_exeext conftest.$ac_ext
a848cd7e 43251 CFLAGS="$ac_save_CFLAGS"
94acd38e 43252 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
43253 LIBS="$ac_save_LIBS"
43254 fi
43255 fi
43256 SDL_CFLAGS=""
43257 SDL_LIBS=""
43258 wxUSE_LIBSDL="no"
43259 fi
43260
43261
43262 rm -f conf.sdltest
43263
43264 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
43265 WITH_PLUGIN_SDL=1
43266 fi
43267 fi
480b9f18
VZ
43268 else
43269 if test "$wxUSE_MGL" = 1; then
43270 { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
43271echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
43272 wxUSE_SOUND="no"
43273 fi
a848cd7e 43274 fi
480b9f18 43275fi
a848cd7e 43276
480b9f18 43277if test "$wxUSE_SOUND" = "yes"; then
a848cd7e
SC
43278 cat >>confdefs.h <<\_ACEOF
43279#define wxUSE_SOUND 1
43280_ACEOF
43281
43282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
43283fi
43284
d1c38808 43285if test "$WXGTK20" = 1; then
d6fb5527
VZ
43286
43287
43288if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
43289 if test -n "$ac_tool_prefix"; then
43290 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43291set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43292echo "$as_me:$LINENO: checking for $ac_word" >&5
43293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43294if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
43295 echo $ECHO_N "(cached) $ECHO_C" >&6
43296else
43297 case $PKG_CONFIG in
43298 [\\/]* | ?:[\\/]*)
43299 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
43300 ;;
43301 *)
43302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43303for as_dir in $PATH
43304do
43305 IFS=$as_save_IFS
43306 test -z "$as_dir" && as_dir=.
43307 for ac_exec_ext in '' $ac_executable_extensions; do
43308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43309 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43311 break 2
43312 fi
43313done
43314done
43315
43316 ;;
43317esac
43318fi
43319PKG_CONFIG=$ac_cv_path_PKG_CONFIG
43320
43321if test -n "$PKG_CONFIG"; then
43322 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
43323echo "${ECHO_T}$PKG_CONFIG" >&6
43324else
43325 echo "$as_me:$LINENO: result: no" >&5
43326echo "${ECHO_T}no" >&6
43327fi
43328
43329fi
43330if test -z "$ac_cv_path_PKG_CONFIG"; then
43331 ac_pt_PKG_CONFIG=$PKG_CONFIG
43332 # Extract the first word of "pkg-config", so it can be a program name with args.
43333set dummy pkg-config; ac_word=$2
43334echo "$as_me:$LINENO: checking for $ac_word" >&5
43335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43336if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
43337 echo $ECHO_N "(cached) $ECHO_C" >&6
43338else
43339 case $ac_pt_PKG_CONFIG in
43340 [\\/]* | ?:[\\/]*)
43341 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
43342 ;;
43343 *)
43344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43345for as_dir in $PATH
43346do
43347 IFS=$as_save_IFS
43348 test -z "$as_dir" && as_dir=.
43349 for ac_exec_ext in '' $ac_executable_extensions; do
43350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43351 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43353 break 2
43354 fi
43355done
43356done
43357
43358 ;;
43359esac
43360fi
43361ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
43362
43363if test -n "$ac_pt_PKG_CONFIG"; then
43364 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
43365echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
43366else
43367 echo "$as_me:$LINENO: result: no" >&5
43368echo "${ECHO_T}no" >&6
43369fi
43370
43371 PKG_CONFIG=$ac_pt_PKG_CONFIG
43372else
43373 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
43374fi
43375
43376fi
43377if test -n "$PKG_CONFIG"; then
43378 _pkg_min_version=0.9.0
43379 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
43380echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
43381 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
43382 echo "$as_me:$LINENO: result: yes" >&5
43383echo "${ECHO_T}yes" >&6
43384 else
43385 echo "$as_me:$LINENO: result: no" >&5
43386echo "${ECHO_T}no" >&6
43387 PKG_CONFIG=""
43388 fi
43389
43390fi
43391
d1c38808
VZ
43392 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43393 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
43394
43395
3ecd9f92
MW
43396pkg_failed=no
43397echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
43398echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 43399
3ecd9f92
MW
43400if test -n "$PKG_CONFIG"; then
43401 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
43402 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
43403 else
43404 if test -n "$PKG_CONFIG" && \
43405 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43406 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43407 ac_status=$?
43408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43409 (exit $ac_status); }; then
43410 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 43411else
3ecd9f92
MW
43412 pkg_failed=yes
43413fi
43414 fi
43415else
43416 pkg_failed=untried
d1c38808 43417fi
d1c38808 43418if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43419 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
43420 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
43421 else
43422 if test -n "$PKG_CONFIG" && \
43423 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43424 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43425 ac_status=$?
43426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43427 (exit $ac_status); }; then
43428 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 43429else
3ecd9f92
MW
43430 pkg_failed=yes
43431fi
43432 fi
43433else
43434 pkg_failed=untried
d1c38808
VZ
43435fi
43436
d1c38808 43437
d1c38808 43438
3ecd9f92 43439if test $pkg_failed = yes; then
d1c38808 43440
3ecd9f92
MW
43441if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43442 _pkg_short_errors_supported=yes
43443else
43444 _pkg_short_errors_supported=no
43445fi
43446 if test $_pkg_short_errors_supported = yes; then
43447 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
43448 else
43449 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 43450 fi
3ecd9f92
MW
43451 # Put the nasty error message in config.log where it belongs
43452 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
43453
43454
3ecd9f92
MW
43455 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43456echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43457 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
43458
43459
3ecd9f92 43460elif test $pkg_failed = untried; then
d1c38808
VZ
43461
43462 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43463echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43464 wxUSE_LIBGNOMEPRINT="no"
43465
43466
3ecd9f92
MW
43467else
43468 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
43469 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
43470 echo "$as_me:$LINENO: result: yes" >&5
43471echo "${ECHO_T}yes" >&6
d1c38808 43472
9b8888f9 43473 CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
3ecd9f92
MW
43474 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
43475 cat >>confdefs.h <<\_ACEOF
43476#define wxUSE_LIBGNOMEPRINT 1
43477_ACEOF
43478
43479
43480fi
d1c38808
VZ
43481 fi
43482 fi
d1c38808 43483
2b850ae1
RR
43484 if test "$wxUSE_MIMETYPE" = "yes" ; then
43485 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
43486
43487
3ecd9f92
MW
43488pkg_failed=no
43489echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
43490echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 43491
3ecd9f92
MW
43492if test -n "$PKG_CONFIG"; then
43493 if test -n "$GNOMEVFS_CFLAGS"; then
43494 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
43495 else
43496 if test -n "$PKG_CONFIG" && \
43497 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43498 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43499 ac_status=$?
43500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43501 (exit $ac_status); }; then
43502 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 43503else
3ecd9f92
MW
43504 pkg_failed=yes
43505fi
43506 fi
43507else
43508 pkg_failed=untried
2b850ae1 43509fi
2b850ae1 43510if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43511 if test -n "$GNOMEVFS_LIBS"; then
43512 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
43513 else
43514 if test -n "$PKG_CONFIG" && \
43515 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43516 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43517 ac_status=$?
43518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43519 (exit $ac_status); }; then
43520 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 43521else
3ecd9f92
MW
43522 pkg_failed=yes
43523fi
43524 fi
43525else
43526 pkg_failed=untried
2b850ae1
RR
43527fi
43528
2b850ae1 43529
2b850ae1 43530
3ecd9f92 43531if test $pkg_failed = yes; then
2b850ae1 43532
3ecd9f92
MW
43533if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43534 _pkg_short_errors_supported=yes
43535else
43536 _pkg_short_errors_supported=no
43537fi
43538 if test $_pkg_short_errors_supported = yes; then
43539 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43540 else
43541 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 43542 fi
3ecd9f92
MW
43543 # Put the nasty error message in config.log where it belongs
43544 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
43545
43546
3ecd9f92
MW
43547 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43548echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43549 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
43550
43551
3ecd9f92 43552elif test $pkg_failed = untried; then
2b850ae1
RR
43553
43554 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43555echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43556 wxUSE_LIBGNOMEVFS="no"
43557
43558
3ecd9f92
MW
43559else
43560 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43561 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
43562 echo "$as_me:$LINENO: result: yes" >&5
43563echo "${ECHO_T}yes" >&6
2b850ae1 43564
9b8888f9 43565 CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
3ecd9f92
MW
43566 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43567 cat >>confdefs.h <<\_ACEOF
43568#define wxUSE_LIBGNOMEVFS 1
43569_ACEOF
43570
43571
43572fi
2b850ae1
RR
43573 fi
43574 fi
2b850ae1 43575
3565d135
RR
43576 if test "$wxUSE_LIBHILDON" = "yes" ; then
43577
3ecd9f92
MW
43578pkg_failed=no
43579echo "$as_me:$LINENO: checking for HILDON" >&5
43580echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 43581
3ecd9f92
MW
43582if test -n "$PKG_CONFIG"; then
43583 if test -n "$HILDON_CFLAGS"; then
43584 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43585 else
43586 if test -n "$PKG_CONFIG" && \
43587 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43588 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43589 ac_status=$?
43590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43591 (exit $ac_status); }; then
43592 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 43593else
3ecd9f92
MW
43594 pkg_failed=yes
43595fi
43596 fi
43597else
43598 pkg_failed=untried
3565d135 43599fi
3565d135 43600if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43601 if test -n "$HILDON_LIBS"; then
43602 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43603 else
43604 if test -n "$PKG_CONFIG" && \
43605 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43606 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43607 ac_status=$?
43608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43609 (exit $ac_status); }; then
43610 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 43611else
3ecd9f92
MW
43612 pkg_failed=yes
43613fi
43614 fi
43615else
43616 pkg_failed=untried
3565d135
RR
43617fi
43618
3565d135 43619
3565d135 43620
3ecd9f92 43621if test $pkg_failed = yes; then
3565d135 43622
3ecd9f92
MW
43623if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43624 _pkg_short_errors_supported=yes
43625else
43626 _pkg_short_errors_supported=no
43627fi
43628 if test $_pkg_short_errors_supported = yes; then
43629 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43630 else
43631 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 43632 fi
3ecd9f92
MW
43633 # Put the nasty error message in config.log where it belongs
43634 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
43635
43636
3ecd9f92
MW
43637 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43638echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43639 wxUSE_LIBHILDON="no"
3565d135 43640
3565d135 43641
3ecd9f92
MW
43642elif test $pkg_failed = untried; then
43643
43644 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43645echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43646 wxUSE_LIBHILDON="no"
43647
43648
43649else
43650 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43651 HILDON_LIBS=$pkg_cv_HILDON_LIBS
43652 echo "$as_me:$LINENO: result: yes" >&5
43653echo "${ECHO_T}yes" >&6
3565d135
RR
43654
43655 EXTRALIBS_HILDON="$HILDON_LIBS"
9b8888f9 43656 CFLAGS="$CFLAGS $HILDON_CFLAGS"
3565d135
RR
43657 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43658 cat >>confdefs.h <<\_ACEOF
43659#define wxUSE_LIBHILDON 1
43660_ACEOF
43661
43662
3ecd9f92 43663fi
3565d135
RR
43664 fi
43665fi
d1c38808 43666
a848cd7e
SC
43667if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43668 cat >>confdefs.h <<\_ACEOF
43669#define wxUSE_CMDLINE_PARSER 1
43670_ACEOF
43671
43672fi
43673
43674if test "$wxUSE_STOPWATCH" = "yes"; then
43675 cat >>confdefs.h <<\_ACEOF
43676#define wxUSE_STOPWATCH 1
43677_ACEOF
43678
43679fi
43680
43681if test "$wxUSE_DATETIME" = "yes"; then
43682 cat >>confdefs.h <<\_ACEOF
43683#define wxUSE_DATETIME 1
43684_ACEOF
43685
43686fi
43687
43688if test "$wxUSE_FILE" = "yes"; then
43689 cat >>confdefs.h <<\_ACEOF
43690#define wxUSE_FILE 1
43691_ACEOF
43692
43693fi
43694
43695if test "$wxUSE_FFILE" = "yes"; then
43696 cat >>confdefs.h <<\_ACEOF
43697#define wxUSE_FFILE 1
43698_ACEOF
43699
43700fi
43701
9e8e867f 43702if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
26e422a9
MW
43703 if test "$wxUSE_STREAMS" != yes; then
43704 { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
43705echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
916af76f 43706 wxUSE_ARCHIVE_STREAMS=no
26e422a9
MW
43707 else
43708 cat >>confdefs.h <<\_ACEOF
9e8e867f 43709#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
43710_ACEOF
43711
26e422a9 43712 fi
81f90336
MW
43713fi
43714
43715if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 43716 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
43717 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43718echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43719 elif test "$wxUSE_ZLIB" = "no"; then
43720 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43721echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43722 else
43723 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43724#define wxUSE_ZIPSTREAM 1
43725_ACEOF
43726
81f90336 43727 fi
a848cd7e
SC
43728fi
43729
26e422a9
MW
43730if test "$wxUSE_TARSTREAM" = "yes"; then
43731 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43732 { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
43733echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
43734 else
43735 cat >>confdefs.h <<\_ACEOF
43736#define wxUSE_TARSTREAM 1
43737_ACEOF
43738
43739 fi
43740fi
43741
916af76f 43742if test "$wxUSE_FILESYSTEM" = "yes"; then
f8f6c91a 43743 if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
916af76f
MW
43744 { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
43745echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43746 wxUSE_FILESYSTEM=no
f8f6c91a
MW
43747 else
43748 cat >>confdefs.h <<\_ACEOF
916af76f 43749#define wxUSE_FILESYSTEM 1
f8f6c91a
MW
43750_ACEOF
43751
43752 fi
43753fi
43754
26e422a9 43755if test "$wxUSE_FS_ARCHIVE" = "yes"; then
916af76f
MW
43756 if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
43757 { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
43758echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
26e422a9
MW
43759 else
43760 cat >>confdefs.h <<\_ACEOF
43761#define wxUSE_FS_ARCHIVE 1
43762_ACEOF
43763
43764 fi
43765fi
43766
916af76f
MW
43767if test "$wxUSE_FS_ZIP" = "yes"; then
43768 if test "$wxUSE_FS_ARCHIVE" != yes; then
43769 { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
43770echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
43771 else
43772 cat >>confdefs.h <<\_ACEOF
43773#define wxUSE_FS_ZIP 1
43774_ACEOF
43775
43776 fi
43777fi
43778
a848cd7e 43779if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
43780 if test "$USE_UNIX" != 1; then
43781 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43782echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43783 wxUSE_ON_FATAL_EXCEPTION=no
43784 else
43785 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43786#define wxUSE_ON_FATAL_EXCEPTION 1
43787_ACEOF
43788
18228ab4 43789 fi
a848cd7e
SC
43790fi
43791
eaff0f0d
VZ
43792if test "$wxUSE_STACKWALKER" = "yes"; then
43793 cat >>confdefs.h <<\_ACEOF
43794#define wxUSE_STACKWALKER 1
43795_ACEOF
43796
43797fi
43798
36b6448c 43799if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
43800 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
43801 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43802echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
43803 wxUSE_DEBUGREPORT=no
43804 else
43805 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
43806#define wxUSE_DEBUGREPORT 1
43807_ACEOF
43808
21dfc162
MW
43809 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43810 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43811 fi
dfe0c803 43812 fi
36b6448c
VZ
43813fi
43814
a848cd7e
SC
43815if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43816 cat >>confdefs.h <<\_ACEOF
43817#define wxUSE_SNGLINST_CHECKER 1
43818_ACEOF
43819
43820fi
43821
43822if test "$wxUSE_BUSYINFO" = "yes"; then
43823 cat >>confdefs.h <<\_ACEOF
43824#define wxUSE_BUSYINFO 1
43825_ACEOF
43826
43827fi
43828
43829if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43830 cat >>confdefs.h <<\_ACEOF
43831#define wxUSE_STD_IOSTREAM 1
43832_ACEOF
43833
43834fi
43835
59746b65
MW
43836if test "$wxUSE_STD_STRING" = "yes"; then
43837 cat >>confdefs.h <<\_ACEOF
43838#define wxUSE_STD_STRING 1
43839_ACEOF
43840
43841fi
43842
07158944
VZ
43843if test "$wxUSE_STDPATHS" = "yes"; then
43844 cat >>confdefs.h <<\_ACEOF
43845#define wxUSE_STDPATHS 1
43846_ACEOF
43847
43848fi
43849
a848cd7e
SC
43850if test "$wxUSE_TEXTBUFFER" = "yes"; then
43851 cat >>confdefs.h <<\_ACEOF
43852#define wxUSE_TEXTBUFFER 1
43853_ACEOF
43854
43855fi
43856
43857if test "$wxUSE_TEXTFILE" = "yes"; then
43858 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43859 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43860echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43861 else
43862 cat >>confdefs.h <<\_ACEOF
43863#define wxUSE_TEXTFILE 1
43864_ACEOF
43865
43866 fi
43867fi
43868
43869if test "$wxUSE_CONFIG" = "yes" ; then
43870 if test "$wxUSE_TEXTFILE" != "yes"; then
43871 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43872echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43873 else
43874 cat >>confdefs.h <<\_ACEOF
43875#define wxUSE_CONFIG 1
89be85c2
VS
43876_ACEOF
43877
43878 cat >>confdefs.h <<\_ACEOF
43879#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
43880_ACEOF
43881
43882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43883 fi
43884fi
43885
43886if test "$wxUSE_INTL" = "yes" ; then
43887 if test "$wxUSE_FILE" != "yes"; then
43888 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43889echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43890 else
43891 cat >>confdefs.h <<\_ACEOF
43892#define wxUSE_INTL 1
43893_ACEOF
43894
43895 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43896 GUIDIST="$GUIDIST INTL_DIST"
43897 fi
43898fi
43899
43900if test "$wxUSE_LOG" = "yes"; then
43901 cat >>confdefs.h <<\_ACEOF
43902#define wxUSE_LOG 1
43903_ACEOF
43904
43905
43906 if test "$wxUSE_LOGGUI" = "yes"; then
43907 cat >>confdefs.h <<\_ACEOF
43908#define wxUSE_LOGGUI 1
43909_ACEOF
43910
43911 fi
43912
43913 if test "$wxUSE_LOGWINDOW" = "yes"; then
43914 cat >>confdefs.h <<\_ACEOF
43915#define wxUSE_LOGWINDOW 1
43916_ACEOF
43917
43918 fi
43919
43920 if test "$wxUSE_LOGDIALOG" = "yes"; then
43921 cat >>confdefs.h <<\_ACEOF
43922#define wxUSE_LOG_DIALOG 1
43923_ACEOF
43924
43925 fi
0b78747f
MW
43926
43927 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
43928fi
43929
43930if test "$wxUSE_LONGLONG" = "yes"; then
43931 cat >>confdefs.h <<\_ACEOF
43932#define wxUSE_LONGLONG 1
43933_ACEOF
43934
43935fi
43936
43937if test "$wxUSE_GEOMETRY" = "yes"; then
43938 cat >>confdefs.h <<\_ACEOF
43939#define wxUSE_GEOMETRY 1
43940_ACEOF
43941
43942fi
43943
a848cd7e
SC
43944if test "$wxUSE_STREAMS" = "yes" ; then
43945 cat >>confdefs.h <<\_ACEOF
43946#define wxUSE_STREAMS 1
43947_ACEOF
43948
43949fi
43950
8b6682b9
JS
43951if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43952 cat >>confdefs.h <<\_ACEOF
43953#define wxUSE_PRINTF_POS_PARAMS 1
43954_ACEOF
43955
43956fi
43957
43958
a848cd7e
SC
43959
43960if test "$wxUSE_DATETIME" = "yes"; then
43961
43962for ac_func in strptime
43963do
43964as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43965echo "$as_me:$LINENO: checking for $ac_func" >&5
43966echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43967if eval "test \"\${$as_ac_var+set}\" = set"; then
43968 echo $ECHO_N "(cached) $ECHO_C" >&6
43969else
43970 cat >conftest.$ac_ext <<_ACEOF
43971/* confdefs.h. */
43972_ACEOF
43973cat confdefs.h >>conftest.$ac_ext
43974cat >>conftest.$ac_ext <<_ACEOF
43975/* end confdefs.h. */
ac1cb8d3
VS
43976/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43978#define $ac_func innocuous_$ac_func
43979
a848cd7e
SC
43980/* System header to define __stub macros and hopefully few prototypes,
43981 which can conflict with char $ac_func (); below.
43982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43983 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43984
a848cd7e
SC
43985#ifdef __STDC__
43986# include <limits.h>
43987#else
43988# include <assert.h>
43989#endif
ac1cb8d3
VS
43990
43991#undef $ac_func
43992
a848cd7e
SC
43993/* Override any gcc2 internal prototype to avoid an error. */
43994#ifdef __cplusplus
43995extern "C"
43996{
43997#endif
43998/* We use char because int might match the return type of a gcc2
43999 builtin and then its argument prototype would still apply. */
44000char $ac_func ();
44001/* The GNU C library defines this for functions which it implements
44002 to always fail with ENOSYS. Some functions are actually named
44003 something starting with __ and the normal name is an alias. */
44004#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44005choke me
44006#else
44007char (*f) () = $ac_func;
44008#endif
44009#ifdef __cplusplus
44010}
44011#endif
44012
44013int
44014main ()
44015{
44016return f != $ac_func;
44017 ;
44018 return 0;
44019}
44020_ACEOF
44021rm -f conftest.$ac_objext conftest$ac_exeext
44022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44023 (eval $ac_link) 2>conftest.er1
a848cd7e 44024 ac_status=$?
ac1cb8d3
VS
44025 grep -v '^ *+' conftest.er1 >conftest.err
44026 rm -f conftest.er1
44027 cat conftest.err >&5
a848cd7e
SC
44028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44029 (exit $ac_status); } &&
fd5199d6 44030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44032 (eval $ac_try) 2>&5
44033 ac_status=$?
44034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44035 (exit $ac_status); }; } &&
44036 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44038 (eval $ac_try) 2>&5
44039 ac_status=$?
44040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44041 (exit $ac_status); }; }; then
44042 eval "$as_ac_var=yes"
44043else
44044 echo "$as_me: failed program was:" >&5
44045sed 's/^/| /' conftest.$ac_ext >&5
44046
44047eval "$as_ac_var=no"
44048fi
ac1cb8d3
VS
44049rm -f conftest.err conftest.$ac_objext \
44050 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44051fi
44052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44053echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44054if test `eval echo '${'$as_ac_var'}'` = yes; then
44055 cat >>confdefs.h <<_ACEOF
44056#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44057_ACEOF
44058
44059fi
44060done
44061
f536f005
VZ
44062 if test "$ac_cv_func_strptime" = "yes"; then
44063 echo "$as_me:$LINENO: checking for strptime declaration" >&5
44064echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
44065if test "${wx_cv_func_strptime_decl+set}" = set; then
44066 echo $ECHO_N "(cached) $ECHO_C" >&6
44067else
44068
9b8888f9
VZ
44069 ac_ext=cc
44070ac_cpp='$CXXCPP $CPPFLAGS'
44071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44074
f536f005
VZ
44075 cat >conftest.$ac_ext <<_ACEOF
44076/* confdefs.h. */
44077_ACEOF
44078cat confdefs.h >>conftest.$ac_ext
44079cat >>conftest.$ac_ext <<_ACEOF
44080/* end confdefs.h. */
44081
44082 #include <time.h>
44083
44084int
44085main ()
44086{
44087
44088 struct tm t;
44089 strptime("foo", "bar", &t);
44090
44091 ;
44092 return 0;
44093}
44094_ACEOF
44095rm -f conftest.$ac_objext
44096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44097 (eval $ac_compile) 2>conftest.er1
44098 ac_status=$?
44099 grep -v '^ *+' conftest.er1 >conftest.err
44100 rm -f conftest.er1
44101 cat conftest.err >&5
44102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44103 (exit $ac_status); } &&
9b8888f9 44104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
44105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44106 (eval $ac_try) 2>&5
44107 ac_status=$?
44108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44109 (exit $ac_status); }; } &&
44110 { ac_try='test -s conftest.$ac_objext'
44111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44112 (eval $ac_try) 2>&5
44113 ac_status=$?
44114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44115 (exit $ac_status); }; }; then
44116 wx_cv_func_strptime_decl=yes
44117else
44118 echo "$as_me: failed program was:" >&5
44119sed 's/^/| /' conftest.$ac_ext >&5
44120
44121wx_cv_func_strptime_decl=no
44122
44123fi
44124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
44125 ac_ext=c
44126ac_cpp='$CPP $CPPFLAGS'
44127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44129ac_compiler_gnu=$ac_cv_c_compiler_gnu
44130
f536f005
VZ
44131
44132
44133fi
44134echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
44135echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
44136 fi
44137 if test "$wx_cv_func_strptime_decl" = "yes"; then
44138 cat >>confdefs.h <<\_ACEOF
44139#define HAVE_STRPTIME_DECL 1
44140_ACEOF
44141
44142 fi
a848cd7e
SC
44143
44144 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
44145echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
44146if test "${wx_cv_var_timezone+set}" = set; then
44147 echo $ECHO_N "(cached) $ECHO_C" >&6
44148else
44149
715d53e4
VZ
44150 ac_ext=cc
44151ac_cpp='$CXXCPP $CPPFLAGS'
44152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44155
a848cd7e
SC
44156 cat >conftest.$ac_ext <<_ACEOF
44157/* confdefs.h. */
44158_ACEOF
44159cat confdefs.h >>conftest.$ac_ext
44160cat >>conftest.$ac_ext <<_ACEOF
44161/* end confdefs.h. */
44162
44163 #include <time.h>
44164
44165int
44166main ()
44167{
44168
44169 int tz;
44170 tz = timezone;
44171
44172 ;
44173 return 0;
44174}
44175_ACEOF
44176rm -f conftest.$ac_objext
44177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44178 (eval $ac_compile) 2>conftest.er1
a848cd7e 44179 ac_status=$?
ac1cb8d3
VS
44180 grep -v '^ *+' conftest.er1 >conftest.err
44181 rm -f conftest.er1
44182 cat conftest.err >&5
a848cd7e
SC
44183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44184 (exit $ac_status); } &&
715d53e4 44185 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44187 (eval $ac_try) 2>&5
44188 ac_status=$?
44189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44190 (exit $ac_status); }; } &&
44191 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44193 (eval $ac_try) 2>&5
44194 ac_status=$?
44195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44196 (exit $ac_status); }; }; then
44197
44198 wx_cv_var_timezone=timezone
44199
44200else
44201 echo "$as_me: failed program was:" >&5
44202sed 's/^/| /' conftest.$ac_ext >&5
44203
44204
44205 cat >conftest.$ac_ext <<_ACEOF
44206/* confdefs.h. */
44207_ACEOF
44208cat confdefs.h >>conftest.$ac_ext
44209cat >>conftest.$ac_ext <<_ACEOF
44210/* end confdefs.h. */
44211
44212 #include <time.h>
44213
44214int
44215main ()
44216{
44217
44218 int tz;
44219 tz = _timezone;
44220
44221 ;
44222 return 0;
44223}
44224_ACEOF
44225rm -f conftest.$ac_objext
44226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44227 (eval $ac_compile) 2>conftest.er1
a848cd7e 44228 ac_status=$?
ac1cb8d3
VS
44229 grep -v '^ *+' conftest.er1 >conftest.err
44230 rm -f conftest.er1
44231 cat conftest.err >&5
a848cd7e
SC
44232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44233 (exit $ac_status); } &&
715d53e4 44234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44236 (eval $ac_try) 2>&5
44237 ac_status=$?
44238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44239 (exit $ac_status); }; } &&
44240 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44242 (eval $ac_try) 2>&5
44243 ac_status=$?
44244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44245 (exit $ac_status); }; }; then
44246
44247 wx_cv_var_timezone=_timezone
44248
44249else
44250 echo "$as_me: failed program was:" >&5
44251sed 's/^/| /' conftest.$ac_ext >&5
44252
44253
44254 cat >conftest.$ac_ext <<_ACEOF
44255/* confdefs.h. */
44256_ACEOF
44257cat confdefs.h >>conftest.$ac_ext
44258cat >>conftest.$ac_ext <<_ACEOF
44259/* end confdefs.h. */
44260
44261 #include <time.h>
44262
44263int
44264main ()
44265{
44266
44267 int tz;
44268 tz = __timezone;
44269
44270 ;
44271 return 0;
44272}
44273_ACEOF
44274rm -f conftest.$ac_objext
44275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44276 (eval $ac_compile) 2>conftest.er1
a848cd7e 44277 ac_status=$?
ac1cb8d3
VS
44278 grep -v '^ *+' conftest.er1 >conftest.err
44279 rm -f conftest.er1
44280 cat conftest.err >&5
a848cd7e
SC
44281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44282 (exit $ac_status); } &&
715d53e4 44283 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44285 (eval $ac_try) 2>&5
44286 ac_status=$?
44287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44288 (exit $ac_status); }; } &&
44289 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44291 (eval $ac_try) 2>&5
44292 ac_status=$?
44293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44294 (exit $ac_status); }; }; then
44295
44296 wx_cv_var_timezone=__timezone
44297
44298else
44299 echo "$as_me: failed program was:" >&5
44300sed 's/^/| /' conftest.$ac_ext >&5
44301
44302
44303 if test "$USE_DOS" = 0 ; then
44304 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
44305echo "$as_me: WARNING: no timezone variable" >&2;}
44306 fi
44307
44308
44309fi
ac1cb8d3 44310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44311
44312
44313fi
ac1cb8d3 44314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44315
44316
44317fi
ac1cb8d3 44318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
715d53e4
VZ
44319 ac_ext=c
44320ac_cpp='$CPP $CPPFLAGS'
44321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44323ac_compiler_gnu=$ac_cv_c_compiler_gnu
44324
a848cd7e
SC
44325
44326
44327fi
44328echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
44329echo "${ECHO_T}$wx_cv_var_timezone" >&6
44330
44331 if test "x$wx_cv_var_timezone" != x ; then
44332 cat >>confdefs.h <<_ACEOF
44333#define WX_TIMEZONE $wx_cv_var_timezone
44334_ACEOF
44335
44336 fi
44337
44338
44339for ac_func in localtime
44340do
44341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44342echo "$as_me:$LINENO: checking for $ac_func" >&5
44343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44344if eval "test \"\${$as_ac_var+set}\" = set"; then
44345 echo $ECHO_N "(cached) $ECHO_C" >&6
44346else
44347 cat >conftest.$ac_ext <<_ACEOF
44348/* confdefs.h. */
44349_ACEOF
44350cat confdefs.h >>conftest.$ac_ext
44351cat >>conftest.$ac_ext <<_ACEOF
44352/* end confdefs.h. */
ac1cb8d3
VS
44353/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44355#define $ac_func innocuous_$ac_func
44356
a848cd7e
SC
44357/* System header to define __stub macros and hopefully few prototypes,
44358 which can conflict with char $ac_func (); below.
44359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44360 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44361
a848cd7e
SC
44362#ifdef __STDC__
44363# include <limits.h>
44364#else
44365# include <assert.h>
44366#endif
ac1cb8d3
VS
44367
44368#undef $ac_func
44369
a848cd7e
SC
44370/* Override any gcc2 internal prototype to avoid an error. */
44371#ifdef __cplusplus
44372extern "C"
44373{
44374#endif
44375/* We use char because int might match the return type of a gcc2
44376 builtin and then its argument prototype would still apply. */
44377char $ac_func ();
44378/* The GNU C library defines this for functions which it implements
44379 to always fail with ENOSYS. Some functions are actually named
44380 something starting with __ and the normal name is an alias. */
44381#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44382choke me
44383#else
44384char (*f) () = $ac_func;
44385#endif
44386#ifdef __cplusplus
44387}
44388#endif
44389
44390int
44391main ()
44392{
44393return f != $ac_func;
44394 ;
44395 return 0;
44396}
44397_ACEOF
44398rm -f conftest.$ac_objext conftest$ac_exeext
44399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44400 (eval $ac_link) 2>conftest.er1
a848cd7e 44401 ac_status=$?
ac1cb8d3
VS
44402 grep -v '^ *+' conftest.er1 >conftest.err
44403 rm -f conftest.er1
44404 cat conftest.err >&5
a848cd7e
SC
44405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44406 (exit $ac_status); } &&
fd5199d6 44407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44409 (eval $ac_try) 2>&5
44410 ac_status=$?
44411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44412 (exit $ac_status); }; } &&
44413 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44415 (eval $ac_try) 2>&5
44416 ac_status=$?
44417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44418 (exit $ac_status); }; }; then
44419 eval "$as_ac_var=yes"
44420else
44421 echo "$as_me: failed program was:" >&5
44422sed 's/^/| /' conftest.$ac_ext >&5
44423
44424eval "$as_ac_var=no"
44425fi
ac1cb8d3
VS
44426rm -f conftest.err conftest.$ac_objext \
44427 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44428fi
44429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44430echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44431if test `eval echo '${'$as_ac_var'}'` = yes; then
44432 cat >>confdefs.h <<_ACEOF
44433#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44434_ACEOF
44435
44436fi
44437done
44438
44439
44440 if test "$ac_cv_func_localtime" = "yes"; then
44441 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44442echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
44443if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44444 echo $ECHO_N "(cached) $ECHO_C" >&6
44445else
44446
44447 cat >conftest.$ac_ext <<_ACEOF
44448/* confdefs.h. */
44449_ACEOF
44450cat confdefs.h >>conftest.$ac_ext
44451cat >>conftest.$ac_ext <<_ACEOF
44452/* end confdefs.h. */
44453
44454 #include <time.h>
44455
44456int
44457main ()
44458{
44459
44460 struct tm tm;
44461 tm.tm_gmtoff++;
44462
44463 ;
44464 return 0;
44465}
44466_ACEOF
44467rm -f conftest.$ac_objext
44468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44469 (eval $ac_compile) 2>conftest.er1
a848cd7e 44470 ac_status=$?
ac1cb8d3
VS
44471 grep -v '^ *+' conftest.er1 >conftest.err
44472 rm -f conftest.er1
44473 cat conftest.err >&5
a848cd7e
SC
44474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44475 (exit $ac_status); } &&
fd5199d6 44476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44478 (eval $ac_try) 2>&5
44479 ac_status=$?
44480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44481 (exit $ac_status); }; } &&
44482 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44484 (eval $ac_try) 2>&5
44485 ac_status=$?
44486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44487 (exit $ac_status); }; }; then
44488
44489 wx_cv_struct_tm_has_gmtoff=yes
44490
44491else
44492 echo "$as_me: failed program was:" >&5
44493sed 's/^/| /' conftest.$ac_ext >&5
44494
44495wx_cv_struct_tm_has_gmtoff=no
44496
44497fi
ac1cb8d3 44498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44499
44500fi
44501echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44502echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
44503 fi
44504
44505 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44506 cat >>confdefs.h <<\_ACEOF
44507#define WX_GMTOFF_IN_TM 1
44508_ACEOF
44509
44510 fi
44511
44512
44513
44514for ac_func in gettimeofday ftime
44515do
44516as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44517echo "$as_me:$LINENO: checking for $ac_func" >&5
44518echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44519if eval "test \"\${$as_ac_var+set}\" = set"; then
44520 echo $ECHO_N "(cached) $ECHO_C" >&6
44521else
44522 cat >conftest.$ac_ext <<_ACEOF
44523/* confdefs.h. */
44524_ACEOF
44525cat confdefs.h >>conftest.$ac_ext
44526cat >>conftest.$ac_ext <<_ACEOF
44527/* end confdefs.h. */
ac1cb8d3
VS
44528/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44530#define $ac_func innocuous_$ac_func
44531
a848cd7e
SC
44532/* System header to define __stub macros and hopefully few prototypes,
44533 which can conflict with char $ac_func (); below.
44534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44535 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44536
a848cd7e
SC
44537#ifdef __STDC__
44538# include <limits.h>
44539#else
44540# include <assert.h>
44541#endif
ac1cb8d3
VS
44542
44543#undef $ac_func
44544
a848cd7e
SC
44545/* Override any gcc2 internal prototype to avoid an error. */
44546#ifdef __cplusplus
44547extern "C"
44548{
44549#endif
44550/* We use char because int might match the return type of a gcc2
44551 builtin and then its argument prototype would still apply. */
44552char $ac_func ();
44553/* The GNU C library defines this for functions which it implements
44554 to always fail with ENOSYS. Some functions are actually named
44555 something starting with __ and the normal name is an alias. */
44556#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44557choke me
44558#else
44559char (*f) () = $ac_func;
44560#endif
44561#ifdef __cplusplus
44562}
44563#endif
44564
44565int
44566main ()
44567{
44568return f != $ac_func;
44569 ;
44570 return 0;
44571}
44572_ACEOF
44573rm -f conftest.$ac_objext conftest$ac_exeext
44574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44575 (eval $ac_link) 2>conftest.er1
a848cd7e 44576 ac_status=$?
ac1cb8d3
VS
44577 grep -v '^ *+' conftest.er1 >conftest.err
44578 rm -f conftest.er1
44579 cat conftest.err >&5
a848cd7e
SC
44580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44581 (exit $ac_status); } &&
fd5199d6 44582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44584 (eval $ac_try) 2>&5
44585 ac_status=$?
44586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44587 (exit $ac_status); }; } &&
44588 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44590 (eval $ac_try) 2>&5
44591 ac_status=$?
44592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44593 (exit $ac_status); }; }; then
44594 eval "$as_ac_var=yes"
44595else
44596 echo "$as_me: failed program was:" >&5
44597sed 's/^/| /' conftest.$ac_ext >&5
44598
44599eval "$as_ac_var=no"
44600fi
ac1cb8d3
VS
44601rm -f conftest.err conftest.$ac_objext \
44602 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44603fi
44604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44605echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44606if test `eval echo '${'$as_ac_var'}'` = yes; then
44607 cat >>confdefs.h <<_ACEOF
44608#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44609_ACEOF
44610 break
44611fi
44612done
44613
44614
44615 if test "$ac_cv_func_gettimeofday" = "yes"; then
44616 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
44617echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
44618if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
44619 echo $ECHO_N "(cached) $ECHO_C" >&6
44620else
44621
5d7b7554 44622 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
44623/* confdefs.h. */
44624_ACEOF
44625cat confdefs.h >>conftest.$ac_ext
44626cat >>conftest.$ac_ext <<_ACEOF
44627/* end confdefs.h. */
44628
44629 #include <sys/time.h>
44630 #include <unistd.h>
44631
44632int
44633main ()
44634{
44635
44636 struct timeval tv;
44637 gettimeofday(&tv, NULL);
44638
44639 ;
44640 return 0;
44641}
44642_ACEOF
44643rm -f conftest.$ac_objext
44644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44645 (eval $ac_compile) 2>conftest.er1
a848cd7e 44646 ac_status=$?
ac1cb8d3
VS
44647 grep -v '^ *+' conftest.er1 >conftest.err
44648 rm -f conftest.er1
44649 cat conftest.err >&5
a848cd7e
SC
44650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44651 (exit $ac_status); } &&
fd5199d6 44652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44654 (eval $ac_try) 2>&5
44655 ac_status=$?
44656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44657 (exit $ac_status); }; } &&
44658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44660 (eval $ac_try) 2>&5
44661 ac_status=$?
44662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44663 (exit $ac_status); }; }; then
44664 wx_cv_func_gettimeofday_has_2_args=yes
44665else
44666 echo "$as_me: failed program was:" >&5
44667sed 's/^/| /' conftest.$ac_ext >&5
44668
44669cat >conftest.$ac_ext <<_ACEOF
44670/* confdefs.h. */
44671_ACEOF
44672cat confdefs.h >>conftest.$ac_ext
44673cat >>conftest.$ac_ext <<_ACEOF
44674/* end confdefs.h. */
44675
44676 #include <sys/time.h>
44677 #include <unistd.h>
44678
44679int
44680main ()
44681{
44682
44683 struct timeval tv;
44684 gettimeofday(&tv);
44685
44686 ;
44687 return 0;
44688}
44689_ACEOF
44690rm -f conftest.$ac_objext
44691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44692 (eval $ac_compile) 2>conftest.er1
a848cd7e 44693 ac_status=$?
ac1cb8d3
VS
44694 grep -v '^ *+' conftest.er1 >conftest.err
44695 rm -f conftest.er1
44696 cat conftest.err >&5
a848cd7e
SC
44697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44698 (exit $ac_status); } &&
fd5199d6 44699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44701 (eval $ac_try) 2>&5
44702 ac_status=$?
44703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44704 (exit $ac_status); }; } &&
44705 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44707 (eval $ac_try) 2>&5
44708 ac_status=$?
44709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44710 (exit $ac_status); }; }; then
44711 wx_cv_func_gettimeofday_has_2_args=no
44712else
44713 echo "$as_me: failed program was:" >&5
44714sed 's/^/| /' conftest.$ac_ext >&5
44715
44716
44717 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
44718echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
44719 wx_cv_func_gettimeofday_has_2_args=unknown
44720
44721
44722fi
ac1cb8d3 44723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44724
44725fi
ac1cb8d3 44726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44727
44728fi
44729echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
44730echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
44731
44732 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
44733 cat >>confdefs.h <<\_ACEOF
44734#define WX_GETTIMEOFDAY_NO_TZ 1
44735_ACEOF
44736
44737 fi
44738 fi
44739
44740 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44741fi
44742
44743
44744if test "$wxUSE_SOCKETS" = "yes"; then
44745 if test "$wxUSE_MGL" = "1"; then
44746 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44747echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44748 wxUSE_SOCKETS="no"
44749 fi
44750fi
44751
44752if test "$wxUSE_SOCKETS" = "yes"; then
44753 if test "$TOOLKIT" != "MSW"; then
44754 echo "$as_me:$LINENO: checking for socket" >&5
44755echo $ECHO_N "checking for socket... $ECHO_C" >&6
44756if test "${ac_cv_func_socket+set}" = set; then
44757 echo $ECHO_N "(cached) $ECHO_C" >&6
44758else
44759 cat >conftest.$ac_ext <<_ACEOF
44760/* confdefs.h. */
44761_ACEOF
44762cat confdefs.h >>conftest.$ac_ext
44763cat >>conftest.$ac_ext <<_ACEOF
44764/* end confdefs.h. */
ac1cb8d3
VS
44765/* Define socket to an innocuous variant, in case <limits.h> declares socket.
44766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44767#define socket innocuous_socket
44768
a848cd7e
SC
44769/* System header to define __stub macros and hopefully few prototypes,
44770 which can conflict with char socket (); below.
44771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44772 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44773
a848cd7e
SC
44774#ifdef __STDC__
44775# include <limits.h>
44776#else
44777# include <assert.h>
44778#endif
ac1cb8d3
VS
44779
44780#undef socket
44781
a848cd7e
SC
44782/* Override any gcc2 internal prototype to avoid an error. */
44783#ifdef __cplusplus
44784extern "C"
44785{
44786#endif
44787/* We use char because int might match the return type of a gcc2
44788 builtin and then its argument prototype would still apply. */
44789char socket ();
44790/* The GNU C library defines this for functions which it implements
44791 to always fail with ENOSYS. Some functions are actually named
44792 something starting with __ and the normal name is an alias. */
44793#if defined (__stub_socket) || defined (__stub___socket)
44794choke me
44795#else
44796char (*f) () = socket;
44797#endif
44798#ifdef __cplusplus
44799}
44800#endif
44801
44802int
44803main ()
44804{
44805return f != socket;
44806 ;
44807 return 0;
44808}
44809_ACEOF
44810rm -f conftest.$ac_objext conftest$ac_exeext
44811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44812 (eval $ac_link) 2>conftest.er1
a848cd7e 44813 ac_status=$?
ac1cb8d3
VS
44814 grep -v '^ *+' conftest.er1 >conftest.err
44815 rm -f conftest.er1
44816 cat conftest.err >&5
a848cd7e
SC
44817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44818 (exit $ac_status); } &&
fd5199d6 44819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44821 (eval $ac_try) 2>&5
44822 ac_status=$?
44823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44824 (exit $ac_status); }; } &&
44825 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44827 (eval $ac_try) 2>&5
44828 ac_status=$?
44829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44830 (exit $ac_status); }; }; then
44831 ac_cv_func_socket=yes
44832else
44833 echo "$as_me: failed program was:" >&5
44834sed 's/^/| /' conftest.$ac_ext >&5
44835
44836ac_cv_func_socket=no
44837fi
ac1cb8d3
VS
44838rm -f conftest.err conftest.$ac_objext \
44839 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44840fi
44841echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44842echo "${ECHO_T}$ac_cv_func_socket" >&6
44843if test $ac_cv_func_socket = yes; then
44844 :
44845else
44846
44847 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44848echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
44849if test "${ac_cv_lib_socket_socket+set}" = set; then
44850 echo $ECHO_N "(cached) $ECHO_C" >&6
44851else
44852 ac_check_lib_save_LIBS=$LIBS
44853LIBS="-lsocket $LIBS"
44854cat >conftest.$ac_ext <<_ACEOF
44855/* confdefs.h. */
44856_ACEOF
44857cat confdefs.h >>conftest.$ac_ext
44858cat >>conftest.$ac_ext <<_ACEOF
44859/* end confdefs.h. */
44860
44861/* Override any gcc2 internal prototype to avoid an error. */
44862#ifdef __cplusplus
44863extern "C"
44864#endif
44865/* We use char because int might match the return type of a gcc2
44866 builtin and then its argument prototype would still apply. */
44867char socket ();
44868int
44869main ()
44870{
44871socket ();
44872 ;
44873 return 0;
44874}
44875_ACEOF
44876rm -f conftest.$ac_objext conftest$ac_exeext
44877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44878 (eval $ac_link) 2>conftest.er1
a848cd7e 44879 ac_status=$?
ac1cb8d3
VS
44880 grep -v '^ *+' conftest.er1 >conftest.err
44881 rm -f conftest.er1
44882 cat conftest.err >&5
a848cd7e
SC
44883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44884 (exit $ac_status); } &&
fd5199d6 44885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44887 (eval $ac_try) 2>&5
44888 ac_status=$?
44889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44890 (exit $ac_status); }; } &&
44891 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44893 (eval $ac_try) 2>&5
44894 ac_status=$?
44895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44896 (exit $ac_status); }; }; then
44897 ac_cv_lib_socket_socket=yes
44898else
44899 echo "$as_me: failed program was:" >&5
44900sed 's/^/| /' conftest.$ac_ext >&5
44901
44902ac_cv_lib_socket_socket=no
44903fi
ac1cb8d3
VS
44904rm -f conftest.err conftest.$ac_objext \
44905 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44906LIBS=$ac_check_lib_save_LIBS
44907fi
44908echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44909echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
44910if test $ac_cv_lib_socket_socket = yes; then
44911 if test "$INET_LINK" != " -lsocket"; then
44912 INET_LINK="$INET_LINK -lsocket"
44913 fi
44914else
44915
44916 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44917echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44918 wxUSE_SOCKETS=no
44919
44920
44921fi
44922
44923
44924
44925fi
44926
44927 fi
44928fi
44929
44930if test "$wxUSE_SOCKETS" = "yes" ; then
44931 if test "$TOOLKIT" != "MSW"; then
5d7b7554 44932 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
44933echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
44934if test "${wx_cv_type_getsockname3+set}" = set; then
44935 echo $ECHO_N "(cached) $ECHO_C" >&6
44936else
44937
9b8888f9
VZ
44938 ac_ext=cc
44939ac_cpp='$CXXCPP $CPPFLAGS'
44940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44943
a848cd7e
SC
44944 cat >conftest.$ac_ext <<_ACEOF
44945/* confdefs.h. */
44946_ACEOF
44947cat confdefs.h >>conftest.$ac_ext
44948cat >>conftest.$ac_ext <<_ACEOF
44949/* end confdefs.h. */
44950
44951 #include <sys/types.h>
44952 #include <sys/socket.h>
44953
44954int
44955main ()
44956{
44957
44958 socklen_t len;
44959 getsockname(0, 0, &len);
44960
44961 ;
44962 return 0;
44963}
44964_ACEOF
44965rm -f conftest.$ac_objext
44966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44967 (eval $ac_compile) 2>conftest.er1
a848cd7e 44968 ac_status=$?
ac1cb8d3
VS
44969 grep -v '^ *+' conftest.er1 >conftest.err
44970 rm -f conftest.er1
44971 cat conftest.err >&5
a848cd7e
SC
44972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44973 (exit $ac_status); } &&
9b8888f9 44974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44976 (eval $ac_try) 2>&5
44977 ac_status=$?
44978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44979 (exit $ac_status); }; } &&
44980 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44982 (eval $ac_try) 2>&5
44983 ac_status=$?
44984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44985 (exit $ac_status); }; }; then
44986 wx_cv_type_getsockname3=socklen_t
44987else
44988 echo "$as_me: failed program was:" >&5
44989sed 's/^/| /' conftest.$ac_ext >&5
44990
44991
9b8888f9 44992 CFLAGS_OLD="$CFLAGS"
a848cd7e 44993 if test "$GCC" = yes ; then
9b8888f9 44994 CFLAGS="-Werror $CFLAGS"
a848cd7e
SC
44995 fi
44996
44997 cat >conftest.$ac_ext <<_ACEOF
44998/* confdefs.h. */
44999_ACEOF
45000cat confdefs.h >>conftest.$ac_ext
45001cat >>conftest.$ac_ext <<_ACEOF
45002/* end confdefs.h. */
45003
45004 #include <sys/types.h>
45005 #include <sys/socket.h>
45006
45007int
45008main ()
45009{
45010
45011 size_t len;
45012 getsockname(0, 0, &len);
45013
45014 ;
45015 return 0;
45016}
45017_ACEOF
45018rm -f conftest.$ac_objext
45019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45020 (eval $ac_compile) 2>conftest.er1
a848cd7e 45021 ac_status=$?
ac1cb8d3
VS
45022 grep -v '^ *+' conftest.er1 >conftest.err
45023 rm -f conftest.er1
45024 cat conftest.err >&5
a848cd7e
SC
45025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45026 (exit $ac_status); } &&
9b8888f9 45027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45029 (eval $ac_try) 2>&5
45030 ac_status=$?
45031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45032 (exit $ac_status); }; } &&
45033 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45035 (eval $ac_try) 2>&5
45036 ac_status=$?
45037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45038 (exit $ac_status); }; }; then
45039 wx_cv_type_getsockname3=size_t
45040else
45041 echo "$as_me: failed program was:" >&5
45042sed 's/^/| /' conftest.$ac_ext >&5
45043
45044cat >conftest.$ac_ext <<_ACEOF
45045/* confdefs.h. */
45046_ACEOF
45047cat confdefs.h >>conftest.$ac_ext
45048cat >>conftest.$ac_ext <<_ACEOF
45049/* end confdefs.h. */
45050
45051 #include <sys/types.h>
45052 #include <sys/socket.h>
45053
45054int
45055main ()
45056{
45057
45058 int len;
45059 getsockname(0, 0, &len);
45060
45061 ;
45062 return 0;
45063}
45064_ACEOF
45065rm -f conftest.$ac_objext
45066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45067 (eval $ac_compile) 2>conftest.er1
a848cd7e 45068 ac_status=$?
ac1cb8d3
VS
45069 grep -v '^ *+' conftest.er1 >conftest.err
45070 rm -f conftest.er1
45071 cat conftest.err >&5
a848cd7e
SC
45072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45073 (exit $ac_status); } &&
9b8888f9 45074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45076 (eval $ac_try) 2>&5
45077 ac_status=$?
45078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45079 (exit $ac_status); }; } &&
45080 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45082 (eval $ac_try) 2>&5
45083 ac_status=$?
45084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45085 (exit $ac_status); }; }; then
45086 wx_cv_type_getsockname3=int
45087else
45088 echo "$as_me: failed program was:" >&5
45089sed 's/^/| /' conftest.$ac_ext >&5
45090
45091wx_cv_type_getsockname3=unknown
45092
45093fi
ac1cb8d3 45094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45095
45096fi
ac1cb8d3 45097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 45098
9b8888f9 45099 CFLAGS="$CFLAGS_OLD"
a848cd7e
SC
45100
45101
45102fi
ac1cb8d3 45103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
45104 ac_ext=c
45105ac_cpp='$CPP $CPPFLAGS'
45106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45108ac_compiler_gnu=$ac_cv_c_compiler_gnu
45109
a848cd7e
SC
45110
45111fi
45112echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
45113echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
45114
45115 if test "$wx_cv_type_getsockname3" = "unknown"; then
45116 wxUSE_SOCKETS=no
45117 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
45118echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
45119 else
45120 cat >>confdefs.h <<_ACEOF
9e03e02d 45121#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
45122_ACEOF
45123
45124 fi
45125 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
45126echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
45127if test "${wx_cv_type_getsockopt5+set}" = set; then
45128 echo $ECHO_N "(cached) $ECHO_C" >&6
45129else
45130
45131 cat >conftest.$ac_ext <<_ACEOF
45132/* confdefs.h. */
45133_ACEOF
45134cat confdefs.h >>conftest.$ac_ext
45135cat >>conftest.$ac_ext <<_ACEOF
45136/* end confdefs.h. */
45137
45138 #include <sys/types.h>
45139 #include <sys/socket.h>
45140
45141int
45142main ()
45143{
45144
45145 socklen_t len;
45146 getsockopt(0, 0, 0, 0, &len);
45147
45148 ;
45149 return 0;
45150}
45151_ACEOF
45152rm -f conftest.$ac_objext
45153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45154 (eval $ac_compile) 2>conftest.er1
45155 ac_status=$?
45156 grep -v '^ *+' conftest.er1 >conftest.err
45157 rm -f conftest.er1
45158 cat conftest.err >&5
45159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45160 (exit $ac_status); } &&
fd5199d6 45161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
45162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45163 (eval $ac_try) 2>&5
45164 ac_status=$?
45165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45166 (exit $ac_status); }; } &&
45167 { ac_try='test -s conftest.$ac_objext'
45168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45169 (eval $ac_try) 2>&5
45170 ac_status=$?
45171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45172 (exit $ac_status); }; }; then
45173 wx_cv_type_getsockopt5=socklen_t
45174else
45175 echo "$as_me: failed program was:" >&5
45176sed 's/^/| /' conftest.$ac_ext >&5
45177
45178
e43101ee
SN
45179 ac_ext=cc
45180ac_cpp='$CXXCPP $CPPFLAGS'
45181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5b674b9d
DE
45184
45185 cat >conftest.$ac_ext <<_ACEOF
45186/* confdefs.h. */
45187_ACEOF
45188cat confdefs.h >>conftest.$ac_ext
45189cat >>conftest.$ac_ext <<_ACEOF
45190/* end confdefs.h. */
45191
45192 #include <sys/types.h>
45193 #include <sys/socket.h>
45194
45195int
45196main ()
45197{
45198
45199 size_t len;
45200 getsockopt(0, 0, 0, 0, &len);
45201
45202 ;
45203 return 0;
45204}
45205_ACEOF
45206rm -f conftest.$ac_objext
45207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45208 (eval $ac_compile) 2>conftest.er1
45209 ac_status=$?
45210 grep -v '^ *+' conftest.er1 >conftest.err
45211 rm -f conftest.er1
45212 cat conftest.err >&5
45213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45214 (exit $ac_status); } &&
e43101ee 45215 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
45216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45217 (eval $ac_try) 2>&5
45218 ac_status=$?
45219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45220 (exit $ac_status); }; } &&
45221 { ac_try='test -s conftest.$ac_objext'
45222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45223 (eval $ac_try) 2>&5
45224 ac_status=$?
45225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45226 (exit $ac_status); }; }; then
45227 wx_cv_type_getsockopt5=size_t
45228else
45229 echo "$as_me: failed program was:" >&5
45230sed 's/^/| /' conftest.$ac_ext >&5
45231
45232cat >conftest.$ac_ext <<_ACEOF
45233/* confdefs.h. */
45234_ACEOF
45235cat confdefs.h >>conftest.$ac_ext
45236cat >>conftest.$ac_ext <<_ACEOF
45237/* end confdefs.h. */
45238
45239 #include <sys/types.h>
45240 #include <sys/socket.h>
45241
45242int
45243main ()
45244{
45245
45246 int len;
45247 getsockopt(0, 0, 0, 0, &len);
45248
45249 ;
45250 return 0;
45251}
45252_ACEOF
45253rm -f conftest.$ac_objext
45254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45255 (eval $ac_compile) 2>conftest.er1
45256 ac_status=$?
45257 grep -v '^ *+' conftest.er1 >conftest.err
45258 rm -f conftest.er1
45259 cat conftest.err >&5
45260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45261 (exit $ac_status); } &&
e43101ee 45262 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
45263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45264 (eval $ac_try) 2>&5
45265 ac_status=$?
45266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45267 (exit $ac_status); }; } &&
45268 { ac_try='test -s conftest.$ac_objext'
45269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45270 (eval $ac_try) 2>&5
45271 ac_status=$?
45272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45273 (exit $ac_status); }; }; then
45274 wx_cv_type_getsockopt5=int
45275else
45276 echo "$as_me: failed program was:" >&5
45277sed 's/^/| /' conftest.$ac_ext >&5
45278
45279wx_cv_type_getsockopt5=unknown
45280
45281fi
45282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45283
45284fi
45285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e43101ee
SN
45286 ac_ext=c
45287ac_cpp='$CPP $CPPFLAGS'
45288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45290ac_compiler_gnu=$ac_cv_c_compiler_gnu
5b674b9d 45291
5b674b9d
DE
45292
45293
45294fi
45295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45296
45297fi
45298echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
45299echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
45300
45301 if test "$wx_cv_type_getsockopt5" = "unknown"; then
45302 wxUSE_SOCKETS=no
45303 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
45304echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
45305 else
45306 cat >>confdefs.h <<_ACEOF
45307#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
45308_ACEOF
45309
45310 fi
45311 fi
45312fi
45313
45314if test "$wxUSE_SOCKETS" = "yes" ; then
45315 cat >>confdefs.h <<\_ACEOF
45316#define wxUSE_SOCKETS 1
45317_ACEOF
45318
45319 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
45320fi
45321
45322if test "$wxUSE_PROTOCOL" = "yes"; then
45323 if test "$wxUSE_SOCKETS" != "yes"; then
45324 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
45325echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
45326 wxUSE_PROTOCOL=no
45327 fi
45328fi
45329
45330if test "$wxUSE_PROTOCOL" = "yes"; then
45331 cat >>confdefs.h <<\_ACEOF
45332#define wxUSE_PROTOCOL 1
45333_ACEOF
45334
45335
45336 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
45337 cat >>confdefs.h <<\_ACEOF
45338#define wxUSE_PROTOCOL_HTTP 1
45339_ACEOF
45340
45341 fi
45342 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
45343 cat >>confdefs.h <<\_ACEOF
45344#define wxUSE_PROTOCOL_FTP 1
45345_ACEOF
45346
45347 fi
45348 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
45349 cat >>confdefs.h <<\_ACEOF
45350#define wxUSE_PROTOCOL_FILE 1
45351_ACEOF
45352
45353 fi
45354else
45355 if test "$wxUSE_FS_INET" = "yes"; then
45356 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
45357echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
45358 wxUSE_FS_INET="no"
45359 fi
45360fi
45361
45362if test "$wxUSE_URL" = "yes"; then
45363 if test "$wxUSE_PROTOCOL" != "yes"; then
45364 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
45365echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
45366 wxUSE_URL=no
45367 fi
45368 if test "$wxUSE_URL" = "yes"; then
45369 cat >>confdefs.h <<\_ACEOF
45370#define wxUSE_URL 1
45371_ACEOF
45372
45373 fi
45374fi
45375
ca5c6ac3
VZ
45376if test "$wxUSE_VARIANT" = "yes"; then
45377 cat >>confdefs.h <<\_ACEOF
45378#define wxUSE_VARIANT 1
45379_ACEOF
45380
45381fi
45382
a848cd7e
SC
45383if test "$wxUSE_FS_INET" = "yes"; then
45384 cat >>confdefs.h <<\_ACEOF
45385#define wxUSE_FS_INET 1
45386_ACEOF
45387
45388fi
45389
45390
ee45c548
MW
45391if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
45392 wxUSE_JOYSTICK=no
45393
45394 if test "$TOOLKIT" = "MSW"; then
45395 wxUSE_JOYSTICK=yes
45396
45397 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
45398 if test "$USE_DARWIN" = 1; then
45399 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
45400echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
9b8888f9
VZ
45401 ac_ext=cc
45402ac_cpp='$CXXCPP $CPPFLAGS'
45403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45406
ee45c548
MW
45407 cat >conftest.$ac_ext <<_ACEOF
45408/* confdefs.h. */
45409_ACEOF
45410cat confdefs.h >>conftest.$ac_ext
45411cat >>conftest.$ac_ext <<_ACEOF
45412/* end confdefs.h. */
45413 #include <IOKit/hid/IOHIDLib.h>
45414int
45415main ()
45416{
45417 IOHIDQueueInterface *qi = NULL;
45418 IOHIDCallbackFunction cb = NULL;
45419 qi->setEventCallout(NULL, cb, NULL, NULL);
45420 ;
45421 return 0;
45422}
45423_ACEOF
45424rm -f conftest.$ac_objext
45425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45426 (eval $ac_compile) 2>conftest.er1
45427 ac_status=$?
45428 grep -v '^ *+' conftest.er1 >conftest.err
45429 rm -f conftest.er1
45430 cat conftest.err >&5
45431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45432 (exit $ac_status); } &&
9b8888f9 45433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
45434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45435 (eval $ac_try) 2>&5
45436 ac_status=$?
45437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45438 (exit $ac_status); }; } &&
45439 { ac_try='test -s conftest.$ac_objext'
45440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45441 (eval $ac_try) 2>&5
45442 ac_status=$?
45443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45444 (exit $ac_status); }; }; then
45445 wxUSE_JOYSTICK=yes
a848cd7e 45446
ee45c548
MW
45447else
45448 echo "$as_me: failed program was:" >&5
45449sed 's/^/| /' conftest.$ac_ext >&5
45450
45451fi
45452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
45453 ac_ext=c
45454ac_cpp='$CPP $CPPFLAGS'
45455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45457ac_compiler_gnu=$ac_cv_c_compiler_gnu
45458
ee45c548
MW
45459 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
45460echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
45461 fi
45462
45463 else
b6814e24 45464 if test "$wxUSE_MGL" != "1"; then
ddbd3cd5
VZ
45465 echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
45466echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6
45467if test "${ac_cv_header_linux_joystick_h+set}" = set; then
a848cd7e 45468 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 45469else
ddbd3cd5 45470 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
45471/* confdefs.h. */
45472_ACEOF
45473cat confdefs.h >>conftest.$ac_ext
45474cat >>conftest.$ac_ext <<_ACEOF
45475/* end confdefs.h. */
ddbd3cd5
VZ
45476#include <stdio.h>
45477
45478#include <linux/joystick.h>
a848cd7e
SC
45479_ACEOF
45480rm -f conftest.$ac_objext
45481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45482 (eval $ac_compile) 2>conftest.er1
a848cd7e 45483 ac_status=$?
ac1cb8d3
VS
45484 grep -v '^ *+' conftest.er1 >conftest.err
45485 rm -f conftest.er1
45486 cat conftest.err >&5
a848cd7e
SC
45487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45488 (exit $ac_status); } &&
fd5199d6 45489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45491 (eval $ac_try) 2>&5
45492 ac_status=$?
45493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45494 (exit $ac_status); }; } &&
45495 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45497 (eval $ac_try) 2>&5
45498 ac_status=$?
45499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45500 (exit $ac_status); }; }; then
ddbd3cd5 45501 ac_cv_header_linux_joystick_h=yes
a848cd7e
SC
45502else
45503 echo "$as_me: failed program was:" >&5
45504sed 's/^/| /' conftest.$ac_ext >&5
45505
ddbd3cd5 45506ac_cv_header_linux_joystick_h=no
a848cd7e 45507fi
ac1cb8d3 45508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 45509fi
ddbd3cd5
VZ
45510echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
45511echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6
45512if test $ac_cv_header_linux_joystick_h = yes; then
45513 wxUSE_JOYSTICK=yes
a848cd7e 45514fi
a848cd7e 45515
a848cd7e 45516
b6814e24 45517 fi
ee45c548 45518 fi
4cb1d3da 45519
ee45c548
MW
45520 if test "$wxUSE_JOYSTICK" = "yes"; then
45521 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45522#define wxUSE_JOYSTICK 1
45523_ACEOF
45524
ee45c548
MW
45525 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45526 else
45527 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45528echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
45529 fi
45530fi
45531
45532
45533
45534if test "$wxUSE_FONTMAP" = "yes" ; then
45535 cat >>confdefs.h <<\_ACEOF
45536#define wxUSE_FONTMAP 1
45537_ACEOF
45538
45539fi
45540
45541if test "$wxUSE_UNICODE" = "yes" ; then
45542 cat >>confdefs.h <<\_ACEOF
45543#define wxUSE_UNICODE 1
45544_ACEOF
45545
45546
45547 if test "$USE_WIN32" != 1; then
45548 wxUSE_UNICODE_MSLU=no
45549 fi
45550
45551 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45552 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45553echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
45554if test "${ac_cv_lib_unicows_main+set}" = set; then
45555 echo $ECHO_N "(cached) $ECHO_C" >&6
45556else
45557 ac_check_lib_save_LIBS=$LIBS
45558LIBS="-lunicows $LIBS"
45559cat >conftest.$ac_ext <<_ACEOF
45560/* confdefs.h. */
45561_ACEOF
45562cat confdefs.h >>conftest.$ac_ext
45563cat >>conftest.$ac_ext <<_ACEOF
45564/* end confdefs.h. */
45565
45566
45567int
45568main ()
45569{
45570main ();
45571 ;
45572 return 0;
45573}
45574_ACEOF
45575rm -f conftest.$ac_objext conftest$ac_exeext
45576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 45577 (eval $ac_link) 2>conftest.er1
a848cd7e 45578 ac_status=$?
ac1cb8d3
VS
45579 grep -v '^ *+' conftest.er1 >conftest.err
45580 rm -f conftest.er1
45581 cat conftest.err >&5
a848cd7e
SC
45582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45583 (exit $ac_status); } &&
fd5199d6 45584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45586 (eval $ac_try) 2>&5
45587 ac_status=$?
45588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45589 (exit $ac_status); }; } &&
45590 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
45591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45592 (eval $ac_try) 2>&5
45593 ac_status=$?
45594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45595 (exit $ac_status); }; }; then
45596 ac_cv_lib_unicows_main=yes
45597else
45598 echo "$as_me: failed program was:" >&5
45599sed 's/^/| /' conftest.$ac_ext >&5
45600
45601ac_cv_lib_unicows_main=no
45602fi
ac1cb8d3
VS
45603rm -f conftest.err conftest.$ac_objext \
45604 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
45605LIBS=$ac_check_lib_save_LIBS
45606fi
45607echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45608echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
45609if test $ac_cv_lib_unicows_main = yes; then
45610
45611 cat >>confdefs.h <<\_ACEOF
45612#define wxUSE_UNICODE_MSLU 1
45613_ACEOF
45614
45615
45616else
45617
45618 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45619 Applications will only run on Windows NT/2000/XP!" >&5
45620echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45621 Applications will only run on Windows NT/2000/XP!" >&2;}
45622 wxUSE_UNICODE_MSLU=no
45623
45624fi
45625
45626 fi
45627fi
45628
45629if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
45630 cat >>confdefs.h <<\_ACEOF
45631#define wxUSE_EXPERIMENTAL_PRINTF 1
45632_ACEOF
45633
45634fi
45635
45636
45637if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45638 cat >>confdefs.h <<\_ACEOF
45639#define wxUSE_POSTSCRIPT 1
45640_ACEOF
45641
45642fi
45643
45644cat >>confdefs.h <<\_ACEOF
45645#define wxUSE_AFM_FOR_POSTSCRIPT 1
45646_ACEOF
45647
45648
45649cat >>confdefs.h <<\_ACEOF
45650#define wxUSE_NORMALIZED_PS_FONTS 1
45651_ACEOF
45652
45653
45654
45655if test "$wxUSE_CONSTRAINTS" = "yes"; then
45656 cat >>confdefs.h <<\_ACEOF
45657#define wxUSE_CONSTRAINTS 1
45658_ACEOF
45659
45660 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45661fi
45662
8a7b1113
VZ
45663if test "$wxUSE_MDI" = "yes"; then
45664 cat >>confdefs.h <<\_ACEOF
45665#define wxUSE_MDI 1
45666_ACEOF
45667
45668
45669 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45670 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45671#define wxUSE_MDI_ARCHITECTURE 1
45672_ACEOF
45673
8a7b1113
VZ
45674 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45675 fi
a848cd7e
SC
45676fi
45677
45678if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45679 cat >>confdefs.h <<\_ACEOF
45680#define wxUSE_DOC_VIEW_ARCHITECTURE 1
45681_ACEOF
45682
45683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45684 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45685 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
45686 fi
45687fi
45688
45689if test "$wxUSE_HELP" = "yes"; then
45690 cat >>confdefs.h <<\_ACEOF
45691#define wxUSE_HELP 1
45692_ACEOF
45693
45694 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45695
45696 if test "$wxUSE_MSW" = 1; then
45697 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45698 cat >>confdefs.h <<\_ACEOF
45699#define wxUSE_MS_HTML_HELP 1
45700_ACEOF
45701
45702 fi
45703 fi
45704
45705 if test "$wxUSE_WXHTML_HELP" = "yes"; then
45706 if test "$wxUSE_HTML" = "yes"; then
45707 cat >>confdefs.h <<\_ACEOF
45708#define wxUSE_WXHTML_HELP 1
45709_ACEOF
45710
45711 else
45712 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45713echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45714 wxUSE_WXHTML_HELP=no
45715 fi
45716 fi
45717fi
45718
45719if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45720 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45721 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
45722echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
45723 else
45724 cat >>confdefs.h <<\_ACEOF
45725#define wxUSE_PRINTING_ARCHITECTURE 1
45726_ACEOF
45727
45728 fi
45729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45730fi
45731
45732if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
45733 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
45734echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
45735 { (exit 1); exit 1; }; }
45736fi
45737
45738
efdf6afe
VZ
45739if test "$wxUSE_METAFILE" = "yes"; then
45740 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45741 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45742echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45743 wxUSE_METAFILE=no
45744 fi
45745fi
45746
45747
a848cd7e
SC
45748if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
45749 -o "$wxUSE_CLIPBOARD" = "yes" \
45750 -o "$wxUSE_OLE" = "yes" \
45751 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45752
45753for ac_header in ole2.h
45754do
45755as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45756if eval "test \"\${$as_ac_Header+set}\" = set"; then
45757 echo "$as_me:$LINENO: checking for $ac_header" >&5
45758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45759if eval "test \"\${$as_ac_Header+set}\" = set"; then
45760 echo $ECHO_N "(cached) $ECHO_C" >&6
45761fi
45762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45764else
45765 # Is the header compilable?
45766echo "$as_me:$LINENO: checking $ac_header usability" >&5
45767echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45768cat >conftest.$ac_ext <<_ACEOF
45769/* confdefs.h. */
45770_ACEOF
45771cat confdefs.h >>conftest.$ac_ext
45772cat >>conftest.$ac_ext <<_ACEOF
45773/* end confdefs.h. */
45774$ac_includes_default
45775#include <$ac_header>
45776_ACEOF
45777rm -f conftest.$ac_objext
45778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45779 (eval $ac_compile) 2>conftest.er1
a848cd7e 45780 ac_status=$?
ac1cb8d3
VS
45781 grep -v '^ *+' conftest.er1 >conftest.err
45782 rm -f conftest.er1
45783 cat conftest.err >&5
a848cd7e
SC
45784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45785 (exit $ac_status); } &&
fd5199d6 45786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45788 (eval $ac_try) 2>&5
45789 ac_status=$?
45790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45791 (exit $ac_status); }; } &&
45792 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45794 (eval $ac_try) 2>&5
45795 ac_status=$?
45796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45797 (exit $ac_status); }; }; then
45798 ac_header_compiler=yes
45799else
45800 echo "$as_me: failed program was:" >&5
45801sed 's/^/| /' conftest.$ac_ext >&5
45802
45803ac_header_compiler=no
45804fi
ac1cb8d3 45805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45806echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45807echo "${ECHO_T}$ac_header_compiler" >&6
45808
45809# Is the header present?
45810echo "$as_me:$LINENO: checking $ac_header presence" >&5
45811echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45812cat >conftest.$ac_ext <<_ACEOF
45813/* confdefs.h. */
45814_ACEOF
45815cat confdefs.h >>conftest.$ac_ext
45816cat >>conftest.$ac_ext <<_ACEOF
45817/* end confdefs.h. */
45818#include <$ac_header>
45819_ACEOF
45820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45822 ac_status=$?
45823 grep -v '^ *+' conftest.er1 >conftest.err
45824 rm -f conftest.er1
45825 cat conftest.err >&5
45826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45827 (exit $ac_status); } >/dev/null; then
45828 if test -s conftest.err; then
fd5199d6
VZ
45829 ac_cpp_err=$ac_c_preproc_warn_flag
45830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
45831 else
45832 ac_cpp_err=
45833 fi
45834else
45835 ac_cpp_err=yes
45836fi
45837if test -z "$ac_cpp_err"; then
45838 ac_header_preproc=yes
45839else
45840 echo "$as_me: failed program was:" >&5
45841sed 's/^/| /' conftest.$ac_ext >&5
45842
45843 ac_header_preproc=no
45844fi
45845rm -f conftest.err conftest.$ac_ext
45846echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45847echo "${ECHO_T}$ac_header_preproc" >&6
45848
45849# So? What about this header?
fd5199d6 45850case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 45851 yes:no: )
a848cd7e
SC
45852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45853echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
45854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45855echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45856 ac_header_preproc=yes
a848cd7e 45857 ;;
ac1cb8d3 45858 no:yes:* )
a848cd7e
SC
45859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45860echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
45861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45862echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45864echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45866echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
45867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45868echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
45869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45870echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
45871 (
45872 cat <<\_ASBOX
ac1cb8d3
VS
45873## ----------------------------------------- ##
45874## Report this to wx-dev@lists.wxwidgets.org ##
45875## ----------------------------------------- ##
a848cd7e
SC
45876_ASBOX
45877 ) |
45878 sed "s/^/$as_me: WARNING: /" >&2
45879 ;;
45880esac
45881echo "$as_me:$LINENO: checking for $ac_header" >&5
45882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45883if eval "test \"\${$as_ac_Header+set}\" = set"; then
45884 echo $ECHO_N "(cached) $ECHO_C" >&6
45885else
ac1cb8d3 45886 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
45887fi
45888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45890
45891fi
45892if test `eval echo '${'$as_ac_Header'}'` = yes; then
45893 cat >>confdefs.h <<_ACEOF
45894#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45895_ACEOF
45896
45897fi
45898
45899done
45900
45901
45902 if test "$ac_cv_header_ole2_h" = "yes" ; then
45903 if test "$GCC" = yes ; then
a848cd7e
SC
45904 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45905echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
45906 cat >conftest.$ac_ext <<_ACEOF
45907/* confdefs.h. */
45908_ACEOF
45909cat confdefs.h >>conftest.$ac_ext
45910cat >>conftest.$ac_ext <<_ACEOF
45911/* end confdefs.h. */
45912#include <windows.h>
45913 #include <ole2.h>
45914int
45915main ()
45916{
45917
45918 ;
45919 return 0;
45920}
45921_ACEOF
45922rm -f conftest.$ac_objext
45923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45924 (eval $ac_compile) 2>conftest.er1
a848cd7e 45925 ac_status=$?
ac1cb8d3
VS
45926 grep -v '^ *+' conftest.er1 >conftest.err
45927 rm -f conftest.er1
45928 cat conftest.err >&5
a848cd7e
SC
45929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45930 (exit $ac_status); } &&
fd5199d6 45931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45933 (eval $ac_try) 2>&5
45934 ac_status=$?
45935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45936 (exit $ac_status); }; } &&
45937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45939 (eval $ac_try) 2>&5
45940 ac_status=$?
45941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45942 (exit $ac_status); }; }; then
45943 echo "$as_me:$LINENO: result: no" >&5
45944echo "${ECHO_T}no" >&6
45945else
45946 echo "$as_me: failed program was:" >&5
45947sed 's/^/| /' conftest.$ac_ext >&5
45948
45949echo "$as_me:$LINENO: result: yes" >&5
45950echo "${ECHO_T}yes" >&6
5ff751d6 45951 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 45952fi
ac1cb8d3 45953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45954 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45955 if test "$wxUSE_OLE" = "yes" ; then
45956 cat >>confdefs.h <<\_ACEOF
45957#define wxUSE_OLE 1
f43426c1
RD
45958_ACEOF
45959
45960 cat >>confdefs.h <<\_ACEOF
45961#define wxUSE_OLE_AUTOMATION 1
45962_ACEOF
45963
45964 cat >>confdefs.h <<\_ACEOF
45965#define wxUSE_OLE_ACTIVEX 1
a848cd7e
SC
45966_ACEOF
45967
0b78747f 45968 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
45969 fi
45970 fi
45971
45972 if test "$wxUSE_DATAOBJ" = "yes" ; then
45973 cat >>confdefs.h <<\_ACEOF
45974#define wxUSE_DATAOBJ 1
45975_ACEOF
45976
45977 fi
45978 else
45979 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45980echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45981
45982 wxUSE_CLIPBOARD=no
45983 wxUSE_DRAG_AND_DROP=no
45984 wxUSE_DATAOBJ=no
45985 wxUSE_OLE=no
45986 fi
45987
45988 if test "$wxUSE_METAFILE" = "yes"; then
45989 cat >>confdefs.h <<\_ACEOF
45990#define wxUSE_METAFILE 1
45991_ACEOF
45992
45993
45994 cat >>confdefs.h <<\_ACEOF
45995#define wxUSE_ENH_METAFILE 1
45996_ACEOF
45997
45998 fi
45999fi
46000
46001if test "$wxUSE_IPC" = "yes"; then
0b78747f 46002 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
46003 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
46004echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 46005 wxUSE_IPC=no
a848cd7e
SC
46006 fi
46007
0b78747f
MW
46008 if test "$wxUSE_IPC" = "yes"; then
46009 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
46010#define wxUSE_IPC 1
46011_ACEOF
46012
0b78747f
MW
46013 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
46014 fi
a848cd7e
SC
46015fi
46016
eb730a0c 46017if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
46018 if test "$wxUSE_MGL" = 1; then
46019 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
46020echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
46021 wxUSE_DATAOBJ=no
46022 else
46023 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
46024#define wxUSE_DATAOBJ 1
46025_ACEOF
46026
2113bc77 46027 fi
eb730a0c
JS
46028else
46029 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
46030echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
46031 wxUSE_CLIPBOARD=no
46032 wxUSE_DRAG_AND_DROP=no
46033fi
46034
a848cd7e
SC
46035if test "$wxUSE_CLIPBOARD" = "yes"; then
46036 if test "$wxUSE_MGL" = 1; then
46037 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
46038echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
46039 wxUSE_CLIPBOARD=no
46040 fi
46041
46042 if test "$wxUSE_CLIPBOARD" = "yes"; then
46043 cat >>confdefs.h <<\_ACEOF
46044#define wxUSE_CLIPBOARD 1
46045_ACEOF
46046
a848cd7e
SC
46047 fi
46048fi
46049
46050if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
46051 if test "$wxUSE_GTK" = 1; then
46052 if test "$WXGTK12" != 1; then
46053 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
46054echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
46055 wxUSE_DRAG_AND_DROP=no
46056 fi
46057 fi
46058
46059 if test "$wxUSE_MOTIF" = 1; then
46060 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
46061echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
46062 wxUSE_DRAG_AND_DROP=no
46063 fi
46064
46065 if test "$wxUSE_X11" = 1; then
46066 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
46067echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
46068 wxUSE_DRAG_AND_DROP=no
46069 fi
46070
46071 if test "$wxUSE_MGL" = 1; then
46072 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
46073echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
46074 wxUSE_DRAG_AND_DROP=no
46075 fi
46076
46077 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
46078 cat >>confdefs.h <<\_ACEOF
46079#define wxUSE_DRAG_AND_DROP 1
46080_ACEOF
46081
46082 fi
46083
46084fi
46085
46086if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
46087 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
46088fi
46089
46090if test "$wxUSE_SPLINES" = "yes" ; then
46091 cat >>confdefs.h <<\_ACEOF
46092#define wxUSE_SPLINES 1
46093_ACEOF
46094
46095fi
46096
fbe2ca43
SN
46097if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
46098 cat >>confdefs.h <<\_ACEOF
46099#define wxUSE_MOUSEWHEEL 1
46100_ACEOF
46101
46102fi
46103
a848cd7e
SC
46104
46105USES_CONTROLS=0
46106if test "$wxUSE_CONTROLS" = "yes"; then
46107 USES_CONTROLS=1
46108fi
46109
46110if test "$wxUSE_ACCEL" = "yes"; then
46111 cat >>confdefs.h <<\_ACEOF
46112#define wxUSE_ACCEL 1
46113_ACEOF
46114
46115 USES_CONTROLS=1
46116fi
46117
7067783d 46118if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
3ea50042
VZ
46119 cat >>confdefs.h <<\_ACEOF
46120#define wxUSE_ANIMATIONCTRL 1
46121_ACEOF
46122
46123 USES_CONTROLS=1
46124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
46125fi
46126
a848cd7e
SC
46127if test "$wxUSE_BUTTON" = "yes"; then
46128 cat >>confdefs.h <<\_ACEOF
46129#define wxUSE_BUTTON 1
46130_ACEOF
46131
46132 USES_CONTROLS=1
46133fi
46134
46135if test "$wxUSE_BMPBUTTON" = "yes"; then
46136 cat >>confdefs.h <<\_ACEOF
46137#define wxUSE_BMPBUTTON 1
46138_ACEOF
46139
46140 USES_CONTROLS=1
46141fi
46142
46143if test "$wxUSE_CALCTRL" = "yes"; then
46144 cat >>confdefs.h <<\_ACEOF
46145#define wxUSE_CALENDARCTRL 1
46146_ACEOF
46147
46148 USES_CONTROLS=1
46149 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
46150fi
46151
46152if test "$wxUSE_CARET" = "yes"; then
46153 cat >>confdefs.h <<\_ACEOF
46154#define wxUSE_CARET 1
46155_ACEOF
46156
46157 USES_CONTROLS=1
46158 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
46159fi
46160
bd915ace
RR
46161if test "$wxUSE_COLLPANE" = "yes"; then
46162 cat >>confdefs.h <<\_ACEOF
46163#define wxUSE_COLLPANE 1
46164_ACEOF
46165
46166 USES_CONTROLS=1
46167 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
46168fi
46169
a848cd7e
SC
46170if test "$wxUSE_COMBOBOX" = "yes"; then
46171 cat >>confdefs.h <<\_ACEOF
46172#define wxUSE_COMBOBOX 1
46173_ACEOF
46174
46175 USES_CONTROLS=1
46176fi
46177
a57d600f 46178if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 46179 cat >>confdefs.h <<\_ACEOF
a57d600f 46180#define wxUSE_COMBOCTRL 1
642bcba9
VZ
46181_ACEOF
46182
46183 USES_CONTROLS=1
46184fi
46185
a848cd7e
SC
46186if test "$wxUSE_CHOICE" = "yes"; then
46187 cat >>confdefs.h <<\_ACEOF
46188#define wxUSE_CHOICE 1
46189_ACEOF
46190
46191 USES_CONTROLS=1
46192fi
46193
92bbdbcd
WS
46194if test "$wxUSE_CHOICEBOOK" = "yes"; then
46195 cat >>confdefs.h <<\_ACEOF
46196#define wxUSE_CHOICEBOOK 1
46197_ACEOF
46198
46199 USES_CONTROLS=1
46200fi
46201
a848cd7e
SC
46202if test "$wxUSE_CHECKBOX" = "yes"; then
46203 cat >>confdefs.h <<\_ACEOF
46204#define wxUSE_CHECKBOX 1
46205_ACEOF
46206
46207 USES_CONTROLS=1
46208fi
46209
46210if test "$wxUSE_CHECKLST" = "yes"; then
46211 cat >>confdefs.h <<\_ACEOF
46212#define wxUSE_CHECKLISTBOX 1
46213_ACEOF
46214
46215 USES_CONTROLS=1
46216 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
46217fi
46218
e9263684
VZ
46219if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
46220 cat >>confdefs.h <<\_ACEOF
46221#define wxUSE_COLOURPICKERCTRL 1
46222_ACEOF
46223
46224 USES_CONTROLS=1
46225fi
46226
da98e9be
VZ
46227if test "$wxUSE_DATEPICKCTRL" = "yes"; then
46228 cat >>confdefs.h <<\_ACEOF
46229#define wxUSE_DATEPICKCTRL 1
46230_ACEOF
46231
46232 USES_CONTROLS=1
46233fi
46234
e9263684
VZ
46235if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
46236 cat >>confdefs.h <<\_ACEOF
46237#define wxUSE_DIRPICKERCTRL 1
46238_ACEOF
46239
46240 USES_CONTROLS=1
46241fi
46242
46243if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
46244 cat >>confdefs.h <<\_ACEOF
46245#define wxUSE_FILEPICKERCTRL 1
46246_ACEOF
46247
46248 USES_CONTROLS=1
46249fi
46250
46251if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
46252 cat >>confdefs.h <<\_ACEOF
46253#define wxUSE_FONTPICKERCTRL 1
46254_ACEOF
46255
46256 USES_CONTROLS=1
46257fi
46258
a848cd7e
SC
46259if test "$wxUSE_DISPLAY" = "yes"; then
46260 cat >>confdefs.h <<\_ACEOF
46261#define wxUSE_DISPLAY 1
46262_ACEOF
46263
0b78747f 46264 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
46265fi
46266
88bbc332
RR
46267if test "$wxUSE_DETECT_SM" = "yes"; then
46268 cat >>confdefs.h <<\_ACEOF
46269#define wxUSE_DETECT_SM 1
46270_ACEOF
46271
46272fi
46273
a848cd7e
SC
46274if test "$wxUSE_GAUGE" = "yes"; then
46275 cat >>confdefs.h <<\_ACEOF
46276#define wxUSE_GAUGE 1
46277_ACEOF
46278
46279 USES_CONTROLS=1
46280fi
46281
46282if test "$wxUSE_GRID" = "yes"; then
46283 cat >>confdefs.h <<\_ACEOF
46284#define wxUSE_GRID 1
46285_ACEOF
46286
46287 USES_CONTROLS=1
46288 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
46289fi
46290
6954625c
VZ
46291if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
46292 cat >>confdefs.h <<\_ACEOF
46293#define wxUSE_HYPERLINKCTRL 1
46294_ACEOF
46295
46296 USES_CONTROLS=1
46297fi
46298
95a46303
RR
46299if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
46300 cat >>confdefs.h <<\_ACEOF
46301#define wxUSE_BITMAPCOMBOBOX 1
46302_ACEOF
46303
46304 USES_CONTROLS=1
46305fi
46306
20e34ecc
RR
46307if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
46308 cat >>confdefs.h <<\_ACEOF
46309#define wxUSE_DATAVIEWCTRL 1
46310_ACEOF
46311
46312 USES_CONTROLS=1
46313 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
46314fi
46315
a848cd7e
SC
46316if test "$wxUSE_IMAGLIST" = "yes"; then
46317 cat >>confdefs.h <<\_ACEOF
46318#define wxUSE_IMAGLIST 1
46319_ACEOF
46320
46321fi
46322
46323if test "$wxUSE_LISTBOOK" = "yes"; then
46324 cat >>confdefs.h <<\_ACEOF
46325#define wxUSE_LISTBOOK 1
46326_ACEOF
46327
46328 USES_CONTROLS=1
46329fi
46330
46331if test "$wxUSE_LISTBOX" = "yes"; then
46332 cat >>confdefs.h <<\_ACEOF
46333#define wxUSE_LISTBOX 1
46334_ACEOF
46335
46336 USES_CONTROLS=1
0b78747f 46337 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
46338fi
46339
46340if test "$wxUSE_LISTCTRL" = "yes"; then
46341 if test "$wxUSE_IMAGLIST" = "yes"; then
46342 cat >>confdefs.h <<\_ACEOF
46343#define wxUSE_LISTCTRL 1
46344_ACEOF
46345
46346 USES_CONTROLS=1
46347 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
46348 else
46349 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
46350echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
46351 fi
46352fi
46353
46354if test "$wxUSE_NOTEBOOK" = "yes"; then
46355 cat >>confdefs.h <<\_ACEOF
46356#define wxUSE_NOTEBOOK 1
46357_ACEOF
46358
46359 USES_CONTROLS=1
46360 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
46361fi
46362
a57d600f 46363if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 46364 cat >>confdefs.h <<\_ACEOF
a57d600f 46365#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
46366_ACEOF
46367
46368 USES_CONTROLS=1
46369 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
46370fi
46371
a848cd7e
SC
46372
46373if test "$wxUSE_RADIOBOX" = "yes"; then
46374 cat >>confdefs.h <<\_ACEOF
46375#define wxUSE_RADIOBOX 1
46376_ACEOF
46377
46378 USES_CONTROLS=1
46379fi
46380
46381if test "$wxUSE_RADIOBTN" = "yes"; then
46382 cat >>confdefs.h <<\_ACEOF
46383#define wxUSE_RADIOBTN 1
46384_ACEOF
46385
46386 USES_CONTROLS=1
46387fi
46388
46389if test "$wxUSE_SASH" = "yes"; then
46390 cat >>confdefs.h <<\_ACEOF
46391#define wxUSE_SASH 1
46392_ACEOF
46393
46394 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
46395fi
46396
46397if test "$wxUSE_SCROLLBAR" = "yes"; then
46398 cat >>confdefs.h <<\_ACEOF
46399#define wxUSE_SCROLLBAR 1
46400_ACEOF
46401
46402 USES_CONTROLS=1
46403 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
46404fi
46405
46406if test "$wxUSE_SLIDER" = "yes"; then
46407 cat >>confdefs.h <<\_ACEOF
46408#define wxUSE_SLIDER 1
46409_ACEOF
46410
46411 USES_CONTROLS=1
46412fi
46413
46414if test "$wxUSE_SPINBTN" = "yes"; then
46415 cat >>confdefs.h <<\_ACEOF
46416#define wxUSE_SPINBTN 1
46417_ACEOF
46418
46419 USES_CONTROLS=1
46420fi
46421
46422if test "$wxUSE_SPINCTRL" = "yes"; then
46423 cat >>confdefs.h <<\_ACEOF
46424#define wxUSE_SPINCTRL 1
46425_ACEOF
46426
46427 USES_CONTROLS=1
46428fi
46429
46430if test "$wxUSE_SPLITTER" = "yes"; then
46431 cat >>confdefs.h <<\_ACEOF
46432#define wxUSE_SPLITTER 1
46433_ACEOF
46434
46435 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
46436fi
46437
46438if test "$wxUSE_STATBMP" = "yes"; then
46439 cat >>confdefs.h <<\_ACEOF
46440#define wxUSE_STATBMP 1
46441_ACEOF
46442
46443 USES_CONTROLS=1
46444fi
46445
46446if test "$wxUSE_STATBOX" = "yes"; then
46447 cat >>confdefs.h <<\_ACEOF
46448#define wxUSE_STATBOX 1
46449_ACEOF
46450
46451 USES_CONTROLS=1
46452fi
46453
46454if test "$wxUSE_STATTEXT" = "yes"; then
46455 cat >>confdefs.h <<\_ACEOF
46456#define wxUSE_STATTEXT 1
46457_ACEOF
46458
46459 USES_CONTROLS=1
46460fi
46461
46462if test "$wxUSE_STATLINE" = "yes"; then
46463 cat >>confdefs.h <<\_ACEOF
46464#define wxUSE_STATLINE 1
46465_ACEOF
46466
46467 USES_CONTROLS=1
46468fi
46469
46470if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
46471 cat >>confdefs.h <<\_ACEOF
46472#define wxUSE_NATIVE_STATUSBAR 1
46473_ACEOF
46474
a848cd7e
SC
46475 cat >>confdefs.h <<\_ACEOF
46476#define wxUSE_STATUSBAR 1
46477_ACEOF
46478
46479 USES_CONTROLS=1
46480
46481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
46482fi
46483
f10e38c4 46484if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
46485 cat >>confdefs.h <<\_ACEOF
46486#define wxUSE_TAB_DIALOG 1
46487_ACEOF
46488
a848cd7e
SC
46489fi
46490
46491if test "$wxUSE_TEXTCTRL" = "yes"; then
46492 cat >>confdefs.h <<\_ACEOF
46493#define wxUSE_TEXTCTRL 1
46494_ACEOF
46495
46496 USES_CONTROLS=1
46497 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
46498fi
46499
46500if test "$wxUSE_TOGGLEBTN" = "yes"; then
46501 if test "$wxUSE_COCOA" = 1 ; then
46502 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
46503echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
46504 wxUSE_TOGGLEBTN=no
46505 fi
a848cd7e
SC
46506
46507 if test "$wxUSE_TOGGLEBTN" = "yes"; then
46508 cat >>confdefs.h <<\_ACEOF
46509#define wxUSE_TOGGLEBTN 1
46510_ACEOF
46511
46512 USES_CONTROLS=1
46513 fi
46514fi
46515
a848cd7e
SC
46516if test "$wxUSE_TOOLBAR" = "yes"; then
46517 cat >>confdefs.h <<\_ACEOF
46518#define wxUSE_TOOLBAR 1
46519_ACEOF
46520
46521 USES_CONTROLS=1
46522
452b6243
VS
46523 if test "$wxUSE_UNIVERSAL" = "yes"; then
46524 wxUSE_TOOLBAR_NATIVE="no"
46525 else
46526 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
46527 cat >>confdefs.h <<\_ACEOF
46528#define wxUSE_TOOLBAR_NATIVE 1
46529_ACEOF
46530
a848cd7e
SC
46531 fi
46532
46533 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
46534fi
46535
46536if test "$wxUSE_TOOLTIPS" = "yes"; then
46537 if test "$wxUSE_MOTIF" = 1; then
46538 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
46539echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
46540 else
46541 if test "$wxUSE_UNIVERSAL" = "yes"; then
46542 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46543echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
46544 else
46545 cat >>confdefs.h <<\_ACEOF
46546#define wxUSE_TOOLTIPS 1
46547_ACEOF
46548
46549 fi
46550 fi
46551fi
46552
0093c2fc
VZ
46553if test "$wxUSE_TREEBOOK" = "yes"; then
46554 cat >>confdefs.h <<\_ACEOF
46555#define wxUSE_TREEBOOK 1
46556_ACEOF
46557
46558 USES_CONTROLS=1
46559fi
46560
5ec3bc43
JS
46561if test "$wxUSE_TOOLBOOK" = "yes"; then
46562 cat >>confdefs.h <<\_ACEOF
46563#define wxUSE_TOOLBOOK 1
46564_ACEOF
46565
46566 USES_CONTROLS=1
46567fi
46568
a848cd7e
SC
46569if test "$wxUSE_TREECTRL" = "yes"; then
46570 if test "$wxUSE_IMAGLIST" = "yes"; then
46571 cat >>confdefs.h <<\_ACEOF
46572#define wxUSE_TREECTRL 1
46573_ACEOF
46574
46575 USES_CONTROLS=1
46576 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46577 else
46578 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46579echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46580 fi
46581fi
46582
46583if test "$wxUSE_POPUPWIN" = "yes"; then
46584 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
46585 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46586echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
46587 else
46588 if test "$wxUSE_PM" = 1; then
46589 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46590echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46591 else
46592 cat >>confdefs.h <<\_ACEOF
46593#define wxUSE_POPUPWIN 1
46594_ACEOF
46595
0b78747f 46596 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
46597
46598 USES_CONTROLS=1
46599 fi
46600 fi
46601fi
46602
0dcd06dd 46603if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
56c6aab7 46604 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
480b9f18 46605 { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
56c6aab7 46606echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
b843b628
MB
46607 else
46608 cat >>confdefs.h <<\_ACEOF
46609#define wxUSE_DIALUP_MANAGER 1
46610_ACEOF
46611
46612 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46613 fi
46614fi
46615
a848cd7e
SC
46616if test "$wxUSE_TIPWINDOW" = "yes"; then
46617 if test "$wxUSE_PM" = 1; then
46618 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46619echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46620 else
46621 cat >>confdefs.h <<\_ACEOF
46622#define wxUSE_TIPWINDOW 1
46623_ACEOF
46624
46625 fi
46626fi
46627
46628if test "$USES_CONTROLS" = 1; then
46629 cat >>confdefs.h <<\_ACEOF
46630#define wxUSE_CONTROLS 1
46631_ACEOF
46632
46633fi
46634
46635
46636if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46637 cat >>confdefs.h <<\_ACEOF
46638#define wxUSE_ACCESSIBILITY 1
46639_ACEOF
46640
46641 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46642fi
46643
38b4a946
VZ
46644if test "$wxUSE_DC_CACHEING" = "yes"; then
46645 cat >>confdefs.h <<\_ACEOF
46646#define wxUSE_DC_CACHEING 1
46647_ACEOF
46648
46649fi
46650
a848cd7e
SC
46651if test "$wxUSE_DRAGIMAGE" = "yes"; then
46652 cat >>confdefs.h <<\_ACEOF
46653#define wxUSE_DRAGIMAGE 1
46654_ACEOF
46655
46656 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46657fi
46658
46659if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
46660 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46661 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46662echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46663 else
46664 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
46665#define wxUSE_EXCEPTIONS 1
46666_ACEOF
46667
07bea8f0
VS
46668 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46669 fi
a848cd7e
SC
46670fi
46671
46672USE_HTML=0
46673if test "$wxUSE_HTML" = "yes"; then
46674 cat >>confdefs.h <<\_ACEOF
46675#define wxUSE_HTML 1
46676_ACEOF
46677
46678 USE_HTML=1
46679 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
46680 if test "$wxUSE_MAC" = 1; then
46681 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46682 fi
a848cd7e 46683fi
646b6ec1 46684if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 46685 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 46686 old_CPPFLAGS="$CPPFLAGS"
c92ad099 46687 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
46688 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46689echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
46690if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46691 echo $ECHO_N "(cached) $ECHO_C" >&6
46692else
46693 cat >conftest.$ac_ext <<_ACEOF
46694/* confdefs.h. */
46695_ACEOF
46696cat confdefs.h >>conftest.$ac_ext
46697cat >>conftest.$ac_ext <<_ACEOF
46698/* end confdefs.h. */
46699#include <Carbon/Carbon.h>
46700
46701#include <WebKit/HIWebView.h>
46702_ACEOF
46703rm -f conftest.$ac_objext
46704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46705 (eval $ac_compile) 2>conftest.er1
46706 ac_status=$?
46707 grep -v '^ *+' conftest.er1 >conftest.err
46708 rm -f conftest.er1
46709 cat conftest.err >&5
46710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46711 (exit $ac_status); } &&
fd5199d6 46712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
46713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46714 (eval $ac_try) 2>&5
46715 ac_status=$?
46716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46717 (exit $ac_status); }; } &&
46718 { ac_try='test -s conftest.$ac_objext'
46719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46720 (eval $ac_try) 2>&5
46721 ac_status=$?
46722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46723 (exit $ac_status); }; }; then
46724 ac_cv_header_WebKit_HIWebView_h=yes
46725else
46726 echo "$as_me: failed program was:" >&5
46727sed 's/^/| /' conftest.$ac_ext >&5
46728
46729ac_cv_header_WebKit_HIWebView_h=no
46730fi
46731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46732fi
46733echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46734echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
46735if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46736
46737 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
46738#define wxUSE_WEBKIT 1
46739_ACEOF
46740
07bea8f0
VS
46741 WEBKIT_LINK="-framework WebKit"
46742
46743else
46744
46745 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46746echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46747 wxUSE_WEBKIT=no
46748
646b6ec1
VS
46749fi
46750
07bea8f0
VS
46751
46752 CPPFLAGS="$old_CPPFLAGS"
46753 elif test "$wxUSE_COCOA" = 1; then
46754 cat >>confdefs.h <<\_ACEOF
46755#define wxUSE_WEBKIT 1
46756_ACEOF
46757
46758 else
46759 wxUSE_WEBKIT=no
46760 fi
46761fi
46762
9a8f0513
VS
46763USE_XRC=0
46764if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
46765 if test "$wxUSE_XML" != "yes"; then
46766 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46767echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46768 wxUSE_XRC=no
46769 else
46770 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
46771#define wxUSE_XRC 1
46772_ACEOF
46773
d2ebf0b7
VS
46774 USE_XRC=1
46775 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46776 fi
9a8f0513 46777fi
07bea8f0 46778
3f60522a
JS
46779USE_AUI=0
46780if test "$wxUSE_AUI" = "yes"; then
46781 cat >>confdefs.h <<\_ACEOF
46782#define wxUSE_AUI 1
46783_ACEOF
46784
46785 USE_AUI=1
46786 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46787fi
46788
a848cd7e
SC
46789if test "$wxUSE_MENUS" = "yes"; then
46790 cat >>confdefs.h <<\_ACEOF
46791#define wxUSE_MENUS 1
46792_ACEOF
46793
46794 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46795fi
46796
46797if test "$wxUSE_METAFILE" = "yes"; then
46798 cat >>confdefs.h <<\_ACEOF
46799#define wxUSE_METAFILE 1
46800_ACEOF
46801
46802fi
46803
46804if test "$wxUSE_MIMETYPE" = "yes"; then
46805 cat >>confdefs.h <<\_ACEOF
46806#define wxUSE_MIMETYPE 1
46807_ACEOF
46808
46809fi
46810
46811if test "$wxUSE_MINIFRAME" = "yes"; then
46812 cat >>confdefs.h <<\_ACEOF
46813#define wxUSE_MINIFRAME 1
46814_ACEOF
46815
46816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
46817fi
46818
46819if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46820 cat >>confdefs.h <<\_ACEOF
46821#define wxUSE_SYSTEM_OPTIONS 1
46822_ACEOF
46823
46824 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 46825 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
46826 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46827 fi
46828fi
46829
46830
46831if test "$wxUSE_VALIDATORS" = "yes"; then
46832 cat >>confdefs.h <<\_ACEOF
46833#define wxUSE_VALIDATORS 1
46834_ACEOF
46835
46836 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46837fi
46838
46839if test "$wxUSE_PALETTE" = "yes" ; then
46840 cat >>confdefs.h <<\_ACEOF
46841#define wxUSE_PALETTE 1
46842_ACEOF
46843
46844fi
46845
46846if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46847 LIBS=" -lunicows $LIBS"
46848fi
46849
91dea314
MW
46850USE_RICHTEXT=0
46851if test "$wxUSE_RICHTEXT" = "yes"; then
46852 cat >>confdefs.h <<\_ACEOF
46853#define wxUSE_RICHTEXT 1
46854_ACEOF
46855
46856 USE_RICHTEXT=1
46857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46858fi
46859
a848cd7e
SC
46860
46861if test "$wxUSE_IMAGE" = "yes" ; then
46862 cat >>confdefs.h <<\_ACEOF
46863#define wxUSE_IMAGE 1
46864_ACEOF
46865
46866
46867 if test "$wxUSE_GIF" = "yes" ; then
46868 cat >>confdefs.h <<\_ACEOF
46869#define wxUSE_GIF 1
46870_ACEOF
46871
46872 fi
46873
46874 if test "$wxUSE_PCX" = "yes" ; then
46875 cat >>confdefs.h <<\_ACEOF
46876#define wxUSE_PCX 1
46877_ACEOF
46878
46879 fi
46880
bb9e79c0
VZ
46881 if test "$wxUSE_TGA" = "yes" ; then
46882 cat >>confdefs.h <<\_ACEOF
46883#define wxUSE_TGA 1
46884_ACEOF
46885
46886 fi
46887
a848cd7e
SC
46888 if test "$wxUSE_IFF" = "yes" ; then
46889 cat >>confdefs.h <<\_ACEOF
46890#define wxUSE_IFF 1
46891_ACEOF
46892
46893 fi
46894
46895 if test "$wxUSE_PNM" = "yes" ; then
46896 cat >>confdefs.h <<\_ACEOF
46897#define wxUSE_PNM 1
46898_ACEOF
46899
46900 fi
46901
46902 if test "$wxUSE_XPM" = "yes" ; then
46903 cat >>confdefs.h <<\_ACEOF
46904#define wxUSE_XPM 1
46905_ACEOF
46906
46907 fi
46908
46909 if test "$wxUSE_ICO_CUR" = "yes" ; then
46910 cat >>confdefs.h <<\_ACEOF
46911#define wxUSE_ICO_CUR 1
46912_ACEOF
46913
46914 fi
46915fi
46916
46917
319c5ed4
VZ
46918if test "$wxUSE_ABOUTDLG" = "yes"; then
46919 cat >>confdefs.h <<\_ACEOF
46920#define wxUSE_ABOUTDLG 1
46921_ACEOF
46922
46923fi
46924
a848cd7e
SC
46925if test "$wxUSE_CHOICEDLG" = "yes"; then
46926 cat >>confdefs.h <<\_ACEOF
46927#define wxUSE_CHOICEDLG 1
46928_ACEOF
46929
46930fi
46931
46932if test "$wxUSE_COLOURDLG" = "yes"; then
46933 cat >>confdefs.h <<\_ACEOF
46934#define wxUSE_COLOURDLG 1
46935_ACEOF
46936
46937fi
46938
46939if test "$wxUSE_FILEDLG" = "yes"; then
46940 cat >>confdefs.h <<\_ACEOF
46941#define wxUSE_FILEDLG 1
46942_ACEOF
46943
46944fi
46945
46946if test "$wxUSE_FINDREPLDLG" = "yes"; then
46947 cat >>confdefs.h <<\_ACEOF
46948#define wxUSE_FINDREPLDLG 1
46949_ACEOF
46950
46951fi
46952
46953if test "$wxUSE_FONTDLG" = "yes"; then
46954 cat >>confdefs.h <<\_ACEOF
46955#define wxUSE_FONTDLG 1
46956_ACEOF
46957
46958fi
46959
46960if test "$wxUSE_DIRDLG" = "yes"; then
46961 if test "$wxUSE_TREECTRL" != "yes"; then
46962 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46963echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46964 else
46965 cat >>confdefs.h <<\_ACEOF
46966#define wxUSE_DIRDLG 1
46967_ACEOF
46968
46969 fi
46970fi
46971
46972if test "$wxUSE_MSGDLG" = "yes"; then
46973 cat >>confdefs.h <<\_ACEOF
46974#define wxUSE_MSGDLG 1
46975_ACEOF
46976
46977fi
46978
46979if test "$wxUSE_NUMBERDLG" = "yes"; then
46980 cat >>confdefs.h <<\_ACEOF
46981#define wxUSE_NUMBERDLG 1
46982_ACEOF
46983
46984fi
46985
46986if test "$wxUSE_PROGRESSDLG" = "yes"; then
46987 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46988 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46989echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46990 else
46991 cat >>confdefs.h <<\_ACEOF
46992#define wxUSE_PROGRESSDLG 1
46993_ACEOF
46994
46995 fi
46996fi
46997
46998if test "$wxUSE_SPLASH" = "yes"; then
46999 cat >>confdefs.h <<\_ACEOF
47000#define wxUSE_SPLASH 1
47001_ACEOF
47002
2057db16 47003 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
47004fi
47005
47006if test "$wxUSE_STARTUP_TIPS" = "yes"; then
47007 if test "$wxUSE_CONSTRAINTS" != "yes"; then
47008 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
47009echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
47010 else
47011 cat >>confdefs.h <<\_ACEOF
47012#define wxUSE_STARTUP_TIPS 1
47013_ACEOF
47014
47015 fi
47016fi
47017
47018if test "$wxUSE_TEXTDLG" = "yes"; then
47019 cat >>confdefs.h <<\_ACEOF
47020#define wxUSE_TEXTDLG 1
47021_ACEOF
47022
47023fi
47024
47025if test "$wxUSE_WIZARDDLG" = "yes"; then
47026 cat >>confdefs.h <<\_ACEOF
47027#define wxUSE_WIZARDDLG 1
47028_ACEOF
47029
47030 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
47031fi
47032
47033
64b75e64
RD
47034if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
47035 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
47036 cat >>confdefs.h <<\_ACEOF
47037#define wxUSE_GRAPHICS_CONTEXT 1
47038_ACEOF
47039
47040 elif test "$wxUSE_GTK" != 1; then
47041 cat >>confdefs.h <<\_ACEOF
47042#define wxUSE_GRAPHICS_CONTEXT 1
47043_ACEOF
47044
47045 else
47046
47047pkg_failed=no
47048echo "$as_me:$LINENO: checking for CAIRO" >&5
47049echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6
47050
47051if test -n "$PKG_CONFIG"; then
47052 if test -n "$CAIRO_CFLAGS"; then
47053 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
47054 else
47055 if test -n "$PKG_CONFIG" && \
47056 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
47057 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
47058 ac_status=$?
47059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47060 (exit $ac_status); }; then
47061 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
47062else
47063 pkg_failed=yes
47064fi
47065 fi
47066else
47067 pkg_failed=untried
47068fi
47069if test -n "$PKG_CONFIG"; then
47070 if test -n "$CAIRO_LIBS"; then
47071 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
47072 else
47073 if test -n "$PKG_CONFIG" && \
47074 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
47075 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
47076 ac_status=$?
47077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47078 (exit $ac_status); }; then
47079 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
47080else
47081 pkg_failed=yes
47082fi
47083 fi
47084else
47085 pkg_failed=untried
47086fi
47087
47088
47089
47090if test $pkg_failed = yes; then
47091
47092if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47093 _pkg_short_errors_supported=yes
47094else
47095 _pkg_short_errors_supported=no
47096fi
47097 if test $_pkg_short_errors_supported = yes; then
47098 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
47099 else
47100 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
47101 fi
47102 # Put the nasty error message in config.log where it belongs
47103 echo "$CAIRO_PKG_ERRORS" >&5
47104
ec3edcc9 47105 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
64b75e64
RD
47106echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
47107
64b75e64 47108elif test $pkg_failed = untried; then
ec3edcc9 47109 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
64b75e64
RD
47110echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
47111
64b75e64
RD
47112else
47113 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
47114 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
47115 echo "$as_me:$LINENO: result: yes" >&5
47116echo "${ECHO_T}yes" >&6
ec3edcc9 47117 cat >>confdefs.h <<\_ACEOF
64b75e64
RD
47118#define wxUSE_GRAPHICS_CONTEXT 1
47119_ACEOF
47120
64b75e64
RD
47121fi
47122 fi
47123fi
47124
47125
f10e38c4
VZ
47126USE_MEDIA=0
47127
ce756cb0 47128if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
47129 USE_MEDIA=1
47130
ce756cb0 47131 if test "$wxUSE_GTK" = 1; then
c9a66001 47132 wxUSE_GSTREAMER="no"
ce756cb0 47133
f10e38c4
VZ
47134 GST_VERSION_MAJOR=0
47135 GST_VERSION_MINOR=10
2f6c5bb5 47136 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
47137
47138 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 47139
3ecd9f92
MW
47140pkg_failed=no
47141echo "$as_me:$LINENO: checking for GST" >&5
47142echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 47143
3ecd9f92
MW
47144if test -n "$PKG_CONFIG"; then
47145 if test -n "$GST_CFLAGS"; then
47146 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47147 else
47148 if test -n "$PKG_CONFIG" && \
47149 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
47150 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47151 ac_status=$?
47152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47153 (exit $ac_status); }; then
47154 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 47155else
3ecd9f92
MW
47156 pkg_failed=yes
47157fi
47158 fi
47159else
47160 pkg_failed=untried
dae87f93 47161fi
dae87f93 47162if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
47163 if test -n "$GST_LIBS"; then
47164 pkg_cv_GST_LIBS="$GST_LIBS"
47165 else
47166 if test -n "$PKG_CONFIG" && \
47167 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
47168 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47169 ac_status=$?
47170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47171 (exit $ac_status); }; then
47172 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 47173else
3ecd9f92
MW
47174 pkg_failed=yes
47175fi
47176 fi
47177else
47178 pkg_failed=untried
dae87f93
RN
47179fi
47180
dae87f93 47181
2f6c5bb5 47182
3ecd9f92 47183if test $pkg_failed = yes; then
ce756cb0 47184
3ecd9f92
MW
47185if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47186 _pkg_short_errors_supported=yes
47187else
47188 _pkg_short_errors_supported=no
47189fi
47190 if test $_pkg_short_errors_supported = yes; then
47191 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
47192 else
47193 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 47194 fi
3ecd9f92
MW
47195 # Put the nasty error message in config.log where it belongs
47196 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
47197
47198
3ecd9f92
MW
47199 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
47200echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
47201 GST_VERSION_MINOR=8
dae87f93 47202
ce756cb0 47203
3ecd9f92 47204elif test $pkg_failed = untried; then
dae87f93 47205
2f6c5bb5
VZ
47206 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
47207echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 47208 GST_VERSION_MINOR=8
dae87f93 47209
2f6c5bb5 47210
3ecd9f92
MW
47211else
47212 GST_CFLAGS=$pkg_cv_GST_CFLAGS
47213 GST_LIBS=$pkg_cv_GST_LIBS
47214 echo "$as_me:$LINENO: result: yes" >&5
47215echo "${ECHO_T}yes" >&6
47216
47217 wxUSE_GSTREAMER="yes"
47218 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 47219
3ecd9f92 47220fi
2f6c5bb5
VZ
47221 else
47222 GST_VERSION_MINOR=8
f10e38c4 47223 fi
dae87f93 47224
2f6c5bb5
VZ
47225 if test $GST_VERSION_MINOR = "8"; then
47226 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 47227
3ecd9f92
MW
47228pkg_failed=no
47229echo "$as_me:$LINENO: checking for GST" >&5
47230echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 47231
3ecd9f92
MW
47232if test -n "$PKG_CONFIG"; then
47233 if test -n "$GST_CFLAGS"; then
47234 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47235 else
47236 if test -n "$PKG_CONFIG" && \
47237 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47238 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47239 ac_status=$?
47240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47241 (exit $ac_status); }; then
47242 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 47243else
3ecd9f92
MW
47244 pkg_failed=yes
47245fi
47246 fi
47247else
47248 pkg_failed=untried
dae87f93 47249fi
f10e38c4 47250if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
47251 if test -n "$GST_LIBS"; then
47252 pkg_cv_GST_LIBS="$GST_LIBS"
47253 else
47254 if test -n "$PKG_CONFIG" && \
47255 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47256 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47257 ac_status=$?
47258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47259 (exit $ac_status); }; then
47260 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 47261else
3ecd9f92
MW
47262 pkg_failed=yes
47263fi
47264 fi
47265else
47266 pkg_failed=untried
dae87f93
RN
47267fi
47268
ce756cb0 47269
2f6c5bb5 47270
3ecd9f92 47271if test $pkg_failed = yes; then
dae87f93 47272
3ecd9f92
MW
47273if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47274 _pkg_short_errors_supported=yes
47275else
47276 _pkg_short_errors_supported=no
47277fi
47278 if test $_pkg_short_errors_supported = yes; then
47279 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
47280 else
47281 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 47282 fi
3ecd9f92
MW
47283 # Put the nasty error message in config.log where it belongs
47284 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
47285
47286
3ecd9f92
MW
47287 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47288echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 47289
3ecd9f92 47290elif test $pkg_failed = untried; then
ce756cb0 47291
2f6c5bb5
VZ
47292 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47293echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 47294
3ecd9f92
MW
47295else
47296 GST_CFLAGS=$pkg_cv_GST_CFLAGS
47297 GST_LIBS=$pkg_cv_GST_LIBS
47298 echo "$as_me:$LINENO: result: yes" >&5
47299echo "${ECHO_T}yes" >&6
47300 wxUSE_GSTREAMER="yes"
47301fi
dae87f93 47302 fi
ce756cb0 47303
f10e38c4 47304
dae87f93 47305 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
47306 case "${host}" in
47307 *-*-solaris2* )
47308 if "$GCC" = yes; then
47309 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
47310 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
47311 fi
47312 esac
47313
47314 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
47315 LIBS="$GST_LIBS $LIBS"
47316
dae87f93 47317 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
47318#define wxUSE_GSTREAMER 1
47319_ACEOF
47320
2f6c5bb5
VZ
47321 else
47322 USE_MEDIA=0
ce756cb0
RN
47323 fi
47324 fi
2f6c5bb5
VZ
47325
47326 if test $USE_MEDIA = 1; then
47327 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
47328 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
47329#define wxUSE_MEDIACTRL 1
47330_ACEOF
47331
2f6c5bb5 47332 fi
ce756cb0
RN
47333fi
47334
47335
a848cd7e
SC
47336if test "$cross_compiling" = "yes"; then
47337 OSINFO="\"$host\""
47338else
47339 OSINFO=`uname -s -r -m`
47340 OSINFO="\"$OSINFO\""
47341fi
47342
47343cat >>confdefs.h <<_ACEOF
47344#define WXWIN_OS_DESCRIPTION $OSINFO
47345_ACEOF
47346
47347
47348
47349if test "x$prefix" != "xNONE"; then
47350 wxPREFIX=$prefix
47351else
47352 wxPREFIX=$ac_default_prefix
47353fi
47354
47355cat >>confdefs.h <<_ACEOF
47356#define wxINSTALL_PREFIX "$wxPREFIX"
47357_ACEOF
47358
47359
a848cd7e
SC
47360
47361
47362CORE_BASE_LIBS="net base"
47363CORE_GUI_LIBS="adv core"
47364
47365if test "$wxUSE_XML" = "yes" ; then
47366 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
47367fi
47368if test "$wxUSE_ODBC" != "no" ; then
47369 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
47370 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
47371fi
47372if test "$wxUSE_HTML" = "yes" ; then
47373 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
47374fi
61639efb
VZ
47375if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47376 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
47377fi
9a8f0513
VS
47378if test "$wxUSE_XRC" = "yes" ; then
47379 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
47380fi
3f60522a
JS
47381if test "$wxUSE_AUI" = "yes" ; then
47382 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
47383fi
a848cd7e
SC
47384
47385if test "$wxUSE_GUI" != "yes"; then
47386 CORE_GUI_LIBS=""
47387fi
47388
47389
47390
47391
47392
a848cd7e 47393
a848cd7e 47394if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 47395 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
47396 if test "$USE_DARWIN" = 1; then
47397 LDFLAGS="$LDFLAGS -framework QuickTime"
47398 else
47399 LDFLAGS="$LDFLAGS -lQuickTimeLib"
47400 fi
07bea8f0 47401 fi
5dcf30a0 47402 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
47403 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
47404 else
47405 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 47406 fi
a848cd7e
SC
47407fi
47408if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 47409 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
47410 if test "$wxUSE_MEDIACTRL" = "yes"; then
47411 LDFLAGS="$LDFLAGS -framework QuickTime"
47412 fi
a848cd7e 47413fi
19b27e78
MW
47414if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
47415 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
47416fi
a848cd7e 47417
a848cd7e
SC
47418LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
47419
a848cd7e
SC
47420if test "$wxUSE_GUI" = "yes"; then
47421
47422
8bce5cda
MW
47423 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
47424 dynamic erase event exec font image minimal mobile \
47425 mobile/wxedit mobile/styles propsize render \
9e39d889 47426 rotate shaped vscroll widgets"
a848cd7e
SC
47427
47428 if test "$wxUSE_MONOLITHIC" != "yes"; then
47429 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
47430 fi
0b78747f 47431 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
47432 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
47433 if test "$wxUSE_UNIVERSAL" != "yes"; then
47434 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
47435 fi
47436 fi
47437 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
47438 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 47439 fi
a848cd7e
SC
47440else
47441 SAMPLES_SUBDIRS="console"
47442fi
47443
47444
48f625bc 47445if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
47446 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
47447elif test "$GCC" = yes ; then
47448 CWARNINGS="-Wall -Wundef"
47449fi
47450
48f625bc 47451if test "x$INTELCXX" = "xyes" ; then
7f47faf4 47452 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
47453elif test "$GXX" = yes ; then
47454 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 47455fi
a848cd7e 47456
a848cd7e 47457
5ff751d6
VZ
47458WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
47459WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
47460
47461
c92ad099 47462CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
02b05020 47463 -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
47464 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
47465 $CPPFLAGS `
5ff751d6 47466
8aeeb05c 47467C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 47468CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 47469CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
47470
47471WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
47472
a848cd7e 47473
95986553
DE
47474if test "x$MWCC" = "xyes"; then
47475
47476 CC="$CC -cwd source -I-"
47477 CXX="$CXX -cwd source -I-"
47478fi
47479
a848cd7e 47480
0c3c69fc 47481LIBS=`echo $LIBS`
a848cd7e
SC
47482EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
47483EXTRALIBS_XML="$EXPAT_LINK"
47484EXTRALIBS_HTML="$MSPACK_LINK"
47485EXTRALIBS_ODBC="$ODBC_LINK"
47486if test "$wxUSE_GUI" = "yes"; then
2b850ae1 47487 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
47488fi
47489if test "$wxUSE_OPENGL" = "yes"; then
47490 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
47491fi
47492
8aeeb05c 47493LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 47494
5ff751d6 47495WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
47496
47497if test "$wxUSE_REGEX" = "builtin" ; then
74802184 47498 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
47499fi
47500if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 47501 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
47502fi
47503if test "$wxUSE_ODBC" = "builtin" ; then
74802184 47504 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
47505fi
47506if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 47507 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
47508fi
47509if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 47510 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
47511fi
47512if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 47513 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
47514fi
47515if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 47516 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
47517fi
47518
47519for i in $wxconfig_3rdparty ; do
5ff751d6 47520 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
47521done
47522
47523
47524if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47525 WXUNIV=1
4353a8df
VZ
47526
47527 case "$wxUNIV_THEMES" in
47528 ''|all)
47529 cat >>confdefs.h <<\_ACEOF
47530#define wxUSE_ALL_THEMES 1
47531_ACEOF
47532
47533 ;;
47534
47535 *)
47536 for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
47537 cat >>confdefs.h <<_ACEOF
47538#define wxUSE_THEME_$t 1
47539_ACEOF
47540
47541 done
47542 esac
a848cd7e
SC
47543else
47544 WXUNIV=0
47545fi
47546
47547
47548
47549
47550
47551
47552
47553
47554
47555if test $wxUSE_MONOLITHIC = "yes" ; then
47556 MONOLITHIC=1
47557else
47558 MONOLITHIC=0
47559fi
47560
47561if test $wxUSE_PLUGINS = "yes" ; then
47562 USE_PLUGINS=1
47563else
47564 USE_PLUGINS=0
47565fi
47566
47567if test $wxUSE_ODBC != "no" ; then
47568 USE_ODBC=1
47569else
47570 USE_ODBC=0
47571fi
47572
16358932
VZ
47573if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47574 USE_QA=1
47575else
47576 USE_QA=0
47577fi
47578
a848cd7e
SC
47579if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47580 OFFICIAL_BUILD=1
47581else
47582 OFFICIAL_BUILD=0
47583fi
47584
47585
47586
47587
47588
47589
47590
47591
47592
47593
47594
47595
47596
47597
47598
47599
47600
47601
47602
ceec2216 47603
d1c38808 47604
3565d135 47605
2b850ae1 47606
a848cd7e
SC
47607
47608
47609TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
47610
47611
47612
47613
47614
47615
47616
47617
4d4ff94c
VZ
47618case "$TOOLKIT" in
47619 GTK)
c2e9ada4 47620 TOOLKIT_DESC="GTK+"
4d4ff94c 47621 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
47622 TOOLKIT_DESC="$TOOLKIT_DESC 2"
47623 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47624 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47625 fi
47626 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47627 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47628 fi
47629 if test "$wxUSE_LIBHILDON" = "yes"; then
47630 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47631 fi
47632
47633 if test "$TOOLKIT_EXTRA" != ""; then
47634 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47635 fi
4d4ff94c 47636 fi
9a8f0513 47637 ;;
4d4ff94c 47638
c2e9ada4
VZ
47639 ?*)
47640 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47641 ;;
47642
4d4ff94c 47643 *)
c2e9ada4 47644 TOOLKIT_DESC="base only"
9a8f0513 47645 ;;
4d4ff94c 47646esac
a848cd7e 47647
fb00f58d
JS
47648if test "$wxUSE_WINE" = "yes"; then
47649 BAKEFILE_FORCE_PLATFORM=win32
47650fi
47651
7afc46ab 47652if test "$wxUSE_MAC" = 1 ; then
95768535
MW
47653 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
47654 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
47655 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
47656 else
47657 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
47658 fi
47659 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
47660 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
47661 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
47662 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
47663 bk_use_pch=no
47664 fi
47665 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
47666 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
47667fi
47668
a81d5bb6
MW
47669if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47670then
47671 echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47672echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6
47673if test "${wx_cv_gcc_pch_bug+set}" = set; then
47674 echo $ECHO_N "(cached) $ECHO_C" >&6
47675else
47676
6d952fd7
MW
47677 echo '#include <stdio.h>
47678 const wchar_t test_var[] = L"awidetest";' > conftest.h
47679
47680 echo '#include "conftest.h"
47681 int main()
47682 {
be49c6ec 47683 printf("%ls", test_var);
6d952fd7
MW
47684 return 0;
47685 }' > conftest.cpp
47686
47687 wx_cv_gcc_pch_bug="pch not supported"
a81d5bb6 47688
b2983f42 47689 if $CXX conftest.h >/dev/null 2>&1
a81d5bb6 47690 then
6d952fd7 47691 wx_cv_gcc_pch_bug=
a81d5bb6 47692
6c7f5e56 47693 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
a81d5bb6 47694 then
6c7f5e56
MW
47695 if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47696 grep awidetest >/dev/null
6d952fd7
MW
47697 then
47698 wx_cv_gcc_pch_bug=no
47699 else
a81d5bb6 47700 wx_cv_gcc_pch_bug=yes
6d952fd7 47701 fi
a81d5bb6
MW
47702 fi
47703 fi
47704
6c7f5e56 47705 rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
a81d5bb6
MW
47706
47707fi
47708echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47709echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6
47710
47711 if test "$wx_cv_gcc_pch_bug" = yes; then
47712 bk_use_pch=no
47713 fi
47714fi
47715
9a8f0513 47716
1e9e8aba
DE
47717
47718
a848cd7e 47719 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
47720 if test "x${host}" = "x" ; then
47721 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47722echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47723 { (exit 1); exit 1; }; }
47724 fi
47725
a848cd7e
SC
47726 BAKEFILE_HOST="${host}"
47727 fi
47728
47729 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47730
47731 if test -n "$ac_tool_prefix"; then
47732 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47733set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47734echo "$as_me:$LINENO: checking for $ac_word" >&5
47735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47736if test "${ac_cv_prog_RANLIB+set}" = set; then
47737 echo $ECHO_N "(cached) $ECHO_C" >&6
47738else
47739 if test -n "$RANLIB"; then
47740 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47741else
47742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47743for as_dir in $PATH
47744do
47745 IFS=$as_save_IFS
47746 test -z "$as_dir" && as_dir=.
47747 for ac_exec_ext in '' $ac_executable_extensions; do
47748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47749 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47751 break 2
47752 fi
47753done
47754done
47755
47756fi
47757fi
47758RANLIB=$ac_cv_prog_RANLIB
47759if test -n "$RANLIB"; then
47760 echo "$as_me:$LINENO: result: $RANLIB" >&5
47761echo "${ECHO_T}$RANLIB" >&6
47762else
47763 echo "$as_me:$LINENO: result: no" >&5
47764echo "${ECHO_T}no" >&6
47765fi
47766
47767fi
47768if test -z "$ac_cv_prog_RANLIB"; then
47769 ac_ct_RANLIB=$RANLIB
47770 # Extract the first word of "ranlib", so it can be a program name with args.
47771set dummy ranlib; ac_word=$2
47772echo "$as_me:$LINENO: checking for $ac_word" >&5
47773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47774if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47775 echo $ECHO_N "(cached) $ECHO_C" >&6
47776else
47777 if test -n "$ac_ct_RANLIB"; then
47778 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47779else
47780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47781for as_dir in $PATH
47782do
47783 IFS=$as_save_IFS
47784 test -z "$as_dir" && as_dir=.
47785 for ac_exec_ext in '' $ac_executable_extensions; do
47786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47787 ac_cv_prog_ac_ct_RANLIB="ranlib"
47788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47789 break 2
47790 fi
47791done
47792done
47793
47794 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
47795fi
47796fi
47797ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47798if test -n "$ac_ct_RANLIB"; then
47799 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47800echo "${ECHO_T}$ac_ct_RANLIB" >&6
47801else
47802 echo "$as_me:$LINENO: result: no" >&5
47803echo "${ECHO_T}no" >&6
47804fi
47805
47806 RANLIB=$ac_ct_RANLIB
47807else
47808 RANLIB="$ac_cv_prog_RANLIB"
47809fi
47810
47811 # Find a good install program. We prefer a C program (faster),
47812# so one script is as good as another. But avoid the broken or
47813# incompatible versions:
47814# SysV /etc/install, /usr/sbin/install
47815# SunOS /usr/etc/install
47816# IRIX /sbin/install
47817# AIX /bin/install
47818# AmigaOS /C/install, which installs bootblocks on floppy discs
47819# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47820# AFS /usr/afsws/bin/install, which mishandles nonexistent args
47821# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 47822# OS/2's system install, which has a completely different semantic
a848cd7e
SC
47823# ./install, which can be erroneously created by make from ./install.sh.
47824echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47825echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
47826if test -z "$INSTALL"; then
47827if test "${ac_cv_path_install+set}" = set; then
47828 echo $ECHO_N "(cached) $ECHO_C" >&6
47829else
47830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47831for as_dir in $PATH
47832do
47833 IFS=$as_save_IFS
47834 test -z "$as_dir" && as_dir=.
47835 # Account for people who put trailing slashes in PATH elements.
47836case $as_dir/ in
47837 ./ | .// | /cC/* | \
47838 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 47839 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
47840 /usr/ucb/* ) ;;
47841 *)
47842 # OSF1 and SCO ODT 3.0 have their own names for install.
47843 # Don't use installbsd from OSF since it installs stuff as root
47844 # by default.
47845 for ac_prog in ginstall scoinst install; do
47846 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
47847 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
47848 if test $ac_prog = install &&
47849 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47850 # AIX install. It has an incompatible calling convention.
47851 :
47852 elif test $ac_prog = install &&
47853 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47854 # program-specific install script used by HP pwplus--don't use.
47855 :
47856 else
47857 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47858 break 3
47859 fi
47860 fi
a848cd7e
SC
47861 done
47862 done
47863 ;;
47864esac
47865done
47866
47867
47868fi
47869 if test "${ac_cv_path_install+set}" = set; then
47870 INSTALL=$ac_cv_path_install
47871 else
47872 # As a last resort, use the slow shell script. We don't cache a
47873 # path for INSTALL within a source directory, because that will
47874 # break other packages using the cache if that directory is
47875 # removed, or if the path is relative.
47876 INSTALL=$ac_install_sh
47877 fi
47878fi
47879echo "$as_me:$LINENO: result: $INSTALL" >&5
47880echo "${ECHO_T}$INSTALL" >&6
47881
47882# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47883# It thinks the first close brace ends the variable substitution.
47884test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47885
47886test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47887
47888test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47889
47890 echo "$as_me:$LINENO: checking whether ln -s works" >&5
47891echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
47892LN_S=$as_ln_s
47893if test "$LN_S" = "ln -s"; then
47894 echo "$as_me:$LINENO: result: yes" >&5
47895echo "${ECHO_T}yes" >&6
47896else
47897 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47898echo "${ECHO_T}no, using $LN_S" >&6
47899fi
47900
47901
47902 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47903echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 47904set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
47905if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
47906 echo $ECHO_N "(cached) $ECHO_C" >&6
47907else
47908 cat >conftest.make <<\_ACEOF
47909all:
47910 @echo 'ac_maketemp="$(MAKE)"'
47911_ACEOF
47912# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47913eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
47914if test -n "$ac_maketemp"; then
47915 eval ac_cv_prog_make_${ac_make}_set=yes
47916else
47917 eval ac_cv_prog_make_${ac_make}_set=no
47918fi
47919rm -f conftest.make
47920fi
47921if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
47922 echo "$as_me:$LINENO: result: yes" >&5
47923echo "${ECHO_T}yes" >&6
47924 SET_MAKE=
47925else
47926 echo "$as_me:$LINENO: result: no" >&5
47927echo "${ECHO_T}no" >&6
47928 SET_MAKE="MAKE=${MAKE-make}"
47929fi
47930
47931
47932
a485900c
VZ
47933 if test "x$SUNCXX" = "xyes"; then
47934 AR=$CXX
47935
47936 AROPTIONS="-xar -o"
47937 else
47938 if test -n "$ac_tool_prefix"; then
a848cd7e
SC
47939 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47940set dummy ${ac_tool_prefix}ar; ac_word=$2
47941echo "$as_me:$LINENO: checking for $ac_word" >&5
47942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47943if test "${ac_cv_prog_AR+set}" = set; then
47944 echo $ECHO_N "(cached) $ECHO_C" >&6
47945else
47946 if test -n "$AR"; then
47947 ac_cv_prog_AR="$AR" # Let the user override the test.
47948else
47949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47950for as_dir in $PATH
47951do
47952 IFS=$as_save_IFS
47953 test -z "$as_dir" && as_dir=.
47954 for ac_exec_ext in '' $ac_executable_extensions; do
47955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47956 ac_cv_prog_AR="${ac_tool_prefix}ar"
47957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47958 break 2
47959 fi
47960done
47961done
47962
47963fi
47964fi
47965AR=$ac_cv_prog_AR
47966if test -n "$AR"; then
47967 echo "$as_me:$LINENO: result: $AR" >&5
47968echo "${ECHO_T}$AR" >&6
47969else
47970 echo "$as_me:$LINENO: result: no" >&5
47971echo "${ECHO_T}no" >&6
47972fi
47973
47974fi
47975if test -z "$ac_cv_prog_AR"; then
47976 ac_ct_AR=$AR
47977 # Extract the first word of "ar", so it can be a program name with args.
47978set dummy ar; ac_word=$2
47979echo "$as_me:$LINENO: checking for $ac_word" >&5
47980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47981if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47982 echo $ECHO_N "(cached) $ECHO_C" >&6
47983else
47984 if test -n "$ac_ct_AR"; then
47985 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47986else
47987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47988for as_dir in $PATH
47989do
47990 IFS=$as_save_IFS
47991 test -z "$as_dir" && as_dir=.
47992 for ac_exec_ext in '' $ac_executable_extensions; do
47993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47994 ac_cv_prog_ac_ct_AR="ar"
47995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47996 break 2
47997 fi
47998done
47999done
48000
48001 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
48002fi
48003fi
48004ac_ct_AR=$ac_cv_prog_ac_ct_AR
48005if test -n "$ac_ct_AR"; then
48006 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
48007echo "${ECHO_T}$ac_ct_AR" >&6
48008else
48009 echo "$as_me:$LINENO: result: no" >&5
48010echo "${ECHO_T}no" >&6
48011fi
48012
48013 AR=$ac_ct_AR
48014else
48015 AR="$ac_cv_prog_AR"
48016fi
48017
a485900c
VZ
48018 AROPTIONS=rcu
48019 fi
48020
48021
a848cd7e
SC
48022 if test -n "$ac_tool_prefix"; then
48023 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
48024set dummy ${ac_tool_prefix}strip; ac_word=$2
48025echo "$as_me:$LINENO: checking for $ac_word" >&5
48026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48027if test "${ac_cv_prog_STRIP+set}" = set; then
48028 echo $ECHO_N "(cached) $ECHO_C" >&6
48029else
48030 if test -n "$STRIP"; then
48031 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
48032else
48033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48034for as_dir in $PATH
48035do
48036 IFS=$as_save_IFS
48037 test -z "$as_dir" && as_dir=.
48038 for ac_exec_ext in '' $ac_executable_extensions; do
48039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48040 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
48041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48042 break 2
48043 fi
48044done
48045done
48046
48047fi
48048fi
48049STRIP=$ac_cv_prog_STRIP
48050if test -n "$STRIP"; then
48051 echo "$as_me:$LINENO: result: $STRIP" >&5
48052echo "${ECHO_T}$STRIP" >&6
48053else
48054 echo "$as_me:$LINENO: result: no" >&5
48055echo "${ECHO_T}no" >&6
48056fi
48057
48058fi
48059if test -z "$ac_cv_prog_STRIP"; then
48060 ac_ct_STRIP=$STRIP
48061 # Extract the first word of "strip", so it can be a program name with args.
48062set dummy strip; ac_word=$2
48063echo "$as_me:$LINENO: checking for $ac_word" >&5
48064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48065if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
48066 echo $ECHO_N "(cached) $ECHO_C" >&6
48067else
48068 if test -n "$ac_ct_STRIP"; then
48069 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
48070else
48071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48072for as_dir in $PATH
48073do
48074 IFS=$as_save_IFS
48075 test -z "$as_dir" && as_dir=.
48076 for ac_exec_ext in '' $ac_executable_extensions; do
48077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48078 ac_cv_prog_ac_ct_STRIP="strip"
48079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48080 break 2
48081 fi
48082done
48083done
48084
48085 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
48086fi
48087fi
48088ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
48089if test -n "$ac_ct_STRIP"; then
48090 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
48091echo "${ECHO_T}$ac_ct_STRIP" >&6
48092else
48093 echo "$as_me:$LINENO: result: no" >&5
48094echo "${ECHO_T}no" >&6
48095fi
48096
48097 STRIP=$ac_ct_STRIP
48098else
48099 STRIP="$ac_cv_prog_STRIP"
48100fi
48101
48102 if test -n "$ac_tool_prefix"; then
48103 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
48104set dummy ${ac_tool_prefix}nm; ac_word=$2
48105echo "$as_me:$LINENO: checking for $ac_word" >&5
48106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48107if test "${ac_cv_prog_NM+set}" = set; then
48108 echo $ECHO_N "(cached) $ECHO_C" >&6
48109else
48110 if test -n "$NM"; then
48111 ac_cv_prog_NM="$NM" # Let the user override the test.
48112else
48113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48114for as_dir in $PATH
48115do
48116 IFS=$as_save_IFS
48117 test -z "$as_dir" && as_dir=.
48118 for ac_exec_ext in '' $ac_executable_extensions; do
48119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48120 ac_cv_prog_NM="${ac_tool_prefix}nm"
48121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48122 break 2
48123 fi
48124done
48125done
48126
48127fi
48128fi
48129NM=$ac_cv_prog_NM
48130if test -n "$NM"; then
48131 echo "$as_me:$LINENO: result: $NM" >&5
48132echo "${ECHO_T}$NM" >&6
48133else
48134 echo "$as_me:$LINENO: result: no" >&5
48135echo "${ECHO_T}no" >&6
48136fi
48137
48138fi
48139if test -z "$ac_cv_prog_NM"; then
48140 ac_ct_NM=$NM
48141 # Extract the first word of "nm", so it can be a program name with args.
48142set dummy nm; ac_word=$2
48143echo "$as_me:$LINENO: checking for $ac_word" >&5
48144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48145if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
48146 echo $ECHO_N "(cached) $ECHO_C" >&6
48147else
48148 if test -n "$ac_ct_NM"; then
48149 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
48150else
48151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48152for as_dir in $PATH
48153do
48154 IFS=$as_save_IFS
48155 test -z "$as_dir" && as_dir=.
48156 for ac_exec_ext in '' $ac_executable_extensions; do
48157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48158 ac_cv_prog_ac_ct_NM="nm"
48159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48160 break 2
48161 fi
48162done
48163done
48164
48165 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
48166fi
48167fi
48168ac_ct_NM=$ac_cv_prog_ac_ct_NM
48169if test -n "$ac_ct_NM"; then
48170 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
48171echo "${ECHO_T}$ac_ct_NM" >&6
48172else
48173 echo "$as_me:$LINENO: result: no" >&5
48174echo "${ECHO_T}no" >&6
48175fi
48176
48177 NM=$ac_ct_NM
48178else
48179 NM="$ac_cv_prog_NM"
48180fi
48181
48182
48183 case ${BAKEFILE_HOST} in
48184 *-hp-hpux* )
1e9e8aba 48185 INSTALL_DIR="mkdir -p"
a848cd7e 48186 ;;
a485900c
VZ
48187 * )
48188 INSTALL_DIR='$(INSTALL) -d'
a848cd7e
SC
48189 ;;
48190 esac
48191
48192
48193 LDFLAGS_GUI=
48194 case ${BAKEFILE_HOST} in
48195 *-*-cygwin* | *-*-mingw32* )
48196 LDFLAGS_GUI="-mwindows"
48197 esac
48198
48199
48200 fi
48201
48202 echo "$as_me:$LINENO: checking if make is GNU make" >&5
48203echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
48204if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
48205 echo $ECHO_N "(cached) $ECHO_C" >&6
48206else
48207
48208 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
48209 egrep -s GNU > /dev/null); then
48210 bakefile_cv_prog_makeisgnu="yes"
48211 else
48212 bakefile_cv_prog_makeisgnu="no"
48213 fi
48214
48215fi
48216echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
48217echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
48218
48219 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
48220 IF_GNU_MAKE=""
48221 else
48222 IF_GNU_MAKE="#"
48223 fi
48224
48225
48226
48227 PLATFORM_UNIX=0
48228 PLATFORM_WIN32=0
48229 PLATFORM_MSDOS=0
48230 PLATFORM_MAC=0
1e9e8aba 48231 PLATFORM_MACOS=0
a848cd7e
SC
48232 PLATFORM_MACOSX=0
48233 PLATFORM_OS2=0
1e9e8aba 48234 PLATFORM_BEOS=0
a848cd7e
SC
48235
48236 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
48237 case "${BAKEFILE_HOST}" in
810b94f0 48238 *-*-mingw32* )
a848cd7e
SC
48239 PLATFORM_WIN32=1
48240 ;;
48241 *-pc-msdosdjgpp )
48242 PLATFORM_MSDOS=1
48243 ;;
48244 *-pc-os2_emx | *-pc-os2-emx )
48245 PLATFORM_OS2=1
48246 ;;
47bd5406 48247 *-*-darwin* )
a848cd7e
SC
48248 PLATFORM_MAC=1
48249 PLATFORM_MACOSX=1
48250 ;;
1e9e8aba
DE
48251 *-*-beos* )
48252 PLATFORM_BEOS=1
48253 ;;
48254 powerpc-apple-macos* )
48255 PLATFORM_MAC=1
48256 PLATFORM_MACOS=1
48257 ;;
a848cd7e
SC
48258 * )
48259 PLATFORM_UNIX=1
48260 ;;
48261 esac
48262 else
48263 case "$BAKEFILE_FORCE_PLATFORM" in
48264 win32 )
48265 PLATFORM_WIN32=1
48266 ;;
48267 msdos )
48268 PLATFORM_MSDOS=1
48269 ;;
48270 os2 )
48271 PLATFORM_OS2=1
48272 ;;
48273 darwin )
48274 PLATFORM_MAC=1
48275 PLATFORM_MACOSX=1
48276 ;;
48277 unix )
48278 PLATFORM_UNIX=1
48279 ;;
1e9e8aba
DE
48280 beos )
48281 PLATFORM_BEOS=1
48282 ;;
a848cd7e
SC
48283 * )
48284 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
48285echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
48286 { (exit 1); exit 1; }; }
48287 ;;
48288 esac
48289 fi
48290
48291
48292
48293
48294
48295
48296
48297
48298
1e9e8aba
DE
48299
48300
a848cd7e
SC
48301 # Check whether --enable-omf or --disable-omf was given.
48302if test "${enable_omf+set}" = set; then
48303 enableval="$enable_omf"
48304 bk_os2_use_omf="$enableval"
48305fi;
48306
48307 case "${BAKEFILE_HOST}" in
48308 *-*-darwin* )
47bd5406
VZ
48309 if test "x$GCC" = "xyes"; then
48310 CFLAGS="$CFLAGS -fno-common"
48311 CXXFLAGS="$CXXFLAGS -fno-common"
48312 fi
48313 if test "x$XLCC" = "xyes"; then
48314 CFLAGS="$CFLAGS -qnocommon"
48315 CXXFLAGS="$CXXFLAGS -qnocommon"
48316 fi
a848cd7e
SC
48317 ;;
48318
48319 *-pc-os2_emx | *-pc-os2-emx )
48320 if test "x$bk_os2_use_omf" = "xyes" ; then
48321 AR=emxomfar
48322 RANLIB=:
48323 LDFLAGS="-Zomf $LDFLAGS"
48324 CFLAGS="-Zomf $CFLAGS"
48325 CXXFLAGS="-Zomf $CXXFLAGS"
48326 OS2_LIBEXT="lib"
48327 else
48328 OS2_LIBEXT="a"
48329 fi
48330 ;;
1e9e8aba
DE
48331
48332 i*86-*-beos* )
48333 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
48334 ;;
a848cd7e
SC
48335 esac
48336
48337
48338 SO_SUFFIX="so"
48339 SO_SUFFIX_MODULE="so"
48340 EXEEXT=""
48341 LIBPREFIX="lib"
48342 LIBEXT=".a"
48343 DLLPREFIX="lib"
48344 DLLPREFIX_MODULE=""
48345 DLLIMP_SUFFIX=""
810b94f0 48346 dlldir="$libdir"
a848cd7e
SC
48347
48348 case "${BAKEFILE_HOST}" in
48349 *-hp-hpux* )
48350 SO_SUFFIX="sl"
48351 SO_SUFFIX_MODULE="sl"
48352 ;;
48353 *-*-aix* )
48354 SO_SUFFIX="a"
48355 SO_SUFFIX_MODULE="a"
48356 ;;
810b94f0
MW
48357 *-*-cygwin* )
48358 SO_SUFFIX="dll"
48359 SO_SUFFIX_MODULE="dll"
48360 DLLIMP_SUFFIX="dll.a"
48361 EXEEXT=".exe"
48362 DLLPREFIX="cyg"
48363 dlldir="$bindir"
48364 ;;
48365 *-*-mingw32* )
a848cd7e
SC
48366 SO_SUFFIX="dll"
48367 SO_SUFFIX_MODULE="dll"
48368 DLLIMP_SUFFIX="dll.a"
48369 EXEEXT=".exe"
48370 DLLPREFIX=""
810b94f0 48371 dlldir="$bindir"
a848cd7e
SC
48372 ;;
48373 *-pc-msdosdjgpp )
48374 EXEEXT=".exe"
48375 DLLPREFIX=""
810b94f0 48376 dlldir="$bindir"
a848cd7e
SC
48377 ;;
48378 *-pc-os2_emx | *-pc-os2-emx )
48379 SO_SUFFIX="dll"
48380 SO_SUFFIX_MODULE="dll"
48381 DLLIMP_SUFFIX=$OS2_LIBEXT
48382 EXEEXT=".exe"
48383 DLLPREFIX=""
48384 LIBPREFIX=""
48385 LIBEXT=".$OS2_LIBEXT"
810b94f0 48386 dlldir="$bindir"
a848cd7e 48387 ;;
47bd5406 48388 *-*-darwin* )
a848cd7e
SC
48389 SO_SUFFIX="dylib"
48390 SO_SUFFIX_MODULE="bundle"
48391 ;;
48392 esac
48393
48394 if test "x$DLLIMP_SUFFIX" = "x" ; then
48395 DLLIMP_SUFFIX="$SO_SUFFIX"
48396 fi
48397
48398
48399
48400
48401
48402
48403
48404
48405
48406
48407
810b94f0 48408
1e9e8aba
DE
48409 PIC_FLAG=""
48410 if test "x$GCC" = "xyes"; then
a848cd7e
SC
48411 PIC_FLAG="-fPIC"
48412 fi
48413
1e9e8aba
DE
48414 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
48415 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 48416 WINDOWS_IMPLIB=0
1e9e8aba 48417
a848cd7e
SC
48418 case "${BAKEFILE_HOST}" in
48419 *-hp-hpux* )
1e9e8aba 48420 if test "x$GCC" != "xyes"; then
a848cd7e
SC
48421 LDFLAGS="$LDFLAGS -L/usr/lib"
48422
48423 SHARED_LD_CC="${CC} -b -o"
48424 SHARED_LD_CXX="${CXX} -b -o"
48425 PIC_FLAG="+Z"
48426 fi
48427 ;;
48428
48429 *-*-linux* )
48430 if test "x$GCC" != "xyes"; then
48431 echo "$as_me:$LINENO: checking for Intel compiler" >&5
48432echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
48433if test "${bakefile_cv_prog_icc+set}" = set; then
48434 echo $ECHO_N "(cached) $ECHO_C" >&6
48435else
48436
48437 cat >conftest.$ac_ext <<_ACEOF
48438/* confdefs.h. */
48439_ACEOF
48440cat confdefs.h >>conftest.$ac_ext
48441cat >>conftest.$ac_ext <<_ACEOF
48442/* end confdefs.h. */
48443
48444int
48445main ()
48446{
48447
48448 #ifndef __INTEL_COMPILER
e5efa97e 48449 This is not ICC
a848cd7e
SC
48450 #endif
48451
48452 ;
48453 return 0;
48454}
48455_ACEOF
48456rm -f conftest.$ac_objext
48457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 48458 (eval $ac_compile) 2>conftest.er1
a848cd7e 48459 ac_status=$?
ac1cb8d3
VS
48460 grep -v '^ *+' conftest.er1 >conftest.err
48461 rm -f conftest.er1
48462 cat conftest.err >&5
a848cd7e
SC
48463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48464 (exit $ac_status); } &&
bb9e79c0 48465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
48466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48467 (eval $ac_try) 2>&5
48468 ac_status=$?
48469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48470 (exit $ac_status); }; } &&
48471 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
48472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48473 (eval $ac_try) 2>&5
48474 ac_status=$?
48475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48476 (exit $ac_status); }; }; then
48477 bakefile_cv_prog_icc=yes
48478else
48479 echo "$as_me: failed program was:" >&5
48480sed 's/^/| /' conftest.$ac_ext >&5
48481
48482bakefile_cv_prog_icc=no
48483
48484fi
ac1cb8d3 48485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
48486
48487fi
48488echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
48489echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
48490 if test "$bakefile_cv_prog_icc" = "yes"; then
48491 PIC_FLAG="-KPIC"
48492 fi
48493 fi
48494 ;;
48495
48496 *-*-solaris2* )
48497 if test "x$GCC" != xyes ; then
48498 SHARED_LD_CC="${CC} -G -o"
48499 SHARED_LD_CXX="${CXX} -G -o"
48500 PIC_FLAG="-KPIC"
48501 fi
48502 ;;
48503
48504 *-*-darwin* )
48505
473276a9
VS
48506D='$'
48507cat <<EOF >shared-ld-sh
a848cd7e
SC
48508#!/bin/sh
48509#-----------------------------------------------------------------------------
48510#-- Name: distrib/mac/shared-ld-sh
48511#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
48512#-- Author: Gilles Depeyrot
48513#-- Copyright: (c) 2002 Gilles Depeyrot
48514#-- Licence: any use permitted
48515#-----------------------------------------------------------------------------
48516
48517verbose=0
48518args=""
48519objects=""
48520linking_flag="-dynamiclib"
810b94f0 48521ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 48522
473276a9
VS
48523while test ${D}# -gt 0; do
48524 case ${D}1 in
a848cd7e
SC
48525
48526 -v)
48527 verbose=1
48528 ;;
48529
48530 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
48531 # collect these options and values
473276a9 48532 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
48533 shift
48534 ;;
48535
810b94f0
MW
48536 -s|-Wl,*)
48537 # collect these load args
48538 ldargs="${D}{ldargs} ${D}1"
2113bc77 48539 ;;
810b94f0
MW
48540
48541 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 48542 # collect these options
473276a9 48543 args="${D}{args} ${D}1"
a848cd7e
SC
48544 ;;
48545
48546 -dynamiclib|-bundle)
473276a9 48547 linking_flag="${D}1"
a848cd7e
SC
48548 ;;
48549
48550 -*)
473276a9 48551 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
48552 exit 1
48553 ;;
48554
48555 *.o | *.a | *.dylib)
48556 # collect object files
473276a9 48557 objects="${D}{objects} ${D}1"
a848cd7e
SC
48558 ;;
48559
48560 *)
473276a9 48561 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
48562 exit 1
48563 ;;
48564
48565 esac
48566 shift
48567done
48568
810b94f0
MW
48569status=0
48570
a848cd7e
SC
48571#
48572# Link one module containing all the others
48573#
473276a9 48574if test ${D}{verbose} = 1; then
810b94f0 48575 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 48576fi
810b94f0 48577c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 48578status=${D}?
a848cd7e
SC
48579
48580#
810b94f0
MW
48581# Link the shared library from the single module created, but only if the
48582# previous command didn't fail:
a848cd7e 48583#
810b94f0
MW
48584if test ${D}{status} = 0; then
48585 if test ${D}{verbose} = 1; then
48586 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48587 fi
48588 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48589 status=${D}?
a848cd7e
SC
48590fi
48591
48592#
48593# Remove intermediate module
48594#
473276a9 48595rm -f master.${D}${D}.o
a848cd7e 48596
810b94f0 48597exit ${D}status
a848cd7e 48598EOF
473276a9 48599
583d6b4b
VZ
48600 chmod +x shared-ld-sh
48601
48602 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48603 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
48604
48605
48606 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48607echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
48608if test "${bakefile_cv_gcc31+set}" = set; then
48609 echo $ECHO_N "(cached) $ECHO_C" >&6
48610else
48611
48612 cat >conftest.$ac_ext <<_ACEOF
48613/* confdefs.h. */
48614_ACEOF
48615cat confdefs.h >>conftest.$ac_ext
48616cat >>conftest.$ac_ext <<_ACEOF
48617/* end confdefs.h. */
48618
48619int
48620main ()
48621{
48622
48623 #if (__GNUC__ < 3) || \
48624 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 48625 This is old gcc
583d6b4b 48626 #endif
a848cd7e 48627
583d6b4b
VZ
48628 ;
48629 return 0;
48630}
48631_ACEOF
48632rm -f conftest.$ac_objext
48633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48634 (eval $ac_compile) 2>conftest.er1
48635 ac_status=$?
48636 grep -v '^ *+' conftest.er1 >conftest.err
48637 rm -f conftest.er1
48638 cat conftest.err >&5
48639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48640 (exit $ac_status); } &&
bb9e79c0 48641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
48642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48643 (eval $ac_try) 2>&5
48644 ac_status=$?
48645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48646 (exit $ac_status); }; } &&
48647 { ac_try='test -s conftest.$ac_objext'
48648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48649 (eval $ac_try) 2>&5
48650 ac_status=$?
48651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48652 (exit $ac_status); }; }; then
48653
48654 bakefile_cv_gcc31=yes
48655
48656else
48657 echo "$as_me: failed program was:" >&5
48658sed 's/^/| /' conftest.$ac_ext >&5
48659
48660
48661 bakefile_cv_gcc31=no
48662
48663
48664fi
48665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48666
48667fi
48668echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48669echo "${ECHO_T}$bakefile_cv_gcc31" >&6
48670 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 48671 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 48672 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
48673 else
48674 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 48675 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
48676 fi
48677
47bd5406
VZ
48678 if test "x$GCC" == "xyes"; then
48679 PIC_FLAG="-dynamic -fPIC"
48680 fi
48681 if test "x$XLCC" = "xyes"; then
48682 PIC_FLAG="-dynamic -DPIC"
48683 fi
a848cd7e
SC
48684 ;;
48685
48686 *-*-aix* )
f6b50c59 48687 if test "x$GCC" = "xyes"; then
583d6b4b 48688 PIC_FLAG=""
f6b50c59 48689
583d6b4b
VZ
48690 case "${BAKEFILE_HOST}" in
48691 *-*-aix5* )
48692 LD_EXPFULL="-Wl,-bexpfull"
48693 ;;
48694 esac
f6b50c59 48695
583d6b4b
VZ
48696 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48697 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48698 else
48699 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
48700set dummy makeC++SharedLib; ac_word=$2
48701echo "$as_me:$LINENO: checking for $ac_word" >&5
48702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48703if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48704 echo $ECHO_N "(cached) $ECHO_C" >&6
48705else
48706 if test -n "$AIX_CXX_LD"; then
48707 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48708else
48709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48710for as_dir in $PATH
48711do
48712 IFS=$as_save_IFS
48713 test -z "$as_dir" && as_dir=.
48714 for ac_exec_ext in '' $ac_executable_extensions; do
48715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48716 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48718 break 2
48719 fi
48720done
48721done
48722
48723 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48724fi
48725fi
48726AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48727if test -n "$AIX_CXX_LD"; then
48728 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48729echo "${ECHO_T}$AIX_CXX_LD" >&6
48730else
48731 echo "$as_me:$LINENO: result: no" >&5
48732echo "${ECHO_T}no" >&6
48733fi
48734
f6b50c59 48735 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
48736 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48737 fi
48738 ;;
48739
48740 *-*-beos* )
1e9e8aba
DE
48741 SHARED_LD_CC="${LD} -nostart -o"
48742 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
48743 ;;
48744
48745 *-*-irix* )
48746 if test "x$GCC" != "xyes"; then
48747 PIC_FLAG="-KPIC"
48748 fi
48749 ;;
48750
48751 *-*-cygwin* | *-*-mingw32* )
48752 PIC_FLAG=""
1e9e8aba
DE
48753 SHARED_LD_CC="\$(CC) -shared -o"
48754 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 48755 WINDOWS_IMPLIB=1
a848cd7e
SC
48756 ;;
48757
48758 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
48759 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48760 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 48761 PIC_FLAG=""
473276a9
VS
48762
48763D='$'
48764cat <<EOF >dllar.sh
48765#!/bin/sh
48766#
48767# dllar - a tool to build both a .dll and an .a file
48768# from a set of object (.o) files for EMX/OS2.
48769#
48770# Written by Andrew Zabolotny, bit@freya.etu.ru
48771# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48772#
48773# This script will accept a set of files on the command line.
48774# All the public symbols from the .o files will be exported into
48775# a .DEF file, then linker will be run (through gcc) against them to
48776# build a shared library consisting of all given .o files. All libraries
48777# (.a) will be first decompressed into component .o files then act as
48778# described above. You can optionally give a description (-d "description")
48779# which will be put into .DLL. To see the list of accepted options (as well
48780# as command-line format) simply run this program without options. The .DLL
48781# is built to be imported by name (there is no guarantee that new versions
48782# of the library you build will have same ordinals for same symbols).
48783#
48784# dllar is free software; you can redistribute it and/or modify
48785# it under the terms of the GNU General Public License as published by
48786# the Free Software Foundation; either version 2, or (at your option)
48787# any later version.
48788#
48789# dllar is distributed in the hope that it will be useful,
48790# but WITHOUT ANY WARRANTY; without even the implied warranty of
48791# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48792# GNU General Public License for more details.
48793#
48794# You should have received a copy of the GNU General Public License
48795# along with dllar; see the file COPYING. If not, write to the Free
48796# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48797# 02111-1307, USA.
48798
48799# To successfuly run this program you will need:
48800# - Current drive should have LFN support (HPFS, ext2, network, etc)
48801# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48802# - gcc
48803# (used to build the .dll)
48804# - emxexp
48805# (used to create .def file from .o files)
48806# - emximp
48807# (used to create .a file from .def file)
48808# - GNU text utilites (cat, sort, uniq)
48809# used to process emxexp output
48810# - GNU file utilities (mv, rm)
48811# - GNU sed
48812# - lxlite (optional, see flag below)
48813# (used for general .dll cleanup)
48814#
48815
48816flag_USE_LXLITE=1;
48817
48818#
48819# helper functions
48820# basnam, variant of basename, which does _not_ remove the path, _iff_
48821# second argument (suffix to remove) is given
48822basnam(){
48823 case ${D}# in
48824 1)
1e9e8aba 48825 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
48826 ;;
48827 2)
48828 echo ${D}1 | sed 's/'${D}2'${D}//'
48829 ;;
48830 *)
48831 echo "error in basnam ${D}*"
48832 exit 8
48833 ;;
48834 esac
48835}
48836
48837# Cleanup temporary files and output
48838CleanUp() {
48839 cd ${D}curDir
48840 for i in ${D}inputFiles ; do
48841 case ${D}i in
48842 *!)
48843 rm -rf \`basnam ${D}i !\`
48844 ;;
48845 *)
48846 ;;
48847 esac
48848 done
48849
48850 # Kill result in case of failure as there is just to many stupid make/nmake
48851 # things out there which doesn't do this.
1e9e8aba 48852 if [ ${D}# -eq 0 ]; then
473276a9
VS
48853 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48854 fi
48855}
48856
48857# Print usage and exit script with rc=1.
48858PrintHelp() {
b1d22ded
DE
48859 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48860 echo ' [-name-mangler-script script.sh]'
48861 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48862 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
48863 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 48864 echo ' [*.o] [*.a]'
473276a9
VS
48865 echo '*> "output_file" should have no extension.'
48866 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
48867 echo ' The import library name is derived from this and is set to "name".a,'
48868 echo ' unless overridden by -import'
48869 echo '*> "importlib_name" should have no extension.'
48870 echo ' If it has the .o, or .a extension, it is automatically removed.'
48871 echo ' This name is used as the import library name and may be longer and'
48872 echo ' more descriptive than the DLL name which has to follow the old '
48873 echo ' 8.3 convention of FAT.'
b1d22ded
DE
48874 echo '*> "script.sh may be given to override the output_file name by a'
48875 echo ' different name. It is mainly useful if the regular make process'
48876 echo ' of some package does not take into account OS/2 restriction of'
48877 echo ' DLL name lengths. It takes the importlib name as input and is'
48878 echo ' supposed to procude a shorter name as output. The script should'
48879 echo ' expect to get importlib_name without extension and should produce'
48880 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
48881 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
48882 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48883 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
48884 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48885 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
48886 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48887 echo ' If the last character of a symbol is "*", all symbols beginning'
48888 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 48889 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 48890 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 48891 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 48892 echo ' C runtime DLLs.'
b1d22ded 48893 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
48894 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48895 echo ' unchanged to GCC at the end of command line.'
48896 echo '*> If you create a DLL from a library and you do not specify -o,'
48897 echo ' the basename for DLL and import library will be set to library name,'
48898 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
48899 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48900 echo ' library will be renamed into gcc_s.a.'
48901 echo '--------'
48902 echo 'Example:'
48903 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48904 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48905 CleanUp
48906 exit 1
48907}
48908
48909# Execute a command.
48910# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48911# @Uses Whatever CleanUp() uses.
48912doCommand() {
48913 echo "${D}*"
48914 eval ${D}*
48915 rcCmd=${D}?
48916
1e9e8aba 48917 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
48918 echo "command failed, exit code="${D}rcCmd
48919 CleanUp
48920 exit ${D}rcCmd
48921 fi
48922}
48923
48924# main routine
48925# setup globals
48926cmdLine=${D}*
48927outFile=""
48928outimpFile=""
48929inputFiles=""
b1d22ded 48930renameScript=""
473276a9
VS
48931description=""
48932CC=gcc.exe
48933CFLAGS="-s -Zcrtdll"
48934EXTRA_CFLAGS=""
48935EXPORT_BY_ORDINALS=0
48936exclude_symbols=""
48937library_flags=""
48938curDir=\`pwd\`
48939curDirS=curDir
48940case ${D}curDirS in
48941*/)
48942 ;;
48943*)
48944 curDirS=${D}{curDirS}"/"
48945 ;;
48946esac
48947# Parse commandline
48948libsToLink=0
b1d22ded 48949omfLinking=0
1e9e8aba 48950while [ ${D}1 ]; do
473276a9
VS
48951 case ${D}1 in
48952 -ord*)
48953 EXPORT_BY_ORDINALS=1;
48954 ;;
48955 -o*)
48956 shift
48957 outFile=${D}1
48958 ;;
48959 -i*)
48960 shift
48961 outimpFile=${D}1
48962 ;;
b1d22ded
DE
48963 -name-mangler-script)
48964 shift
48965 renameScript=${D}1
48966 ;;
473276a9
VS
48967 -d*)
48968 shift
48969 description=${D}1
48970 ;;
48971 -f*)
48972 shift
48973 CFLAGS=${D}1
48974 ;;
48975 -c*)
48976 shift
48977 CC=${D}1
48978 ;;
48979 -h*)
48980 PrintHelp
48981 ;;
48982 -ex*)
48983 shift
48984 exclude_symbols=${D}{exclude_symbols}${D}1" "
48985 ;;
48986 -libf*)
48987 shift
48988 library_flags=${D}{library_flags}${D}1" "
48989 ;;
48990 -nocrt*)
48991 CFLAGS="-s"
48992 ;;
48993 -nolxl*)
48994 flag_USE_LXLITE=0
48995 ;;
48996 -* | /*)
48997 case ${D}1 in
48998 -L* | -l*)
48999 libsToLink=1
49000 ;;
b1d22ded
DE
49001 -Zomf)
49002 omfLinking=1
49003 ;;
473276a9
VS
49004 *)
49005 ;;
49006 esac
49007 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
49008 ;;
b1d22ded
DE
49009 *.dll)
49010 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
49011 if [ ${D}omfLinking -eq 1 ]; then
49012 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
49013 else
49014 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
49015 fi
49016 ;;
473276a9
VS
49017 *)
49018 found=0;
1e9e8aba 49019 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
49020 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
49021 else
49022 for file in ${D}1 ; do
1e9e8aba 49023 if [ -f ${D}file ]; then
473276a9
VS
49024 inputFiles="${D}{inputFiles} ${D}file"
49025 found=1
49026 fi
49027 done
1e9e8aba 49028 if [ ${D}found -eq 0 ]; then
473276a9
VS
49029 echo "ERROR: No file(s) found: "${D}1
49030 exit 8
49031 fi
49032 fi
49033 ;;
49034 esac
49035 shift
49036done # iterate cmdline words
49037
49038#
1e9e8aba 49039if [ -z "${D}inputFiles" ]; then
473276a9
VS
49040 echo "dllar: no input files"
49041 PrintHelp
49042fi
49043
49044# Now extract all .o files from .a files
49045newInputFiles=""
49046for file in ${D}inputFiles ; do
49047 case ${D}file in
49048 *.a | *.lib)
49049 case ${D}file in
49050 *.a)
49051 suffix=".a"
49052 AR="ar"
49053 ;;
49054 *.lib)
49055 suffix=".lib"
49056 AR="emxomfar"
49057 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
49058 ;;
49059 *)
49060 ;;
49061 esac
49062 dirname=\`basnam ${D}file ${D}suffix\`"_%"
49063 mkdir ${D}dirname
1e9e8aba 49064 if [ ${D}? -ne 0 ]; then
473276a9
VS
49065 echo "Failed to create subdirectory ./${D}dirname"
49066 CleanUp
49067 exit 8;
49068 fi
49069 # Append '!' to indicate archive
49070 newInputFiles="${D}newInputFiles ${D}{dirname}!"
49071 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
49072 cd ${D}curDir
49073 found=0;
49074 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 49075 if [ -f ${D}subfile ]; then
473276a9 49076 found=1
1e9e8aba 49077 if [ -s ${D}subfile ]; then
473276a9
VS
49078 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
49079 newInputFiles="${D}newInputFiles ${D}subfile"
49080 fi
49081 fi
49082 done
1e9e8aba
DE
49083 if [ ${D}found -eq 0 ]; then
49084 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
49085 fi
49086 ;;
49087 *)
49088 newInputFiles="${D}{newInputFiles} ${D}file"
49089 ;;
49090 esac
49091done
49092inputFiles="${D}newInputFiles"
49093
49094# Output filename(s).
49095do_backup=0;
1e9e8aba 49096if [ -z ${D}outFile ]; then
473276a9
VS
49097 do_backup=1;
49098 set outFile ${D}inputFiles; outFile=${D}2
49099fi
49100
49101# If it is an archive, remove the '!' and the '_%' suffixes
49102case ${D}outFile in
49103*_%!)
49104 outFile=\`basnam ${D}outFile _%!\`
49105 ;;
49106*)
49107 ;;
49108esac
49109case ${D}outFile in
49110*.dll)
49111 outFile=\`basnam ${D}outFile .dll\`
49112 ;;
49113*.DLL)
49114 outFile=\`basnam ${D}outFile .DLL\`
49115 ;;
49116*.o)
49117 outFile=\`basnam ${D}outFile .o\`
49118 ;;
49119*.obj)
49120 outFile=\`basnam ${D}outFile .obj\`
49121 ;;
49122*.a)
49123 outFile=\`basnam ${D}outFile .a\`
49124 ;;
49125*.lib)
49126 outFile=\`basnam ${D}outFile .lib\`
49127 ;;
49128*)
49129 ;;
49130esac
49131case ${D}outimpFile in
49132*.a)
49133 outimpFile=\`basnam ${D}outimpFile .a\`
49134 ;;
49135*.lib)
49136 outimpFile=\`basnam ${D}outimpFile .lib\`
49137 ;;
49138*)
49139 ;;
49140esac
1e9e8aba 49141if [ -z ${D}outimpFile ]; then
473276a9
VS
49142 outimpFile=${D}outFile
49143fi
49144defFile="${D}{outFile}.def"
49145arcFile="${D}{outimpFile}.a"
49146arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
49147
49148#create ${D}dllFile as something matching 8.3 restrictions,
49149if [ -z ${D}renameScript ] ; then
49150 dllFile="${D}outFile"
49151else
49152 dllFile=\`${D}renameScript ${D}outimpFile\`
49153fi
473276a9 49154
1e9e8aba
DE
49155if [ ${D}do_backup -ne 0 ] ; then
49156 if [ -f ${D}arcFile ] ; then
473276a9
VS
49157 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
49158 fi
1e9e8aba 49159 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
49160 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
49161 fi
49162fi
49163
49164# Extract public symbols from all the object files.
49165tmpdefFile=${D}{defFile}_%
49166rm -f ${D}tmpdefFile
49167for file in ${D}inputFiles ; do
49168 case ${D}file in
49169 *!)
49170 ;;
49171 *)
49172 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
49173 ;;
49174 esac
49175done
49176
49177# Create the def file.
49178rm -f ${D}defFile
49179echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
49180dllFile="${D}{dllFile}.dll"
49181if [ ! -z ${D}description ]; then
1e9e8aba 49182 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
49183fi
49184echo "EXPORTS" >> ${D}defFile
49185
49186doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
49187grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
49188
49189# Checks if the export is ok or not.
49190for word in ${D}exclude_symbols; do
49191 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
49192 mv ${D}{tmpdefFile}% ${D}tmpdefFile
49193done
49194
49195
1e9e8aba
DE
49196if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49197 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
49198 sed '
49199 N
49200 : loop
1e9e8aba 49201 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
49202 t loop
49203 ' > ${D}{tmpdefFile}%
49204 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
49205else
49206 rm -f ${D}{tmpdefFile}%
49207fi
49208cat ${D}tmpdefFile >> ${D}defFile
49209rm -f ${D}tmpdefFile
49210
49211# Do linking, create implib, and apply lxlite.
49212gccCmdl="";
49213for file in ${D}inputFiles ; do
49214 case ${D}file in
49215 *!)
49216 ;;
49217 *)
49218 gccCmdl="${D}gccCmdl ${D}file"
49219 ;;
49220 esac
49221done
49222doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
49223touch "${D}{outFile}.dll"
49224
49225doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 49226if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 49227 add_flags="";
1e9e8aba 49228 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
49229 add_flags="-ynd"
49230 fi
49231 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
49232fi
49233doCommand "emxomf -s -l ${D}arcFile"
49234
49235# Successful exit.
49236CleanUp 1
49237exit 0
49238EOF
49239
49240 chmod +x dllar.sh
a848cd7e
SC
49241 ;;
49242
1e9e8aba 49243 powerpc-apple-macos* | \
0ad5d837 49244 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a485900c 49245 *-*-mirbsd* | \
a848cd7e
SC
49246 *-*-sunos4* | \
49247 *-*-osf* | \
49248 *-*-dgux5* | \
47a7e797
MW
49249 *-*-sysv5* | \
49250 *-pc-msdosdjgpp )
a848cd7e
SC
49251 ;;
49252
49253 *)
3ecd9f92 49254 esac
a848cd7e 49255
2057db16
VS
49256 if test "x$PIC_FLAG" != "x" ; then
49257 PIC_FLAG="$PIC_FLAG -DPIC"
49258 fi
49259
a848cd7e
SC
49260 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
49261 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
49262 fi
49263 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
49264 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
49265 fi
49266
49267
49268
49269
49270
49271
49272
49273
810b94f0 49274
a848cd7e
SC
49275 USE_SOVERSION=0
49276 USE_SOVERLINUX=0
49277 USE_SOVERSOLARIS=0
810b94f0 49278 USE_SOVERCYGWIN=0
a848cd7e
SC
49279 USE_SOSYMLINKS=0
49280 USE_MACVERSION=0
49281 SONAME_FLAG=
49282
49283 case "${BAKEFILE_HOST}" in
0ad5d837 49284 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
49285 SONAME_FLAG="-Wl,-soname,"
49286 USE_SOVERSION=1
49287 USE_SOVERLINUX=1
49288 USE_SOSYMLINKS=1
49289 ;;
49290
a848cd7e
SC
49291 *-*-solaris2* )
49292 SONAME_FLAG="-h "
49293 USE_SOVERSION=1
49294 USE_SOVERSOLARIS=1
49295 USE_SOSYMLINKS=1
49296 ;;
49297
49298 *-*-darwin* )
49299 USE_MACVERSION=1
49300 USE_SOVERSION=1
49301 USE_SOSYMLINKS=1
49302 ;;
810b94f0
MW
49303
49304 *-*-cygwin* )
49305 USE_SOVERSION=1
49306 USE_SOVERCYGWIN=1
49307 ;;
a848cd7e
SC
49308 esac
49309
49310
49311
49312
49313
49314
49315
49316
49317
810b94f0 49318
f10e38c4
VZ
49319 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
49320if test "${enable_dependency_tracking+set}" = set; then
49321 enableval="$enable_dependency_tracking"
49322 bk_use_trackdeps="$enableval"
49323fi;
49324
a848cd7e
SC
49325 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
49326echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 49327
a485900c 49328 BK_DEPS=""
f10e38c4
VZ
49329 if test "x$bk_use_trackdeps" = "xno" ; then
49330 DEPS_TRACKING=0
49331 echo "$as_me:$LINENO: result: disabled" >&5
49332echo "${ECHO_T}disabled" >&6
49333 else
49334 DEPS_TRACKING=1
49335
49336 if test "x$GCC" = "xyes"; then
49337 DEPSMODE=gcc
49338 case "${BAKEFILE_HOST}" in
49339 *-*-darwin* )
49340 DEPSFLAG="-no-cpp-precomp -MMD"
49341 ;;
49342 * )
49343 DEPSFLAG="-MMD"
49344 ;;
49345 esac
49346 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 49347echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
49348 elif test "x$MWCC" = "xyes"; then
49349 DEPSMODE=mwcc
49350 DEPSFLAG="-MM"
49351 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 49352echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
49353 elif test "x$SUNCC" = "xyes"; then
49354 DEPSMODE=unixcc
49355 DEPSFLAG="-xM1"
49356 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 49357echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
49358 elif test "x$SGICC" = "xyes"; then
49359 DEPSMODE=unixcc
49360 DEPSFLAG="-M"
49361 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 49362echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
49363 elif test "x$HPCC" = "xyes"; then
49364 DEPSMODE=unixcc
49365 DEPSFLAG="+make"
49366 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 49367echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
49368 elif test "x$COMPAQCC" = "xyes"; then
49369 DEPSMODE=gcc
49370 DEPSFLAG="-MD"
49371 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 49372echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
49373 else
49374 DEPS_TRACKING=0
49375 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 49376echo "${ECHO_T}none" >&6
f10e38c4 49377 fi
a848cd7e 49378
f10e38c4 49379 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
49380
49381D='$'
49382cat <<EOF >bk-deps
a848cd7e
SC
49383#!/bin/sh
49384
49385# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
49386# script. It is used to track C/C++ files dependencies in portable way.
49387#
49388# Permission is given to use this file in any way.
49389
473276a9 49390DEPSMODE=${DEPSMODE}
a848cd7e 49391DEPSDIR=.deps
0ad5d837 49392DEPSFLAG="${DEPSFLAG}"
a848cd7e 49393
473276a9 49394mkdir -p ${D}DEPSDIR
a848cd7e 49395
473276a9 49396if test ${D}DEPSMODE = gcc ; then
0ad5d837 49397 ${D}* ${D}{DEPSFLAG}
473276a9
VS
49398 status=${D}?
49399 if test ${D}{status} != 0 ; then
49400 exit ${D}{status}
a848cd7e
SC
49401 fi
49402 # move created file to the location we want it in:
473276a9
VS
49403 while test ${D}# -gt 0; do
49404 case "${D}1" in
a848cd7e
SC
49405 -o )
49406 shift
473276a9 49407 objfile=${D}1
a848cd7e
SC
49408 ;;
49409 -* )
49410 ;;
49411 * )
473276a9 49412 srcfile=${D}1
a848cd7e
SC
49413 ;;
49414 esac
49415 shift
49416 done
1e9e8aba
DE
49417 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
49418 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
49419 if test -f ${D}depfile ; then
49420 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
49421 rm -f ${D}depfile
a848cd7e 49422 else
a1aa0349 49423 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 49424 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
49425 if test ! -f ${D}depfile ; then
49426 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
49427 depfile="${D}objfile.d"
49428 fi
473276a9
VS
49429 if test -f ${D}depfile ; then
49430 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
49431 rm -f ${D}depfile
a848cd7e
SC
49432 fi
49433 fi
49434 exit 0
81f90336 49435elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 49436 ${D}* || exit ${D}?
81f90336
MW
49437 # Run mwcc again with -MM and redirect into the dep file we want
49438 # NOTE: We can't use shift here because we need ${D}* to be valid
49439 prevarg=
49440 for arg in ${D}* ; do
49441 if test "${D}prevarg" = "-o"; then
49442 objfile=${D}arg
49443 else
49444 case "${D}arg" in
49445 -* )
49446 ;;
49447 * )
49448 srcfile=${D}arg
49449 ;;
49450 esac
49451 fi
49452 prevarg="${D}arg"
49453 done
0ad5d837 49454 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 49455 exit 0
0ad5d837 49456elif test ${D}DEPSMODE = unixcc; then
f6b50c59 49457 ${D}* || exit ${D}?
a9e5b1f0
MW
49458 # Run compiler again with deps flag and redirect into the dep file.
49459 # It doesn't work if the '-o FILE' option is used, but without it the
49460 # dependency file will contain the wrong name for the object. So it is
49461 # removed from the command line, and the dep file is fixed with sed.
49462 cmd=""
49463 while test ${D}# -gt 0; do
49464 case "${D}1" in
49465 -o )
49466 shift
49467 objfile=${D}1
49468 ;;
49469 * )
49470 eval arg${D}#=\\${D}1
49471 cmd="${D}cmd \\${D}arg${D}#"
49472 ;;
49473 esac
49474 shift
49475 done
0ad5d837 49476 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 49477 exit 0
a848cd7e 49478else
473276a9
VS
49479 ${D}*
49480 exit ${D}?
a848cd7e
SC
49481fi
49482EOF
473276a9 49483
f10e38c4 49484 chmod +x bk-deps
a485900c 49485 BK_DEPS="`pwd`/bk-deps"
f10e38c4 49486 fi
a848cd7e
SC
49487 fi
49488
49489
49490
49491
a485900c 49492
a848cd7e
SC
49493 case ${BAKEFILE_HOST} in
49494 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
49495 if test -n "$ac_tool_prefix"; then
49496 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
49497set dummy ${ac_tool_prefix}windres; ac_word=$2
49498echo "$as_me:$LINENO: checking for $ac_word" >&5
49499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49500if test "${ac_cv_prog_WINDRES+set}" = set; then
49501 echo $ECHO_N "(cached) $ECHO_C" >&6
49502else
49503 if test -n "$WINDRES"; then
49504 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
49505else
49506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49507for as_dir in $PATH
49508do
49509 IFS=$as_save_IFS
49510 test -z "$as_dir" && as_dir=.
49511 for ac_exec_ext in '' $ac_executable_extensions; do
49512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49513 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
49514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49515 break 2
49516 fi
49517done
49518done
49519
49520fi
49521fi
49522WINDRES=$ac_cv_prog_WINDRES
49523if test -n "$WINDRES"; then
49524 echo "$as_me:$LINENO: result: $WINDRES" >&5
49525echo "${ECHO_T}$WINDRES" >&6
49526else
49527 echo "$as_me:$LINENO: result: no" >&5
49528echo "${ECHO_T}no" >&6
49529fi
49530
49531fi
49532if test -z "$ac_cv_prog_WINDRES"; then
49533 ac_ct_WINDRES=$WINDRES
49534 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
49535set dummy windres; ac_word=$2
49536echo "$as_me:$LINENO: checking for $ac_word" >&5
49537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 49538if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
49539 echo $ECHO_N "(cached) $ECHO_C" >&6
49540else
8ced02f6
DE
49541 if test -n "$ac_ct_WINDRES"; then
49542 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
49543else
49544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49545for as_dir in $PATH
49546do
49547 IFS=$as_save_IFS
49548 test -z "$as_dir" && as_dir=.
49549 for ac_exec_ext in '' $ac_executable_extensions; do
49550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 49551 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
49552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49553 break 2
49554 fi
49555done
49556done
49557
a848cd7e
SC
49558fi
49559fi
8ced02f6
DE
49560ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49561if test -n "$ac_ct_WINDRES"; then
49562 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49563echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
49564else
49565 echo "$as_me:$LINENO: result: no" >&5
49566echo "${ECHO_T}no" >&6
49567fi
49568
8ced02f6
DE
49569 WINDRES=$ac_ct_WINDRES
49570else
49571 WINDRES="$ac_cv_prog_WINDRES"
49572fi
49573
a848cd7e
SC
49574 ;;
49575
1e9e8aba 49576 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
49577 # Extract the first word of "Rez", so it can be a program name with args.
49578set dummy Rez; ac_word=$2
49579echo "$as_me:$LINENO: checking for $ac_word" >&5
49580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 49581if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
49582 echo $ECHO_N "(cached) $ECHO_C" >&6
49583else
8ced02f6
DE
49584 if test -n "$REZ"; then
49585 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
49586else
49587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49588for as_dir in $PATH
49589do
49590 IFS=$as_save_IFS
49591 test -z "$as_dir" && as_dir=.
49592 for ac_exec_ext in '' $ac_executable_extensions; do
49593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 49594 ac_cv_prog_REZ="Rez"
a848cd7e
SC
49595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49596 break 2
49597 fi
49598done
49599done
49600
8ced02f6 49601 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
49602fi
49603fi
8ced02f6
DE
49604REZ=$ac_cv_prog_REZ
49605if test -n "$REZ"; then
49606 echo "$as_me:$LINENO: result: $REZ" >&5
49607echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
49608else
49609 echo "$as_me:$LINENO: result: no" >&5
49610echo "${ECHO_T}no" >&6
49611fi
49612
49613 # Extract the first word of "SetFile", so it can be a program name with args.
49614set dummy SetFile; ac_word=$2
49615echo "$as_me:$LINENO: checking for $ac_word" >&5
49616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49617if test "${ac_cv_prog_SETFILE+set}" = set; then
49618 echo $ECHO_N "(cached) $ECHO_C" >&6
49619else
49620 if test -n "$SETFILE"; then
49621 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49622else
49623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49624for as_dir in $PATH
49625do
49626 IFS=$as_save_IFS
49627 test -z "$as_dir" && as_dir=.
49628 for ac_exec_ext in '' $ac_executable_extensions; do
49629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49630 ac_cv_prog_SETFILE="SetFile"
49631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49632 break 2
49633 fi
49634done
49635done
49636
49637 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49638fi
49639fi
49640SETFILE=$ac_cv_prog_SETFILE
49641if test -n "$SETFILE"; then
49642 echo "$as_me:$LINENO: result: $SETFILE" >&5
49643echo "${ECHO_T}$SETFILE" >&6
49644else
49645 echo "$as_me:$LINENO: result: no" >&5
49646echo "${ECHO_T}no" >&6
49647fi
49648
49649 ;;
49650 esac
49651
49652
49653
49654
49655
8ced02f6 49656
99a2637b 49657 BAKEFILE_BAKEFILE_M4_VERSION="0.2.1"
a848cd7e 49658
dcc1b6ad 49659
480b9f18 49660BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.1"
a848cd7e 49661
646b6ec1 49662
74b84332 49663
a848cd7e
SC
49664 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
49665if test "${enable_precomp_headers+set}" = set; then
49666 enableval="$enable_precomp_headers"
49667 bk_use_pch="$enableval"
49668fi;
49669
49670 GCC_PCH=0
f10e38c4
VZ
49671 ICC_PCH=0
49672 USE_PCH=0
a485900c 49673 BK_MAKE_PCH=""
a848cd7e 49674
5c60e845
MW
49675 case ${BAKEFILE_HOST} in
49676 *-*-cygwin* )
49677 bk_use_pch="no"
49678 ;;
49679 esac
49680
a848cd7e
SC
49681 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49682 if test "x$GCC" = "xyes"; then
49683 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49684echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
49685 cat >conftest.$ac_ext <<_ACEOF
49686/* confdefs.h. */
49687_ACEOF
49688cat confdefs.h >>conftest.$ac_ext
49689cat >>conftest.$ac_ext <<_ACEOF
49690/* end confdefs.h. */
49691
49692int
49693main ()
49694{
49695
49696 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 49697 There is no PCH support
a848cd7e
SC
49698 #endif
49699 #if (__GNUC__ < 3)
e5efa97e 49700 There is no PCH support
a848cd7e
SC
49701 #endif
49702 #if (__GNUC__ == 3) && \
49703 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
49704 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49705 ( defined(__INTEL_COMPILER) )
e5efa97e 49706 There is no PCH support
a848cd7e
SC
49707 #endif
49708
49709 ;
49710 return 0;
49711}
49712_ACEOF
49713rm -f conftest.$ac_objext
49714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 49715 (eval $ac_compile) 2>conftest.er1
a848cd7e 49716 ac_status=$?
ac1cb8d3
VS
49717 grep -v '^ *+' conftest.er1 >conftest.err
49718 rm -f conftest.er1
49719 cat conftest.err >&5
a848cd7e
SC
49720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49721 (exit $ac_status); } &&
bb9e79c0 49722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
49723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49724 (eval $ac_try) 2>&5
49725 ac_status=$?
49726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49727 (exit $ac_status); }; } &&
49728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
49729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49730 (eval $ac_try) 2>&5
49731 ac_status=$?
49732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49733 (exit $ac_status); }; }; then
49734
49735 echo "$as_me:$LINENO: result: yes" >&5
49736echo "${ECHO_T}yes" >&6
a848cd7e
SC
49737 GCC_PCH=1
49738
49739else
49740 echo "$as_me: failed program was:" >&5
49741sed 's/^/| /' conftest.$ac_ext >&5
49742
49743
f10e38c4
VZ
49744 cat >conftest.$ac_ext <<_ACEOF
49745/* confdefs.h. */
49746_ACEOF
49747cat confdefs.h >>conftest.$ac_ext
49748cat >>conftest.$ac_ext <<_ACEOF
49749/* end confdefs.h. */
49750
49751int
49752main ()
49753{
49754
49755 #if !defined(__INTEL_COMPILER) || \
49756 (__INTEL_COMPILER < 800)
e5efa97e 49757 There is no PCH support
f10e38c4
VZ
49758 #endif
49759
49760 ;
49761 return 0;
49762}
49763_ACEOF
49764rm -f conftest.$ac_objext
49765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49766 (eval $ac_compile) 2>conftest.er1
49767 ac_status=$?
49768 grep -v '^ *+' conftest.er1 >conftest.err
49769 rm -f conftest.er1
49770 cat conftest.err >&5
49771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49772 (exit $ac_status); } &&
bb9e79c0 49773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
49774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49775 (eval $ac_try) 2>&5
49776 ac_status=$?
49777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49778 (exit $ac_status); }; } &&
49779 { ac_try='test -s conftest.$ac_objext'
49780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49781 (eval $ac_try) 2>&5
49782 ac_status=$?
49783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49784 (exit $ac_status); }; }; then
49785
49786 echo "$as_me:$LINENO: result: yes" >&5
49787echo "${ECHO_T}yes" >&6
49788 ICC_PCH=1
49789
49790else
49791 echo "$as_me: failed program was:" >&5
49792sed 's/^/| /' conftest.$ac_ext >&5
49793
49794
49795 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
49796echo "${ECHO_T}no" >&6
49797
49798fi
ac1cb8d3 49799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
49800
49801fi
49802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49803 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49804 USE_PCH=1
1e9e8aba
DE
49805
49806D='$'
49807cat <<EOF >bk-make-pch
a848cd7e
SC
49808#!/bin/sh
49809
49810# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
49811# script. It is used to generated precompiled headers.
49812#
49813# Permission is given to use this file in any way.
49814
1e9e8aba
DE
49815outfile="${D}{1}"
49816header="${D}{2}"
a848cd7e
SC
49817shift
49818shift
49819
f10e38c4
VZ
49820compiler=""
49821headerfile=""
49822
1e9e8aba 49823while test ${D}{#} -gt 0; do
f10e38c4 49824 add_to_cmdline=1
1e9e8aba 49825 case "${D}{1}" in
a848cd7e 49826 -I* )
1e9e8aba
DE
49827 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49828 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49829 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
49830 fi
49831 ;;
f10e38c4
VZ
49832 -use-pch|-use_pch )
49833 shift
49834 add_to_cmdline=0
49835 ;;
a848cd7e 49836 esac
f10e38c4
VZ
49837 if test ${D}add_to_cmdline = 1 ; then
49838 compiler="${D}{compiler} ${D}{1}"
49839 fi
a848cd7e
SC
49840 shift
49841done
49842
1e9e8aba 49843if test "x${D}{headerfile}" = "x" ; then
f10e38c4 49844 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 49845else
1e9e8aba
DE
49846 if test -f ${D}{outfile} ; then
49847 rm -f ${D}{outfile}
a848cd7e 49848 else
1e9e8aba 49849 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 49850 fi
1e9e8aba 49851 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 49852 mkdir -p .deps
f10e38c4
VZ
49853 if test "x${GCC_PCH}" = "x1" ; then
49854 # can do this because gcc is >= 3.4:
49855 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49856 elif test "x${ICC_PCH}" = "x1" ; then
49857 filename=pch_gen-${D}${D}
49858 file=${D}{filename}.c
49859 dfile=${D}{filename}.d
49860 cat > ${D}file <<EOT
49861#include "${D}header"
49862EOT
49863 # using -MF icc complains about differing command lines in creation/use
49864 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
49865 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49866 rm -f ${D}file ${D}dfile ${D}{filename}.o
49867 fi
1e9e8aba 49868 exit ${D}{?}
a848cd7e
SC
49869fi
49870EOF
1e9e8aba 49871
a848cd7e 49872 chmod +x bk-make-pch
a485900c 49873 BK_MAKE_PCH="`pwd`/bk-make-pch"
a848cd7e
SC
49874 fi
49875 fi
49876 fi
49877
49878
49879
f10e38c4 49880
a485900c 49881
a848cd7e
SC
49882 COND_BUILD_DEBUG="#"
49883 if test "x$BUILD" = "xdebug" ; then
49884 COND_BUILD_DEBUG=""
49885 fi
49886
49887 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49888 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49889 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49890 fi
49891
49892 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49893 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49894 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49895 fi
49896
49897 COND_BUILD_DEBUG_UNICODE_0="#"
49898 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49899 COND_BUILD_DEBUG_UNICODE_0=""
49900 fi
49901
49902 COND_BUILD_DEBUG_UNICODE_1="#"
49903 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49904 COND_BUILD_DEBUG_UNICODE_1=""
49905 fi
49906
49907 COND_BUILD_RELEASE="#"
49908 if test "x$BUILD" = "xrelease" ; then
49909 COND_BUILD_RELEASE=""
49910 fi
49911
49912 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49913 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49914 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49915 fi
49916
49917 COND_BUILD_RELEASE_UNICODE_0="#"
49918 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49919 COND_BUILD_RELEASE_UNICODE_0=""
49920 fi
49921
49922 COND_BUILD_RELEASE_UNICODE_1="#"
49923 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49924 COND_BUILD_RELEASE_UNICODE_1=""
49925 fi
49926
49927 COND_DEBUG_FLAG_1="#"
49928 if test "x$DEBUG_FLAG" = "x1" ; then
49929 COND_DEBUG_FLAG_1=""
49930 fi
49931
49932 COND_DEBUG_INFO_0="#"
49933 if test "x$DEBUG_INFO" = "x0" ; then
49934 COND_DEBUG_INFO_0=""
49935 fi
49936
49937 COND_DEBUG_INFO_1="#"
49938 if test "x$DEBUG_INFO" = "x1" ; then
49939 COND_DEBUG_INFO_1=""
49940 fi
49941
49942 COND_DEPS_TRACKING_0="#"
49943 if test "x$DEPS_TRACKING" = "x0" ; then
49944 COND_DEPS_TRACKING_0=""
49945 fi
49946
49947 COND_DEPS_TRACKING_1="#"
49948 if test "x$DEPS_TRACKING" = "x1" ; then
49949 COND_DEPS_TRACKING_1=""
49950 fi
49951
49952 COND_GCC_PCH_1="#"
49953 if test "x$GCC_PCH" = "x1" ; then
49954 COND_GCC_PCH_1=""
49955 fi
49956
f10e38c4
VZ
49957 COND_ICC_PCH_1="#"
49958 if test "x$ICC_PCH" = "x1" ; then
49959 COND_ICC_PCH_1=""
49960 fi
49961
a848cd7e
SC
49962 COND_MONOLITHIC_0="#"
49963 if test "x$MONOLITHIC" = "x0" ; then
49964 COND_MONOLITHIC_0=""
49965 fi
49966
49967 COND_MONOLITHIC_0_SHARED_0="#"
49968 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49969 COND_MONOLITHIC_0_SHARED_0=""
49970 fi
49971
3f60522a
JS
49972 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49973 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49974 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49975 fi
49976
a848cd7e
SC
49977 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49978 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49979 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49980 fi
49981
90970d69
DE
49982 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49983 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49984 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49985 fi
49986
f10e38c4
VZ
49987 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49988 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49989 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49990 fi
49991
a848cd7e
SC
49992 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
49993 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49994 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
49995 fi
49996
6671c68b
VZ
49997 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49998 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49999 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
50000 fi
50001
a848cd7e
SC
50002 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
50003 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
50004 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
50005 fi
50006
8b6682b9
JS
50007 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
50008 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
50009 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
50010 fi
50011
ceec2216
RL
50012 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
50013 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
50014 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
50015 fi
50016
a848cd7e
SC
50017 COND_MONOLITHIC_0_SHARED_1="#"
50018 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
50019 COND_MONOLITHIC_0_SHARED_1=""
50020 fi
50021
3f60522a
JS
50022 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
50023 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
50024 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
50025 fi
50026
a848cd7e
SC
50027 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
50028 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
50029 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
50030 fi
50031
90970d69
DE
50032 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
50033 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
50034 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
50035 fi
50036
f10e38c4
VZ
50037 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
50038 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50039 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
50040 fi
50041
a848cd7e
SC
50042 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
50043 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
50044 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
50045 fi
50046
6671c68b
VZ
50047 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
50048 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
50049 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
50050 fi
50051
a848cd7e
SC
50052 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
50053 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
50054 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
50055 fi
50056
8b6682b9
JS
50057 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
50058 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
50059 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
50060 fi
50061
ceec2216
RL
50062 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
50063 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
50064 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
50065 fi
50066
e5efa97e
VZ
50067 COND_MONOLITHIC_0_USE_MEDIA_1="#"
50068 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
50069 COND_MONOLITHIC_0_USE_MEDIA_1=""
50070 fi
50071
a848cd7e
SC
50072 COND_MONOLITHIC_0_USE_ODBC_1="#"
50073 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
50074 COND_MONOLITHIC_0_USE_ODBC_1=""
50075 fi
50076
50077 COND_MONOLITHIC_1="#"
50078 if test "x$MONOLITHIC" = "x1" ; then
50079 COND_MONOLITHIC_1=""
50080 fi
50081
50082 COND_MONOLITHIC_1_SHARED_0="#"
50083 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
50084 COND_MONOLITHIC_1_SHARED_0=""
50085 fi
50086
50087 COND_MONOLITHIC_1_SHARED_1="#"
50088 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
50089 COND_MONOLITHIC_1_SHARED_1=""
50090 fi
50091
50092 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
50093 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
50094 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
50095 fi
50096
50097 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
50098 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
50099 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
50100 fi
50101
eb730a0c
JS
50102 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
50103 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50104 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
50105 fi
50106
a848cd7e
SC
50107 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
50108 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50109 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
50110 fi
50111
50112 COND_PLATFORM_MACOSX_1="#"
50113 if test "x$PLATFORM_MACOSX" = "x1" ; then
50114 COND_PLATFORM_MACOSX_1=""
50115 fi
50116
a30f955f
VS
50117 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
50118 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
50119 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
50120 fi
50121
a848cd7e
SC
50122 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
50123 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
50124 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
50125 fi
50126
50127 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
50128 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
50129 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
50130 fi
50131
50132 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
50133 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
50134 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
50135 fi
50136
fc480dc1
DE
50137 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
50138 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
50139 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
50140 fi
50141
ebee3cd0
VS
50142 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
50143 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
50144 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
50145 fi
50146
50147 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
50148 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
50149 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
50150 fi
50151
a848cd7e
SC
50152 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
50153 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
50154 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
50155 fi
50156
50157 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
50158 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50159 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
50160 fi
50161
b48a2016
DE
50162 COND_PLATFORM_MACOS_1="#"
50163 if test "x$PLATFORM_MACOS" = "x1" ; then
50164 COND_PLATFORM_MACOS_1=""
50165 fi
50166
083508af
MW
50167 COND_PLATFORM_MAC_1="#"
50168 if test "x$PLATFORM_MAC" = "x1" ; then
50169 COND_PLATFORM_MAC_1=""
50170 fi
50171
e5efa97e
VZ
50172 COND_PLATFORM_MSDOS_0="#"
50173 if test "x$PLATFORM_MSDOS" = "x0" ; then
50174 COND_PLATFORM_MSDOS_0=""
50175 fi
50176
83d8eb47
MW
50177 COND_PLATFORM_MSDOS_1="#"
50178 if test "x$PLATFORM_MSDOS" = "x1" ; then
50179 COND_PLATFORM_MSDOS_1=""
50180 fi
50181
a848cd7e
SC
50182 COND_PLATFORM_OS2_1="#"
50183 if test "x$PLATFORM_OS2" = "x1" ; then
50184 COND_PLATFORM_OS2_1=""
50185 fi
50186
50187 COND_PLATFORM_UNIX_0="#"
50188 if test "x$PLATFORM_UNIX" = "x0" ; then
50189 COND_PLATFORM_UNIX_0=""
50190 fi
50191
50192 COND_PLATFORM_UNIX_1="#"
50193 if test "x$PLATFORM_UNIX" = "x1" ; then
50194 COND_PLATFORM_UNIX_1=""
50195 fi
50196
3ad202f9
VZ
50197 COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
50198 if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
50199 COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
50200 fi
50201
50202 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
50203 if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50204 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
50205 fi
50206
a848cd7e
SC
50207 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
50208 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
50209 COND_PLATFORM_UNIX_1_USE_GUI_1=""
50210 fi
50211
50212 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
50213 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
50214 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
50215 fi
50216
50217 COND_PLATFORM_WIN32_0="#"
50218 if test "x$PLATFORM_WIN32" = "x0" ; then
50219 COND_PLATFORM_WIN32_0=""
50220 fi
50221
50222 COND_PLATFORM_WIN32_1="#"
50223 if test "x$PLATFORM_WIN32" = "x1" ; then
50224 COND_PLATFORM_WIN32_1=""
50225 fi
50226
50227 COND_SHARED_0="#"
50228 if test "x$SHARED" = "x0" ; then
50229 COND_SHARED_0=""
50230 fi
50231
083508af
MW
50232 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
50233 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
50234 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
50235 fi
50236
50237 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
50238 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50239 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
50240 fi
50241
50242 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
50243 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
50244 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
50245 fi
50246
a848cd7e
SC
50247 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
50248 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50249 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
50250 fi
50251
50252 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50253 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50254 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50255 fi
50256
50257 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50258 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50259 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50260 fi
50261
50262 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50263 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50264 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50265 fi
50266
083508af
MW
50267 COND_SHARED_0_USE_XRC_1="#"
50268 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
50269 COND_SHARED_0_USE_XRC_1=""
50270 fi
50271
a848cd7e
SC
50272 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
50273 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
50274 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
50275 fi
50276
50277 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
50278 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
50279 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
50280 fi
50281
50282 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
50283 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
50284 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
50285 fi
50286
50287 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
50288 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
50289 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
50290 fi
50291
50292 COND_SHARED_1="#"
50293 if test "x$SHARED" = "x1" ; then
50294 COND_SHARED_1=""
50295 fi
50296
50297 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
50298 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50299 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
50300 fi
50301
083508af
MW
50302 COND_SHARED_1_USE_XRC_1="#"
50303 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
50304 COND_SHARED_1_USE_XRC_1=""
50305 fi
50306
a30f955f
VS
50307 COND_TOOLKIT_="#"
50308 if test "x$TOOLKIT" = "x" ; then
50309 COND_TOOLKIT_=""
50310 fi
50311
a848cd7e
SC
50312 COND_TOOLKIT_COCOA="#"
50313 if test "x$TOOLKIT" = "xCOCOA" ; then
50314 COND_TOOLKIT_COCOA=""
50315 fi
50316
a49baeab
DE
50317 COND_TOOLKIT_COCOA_USE_GUI_1="#"
50318 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
50319 COND_TOOLKIT_COCOA_USE_GUI_1=""
50320 fi
50321
a848cd7e
SC
50322 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
50323 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50324 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
50325 fi
50326
b3c86150
VS
50327 COND_TOOLKIT_DFB="#"
50328 if test "x$TOOLKIT" = "xDFB" ; then
50329 COND_TOOLKIT_DFB=""
50330 fi
50331
50332 COND_TOOLKIT_DFB_USE_GUI_1="#"
50333 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
50334 COND_TOOLKIT_DFB_USE_GUI_1=""
50335 fi
50336
a848cd7e
SC
50337 COND_TOOLKIT_GTK="#"
50338 if test "x$TOOLKIT" = "xGTK" ; then
50339 COND_TOOLKIT_GTK=""
50340 fi
50341
d044deea
MW
50342 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
50343 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
50344 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
50345 fi
50346
50347 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
50348 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
50349 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
50350 fi
50351
50352 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
50353 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
50354 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
50355 fi
50356
50357 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
50358 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50359 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
50360 fi
50361
50362 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
50363 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
50364 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
50365 fi
50366
50367 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
50368 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50369 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
50370 fi
50371
a848cd7e
SC
50372 COND_TOOLKIT_GTK_USE_GUI_1="#"
50373 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
50374 COND_TOOLKIT_GTK_USE_GUI_1=""
50375 fi
50376
a848cd7e
SC
50377 COND_TOOLKIT_MAC="#"
50378 if test "x$TOOLKIT" = "xMAC" ; then
50379 COND_TOOLKIT_MAC=""
50380 fi
50381
50382 COND_TOOLKIT_MAC_USE_GUI_1="#"
50383 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
50384 COND_TOOLKIT_MAC_USE_GUI_1=""
50385 fi
50386
50387 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
50388 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50389 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
50390 fi
50391
50392 COND_TOOLKIT_MGL="#"
50393 if test "x$TOOLKIT" = "xMGL" ; then
50394 COND_TOOLKIT_MGL=""
50395 fi
50396
50397 COND_TOOLKIT_MGL_USE_GUI_1="#"
50398 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50399 COND_TOOLKIT_MGL_USE_GUI_1=""
50400 fi
50401
50402 COND_TOOLKIT_MOTIF="#"
50403 if test "x$TOOLKIT" = "xMOTIF" ; then
50404 COND_TOOLKIT_MOTIF=""
50405 fi
50406
50407 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
50408 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
50409 COND_TOOLKIT_MOTIF_USE_GUI_1=""
50410 fi
50411
50412 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
50413 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50414 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
50415 fi
50416
50417 COND_TOOLKIT_MSW="#"
50418 if test "x$TOOLKIT" = "xMSW" ; then
50419 COND_TOOLKIT_MSW=""
50420 fi
50421
50422 COND_TOOLKIT_MSW_USE_GUI_1="#"
50423 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
50424 COND_TOOLKIT_MSW_USE_GUI_1=""
50425 fi
50426
50427 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
50428 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50429 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
50430 fi
50431
0ee4059d
DE
50432 COND_TOOLKIT_MSW_WXUNIV_0="#"
50433 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50434 COND_TOOLKIT_MSW_WXUNIV_0=""
50435 fi
50436
a848cd7e
SC
50437 COND_TOOLKIT_PM="#"
50438 if test "x$TOOLKIT" = "xPM" ; then
50439 COND_TOOLKIT_PM=""
50440 fi
50441
50442 COND_TOOLKIT_PM_USE_GUI_1="#"
50443 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
50444 COND_TOOLKIT_PM_USE_GUI_1=""
50445 fi
50446
50447 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
50448 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50449 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
50450 fi
50451
3fd9c298
DE
50452 COND_TOOLKIT_WINCE="#"
50453 if test "x$TOOLKIT" = "xWINCE" ; then
50454 COND_TOOLKIT_WINCE=""
50455 fi
50456
50457 COND_TOOLKIT_WINCE_USE_GUI_1="#"
50458 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
50459 COND_TOOLKIT_WINCE_USE_GUI_1=""
50460 fi
50461
50462 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
50463 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50464 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
50465 fi
50466
0ee4059d
DE
50467 COND_TOOLKIT_WINCE_WXUNIV_0="#"
50468 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
50469 COND_TOOLKIT_WINCE_WXUNIV_0=""
50470 fi
50471
a848cd7e
SC
50472 COND_TOOLKIT_X11="#"
50473 if test "x$TOOLKIT" = "xX11" ; then
50474 COND_TOOLKIT_X11=""
50475 fi
50476
50477 COND_TOOLKIT_X11_USE_GUI_1="#"
50478 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
50479 COND_TOOLKIT_X11_USE_GUI_1=""
50480 fi
50481
50482 COND_UNICODE_1="#"
50483 if test "x$UNICODE" = "x1" ; then
50484 COND_UNICODE_1=""
50485 fi
50486
50487 COND_USE_EXCEPTIONS_0="#"
50488 if test "x$USE_EXCEPTIONS" = "x0" ; then
50489 COND_USE_EXCEPTIONS_0=""
50490 fi
50491
50492 COND_USE_EXCEPTIONS_1="#"
50493 if test "x$USE_EXCEPTIONS" = "x1" ; then
50494 COND_USE_EXCEPTIONS_1=""
50495 fi
50496
50497 COND_USE_GUI_0="#"
50498 if test "x$USE_GUI" = "x0" ; then
50499 COND_USE_GUI_0=""
50500 fi
50501
50502 COND_USE_GUI_1="#"
50503 if test "x$USE_GUI" = "x1" ; then
50504 COND_USE_GUI_1=""
50505 fi
50506
50507 COND_USE_GUI_1_WXUNIV_0="#"
50508 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50509 COND_USE_GUI_1_WXUNIV_0=""
50510 fi
50511
50512 COND_USE_GUI_1_WXUNIV_1="#"
50513 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50514 COND_USE_GUI_1_WXUNIV_1=""
50515 fi
50516
50517 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50518 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50519 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50520 fi
50521
50522 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50523 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50524 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50525 fi
50526
50527 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50528 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50529 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50530 fi
50531
083508af
MW
50532 COND_USE_ODBC_1="#"
50533 if test "x$USE_ODBC" = "x1" ; then
50534 COND_USE_ODBC_1=""
50535 fi
50536
50537 COND_USE_OPENGL_1="#"
50538 if test "x$USE_OPENGL" = "x1" ; then
50539 COND_USE_OPENGL_1=""
50540 fi
50541
f10e38c4
VZ
50542 COND_USE_PCH_1="#"
50543 if test "x$USE_PCH" = "x1" ; then
50544 COND_USE_PCH_1=""
50545 fi
50546
a848cd7e
SC
50547 COND_USE_PLUGINS_0="#"
50548 if test "x$USE_PLUGINS" = "x0" ; then
50549 COND_USE_PLUGINS_0=""
50550 fi
50551
0b78747f
MW
50552 COND_USE_RTTI_0="#"
50553 if test "x$USE_RTTI" = "x0" ; then
50554 COND_USE_RTTI_0=""
50555 fi
50556
50557 COND_USE_RTTI_1="#"
50558 if test "x$USE_RTTI" = "x1" ; then
50559 COND_USE_RTTI_1=""
50560 fi
50561
a848cd7e
SC
50562 COND_USE_SOSYMLINKS_1="#"
50563 if test "x$USE_SOSYMLINKS" = "x1" ; then
50564 COND_USE_SOSYMLINKS_1=""
50565 fi
50566
eb730a0c
JS
50567 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50568 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50569 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50570 fi
50571
a848cd7e
SC
50572 COND_USE_SOVERLINUX_1="#"
50573 if test "x$USE_SOVERLINUX" = "x1" ; then
50574 COND_USE_SOVERLINUX_1=""
50575 fi
50576
50577 COND_USE_SOVERSION_0="#"
50578 if test "x$USE_SOVERSION" = "x0" ; then
50579 COND_USE_SOVERSION_0=""
50580 fi
50581
50582 COND_USE_SOVERSOLARIS_1="#"
50583 if test "x$USE_SOVERSOLARIS" = "x1" ; then
50584 COND_USE_SOVERSOLARIS_1=""
50585 fi
50586
0b78747f
MW
50587 COND_USE_THREADS_0="#"
50588 if test "x$USE_THREADS" = "x0" ; then
50589 COND_USE_THREADS_0=""
50590 fi
50591
50592 COND_USE_THREADS_1="#"
50593 if test "x$USE_THREADS" = "x1" ; then
50594 COND_USE_THREADS_1=""
50595 fi
50596
a13a7f89
RL
50597 COND_USE_XRC_1="#"
50598 if test "x$USE_XRC" = "x1" ; then
50599 COND_USE_XRC_1=""
50600 fi
50601
eb730a0c
JS
50602 COND_WINDOWS_IMPLIB_1="#"
50603 if test "x$WINDOWS_IMPLIB" = "x1" ; then
50604 COND_WINDOWS_IMPLIB_1=""
50605 fi
50606
a848cd7e
SC
50607 COND_WITH_PLUGIN_SDL_1="#"
50608 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50609 COND_WITH_PLUGIN_SDL_1=""
50610 fi
50611
1e6eb025
VZ
50612 COND_WXUNIV_0="#"
50613 if test "x$WXUNIV" = "x0" ; then
50614 COND_WXUNIV_0=""
50615 fi
50616
a848cd7e
SC
50617 COND_WXUNIV_1="#"
50618 if test "x$WXUNIV" = "x1" ; then
50619 COND_WXUNIV_1=""
50620 fi
50621
50622 COND_WXUSE_EXPAT_BUILTIN="#"
50623 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50624 COND_WXUSE_EXPAT_BUILTIN=""
50625 fi
50626
50627 COND_WXUSE_LIBJPEG_BUILTIN="#"
50628 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50629 COND_WXUSE_LIBJPEG_BUILTIN=""
50630 fi
50631
50632 COND_WXUSE_LIBPNG_BUILTIN="#"
50633 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50634 COND_WXUSE_LIBPNG_BUILTIN=""
50635 fi
50636
50637 COND_WXUSE_LIBTIFF_BUILTIN="#"
50638 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50639 COND_WXUSE_LIBTIFF_BUILTIN=""
50640 fi
50641
50642 COND_WXUSE_ODBC_BUILTIN="#"
50643 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
50644 COND_WXUSE_ODBC_BUILTIN=""
50645 fi
50646
50647 COND_WXUSE_REGEX_BUILTIN="#"
50648 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50649 COND_WXUSE_REGEX_BUILTIN=""
50650 fi
50651
50652 COND_WXUSE_ZLIB_BUILTIN="#"
50653 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50654 COND_WXUSE_ZLIB_BUILTIN=""
50655 fi
50656
50657
50658
810b94f0
MW
50659 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50660 { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5
50661echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;}
50662 { (exit 1); exit 1; }; }
50663 fi
50664
2057db16
VS
50665 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50666 { { 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
50667echo "$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;}
50668 { (exit 1); exit 1; }; }
50669 fi
50670
a848cd7e 50671
a81d5bb6
MW
50672if test $GCC_PCH = 1
50673then
50674 if test "$wx_cv_gcc_pch_bug" = yes; then
50675 { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50676echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50677 { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50678echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50679 { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50680echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50681 fi
50682
50683 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
50684fi
50685
7afc46ab
KO
50686
50687if test "$wxUSE_MAC" = 1 ; then
95768535 50688 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
50689 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50690 mv temp bk-deps
50691 chmod +x bk-deps
50692 fi
50693fi
50694
ceec2216
RL
50695if test "$wxUSE_SHARED" = "yes"; then
50696
50697 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
50698 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
50699
5b674b9d
DE
50700 case "${host}" in
50701 *-pc-os2_emx | *-pc-os2-emx )
50702 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50703 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
ec3edcc9
VZ
50704 cp -p ${srcdir}/src/os2/dllnames.sh .
50705 cp -p ${srcdir}/src/os2/dllar.sh .
5b674b9d
DE
50706 ;;
50707 esac
ceec2216
RL
50708else
50709
50710 EXE_LINKER="$CXX -o"
50711
50712fi
69120ee4
VZ
50713if test "$wxUSE_OMF" = "yes"; then
50714 case "${host}" in
50715 *-pc-os2_emx | *-pc-os2-emx )
50716 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50717 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50718 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50719 ;;
50720 esac
50721fi
a848cd7e 50722
5ff751d6 50723WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
50724
50725SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50726
50727
50728
50729
50730
50731
50732
50733
50734
50735
50736
50737
50738
50739
50740
50741
50742
50743
50744
50745
50746
50747
50748
50749
50750
50751
50752
50753
50754
50755
50756
50757
50758
50759
50760
50761
50762
50763
50764
50765
50766
50767
a848cd7e
SC
50768
50769
50770
50771
50772
50773
50774
50775
50776
50777
50778
50779
a848cd7e
SC
50780
50781
ddd14b14 50782
370d2fd7 50783
8ced02f6 50784
a848cd7e
SC
50785
50786
50787echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50788echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 50789set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
50790if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
50791 echo $ECHO_N "(cached) $ECHO_C" >&6
50792else
50793 cat >conftest.make <<\_ACEOF
50794all:
50795 @echo 'ac_maketemp="$(MAKE)"'
50796_ACEOF
50797# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50798eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
50799if test -n "$ac_maketemp"; then
50800 eval ac_cv_prog_make_${ac_make}_set=yes
50801else
50802 eval ac_cv_prog_make_${ac_make}_set=no
50803fi
50804rm -f conftest.make
50805fi
50806if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
50807 echo "$as_me:$LINENO: result: yes" >&5
50808echo "${ECHO_T}yes" >&6
50809 SET_MAKE=
50810else
50811 echo "$as_me:$LINENO: result: no" >&5
50812echo "${ECHO_T}no" >&6
50813 SET_MAKE="MAKE=${MAKE-make}"
50814fi
50815
50816
a848cd7e 50817
ceec2216
RL
50818 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50819
a848cd7e 50820
5c60e845
MW
50821if test "$USE_WIN32" = 1; then
50822 ac_config_commands="$ac_config_commands
50823 rcdefs.h
50824 "
50825
50826fi
50827
ceec2216 50828 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 50829
a848cd7e 50830
ceec2216 50831 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 50832
ceec2216 50833
2dbd07cb
VZ
50834if test "$wx_cv_version_script" = "yes"; then
50835 ac_config_files="$ac_config_files version-script"
50836
50837fi
50838 ac_config_files="$ac_config_files Makefile"
ceec2216
RL
50839
50840
5c60e845 50841 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
50842
50843
9103d280 50844
1c14217d 50845if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
50846if test "$wxUSE_GUI" = "yes"; then
50847 SUBDIRS="samples demos utils contrib"
50848else SUBDIRS="samples utils"
50849fi
50850
50851
50852
50853# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
50854if test "${with_cppunit_prefix+set}" = set; then
50855 withval="$with_cppunit_prefix"
50856 cppunit_config_prefix="$withval"
50857else
50858 cppunit_config_prefix=""
50859fi;
50860
50861# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
50862if test "${with_cppunit_exec_prefix+set}" = set; then
50863 withval="$with_cppunit_exec_prefix"
50864 cppunit_config_exec_prefix="$withval"
50865else
50866 cppunit_config_exec_prefix=""
50867fi;
50868
50869 if test x$cppunit_config_exec_prefix != x ; then
50870 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50871 if test x${CPPUNIT_CONFIG+set} != xset ; then
50872 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50873 fi
50874 fi
50875 if test x$cppunit_config_prefix != x ; then
50876 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50877 if test x${CPPUNIT_CONFIG+set} != xset ; then
50878 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50879 fi
50880 fi
50881
50882 # Extract the first word of "cppunit-config", so it can be a program name with args.
50883set dummy cppunit-config; ac_word=$2
50884echo "$as_me:$LINENO: checking for $ac_word" >&5
50885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
50886if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50887 echo $ECHO_N "(cached) $ECHO_C" >&6
50888else
50889 case $CPPUNIT_CONFIG in
50890 [\\/]* | ?:[\\/]*)
50891 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50892 ;;
50893 *)
50894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50895for as_dir in $PATH
50896do
50897 IFS=$as_save_IFS
50898 test -z "$as_dir" && as_dir=.
50899 for ac_exec_ext in '' $ac_executable_extensions; do
50900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50901 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50903 break 2
50904 fi
50905done
50906done
50907
50908 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50909 ;;
50910esac
50911fi
50912CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50913
50914if test -n "$CPPUNIT_CONFIG"; then
50915 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50916echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
50917else
50918 echo "$as_me:$LINENO: result: no" >&5
50919echo "${ECHO_T}no" >&6
50920fi
50921
50922 cppunit_version_min=1.8.0
50923
50924 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50925echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
50926 no_cppunit=""
50927 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
50928 echo "$as_me:$LINENO: result: no" >&5
50929echo "${ECHO_T}no" >&6
a848cd7e
SC
50930 no_cppunit=yes
50931 else
50932 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50933 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50934 cppunit_version=`$CPPUNIT_CONFIG --version`
50935
50936 cppunit_major_version=`echo $cppunit_version | \
50937 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50938 cppunit_minor_version=`echo $cppunit_version | \
50939 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50940 cppunit_micro_version=`echo $cppunit_version | \
50941 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50942
50943 cppunit_major_min=`echo $cppunit_version_min | \
50944 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50945 cppunit_minor_min=`echo $cppunit_version_min | \
50946 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50947 cppunit_micro_min=`echo $cppunit_version_min | \
50948 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50949
50950 cppunit_version_proper=`expr \
50951 $cppunit_major_version \> $cppunit_major_min \| \
50952 $cppunit_major_version \= $cppunit_major_min \& \
50953 $cppunit_minor_version \> $cppunit_minor_min \| \
50954 $cppunit_major_version \= $cppunit_major_min \& \
50955 $cppunit_minor_version \= $cppunit_minor_min \& \
50956 $cppunit_micro_version \>= $cppunit_micro_min `
50957
50958 if test "$cppunit_version_proper" = "1" ; then
50959 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50960echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
50961 else
50962 echo "$as_me:$LINENO: result: no" >&5
50963echo "${ECHO_T}no" >&6
50964 no_cppunit=yes
50965 fi
50966 fi
50967
50968 if test "x$no_cppunit" = x ; then
c2218763 50969 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
50970 else
50971 CPPUNIT_CFLAGS=""
50972 CPPUNIT_LIBS=""
c2218763 50973 :
a848cd7e
SC
50974 fi
50975
50976
50977
50978
50979
74d92aac
VZ
50980if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
50981 DISABLED_CONTRIB="$DISABLED_CONTRIB net"
50982fi
50983
a848cd7e
SC
50984for subdir in `echo $SUBDIRS`; do
50985 if test -d ${srcdir}/${subdir} ; then
50986 if test "$wxUSE_GUI" = "yes"; then
50987 if test ${subdir} = "samples"; then
50988 makefiles="samples/Makefile.in $makefiles"
50989 for sample in `echo $SAMPLES_SUBDIRS`; do
50990 if test -d $srcdir/samples/$sample; then
50991 makefiles="samples/$sample/Makefile.in $makefiles"
50992 fi
50993 done
9c112555
MW
50994 else
50995 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
50996 eval "disabled=\$$disabled_var"
50997 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
252a5022 50998 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
a848cd7e
SC
50999 fi
51000 else if test ${subdir} = "samples"; then
51001 makefiles="samples/Makefile.in samples/console/Makefile.in"
51002 elif test ${subdir} = "utils"; then
6537ccf8
VS
51003 makefiles=""
51004 for util in HelpGen tex2rtf ; do
51005 if test -d $srcdir/utils/$util ; then
51006 makefiles="utils/$util/Makefile.in \
51007 utils/$util/src/Makefile.in \
51008 $makefiles"
51009 fi
51010 done
a848cd7e
SC
51011 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
51012 fi
51013 fi
51014
51015 for mkin in $makefiles ; do
51016 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
51017 ac_config_files="$ac_config_files $mk"
51018
51019 done
51020 fi
51021done
1c14217d 51022fi
a848cd7e
SC
51023cat >confcache <<\_ACEOF
51024# This file is a shell script that caches the results of configure
51025# tests run on this system so they can be shared between configure
51026# scripts and configure runs, see configure's option --config-cache.
51027# It is not useful on other systems. If it contains results you don't
51028# want to keep, you may remove or edit it.
51029#
51030# config.status only pays attention to the cache file if you give it
51031# the --recheck option to rerun configure.
51032#
51033# `ac_cv_env_foo' variables (set or unset) will be overridden when
51034# loading this file, other *unset* `ac_cv_foo' will be assigned the
51035# following values.
51036
51037_ACEOF
51038
51039# The following way of writing the cache mishandles newlines in values,
51040# but we know of no workaround that is simple, portable, and efficient.
51041# So, don't put newlines in cache variables' values.
51042# Ultrix sh set writes to stderr and can't be redirected directly,
51043# and sets the high bit in the cache file unless we assign to the vars.
51044{
51045 (set) 2>&1 |
51046 case `(ac_space=' '; set | grep ac_space) 2>&1` in
51047 *ac_space=\ *)
51048 # `set' does not quote correctly, so add quotes (double-quote
51049 # substitution turns \\\\ into \\, and sed turns \\ into \).
51050 sed -n \
ac1cb8d3
VS
51051 "s/'/'\\\\''/g;
51052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
51053 ;;
51054 *)
51055 # `set' quotes correctly as required by POSIX, so do not add quotes.
51056 sed -n \
ac1cb8d3 51057 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
51058 ;;
51059 esac;
51060} |
51061 sed '
51062 t clear
51063 : clear
51064 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
51065 t end
51066 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
51067 : end' >>confcache
51068if diff $cache_file confcache >/dev/null 2>&1; then :; else
51069 if test -w $cache_file; then
51070 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
51071 cat confcache >$cache_file
51072 else
51073 echo "not updating unwritable cache $cache_file"
51074 fi
51075fi
51076rm -f confcache
51077
51078test "x$prefix" = xNONE && prefix=$ac_default_prefix
51079# Let make expand exec_prefix.
51080test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51081
51082# VPATH may cause trouble with some makes, so we remove $(srcdir),
51083# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51084# trailing colons and then remove the whole line if VPATH becomes empty
51085# (actually we leave an empty line to preserve line numbers).
51086if test "x$srcdir" = x.; then
ac1cb8d3 51087 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
51088s/:*\$(srcdir):*/:/;
51089s/:*\${srcdir}:*/:/;
51090s/:*@srcdir@:*/:/;
ac1cb8d3 51091s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 51092s/:*$//;
ac1cb8d3 51093s/^[^=]*=[ ]*$//;
a848cd7e
SC
51094}'
51095fi
51096
51097DEFS=-DHAVE_CONFIG_H
51098
51099ac_libobjs=
51100ac_ltlibobjs=
51101for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51102 # 1. Remove the extension, and $U if already installed.
51103 ac_i=`echo "$ac_i" |
ac1cb8d3 51104 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
51105 # 2. Add them.
51106 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
51107 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
51108done
51109LIBOBJS=$ac_libobjs
51110
51111LTLIBOBJS=$ac_ltlibobjs
51112
51113
51114
51115: ${CONFIG_STATUS=./config.status}
51116ac_clean_files_save=$ac_clean_files
51117ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51118{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51119echo "$as_me: creating $CONFIG_STATUS" >&6;}
51120cat >$CONFIG_STATUS <<_ACEOF
51121#! $SHELL
51122# Generated by $as_me.
51123# Run this file to recreate the current configuration.
51124# Compiler output produced by configure, useful for debugging
51125# configure, is in config.log if it exists.
51126
51127debug=false
51128ac_cs_recheck=false
51129ac_cs_silent=false
51130SHELL=\${CONFIG_SHELL-$SHELL}
51131_ACEOF
51132
51133cat >>$CONFIG_STATUS <<\_ACEOF
51134## --------------------- ##
51135## M4sh Initialization. ##
51136## --------------------- ##
51137
51138# Be Bourne compatible
51139if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51140 emulate sh
51141 NULLCMD=:
51142 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51143 # is contrary to our usage. Disable this feature.
51144 alias -g '${1+"$@"}'='"$@"'
51145elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
51146 set -o posix
51147fi
ac1cb8d3 51148DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
51149
51150# Support unset when possible.
ac1cb8d3 51151if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
51152 as_unset=unset
51153else
51154 as_unset=false
51155fi
51156
51157
51158# Work around bugs in pre-3.0 UWIN ksh.
51159$as_unset ENV MAIL MAILPATH
51160PS1='$ '
51161PS2='> '
51162PS4='+ '
51163
51164# NLS nuisances.
51165for as_var in \
51166 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51167 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51168 LC_TELEPHONE LC_TIME
51169do
ac1cb8d3 51170 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
51171 eval $as_var=C; export $as_var
51172 else
51173 $as_unset $as_var
51174 fi
51175done
51176
51177# Required to use basename.
51178if expr a : '\(a\)' >/dev/null 2>&1; then
51179 as_expr=expr
51180else
51181 as_expr=false
51182fi
51183
51184if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
51185 as_basename=basename
51186else
51187 as_basename=false
51188fi
51189
51190
51191# Name of the executable.
51192as_me=`$as_basename "$0" ||
51193$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51194 X"$0" : 'X\(//\)$' \| \
51195 X"$0" : 'X\(/\)$' \| \
51196 . : '\(.\)' 2>/dev/null ||
51197echo X/"$0" |
51198 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
51199 /^X\/\(\/\/\)$/{ s//\1/; q; }
51200 /^X\/\(\/\).*/{ s//\1/; q; }
51201 s/.*/./; q'`
51202
51203
51204# PATH needs CR, and LINENO needs CR and PATH.
51205# Avoid depending upon Character Ranges.
51206as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51207as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51208as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51209as_cr_digits='0123456789'
51210as_cr_alnum=$as_cr_Letters$as_cr_digits
51211
51212# The user is always right.
51213if test "${PATH_SEPARATOR+set}" != set; then
51214 echo "#! /bin/sh" >conf$$.sh
51215 echo "exit 0" >>conf$$.sh
51216 chmod +x conf$$.sh
51217 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51218 PATH_SEPARATOR=';'
51219 else
51220 PATH_SEPARATOR=:
51221 fi
51222 rm -f conf$$.sh
51223fi
51224
51225
51226 as_lineno_1=$LINENO
51227 as_lineno_2=$LINENO
51228 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51229 test "x$as_lineno_1" != "x$as_lineno_2" &&
51230 test "x$as_lineno_3" = "x$as_lineno_2" || {
51231 # Find who we are. Look in the path if we contain no path at all
51232 # relative or not.
51233 case $0 in
51234 *[\\/]* ) as_myself=$0 ;;
51235 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51236for as_dir in $PATH
51237do
51238 IFS=$as_save_IFS
51239 test -z "$as_dir" && as_dir=.
51240 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51241done
51242
51243 ;;
51244 esac
51245 # We did not find ourselves, most probably we were run as `sh COMMAND'
51246 # in which case we are not to be found in the path.
51247 if test "x$as_myself" = x; then
51248 as_myself=$0
51249 fi
51250 if test ! -f "$as_myself"; then
51251 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
51252echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
51253 { (exit 1); exit 1; }; }
51254 fi
51255 case $CONFIG_SHELL in
51256 '')
51257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51258for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
51259do
51260 IFS=$as_save_IFS
51261 test -z "$as_dir" && as_dir=.
51262 for as_base in sh bash ksh sh5; do
51263 case $as_dir in
51264 /*)
51265 if ("$as_dir/$as_base" -c '
51266 as_lineno_1=$LINENO
51267 as_lineno_2=$LINENO
51268 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51269 test "x$as_lineno_1" != "x$as_lineno_2" &&
51270 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
51271 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
51272 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
51273 CONFIG_SHELL=$as_dir/$as_base
51274 export CONFIG_SHELL
51275 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
51276 fi;;
51277 esac
51278 done
51279done
51280;;
51281 esac
51282
51283 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51284 # uniformly replaced by the line number. The first 'sed' inserts a
51285 # line-number line before each line; the second 'sed' does the real
51286 # work. The second script uses 'N' to pair each line-number line
51287 # with the numbered line, and appends trailing '-' during
51288 # substitution so that $LINENO is not a special case at line end.
51289 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51290 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
51291 sed '=' <$as_myself |
51292 sed '
51293 N
51294 s,$,-,
51295 : loop
51296 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
51297 t loop
51298 s,-$,,
51299 s,^['$as_cr_digits']*\n,,
51300 ' >$as_me.lineno &&
51301 chmod +x $as_me.lineno ||
51302 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51303echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
51304 { (exit 1); exit 1; }; }
51305
51306 # Don't try to exec as it changes $[0], causing all sort of problems
51307 # (the dirname of $[0] is not the place where we might find the
51308 # original and so on. Autoconf is especially sensible to this).
51309 . ./$as_me.lineno
51310 # Exit status is that of the last command.
51311 exit
51312}
51313
51314
51315case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51316 *c*,-n*) ECHO_N= ECHO_C='
51317' ECHO_T=' ' ;;
51318 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51319 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
51320esac
51321
51322if expr a : '\(a\)' >/dev/null 2>&1; then
51323 as_expr=expr
51324else
51325 as_expr=false
51326fi
51327
51328rm -f conf$$ conf$$.exe conf$$.file
51329echo >conf$$.file
51330if ln -s conf$$.file conf$$ 2>/dev/null; then
51331 # We could just check for DJGPP; but this test a) works b) is more generic
51332 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51333 if test -f conf$$.exe; then
51334 # Don't use ln at all; we don't have any links
51335 as_ln_s='cp -p'
51336 else
51337 as_ln_s='ln -s'
51338 fi
51339elif ln conf$$.file conf$$ 2>/dev/null; then
51340 as_ln_s=ln
51341else
51342 as_ln_s='cp -p'
51343fi
51344rm -f conf$$ conf$$.exe conf$$.file
51345
51346if mkdir -p . 2>/dev/null; then
51347 as_mkdir_p=:
51348else
ac1cb8d3 51349 test -d ./-p && rmdir ./-p
a848cd7e
SC
51350 as_mkdir_p=false
51351fi
51352
51353as_executable_p="test -f"
51354
51355# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 51356as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
51357
51358# Sed expression to map a string onto a valid variable name.
ac1cb8d3 51359as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
51360
51361
51362# IFS
51363# We need space, tab and new line, in precisely that order.
51364as_nl='
51365'
51366IFS=" $as_nl"
51367
51368# CDPATH.
51369$as_unset CDPATH
51370
51371exec 6>&1
51372
51373# Open the log real soon, to keep \$[0] and so on meaningful, and to
51374# report actual input values of CONFIG_FILES etc. instead of their
51375# values after options handling. Logging --version etc. is OK.
51376exec 5>>config.log
51377{
51378 echo
51379 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51380## Running $as_me. ##
51381_ASBOX
51382} >&5
51383cat >&5 <<_CSEOF
51384
25bb1412 51385This file was extended by wxWidgets $as_me 2.8.0, which was
ac1cb8d3 51386generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
51387
51388 CONFIG_FILES = $CONFIG_FILES
51389 CONFIG_HEADERS = $CONFIG_HEADERS
51390 CONFIG_LINKS = $CONFIG_LINKS
51391 CONFIG_COMMANDS = $CONFIG_COMMANDS
51392 $ $0 $@
51393
51394_CSEOF
51395echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51396echo >&5
51397_ACEOF
51398
51399# Files that config.status was made for.
51400if test -n "$ac_config_files"; then
51401 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51402fi
51403
51404if test -n "$ac_config_headers"; then
51405 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51406fi
51407
51408if test -n "$ac_config_links"; then
51409 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51410fi
51411
51412if test -n "$ac_config_commands"; then
51413 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51414fi
51415
51416cat >>$CONFIG_STATUS <<\_ACEOF
51417
51418ac_cs_usage="\
51419\`$as_me' instantiates files from templates according to the
51420current configuration.
51421
51422Usage: $0 [OPTIONS] [FILE]...
51423
51424 -h, --help print this help, then exit
51425 -V, --version print version number, then exit
51426 -q, --quiet do not print progress messages
51427 -d, --debug don't remove temporary files
51428 --recheck update $as_me by reconfiguring in the same conditions
51429 --file=FILE[:TEMPLATE]
ac1cb8d3 51430 instantiate the configuration file FILE
a848cd7e 51431 --header=FILE[:TEMPLATE]
ac1cb8d3 51432 instantiate the configuration header FILE
a848cd7e
SC
51433
51434Configuration files:
51435$config_files
51436
51437Configuration headers:
51438$config_headers
51439
51440Configuration commands:
51441$config_commands
51442
51443Report bugs to <bug-autoconf@gnu.org>."
51444_ACEOF
51445
51446cat >>$CONFIG_STATUS <<_ACEOF
51447ac_cs_version="\\
25bb1412 51448wxWidgets config.status 2.8.0
ac1cb8d3 51449configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
51450 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51451
ac1cb8d3 51452Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
51453This config.status script is free software; the Free Software Foundation
51454gives unlimited permission to copy, distribute and modify it."
51455srcdir=$srcdir
51456INSTALL="$INSTALL"
51457_ACEOF
51458
51459cat >>$CONFIG_STATUS <<\_ACEOF
51460# If no file are specified by the user, then we need to provide default
51461# value. By we need to know if files were specified by the user.
51462ac_need_defaults=:
51463while test $# != 0
51464do
51465 case $1 in
51466 --*=*)
51467 ac_option=`expr "x$1" : 'x\([^=]*\)='`
51468 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51469 ac_shift=:
51470 ;;
51471 -*)
51472 ac_option=$1
51473 ac_optarg=$2
51474 ac_shift=shift
51475 ;;
51476 *) # This is not an option, so the user has probably given explicit
51477 # arguments.
51478 ac_option=$1
51479 ac_need_defaults=false;;
51480 esac
51481
51482 case $ac_option in
51483 # Handling of the options.
51484_ACEOF
51485cat >>$CONFIG_STATUS <<\_ACEOF
51486 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51487 ac_cs_recheck=: ;;
51488 --version | --vers* | -V )
51489 echo "$ac_cs_version"; exit 0 ;;
51490 --he | --h)
51491 # Conflict between --help and --header
51492 { { echo "$as_me:$LINENO: error: ambiguous option: $1
51493Try \`$0 --help' for more information." >&5
51494echo "$as_me: error: ambiguous option: $1
51495Try \`$0 --help' for more information." >&2;}
51496 { (exit 1); exit 1; }; };;
51497 --help | --hel | -h )
51498 echo "$ac_cs_usage"; exit 0 ;;
51499 --debug | --d* | -d )
51500 debug=: ;;
51501 --file | --fil | --fi | --f )
51502 $ac_shift
51503 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51504 ac_need_defaults=false;;
51505 --header | --heade | --head | --hea )
51506 $ac_shift
51507 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51508 ac_need_defaults=false;;
51509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51510 | -silent | --silent | --silen | --sile | --sil | --si | --s)
51511 ac_cs_silent=: ;;
51512
51513 # This is an error.
51514 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51515Try \`$0 --help' for more information." >&5
51516echo "$as_me: error: unrecognized option: $1
51517Try \`$0 --help' for more information." >&2;}
51518 { (exit 1); exit 1; }; } ;;
51519
51520 *) ac_config_targets="$ac_config_targets $1" ;;
51521
51522 esac
51523 shift
51524done
51525
51526ac_configure_extra_args=
51527
51528if $ac_cs_silent; then
51529 exec 6>/dev/null
51530 ac_configure_extra_args="$ac_configure_extra_args --silent"
51531fi
51532
51533_ACEOF
51534cat >>$CONFIG_STATUS <<_ACEOF
51535if \$ac_cs_recheck; then
51536 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51537 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51538fi
51539
51540_ACEOF
51541
51542cat >>$CONFIG_STATUS <<_ACEOF
51543#
51544# INIT-COMMANDS section.
51545#
51546
5c60e845
MW
51547
51548 CPP="$CPP"
51549 infile="$srcdir/include/wx/msw/genrcdefs.h"
51550 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51551
51552
ceec2216
RL
51553 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51554 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51555 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51556 LN_S="${LN_S}"
a848cd7e
SC
51557
51558
51559_ACEOF
51560
51561
51562
51563cat >>$CONFIG_STATUS <<\_ACEOF
51564for ac_config_target in $ac_config_targets
51565do
51566 case "$ac_config_target" in
51567 # Handling of arguments.
ceec2216
RL
51568 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51569 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
51570 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
51571 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51572 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 51573 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
51574 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51575 "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
51576 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51577echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51578 { (exit 1); exit 1; }; };;
51579 esac
51580done
51581
51582# If the user did not use the arguments to specify the items to instantiate,
51583# then the envvar interface is used. Set only those that are not.
51584# We use the long form for the default assignment because of an extremely
51585# bizarre bug on SunOS 4.1.3.
51586if $ac_need_defaults; then
51587 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51588 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51589 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51590fi
51591
51592# Have a temporary directory for convenience. Make it in the build tree
51593# simply because there is no reason to put it here, and in addition,
51594# creating and moving files from /tmp can sometimes cause problems.
51595# Create a temporary directory, and hook for its removal unless debugging.
51596$debug ||
51597{
51598 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51599 trap '{ (exit 1); exit 1; }' 1 2 13 15
51600}
51601
51602# Create a (secure) tmp directory for tmp files.
51603
51604{
51605 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51606 test -n "$tmp" && test -d "$tmp"
51607} ||
51608{
51609 tmp=./confstat$$-$RANDOM
51610 (umask 077 && mkdir $tmp)
51611} ||
51612{
51613 echo "$me: cannot create a temporary directory in ." >&2
51614 { (exit 1); exit 1; }
51615}
51616
51617_ACEOF
51618
51619cat >>$CONFIG_STATUS <<_ACEOF
51620
51621#
51622# CONFIG_FILES section.
51623#
51624
51625# No need to generate the scripts if there are no CONFIG_FILES.
51626# This happens for instance when ./config.status config.h
51627if test -n "\$CONFIG_FILES"; then
51628 # Protect against being on the right side of a sed subst in config.status.
51629 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51630 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51631s,@SHELL@,$SHELL,;t t
51632s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51633s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51634s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51635s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51636s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51637s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51638s,@exec_prefix@,$exec_prefix,;t t
51639s,@prefix@,$prefix,;t t
51640s,@program_transform_name@,$program_transform_name,;t t
51641s,@bindir@,$bindir,;t t
51642s,@sbindir@,$sbindir,;t t
51643s,@libexecdir@,$libexecdir,;t t
51644s,@datadir@,$datadir,;t t
51645s,@sysconfdir@,$sysconfdir,;t t
51646s,@sharedstatedir@,$sharedstatedir,;t t
51647s,@localstatedir@,$localstatedir,;t t
51648s,@libdir@,$libdir,;t t
51649s,@includedir@,$includedir,;t t
51650s,@oldincludedir@,$oldincludedir,;t t
51651s,@infodir@,$infodir,;t t
51652s,@mandir@,$mandir,;t t
51653s,@build_alias@,$build_alias,;t t
51654s,@host_alias@,$host_alias,;t t
51655s,@target_alias@,$target_alias,;t t
51656s,@DEFS@,$DEFS,;t t
51657s,@ECHO_C@,$ECHO_C,;t t
51658s,@ECHO_N@,$ECHO_N,;t t
51659s,@ECHO_T@,$ECHO_T,;t t
51660s,@LIBS@,$LIBS,;t t
51661s,@build@,$build,;t t
51662s,@build_cpu@,$build_cpu,;t t
51663s,@build_vendor@,$build_vendor,;t t
51664s,@build_os@,$build_os,;t t
51665s,@host@,$host,;t t
51666s,@host_cpu@,$host_cpu,;t t
51667s,@host_vendor@,$host_vendor,;t t
51668s,@host_os@,$host_os,;t t
51669s,@target@,$target,;t t
51670s,@target_cpu@,$target_cpu,;t t
51671s,@target_vendor@,$target_vendor,;t t
51672s,@target_os@,$target_os,;t t
02b05020 51673s,@wx_top_builddir@,$wx_top_builddir,;t t
a848cd7e
SC
51674s,@CC@,$CC,;t t
51675s,@CFLAGS@,$CFLAGS,;t t
51676s,@LDFLAGS@,$LDFLAGS,;t t
51677s,@CPPFLAGS@,$CPPFLAGS,;t t
51678s,@ac_ct_CC@,$ac_ct_CC,;t t
51679s,@EXEEXT@,$EXEEXT,;t t
51680s,@OBJEXT@,$OBJEXT,;t t
51681s,@CPP@,$CPP,;t t
51682s,@EGREP@,$EGREP,;t t
51683s,@CXX@,$CXX,;t t
51684s,@CXXFLAGS@,$CXXFLAGS,;t t
51685s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51686s,@RANLIB@,$RANLIB,;t t
51687s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51688s,@AR@,$AR,;t t
8c80d384 51689s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
51690s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51691s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51692s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51693s,@STRIP@,$STRIP,;t t
8c80d384 51694s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
51695s,@WINDRES@,$WINDRES,;t t
51696s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
51697s,@DLLTOOL@,$DLLTOOL,;t t
51698s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
51699s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
51700s,@LN_S@,$LN_S,;t t
51701s,@CXXCPP@,$CXXCPP,;t t
51702s,@subdirs@,$subdirs,;t t
51703s,@PKG_CONFIG@,$PKG_CONFIG,;t t
51704s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
51705s,@GTK_LIBS@,$GTK_LIBS,;t t
51706s,@GTK_CONFIG@,$GTK_CONFIG,;t t
b3c86150
VS
51707s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
51708s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
51709s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
a848cd7e
SC
51710s,@X_CFLAGS@,$X_CFLAGS,;t t
51711s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
51712s,@X_LIBS@,$X_LIBS,;t t
51713s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
51714s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
51715s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
51716s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
51717s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
51718s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
51719s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 51720s,@REZ@,$REZ,;t t
a848cd7e
SC
51721s,@DEREZ@,$DEREZ,;t t
51722s,@SETFILE@,$SETFILE,;t t
51723s,@LIBICONV@,$LIBICONV,;t t
51724s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
51725s,@SDL_CONFIG@,$SDL_CONFIG,;t t
51726s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
51727s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
51728s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
51729s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
51730s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
51731s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
51732s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
51733s,@HILDON_LIBS@,$HILDON_LIBS,;t t
64b75e64
RD
51734s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
51735s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
f10e38c4
VZ
51736s,@GST_CFLAGS@,$GST_CFLAGS,;t t
51737s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
51738s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
51739s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
51740s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
51741s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
51742s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
51743s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
51744s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
51745s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
51746s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
51747s,@VENDOR@,$VENDOR,;t t
51748s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
51749s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
51750s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
51751s,@WXUNIV@,$WXUNIV,;t t
51752s,@MONOLITHIC@,$MONOLITHIC,;t t
51753s,@USE_PLUGINS@,$USE_PLUGINS,;t t
51754s,@EXTRALIBS@,$EXTRALIBS,;t t
51755s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
51756s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
51757s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
51758s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
51759s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
51760s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
51761s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 51762s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 51763s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 51764s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
51765s,@UNICODE@,$UNICODE,;t t
51766s,@BUILD@,$BUILD,;t t
51767s,@DEBUG_INFO@,$DEBUG_INFO,;t t
51768s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
51769s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
51770s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
51771s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
51772s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
51773s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
51774s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
51775s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
51776s,@SET_MAKE@,$SET_MAKE,;t t
51777s,@MAKE_SET@,$MAKE_SET,;t t
a485900c 51778s,@AROPTIONS@,$AROPTIONS,;t t
a848cd7e
SC
51779s,@NM@,$NM,;t t
51780s,@ac_ct_NM@,$ac_ct_NM,;t t
51781s,@INSTALL_DIR@,$INSTALL_DIR,;t t
51782s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
51783s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
51784s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
51785s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
51786s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 51787s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
51788s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
51789s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 51790s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
51791s,@SO_SUFFIX@,$SO_SUFFIX,;t t
51792s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
51793s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
51794s,@LIBPREFIX@,$LIBPREFIX,;t t
51795s,@LIBEXT@,$LIBEXT,;t t
51796s,@DLLPREFIX@,$DLLPREFIX,;t t
51797s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 51798s,@dlldir@,$dlldir,;t t
a848cd7e
SC
51799s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
51800s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
51801s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
51802s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
51803s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
51804s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 51805s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
51806s,@USE_SOVERSION@,$USE_SOVERSION,;t t
51807s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
51808s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 51809s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
51810s,@USE_MACVERSION@,$USE_MACVERSION,;t t
51811s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
51812s,@SONAME_FLAG@,$SONAME_FLAG,;t t
51813s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
a485900c 51814s,@BK_DEPS@,$BK_DEPS,;t t
a848cd7e 51815s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 51816s,@ICC_PCH@,$ICC_PCH,;t t
a485900c 51817s,@BK_MAKE_PCH@,$BK_MAKE_PCH,;t t
a848cd7e
SC
51818s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
51819s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
51820s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
51821s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
51822s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
51823s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
51824s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
51825s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
51826s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
51827s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
51828s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
51829s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
51830s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
51831s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
51832s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 51833s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
51834s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
51835s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 51836s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 51837s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 51838s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
f10e38c4 51839s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1,;t t
a848cd7e 51840s,@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 51841s,@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 51842s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 51843s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 51844s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 51845s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 51846s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 51847s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 51848s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
f10e38c4 51849s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1,;t t
a848cd7e 51850s,@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 51851s,@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 51852s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 51853s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 51854s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 51855s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
51856s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
51857s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
51858s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
51859s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
51860s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
51861s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 51862s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
51863s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
51864s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 51865s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
51866s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
51867s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
51868s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 51869s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
ebee3cd0
VS
51870s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
51871s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
51872s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
51873s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 51874s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 51875s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 51876s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 51877s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
51878s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
51879s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
51880s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
3ad202f9
VZ
51881s,@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@,$COND_PLATFORM_UNIX_1_TOOLKIT_MGL,;t t
51882s,@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@,$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1,;t t
a848cd7e
SC
51883s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
51884s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
51885s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
51886s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
51887s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
51888s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
51889s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
51890s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
51891s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
51892s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51893s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51894s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 51895s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
51896s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
51897s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
51898s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
51899s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
51900s,@COND_SHARED_1@,$COND_SHARED_1,;t t
51901s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 51902s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 51903s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 51904s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 51905s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e 51906s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
b3c86150
VS
51907s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
51908s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
a848cd7e 51909s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
51910s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
51911s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
51912s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
51913s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
51914s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
51915s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 51916s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
51917s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
51918s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
51919s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
51920s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
51921s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
51922s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
51923s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
51924s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
51925s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
51926s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
51927s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 51928s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
51929s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
51930s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
51931s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
51932s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
51933s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
51934s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 51935s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
51936s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
51937s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
51938s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
51939s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
51940s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
51941s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
51942s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
51943s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
51944s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
51945s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51946s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51947s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
51948s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
51949s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 51950s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 51951s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
51952s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
51953s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 51954s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 51955s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
51956s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
51957s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
51958s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
51959s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
51960s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 51961s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 51962s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 51963s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 51964s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
51965s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
51966s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
51967s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
51968s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
51969s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
51970s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
51971s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
51972s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 51973s,@SHARED@,$SHARED,;t t
a848cd7e
SC
51974s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
51975s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
51976s,@USE_GUI@,$USE_GUI,;t t
51977s,@AFMINSTALL@,$AFMINSTALL,;t t
51978s,@WIN32INSTALL@,$WIN32INSTALL,;t t
51979s,@TOOLKIT@,$TOOLKIT,;t t
51980s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 51981s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 51982s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 51983s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
51984s,@WIDGET_SET@,$WIDGET_SET,;t t
51985s,@WX_RELEASE@,$WX_RELEASE,;t t
51986s,@WX_VERSION@,$WX_VERSION,;t t
51987s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
51988s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
51989s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
51990s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
51991s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
51992s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
51993s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
51994s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
51995s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 51996s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 51997s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 51998s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
51999s,@DISTDIR@,$DISTDIR,;t t
52000s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
52001s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
52002s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
52003s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
52004s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 52005s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
52006s,@RESFLAGS@,$RESFLAGS,;t t
52007s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
52008s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
52009s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
52010s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 52011s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 52012s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 52013s,@GCC@,$GCC,;t t
a848cd7e
SC
52014s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
52015s,@LIBOBJS@,$LIBOBJS,;t t
52016s,@LTLIBOBJS@,$LTLIBOBJS,;t t
52017CEOF
52018
52019_ACEOF
52020
52021 cat >>$CONFIG_STATUS <<\_ACEOF
52022 # Split the substitutions into bite-sized pieces for seds with
52023 # small command number limits, like on Digital OSF/1 and HP-UX.
52024 ac_max_sed_lines=48
52025 ac_sed_frag=1 # Number of current file.
52026 ac_beg=1 # First line for current file.
52027 ac_end=$ac_max_sed_lines # Line after last line for current file.
52028 ac_more_lines=:
52029 ac_sed_cmds=
52030 while $ac_more_lines; do
52031 if test $ac_beg -gt 1; then
52032 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52033 else
52034 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52035 fi
52036 if test ! -s $tmp/subs.frag; then
52037 ac_more_lines=false
52038 else
52039 # The purpose of the label and of the branching condition is to
52040 # speed up the sed processing (if there are no `@' at all, there
52041 # is no need to browse any of the substitutions).
52042 # These are the two extra sed commands mentioned above.
52043 (echo ':t
52044 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
52045 if test -z "$ac_sed_cmds"; then
ac1cb8d3 52046 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 52047 else
ac1cb8d3 52048 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
52049 fi
52050 ac_sed_frag=`expr $ac_sed_frag + 1`
52051 ac_beg=$ac_end
52052 ac_end=`expr $ac_end + $ac_max_sed_lines`
52053 fi
52054 done
52055 if test -z "$ac_sed_cmds"; then
52056 ac_sed_cmds=cat
52057 fi
52058fi # test -n "$CONFIG_FILES"
52059
52060_ACEOF
52061cat >>$CONFIG_STATUS <<\_ACEOF
52062for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
52063 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52064 case $ac_file in
52065 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
52066 cat >$tmp/stdin
52067 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52068 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 52069 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 52070 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
52071 * ) ac_file_in=$ac_file.in ;;
52072 esac
52073
52074 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
52075 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52076$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52077 X"$ac_file" : 'X\(//\)[^/]' \| \
52078 X"$ac_file" : 'X\(//\)$' \| \
52079 X"$ac_file" : 'X\(/\)' \| \
52080 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52081echo X"$ac_file" |
52082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52083 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52084 /^X\(\/\/\)$/{ s//\1/; q; }
52085 /^X\(\/\).*/{ s//\1/; q; }
52086 s/.*/./; q'`
52087 { if $as_mkdir_p; then
52088 mkdir -p "$ac_dir"
52089 else
52090 as_dir="$ac_dir"
52091 as_dirs=
52092 while test ! -d "$as_dir"; do
52093 as_dirs="$as_dir $as_dirs"
52094 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52095$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52096 X"$as_dir" : 'X\(//\)[^/]' \| \
52097 X"$as_dir" : 'X\(//\)$' \| \
52098 X"$as_dir" : 'X\(/\)' \| \
52099 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52100echo X"$as_dir" |
52101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52102 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52103 /^X\(\/\/\)$/{ s//\1/; q; }
52104 /^X\(\/\).*/{ s//\1/; q; }
52105 s/.*/./; q'`
52106 done
52107 test ! -n "$as_dirs" || mkdir $as_dirs
52108 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52109echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52110 { (exit 1); exit 1; }; }; }
52111
52112 ac_builddir=.
52113
52114if test "$ac_dir" != .; then
52115 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52116 # A "../" for each directory in $ac_dir_suffix.
52117 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52118else
52119 ac_dir_suffix= ac_top_builddir=
52120fi
52121
52122case $srcdir in
52123 .) # No --srcdir option. We are building in place.
52124 ac_srcdir=.
52125 if test -z "$ac_top_builddir"; then
52126 ac_top_srcdir=.
52127 else
52128 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52129 fi ;;
52130 [\\/]* | ?:[\\/]* ) # Absolute path.
52131 ac_srcdir=$srcdir$ac_dir_suffix;
52132 ac_top_srcdir=$srcdir ;;
52133 *) # Relative path.
52134 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52135 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52136esac
ac1cb8d3
VS
52137
52138# Do not use `cd foo && pwd` to compute absolute paths, because
52139# the directories may not exist.
52140case `pwd` in
52141.) ac_abs_builddir="$ac_dir";;
52142*)
52143 case "$ac_dir" in
52144 .) ac_abs_builddir=`pwd`;;
52145 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52146 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52147 esac;;
52148esac
52149case $ac_abs_builddir in
52150.) ac_abs_top_builddir=${ac_top_builddir}.;;
52151*)
52152 case ${ac_top_builddir}. in
52153 .) ac_abs_top_builddir=$ac_abs_builddir;;
52154 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52155 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52156 esac;;
52157esac
52158case $ac_abs_builddir in
52159.) ac_abs_srcdir=$ac_srcdir;;
52160*)
52161 case $ac_srcdir in
52162 .) ac_abs_srcdir=$ac_abs_builddir;;
52163 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52164 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52165 esac;;
52166esac
52167case $ac_abs_builddir in
52168.) ac_abs_top_srcdir=$ac_top_srcdir;;
52169*)
52170 case $ac_top_srcdir in
52171 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52172 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52173 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52174 esac;;
52175esac
a848cd7e
SC
52176
52177
52178 case $INSTALL in
52179 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52180 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
52181 esac
52182
a848cd7e
SC
52183 # Let's still pretend it is `configure' which instantiates (i.e., don't
52184 # use $as_me), people would be surprised to read:
52185 # /* config.h. Generated by config.status. */
52186 if test x"$ac_file" = x-; then
52187 configure_input=
52188 else
52189 configure_input="$ac_file. "
52190 fi
52191 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 52192 sed 's,.*/,,'` by configure."
a848cd7e
SC
52193
52194 # First look for the input files in the build tree, otherwise in the
52195 # src tree.
52196 ac_file_inputs=`IFS=:
52197 for f in $ac_file_in; do
52198 case $f in
52199 -) echo $tmp/stdin ;;
52200 [\\/$]*)
ac1cb8d3
VS
52201 # Absolute (can't be DOS-style, as IFS=:)
52202 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
52203echo "$as_me: error: cannot find input file: $f" >&2;}
52204 { (exit 1); exit 1; }; }
ac1cb8d3 52205 echo "$f";;
a848cd7e 52206 *) # Relative
ac1cb8d3
VS
52207 if test -f "$f"; then
52208 # Build tree
52209 echo "$f"
52210 elif test -f "$srcdir/$f"; then
52211 # Source tree
52212 echo "$srcdir/$f"
52213 else
52214 # /dev/null tree
52215 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
52216echo "$as_me: error: cannot find input file: $f" >&2;}
52217 { (exit 1); exit 1; }; }
ac1cb8d3 52218 fi;;
a848cd7e
SC
52219 esac
52220 done` || { (exit 1); exit 1; }
bb9e79c0
VZ
52221
52222 if test x"$ac_file" != x-; then
52223 { echo "$as_me:$LINENO: creating $ac_file" >&5
52224echo "$as_me: creating $ac_file" >&6;}
52225 rm -f "$ac_file"
52226 fi
a848cd7e
SC
52227_ACEOF
52228cat >>$CONFIG_STATUS <<_ACEOF
52229 sed "$ac_vpsub
52230$extrasub
52231_ACEOF
52232cat >>$CONFIG_STATUS <<\_ACEOF
52233:t
52234/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52235s,@configure_input@,$configure_input,;t t
52236s,@srcdir@,$ac_srcdir,;t t
52237s,@abs_srcdir@,$ac_abs_srcdir,;t t
52238s,@top_srcdir@,$ac_top_srcdir,;t t
52239s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
52240s,@builddir@,$ac_builddir,;t t
52241s,@abs_builddir@,$ac_abs_builddir,;t t
52242s,@top_builddir@,$ac_top_builddir,;t t
52243s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
52244s,@INSTALL@,$ac_INSTALL,;t t
52245" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
52246 rm -f $tmp/stdin
52247 if test x"$ac_file" != x-; then
52248 mv $tmp/out $ac_file
52249 else
52250 cat $tmp/out
52251 rm -f $tmp/out
52252 fi
52253
ceec2216
RL
52254 # Run the commands associated with the file.
52255 case $ac_file in
52256 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
52257 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
52258 esac
a848cd7e
SC
52259done
52260_ACEOF
52261cat >>$CONFIG_STATUS <<\_ACEOF
52262
52263#
52264# CONFIG_HEADER section.
52265#
52266
52267# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
52268# NAME is the cpp macro being defined and VALUE is the value it is being given.
52269#
52270# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
52271ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
52272ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
52273ac_dC=' '
52274ac_dD=',;t'
52275# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 52276ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
52277ac_uB='$,\1#\2define\3'
52278ac_uC=' '
52279ac_uD=',;t'
52280
52281for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
52282 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52283 case $ac_file in
52284 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
52285 cat >$tmp/stdin
52286 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52287 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 52288 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 52289 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
52290 * ) ac_file_in=$ac_file.in ;;
52291 esac
52292
52293 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
52294echo "$as_me: creating $ac_file" >&6;}
52295
52296 # First look for the input files in the build tree, otherwise in the
52297 # src tree.
52298 ac_file_inputs=`IFS=:
52299 for f in $ac_file_in; do
52300 case $f in
52301 -) echo $tmp/stdin ;;
52302 [\\/$]*)
ac1cb8d3
VS
52303 # Absolute (can't be DOS-style, as IFS=:)
52304 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
52305echo "$as_me: error: cannot find input file: $f" >&2;}
52306 { (exit 1); exit 1; }; }
ac1cb8d3
VS
52307 # Do quote $f, to prevent DOS paths from being IFS'd.
52308 echo "$f";;
a848cd7e 52309 *) # Relative
ac1cb8d3
VS
52310 if test -f "$f"; then
52311 # Build tree
52312 echo "$f"
52313 elif test -f "$srcdir/$f"; then
52314 # Source tree
52315 echo "$srcdir/$f"
52316 else
52317 # /dev/null tree
52318 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
52319echo "$as_me: error: cannot find input file: $f" >&2;}
52320 { (exit 1); exit 1; }; }
ac1cb8d3 52321 fi;;
a848cd7e
SC
52322 esac
52323 done` || { (exit 1); exit 1; }
52324 # Remove the trailing spaces.
ac1cb8d3 52325 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
52326
52327_ACEOF
52328
52329# Transform confdefs.h into two sed scripts, `conftest.defines' and
52330# `conftest.undefs', that substitutes the proper values into
52331# config.h.in to produce config.h. The first handles `#define'
52332# templates, and the second `#undef' templates.
52333# And first: Protect against being on the right side of a sed subst in
52334# config.status. Protect against being in an unquoted here document
52335# in config.status.
52336rm -f conftest.defines conftest.undefs
52337# Using a here document instead of a string reduces the quoting nightmare.
52338# Putting comments in sed scripts is not portable.
52339#
52340# `end' is used to avoid that the second main sed command (meant for
52341# 0-ary CPP macros) applies to n-ary macro definitions.
52342# See the Autoconf documentation for `clear'.
52343cat >confdef2sed.sed <<\_ACEOF
52344s/[\\&,]/\\&/g
52345s,[\\$`],\\&,g
52346t clear
52347: clear
ac1cb8d3 52348s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 52349t end
ac1cb8d3 52350s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
52351: end
52352_ACEOF
52353# If some macros were called several times there might be several times
52354# the same #defines, which is useless. Nevertheless, we may not want to
52355# sort them, since we want the *last* AC-DEFINE to be honored.
52356uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
52357sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
52358rm -f confdef2sed.sed
52359
52360# This sed command replaces #undef with comments. This is necessary, for
52361# example, in the case of _POSIX_SOURCE, which is predefined and required
52362# on some systems where configure will not decide to define it.
52363cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 52364s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
52365_ACEOF
52366
52367# Break up conftest.defines because some shells have a limit on the size
52368# of here documents, and old seds have small limits too (100 cmds).
52369echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 52370echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
52371echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52372echo ' :' >>$CONFIG_STATUS
52373rm -f conftest.tail
52374while grep . conftest.defines >/dev/null
52375do
52376 # Write a limited-size here document to $tmp/defines.sed.
52377 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52378 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 52379 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
52380 # Work around the forget-to-reset-the-flag bug.
52381 echo 't clr' >>$CONFIG_STATUS
52382 echo ': clr' >>$CONFIG_STATUS
52383 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
52384 echo 'CEOF
52385 sed -f $tmp/defines.sed $tmp/in >$tmp/out
52386 rm -f $tmp/in
52387 mv $tmp/out $tmp/in
52388' >>$CONFIG_STATUS
52389 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
52390 rm -f conftest.defines
52391 mv conftest.tail conftest.defines
52392done
52393rm -f conftest.defines
52394echo ' fi # grep' >>$CONFIG_STATUS
52395echo >>$CONFIG_STATUS
52396
52397# Break up conftest.undefs because some shells have a limit on the size
52398# of here documents, and old seds have small limits too (100 cmds).
52399echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
52400rm -f conftest.tail
52401while grep . conftest.undefs >/dev/null
52402do
52403 # Write a limited-size here document to $tmp/undefs.sed.
52404 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52405 # Speed up: don't consider the non `#undef'
ac1cb8d3 52406 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
52407 # Work around the forget-to-reset-the-flag bug.
52408 echo 't clr' >>$CONFIG_STATUS
52409 echo ': clr' >>$CONFIG_STATUS
52410 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52411 echo 'CEOF
52412 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52413 rm -f $tmp/in
52414 mv $tmp/out $tmp/in
52415' >>$CONFIG_STATUS
52416 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52417 rm -f conftest.undefs
52418 mv conftest.tail conftest.undefs
52419done
52420rm -f conftest.undefs
52421
52422cat >>$CONFIG_STATUS <<\_ACEOF
52423 # Let's still pretend it is `configure' which instantiates (i.e., don't
52424 # use $as_me), people would be surprised to read:
52425 # /* config.h. Generated by config.status. */
52426 if test x"$ac_file" = x-; then
52427 echo "/* Generated by configure. */" >$tmp/config.h
52428 else
52429 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
52430 fi
52431 cat $tmp/in >>$tmp/config.h
52432 rm -f $tmp/in
52433 if test x"$ac_file" != x-; then
52434 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52435 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52436echo "$as_me: $ac_file is unchanged" >&6;}
52437 else
52438 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52439$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52440 X"$ac_file" : 'X\(//\)[^/]' \| \
52441 X"$ac_file" : 'X\(//\)$' \| \
52442 X"$ac_file" : 'X\(/\)' \| \
52443 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52444echo X"$ac_file" |
52445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52446 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52447 /^X\(\/\/\)$/{ s//\1/; q; }
52448 /^X\(\/\).*/{ s//\1/; q; }
52449 s/.*/./; q'`
52450 { if $as_mkdir_p; then
52451 mkdir -p "$ac_dir"
52452 else
52453 as_dir="$ac_dir"
52454 as_dirs=
52455 while test ! -d "$as_dir"; do
52456 as_dirs="$as_dir $as_dirs"
52457 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52458$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52459 X"$as_dir" : 'X\(//\)[^/]' \| \
52460 X"$as_dir" : 'X\(//\)$' \| \
52461 X"$as_dir" : 'X\(/\)' \| \
52462 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52463echo X"$as_dir" |
52464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52465 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52466 /^X\(\/\/\)$/{ s//\1/; q; }
52467 /^X\(\/\).*/{ s//\1/; q; }
52468 s/.*/./; q'`
52469 done
52470 test ! -n "$as_dirs" || mkdir $as_dirs
52471 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52472echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52473 { (exit 1); exit 1; }; }; }
52474
52475 rm -f $ac_file
52476 mv $tmp/config.h $ac_file
52477 fi
52478 else
52479 cat $tmp/config.h
52480 rm -f $tmp/config.h
52481 fi
52482done
52483_ACEOF
52484cat >>$CONFIG_STATUS <<\_ACEOF
52485
52486#
52487# CONFIG_COMMANDS section.
52488#
52489for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52490 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52491 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52492 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52493$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52494 X"$ac_dest" : 'X\(//\)[^/]' \| \
52495 X"$ac_dest" : 'X\(//\)$' \| \
52496 X"$ac_dest" : 'X\(/\)' \| \
52497 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52498echo X"$ac_dest" |
52499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52500 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52501 /^X\(\/\/\)$/{ s//\1/; q; }
52502 /^X\(\/\).*/{ s//\1/; q; }
52503 s/.*/./; q'`
ac1cb8d3
VS
52504 { if $as_mkdir_p; then
52505 mkdir -p "$ac_dir"
52506 else
52507 as_dir="$ac_dir"
52508 as_dirs=
52509 while test ! -d "$as_dir"; do
52510 as_dirs="$as_dir $as_dirs"
52511 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52512$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52513 X"$as_dir" : 'X\(//\)[^/]' \| \
52514 X"$as_dir" : 'X\(//\)$' \| \
52515 X"$as_dir" : 'X\(/\)' \| \
52516 . : '\(.\)' 2>/dev/null ||
52517echo X"$as_dir" |
52518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52519 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52520 /^X\(\/\/\)$/{ s//\1/; q; }
52521 /^X\(\/\).*/{ s//\1/; q; }
52522 s/.*/./; q'`
52523 done
52524 test ! -n "$as_dirs" || mkdir $as_dirs
52525 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52526echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52527 { (exit 1); exit 1; }; }; }
52528
a848cd7e
SC
52529 ac_builddir=.
52530
52531if test "$ac_dir" != .; then
52532 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52533 # A "../" for each directory in $ac_dir_suffix.
52534 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52535else
52536 ac_dir_suffix= ac_top_builddir=
52537fi
52538
52539case $srcdir in
52540 .) # No --srcdir option. We are building in place.
52541 ac_srcdir=.
52542 if test -z "$ac_top_builddir"; then
52543 ac_top_srcdir=.
52544 else
52545 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52546 fi ;;
52547 [\\/]* | ?:[\\/]* ) # Absolute path.
52548 ac_srcdir=$srcdir$ac_dir_suffix;
52549 ac_top_srcdir=$srcdir ;;
52550 *) # Relative path.
52551 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52552 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52553esac
ac1cb8d3
VS
52554
52555# Do not use `cd foo && pwd` to compute absolute paths, because
52556# the directories may not exist.
52557case `pwd` in
52558.) ac_abs_builddir="$ac_dir";;
52559*)
52560 case "$ac_dir" in
52561 .) ac_abs_builddir=`pwd`;;
52562 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52563 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52564 esac;;
52565esac
52566case $ac_abs_builddir in
52567.) ac_abs_top_builddir=${ac_top_builddir}.;;
52568*)
52569 case ${ac_top_builddir}. in
52570 .) ac_abs_top_builddir=$ac_abs_builddir;;
52571 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52572 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52573 esac;;
52574esac
52575case $ac_abs_builddir in
52576.) ac_abs_srcdir=$ac_srcdir;;
52577*)
52578 case $ac_srcdir in
52579 .) ac_abs_srcdir=$ac_abs_builddir;;
52580 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52581 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52582 esac;;
52583esac
52584case $ac_abs_builddir in
52585.) ac_abs_top_srcdir=$ac_top_srcdir;;
52586*)
52587 case $ac_top_srcdir in
52588 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52589 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52590 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52591 esac;;
52592esac
a848cd7e
SC
52593
52594
52595 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52596echo "$as_me: executing $ac_dest commands" >&6;}
52597 case $ac_dest in
5c60e845
MW
52598 rcdefs.h )
52599 mkdir -p $outdir &&
52600 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52601 ;;
ceec2216
RL
52602 wx-config ) rm -f wx-config
52603 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52604 ;;
a848cd7e
SC
52605 esac
52606done
52607_ACEOF
52608
52609cat >>$CONFIG_STATUS <<\_ACEOF
52610
52611{ (exit 0); exit 0; }
52612_ACEOF
52613chmod +x $CONFIG_STATUS
52614ac_clean_files=$ac_clean_files_save
52615
52616
52617# configure is writing to config.log, and then calls config.status.
52618# config.status does its own redirection, appending to config.log.
52619# Unfortunately, on DOS this fails, as config.log is still kept open
52620# by configure, so config.status won't be able to write to it; its
52621# output is simply discarded. So we exec the FD to /dev/null,
52622# effectively closing config.log, so it can be properly (re)opened and
52623# appended to by config.status. When coming back to configure, we
52624# need to make the FD available again.
52625if test "$no_create" != yes; then
52626 ac_cs_success=:
52627 ac_config_status_args=
52628 test "$silent" = yes &&
52629 ac_config_status_args="$ac_config_status_args --quiet"
52630 exec 5>/dev/null
52631 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52632 exec 5>>config.log
52633 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52634 # would make configure fail if this is the last instruction.
52635 $ac_cs_success || { (exit 1); exit 1; }
52636fi
52637
52638#
52639# CONFIG_SUBDIRS section.
52640#
52641if test "$no_recursion" != yes; then
52642
52643 # Remove --cache-file and --srcdir arguments so they do not pile up.
52644 ac_sub_configure_args=
52645 ac_prev=
52646 for ac_arg in $ac_configure_args; do
52647 if test -n "$ac_prev"; then
52648 ac_prev=
52649 continue
52650 fi
52651 case $ac_arg in
52652 -cache-file | --cache-file | --cache-fil | --cache-fi \
52653 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52654 ac_prev=cache_file ;;
52655 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52656 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52657 | --c=*)
52658 ;;
52659 --config-cache | -C)
52660 ;;
52661 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52662 ac_prev=srcdir ;;
52663 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52664 ;;
52665 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52666 ac_prev=prefix ;;
52667 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52668 ;;
52669 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
52670 esac
52671 done
52672
52673 # Always prepend --prefix to ensure using the same prefix
52674 # in subdir configurations.
52675 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
52676
52677 ac_popdir=`pwd`
52678 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52679
52680 # Do not complain, so a configure script can configure whichever
52681 # parts of a large source tree are present.
52682 test -d $srcdir/$ac_dir || continue
52683
52684 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
52685echo "$as_me: configuring in $ac_dir" >&6;}
52686 { if $as_mkdir_p; then
52687 mkdir -p "$ac_dir"
52688 else
52689 as_dir="$ac_dir"
52690 as_dirs=
52691 while test ! -d "$as_dir"; do
52692 as_dirs="$as_dir $as_dirs"
52693 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52694$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52695 X"$as_dir" : 'X\(//\)[^/]' \| \
52696 X"$as_dir" : 'X\(//\)$' \| \
52697 X"$as_dir" : 'X\(/\)' \| \
52698 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52699echo X"$as_dir" |
52700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52702 /^X\(\/\/\)$/{ s//\1/; q; }
52703 /^X\(\/\).*/{ s//\1/; q; }
52704 s/.*/./; q'`
52705 done
52706 test ! -n "$as_dirs" || mkdir $as_dirs
52707 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52708echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52709 { (exit 1); exit 1; }; }; }
52710
52711 ac_builddir=.
52712
52713if test "$ac_dir" != .; then
52714 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52715 # A "../" for each directory in $ac_dir_suffix.
52716 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52717else
52718 ac_dir_suffix= ac_top_builddir=
52719fi
52720
52721case $srcdir in
52722 .) # No --srcdir option. We are building in place.
52723 ac_srcdir=.
52724 if test -z "$ac_top_builddir"; then
52725 ac_top_srcdir=.
52726 else
52727 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52728 fi ;;
52729 [\\/]* | ?:[\\/]* ) # Absolute path.
52730 ac_srcdir=$srcdir$ac_dir_suffix;
52731 ac_top_srcdir=$srcdir ;;
52732 *) # Relative path.
52733 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52734 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52735esac
ac1cb8d3
VS
52736
52737# Do not use `cd foo && pwd` to compute absolute paths, because
52738# the directories may not exist.
52739case `pwd` in
52740.) ac_abs_builddir="$ac_dir";;
52741*)
52742 case "$ac_dir" in
52743 .) ac_abs_builddir=`pwd`;;
52744 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52745 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52746 esac;;
52747esac
52748case $ac_abs_builddir in
52749.) ac_abs_top_builddir=${ac_top_builddir}.;;
52750*)
52751 case ${ac_top_builddir}. in
52752 .) ac_abs_top_builddir=$ac_abs_builddir;;
52753 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52754 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52755 esac;;
52756esac
52757case $ac_abs_builddir in
52758.) ac_abs_srcdir=$ac_srcdir;;
52759*)
52760 case $ac_srcdir in
52761 .) ac_abs_srcdir=$ac_abs_builddir;;
52762 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52763 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52764 esac;;
52765esac
52766case $ac_abs_builddir in
52767.) ac_abs_top_srcdir=$ac_top_srcdir;;
52768*)
52769 case $ac_top_srcdir in
52770 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52771 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52772 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52773 esac;;
52774esac
a848cd7e
SC
52775
52776
52777 cd $ac_dir
52778
52779 # Check for guested configure; otherwise get Cygnus style configure.
52780 if test -f $ac_srcdir/configure.gnu; then
52781 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
52782 elif test -f $ac_srcdir/configure; then
52783 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
52784 elif test -f $ac_srcdir/configure.in; then
52785 ac_sub_configure=$ac_configure
52786 else
52787 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52788echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52789 ac_sub_configure=
52790 fi
52791
52792 # The recursion is here.
52793 if test -n "$ac_sub_configure"; then
52794 # Make the cache file name correct relative to the subdirectory.
52795 case $cache_file in
52796 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52797 *) # Relative path.
ac1cb8d3 52798 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
52799 esac
52800
52801 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52802echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
52803 # The eval makes quoting arguments work.
52804 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
52805 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
52806 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
52807echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52808 { (exit 1); exit 1; }; }
52809 fi
52810
bb9e79c0 52811 cd "$ac_popdir"
a848cd7e
SC
52812 done
52813fi
52814
52815
52816echo
77ffb593 52817echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 52818echo ""
c2e9ada4 52819echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 52820echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 52821
77ffb593
JS
52822echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
52823echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
52824echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 52825
77ffb593 52826echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
52827echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
52828echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 52829
77ffb593 52830echo " Which libraries should wxWidgets use?"
a848cd7e
SC
52831echo " jpeg ${wxUSE_LIBJPEG-none}"
52832echo " png ${wxUSE_LIBPNG-none}"
52833echo " regex ${wxUSE_REGEX}"
52834echo " tiff ${wxUSE_LIBTIFF-none}"
52835if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52836echo " xpm ${wxUSE_LIBXPM-none}"
52837fi
52838echo " zlib ${wxUSE_ZLIB}"
52839echo " odbc ${wxUSE_ODBC}"
52840echo " expat ${wxUSE_EXPAT}"
52841echo " libmspack ${wxUSE_LIBMSPACK}"
52842echo " sdl ${wxUSE_LIBSDL}"
52843
52844echo ""
52845