]> git.saurik.com Git - wxWidgets.git/blame - configure
optionally count repeating wxLog messages instead of logging all (patch 1520815)
[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
95768535 968 --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
969 --enable-compat24 enable wxWidgets 2.4 compatibility
970 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 971 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
972 --enable-intl use internationalization system
973 --enable-config use wxConfig (and derived) classes
974 --enable-protocols use wxProtocol and derived classes
975 --enable-ftp use wxFTP (requires wxProtocol
976 --enable-http use wxHTTP (requires wxProtocol
977 --enable-fileproto use wxFileProto class (requires wxProtocol
978 --enable-sockets use socket/network classes
979 --enable-ole use OLE classes (Win32 only)
980 --enable-dataobj use data object classes
981 --enable-ipc use interprocess communication (wxSocket etc.)
982 --enable-apple_ieee use the Apple IEEE codec
81f90336 983 --enable-arcstream use wxArchive streams
eaff0f0d 984 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 985 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
986 --enable-cmdline use wxCmdLineParser class
987 --enable-datetime use wxDateTime class
36b6448c 988 --enable-debugreport use wxDebugReport class
a848cd7e
SC
989 --enable-dialupman use dialup network classes
990 --enable-dynlib use wxLibrary class for DLL loading
991 --enable-dynamicloader use (new) wxDynamicLibrary class
992 --enable-exceptions build exception-safe library
993 --enable-ffile use wxFFile class
994 --enable-file use wxFile class
995 --enable-filesystem use virtual file systems classes
996 --enable-fontmap use font encodings conversion classes
26e422a9 997 --enable-fs_archive use virtual archive filesystems
a848cd7e 998 --enable-fs_inet use virtual HTTP/FTP filesystems
916af76f 999 --enable-fs_zip now replaced by fs_archive
a848cd7e
SC
1000 --enable-geometry use geometry class
1001 --enable-log use logging system
1002 --enable-longlong use wxLongLong class
1003 --enable-mimetype use wxMimeTypesManager
1004 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
1005 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 1006 --enable-std_iostreams use standard C++ stream classes
59746b65 1007 --enable-std_string use standard C++ string classes
07158944 1008 --enable-stdpaths use wxStandardPaths class
a848cd7e 1009 --enable-stopwatch use wxStopWatch class
07158944 1010 --enable-streams use wxStream etc classes
a848cd7e 1011 --enable-sysoptions use wxSystemOptions
26e422a9 1012 --enable-tarstream use wxTar streams
a848cd7e
SC
1013 --enable-textbuf use wxTextBuffer class
1014 --enable-textfile use wxTextFile class
1015 --enable-timer use wxTimer class
1016 --enable-unicode compile wxString with Unicode support
1017 --enable-sound use wxSound class
3b57de8b 1018 --enable-mediactrl use wxMediaCtrl class
15291213 1019 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1020 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1021 --enable-zipstream use wxZip streams
a848cd7e 1022 --enable-url use wxURL class
ca5c6ac3 1023 --enable-variant use wxVariant class
a848cd7e
SC
1024 --enable-protocol use wxProtocol class
1025 --enable-protocol-http HTTP support in wxProtocol
1026 --enable-protocol-ftp FTP support in wxProtocol
1027 --enable-protocol-file FILE support in wxProtocol
1028 --enable-threads use threads
1029 --enable-docview use document view architecture
1030 --enable-help use help subsystem
1031 --enable-mshtmlhelp use MS HTML Help (win32)
1032 --enable-html use wxHTML sub-library
1033 --enable-htmlhelp use wxHTML-based help
9a8f0513 1034 --enable-xrc use XRC resources sub-library
3f60522a 1035 --enable-aui use AUI docking library
a848cd7e
SC
1036 --enable-constraints use layout-constraints system
1037 --enable-printarch use printing architecture
1038 --enable-mdi use multiple document interface architecture
8a7b1113 1039 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1040 --enable-loggui use standard GUI logger
1041 --enable-logwin use wxLogWindow
1042 --enable-logdialog use wxLogDialog
646b6ec1 1043 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1044 --enable-richtext use wxRichTextCtrl
f43426c1 1045 --enable-graphics_ctx use graphics context 2D drawing API
a848cd7e
SC
1046 --enable-postscript use wxPostscriptDC device context (default for gtk+)
1047 --enable-prologio not available; see contrib
1048 --enable-resources not available; see contrib
1049 --enable-clipboard use wxClipboard class
1050 --enable-dnd use Drag'n'Drop classes
1051 --enable-metafile use win32 metafiles
1052 --enable-controls use all usual controls
1053 --enable-accel use accelerators
3ea50042 1054 --enable-animatectrl use wxAnimationCtrl class
a848cd7e
SC
1055 --enable-button use wxButton class
1056 --enable-bmpbutton use wxBitmapButton class
95a46303 1057 --enable-bmpcombobox use wxBitmapComboBox class
a848cd7e
SC
1058 --enable-calendar use wxCalendarCtrl class
1059 --enable-caret use wxCaret class
1060 --enable-checkbox use wxCheckBox class
1061 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1062 --enable-choice use wxChoice class
92bbdbcd 1063 --enable-choicebook use wxChoicebook class
bd915ace 1064 --enable-collpane use wxCollapsiblePane class
e9263684 1065 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1066 --enable-combobox use wxComboBox class
a57d600f 1067 --enable-comboctrl use wxComboCtrl class
da98e9be 1068 --enable-datepick use wxDatePickerCtrl class
e9263684 1069 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1070 --enable-display use wxDisplay class
88bbc332 1071 --enable-detect_sm use code to detect X11 session manager
e9263684
VZ
1072 --enable-filepicker use wxFilePickerCtrl class
1073 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1074 --enable-gauge use wxGauge class
1075 --enable-grid use wxGrid class
20e34ecc 1076 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 1077 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1078 --enable-imaglist use wxImageList class
1079 --enable-listbook use wxListbook class
1080 --enable-listbox use wxListBox class
1081 --enable-listctrl use wxListCtrl class
1082 --enable-notebook use wxNotebook class
a57d600f 1083 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1084 --enable-radiobox use wxRadioBox class
1085 --enable-radiobtn use wxRadioButton class
1086 --enable-sash use wxSashWindow class
1087 --enable-scrollbar use wxScrollBar class and scrollable windows
1088 --enable-slider use wxSlider class
1089 --enable-spinbtn use wxSpinButton class
1090 --enable-spinctrl use wxSpinCtrl class
1091 --enable-splitter use wxSplitterWindow class
1092 --enable-statbmp use wxStaticBitmap class
1093 --enable-statbox use wxStaticBox class
1094 --enable-statline use wxStaticLine class
1095 --enable-stattext use wxStaticText class
1096 --enable-statusbar use wxStatusBar class
1097 --enable-tabdialog use wxTabControl class
1098 --enable-textctrl use wxTextCtrl class
1099 --enable-togglebtn use wxToggleButton class
1100 --enable-toolbar use wxToolBar class
1101 --enable-tbarnative use native wxToolBar class
0093c2fc 1102 --enable-treebook use wxTreebook class
5ec3bc43 1103 --enable-toolbook use wxToolbook class
a848cd7e
SC
1104 --enable-treectrl use wxTreeCtrl class
1105 --enable-tipwindow use wxTipWindow class
1106 --enable-popupwin use wxPopUpWindow class
1107 --enable-commondlg use all common dialogs
319c5ed4 1108 --enable-aboutdlg use wxAboutBox
a848cd7e
SC
1109 --enable-choicedlg use wxChoiceDialog
1110 --enable-coldlg use wxColourDialog
1111 --enable-filedlg use wxFileDialog
1112 --enable-finddlg use wxFindReplaceDialog
1113 --enable-fontdlg use wxFontDialog
1114 --enable-dirdlg use wxDirDialog
1115 --enable-msgdlg use wxMessageDialog
1116 --enable-numberdlg use wxNumberEntryDialog
1117 --enable-splash use wxSplashScreen
1118 --enable-textdlg use wxTextDialog
1119 --enable-tipdlg use startup tips
1120 --enable-progressdlg use wxProgressDialog
1121 --enable-wizarddlg use wxWizard
1122 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1123 --enable-miniframe use wxMiniFrame class
1124 --enable-tooltips use wxToolTip class
1125 --enable-splines use spline drawing code
fbe2ca43 1126 --enable-mousewheel use mousewheel
a848cd7e
SC
1127 --enable-validators use wxValidator and derived classes
1128 --enable-busyinfo use wxBusyInfo
4cb1d3da 1129 --enable-joystick use wxJoystick
38b4a946 1130 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1131 --enable-dragimage use wxDragImage
1132 --enable-accessibility enable accessibility support
38b4a946 1133 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1134 --enable-palette use wxPalette class
1135 --enable-image use wxImage class
1136 --enable-gif use gif images (GIF file format)
1137 --enable-pcx use pcx images (PCX file format)
bb9e79c0 1138 --enable-tga use tga images (TGA file format)
a848cd7e
SC
1139 --enable-iff use iff images (IFF file format)
1140 --enable-pnm use pnm images (PNM file format)
1141 --enable-xpm use xpm images (XPM file format)
1142 --enable-icocur use Windows ICO and CUR formats
77ffb593 1143 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1144 --enable-vendor=VENDOR vendor name (win32 DLL only)
1145 --disable-largefile omit support for large files
1146 --disable-gtktest do not try to compile and run a test GTK+ program
1147 --disable-gtktest Do not try to compile and run a test GTK program
1148 --disable-sdltest Do not try to compile and run a test SDL program
1149 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1150 --disable-dependency-tracking
1151 don't use dependency tracking even if the compiler
1152 can
ebee3cd0
VS
1153 --disable-precomp-headers
1154 don't use precompiled headers even if compiler can
a848cd7e
SC
1155
1156Optional Packages:
1157 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1158 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1159 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1160 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1161 --with-motif use Motif/Lesstif
1162 --with-mac use Mac OS X
1163 --with-cocoa use Cocoa
1164 --with-wine use Wine
1165 --with-msw use MS-Windows
1166 --with-pm use OS/2 Presentation Manager
1167 --with-mgl use SciTech MGL
b3c86150 1168 --with-directfb use DirectFB
a848cd7e
SC
1169 --with-microwin use MicroWindows
1170 --with-x11 use X11
1171 --with-libpng use libpng (PNG image format)
1172 --with-libjpeg use libjpeg (JPEG file format)
1173 --with-libtiff use libtiff (TIFF file format)
1174 --with-libxpm use libxpm (XPM file format)
1175 --with-libmspack use libmspack (CHM help files loading)
1176 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1177 --with-gnomeprint use GNOME print for printing under GNOME
1178 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1179 --with-hildon use Hildon framework for Nokia 770
a848cd7e 1180 --with-opengl use OpenGL (or Mesa)
4353a8df 1181 --with-themes=all|list use only the specified comma-separated list of wxUniversal themes
a848cd7e
SC
1182 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1183 --with-regex enable support for wxRegEx class
1184 --with-zlib use zlib for LZW compression
1185 --with-odbc use the IODBC and wxODBC classes
1186 --with-expat enable XML support using expat parser
ceec2216 1187 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1188 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1189 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1190 --with-x use the X Window System
1191 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1192 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1193 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1194 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1195 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1196
1197Some influential environment variables:
dcc1b6ad
VS
1198 CC C compiler command
1199 CFLAGS C compiler flags
1200 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1201 nonstandard directory <lib dir>
1202 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1203 headers in a nonstandard directory <include dir>
1204 CPP C preprocessor
1205 CXX C++ compiler command
1206 CXXFLAGS C++ compiler flags
1207 CXXCPP C++ preprocessor
3ecd9f92 1208 PKG_CONFIG path to pkg-config utility
b3c86150
VS
1209 DIRECTFB_CFLAGS
1210 C compiler flags for DIRECTFB, overriding pkg-config
1211 DIRECTFB_LIBS
1212 linker flags for DIRECTFB, overriding pkg-config
3ecd9f92
MW
1213 PANGOX_CFLAGS
1214 C compiler flags for PANGOX, overriding pkg-config
1215 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1216 PANGOFT2_CFLAGS
1217 C compiler flags for PANGOFT2, overriding pkg-config
1218 PANGOFT2_LIBS
1219 linker flags for PANGOFT2, overriding pkg-config
1220 PANGOXFT_CFLAGS
1221 C compiler flags for PANGOXFT, overriding pkg-config
1222 PANGOXFT_LIBS
1223 linker flags for PANGOXFT, overriding pkg-config
1224 LIBGNOMEPRINTUI_CFLAGS
1225 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1226 LIBGNOMEPRINTUI_LIBS
1227 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1228 GNOMEVFS_CFLAGS
1229 C compiler flags for GNOMEVFS, overriding pkg-config
1230 GNOMEVFS_LIBS
1231 linker flags for GNOMEVFS, overriding pkg-config
1232 HILDON_CFLAGS
1233 C compiler flags for HILDON, overriding pkg-config
1234 HILDON_LIBS linker flags for HILDON, overriding pkg-config
64b75e64
RD
1235 CAIRO_CFLAGS
1236 C compiler flags for CAIRO, overriding pkg-config
1237 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
3ecd9f92
MW
1238 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1239 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1240
1241Use these variables to override the choices made by `configure' or to help
1242it to find libraries and programs with nonstandard names/locations.
1243
77ffb593 1244Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1245_ACEOF
1246fi
1247
1248if test "$ac_init_help" = "recursive"; then
1249 # If there are subdirs, report their specific --help.
1250 ac_popdir=`pwd`
1251 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1252 test -d $ac_dir || continue
1253 ac_builddir=.
1254
1255if test "$ac_dir" != .; then
1256 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1257 # A "../" for each directory in $ac_dir_suffix.
1258 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1259else
1260 ac_dir_suffix= ac_top_builddir=
1261fi
1262
1263case $srcdir in
1264 .) # No --srcdir option. We are building in place.
1265 ac_srcdir=.
1266 if test -z "$ac_top_builddir"; then
1267 ac_top_srcdir=.
1268 else
1269 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1270 fi ;;
1271 [\\/]* | ?:[\\/]* ) # Absolute path.
1272 ac_srcdir=$srcdir$ac_dir_suffix;
1273 ac_top_srcdir=$srcdir ;;
1274 *) # Relative path.
1275 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1276 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1277esac
ac1cb8d3
VS
1278
1279# Do not use `cd foo && pwd` to compute absolute paths, because
1280# the directories may not exist.
1281case `pwd` in
1282.) ac_abs_builddir="$ac_dir";;
1283*)
1284 case "$ac_dir" in
1285 .) ac_abs_builddir=`pwd`;;
1286 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1287 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1288 esac;;
1289esac
1290case $ac_abs_builddir in
1291.) ac_abs_top_builddir=${ac_top_builddir}.;;
1292*)
1293 case ${ac_top_builddir}. in
1294 .) ac_abs_top_builddir=$ac_abs_builddir;;
1295 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1296 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1297 esac;;
1298esac
1299case $ac_abs_builddir in
1300.) ac_abs_srcdir=$ac_srcdir;;
1301*)
1302 case $ac_srcdir in
1303 .) ac_abs_srcdir=$ac_abs_builddir;;
1304 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1305 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1306 esac;;
1307esac
1308case $ac_abs_builddir in
1309.) ac_abs_top_srcdir=$ac_top_srcdir;;
1310*)
1311 case $ac_top_srcdir in
1312 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1313 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1314 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1315 esac;;
1316esac
a848cd7e
SC
1317
1318 cd $ac_dir
1319 # Check for guested configure; otherwise get Cygnus style configure.
1320 if test -f $ac_srcdir/configure.gnu; then
1321 echo
1322 $SHELL $ac_srcdir/configure.gnu --help=recursive
1323 elif test -f $ac_srcdir/configure; then
1324 echo
1325 $SHELL $ac_srcdir/configure --help=recursive
1326 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1327 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1328 echo
1329 $ac_configure --help
1330 else
1331 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1332 fi
bb9e79c0 1333 cd "$ac_popdir"
a848cd7e
SC
1334 done
1335fi
1336
1337test -n "$ac_init_help" && exit 0
1338if $ac_init_version; then
1339 cat <<\_ACEOF
25bb1412 1340wxWidgets configure 2.8.0
ac1cb8d3 1341generated by GNU Autoconf 2.59
a848cd7e 1342
ac1cb8d3 1343Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1344This configure script is free software; the Free Software Foundation
1345gives unlimited permission to copy, distribute and modify it.
1346_ACEOF
1347 exit 0
1348fi
1349exec 5>config.log
1350cat >&5 <<_ACEOF
1351This file contains any messages produced by compilers while
1352running configure, to aid debugging if configure makes a mistake.
1353
25bb1412 1354It was created by wxWidgets $as_me 2.8.0, which was
ac1cb8d3 1355generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1356
1357 $ $0 $@
1358
1359_ACEOF
1360{
1361cat <<_ASUNAME
1362## --------- ##
1363## Platform. ##
1364## --------- ##
1365
1366hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1367uname -m = `(uname -m) 2>/dev/null || echo unknown`
1368uname -r = `(uname -r) 2>/dev/null || echo unknown`
1369uname -s = `(uname -s) 2>/dev/null || echo unknown`
1370uname -v = `(uname -v) 2>/dev/null || echo unknown`
1371
1372/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1373/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1374
1375/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1376/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1377/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1378hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1379/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1380/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1381/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1382
1383_ASUNAME
1384
1385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386for as_dir in $PATH
1387do
1388 IFS=$as_save_IFS
1389 test -z "$as_dir" && as_dir=.
1390 echo "PATH: $as_dir"
1391done
1392
1393} >&5
1394
1395cat >&5 <<_ACEOF
1396
1397
1398## ----------- ##
1399## Core tests. ##
1400## ----------- ##
1401
1402_ACEOF
1403
1404
1405# Keep a trace of the command line.
1406# Strip out --no-create and --no-recursion so they do not pile up.
1407# Strip out --silent because we don't want to record it for future runs.
1408# Also quote any args containing shell meta-characters.
1409# Make two passes to allow for proper duplicate-argument suppression.
1410ac_configure_args=
1411ac_configure_args0=
1412ac_configure_args1=
1413ac_sep=
1414ac_must_keep_next=false
1415for ac_pass in 1 2
1416do
1417 for ac_arg
1418 do
1419 case $ac_arg in
1420 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1422 | -silent | --silent | --silen | --sile | --sil)
1423 continue ;;
1424 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1425 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1426 esac
1427 case $ac_pass in
1428 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1429 2)
1430 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1431 if test $ac_must_keep_next = true; then
ac1cb8d3 1432 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1433 else
ac1cb8d3
VS
1434 case $ac_arg in
1435 *=* | --config-cache | -C | -disable-* | --disable-* \
1436 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1437 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1438 | -with-* | --with-* | -without-* | --without-* | --x)
1439 case "$ac_configure_args0 " in
1440 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1441 esac
1442 ;;
1443 -* ) ac_must_keep_next=true ;;
1444 esac
a848cd7e
SC
1445 fi
1446 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1447 # Get rid of the leading space.
1448 ac_sep=" "
1449 ;;
1450 esac
1451 done
1452done
1453$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1454$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1455
1456# When interrupted or exit'd, cleanup temporary files, and complete
1457# config.log. We remove comments because anyway the quotes in there
1458# would cause problems or look ugly.
1459# WARNING: Be sure not to use single quotes in there, as some shells,
1460# such as our DU 5.0 friend, will then `close' the trap.
1461trap 'exit_status=$?
1462 # Save into config.log some information that might help in debugging.
1463 {
1464 echo
1465
1466 cat <<\_ASBOX
1467## ---------------- ##
1468## Cache variables. ##
1469## ---------------- ##
1470_ASBOX
1471 echo
1472 # The following way of writing the cache mishandles newlines in values,
1473{
1474 (set) 2>&1 |
1475 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1476 *ac_space=\ *)
1477 sed -n \
ac1cb8d3
VS
1478 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1480 ;;
1481 *)
1482 sed -n \
ac1cb8d3 1483 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1484 ;;
1485 esac;
1486}
1487 echo
1488
1489 cat <<\_ASBOX
1490## ----------------- ##
1491## Output variables. ##
1492## ----------------- ##
1493_ASBOX
1494 echo
1495 for ac_var in $ac_subst_vars
1496 do
1497 eval ac_val=$`echo $ac_var`
1498 echo "$ac_var='"'"'$ac_val'"'"'"
1499 done | sort
1500 echo
1501
1502 if test -n "$ac_subst_files"; then
1503 cat <<\_ASBOX
1504## ------------- ##
1505## Output files. ##
1506## ------------- ##
1507_ASBOX
1508 echo
1509 for ac_var in $ac_subst_files
1510 do
1511 eval ac_val=$`echo $ac_var`
ac1cb8d3 1512 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1513 done | sort
1514 echo
1515 fi
1516
1517 if test -s confdefs.h; then
1518 cat <<\_ASBOX
1519## ----------- ##
1520## confdefs.h. ##
1521## ----------- ##
1522_ASBOX
1523 echo
1524 sed "/^$/d" confdefs.h | sort
1525 echo
1526 fi
1527 test "$ac_signal" != 0 &&
1528 echo "$as_me: caught signal $ac_signal"
1529 echo "$as_me: exit $exit_status"
1530 } >&5
ac1cb8d3 1531 rm -f core *.core &&
a848cd7e
SC
1532 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1533 exit $exit_status
1534 ' 0
1535for ac_signal in 1 2 13 15; do
1536 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1537done
1538ac_signal=0
1539
1540# confdefs.h avoids OS command line length limits that DEFS can exceed.
1541rm -rf conftest* confdefs.h
1542# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1543echo >confdefs.h
1544
1545# Predefined preprocessor variables.
1546
1547cat >>confdefs.h <<_ACEOF
1548#define PACKAGE_NAME "$PACKAGE_NAME"
1549_ACEOF
1550
1551
1552cat >>confdefs.h <<_ACEOF
1553#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1554_ACEOF
1555
1556
1557cat >>confdefs.h <<_ACEOF
1558#define PACKAGE_VERSION "$PACKAGE_VERSION"
1559_ACEOF
1560
1561
1562cat >>confdefs.h <<_ACEOF
1563#define PACKAGE_STRING "$PACKAGE_STRING"
1564_ACEOF
1565
1566
1567cat >>confdefs.h <<_ACEOF
1568#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1569_ACEOF
1570
1571
1572# Let the site file select an alternate cache file if it wants to.
1573# Prefer explicitly selected file to automatically selected ones.
1574if test -z "$CONFIG_SITE"; then
1575 if test "x$prefix" != xNONE; then
1576 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1577 else
1578 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1579 fi
1580fi
1581for ac_site_file in $CONFIG_SITE; do
1582 if test -r "$ac_site_file"; then
1583 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1584echo "$as_me: loading site script $ac_site_file" >&6;}
1585 sed 's/^/| /' "$ac_site_file" >&5
1586 . "$ac_site_file"
1587 fi
1588done
1589
1590if test -r "$cache_file"; then
1591 # Some versions of bash will fail to source /dev/null (special
1592 # files actually), so we avoid doing that.
1593 if test -f "$cache_file"; then
1594 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1595echo "$as_me: loading cache $cache_file" >&6;}
1596 case $cache_file in
1597 [\\/]* | ?:[\\/]* ) . $cache_file;;
1598 *) . ./$cache_file;;
1599 esac
1600 fi
1601else
1602 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1603echo "$as_me: creating cache $cache_file" >&6;}
1604 >$cache_file
1605fi
1606
1607# Check that the precious variables saved in the cache have kept the same
1608# value.
1609ac_cache_corrupted=false
1610for ac_var in `(set) 2>&1 |
ac1cb8d3 1611 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1612 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1613 eval ac_new_set=\$ac_env_${ac_var}_set
1614 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1615 eval ac_new_val="\$ac_env_${ac_var}_value"
1616 case $ac_old_set,$ac_new_set in
1617 set,)
1618 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1619echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1620 ac_cache_corrupted=: ;;
1621 ,set)
1622 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1623echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1624 ac_cache_corrupted=: ;;
1625 ,);;
1626 *)
1627 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1628 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1629echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1630 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1631echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1632 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1633echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1634 ac_cache_corrupted=:
a848cd7e
SC
1635 fi;;
1636 esac
1637 # Pass precious variables to config.status.
1638 if test "$ac_new_set" = set; then
1639 case $ac_new_val in
1640 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1641 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1642 *) ac_arg=$ac_var=$ac_new_val ;;
1643 esac
1644 case " $ac_configure_args " in
1645 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1646 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1647 esac
1648 fi
1649done
1650if $ac_cache_corrupted; then
1651 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1652echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1653 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1654echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1655 { (exit 1); exit 1; }; }
1656fi
1657
1658ac_ext=c
1659ac_cpp='$CPP $CPPFLAGS'
1660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1662ac_compiler_gnu=$ac_cv_c_compiler_gnu
1663
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
1693ac_aux_dir=
1694for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1695 if test -f $ac_dir/install-sh; then
1696 ac_aux_dir=$ac_dir
1697 ac_install_sh="$ac_aux_dir/install-sh -c"
1698 break
1699 elif test -f $ac_dir/install.sh; then
1700 ac_aux_dir=$ac_dir
1701 ac_install_sh="$ac_aux_dir/install.sh -c"
1702 break
1703 elif test -f $ac_dir/shtool; then
1704 ac_aux_dir=$ac_dir
1705 ac_install_sh="$ac_aux_dir/shtool install -c"
1706 break
1707 fi
1708done
1709if test -z "$ac_aux_dir"; then
1710 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1711echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1712 { (exit 1); exit 1; }; }
1713fi
1714ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1715ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1716ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1717
1718# Make sure we can run config.sub.
1719$ac_config_sub sun4 >/dev/null 2>&1 ||
1720 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1721echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1722 { (exit 1); exit 1; }; }
1723
1724echo "$as_me:$LINENO: checking build system type" >&5
1725echo $ECHO_N "checking build system type... $ECHO_C" >&6
1726if test "${ac_cv_build+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728else
1729 ac_cv_build_alias=$build_alias
1730test -z "$ac_cv_build_alias" &&
1731 ac_cv_build_alias=`$ac_config_guess`
1732test -z "$ac_cv_build_alias" &&
1733 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1734echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1735 { (exit 1); exit 1; }; }
1736ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1737 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1738echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1739 { (exit 1); exit 1; }; }
1740
1741fi
1742echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1743echo "${ECHO_T}$ac_cv_build" >&6
1744build=$ac_cv_build
1745build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1746build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1747build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1748
1749
1750echo "$as_me:$LINENO: checking host system type" >&5
1751echo $ECHO_N "checking host system type... $ECHO_C" >&6
1752if test "${ac_cv_host+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754else
1755 ac_cv_host_alias=$host_alias
1756test -z "$ac_cv_host_alias" &&
1757 ac_cv_host_alias=$ac_cv_build_alias
1758ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1759 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1760echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1761 { (exit 1); exit 1; }; }
1762
1763fi
1764echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1765echo "${ECHO_T}$ac_cv_host" >&6
1766host=$ac_cv_host
1767host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1768host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1769host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1770
1771
1772echo "$as_me:$LINENO: checking target system type" >&5
1773echo $ECHO_N "checking target system type... $ECHO_C" >&6
1774if test "${ac_cv_target+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1776else
1777 ac_cv_target_alias=$target_alias
1778test "x$ac_cv_target_alias" = "x" &&
1779 ac_cv_target_alias=$ac_cv_host_alias
1780ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1781 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1782echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1783 { (exit 1); exit 1; }; }
1784
1785fi
1786echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1787echo "${ECHO_T}$ac_cv_target" >&6
1788target=$ac_cv_target
1789target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1790target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1791target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1792
1793
1794# The aliases save the names the user supplied, while $host etc.
1795# will get canonicalized.
1796test -n "$target_alias" &&
1797 test "$program_prefix$program_suffix$program_transform_name" = \
1798 NONENONEs,x,x, &&
1799 program_prefix=${target_alias}-
1800
1801
1802
ceec2216 1803wx_major_version_number=2
25bb1412
RD
1804wx_minor_version_number=8
1805wx_release_number=0
2add9e3c 1806wx_subrelease_number=0
a848cd7e 1807
ceec2216
RL
1808WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1809WX_VERSION=$WX_RELEASE.$wx_release_number
1810WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1811
ceec2216 1812WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1813
a848cd7e 1814
02b05020
VZ
1815wx_top_builddir="`pwd`"
1816
1817
a848cd7e
SC
1818
1819
1820USE_UNIX=1
1821USE_OS2=0
1822USE_WIN32=0
1823USE_DOS=0
1824USE_BEOS=0
1825USE_MAC=0
1826
1827USE_AIX=
1828USE_BSD= USE_DARWIN= USE_FREEBSD=
1829USE_GNU= USE_HPUX=
1830USE_LINUX=
1831USE_NETBSD=
1832USE_OPENBSD=
1833USE_OSF= USE_SGI=
1834USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1835USE_ULTRIX=
1836USE_UNIXWARE=
1837
1838USE_ALPHA=
1839
1840NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1841
b3c86150 1842ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
a848cd7e
SC
1843
1844DEFAULT_wxUSE_COCOA=0
1845DEFAULT_wxUSE_GTK=0
1846DEFAULT_wxUSE_MAC=0
1847DEFAULT_wxUSE_MGL=0
1848DEFAULT_wxUSE_MICROWIN=0
1849DEFAULT_wxUSE_MOTIF=0
1850DEFAULT_wxUSE_MSW=0
1851DEFAULT_wxUSE_PM=0
1852DEFAULT_wxUSE_X11=0
b3c86150 1853DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1854
1855DEFAULT_DEFAULT_wxUSE_COCOA=0
1856DEFAULT_DEFAULT_wxUSE_GTK=0
1857DEFAULT_DEFAULT_wxUSE_MAC=0
1858DEFAULT_DEFAULT_wxUSE_MGL=0
1859DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1860DEFAULT_DEFAULT_wxUSE_MOTIF=0
1861DEFAULT_DEFAULT_wxUSE_MSW=0
1862DEFAULT_DEFAULT_wxUSE_PM=0
1863DEFAULT_DEFAULT_wxUSE_X11=0
b3c86150 1864DEFAULT_DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1865
1866PROGRAM_EXT=
1867SO_SUFFIX=so
1868SAMPLES_RPATH_FLAG=
1869SAMPLES_RPATH_POSTLINK=
1870
a03b8b04
RD
1871DEFAULT_STD_FLAG=yes
1872
a848cd7e
SC
1873case "${host}" in
1874 *-hp-hpux* )
1875 USE_HPUX=1
1876 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1877 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1878 SO_SUFFIX=sl
1879 cat >>confdefs.h <<\_ACEOF
1880#define __HPUX__ 1
1881_ACEOF
1882
2eef8513 1883
c92ad099 1884 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1885 ;;
1886 *-*-linux* )
1887 USE_LINUX=1
1888 cat >>confdefs.h <<\_ACEOF
1889#define __LINUX__ 1
1890_ACEOF
1891
1892 TMP=`uname -m`
1893 if test "x$TMP" = "xalpha"; then
1894 USE_ALPHA=1
1895 cat >>confdefs.h <<\_ACEOF
1896#define __ALPHA__ 1
1897_ACEOF
1898
1899 fi
1900 DEFAULT_DEFAULT_wxUSE_GTK=1
1901 ;;
1902 *-*-gnu* | *-*-k*bsd*-gnu )
1903 USE_GNU=1
1904 TMP=`uname -m`
1905 if test "x$TMP" = "xalpha"; then
1906 USE_ALPHA=1
1907 cat >>confdefs.h <<\_ACEOF
1908#define __ALPHA__ 1
1909_ACEOF
1910
1911 fi
1912 DEFAULT_DEFAULT_wxUSE_GTK=1
1913 ;;
1914 *-*-irix5* | *-*-irix6* )
1915 USE_SGI=1
1916 USE_SVR4=1
1917 cat >>confdefs.h <<\_ACEOF
1918#define __SGI__ 1
1919_ACEOF
1920
1921 cat >>confdefs.h <<\_ACEOF
1922#define __SVR4__ 1
1923_ACEOF
1924
1925 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1926 ;;
1927 *-*-solaris2* )
1928 USE_SUN=1
1929 USE_SOLARIS=1
1930 USE_SVR4=1
1931 cat >>confdefs.h <<\_ACEOF
1932#define __SUN__ 1
1933_ACEOF
1934
1935 cat >>confdefs.h <<\_ACEOF
1936#define __SOLARIS__ 1
1937_ACEOF
1938
1939 cat >>confdefs.h <<\_ACEOF
1940#define __SVR4__ 1
1941_ACEOF
1942
1943 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1944 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1945 ;;
1946 *-*-sunos4* )
1947 USE_SUN=1
1948 USE_SUNOS=1
1949 USE_BSD=1
1950 cat >>confdefs.h <<\_ACEOF
1951#define __SUN__ 1
1952_ACEOF
1953
1954 cat >>confdefs.h <<\_ACEOF
1955#define __SUNOS__ 1
1956_ACEOF
1957
1958 cat >>confdefs.h <<\_ACEOF
1959#define __BSD__ 1
1960_ACEOF
1961
1962 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1963 ;;
1964 *-*-freebsd*)
1965 USE_BSD=1
1966 USE_FREEBSD=1
1967 cat >>confdefs.h <<\_ACEOF
1968#define __FREEBSD__ 1
1969_ACEOF
1970
1971 cat >>confdefs.h <<\_ACEOF
1972#define __BSD__ 1
1973_ACEOF
1974
1975 DEFAULT_DEFAULT_wxUSE_GTK=1
1976 ;;
c9a66001 1977 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1978 USE_BSD=1
1979 USE_OPENBSD=1
1980 cat >>confdefs.h <<\_ACEOF
1981#define __OPENBSD__ 1
1982_ACEOF
1983
1984 cat >>confdefs.h <<\_ACEOF
1985#define __BSD__ 1
1986_ACEOF
1987
1988 DEFAULT_DEFAULT_wxUSE_GTK=1
1989 ;;
1990 *-*-netbsd*)
1991 USE_BSD=1
1992 USE_NETBSD=1
1993 cat >>confdefs.h <<\_ACEOF
1994#define __NETBSD__ 1
1995_ACEOF
1996
1997 cat >>confdefs.h <<\_ACEOF
1998#define __BSD__ 1
1999_ACEOF
2000
2001 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 2002 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 2003
def7c04a 2004 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
2005 ;;
2006 *-*-osf* )
2007 USE_ALPHA=1
2008 USE_OSF=1
2009 cat >>confdefs.h <<\_ACEOF
2010#define __ALPHA__ 1
2011_ACEOF
2012
2013 cat >>confdefs.h <<\_ACEOF
2014#define __OSF__ 1
2015_ACEOF
2016
2017 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2018 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2019 ;;
2020 *-*-dgux5* )
2021 USE_ALPHA=1
2022 USE_SVR4=1
2023 cat >>confdefs.h <<\_ACEOF
2024#define __ALPHA__ 1
2025_ACEOF
2026
2027 cat >>confdefs.h <<\_ACEOF
2028#define __SVR4__ 1
2029_ACEOF
2030
2031 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2032 ;;
2033 *-*-sysv5* )
2034 USE_SYSV=1
2035 USE_SVR4=1
2036 cat >>confdefs.h <<\_ACEOF
2037#define __SYSV__ 1
2038_ACEOF
2039
2040 cat >>confdefs.h <<\_ACEOF
2041#define __SVR4__ 1
2042_ACEOF
2043
2044 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2045 ;;
2046 *-*-aix* )
2047 USE_AIX=1
2048 USE_SYSV=1
2049 USE_SVR4=1
2050 SO_SUFFIX=a
2051 cat >>confdefs.h <<\_ACEOF
2052#define __AIX__ 1
2053_ACEOF
2054
2055 cat >>confdefs.h <<\_ACEOF
2056#define __SYSV__ 1
2057_ACEOF
2058
2059 cat >>confdefs.h <<\_ACEOF
2060#define __SVR4__ 1
2061_ACEOF
2062
2063 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2064 ;;
2065
2066 *-*-*UnixWare*)
2067 USE_SYSV=1
2068 USE_SVR4=1
2069 USE_UNIXWARE=1
2070 cat >>confdefs.h <<\_ACEOF
2071#define __UNIXWARE__ 1
2072_ACEOF
2073
2074 ;;
2075
2076 *-*-cygwin* | *-*-mingw32* )
2077 SO_SUFFIX=dll
2078 PROGRAM_EXT=".exe"
a848cd7e
SC
2079 DEFAULT_DEFAULT_wxUSE_MSW=1
2080 ;;
2081
2082 *-pc-msdosdjgpp )
2083 USE_UNIX=0
2084 USE_DOS=1
2085 cat >>confdefs.h <<\_ACEOF
2086#define __DOS__ 1
2087_ACEOF
2088
2089 PROGRAM_EXT=".exe"
2090 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2091 ;;
2092
2093 *-pc-os2_emx | *-pc-os2-emx )
2094 cat >>confdefs.h <<\_ACEOF
2095#define __EMX__ 1
2096_ACEOF
2097
2098 USE_OS2=1
2099 cat >>confdefs.h <<\_ACEOF
2100#define __OS2__ 1
2101_ACEOF
2102
2103 PROGRAM_EXT=".exe"
2104 DEFAULT_DEFAULT_wxUSE_PM=1
2105 CXX=gcc
2106 LDFLAGS="$LDFLAGS -Zcrtdll"
2107 ac_executable_extensions=".exe"
2108 export ac_executable_extensions
2109 ac_save_IFS="$IFS"
2110 IFS='\\'
2111 ac_TEMP_PATH=
2112 for ac_dir in $PATH; do
2113 IFS=$ac_save_IFS
2114 if test -z "$ac_TEMP_PATH"; then
2115 ac_TEMP_PATH="$ac_dir"
2116 else
2117 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2118 fi
2119 done
2120 export PATH="$ac_TEMP_PATH"
2121 unset ac_TEMP_PATH
a03b8b04 2122 DEFAULT_STD_FLAG=no
a848cd7e
SC
2123 ;;
2124
cfda0ea8 2125 *-*-darwin* )
a848cd7e
SC
2126 USE_BSD=1
2127 USE_DARWIN=1
2128 SO_SUFFIX=dylib
2129 cat >>confdefs.h <<\_ACEOF
2130#define __BSD__ 1
2131_ACEOF
2132
2133 cat >>confdefs.h <<\_ACEOF
2134#define __DARWIN__ 1
a848cd7e
SC
2135_ACEOF
2136
2137 cat >>confdefs.h <<\_ACEOF
2138#define TARGET_CARBON 1
2139_ACEOF
2140
2141 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2142 DEFAULT_STD_FLAG=no
a848cd7e 2143 ;;
1e9e8aba
DE
2144 powerpc-apple-macos* )
2145 USE_UNIX=0
2146 ac_cv_c_bigendian=yes
2147 SO_SUFFIX=shlib
2148 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2149 DEFAULT_STD_FLAG=no
1e9e8aba 2150 ;;
a848cd7e
SC
2151
2152 *-*-beos* )
2153 USE_BEOS=1
2154 cat >>confdefs.h <<\_ACEOF
2155#define __BEOS__ 1
2156_ACEOF
2157
2158 ;;
2159
2160 *)
c9a66001
VZ
2161 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2162echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2163 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2164echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2165
2166 DEFAULT_DEFAULT_wxUSE_X11=1
2167 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2168esac
2169
2170
2171
2172
2173 wx_arg_cache_file="configarg.cache"
2174 echo "loading argument cache $wx_arg_cache_file"
2175 rm -f ${wx_arg_cache_file}.tmp
2176 touch ${wx_arg_cache_file}.tmp
2177 touch ${wx_arg_cache_file}
2178
2179
2180DEBUG_CONFIGURE=0
2181if test $DEBUG_CONFIGURE = 1; then
2182 DEFAULT_wxUSE_UNIVERSAL=no
2183 DEFAULT_wxUSE_STL=no
2184
2185 DEFAULT_wxUSE_NANOX=no
2186
2187 DEFAULT_wxUSE_THREADS=yes
2188
5acfd58d 2189 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2190 DEFAULT_wxUSE_OPTIMISE=no
2191 DEFAULT_wxUSE_PROFILE=no
2192 DEFAULT_wxUSE_NO_DEPS=no
2193 DEFAULT_wxUSE_NO_RTTI=no
2194 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2195 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2196 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2197 DEFAULT_wxUSE_PERMISSIVE=no
2198 DEFAULT_wxUSE_DEBUG_FLAG=yes
2199 DEFAULT_wxUSE_DEBUG_INFO=yes
2200 DEFAULT_wxUSE_DEBUG_GDB=yes
2201 DEFAULT_wxUSE_MEM_TRACING=no
2202 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2203 DEFAULT_wxUSE_DMALLOC=no
2204 DEFAULT_wxUSE_APPLE_IEEE=no
2205
2206 DEFAULT_wxUSE_EXCEPTIONS=no
2207 DEFAULT_wxUSE_LOG=yes
2208 DEFAULT_wxUSE_LOGWINDOW=no
2209 DEFAULT_wxUSE_LOGGUI=no
2210 DEFAULT_wxUSE_LOGDIALOG=no
2211
2212 DEFAULT_wxUSE_GUI=yes
2213 DEFAULT_wxUSE_CONTROLS=no
2214
2215 DEFAULT_wxUSE_REGEX=no
2216 DEFAULT_wxUSE_XML=no
2217 DEFAULT_wxUSE_EXPAT=no
2218 DEFAULT_wxUSE_ZLIB=no
2219 DEFAULT_wxUSE_LIBPNG=no
2220 DEFAULT_wxUSE_LIBJPEG=no
2221 DEFAULT_wxUSE_LIBTIFF=no
2222 DEFAULT_wxUSE_LIBXPM=no
2223 DEFAULT_wxUSE_LIBMSPACK=no
2224 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2225 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2226 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2227 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2228 DEFAULT_wxUSE_ODBC=no
2229 DEFAULT_wxUSE_OPENGL=no
2230
2231 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2232 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2233 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2234 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2235 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2236 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2237 DEFAULT_wxUSE_CMDLINE_PARSER=no
2238 DEFAULT_wxUSE_DATETIME=no
2239 DEFAULT_wxUSE_TIMER=no
2240 DEFAULT_wxUSE_STOPWATCH=no
2241 DEFAULT_wxUSE_FILE=no
2242 DEFAULT_wxUSE_FFILE=no
07158944 2243 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2244 DEFAULT_wxUSE_TEXTBUFFER=no
2245 DEFAULT_wxUSE_TEXTFILE=no
2246 DEFAULT_wxUSE_SOUND=no
3b57de8b 2247 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2248 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2249 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2250 DEFAULT_wxUSE_INTL=no
2251 DEFAULT_wxUSE_CONFIG=no
2252 DEFAULT_wxUSE_FONTMAP=no
2253 DEFAULT_wxUSE_STREAMS=no
2254 DEFAULT_wxUSE_SOCKETS=no
2255 DEFAULT_wxUSE_OLE=no
2256 DEFAULT_wxUSE_DATAOBJ=no
2257 DEFAULT_wxUSE_DIALUP_MANAGER=no
2258 DEFAULT_wxUSE_JOYSTICK=no
2259 DEFAULT_wxUSE_DYNLIB_CLASS=no
2260 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2261 DEFAULT_wxUSE_LONGLONG=no
2262 DEFAULT_wxUSE_GEOMETRY=no
2263
2264 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2265 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2266 DEFAULT_wxUSE_POSTSCRIPT=no
2267
2268 DEFAULT_wxUSE_CLIPBOARD=no
2269 DEFAULT_wxUSE_TOOLTIPS=no
2270 DEFAULT_wxUSE_DRAG_AND_DROP=no
2271 DEFAULT_wxUSE_DRAGIMAGE=no
2272 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2273 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2274
8a7b1113 2275 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2276 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2277 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2278 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2279
2280 DEFAULT_wxUSE_RESOURCES=no
2281 DEFAULT_wxUSE_CONSTRAINTS=no
2282 DEFAULT_wxUSE_IPC=no
2283 DEFAULT_wxUSE_HELP=no
2284 DEFAULT_wxUSE_MS_HTML_HELP=no
2285 DEFAULT_wxUSE_WXHTML_HELP=no
2286 DEFAULT_wxUSE_TREELAYOUT=no
2287 DEFAULT_wxUSE_METAFILE=no
2288 DEFAULT_wxUSE_MIMETYPE=no
2289 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2290 DEFAULT_wxUSE_PROTOCOL=no
2291 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2292 DEFAULT_wxUSE_PROTOCOL_FTP=no
2293 DEFAULT_wxUSE_PROTOCOL_FILE=no
2294 DEFAULT_wxUSE_URL=no
ca5c6ac3 2295 DEFAULT_wxUSE_VARIANT=no
a848cd7e 2296
319c5ed4 2297 DEFAULT_wxUSE_ABOUTDLG=no
a848cd7e
SC
2298 DEFAULT_wxUSE_COMMONDLGS=no
2299 DEFAULT_wxUSE_CHOICEDLG=no
2300 DEFAULT_wxUSE_COLOURDLG=no
2301 DEFAULT_wxUSE_DIRDLG=no
2302 DEFAULT_wxUSE_FILEDLG=no
2303 DEFAULT_wxUSE_FINDREPLDLG=no
2304 DEFAULT_wxUSE_FONTDLG=no
2305 DEFAULT_wxUSE_MSGDLG=no
2306 DEFAULT_wxUSE_NUMBERDLG=no
2307 DEFAULT_wxUSE_TEXTDLG=no
2308 DEFAULT_wxUSE_SPLASH=no
2309 DEFAULT_wxUSE_STARTUP_TIPS=no
2310 DEFAULT_wxUSE_PROGRESSDLG=no
2311 DEFAULT_wxUSE_WIZARDDLG=no
2312
2313 DEFAULT_wxUSE_MENUS=no
2314 DEFAULT_wxUSE_MINIFRAME=no
2315 DEFAULT_wxUSE_HTML=no
91dea314 2316 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2317 DEFAULT_wxUSE_XRC=no
3f60522a 2318 DEFAULT_wxUSE_AUI=no
646b6ec1 2319 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2320 DEFAULT_wxUSE_FILESYSTEM=no
2321 DEFAULT_wxUSE_FS_INET=no
2322 DEFAULT_wxUSE_FS_ZIP=no
26e422a9 2323 DEFAULT_wxUSE_FS_ARCHIVE=no
a848cd7e 2324 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2325 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2326 DEFAULT_wxUSE_ZIPSTREAM=no
26e422a9 2327 DEFAULT_wxUSE_TARSTREAM=no
a848cd7e
SC
2328 DEFAULT_wxUSE_VALIDATORS=no
2329
2330 DEFAULT_wxUSE_ACCEL=no
3ea50042 2331 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
2332 DEFAULT_wxUSE_BUTTON=no
2333 DEFAULT_wxUSE_BMPBUTTON=no
95a46303 2334 DEFAULT_wxUSE_BITMAPCOMBOBOX=no
a848cd7e
SC
2335 DEFAULT_wxUSE_CALCTRL=no
2336 DEFAULT_wxUSE_CARET=no
2337 DEFAULT_wxUSE_CHECKBOX=no
2338 DEFAULT_wxUSE_CHECKLST=no
2339 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2340 DEFAULT_wxUSE_CHOICEBOOK=no
bd915ace 2341 DEFAULT_wxUSE_COLLPANE=no
e9263684 2342 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2343 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2344 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2345 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2346 DEFAULT_wxUSE_DISPLAY=no
88bbc332 2347 DEFAULT_wxUSE_DETECT_SM=no
e9263684
VZ
2348 DEFAULT_wxUSE_DIRPICKERCTRL=no
2349 DEFAULT_wxUSE_FILEPICKERCTRL=no
2350 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e 2351 DEFAULT_wxUSE_GAUGE=no
f43426c1 2352 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
a848cd7e 2353 DEFAULT_wxUSE_GRID=no
6954625c 2354 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2355 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2356 DEFAULT_wxUSE_IMAGLIST=no
2357 DEFAULT_wxUSE_LISTBOOK=no
2358 DEFAULT_wxUSE_LISTBOX=no
2359 DEFAULT_wxUSE_LISTCTRL=no
2360 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2361 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2362 DEFAULT_wxUSE_RADIOBOX=no
2363 DEFAULT_wxUSE_RADIOBTN=no
2364 DEFAULT_wxUSE_SASH=no
2365 DEFAULT_wxUSE_SCROLLBAR=no
2366 DEFAULT_wxUSE_SLIDER=no
2367 DEFAULT_wxUSE_SPINBTN=no
2368 DEFAULT_wxUSE_SPINCTRL=no
2369 DEFAULT_wxUSE_SPLITTER=no
2370 DEFAULT_wxUSE_STATBMP=no
2371 DEFAULT_wxUSE_STATBOX=no
2372 DEFAULT_wxUSE_STATLINE=no
2373 DEFAULT_wxUSE_STATTEXT=no
2374 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2375 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2376 DEFAULT_wxUSE_TEXTCTRL=no
2377 DEFAULT_wxUSE_TOGGLEBTN=no
2378 DEFAULT_wxUSE_TOOLBAR=no
2379 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
0093c2fc 2380 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2381 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2382 DEFAULT_wxUSE_TREECTRL=no
2383 DEFAULT_wxUSE_POPUPWIN=no
2384 DEFAULT_wxUSE_TIPWINDOW=no
2385
2386 DEFAULT_wxUSE_UNICODE=no
2387 DEFAULT_wxUSE_UNICODE_MSLU=no
2388 DEFAULT_wxUSE_WCSRTOMBS=no
2389
2390 DEFAULT_wxUSE_PALETTE=no
2391 DEFAULT_wxUSE_IMAGE=no
2392 DEFAULT_wxUSE_GIF=no
2393 DEFAULT_wxUSE_PCX=no
bb9e79c0 2394 DEFAULT_wxUSE_TGA=no
a848cd7e
SC
2395 DEFAULT_wxUSE_PNM=no
2396 DEFAULT_wxUSE_IFF=no
2397 DEFAULT_wxUSE_XPM=no
2398 DEFAULT_wxUSE_ICO_CUR=no
2399 DEFAULT_wxUSE_ACCESSIBILITY=no
2400
2401 DEFAULT_wxUSE_MONOLITHIC=no
2402 DEFAULT_wxUSE_PLUGINS=no
2403 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2404else
2405 DEFAULT_wxUSE_UNIVERSAL=no
2406 DEFAULT_wxUSE_STL=no
2407
2408 DEFAULT_wxUSE_NANOX=no
2409
2410 DEFAULT_wxUSE_THREADS=yes
2411
5acfd58d 2412 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2413 DEFAULT_wxUSE_OPTIMISE=yes
2414 DEFAULT_wxUSE_PROFILE=no
2415 DEFAULT_wxUSE_NO_DEPS=no
2416 DEFAULT_wxUSE_NO_RTTI=no
2417 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2418 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2419 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2420 DEFAULT_wxUSE_PERMISSIVE=no
2421 DEFAULT_wxUSE_DEBUG_FLAG=no
2422 DEFAULT_wxUSE_DEBUG_INFO=no
2423 DEFAULT_wxUSE_DEBUG_GDB=no
2424 DEFAULT_wxUSE_MEM_TRACING=no
2425 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2426 DEFAULT_wxUSE_DMALLOC=no
2427 DEFAULT_wxUSE_APPLE_IEEE=yes
2428
2429 DEFAULT_wxUSE_EXCEPTIONS=yes
2430 DEFAULT_wxUSE_LOG=yes
2431 DEFAULT_wxUSE_LOGWINDOW=yes
2432 DEFAULT_wxUSE_LOGGUI=yes
2433 DEFAULT_wxUSE_LOGDIALOG=yes
2434
2435 DEFAULT_wxUSE_GUI=yes
2436
2437 DEFAULT_wxUSE_REGEX=yes
2438 DEFAULT_wxUSE_XML=yes
2439 DEFAULT_wxUSE_EXPAT=yes
2440 DEFAULT_wxUSE_ZLIB=yes
2441 DEFAULT_wxUSE_LIBPNG=yes
2442 DEFAULT_wxUSE_LIBJPEG=yes
2443 DEFAULT_wxUSE_LIBTIFF=yes
2444 DEFAULT_wxUSE_LIBXPM=yes
2445 DEFAULT_wxUSE_LIBMSPACK=yes
2446 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2447 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2448 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2449 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2450 DEFAULT_wxUSE_ODBC=no
52cb607e 2451 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2452
2453 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2454 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2455 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2456 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2457 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2458 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2459 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2460 DEFAULT_wxUSE_DATETIME=yes
2461 DEFAULT_wxUSE_TIMER=yes
2462 DEFAULT_wxUSE_STOPWATCH=yes
2463 DEFAULT_wxUSE_FILE=yes
2464 DEFAULT_wxUSE_FFILE=yes
07158944 2465 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2466 DEFAULT_wxUSE_TEXTBUFFER=yes
2467 DEFAULT_wxUSE_TEXTFILE=yes
2468 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2469 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2470 DEFAULT_wxUSE_GSTREAMER8=no
15291213 2471 DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
a848cd7e
SC
2472 DEFAULT_wxUSE_INTL=yes
2473 DEFAULT_wxUSE_CONFIG=yes
2474 DEFAULT_wxUSE_FONTMAP=yes
2475 DEFAULT_wxUSE_STREAMS=yes
2476 DEFAULT_wxUSE_SOCKETS=yes
2477 DEFAULT_wxUSE_OLE=yes
2478 DEFAULT_wxUSE_DATAOBJ=yes
2479 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2480 DEFAULT_wxUSE_JOYSTICK=yes
2481 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2482 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2483 DEFAULT_wxUSE_LONGLONG=yes
2484 DEFAULT_wxUSE_GEOMETRY=yes
2485
2486 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2487 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2488 DEFAULT_wxUSE_POSTSCRIPT=yes
2489
2490 DEFAULT_wxUSE_CLIPBOARD=yes
2491 DEFAULT_wxUSE_TOOLTIPS=yes
2492 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2493 DEFAULT_wxUSE_DRAGIMAGE=yes
2494 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2495 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2496
8a7b1113 2497 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2498 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2499 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2500 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2501
2502 DEFAULT_wxUSE_RESOURCES=no
2503 DEFAULT_wxUSE_CONSTRAINTS=yes
2504 DEFAULT_wxUSE_IPC=yes
2505 DEFAULT_wxUSE_HELP=yes
2506 DEFAULT_wxUSE_MS_HTML_HELP=yes
2507 DEFAULT_wxUSE_WXHTML_HELP=yes
2508 DEFAULT_wxUSE_TREELAYOUT=yes
2509 DEFAULT_wxUSE_METAFILE=yes
2510 DEFAULT_wxUSE_MIMETYPE=yes
2511 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2512 DEFAULT_wxUSE_PROTOCOL=yes
2513 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2514 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2515 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2516 DEFAULT_wxUSE_URL=yes
ca5c6ac3 2517 DEFAULT_wxUSE_VARIANT=yes
a848cd7e 2518
319c5ed4 2519 DEFAULT_wxUSE_ABOUTDLG=yes
a848cd7e
SC
2520 DEFAULT_wxUSE_COMMONDLGS=yes
2521 DEFAULT_wxUSE_CHOICEDLG=yes
2522 DEFAULT_wxUSE_COLOURDLG=yes
2523 DEFAULT_wxUSE_DIRDLG=yes
2524 DEFAULT_wxUSE_FILEDLG=yes
2525 DEFAULT_wxUSE_FINDREPLDLG=yes
2526 DEFAULT_wxUSE_FONTDLG=yes
2527 DEFAULT_wxUSE_MSGDLG=yes
2528 DEFAULT_wxUSE_NUMBERDLG=yes
2529 DEFAULT_wxUSE_TEXTDLG=yes
2530 DEFAULT_wxUSE_SPLASH=yes
2531 DEFAULT_wxUSE_STARTUP_TIPS=yes
2532 DEFAULT_wxUSE_PROGRESSDLG=yes
2533 DEFAULT_wxUSE_WIZARDDLG=yes
2534
2535 DEFAULT_wxUSE_MENUS=yes
2536 DEFAULT_wxUSE_MINIFRAME=yes
2537 DEFAULT_wxUSE_HTML=yes
91dea314 2538 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2539 DEFAULT_wxUSE_XRC=yes
3f60522a 2540 DEFAULT_wxUSE_AUI=yes
646b6ec1 2541 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2542 DEFAULT_wxUSE_FILESYSTEM=yes
2543 DEFAULT_wxUSE_FS_INET=yes
2544 DEFAULT_wxUSE_FS_ZIP=yes
26e422a9 2545 DEFAULT_wxUSE_FS_ARCHIVE=yes
a848cd7e 2546 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2547 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2548 DEFAULT_wxUSE_ZIPSTREAM=yes
26e422a9 2549 DEFAULT_wxUSE_TARSTREAM=yes
a848cd7e
SC
2550 DEFAULT_wxUSE_VALIDATORS=yes
2551
2552 DEFAULT_wxUSE_ACCEL=yes
3ea50042 2553 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
2554 DEFAULT_wxUSE_BUTTON=yes
2555 DEFAULT_wxUSE_BMPBUTTON=yes
95a46303 2556 DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
a848cd7e
SC
2557 DEFAULT_wxUSE_CALCTRL=yes
2558 DEFAULT_wxUSE_CARET=yes
2559 DEFAULT_wxUSE_CHECKBOX=yes
2560 DEFAULT_wxUSE_CHECKLST=yes
2561 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2562 DEFAULT_wxUSE_CHOICEBOOK=yes
bd915ace 2563 DEFAULT_wxUSE_COLLPANE=yes
e9263684 2564 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2565 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2566 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2567 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2568 DEFAULT_wxUSE_DISPLAY=yes
88bbc332 2569 DEFAULT_wxUSE_DETECT_SM=yes
e9263684
VZ
2570 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2571 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2572 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2573 DEFAULT_wxUSE_GAUGE=yes
2574 DEFAULT_wxUSE_GRID=yes
f43426c1 2575 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
6954625c 2576 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2577 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2578 DEFAULT_wxUSE_IMAGLIST=yes
2579 DEFAULT_wxUSE_LISTBOOK=yes
2580 DEFAULT_wxUSE_LISTBOX=yes
2581 DEFAULT_wxUSE_LISTCTRL=yes
2582 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2583 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2584 DEFAULT_wxUSE_RADIOBOX=yes
2585 DEFAULT_wxUSE_RADIOBTN=yes
2586 DEFAULT_wxUSE_SASH=yes
2587 DEFAULT_wxUSE_SCROLLBAR=yes
2588 DEFAULT_wxUSE_SLIDER=yes
2589 DEFAULT_wxUSE_SPINBTN=yes
2590 DEFAULT_wxUSE_SPINCTRL=yes
2591 DEFAULT_wxUSE_SPLITTER=yes
2592 DEFAULT_wxUSE_STATBMP=yes
2593 DEFAULT_wxUSE_STATBOX=yes
2594 DEFAULT_wxUSE_STATLINE=yes
2595 DEFAULT_wxUSE_STATTEXT=yes
2596 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2597 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2598 DEFAULT_wxUSE_TEXTCTRL=yes
2599 DEFAULT_wxUSE_TOGGLEBTN=yes
2600 DEFAULT_wxUSE_TOOLBAR=yes
2601 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
0093c2fc 2602 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2603 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2604 DEFAULT_wxUSE_TREECTRL=yes
2605 DEFAULT_wxUSE_POPUPWIN=yes
2606 DEFAULT_wxUSE_TIPWINDOW=yes
2607
78de529b 2608 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2609 DEFAULT_wxUSE_UNICODE_MSLU=yes
2610 DEFAULT_wxUSE_WCSRTOMBS=no
2611
2612 DEFAULT_wxUSE_PALETTE=yes
2613 DEFAULT_wxUSE_IMAGE=yes
2614 DEFAULT_wxUSE_GIF=yes
2615 DEFAULT_wxUSE_PCX=yes
bb9e79c0
VZ
2616 DEFAULT_wxUSE_TGA=yes
2617 DEFAULT_wxUSE_IFF=no DEFAULT_wxUSE_PNM=yes
a848cd7e
SC
2618 DEFAULT_wxUSE_XPM=yes
2619 DEFAULT_wxUSE_ICO_CUR=yes
2620 DEFAULT_wxUSE_ACCESSIBILITY=no
2621
2622 DEFAULT_wxUSE_MONOLITHIC=no
2623 DEFAULT_wxUSE_PLUGINS=no
2624 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2625
f34ca037 2626 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2627fi
2628
2629
2630
f34ca037 2631
a848cd7e
SC
2632for toolkit in `echo $ALL_TOOLKITS`; do
2633 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2634 if test "x$LINE" != "x" ; then
2635 has_toolkit_in_cache=1
2636 eval "DEFAULT_$LINE"
2637 eval "CACHE_$toolkit=1"
f34ca037
MW
2638
2639 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2640 if test "x$LINE" != "x" ; then
2641 eval "DEFAULT_$LINE"
2642 fi
a848cd7e
SC
2643 fi
2644done
2645
2646
2647
077c7880 2648 enablestring=
a848cd7e
SC
2649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2650echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2651 no_cache=0
2652 # Check whether --enable-gui or --disable-gui was given.
2653if test "${enable_gui+set}" = set; then
2654 enableval="$enable_gui"
2655
2656 if test "$enableval" = yes; then
2657 ac_cv_use_gui='wxUSE_GUI=yes'
2658 else
2659 ac_cv_use_gui='wxUSE_GUI=no'
2660 fi
2661
2662else
2663
2664 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2665 if test "x$LINE" != x ; then
2666 eval "DEFAULT_$LINE"
2667 else
2668 no_cache=1
2669 fi
2670
2671 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2672
2673fi;
2674
2675 eval "$ac_cv_use_gui"
2676 if test "$no_cache" != 1; then
2677 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2678 fi
2679
2680 if test "$wxUSE_GUI" = yes; then
2681 echo "$as_me:$LINENO: result: yes" >&5
2682echo "${ECHO_T}yes" >&6
2683 else
2684 echo "$as_me:$LINENO: result: no" >&5
2685echo "${ECHO_T}no" >&6
2686 fi
2687
2688
077c7880 2689 enablestring=
a848cd7e
SC
2690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2691echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2692 no_cache=0
2693 # Check whether --enable-monolithic or --disable-monolithic was given.
2694if test "${enable_monolithic+set}" = set; then
2695 enableval="$enable_monolithic"
2696
2697 if test "$enableval" = yes; then
2698 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2699 else
2700 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2701 fi
2702
2703else
2704
2705 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2706 if test "x$LINE" != x ; then
2707 eval "DEFAULT_$LINE"
2708 else
2709 no_cache=1
2710 fi
2711
2712 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2713
2714fi;
2715
2716 eval "$ac_cv_use_monolithic"
2717 if test "$no_cache" != 1; then
2718 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2719 fi
2720
2721 if test "$wxUSE_MONOLITHIC" = yes; then
2722 echo "$as_me:$LINENO: result: yes" >&5
2723echo "${ECHO_T}yes" >&6
2724 else
2725 echo "$as_me:$LINENO: result: no" >&5
2726echo "${ECHO_T}no" >&6
2727 fi
2728
2729
077c7880 2730 enablestring=
a848cd7e
SC
2731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2732echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2733 no_cache=0
2734 # Check whether --enable-plugins or --disable-plugins was given.
2735if test "${enable_plugins+set}" = set; then
2736 enableval="$enable_plugins"
2737
2738 if test "$enableval" = yes; then
2739 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2740 else
2741 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2742 fi
2743
2744else
2745
2746 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2747 if test "x$LINE" != x ; then
2748 eval "DEFAULT_$LINE"
2749 else
2750 no_cache=1
2751 fi
2752
2753 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2754
2755fi;
2756
2757 eval "$ac_cv_use_plugins"
2758 if test "$no_cache" != 1; then
2759 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2760 fi
2761
2762 if test "$wxUSE_PLUGINS" = yes; then
2763 echo "$as_me:$LINENO: result: yes" >&5
2764echo "${ECHO_T}yes" >&6
2765 else
2766 echo "$as_me:$LINENO: result: no" >&5
2767echo "${ECHO_T}no" >&6
2768 fi
2769
2770
077c7880 2771 withstring=without
1c14217d
VZ
2772 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2773echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2774 no_cache=0
2775
2776# Check whether --with-subdirs or --without-subdirs was given.
2777if test "${with_subdirs+set}" = set; then
2778 withval="$with_subdirs"
2779
2780 if test "$withval" = yes; then
2781 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2782 else
2783 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2784 fi
2785
2786else
2787
2788 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2789 if test "x$LINE" != x ; then
2790 eval "DEFAULT_$LINE"
2791 else
2792 no_cache=1
2793 fi
2794
2795 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2796
2797fi;
2798
2799 eval "$ac_cv_use_subdirs"
2800 if test "$no_cache" != 1; then
2801 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2802 fi
2803
2804 if test "$wxWITH_SUBDIRS" = yes; then
2805 echo "$as_me:$LINENO: result: yes" >&5
2806echo "${ECHO_T}yes" >&6
2807 else
2808 echo "$as_me:$LINENO: result: no" >&5
2809echo "${ECHO_T}no" >&6
2810 fi
2811
2812
a848cd7e
SC
2813if test "$wxUSE_GUI" = "yes"; then
2814
2815
077c7880 2816 enablestring=
a848cd7e
SC
2817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2818echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2819 no_cache=0
2820 # Check whether --enable-universal or --disable-universal was given.
2821if test "${enable_universal+set}" = set; then
2822 enableval="$enable_universal"
2823
2824 if test "$enableval" = yes; then
2825 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2826 else
2827 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2828 fi
2829
2830else
2831
2832 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2833 if test "x$LINE" != x ; then
2834 eval "DEFAULT_$LINE"
2835 else
2836 no_cache=1
2837 fi
2838
2839 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2840
2841fi;
2842
2843 eval "$ac_cv_use_universal"
2844 if test "$no_cache" != 1; then
2845 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2846 fi
2847
2848 if test "$wxUSE_UNIVERSAL" = yes; then
2849 echo "$as_me:$LINENO: result: yes" >&5
2850echo "${ECHO_T}yes" >&6
2851 else
2852 echo "$as_me:$LINENO: result: no" >&5
2853echo "${ECHO_T}no" >&6
2854 fi
2855
2856
2857# Check whether --with-gtk or --without-gtk was given.
2858if test "${with_gtk+set}" = set; then
2859 withval="$with_gtk"
2860 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2861fi;
2862
2863# Check whether --with-motif or --without-motif was given.
2864if test "${with_motif+set}" = set; then
2865 withval="$with_motif"
2866 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2867fi;
2868
2869# Check whether --with-mac or --without-mac was given.
2870if test "${with_mac+set}" = set; then
2871 withval="$with_mac"
c228d3a4 2872 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2873fi;
2874
2875# Check whether --with-cocoa or --without-cocoa was given.
2876if test "${with_cocoa+set}" = set; then
2877 withval="$with_cocoa"
c228d3a4 2878 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2879fi;
2880
2881# Check whether --with-wine or --without-wine was given.
2882if test "${with_wine+set}" = set; then
2883 withval="$with_wine"
2884 wxUSE_WINE="$withval" CACHE_WINE=1
2885fi;
2886
2887# Check whether --with-msw or --without-msw was given.
2888if test "${with_msw+set}" = set; then
2889 withval="$with_msw"
2890 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2891fi;
2892
2893# Check whether --with-pm or --without-pm was given.
2894if test "${with_pm+set}" = set; then
2895 withval="$with_pm"
2896 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2897fi;
2898
2899# Check whether --with-mgl or --without-mgl was given.
2900if test "${with_mgl+set}" = set; then
2901 withval="$with_mgl"
2902 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2903fi;
2904
b3c86150
VS
2905# Check whether --with-directfb or --without-directfb was given.
2906if test "${with_directfb+set}" = set; then
2907 withval="$with_directfb"
2908 wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2909fi;
2910
a848cd7e
SC
2911# Check whether --with-microwin or --without-microwin was given.
2912if test "${with_microwin+set}" = set; then
2913 withval="$with_microwin"
2914 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2915fi;
2916
2917# Check whether --with-x11 or --without-x11 was given.
2918if test "${with_x11+set}" = set; then
2919 withval="$with_x11"
2920 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2921fi;
2922
077c7880 2923 enablestring=
a848cd7e
SC
2924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2925echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2926 no_cache=0
2927 # Check whether --enable-nanox or --disable-nanox was given.
2928if test "${enable_nanox+set}" = set; then
2929 enableval="$enable_nanox"
2930
2931 if test "$enableval" = yes; then
2932 ac_cv_use_nanox='wxUSE_NANOX=yes'
2933 else
2934 ac_cv_use_nanox='wxUSE_NANOX=no'
2935 fi
2936
2937else
2938
2939 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2940 if test "x$LINE" != x ; then
2941 eval "DEFAULT_$LINE"
2942 else
2943 no_cache=1
2944 fi
2945
2946 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2947
2948fi;
2949
2950 eval "$ac_cv_use_nanox"
2951 if test "$no_cache" != 1; then
2952 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2953 fi
2954
2955 if test "$wxUSE_NANOX" = yes; then
2956 echo "$as_me:$LINENO: result: yes" >&5
2957echo "${ECHO_T}yes" >&6
2958 else
2959 echo "$as_me:$LINENO: result: no" >&5
2960echo "${ECHO_T}no" >&6
2961 fi
2962
2963
f34ca037
MW
2964# Check whether --enable-gtk2 or --disable-gtk2 was given.
2965if test "${enable_gtk2+set}" = set; then
2966 enableval="$enable_gtk2"
2967 wxUSE_GTK2="$enableval"
2968fi;
a848cd7e 2969
077c7880 2970 enablestring=
a848cd7e
SC
2971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2972echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2973 no_cache=0
2974 # Check whether --enable-gpe or --disable-gpe was given.
2975if test "${enable_gpe+set}" = set; then
2976 enableval="$enable_gpe"
2977
2978 if test "$enableval" = yes; then
2979 ac_cv_use_gpe='wxUSE_GPE=yes'
2980 else
2981 ac_cv_use_gpe='wxUSE_GPE=no'
2982 fi
2983
2984else
2985
2986 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2994
2995fi;
2996
2997 eval "$ac_cv_use_gpe"
2998 if test "$no_cache" != 1; then
2999 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
3000 fi
3001
3002 if test "$wxUSE_GPE" = yes; then
3003 echo "$as_me:$LINENO: result: yes" >&5
3004echo "${ECHO_T}yes" >&6
3005 else
3006 echo "$as_me:$LINENO: result: no" >&5
3007echo "${ECHO_T}no" >&6
3008 fi
3009
3010
3011
3012 echo "$as_me:$LINENO: checking for --with-libpng" >&5
3013echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
3014 no_cache=0
3015
3016# Check whether --with-libpng or --without-libpng was given.
3017if test "${with_libpng+set}" = set; then
3018 withval="$with_libpng"
3019
3020 if test "$withval" = yes; then
3021 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
3022 elif test "$withval" = no; then
3023 ac_cv_use_libpng='wxUSE_LIBPNG=no'
3024 elif test "$withval" = sys; then
3025 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
3026 elif test "$withval" = builtin; then
3027 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
3028 else
3029 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3030echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3031 { (exit 1); exit 1; }; }
3032 fi
3033
3034else
3035
3036 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3037 if test "x$LINE" != x ; then
3038 eval "DEFAULT_$LINE"
3039 else
3040 no_cache=1
3041 fi
3042
3043 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3044
3045fi;
3046
3047 eval "$ac_cv_use_libpng"
3048 if test "$no_cache" != 1; then
3049 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3050 fi
3051
3052 if test "$wxUSE_LIBPNG" = yes; then
3053 echo "$as_me:$LINENO: result: yes" >&5
3054echo "${ECHO_T}yes" >&6
3055 elif test "$wxUSE_LIBPNG" = no; then
3056 echo "$as_me:$LINENO: result: no" >&5
3057echo "${ECHO_T}no" >&6
3058 elif test "$wxUSE_LIBPNG" = sys; then
3059 echo "$as_me:$LINENO: result: system version" >&5
3060echo "${ECHO_T}system version" >&6
3061 elif test "$wxUSE_LIBPNG" = builtin; then
3062 echo "$as_me:$LINENO: result: builtin version" >&5
3063echo "${ECHO_T}builtin version" >&6
3064 else
3065 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3066echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3067 { (exit 1); exit 1; }; }
3068 fi
3069
3070
3071 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3072echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3073 no_cache=0
3074
3075# Check whether --with-libjpeg or --without-libjpeg was given.
3076if test "${with_libjpeg+set}" = set; then
3077 withval="$with_libjpeg"
3078
3079 if test "$withval" = yes; then
3080 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3081 elif test "$withval" = no; then
3082 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3083 elif test "$withval" = sys; then
3084 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3085 elif test "$withval" = builtin; then
3086 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3087 else
3088 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3089echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3090 { (exit 1); exit 1; }; }
3091 fi
3092
3093else
3094
3095 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3103
3104fi;
3105
3106 eval "$ac_cv_use_libjpeg"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_LIBJPEG" = yes; then
3112 echo "$as_me:$LINENO: result: yes" >&5
3113echo "${ECHO_T}yes" >&6
3114 elif test "$wxUSE_LIBJPEG" = no; then
3115 echo "$as_me:$LINENO: result: no" >&5
3116echo "${ECHO_T}no" >&6
3117 elif test "$wxUSE_LIBJPEG" = sys; then
3118 echo "$as_me:$LINENO: result: system version" >&5
3119echo "${ECHO_T}system version" >&6
3120 elif test "$wxUSE_LIBJPEG" = builtin; then
3121 echo "$as_me:$LINENO: result: builtin version" >&5
3122echo "${ECHO_T}builtin version" >&6
3123 else
3124 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3125echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3126 { (exit 1); exit 1; }; }
3127 fi
3128
3129
3130 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3131echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3132 no_cache=0
3133
3134# Check whether --with-libtiff or --without-libtiff was given.
3135if test "${with_libtiff+set}" = set; then
3136 withval="$with_libtiff"
3137
3138 if test "$withval" = yes; then
3139 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3140 elif test "$withval" = no; then
3141 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3142 elif test "$withval" = sys; then
3143 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3144 elif test "$withval" = builtin; then
3145 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3146 else
3147 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3148echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3149 { (exit 1); exit 1; }; }
3150 fi
3151
3152else
3153
3154 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3155 if test "x$LINE" != x ; then
3156 eval "DEFAULT_$LINE"
3157 else
3158 no_cache=1
3159 fi
3160
3161 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3162
3163fi;
3164
3165 eval "$ac_cv_use_libtiff"
3166 if test "$no_cache" != 1; then
3167 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3168 fi
3169
3170 if test "$wxUSE_LIBTIFF" = yes; then
3171 echo "$as_me:$LINENO: result: yes" >&5
3172echo "${ECHO_T}yes" >&6
3173 elif test "$wxUSE_LIBTIFF" = no; then
3174 echo "$as_me:$LINENO: result: no" >&5
3175echo "${ECHO_T}no" >&6
3176 elif test "$wxUSE_LIBTIFF" = sys; then
3177 echo "$as_me:$LINENO: result: system version" >&5
3178echo "${ECHO_T}system version" >&6
3179 elif test "$wxUSE_LIBTIFF" = builtin; then
3180 echo "$as_me:$LINENO: result: builtin version" >&5
3181echo "${ECHO_T}builtin version" >&6
3182 else
3183 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3184echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3185 { (exit 1); exit 1; }; }
3186 fi
3187
3188
3189 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3190echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3191 no_cache=0
3192
3193# Check whether --with-libxpm or --without-libxpm was given.
3194if test "${with_libxpm+set}" = set; then
3195 withval="$with_libxpm"
3196
3197 if test "$withval" = yes; then
3198 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3199 elif test "$withval" = no; then
3200 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3201 elif test "$withval" = sys; then
3202 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3203 elif test "$withval" = builtin; then
3204 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3205 else
3206 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3207echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3208 { (exit 1); exit 1; }; }
3209 fi
3210
3211else
3212
3213 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3214 if test "x$LINE" != x ; then
3215 eval "DEFAULT_$LINE"
3216 else
3217 no_cache=1
3218 fi
3219
3220 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3221
3222fi;
3223
3224 eval "$ac_cv_use_libxpm"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_LIBXPM" = yes; then
3230 echo "$as_me:$LINENO: result: yes" >&5
3231echo "${ECHO_T}yes" >&6
3232 elif test "$wxUSE_LIBXPM" = no; then
3233 echo "$as_me:$LINENO: result: no" >&5
3234echo "${ECHO_T}no" >&6
3235 elif test "$wxUSE_LIBXPM" = sys; then
3236 echo "$as_me:$LINENO: result: system version" >&5
3237echo "${ECHO_T}system version" >&6
3238 elif test "$wxUSE_LIBXPM" = builtin; then
3239 echo "$as_me:$LINENO: result: builtin version" >&5
3240echo "${ECHO_T}builtin version" >&6
3241 else
3242 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3243echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3244 { (exit 1); exit 1; }; }
3245 fi
3246
3247
077c7880 3248 withstring=
1c14217d
VZ
3249 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3250echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3251 no_cache=0
3252
3253# Check whether --with-libmspack or --without-libmspack was given.
3254if test "${with_libmspack+set}" = set; then
3255 withval="$with_libmspack"
3256
3257 if test "$withval" = yes; then
3258 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3259 else
3260 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3261 fi
3262
3263else
3264
3265 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3266 if test "x$LINE" != x ; then
3267 eval "DEFAULT_$LINE"
3268 else
3269 no_cache=1
3270 fi
3271
3272 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3273
3274fi;
3275
3276 eval "$ac_cv_use_libmspack"
3277 if test "$no_cache" != 1; then
3278 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3279 fi
3280
3281 if test "$wxUSE_LIBMSPACK" = yes; then
3282 echo "$as_me:$LINENO: result: yes" >&5
3283echo "${ECHO_T}yes" >&6
3284 else
3285 echo "$as_me:$LINENO: result: no" >&5
3286echo "${ECHO_T}no" >&6
3287 fi
3288
3289
077c7880 3290 withstring=
1c14217d
VZ
3291 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3292echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3293 no_cache=0
3294
3295# Check whether --with-sdl or --without-sdl was given.
3296if test "${with_sdl+set}" = set; then
3297 withval="$with_sdl"
3298
3299 if test "$withval" = yes; then
3300 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3301 else
3302 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3303 fi
3304
3305else
3306
3307 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3308 if test "x$LINE" != x ; then
3309 eval "DEFAULT_$LINE"
3310 else
3311 no_cache=1
3312 fi
3313
3314 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3315
3316fi;
3317
3318 eval "$ac_cv_use_sdl"
3319 if test "$no_cache" != 1; then
3320 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3321 fi
3322
3323 if test "$wxUSE_LIBSDL" = yes; then
3324 echo "$as_me:$LINENO: result: yes" >&5
3325echo "${ECHO_T}yes" >&6
3326 else
3327 echo "$as_me:$LINENO: result: no" >&5
3328echo "${ECHO_T}no" >&6
3329 fi
3330
3331
077c7880 3332 withstring=
1c14217d
VZ
3333 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3334echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3335 no_cache=0
3336
3337# Check whether --with-gnomeprint or --without-gnomeprint was given.
3338if test "${with_gnomeprint+set}" = set; then
3339 withval="$with_gnomeprint"
3340
3341 if test "$withval" = yes; then
3342 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3343 else
3344 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3345 fi
3346
3347else
3348
3349 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3350 if test "x$LINE" != x ; then
3351 eval "DEFAULT_$LINE"
3352 else
3353 no_cache=1
3354 fi
3355
3356 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3357
3358fi;
3359
3360 eval "$ac_cv_use_gnomeprint"
3361 if test "$no_cache" != 1; then
3362 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3363 fi
3364
3365 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3366 echo "$as_me:$LINENO: result: yes" >&5
3367echo "${ECHO_T}yes" >&6
3368 else
3369 echo "$as_me:$LINENO: result: no" >&5
3370echo "${ECHO_T}no" >&6
3371 fi
3372
3373
077c7880 3374 withstring=
2b850ae1
RR
3375 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3376echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3377 no_cache=0
3378
3379# Check whether --with-gnomevfs or --without-gnomevfs was given.
3380if test "${with_gnomevfs+set}" = set; then
3381 withval="$with_gnomevfs"
3382
3383 if test "$withval" = yes; then
3384 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3385 else
3386 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3387 fi
3388
3389else
3390
3391 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3392 if test "x$LINE" != x ; then
3393 eval "DEFAULT_$LINE"
3394 else
3395 no_cache=1
3396 fi
3397
3398 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3399
3400fi;
3401
3402 eval "$ac_cv_use_gnomevfs"
3403 if test "$no_cache" != 1; then
3404 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3405 fi
3406
3407 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3408 echo "$as_me:$LINENO: result: yes" >&5
3409echo "${ECHO_T}yes" >&6
3410 else
3411 echo "$as_me:$LINENO: result: no" >&5
3412echo "${ECHO_T}no" >&6
3413 fi
3414
3415
077c7880 3416 withstring=
3565d135
RR
3417 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3418echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3419 no_cache=0
3420
3421# Check whether --with-hildon or --without-hildon was given.
3422if test "${with_hildon+set}" = set; then
3423 withval="$with_hildon"
3424
3425 if test "$withval" = yes; then
3426 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3427 else
3428 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3429 fi
3430
3431else
3432
3433 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3434 if test "x$LINE" != x ; then
3435 eval "DEFAULT_$LINE"
3436 else
3437 no_cache=1
3438 fi
3439
3440 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3441
3442fi;
3443
3444 eval "$ac_cv_use_hildon"
3445 if test "$no_cache" != 1; then
3446 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3447 fi
3448
3449 if test "$wxUSE_LIBHILDON" = yes; then
3450 echo "$as_me:$LINENO: result: yes" >&5
3451echo "${ECHO_T}yes" >&6
3452 else
3453 echo "$as_me:$LINENO: result: no" >&5
3454echo "${ECHO_T}no" >&6
3455 fi
3456
3457
077c7880 3458 withstring=
1c14217d
VZ
3459 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3460echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3461 no_cache=0
3462
3463# Check whether --with-opengl or --without-opengl was given.
3464if test "${with_opengl+set}" = set; then
3465 withval="$with_opengl"
3466
3467 if test "$withval" = yes; then
3468 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3469 else
3470 ac_cv_use_opengl='wxUSE_OPENGL=no'
3471 fi
3472
3473else
3474
3475 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3476 if test "x$LINE" != x ; then
3477 eval "DEFAULT_$LINE"
3478 else
3479 no_cache=1
3480 fi
3481
3482 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3483
3484fi;
3485
3486 eval "$ac_cv_use_opengl"
3487 if test "$no_cache" != 1; then
3488 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3489 fi
3490
3491 if test "$wxUSE_OPENGL" = yes; then
3492 echo "$as_me:$LINENO: result: yes" >&5
3493echo "${ECHO_T}yes" >&6
3494 else
3495 echo "$as_me:$LINENO: result: no" >&5
3496echo "${ECHO_T}no" >&6
3497 fi
3498
3499
4353a8df
VZ
3500if test "$wxUSE_UNIVERSAL" = "yes"; then
3501
3502# Check whether --with-themes or --without-themes was given.
3503if test "${with_themes+set}" = set; then
3504 withval="$with_themes"
3505 wxUNIV_THEMES="$withval"
3506fi;
3507fi
3508
a848cd7e
SC
3509fi
3510
3511
077c7880 3512 withstring=
1c14217d
VZ
3513 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3514echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3515 no_cache=0
3516
3517# Check whether --with-dmalloc or --without-dmalloc was given.
3518if test "${with_dmalloc+set}" = set; then
3519 withval="$with_dmalloc"
3520
3521 if test "$withval" = yes; then
3522 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3523 else
3524 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3525 fi
3526
3527else
3528
3529 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3530 if test "x$LINE" != x ; then
3531 eval "DEFAULT_$LINE"
3532 else
3533 no_cache=1
3534 fi
3535
3536 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3537
3538fi;
3539
3540 eval "$ac_cv_use_dmalloc"
3541 if test "$no_cache" != 1; then
3542 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3543 fi
3544
3545 if test "$wxUSE_DMALLOC" = yes; then
3546 echo "$as_me:$LINENO: result: yes" >&5
3547echo "${ECHO_T}yes" >&6
3548 else
3549 echo "$as_me:$LINENO: result: no" >&5
3550echo "${ECHO_T}no" >&6
3551 fi
3552
3553
3554 echo "$as_me:$LINENO: checking for --with-regex" >&5
3555echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3556 no_cache=0
3557
3558# Check whether --with-regex or --without-regex was given.
3559if test "${with_regex+set}" = set; then
3560 withval="$with_regex"
3561
3562 if test "$withval" = yes; then
3563 ac_cv_use_regex='wxUSE_REGEX=yes'
3564 elif test "$withval" = no; then
3565 ac_cv_use_regex='wxUSE_REGEX=no'
3566 elif test "$withval" = sys; then
3567 ac_cv_use_regex='wxUSE_REGEX=sys'
3568 elif test "$withval" = builtin; then
3569 ac_cv_use_regex='wxUSE_REGEX=builtin'
3570 else
3571 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3572echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3573 { (exit 1); exit 1; }; }
3574 fi
3575
3576else
3577
3578 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3579 if test "x$LINE" != x ; then
3580 eval "DEFAULT_$LINE"
3581 else
3582 no_cache=1
3583 fi
3584
3585 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3586
3587fi;
3588
3589 eval "$ac_cv_use_regex"
3590 if test "$no_cache" != 1; then
3591 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3592 fi
3593
3594 if test "$wxUSE_REGEX" = yes; then
3595 echo "$as_me:$LINENO: result: yes" >&5
3596echo "${ECHO_T}yes" >&6
3597 elif test "$wxUSE_REGEX" = no; then
3598 echo "$as_me:$LINENO: result: no" >&5
3599echo "${ECHO_T}no" >&6
3600 elif test "$wxUSE_REGEX" = sys; then
3601 echo "$as_me:$LINENO: result: system version" >&5
3602echo "${ECHO_T}system version" >&6
3603 elif test "$wxUSE_REGEX" = builtin; then
3604 echo "$as_me:$LINENO: result: builtin version" >&5
3605echo "${ECHO_T}builtin version" >&6
3606 else
3607 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3608echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3609 { (exit 1); exit 1; }; }
3610 fi
3611
3612
3613 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3614echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3615 no_cache=0
3616
3617# Check whether --with-zlib or --without-zlib was given.
3618if test "${with_zlib+set}" = set; then
3619 withval="$with_zlib"
3620
3621 if test "$withval" = yes; then
3622 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3623 elif test "$withval" = no; then
3624 ac_cv_use_zlib='wxUSE_ZLIB=no'
3625 elif test "$withval" = sys; then
3626 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3627 elif test "$withval" = builtin; then
3628 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3629 else
3630 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3631echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3632 { (exit 1); exit 1; }; }
3633 fi
3634
3635else
3636
3637 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3638 if test "x$LINE" != x ; then
3639 eval "DEFAULT_$LINE"
3640 else
3641 no_cache=1
3642 fi
3643
3644 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3645
3646fi;
3647
3648 eval "$ac_cv_use_zlib"
3649 if test "$no_cache" != 1; then
3650 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3651 fi
3652
3653 if test "$wxUSE_ZLIB" = yes; then
3654 echo "$as_me:$LINENO: result: yes" >&5
3655echo "${ECHO_T}yes" >&6
3656 elif test "$wxUSE_ZLIB" = no; then
3657 echo "$as_me:$LINENO: result: no" >&5
3658echo "${ECHO_T}no" >&6
3659 elif test "$wxUSE_ZLIB" = sys; then
3660 echo "$as_me:$LINENO: result: system version" >&5
3661echo "${ECHO_T}system version" >&6
3662 elif test "$wxUSE_ZLIB" = builtin; then
3663 echo "$as_me:$LINENO: result: builtin version" >&5
3664echo "${ECHO_T}builtin version" >&6
3665 else
3666 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3667echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3668 { (exit 1); exit 1; }; }
3669 fi
3670
3671
3672 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3673echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3674 no_cache=0
3675
3676# Check whether --with-odbc or --without-odbc was given.
3677if test "${with_odbc+set}" = set; then
3678 withval="$with_odbc"
3679
3680 if test "$withval" = yes; then
3681 ac_cv_use_odbc='wxUSE_ODBC=yes'
3682 elif test "$withval" = no; then
3683 ac_cv_use_odbc='wxUSE_ODBC=no'
3684 elif test "$withval" = sys; then
3685 ac_cv_use_odbc='wxUSE_ODBC=sys'
3686 elif test "$withval" = builtin; then
3687 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3688 else
3689 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3690echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3691 { (exit 1); exit 1; }; }
3692 fi
3693
3694else
3695
3696 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3697 if test "x$LINE" != x ; then
3698 eval "DEFAULT_$LINE"
3699 else
3700 no_cache=1
3701 fi
3702
3703 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3704
3705fi;
3706
3707 eval "$ac_cv_use_odbc"
3708 if test "$no_cache" != 1; then
3709 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3710 fi
3711
3712 if test "$wxUSE_ODBC" = yes; then
3713 echo "$as_me:$LINENO: result: yes" >&5
3714echo "${ECHO_T}yes" >&6
3715 elif test "$wxUSE_ODBC" = no; then
3716 echo "$as_me:$LINENO: result: no" >&5
3717echo "${ECHO_T}no" >&6
3718 elif test "$wxUSE_ODBC" = sys; then
3719 echo "$as_me:$LINENO: result: system version" >&5
3720echo "${ECHO_T}system version" >&6
3721 elif test "$wxUSE_ODBC" = builtin; then
3722 echo "$as_me:$LINENO: result: builtin version" >&5
3723echo "${ECHO_T}builtin version" >&6
3724 else
3725 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3726echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3727 { (exit 1); exit 1; }; }
3728 fi
3729
3730
3731 echo "$as_me:$LINENO: checking for --with-expat" >&5
3732echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3733 no_cache=0
3734
3735# Check whether --with-expat or --without-expat was given.
3736if test "${with_expat+set}" = set; then
3737 withval="$with_expat"
3738
3739 if test "$withval" = yes; then
3740 ac_cv_use_expat='wxUSE_EXPAT=yes'
3741 elif test "$withval" = no; then
3742 ac_cv_use_expat='wxUSE_EXPAT=no'
3743 elif test "$withval" = sys; then
3744 ac_cv_use_expat='wxUSE_EXPAT=sys'
3745 elif test "$withval" = builtin; then
3746 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3747 else
3748 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3749echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3750 { (exit 1); exit 1; }; }
3751 fi
3752
3753else
3754
3755 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3756 if test "x$LINE" != x ; then
3757 eval "DEFAULT_$LINE"
3758 else
3759 no_cache=1
3760 fi
3761
3762 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3763
3764fi;
3765
3766 eval "$ac_cv_use_expat"
3767 if test "$no_cache" != 1; then
3768 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3769 fi
3770
3771 if test "$wxUSE_EXPAT" = yes; then
3772 echo "$as_me:$LINENO: result: yes" >&5
3773echo "${ECHO_T}yes" >&6
3774 elif test "$wxUSE_EXPAT" = no; then
3775 echo "$as_me:$LINENO: result: no" >&5
3776echo "${ECHO_T}no" >&6
3777 elif test "$wxUSE_EXPAT" = sys; then
3778 echo "$as_me:$LINENO: result: system version" >&5
3779echo "${ECHO_T}system version" >&6
3780 elif test "$wxUSE_EXPAT" = builtin; then
3781 echo "$as_me:$LINENO: result: builtin version" >&5
3782echo "${ECHO_T}builtin version" >&6
3783 else
3784 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3785echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3786 { (exit 1); exit 1; }; }
3787 fi
3788
3789
3790
3791
077c7880 3792 enablestring=
a848cd7e
SC
3793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3794echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3795 no_cache=0
3796 # Check whether --enable-shared or --disable-shared was given.
3797if test "${enable_shared+set}" = set; then
3798 enableval="$enable_shared"
3799
3800 if test "$enableval" = yes; then
3801 ac_cv_use_shared='wxUSE_SHARED=yes'
3802 else
3803 ac_cv_use_shared='wxUSE_SHARED=no'
3804 fi
3805
3806else
3807
3808 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3809 if test "x$LINE" != x ; then
3810 eval "DEFAULT_$LINE"
3811 else
3812 no_cache=1
3813 fi
3814
3815 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3816
3817fi;
3818
3819 eval "$ac_cv_use_shared"
3820 if test "$no_cache" != 1; then
3821 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3822 fi
3823
3824 if test "$wxUSE_SHARED" = yes; then
3825 echo "$as_me:$LINENO: result: yes" >&5
3826echo "${ECHO_T}yes" >&6
3827 else
3828 echo "$as_me:$LINENO: result: no" >&5
3829echo "${ECHO_T}no" >&6
3830 fi
3831
3832
077c7880 3833 enablestring=
a848cd7e
SC
3834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3835echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3836 no_cache=0
3837 # Check whether --enable-optimise or --disable-optimise was given.
3838if test "${enable_optimise+set}" = set; then
3839 enableval="$enable_optimise"
3840
3841 if test "$enableval" = yes; then
3842 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3843 else
3844 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3845 fi
3846
3847else
3848
3849 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3850 if test "x$LINE" != x ; then
3851 eval "DEFAULT_$LINE"
3852 else
3853 no_cache=1
3854 fi
3855
3856 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3857
3858fi;
3859
3860 eval "$ac_cv_use_optimise"
3861 if test "$no_cache" != 1; then
3862 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3863 fi
3864
3865 if test "$wxUSE_OPTIMISE" = yes; then
3866 echo "$as_me:$LINENO: result: yes" >&5
3867echo "${ECHO_T}yes" >&6
3868 else
3869 echo "$as_me:$LINENO: result: no" >&5
3870echo "${ECHO_T}no" >&6
3871 fi
3872
3873
077c7880 3874 enablestring=
a848cd7e
SC
3875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3876echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3877 no_cache=0
3878 # Check whether --enable-debug or --disable-debug was given.
3879if test "${enable_debug+set}" = set; then
3880 enableval="$enable_debug"
3881
3882 if test "$enableval" = yes; then
3883 ac_cv_use_debug='wxUSE_DEBUG=yes'
3884 else
3885 ac_cv_use_debug='wxUSE_DEBUG=no'
3886 fi
3887
3888else
3889
3890 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3891 if test "x$LINE" != x ; then
3892 eval "DEFAULT_$LINE"
3893 else
3894 no_cache=1
3895 fi
3896
3897 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3898
3899fi;
3900
3901 eval "$ac_cv_use_debug"
3902 if test "$no_cache" != 1; then
3903 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3904 fi
3905
3906 if test "$wxUSE_DEBUG" = yes; then
3907 echo "$as_me:$LINENO: result: yes" >&5
3908echo "${ECHO_T}yes" >&6
3909 else
3910 echo "$as_me:$LINENO: result: no" >&5
3911echo "${ECHO_T}no" >&6
3912 fi
3913
3914
077c7880 3915 enablestring=
a848cd7e
SC
3916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3917echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3918 no_cache=0
3919 # Check whether --enable-stl or --disable-stl was given.
3920if test "${enable_stl+set}" = set; then
3921 enableval="$enable_stl"
3922
3923 if test "$enableval" = yes; then
3924 ac_cv_use_stl='wxUSE_STL=yes'
3925 else
3926 ac_cv_use_stl='wxUSE_STL=no'
3927 fi
3928
3929else
3930
3931 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3932 if test "x$LINE" != x ; then
3933 eval "DEFAULT_$LINE"
3934 else
3935 no_cache=1
3936 fi
3937
3938 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3939
3940fi;
3941
3942 eval "$ac_cv_use_stl"
3943 if test "$no_cache" != 1; then
3944 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3945 fi
3946
3947 if test "$wxUSE_STL" = yes; then
3948 echo "$as_me:$LINENO: result: yes" >&5
3949echo "${ECHO_T}yes" >&6
3950 else
3951 echo "$as_me:$LINENO: result: no" >&5
3952echo "${ECHO_T}no" >&6
3953 fi
3954
3955if test "$USE_OS2" = "1"; then
69120ee4 3956 DEFAULT_wxUSE_OMF=no
a848cd7e 3957
077c7880 3958 enablestring=
a848cd7e
SC
3959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3960echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3961 no_cache=0
3962 # Check whether --enable-omf or --disable-omf was given.
3963if test "${enable_omf+set}" = set; then
3964 enableval="$enable_omf"
3965
3966 if test "$enableval" = yes; then
3967 ac_cv_use_omf='wxUSE_OMF=yes'
3968 else
3969 ac_cv_use_omf='wxUSE_OMF=no'
3970 fi
3971
3972else
3973
3974 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3975 if test "x$LINE" != x ; then
3976 eval "DEFAULT_$LINE"
3977 else
3978 no_cache=1
3979 fi
3980
3981 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3982
3983fi;
3984
3985 eval "$ac_cv_use_omf"
3986 if test "$no_cache" != 1; then
3987 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3988 fi
3989
3990 if test "$wxUSE_OMF" = yes; then
3991 echo "$as_me:$LINENO: result: yes" >&5
3992echo "${ECHO_T}yes" >&6
3993 else
3994 echo "$as_me:$LINENO: result: no" >&5
3995echo "${ECHO_T}no" >&6
3996 fi
3997
3998fi
3999
4000if test "$wxUSE_DEBUG" = "yes"; then
4001 DEFAULT_wxUSE_DEBUG_FLAG=yes
4002 DEFAULT_wxUSE_DEBUG_INFO=yes
4003 BUILD=debug
4004elif test "$wxUSE_DEBUG" = "no"; then
4005 DEFAULT_wxUSE_DEBUG_FLAG=no
4006 DEFAULT_wxUSE_DEBUG_INFO=no
4007 BUILD=release
4008fi
4009
4010
077c7880 4011 enablestring=
a848cd7e
SC
4012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4013echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
4014 no_cache=0
4015 # Check whether --enable-debug_flag or --disable-debug_flag was given.
4016if test "${enable_debug_flag+set}" = set; then
4017 enableval="$enable_debug_flag"
4018
4019 if test "$enableval" = yes; then
4020 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4021 else
4022 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4023 fi
4024
4025else
4026
4027 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
4028 if test "x$LINE" != x ; then
4029 eval "DEFAULT_$LINE"
4030 else
4031 no_cache=1
4032 fi
4033
4034 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4035
4036fi;
4037
4038 eval "$ac_cv_use_debug_flag"
4039 if test "$no_cache" != 1; then
4040 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4041 fi
4042
4043 if test "$wxUSE_DEBUG_FLAG" = yes; then
4044 echo "$as_me:$LINENO: result: yes" >&5
4045echo "${ECHO_T}yes" >&6
4046 else
4047 echo "$as_me:$LINENO: result: no" >&5
4048echo "${ECHO_T}no" >&6
4049 fi
4050
4051
077c7880 4052 enablestring=
a848cd7e
SC
4053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4054echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4055 no_cache=0
4056 # Check whether --enable-debug_info or --disable-debug_info was given.
4057if test "${enable_debug_info+set}" = set; then
4058 enableval="$enable_debug_info"
4059
4060 if test "$enableval" = yes; then
4061 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4062 else
4063 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4064 fi
4065
4066else
4067
4068 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4069 if test "x$LINE" != x ; then
4070 eval "DEFAULT_$LINE"
4071 else
4072 no_cache=1
4073 fi
4074
4075 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4076
4077fi;
4078
4079 eval "$ac_cv_use_debug_info"
4080 if test "$no_cache" != 1; then
4081 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4082 fi
4083
4084 if test "$wxUSE_DEBUG_INFO" = yes; then
4085 echo "$as_me:$LINENO: result: yes" >&5
4086echo "${ECHO_T}yes" >&6
4087 else
4088 echo "$as_me:$LINENO: result: no" >&5
4089echo "${ECHO_T}no" >&6
4090 fi
4091
4092
077c7880 4093 enablestring=
a848cd7e
SC
4094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4095echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4096 no_cache=0
4097 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4098if test "${enable_debug_gdb+set}" = set; then
4099 enableval="$enable_debug_gdb"
4100
4101 if test "$enableval" = yes; then
4102 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4103 else
4104 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4105 fi
4106
4107else
4108
4109 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4110 if test "x$LINE" != x ; then
4111 eval "DEFAULT_$LINE"
4112 else
4113 no_cache=1
4114 fi
4115
4116 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4117
4118fi;
4119
4120 eval "$ac_cv_use_debug_gdb"
4121 if test "$no_cache" != 1; then
4122 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4123 fi
4124
4125 if test "$wxUSE_DEBUG_GDB" = yes; then
4126 echo "$as_me:$LINENO: result: yes" >&5
4127echo "${ECHO_T}yes" >&6
4128 else
4129 echo "$as_me:$LINENO: result: no" >&5
4130echo "${ECHO_T}no" >&6
4131 fi
4132
4133
077c7880 4134 enablestring=
a848cd7e
SC
4135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4136echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4137 no_cache=0
4138 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4139if test "${enable_debug_cntxt+set}" = set; then
4140 enableval="$enable_debug_cntxt"
4141
4142 if test "$enableval" = yes; then
4143 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4144 else
4145 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4146 fi
4147
4148else
4149
4150 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4151 if test "x$LINE" != x ; then
4152 eval "DEFAULT_$LINE"
4153 else
4154 no_cache=1
4155 fi
4156
4157 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4158
4159fi;
4160
4161 eval "$ac_cv_use_debug_cntxt"
4162 if test "$no_cache" != 1; then
4163 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4164 fi
4165
4166 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4167 echo "$as_me:$LINENO: result: yes" >&5
4168echo "${ECHO_T}yes" >&6
4169 else
4170 echo "$as_me:$LINENO: result: no" >&5
4171echo "${ECHO_T}no" >&6
4172 fi
4173
4174
077c7880 4175 enablestring=
a848cd7e
SC
4176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4177echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4178 no_cache=0
4179 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4180if test "${enable_mem_tracing+set}" = set; then
4181 enableval="$enable_mem_tracing"
4182
4183 if test "$enableval" = yes; then
4184 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4185 else
4186 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4187 fi
4188
4189else
4190
4191 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4192 if test "x$LINE" != x ; then
4193 eval "DEFAULT_$LINE"
4194 else
4195 no_cache=1
4196 fi
4197
4198 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4199
4200fi;
4201
4202 eval "$ac_cv_use_mem_tracing"
4203 if test "$no_cache" != 1; then
4204 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4205 fi
4206
4207 if test "$wxUSE_MEM_TRACING" = yes; then
4208 echo "$as_me:$LINENO: result: yes" >&5
4209echo "${ECHO_T}yes" >&6
4210 else
4211 echo "$as_me:$LINENO: result: no" >&5
4212echo "${ECHO_T}no" >&6
4213 fi
4214
4215
077c7880 4216 enablestring=
a848cd7e
SC
4217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4218echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4219 no_cache=0
4220 # Check whether --enable-profile or --disable-profile was given.
4221if test "${enable_profile+set}" = set; then
4222 enableval="$enable_profile"
4223
4224 if test "$enableval" = yes; then
4225 ac_cv_use_profile='wxUSE_PROFILE=yes'
4226 else
4227 ac_cv_use_profile='wxUSE_PROFILE=no'
4228 fi
4229
4230else
4231
4232 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4233 if test "x$LINE" != x ; then
4234 eval "DEFAULT_$LINE"
4235 else
4236 no_cache=1
4237 fi
4238
4239 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4240
4241fi;
4242
4243 eval "$ac_cv_use_profile"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_PROFILE" = yes; then
4249 echo "$as_me:$LINENO: result: yes" >&5
4250echo "${ECHO_T}yes" >&6
4251 else
4252 echo "$as_me:$LINENO: result: no" >&5
4253echo "${ECHO_T}no" >&6
4254 fi
4255
4256
077c7880 4257 enablestring=
a848cd7e
SC
4258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4259echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4260 no_cache=0
4261 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4262if test "${enable_no_rtti+set}" = set; then
4263 enableval="$enable_no_rtti"
4264
4265 if test "$enableval" = yes; then
4266 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4267 else
4268 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4269 fi
4270
4271else
4272
4273 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4274 if test "x$LINE" != x ; then
4275 eval "DEFAULT_$LINE"
4276 else
4277 no_cache=1
4278 fi
4279
4280 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4281
4282fi;
4283
4284 eval "$ac_cv_use_no_rtti"
4285 if test "$no_cache" != 1; then
4286 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4287 fi
4288
4289 if test "$wxUSE_NO_RTTI" = yes; then
4290 echo "$as_me:$LINENO: result: yes" >&5
4291echo "${ECHO_T}yes" >&6
4292 else
4293 echo "$as_me:$LINENO: result: no" >&5
4294echo "${ECHO_T}no" >&6
4295 fi
4296
4297
077c7880 4298 enablestring=
a848cd7e
SC
4299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4300echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4301 no_cache=0
4302 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4303if test "${enable_no_exceptions+set}" = set; then
4304 enableval="$enable_no_exceptions"
4305
4306 if test "$enableval" = yes; then
4307 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4308 else
4309 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4310 fi
4311
4312else
4313
4314 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4315 if test "x$LINE" != x ; then
4316 eval "DEFAULT_$LINE"
4317 else
4318 no_cache=1
4319 fi
4320
4321 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4322
4323fi;
4324
4325 eval "$ac_cv_use_no_exceptions"
4326 if test "$no_cache" != 1; then
4327 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4328 fi
4329
4330 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4331 echo "$as_me:$LINENO: result: yes" >&5
4332echo "${ECHO_T}yes" >&6
4333 else
4334 echo "$as_me:$LINENO: result: no" >&5
4335echo "${ECHO_T}no" >&6
4336 fi
4337
4338
077c7880 4339 enablestring=
a848cd7e
SC
4340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4341echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4342 no_cache=0
4343 # Check whether --enable-permissive or --disable-permissive was given.
4344if test "${enable_permissive+set}" = set; then
4345 enableval="$enable_permissive"
4346
4347 if test "$enableval" = yes; then
4348 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4349 else
4350 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4351 fi
4352
4353else
4354
4355 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4356 if test "x$LINE" != x ; then
4357 eval "DEFAULT_$LINE"
4358 else
4359 no_cache=1
4360 fi
4361
4362 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4363
4364fi;
4365
4366 eval "$ac_cv_use_permissive"
4367 if test "$no_cache" != 1; then
4368 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4369 fi
4370
4371 if test "$wxUSE_PERMISSIVE" = yes; then
4372 echo "$as_me:$LINENO: result: yes" >&5
4373echo "${ECHO_T}yes" >&6
4374 else
4375 echo "$as_me:$LINENO: result: no" >&5
4376echo "${ECHO_T}no" >&6
4377 fi
4378
4379
077c7880 4380 enablestring=
a848cd7e
SC
4381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4382echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4383 no_cache=0
4384 # Check whether --enable-no_deps or --disable-no_deps was given.
4385if test "${enable_no_deps+set}" = set; then
4386 enableval="$enable_no_deps"
4387
4388 if test "$enableval" = yes; then
4389 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4390 else
4391 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4392 fi
4393
4394else
4395
4396 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4397 if test "x$LINE" != x ; then
4398 eval "DEFAULT_$LINE"
4399 else
4400 no_cache=1
4401 fi
4402
4403 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4404
4405fi;
4406
4407 eval "$ac_cv_use_no_deps"
4408 if test "$no_cache" != 1; then
4409 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4410 fi
4411
4412 if test "$wxUSE_NO_DEPS" = yes; then
4413 echo "$as_me:$LINENO: result: yes" >&5
4414echo "${ECHO_T}yes" >&6
4415 else
4416 echo "$as_me:$LINENO: result: no" >&5
4417echo "${ECHO_T}no" >&6
4418 fi
4419
4420
95768535 4421 enablestring=
7afc46ab
KO
4422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4423echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4424 no_cache=0
4425 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4426if test "${enable_universal_binary+set}" = set; then
4427 enableval="$enable_universal_binary"
4428
95768535 4429 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4430
4431else
4432
4433 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4434 if test "x$LINE" != x ; then
4435 eval "DEFAULT_$LINE"
95768535 4436 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4437 else
4438 no_cache=1
95768535 4439 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4440 fi
4441
7afc46ab
KO
4442fi;
4443
95768535 4444 eval "$wx_cv_use_universal_binary"
7afc46ab 4445 if test "$no_cache" != 1; then
95768535 4446 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4447 fi
4448
95768535
MW
4449 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4450echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4451
4452
a848cd7e 4453
077c7880 4454 enablestring=enable
dee1a63f
MB
4455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4456echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4457 no_cache=0
dee1a63f
MB
4458 # Check whether --enable-compat24 or --disable-compat24 was given.
4459if test "${enable_compat24+set}" = set; then
4460 enableval="$enable_compat24"
a848cd7e
SC
4461
4462 if test "$enableval" = yes; then
dee1a63f 4463 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4464 else
dee1a63f 4465 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4466 fi
4467
4468else
4469
dee1a63f 4470 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4471 if test "x$LINE" != x ; then
4472 eval "DEFAULT_$LINE"
4473 else
4474 no_cache=1
4475 fi
4476
dee1a63f 4477 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4478
4479fi;
4480
dee1a63f 4481 eval "$ac_cv_use_compat24"
a848cd7e 4482 if test "$no_cache" != 1; then
dee1a63f 4483 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4484 fi
4485
dee1a63f 4486 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4487 echo "$as_me:$LINENO: result: yes" >&5
4488echo "${ECHO_T}yes" >&6
4489 else
4490 echo "$as_me:$LINENO: result: no" >&5
4491echo "${ECHO_T}no" >&6
4492 fi
4493
4494
077c7880 4495 enablestring=disable
dee1a63f
MB
4496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4497echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4498 no_cache=0
dee1a63f
MB
4499 # Check whether --enable-compat26 or --disable-compat26 was given.
4500if test "${enable_compat26+set}" = set; then
4501 enableval="$enable_compat26"
a848cd7e
SC
4502
4503 if test "$enableval" = yes; then
dee1a63f 4504 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4505 else
dee1a63f 4506 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4507 fi
4508
4509else
4510
dee1a63f 4511 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4512 if test "x$LINE" != x ; then
4513 eval "DEFAULT_$LINE"
4514 else
4515 no_cache=1
4516 fi
4517
dee1a63f 4518 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4519
4520fi;
4521
dee1a63f 4522 eval "$ac_cv_use_compat26"
a848cd7e 4523 if test "$no_cache" != 1; then
dee1a63f 4524 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4525 fi
4526
dee1a63f 4527 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4528 echo "$as_me:$LINENO: result: yes" >&5
4529echo "${ECHO_T}yes" >&6
4530 else
4531 echo "$as_me:$LINENO: result: no" >&5
4532echo "${ECHO_T}no" >&6
4533 fi
4534
4535
ffa0583f 4536
077c7880 4537 enablestring=
ffa0583f
RL
4538 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4539echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4540 no_cache=0
4541 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4542if test "${enable_rpath+set}" = set; then
4543 enableval="$enable_rpath"
ffa0583f
RL
4544
4545 if test "$enableval" = yes; then
4546 ac_cv_use_rpath='wxUSE_RPATH=yes'
4547 else
4548 ac_cv_use_rpath='wxUSE_RPATH=no'
4549 fi
4550
4551else
4552
4553 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4554 if test "x$LINE" != x ; then
4555 eval "DEFAULT_$LINE"
4556 else
4557 no_cache=1
4558 fi
4559
4560 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4561
a848cd7e
SC
4562fi;
4563
ffa0583f
RL
4564 eval "$ac_cv_use_rpath"
4565 if test "$no_cache" != 1; then
4566 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4567 fi
4568
4569 if test "$wxUSE_RPATH" = yes; then
4570 echo "$as_me:$LINENO: result: yes" >&5
4571echo "${ECHO_T}yes" >&6
4572 else
4573 echo "$as_me:$LINENO: result: no" >&5
4574echo "${ECHO_T}no" >&6
4575 fi
4576
a848cd7e
SC
4577
4578
4579
4580
077c7880 4581 enablestring=
a848cd7e
SC
4582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4583echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4584 no_cache=0
4585 # Check whether --enable-intl or --disable-intl was given.
4586if test "${enable_intl+set}" = set; then
4587 enableval="$enable_intl"
4588
4589 if test "$enableval" = yes; then
4590 ac_cv_use_intl='wxUSE_INTL=yes'
4591 else
4592 ac_cv_use_intl='wxUSE_INTL=no'
4593 fi
4594
4595else
4596
4597 LINE=`grep "wxUSE_INTL" ${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_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4605
4606fi;
4607
4608 eval "$ac_cv_use_intl"
4609 if test "$no_cache" != 1; then
4610 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4611 fi
4612
4613 if test "$wxUSE_INTL" = 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
4621
077c7880 4622 enablestring=
a848cd7e
SC
4623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4624echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4625 no_cache=0
4626 # Check whether --enable-config or --disable-config was given.
4627if test "${enable_config+set}" = set; then
4628 enableval="$enable_config"
4629
4630 if test "$enableval" = yes; then
4631 ac_cv_use_config='wxUSE_CONFIG=yes'
4632 else
4633 ac_cv_use_config='wxUSE_CONFIG=no'
4634 fi
4635
4636else
4637
4638 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4639 if test "x$LINE" != x ; then
4640 eval "DEFAULT_$LINE"
4641 else
4642 no_cache=1
4643 fi
4644
4645 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4646
4647fi;
4648
4649 eval "$ac_cv_use_config"
4650 if test "$no_cache" != 1; then
4651 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4652 fi
4653
4654 if test "$wxUSE_CONFIG" = yes; then
4655 echo "$as_me:$LINENO: result: yes" >&5
4656echo "${ECHO_T}yes" >&6
4657 else
4658 echo "$as_me:$LINENO: result: no" >&5
4659echo "${ECHO_T}no" >&6
4660 fi
4661
4662
4663
077c7880 4664 enablestring=
a848cd7e
SC
4665 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4666echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4667 no_cache=0
4668 # Check whether --enable-protocols or --disable-protocols was given.
4669if test "${enable_protocols+set}" = set; then
4670 enableval="$enable_protocols"
4671
4672 if test "$enableval" = yes; then
4673 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4674 else
4675 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4676 fi
4677
4678else
4679
4680 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4681 if test "x$LINE" != x ; then
4682 eval "DEFAULT_$LINE"
4683 else
4684 no_cache=1
4685 fi
4686
4687 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4688
4689fi;
4690
4691 eval "$ac_cv_use_protocols"
4692 if test "$no_cache" != 1; then
4693 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4694 fi
4695
4696 if test "$wxUSE_PROTOCOL" = yes; then
4697 echo "$as_me:$LINENO: result: yes" >&5
4698echo "${ECHO_T}yes" >&6
4699 else
4700 echo "$as_me:$LINENO: result: no" >&5
4701echo "${ECHO_T}no" >&6
4702 fi
4703
4704
077c7880 4705 enablestring=
a848cd7e
SC
4706 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4707echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4708 no_cache=0
4709 # Check whether --enable-ftp or --disable-ftp was given.
4710if test "${enable_ftp+set}" = set; then
4711 enableval="$enable_ftp"
4712
4713 if test "$enableval" = yes; then
4714 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4715 else
4716 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4717 fi
4718
4719else
4720
4721 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4722 if test "x$LINE" != x ; then
4723 eval "DEFAULT_$LINE"
4724 else
4725 no_cache=1
4726 fi
4727
4728 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4729
4730fi;
4731
4732 eval "$ac_cv_use_ftp"
4733 if test "$no_cache" != 1; then
4734 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4735 fi
4736
4737 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4738 echo "$as_me:$LINENO: result: yes" >&5
4739echo "${ECHO_T}yes" >&6
4740 else
4741 echo "$as_me:$LINENO: result: no" >&5
4742echo "${ECHO_T}no" >&6
4743 fi
4744
4745
077c7880 4746 enablestring=
a848cd7e
SC
4747 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4748echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4749 no_cache=0
4750 # Check whether --enable-http or --disable-http was given.
4751if test "${enable_http+set}" = set; then
4752 enableval="$enable_http"
4753
4754 if test "$enableval" = yes; then
4755 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4756 else
4757 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4758 fi
4759
4760else
4761
4762 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4763 if test "x$LINE" != x ; then
4764 eval "DEFAULT_$LINE"
4765 else
4766 no_cache=1
4767 fi
4768
4769 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4770
4771fi;
4772
4773 eval "$ac_cv_use_http"
4774 if test "$no_cache" != 1; then
4775 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4776 fi
4777
4778 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4779 echo "$as_me:$LINENO: result: yes" >&5
4780echo "${ECHO_T}yes" >&6
4781 else
4782 echo "$as_me:$LINENO: result: no" >&5
4783echo "${ECHO_T}no" >&6
4784 fi
4785
4786
077c7880 4787 enablestring=
a848cd7e
SC
4788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4789echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4790 no_cache=0
4791 # Check whether --enable-fileproto or --disable-fileproto was given.
4792if test "${enable_fileproto+set}" = set; then
4793 enableval="$enable_fileproto"
4794
4795 if test "$enableval" = yes; then
4796 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4797 else
4798 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4799 fi
4800
4801else
4802
4803 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4804 if test "x$LINE" != x ; then
4805 eval "DEFAULT_$LINE"
4806 else
4807 no_cache=1
4808 fi
4809
4810 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4811
4812fi;
4813
4814 eval "$ac_cv_use_fileproto"
4815 if test "$no_cache" != 1; then
4816 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4817 fi
4818
4819 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4820 echo "$as_me:$LINENO: result: yes" >&5
4821echo "${ECHO_T}yes" >&6
4822 else
4823 echo "$as_me:$LINENO: result: no" >&5
4824echo "${ECHO_T}no" >&6
4825 fi
4826
4827
077c7880 4828 enablestring=
a848cd7e
SC
4829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4830echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4831 no_cache=0
4832 # Check whether --enable-sockets or --disable-sockets was given.
4833if test "${enable_sockets+set}" = set; then
4834 enableval="$enable_sockets"
4835
4836 if test "$enableval" = yes; then
4837 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4838 else
4839 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4840 fi
4841
4842else
4843
4844 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4845 if test "x$LINE" != x ; then
4846 eval "DEFAULT_$LINE"
4847 else
4848 no_cache=1
4849 fi
4850
4851 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4852
4853fi;
4854
4855 eval "$ac_cv_use_sockets"
4856 if test "$no_cache" != 1; then
4857 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4858 fi
4859
4860 if test "$wxUSE_SOCKETS" = yes; then
4861 echo "$as_me:$LINENO: result: yes" >&5
4862echo "${ECHO_T}yes" >&6
4863 else
4864 echo "$as_me:$LINENO: result: no" >&5
4865echo "${ECHO_T}no" >&6
4866 fi
4867
4868
077c7880 4869 enablestring=
a848cd7e
SC
4870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4871echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4872 no_cache=0
4873 # Check whether --enable-ole or --disable-ole was given.
4874if test "${enable_ole+set}" = set; then
4875 enableval="$enable_ole"
4876
4877 if test "$enableval" = yes; then
4878 ac_cv_use_ole='wxUSE_OLE=yes'
4879 else
4880 ac_cv_use_ole='wxUSE_OLE=no'
4881 fi
4882
4883else
4884
4885 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4886 if test "x$LINE" != x ; then
4887 eval "DEFAULT_$LINE"
4888 else
4889 no_cache=1
4890 fi
4891
4892 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4893
4894fi;
4895
4896 eval "$ac_cv_use_ole"
4897 if test "$no_cache" != 1; then
4898 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4899 fi
4900
4901 if test "$wxUSE_OLE" = yes; then
4902 echo "$as_me:$LINENO: result: yes" >&5
4903echo "${ECHO_T}yes" >&6
4904 else
4905 echo "$as_me:$LINENO: result: no" >&5
4906echo "${ECHO_T}no" >&6
4907 fi
4908
4909
077c7880 4910 enablestring=
a848cd7e
SC
4911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4912echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4913 no_cache=0
4914 # Check whether --enable-dataobj or --disable-dataobj was given.
4915if test "${enable_dataobj+set}" = set; then
4916 enableval="$enable_dataobj"
4917
4918 if test "$enableval" = yes; then
4919 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4920 else
4921 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4922 fi
4923
4924else
4925
4926 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4927 if test "x$LINE" != x ; then
4928 eval "DEFAULT_$LINE"
4929 else
4930 no_cache=1
4931 fi
4932
4933 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4934
4935fi;
4936
4937 eval "$ac_cv_use_dataobj"
4938 if test "$no_cache" != 1; then
4939 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4940 fi
4941
4942 if test "$wxUSE_DATAOBJ" = yes; then
4943 echo "$as_me:$LINENO: result: yes" >&5
4944echo "${ECHO_T}yes" >&6
4945 else
4946 echo "$as_me:$LINENO: result: no" >&5
4947echo "${ECHO_T}no" >&6
4948 fi
4949
4950
4951
077c7880 4952 enablestring=
a848cd7e
SC
4953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4954echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4955 no_cache=0
4956 # Check whether --enable-ipc or --disable-ipc was given.
4957if test "${enable_ipc+set}" = set; then
4958 enableval="$enable_ipc"
4959
4960 if test "$enableval" = yes; then
4961 ac_cv_use_ipc='wxUSE_IPC=yes'
4962 else
4963 ac_cv_use_ipc='wxUSE_IPC=no'
4964 fi
4965
4966else
4967
4968 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4969 if test "x$LINE" != x ; then
4970 eval "DEFAULT_$LINE"
4971 else
4972 no_cache=1
4973 fi
4974
4975 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4976
4977fi;
4978
4979 eval "$ac_cv_use_ipc"
4980 if test "$no_cache" != 1; then
4981 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4982 fi
4983
4984 if test "$wxUSE_IPC" = yes; then
4985 echo "$as_me:$LINENO: result: yes" >&5
4986echo "${ECHO_T}yes" >&6
4987 else
4988 echo "$as_me:$LINENO: result: no" >&5
4989echo "${ECHO_T}no" >&6
4990 fi
4991
4992
4993
077c7880 4994 enablestring=
a848cd7e
SC
4995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4996echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4997 no_cache=0
4998 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4999if test "${enable_apple_ieee+set}" = set; then
5000 enableval="$enable_apple_ieee"
5001
5002 if test "$enableval" = yes; then
5003 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
5004 else
5005 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
5006 fi
5007
5008else
5009
5010 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
5011 if test "x$LINE" != x ; then
5012 eval "DEFAULT_$LINE"
5013 else
5014 no_cache=1
5015 fi
5016
5017 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5018
5019fi;
5020
5021 eval "$ac_cv_use_apple_ieee"
5022 if test "$no_cache" != 1; then
5023 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
5024 fi
5025
5026 if test "$wxUSE_APPLE_IEEE" = yes; then
5027 echo "$as_me:$LINENO: result: yes" >&5
5028echo "${ECHO_T}yes" >&6
5029 else
5030 echo "$as_me:$LINENO: result: no" >&5
5031echo "${ECHO_T}no" >&6
5032 fi
5033
5034
077c7880 5035 enablestring=
81f90336
MW
5036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5037echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
5038 no_cache=0
5039 # Check whether --enable-arcstream or --disable-arcstream was given.
5040if test "${enable_arcstream+set}" = set; then
5041 enableval="$enable_arcstream"
5042
5043 if test "$enableval" = yes; then
9e8e867f 5044 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 5045 else
9e8e867f 5046 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
5047 fi
5048
5049else
5050
9e8e867f 5051 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
5052 if test "x$LINE" != x ; then
5053 eval "DEFAULT_$LINE"
5054 else
5055 no_cache=1
5056 fi
5057
9e8e867f 5058 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
5059
5060fi;
5061
5062 eval "$ac_cv_use_arcstream"
5063 if test "$no_cache" != 1; then
5064 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5065 fi
5066
9e8e867f 5067 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
5068 echo "$as_me:$LINENO: result: yes" >&5
5069echo "${ECHO_T}yes" >&6
5070 else
5071 echo "$as_me:$LINENO: result: no" >&5
5072echo "${ECHO_T}no" >&6
5073 fi
5074
5075
077c7880 5076 enablestring=
36b6448c
VZ
5077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5078echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5079 no_cache=0
36b6448c
VZ
5080 # Check whether --enable-backtrace or --disable-backtrace was given.
5081if test "${enable_backtrace+set}" = set; then
5082 enableval="$enable_backtrace"
a848cd7e
SC
5083
5084 if test "$enableval" = yes; then
36b6448c 5085 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5086 else
36b6448c 5087 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5088 fi
5089
5090else
5091
36b6448c 5092 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5093 if test "x$LINE" != x ; then
5094 eval "DEFAULT_$LINE"
5095 else
5096 no_cache=1
5097 fi
5098
36b6448c 5099 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
5100
5101fi;
5102
36b6448c 5103 eval "$ac_cv_use_backtrace"
a848cd7e 5104 if test "$no_cache" != 1; then
36b6448c 5105 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5106 fi
5107
36b6448c 5108 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
5109 echo "$as_me:$LINENO: result: yes" >&5
5110echo "${ECHO_T}yes" >&6
5111 else
5112 echo "$as_me:$LINENO: result: no" >&5
5113echo "${ECHO_T}no" >&6
5114 fi
5115
5116
077c7880 5117 enablestring=
36b6448c
VZ
5118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5119echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5120 no_cache=0
36b6448c
VZ
5121 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5122if test "${enable_catch_segvs+set}" = set; then
5123 enableval="$enable_catch_segvs"
eaff0f0d
VZ
5124
5125 if test "$enableval" = yes; then
36b6448c 5126 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5127 else
36b6448c 5128 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5129 fi
5130
5131else
5132
36b6448c 5133 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5134 if test "x$LINE" != x ; then
5135 eval "DEFAULT_$LINE"
5136 else
5137 no_cache=1
5138 fi
5139
36b6448c 5140 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
5141
5142fi;
5143
36b6448c 5144 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5145 if test "$no_cache" != 1; then
36b6448c 5146 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5147 fi
5148
36b6448c 5149 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5150 echo "$as_me:$LINENO: result: yes" >&5
5151echo "${ECHO_T}yes" >&6
5152 else
5153 echo "$as_me:$LINENO: result: no" >&5
5154echo "${ECHO_T}no" >&6
5155 fi
5156
5157
077c7880 5158 enablestring=
a848cd7e
SC
5159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5160echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5161 no_cache=0
5162 # Check whether --enable-cmdline or --disable-cmdline was given.
5163if test "${enable_cmdline+set}" = set; then
5164 enableval="$enable_cmdline"
5165
5166 if test "$enableval" = yes; then
5167 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5168 else
5169 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5170 fi
5171
5172else
5173
5174 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5175 if test "x$LINE" != x ; then
5176 eval "DEFAULT_$LINE"
5177 else
5178 no_cache=1
5179 fi
5180
5181 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5182
5183fi;
5184
5185 eval "$ac_cv_use_cmdline"
5186 if test "$no_cache" != 1; then
5187 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5188 fi
5189
5190 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5191 echo "$as_me:$LINENO: result: yes" >&5
5192echo "${ECHO_T}yes" >&6
5193 else
5194 echo "$as_me:$LINENO: result: no" >&5
5195echo "${ECHO_T}no" >&6
5196 fi
5197
5198
077c7880 5199 enablestring=
a848cd7e
SC
5200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5201echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5202 no_cache=0
5203 # Check whether --enable-datetime or --disable-datetime was given.
5204if test "${enable_datetime+set}" = set; then
5205 enableval="$enable_datetime"
5206
5207 if test "$enableval" = yes; then
5208 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5209 else
5210 ac_cv_use_datetime='wxUSE_DATETIME=no'
5211 fi
5212
5213else
5214
5215 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5216 if test "x$LINE" != x ; then
5217 eval "DEFAULT_$LINE"
5218 else
5219 no_cache=1
5220 fi
5221
5222 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5223
5224fi;
5225
5226 eval "$ac_cv_use_datetime"
5227 if test "$no_cache" != 1; then
5228 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5229 fi
5230
5231 if test "$wxUSE_DATETIME" = yes; then
5232 echo "$as_me:$LINENO: result: yes" >&5
5233echo "${ECHO_T}yes" >&6
5234 else
5235 echo "$as_me:$LINENO: result: no" >&5
5236echo "${ECHO_T}no" >&6
5237 fi
5238
5239
077c7880 5240 enablestring=
36b6448c
VZ
5241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5242echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5243 no_cache=0
5244 # Check whether --enable-debugreport or --disable-debugreport was given.
5245if test "${enable_debugreport+set}" = set; then
5246 enableval="$enable_debugreport"
5247
5248 if test "$enableval" = yes; then
5249 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5250 else
5251 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5252 fi
5253
5254else
5255
5256 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5257 if test "x$LINE" != x ; then
5258 eval "DEFAULT_$LINE"
5259 else
5260 no_cache=1
5261 fi
5262
5263 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5264
5265fi;
5266
5267 eval "$ac_cv_use_debugreport"
5268 if test "$no_cache" != 1; then
5269 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5270 fi
5271
5272 if test "$wxUSE_DEBUGREPORT" = yes; then
5273 echo "$as_me:$LINENO: result: yes" >&5
5274echo "${ECHO_T}yes" >&6
5275 else
5276 echo "$as_me:$LINENO: result: no" >&5
5277echo "${ECHO_T}no" >&6
5278 fi
5279
5280
077c7880 5281 enablestring=
a848cd7e
SC
5282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5283echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5284 no_cache=0
5285 # Check whether --enable-dialupman or --disable-dialupman was given.
5286if test "${enable_dialupman+set}" = set; then
5287 enableval="$enable_dialupman"
5288
5289 if test "$enableval" = yes; then
5290 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5291 else
5292 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5293 fi
5294
5295else
5296
5297 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5298 if test "x$LINE" != x ; then
5299 eval "DEFAULT_$LINE"
5300 else
5301 no_cache=1
5302 fi
5303
5304 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5305
5306fi;
5307
5308 eval "$ac_cv_use_dialupman"
5309 if test "$no_cache" != 1; then
5310 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5311 fi
5312
5313 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5314 echo "$as_me:$LINENO: result: yes" >&5
5315echo "${ECHO_T}yes" >&6
5316 else
5317 echo "$as_me:$LINENO: result: no" >&5
5318echo "${ECHO_T}no" >&6
5319 fi
5320
5321
077c7880 5322 enablestring=
a848cd7e
SC
5323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5324echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5325 no_cache=0
5326 # Check whether --enable-dynlib or --disable-dynlib was given.
5327if test "${enable_dynlib+set}" = set; then
5328 enableval="$enable_dynlib"
5329
5330 if test "$enableval" = yes; then
5331 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5332 else
5333 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5334 fi
5335
5336else
5337
5338 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5339 if test "x$LINE" != x ; then
5340 eval "DEFAULT_$LINE"
5341 else
5342 no_cache=1
5343 fi
5344
5345 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5346
5347fi;
5348
5349 eval "$ac_cv_use_dynlib"
5350 if test "$no_cache" != 1; then
5351 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5352 fi
5353
5354 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5355 echo "$as_me:$LINENO: result: yes" >&5
5356echo "${ECHO_T}yes" >&6
5357 else
5358 echo "$as_me:$LINENO: result: no" >&5
5359echo "${ECHO_T}no" >&6
5360 fi
5361
5362
077c7880 5363 enablestring=
a848cd7e
SC
5364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5365echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5366 no_cache=0
5367 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5368if test "${enable_dynamicloader+set}" = set; then
5369 enableval="$enable_dynamicloader"
5370
5371 if test "$enableval" = yes; then
5372 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5373 else
5374 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5375 fi
5376
5377else
5378
5379 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5380 if test "x$LINE" != x ; then
5381 eval "DEFAULT_$LINE"
5382 else
5383 no_cache=1
5384 fi
5385
5386 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5387
5388fi;
5389
5390 eval "$ac_cv_use_dynamicloader"
5391 if test "$no_cache" != 1; then
5392 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5393 fi
5394
5395 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5396 echo "$as_me:$LINENO: result: yes" >&5
5397echo "${ECHO_T}yes" >&6
5398 else
5399 echo "$as_me:$LINENO: result: no" >&5
5400echo "${ECHO_T}no" >&6
5401 fi
5402
5403
077c7880 5404 enablestring=
a848cd7e
SC
5405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5406echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5407 no_cache=0
5408 # Check whether --enable-exceptions or --disable-exceptions was given.
5409if test "${enable_exceptions+set}" = set; then
5410 enableval="$enable_exceptions"
5411
5412 if test "$enableval" = yes; then
5413 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5414 else
5415 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5416 fi
5417
5418else
5419
5420 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5421 if test "x$LINE" != x ; then
5422 eval "DEFAULT_$LINE"
5423 else
5424 no_cache=1
5425 fi
5426
5427 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5428
5429fi;
5430
5431 eval "$ac_cv_use_exceptions"
5432 if test "$no_cache" != 1; then
5433 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5434 fi
5435
5436 if test "$wxUSE_EXCEPTIONS" = yes; then
5437 echo "$as_me:$LINENO: result: yes" >&5
5438echo "${ECHO_T}yes" >&6
5439 else
5440 echo "$as_me:$LINENO: result: no" >&5
5441echo "${ECHO_T}no" >&6
5442 fi
5443
5444
077c7880 5445 enablestring=
a848cd7e
SC
5446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5447echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5448 no_cache=0
5449 # Check whether --enable-ffile or --disable-ffile was given.
5450if test "${enable_ffile+set}" = set; then
5451 enableval="$enable_ffile"
5452
5453 if test "$enableval" = yes; then
5454 ac_cv_use_ffile='wxUSE_FFILE=yes'
5455 else
5456 ac_cv_use_ffile='wxUSE_FFILE=no'
5457 fi
5458
5459else
5460
5461 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5462 if test "x$LINE" != x ; then
5463 eval "DEFAULT_$LINE"
5464 else
5465 no_cache=1
5466 fi
5467
5468 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5469
5470fi;
5471
5472 eval "$ac_cv_use_ffile"
5473 if test "$no_cache" != 1; then
5474 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5475 fi
5476
5477 if test "$wxUSE_FFILE" = yes; then
5478 echo "$as_me:$LINENO: result: yes" >&5
5479echo "${ECHO_T}yes" >&6
5480 else
5481 echo "$as_me:$LINENO: result: no" >&5
5482echo "${ECHO_T}no" >&6
5483 fi
5484
5485
077c7880 5486 enablestring=
a848cd7e
SC
5487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5488echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5489 no_cache=0
5490 # Check whether --enable-file or --disable-file was given.
5491if test "${enable_file+set}" = set; then
5492 enableval="$enable_file"
5493
5494 if test "$enableval" = yes; then
5495 ac_cv_use_file='wxUSE_FILE=yes'
5496 else
5497 ac_cv_use_file='wxUSE_FILE=no'
5498 fi
5499
5500else
5501
5502 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5503 if test "x$LINE" != x ; then
5504 eval "DEFAULT_$LINE"
5505 else
5506 no_cache=1
5507 fi
5508
5509 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5510
5511fi;
5512
5513 eval "$ac_cv_use_file"
5514 if test "$no_cache" != 1; then
5515 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5516 fi
5517
5518 if test "$wxUSE_FILE" = yes; then
5519 echo "$as_me:$LINENO: result: yes" >&5
5520echo "${ECHO_T}yes" >&6
5521 else
5522 echo "$as_me:$LINENO: result: no" >&5
5523echo "${ECHO_T}no" >&6
5524 fi
5525
5526
077c7880 5527 enablestring=
a848cd7e
SC
5528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5529echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5530 no_cache=0
5531 # Check whether --enable-filesystem or --disable-filesystem was given.
5532if test "${enable_filesystem+set}" = set; then
5533 enableval="$enable_filesystem"
5534
5535 if test "$enableval" = yes; then
5536 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5537 else
5538 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5539 fi
5540
5541else
5542
5543 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5544 if test "x$LINE" != x ; then
5545 eval "DEFAULT_$LINE"
5546 else
5547 no_cache=1
5548 fi
5549
5550 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5551
5552fi;
5553
5554 eval "$ac_cv_use_filesystem"
5555 if test "$no_cache" != 1; then
5556 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5557 fi
5558
5559 if test "$wxUSE_FILESYSTEM" = yes; then
5560 echo "$as_me:$LINENO: result: yes" >&5
5561echo "${ECHO_T}yes" >&6
5562 else
5563 echo "$as_me:$LINENO: result: no" >&5
5564echo "${ECHO_T}no" >&6
5565 fi
5566
5567
077c7880 5568 enablestring=
a848cd7e
SC
5569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5570echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5571 no_cache=0
5572 # Check whether --enable-fontmap or --disable-fontmap was given.
5573if test "${enable_fontmap+set}" = set; then
5574 enableval="$enable_fontmap"
5575
5576 if test "$enableval" = yes; then
5577 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5578 else
5579 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5580 fi
5581
5582else
5583
5584 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5585 if test "x$LINE" != x ; then
5586 eval "DEFAULT_$LINE"
5587 else
5588 no_cache=1
5589 fi
5590
5591 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5592
5593fi;
5594
5595 eval "$ac_cv_use_fontmap"
5596 if test "$no_cache" != 1; then
5597 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5598 fi
5599
5600 if test "$wxUSE_FONTMAP" = yes; then
5601 echo "$as_me:$LINENO: result: yes" >&5
5602echo "${ECHO_T}yes" >&6
5603 else
5604 echo "$as_me:$LINENO: result: no" >&5
5605echo "${ECHO_T}no" >&6
5606 fi
5607
5608
077c7880 5609 enablestring=
26e422a9
MW
5610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
5611echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6
5612 no_cache=0
5613 # Check whether --enable-fs_archive or --disable-fs_archive was given.
5614if test "${enable_fs_archive+set}" = set; then
5615 enableval="$enable_fs_archive"
5616
5617 if test "$enableval" = yes; then
5618 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
5619 else
5620 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
5621 fi
5622
5623else
5624
5625 LINE=`grep "wxUSE_FS_ARCHIVE" ${wx_arg_cache_file}`
5626 if test "x$LINE" != x ; then
5627 eval "DEFAULT_$LINE"
5628 else
5629 no_cache=1
5630 fi
5631
5632 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE='$DEFAULT_wxUSE_FS_ARCHIVE
5633
5634fi;
5635
5636 eval "$ac_cv_use_fs_archive"
5637 if test "$no_cache" != 1; then
5638 echo $ac_cv_use_fs_archive >> ${wx_arg_cache_file}.tmp
5639 fi
5640
5641 if test "$wxUSE_FS_ARCHIVE" = yes; then
5642 echo "$as_me:$LINENO: result: yes" >&5
5643echo "${ECHO_T}yes" >&6
5644 else
5645 echo "$as_me:$LINENO: result: no" >&5
5646echo "${ECHO_T}no" >&6
5647 fi
5648
5649
077c7880 5650 enablestring=
a848cd7e
SC
5651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5652echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5653 no_cache=0
5654 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5655if test "${enable_fs_inet+set}" = set; then
5656 enableval="$enable_fs_inet"
5657
5658 if test "$enableval" = yes; then
5659 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5660 else
5661 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5662 fi
5663
5664else
5665
5666 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5667 if test "x$LINE" != x ; then
5668 eval "DEFAULT_$LINE"
5669 else
5670 no_cache=1
5671 fi
5672
5673 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5674
5675fi;
5676
5677 eval "$ac_cv_use_fs_inet"
5678 if test "$no_cache" != 1; then
5679 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5680 fi
5681
5682 if test "$wxUSE_FS_INET" = yes; then
5683 echo "$as_me:$LINENO: result: yes" >&5
5684echo "${ECHO_T}yes" >&6
5685 else
5686 echo "$as_me:$LINENO: result: no" >&5
5687echo "${ECHO_T}no" >&6
5688 fi
5689
5690
077c7880 5691 enablestring=
a848cd7e
SC
5692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5693echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5694 no_cache=0
5695 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5696if test "${enable_fs_zip+set}" = set; then
5697 enableval="$enable_fs_zip"
5698
5699 if test "$enableval" = yes; then
5700 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5701 else
5702 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5703 fi
5704
5705else
5706
5707 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5708 if test "x$LINE" != x ; then
5709 eval "DEFAULT_$LINE"
5710 else
5711 no_cache=1
5712 fi
5713
5714 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5715
5716fi;
5717
5718 eval "$ac_cv_use_fs_zip"
5719 if test "$no_cache" != 1; then
5720 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5721 fi
5722
5723 if test "$wxUSE_FS_ZIP" = yes; then
5724 echo "$as_me:$LINENO: result: yes" >&5
5725echo "${ECHO_T}yes" >&6
5726 else
5727 echo "$as_me:$LINENO: result: no" >&5
5728echo "${ECHO_T}no" >&6
5729 fi
5730
5731
077c7880 5732 enablestring=
a848cd7e
SC
5733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5734echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5735 no_cache=0
5736 # Check whether --enable-geometry or --disable-geometry was given.
5737if test "${enable_geometry+set}" = set; then
5738 enableval="$enable_geometry"
5739
5740 if test "$enableval" = yes; then
5741 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5742 else
5743 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5744 fi
5745
5746else
5747
5748 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5749 if test "x$LINE" != x ; then
5750 eval "DEFAULT_$LINE"
5751 else
5752 no_cache=1
5753 fi
5754
5755 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5756
5757fi;
5758
5759 eval "$ac_cv_use_geometry"
5760 if test "$no_cache" != 1; then
5761 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5762 fi
5763
5764 if test "$wxUSE_GEOMETRY" = yes; then
5765 echo "$as_me:$LINENO: result: yes" >&5
5766echo "${ECHO_T}yes" >&6
5767 else
5768 echo "$as_me:$LINENO: result: no" >&5
5769echo "${ECHO_T}no" >&6
5770 fi
5771
5772
077c7880 5773 enablestring=
a848cd7e
SC
5774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5775echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5776 no_cache=0
5777 # Check whether --enable-log or --disable-log was given.
5778if test "${enable_log+set}" = set; then
5779 enableval="$enable_log"
5780
5781 if test "$enableval" = yes; then
5782 ac_cv_use_log='wxUSE_LOG=yes'
5783 else
5784 ac_cv_use_log='wxUSE_LOG=no'
5785 fi
5786
5787else
5788
5789 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5790 if test "x$LINE" != x ; then
5791 eval "DEFAULT_$LINE"
5792 else
5793 no_cache=1
5794 fi
5795
5796 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5797
5798fi;
5799
5800 eval "$ac_cv_use_log"
5801 if test "$no_cache" != 1; then
5802 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5803 fi
5804
5805 if test "$wxUSE_LOG" = yes; then
5806 echo "$as_me:$LINENO: result: yes" >&5
5807echo "${ECHO_T}yes" >&6
5808 else
5809 echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6
5811 fi
5812
5813
077c7880 5814 enablestring=
a848cd7e
SC
5815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5816echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5817 no_cache=0
5818 # Check whether --enable-longlong or --disable-longlong was given.
5819if test "${enable_longlong+set}" = set; then
5820 enableval="$enable_longlong"
5821
5822 if test "$enableval" = yes; then
5823 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5824 else
5825 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5826 fi
5827
5828else
5829
5830 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5831 if test "x$LINE" != x ; then
5832 eval "DEFAULT_$LINE"
5833 else
5834 no_cache=1
5835 fi
5836
5837 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5838
5839fi;
5840
5841 eval "$ac_cv_use_longlong"
5842 if test "$no_cache" != 1; then
5843 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5844 fi
5845
5846 if test "$wxUSE_LONGLONG" = yes; then
5847 echo "$as_me:$LINENO: result: yes" >&5
5848echo "${ECHO_T}yes" >&6
5849 else
5850 echo "$as_me:$LINENO: result: no" >&5
5851echo "${ECHO_T}no" >&6
5852 fi
5853
5854
077c7880 5855 enablestring=
a848cd7e
SC
5856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5857echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5858 no_cache=0
5859 # Check whether --enable-mimetype or --disable-mimetype was given.
5860if test "${enable_mimetype+set}" = set; then
5861 enableval="$enable_mimetype"
5862
5863 if test "$enableval" = yes; then
5864 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5865 else
5866 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5867 fi
5868
5869else
5870
5871 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5872 if test "x$LINE" != x ; then
5873 eval "DEFAULT_$LINE"
5874 else
5875 no_cache=1
5876 fi
5877
5878 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5879
5880fi;
5881
5882 eval "$ac_cv_use_mimetype"
5883 if test "$no_cache" != 1; then
5884 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5885 fi
5886
5887 if test "$wxUSE_MIMETYPE" = yes; then
5888 echo "$as_me:$LINENO: result: yes" >&5
5889echo "${ECHO_T}yes" >&6
5890 else
5891 echo "$as_me:$LINENO: result: no" >&5
5892echo "${ECHO_T}no" >&6
5893 fi
5894
5895
077c7880 5896 enablestring=
a848cd7e
SC
5897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5898echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5899 no_cache=0
5900 # Check whether --enable-mslu or --disable-mslu was given.
5901if test "${enable_mslu+set}" = set; then
5902 enableval="$enable_mslu"
5903
5904 if test "$enableval" = yes; then
5905 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5906 else
5907 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5908 fi
5909
5910else
5911
5912 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5913 if test "x$LINE" != x ; then
5914 eval "DEFAULT_$LINE"
5915 else
5916 no_cache=1
5917 fi
5918
5919 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5920
5921fi;
5922
5923 eval "$ac_cv_use_mslu"
5924 if test "$no_cache" != 1; then
5925 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5926 fi
5927
5928 if test "$wxUSE_UNICODE_MSLU" = yes; then
5929 echo "$as_me:$LINENO: result: yes" >&5
5930echo "${ECHO_T}yes" >&6
5931 else
5932 echo "$as_me:$LINENO: result: no" >&5
5933echo "${ECHO_T}no" >&6
5934 fi
5935
5936
077c7880 5937 enablestring=
a848cd7e
SC
5938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5939echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5940 no_cache=0
5941 # Check whether --enable-snglinst or --disable-snglinst was given.
5942if test "${enable_snglinst+set}" = set; then
5943 enableval="$enable_snglinst"
5944
5945 if test "$enableval" = yes; then
5946 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5947 else
5948 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5949 fi
5950
5951else
5952
5953 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5954 if test "x$LINE" != x ; then
5955 eval "DEFAULT_$LINE"
5956 else
5957 no_cache=1
5958 fi
5959
5960 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5961
5962fi;
5963
5964 eval "$ac_cv_use_snglinst"
5965 if test "$no_cache" != 1; then
5966 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5967 fi
5968
5969 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5970 echo "$as_me:$LINENO: result: yes" >&5
5971echo "${ECHO_T}yes" >&6
5972 else
5973 echo "$as_me:$LINENO: result: no" >&5
5974echo "${ECHO_T}no" >&6
5975 fi
5976
5977
077c7880 5978 enablestring=
07158944
VZ
5979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5980echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5981 no_cache=0
07158944
VZ
5982 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5983if test "${enable_std_iostreams+set}" = set; then
5984 enableval="$enable_std_iostreams"
a848cd7e
SC
5985
5986 if test "$enableval" = yes; then
07158944 5987 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5988 else
07158944 5989 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5990 fi
5991
5992else
5993
07158944 5994 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5995 if test "x$LINE" != x ; then
5996 eval "DEFAULT_$LINE"
5997 else
5998 no_cache=1
5999 fi
6000
07158944 6001 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
6002
6003fi;
6004
07158944 6005 eval "$ac_cv_use_std_iostreams"
a848cd7e 6006 if test "$no_cache" != 1; then
07158944 6007 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6008 fi
6009
07158944 6010 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
6011 echo "$as_me:$LINENO: result: yes" >&5
6012echo "${ECHO_T}yes" >&6
6013 else
6014 echo "$as_me:$LINENO: result: no" >&5
6015echo "${ECHO_T}no" >&6
6016 fi
6017
6018
077c7880 6019 enablestring=
59746b65
MW
6020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
6021echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
6022 no_cache=0
6023 # Check whether --enable-std_string or --disable-std_string was given.
6024if test "${enable_std_string+set}" = set; then
6025 enableval="$enable_std_string"
6026
6027 if test "$enableval" = yes; then
6028 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
6029 else
6030 ac_cv_use_std_string='wxUSE_STD_STRING=no'
6031 fi
6032
6033else
6034
6035 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
6036 if test "x$LINE" != x ; then
6037 eval "DEFAULT_$LINE"
6038 else
6039 no_cache=1
6040 fi
6041
6042 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
6043
6044fi;
6045
6046 eval "$ac_cv_use_std_string"
6047 if test "$no_cache" != 1; then
6048 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
6049 fi
6050
6051 if test "$wxUSE_STD_STRING" = yes; then
6052 echo "$as_me:$LINENO: result: yes" >&5
6053echo "${ECHO_T}yes" >&6
6054 else
6055 echo "$as_me:$LINENO: result: no" >&5
6056echo "${ECHO_T}no" >&6
6057 fi
6058
6059
077c7880 6060 enablestring=
07158944
VZ
6061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
6062echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 6063 no_cache=0
07158944
VZ
6064 # Check whether --enable-stdpaths or --disable-stdpaths was given.
6065if test "${enable_stdpaths+set}" = set; then
6066 enableval="$enable_stdpaths"
a848cd7e
SC
6067
6068 if test "$enableval" = yes; then
07158944 6069 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 6070 else
07158944 6071 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
6072 fi
6073
6074else
6075
07158944 6076 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
6077 if test "x$LINE" != x ; then
6078 eval "DEFAULT_$LINE"
6079 else
6080 no_cache=1
6081 fi
6082
07158944 6083 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
6084
6085fi;
6086
07158944 6087 eval "$ac_cv_use_stdpaths"
a848cd7e 6088 if test "$no_cache" != 1; then
07158944 6089 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6090 fi
6091
07158944 6092 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
6093 echo "$as_me:$LINENO: result: yes" >&5
6094echo "${ECHO_T}yes" >&6
6095 else
6096 echo "$as_me:$LINENO: result: no" >&5
6097echo "${ECHO_T}no" >&6
6098 fi
6099
6100
077c7880 6101 enablestring=
a848cd7e
SC
6102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6103echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6104 no_cache=0
6105 # Check whether --enable-stopwatch or --disable-stopwatch was given.
6106if test "${enable_stopwatch+set}" = set; then
6107 enableval="$enable_stopwatch"
6108
6109 if test "$enableval" = yes; then
6110 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6111 else
6112 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6113 fi
6114
6115else
6116
6117 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6118 if test "x$LINE" != x ; then
6119 eval "DEFAULT_$LINE"
6120 else
6121 no_cache=1
6122 fi
6123
6124 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6125
6126fi;
6127
6128 eval "$ac_cv_use_stopwatch"
6129 if test "$no_cache" != 1; then
6130 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6131 fi
6132
6133 if test "$wxUSE_STOPWATCH" = yes; then
6134 echo "$as_me:$LINENO: result: yes" >&5
6135echo "${ECHO_T}yes" >&6
6136 else
6137 echo "$as_me:$LINENO: result: no" >&5
6138echo "${ECHO_T}no" >&6
6139 fi
6140
6141
077c7880 6142 enablestring=
07158944
VZ
6143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6144echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6145 no_cache=0
6146 # Check whether --enable-streams or --disable-streams was given.
6147if test "${enable_streams+set}" = set; then
6148 enableval="$enable_streams"
6149
6150 if test "$enableval" = yes; then
6151 ac_cv_use_streams='wxUSE_STREAMS=yes'
6152 else
6153 ac_cv_use_streams='wxUSE_STREAMS=no'
6154 fi
6155
6156else
6157
6158 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6159 if test "x$LINE" != x ; then
6160 eval "DEFAULT_$LINE"
6161 else
6162 no_cache=1
6163 fi
6164
6165 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6166
6167fi;
6168
6169 eval "$ac_cv_use_streams"
6170 if test "$no_cache" != 1; then
6171 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6172 fi
6173
6174 if test "$wxUSE_STREAMS" = yes; then
6175 echo "$as_me:$LINENO: result: yes" >&5
6176echo "${ECHO_T}yes" >&6
6177 else
6178 echo "$as_me:$LINENO: result: no" >&5
6179echo "${ECHO_T}no" >&6
6180 fi
6181
6182
077c7880 6183 enablestring=
a848cd7e
SC
6184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6185echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6186 no_cache=0
6187 # Check whether --enable-system_options or --disable-system_options was given.
6188if test "${enable_system_options+set}" = set; then
6189 enableval="$enable_system_options"
6190
6191 if test "$enableval" = yes; then
6192 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6193 else
6194 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6195 fi
6196
6197else
6198
6199 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6200 if test "x$LINE" != x ; then
6201 eval "DEFAULT_$LINE"
6202 else
6203 no_cache=1
6204 fi
6205
6206 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6207
6208fi;
6209
6210 eval "$ac_cv_use_system_options"
6211 if test "$no_cache" != 1; then
6212 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6213 fi
6214
6215 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6216 echo "$as_me:$LINENO: result: yes" >&5
6217echo "${ECHO_T}yes" >&6
6218 else
6219 echo "$as_me:$LINENO: result: no" >&5
6220echo "${ECHO_T}no" >&6
6221 fi
6222
6223
077c7880 6224 enablestring=
26e422a9
MW
6225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
6226echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6
6227 no_cache=0
6228 # Check whether --enable-tarstream or --disable-tarstream was given.
6229if test "${enable_tarstream+set}" = set; then
6230 enableval="$enable_tarstream"
6231
6232 if test "$enableval" = yes; then
6233 ac_cv_use_tarstream='wxUSE_TARSTREAM=yes'
6234 else
6235 ac_cv_use_tarstream='wxUSE_TARSTREAM=no'
6236 fi
6237
6238else
6239
6240 LINE=`grep "wxUSE_TARSTREAM" ${wx_arg_cache_file}`
6241 if test "x$LINE" != x ; then
6242 eval "DEFAULT_$LINE"
6243 else
6244 no_cache=1
6245 fi
6246
6247 ac_cv_use_tarstream='wxUSE_TARSTREAM='$DEFAULT_wxUSE_TARSTREAM
6248
6249fi;
6250
6251 eval "$ac_cv_use_tarstream"
6252 if test "$no_cache" != 1; then
6253 echo $ac_cv_use_tarstream >> ${wx_arg_cache_file}.tmp
6254 fi
6255
6256 if test "$wxUSE_TARSTREAM" = yes; then
6257 echo "$as_me:$LINENO: result: yes" >&5
6258echo "${ECHO_T}yes" >&6
6259 else
6260 echo "$as_me:$LINENO: result: no" >&5
6261echo "${ECHO_T}no" >&6
6262 fi
6263
6264
077c7880 6265 enablestring=
a848cd7e
SC
6266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6267echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6268 no_cache=0
6269 # Check whether --enable-textbuf or --disable-textbuf was given.
6270if test "${enable_textbuf+set}" = set; then
6271 enableval="$enable_textbuf"
6272
6273 if test "$enableval" = yes; then
6274 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6275 else
6276 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6277 fi
6278
6279else
6280
6281 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6282 if test "x$LINE" != x ; then
6283 eval "DEFAULT_$LINE"
6284 else
6285 no_cache=1
6286 fi
6287
6288 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6289
6290fi;
6291
6292 eval "$ac_cv_use_textbuf"
6293 if test "$no_cache" != 1; then
6294 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6295 fi
6296
6297 if test "$wxUSE_TEXTBUFFER" = yes; then
6298 echo "$as_me:$LINENO: result: yes" >&5
6299echo "${ECHO_T}yes" >&6
6300 else
6301 echo "$as_me:$LINENO: result: no" >&5
6302echo "${ECHO_T}no" >&6
6303 fi
6304
6305
077c7880 6306 enablestring=
a848cd7e
SC
6307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6308echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6309 no_cache=0
6310 # Check whether --enable-textfile or --disable-textfile was given.
6311if test "${enable_textfile+set}" = set; then
6312 enableval="$enable_textfile"
6313
6314 if test "$enableval" = yes; then
6315 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6316 else
6317 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6318 fi
6319
6320else
6321
6322 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6323 if test "x$LINE" != x ; then
6324 eval "DEFAULT_$LINE"
6325 else
6326 no_cache=1
6327 fi
6328
6329 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6330
6331fi;
6332
6333 eval "$ac_cv_use_textfile"
6334 if test "$no_cache" != 1; then
6335 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6336 fi
6337
6338 if test "$wxUSE_TEXTFILE" = yes; then
6339 echo "$as_me:$LINENO: result: yes" >&5
6340echo "${ECHO_T}yes" >&6
6341 else
6342 echo "$as_me:$LINENO: result: no" >&5
6343echo "${ECHO_T}no" >&6
6344 fi
6345
6346
077c7880 6347 enablestring=
a848cd7e
SC
6348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6349echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6350 no_cache=0
6351 # Check whether --enable-timer or --disable-timer was given.
6352if test "${enable_timer+set}" = set; then
6353 enableval="$enable_timer"
6354
6355 if test "$enableval" = yes; then
6356 ac_cv_use_timer='wxUSE_TIMER=yes'
6357 else
6358 ac_cv_use_timer='wxUSE_TIMER=no'
6359 fi
6360
6361else
6362
6363 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6364 if test "x$LINE" != x ; then
6365 eval "DEFAULT_$LINE"
6366 else
6367 no_cache=1
6368 fi
6369
6370 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6371
6372fi;
6373
6374 eval "$ac_cv_use_timer"
6375 if test "$no_cache" != 1; then
6376 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6377 fi
6378
6379 if test "$wxUSE_TIMER" = yes; then
6380 echo "$as_me:$LINENO: result: yes" >&5
6381echo "${ECHO_T}yes" >&6
6382 else
6383 echo "$as_me:$LINENO: result: no" >&5
6384echo "${ECHO_T}no" >&6
6385 fi
6386
6387
077c7880 6388 enablestring=
a848cd7e
SC
6389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6390echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6391 no_cache=0
6392 # Check whether --enable-unicode or --disable-unicode was given.
6393if test "${enable_unicode+set}" = set; then
6394 enableval="$enable_unicode"
6395
6396 if test "$enableval" = yes; then
6397 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6398 else
6399 ac_cv_use_unicode='wxUSE_UNICODE=no'
6400 fi
6401
6402else
6403
6404 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6405 if test "x$LINE" != x ; then
6406 eval "DEFAULT_$LINE"
6407 else
6408 no_cache=1
6409 fi
6410
6411 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6412
6413fi;
6414
6415 eval "$ac_cv_use_unicode"
6416 if test "$no_cache" != 1; then
6417 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6418 fi
6419
6420 if test "$wxUSE_UNICODE" = yes; then
6421 echo "$as_me:$LINENO: result: yes" >&5
6422echo "${ECHO_T}yes" >&6
6423 else
6424 echo "$as_me:$LINENO: result: no" >&5
6425echo "${ECHO_T}no" >&6
6426 fi
6427
6428
077c7880 6429 enablestring=
a848cd7e
SC
6430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6431echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6432 no_cache=0
6433 # Check whether --enable-sound or --disable-sound was given.
6434if test "${enable_sound+set}" = set; then
6435 enableval="$enable_sound"
6436
6437 if test "$enableval" = yes; then
6438 ac_cv_use_sound='wxUSE_SOUND=yes'
6439 else
6440 ac_cv_use_sound='wxUSE_SOUND=no'
6441 fi
6442
6443else
6444
6445 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6446 if test "x$LINE" != x ; then
6447 eval "DEFAULT_$LINE"
6448 else
6449 no_cache=1
6450 fi
6451
6452 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6453
6454fi;
6455
6456 eval "$ac_cv_use_sound"
6457 if test "$no_cache" != 1; then
6458 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6459 fi
6460
6461 if test "$wxUSE_SOUND" = yes; then
6462 echo "$as_me:$LINENO: result: yes" >&5
6463echo "${ECHO_T}yes" >&6
6464 else
6465 echo "$as_me:$LINENO: result: no" >&5
6466echo "${ECHO_T}no" >&6
6467 fi
6468
6469
077c7880 6470 enablestring=
3b57de8b
RL
6471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6472echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6473 no_cache=0
6474 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6475if test "${enable_mediactrl+set}" = set; then
6476 enableval="$enable_mediactrl"
6477
6478 if test "$enableval" = yes; then
6479 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6480 else
6481 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6482 fi
6483
6484else
6485
6486 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6487 if test "x$LINE" != x ; then
6488 eval "DEFAULT_$LINE"
6489 else
6490 no_cache=1
6491 fi
6492
6493 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6494
6495fi;
6496
6497 eval "$ac_cv_use_mediactrl"
6498 if test "$no_cache" != 1; then
6499 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6500 fi
6501
6502 if test "$wxUSE_MEDIACTRL" = yes; then
6503 echo "$as_me:$LINENO: result: yes" >&5
6504echo "${ECHO_T}yes" >&6
6505 else
6506 echo "$as_me:$LINENO: result: no" >&5
6507echo "${ECHO_T}no" >&6
6508 fi
6509
6510
077c7880 6511 enablestring=
f10e38c4
VZ
6512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6513echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6514 no_cache=0
6515 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6516if test "${enable_gstreamer8+set}" = set; then
6517 enableval="$enable_gstreamer8"
6518
6519 if test "$enableval" = yes; then
6520 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6521 else
6522 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6523 fi
6524
6525else
6526
6527 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6528 if test "x$LINE" != x ; then
6529 eval "DEFAULT_$LINE"
6530 else
6531 no_cache=1
6532 fi
6533
6534 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6535
6536fi;
6537
6538 eval "$ac_cv_use_gstreamer8"
6539 if test "$no_cache" != 1; then
6540 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6541 fi
6542
6543 if test "$wxUSE_GSTREAMER8" = yes; then
6544 echo "$as_me:$LINENO: result: yes" >&5
6545echo "${ECHO_T}yes" >&6
6546 else
6547 echo "$as_me:$LINENO: result: no" >&5
6548echo "${ECHO_T}no" >&6
6549 fi
6550
6551
077c7880 6552 enablestring=
8b6682b9
JS
6553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6554echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6555 no_cache=0
8b6682b9
JS
6556 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6557if test "${enable_printfposparam+set}" = set; then
6558 enableval="$enable_printfposparam"
a848cd7e
SC
6559
6560 if test "$enableval" = yes; then
8b6682b9 6561 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6562 else
8b6682b9 6563 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6564 fi
6565
6566else
6567
8b6682b9 6568 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6569 if test "x$LINE" != x ; then
6570 eval "DEFAULT_$LINE"
6571 else
6572 no_cache=1
6573 fi
6574
8b6682b9 6575 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6576
6577fi;
6578
8b6682b9 6579 eval "$ac_cv_use_printfposparam"
a848cd7e 6580 if test "$no_cache" != 1; then
8b6682b9 6581 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6582 fi
6583
8b6682b9 6584 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6585 echo "$as_me:$LINENO: result: yes" >&5
6586echo "${ECHO_T}yes" >&6
6587 else
6588 echo "$as_me:$LINENO: result: no" >&5
6589echo "${ECHO_T}no" >&6
6590 fi
6591
6592
077c7880 6593 enablestring=
a848cd7e
SC
6594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6595echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6596 no_cache=0
6597 # Check whether --enable-zipstream or --disable-zipstream was given.
6598if test "${enable_zipstream+set}" = set; then
6599 enableval="$enable_zipstream"
6600
6601 if test "$enableval" = yes; then
6602 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6603 else
6604 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6605 fi
6606
6607else
6608
6609 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6610 if test "x$LINE" != x ; then
6611 eval "DEFAULT_$LINE"
6612 else
6613 no_cache=1
6614 fi
6615
6616 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6617
6618fi;
6619
6620 eval "$ac_cv_use_zipstream"
6621 if test "$no_cache" != 1; then
6622 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6623 fi
6624
6625 if test "$wxUSE_ZIPSTREAM" = yes; then
6626 echo "$as_me:$LINENO: result: yes" >&5
6627echo "${ECHO_T}yes" >&6
6628 else
6629 echo "$as_me:$LINENO: result: no" >&5
6630echo "${ECHO_T}no" >&6
6631 fi
6632
6633
a848cd7e 6634
077c7880 6635 enablestring=
a848cd7e
SC
6636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6637echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6638 no_cache=0
6639 # Check whether --enable-url or --disable-url was given.
6640if test "${enable_url+set}" = set; then
6641 enableval="$enable_url"
6642
6643 if test "$enableval" = yes; then
6644 ac_cv_use_url='wxUSE_URL=yes'
6645 else
6646 ac_cv_use_url='wxUSE_URL=no'
6647 fi
6648
6649else
6650
6651 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6652 if test "x$LINE" != x ; then
6653 eval "DEFAULT_$LINE"
6654 else
6655 no_cache=1
6656 fi
6657
6658 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6659
6660fi;
6661
6662 eval "$ac_cv_use_url"
6663 if test "$no_cache" != 1; then
6664 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6665 fi
6666
6667 if test "$wxUSE_URL" = yes; then
6668 echo "$as_me:$LINENO: result: yes" >&5
6669echo "${ECHO_T}yes" >&6
6670 else
6671 echo "$as_me:$LINENO: result: no" >&5
6672echo "${ECHO_T}no" >&6
6673 fi
6674
6675
077c7880 6676 enablestring=
ca5c6ac3
VZ
6677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6678echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
6679 no_cache=0
6680 # Check whether --enable-variant or --disable-variant was given.
6681if test "${enable_variant+set}" = set; then
6682 enableval="$enable_variant"
6683
6684 if test "$enableval" = yes; then
6685 ac_cv_use_variant='wxUSE_VARIANT=yes'
6686 else
6687 ac_cv_use_variant='wxUSE_VARIANT=no'
6688 fi
6689
6690else
6691
6692 LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6693 if test "x$LINE" != x ; then
6694 eval "DEFAULT_$LINE"
6695 else
6696 no_cache=1
6697 fi
6698
6699 ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6700
6701fi;
6702
6703 eval "$ac_cv_use_variant"
6704 if test "$no_cache" != 1; then
6705 echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
6706 fi
6707
6708 if test "$wxUSE_VARIANT" = yes; then
6709 echo "$as_me:$LINENO: result: yes" >&5
6710echo "${ECHO_T}yes" >&6
6711 else
6712 echo "$as_me:$LINENO: result: no" >&5
6713echo "${ECHO_T}no" >&6
6714 fi
6715
6716
077c7880 6717 enablestring=
a848cd7e
SC
6718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6719echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6720 no_cache=0
6721 # Check whether --enable-protocol or --disable-protocol was given.
6722if test "${enable_protocol+set}" = set; then
6723 enableval="$enable_protocol"
6724
6725 if test "$enableval" = yes; then
6726 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6727 else
6728 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6729 fi
6730
6731else
6732
6733 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6734 if test "x$LINE" != x ; then
6735 eval "DEFAULT_$LINE"
6736 else
6737 no_cache=1
6738 fi
6739
6740 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6741
6742fi;
6743
6744 eval "$ac_cv_use_protocol"
6745 if test "$no_cache" != 1; then
6746 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6747 fi
6748
6749 if test "$wxUSE_PROTOCOL" = yes; then
6750 echo "$as_me:$LINENO: result: yes" >&5
6751echo "${ECHO_T}yes" >&6
6752 else
6753 echo "$as_me:$LINENO: result: no" >&5
6754echo "${ECHO_T}no" >&6
6755 fi
6756
6757
077c7880 6758 enablestring=
a848cd7e
SC
6759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6760echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6761 no_cache=0
6762 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6763if test "${enable_protocol_http+set}" = set; then
6764 enableval="$enable_protocol_http"
6765
6766 if test "$enableval" = yes; then
6767 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6768 else
6769 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6770 fi
6771
6772else
6773
6774 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6775 if test "x$LINE" != x ; then
6776 eval "DEFAULT_$LINE"
6777 else
6778 no_cache=1
6779 fi
6780
6781 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6782
6783fi;
6784
6785 eval "$ac_cv_use_protocol_http"
6786 if test "$no_cache" != 1; then
6787 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6788 fi
6789
6790 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6791 echo "$as_me:$LINENO: result: yes" >&5
6792echo "${ECHO_T}yes" >&6
6793 else
6794 echo "$as_me:$LINENO: result: no" >&5
6795echo "${ECHO_T}no" >&6
6796 fi
6797
6798
077c7880 6799 enablestring=
a848cd7e
SC
6800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6801echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6802 no_cache=0
6803 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6804if test "${enable_protocol_ftp+set}" = set; then
6805 enableval="$enable_protocol_ftp"
6806
6807 if test "$enableval" = yes; then
6808 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6809 else
6810 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6811 fi
6812
6813else
6814
6815 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6816 if test "x$LINE" != x ; then
6817 eval "DEFAULT_$LINE"
6818 else
6819 no_cache=1
6820 fi
6821
6822 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6823
6824fi;
6825
6826 eval "$ac_cv_use_protocol_ftp"
6827 if test "$no_cache" != 1; then
6828 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6829 fi
6830
6831 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6832 echo "$as_me:$LINENO: result: yes" >&5
6833echo "${ECHO_T}yes" >&6
6834 else
6835 echo "$as_me:$LINENO: result: no" >&5
6836echo "${ECHO_T}no" >&6
6837 fi
6838
6839
077c7880 6840 enablestring=
a848cd7e
SC
6841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6842echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6843 no_cache=0
6844 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6845if test "${enable_protocol_file+set}" = set; then
6846 enableval="$enable_protocol_file"
6847
6848 if test "$enableval" = yes; then
6849 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6850 else
6851 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6852 fi
6853
6854else
6855
6856 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6857 if test "x$LINE" != x ; then
6858 eval "DEFAULT_$LINE"
6859 else
6860 no_cache=1
6861 fi
6862
6863 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6864
6865fi;
6866
6867 eval "$ac_cv_use_protocol_file"
6868 if test "$no_cache" != 1; then
6869 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6870 fi
6871
6872 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6873 echo "$as_me:$LINENO: result: yes" >&5
6874echo "${ECHO_T}yes" >&6
6875 else
6876 echo "$as_me:$LINENO: result: no" >&5
6877echo "${ECHO_T}no" >&6
6878 fi
6879
6880
6881
6882
6883
077c7880 6884 enablestring=
a848cd7e
SC
6885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6886echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6887 no_cache=0
6888 # Check whether --enable-threads or --disable-threads was given.
6889if test "${enable_threads+set}" = set; then
6890 enableval="$enable_threads"
6891
6892 if test "$enableval" = yes; then
6893 ac_cv_use_threads='wxUSE_THREADS=yes'
6894 else
6895 ac_cv_use_threads='wxUSE_THREADS=no'
6896 fi
6897
6898else
6899
6900 LINE=`grep "wxUSE_THREADS" ${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_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6908
6909fi;
6910
6911 eval "$ac_cv_use_threads"
6912 if test "$no_cache" != 1; then
6913 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6914 fi
6915
6916 if test "$wxUSE_THREADS" = 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
6925if test "$wxUSE_GUI" = "yes"; then
6926
6927
6928
077c7880 6929 enablestring=
a848cd7e
SC
6930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6931echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6932 no_cache=0
6933 # Check whether --enable-docview or --disable-docview was given.
6934if test "${enable_docview+set}" = set; then
6935 enableval="$enable_docview"
6936
6937 if test "$enableval" = yes; then
6938 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6939 else
6940 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6941 fi
6942
6943else
6944
6945 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6946 if test "x$LINE" != x ; then
6947 eval "DEFAULT_$LINE"
6948 else
6949 no_cache=1
6950 fi
6951
6952 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6953
6954fi;
6955
6956 eval "$ac_cv_use_docview"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6962 echo "$as_me:$LINENO: result: yes" >&5
6963echo "${ECHO_T}yes" >&6
6964 else
6965 echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6
6967 fi
6968
6969
077c7880 6970 enablestring=
a848cd7e
SC
6971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6972echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6973 no_cache=0
6974 # Check whether --enable-help or --disable-help was given.
6975if test "${enable_help+set}" = set; then
6976 enableval="$enable_help"
6977
6978 if test "$enableval" = yes; then
6979 ac_cv_use_help='wxUSE_HELP=yes'
6980 else
6981 ac_cv_use_help='wxUSE_HELP=no'
6982 fi
6983
6984else
6985
6986 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6987 if test "x$LINE" != x ; then
6988 eval "DEFAULT_$LINE"
6989 else
6990 no_cache=1
6991 fi
6992
6993 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6994
6995fi;
6996
6997 eval "$ac_cv_use_help"
6998 if test "$no_cache" != 1; then
6999 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
7000 fi
7001
7002 if test "$wxUSE_HELP" = yes; then
7003 echo "$as_me:$LINENO: result: yes" >&5
7004echo "${ECHO_T}yes" >&6
7005 else
7006 echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6
7008 fi
7009
7010
077c7880 7011 enablestring=
a848cd7e
SC
7012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
7013echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
7014 no_cache=0
7015 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
7016if test "${enable_mshtmlhelp+set}" = set; then
7017 enableval="$enable_mshtmlhelp"
7018
7019 if test "$enableval" = yes; then
7020 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
7021 else
7022 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
7023 fi
7024
7025else
7026
7027 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
7028 if test "x$LINE" != x ; then
7029 eval "DEFAULT_$LINE"
7030 else
7031 no_cache=1
7032 fi
7033
7034 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
7035
7036fi;
7037
7038 eval "$ac_cv_use_mshtmlhelp"
7039 if test "$no_cache" != 1; then
7040 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
7041 fi
7042
7043 if test "$wxUSE_MS_HTML_HELP" = yes; then
7044 echo "$as_me:$LINENO: result: yes" >&5
7045echo "${ECHO_T}yes" >&6
7046 else
7047 echo "$as_me:$LINENO: result: no" >&5
7048echo "${ECHO_T}no" >&6
7049 fi
7050
7051
077c7880 7052 enablestring=
a848cd7e
SC
7053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7054echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7055 no_cache=0
7056 # Check whether --enable-html or --disable-html was given.
7057if test "${enable_html+set}" = set; then
7058 enableval="$enable_html"
7059
7060 if test "$enableval" = yes; then
7061 ac_cv_use_html='wxUSE_HTML=yes'
7062 else
7063 ac_cv_use_html='wxUSE_HTML=no'
7064 fi
7065
7066else
7067
7068 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
7069 if test "x$LINE" != x ; then
7070 eval "DEFAULT_$LINE"
7071 else
7072 no_cache=1
7073 fi
7074
7075 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
7076
7077fi;
7078
7079 eval "$ac_cv_use_html"
7080 if test "$no_cache" != 1; then
7081 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7082 fi
7083
7084 if test "$wxUSE_HTML" = yes; then
7085 echo "$as_me:$LINENO: result: yes" >&5
7086echo "${ECHO_T}yes" >&6
7087 else
7088 echo "$as_me:$LINENO: result: no" >&5
7089echo "${ECHO_T}no" >&6
7090 fi
7091
7092
077c7880 7093 enablestring=
a848cd7e
SC
7094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
7095echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
7096 no_cache=0
7097 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
7098if test "${enable_htmlhelp+set}" = set; then
7099 enableval="$enable_htmlhelp"
7100
7101 if test "$enableval" = yes; then
7102 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
7103 else
7104 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
7105 fi
7106
7107else
7108
7109 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
7110 if test "x$LINE" != x ; then
7111 eval "DEFAULT_$LINE"
7112 else
7113 no_cache=1
7114 fi
7115
7116 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7117
7118fi;
7119
7120 eval "$ac_cv_use_htmlhelp"
7121 if test "$no_cache" != 1; then
7122 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7123 fi
7124
7125 if test "$wxUSE_WXHTML_HELP" = yes; then
7126 echo "$as_me:$LINENO: result: yes" >&5
7127echo "${ECHO_T}yes" >&6
7128 else
7129 echo "$as_me:$LINENO: result: no" >&5
7130echo "${ECHO_T}no" >&6
7131 fi
7132
7133
077c7880 7134 enablestring=
9a8f0513
VS
7135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7136echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
7137 no_cache=0
7138 # Check whether --enable-xrc or --disable-xrc was given.
7139if test "${enable_xrc+set}" = set; then
7140 enableval="$enable_xrc"
7141
7142 if test "$enableval" = yes; then
7143 ac_cv_use_xrc='wxUSE_XRC=yes'
7144 else
7145 ac_cv_use_xrc='wxUSE_XRC=no'
7146 fi
7147
7148else
7149
7150 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7151 if test "x$LINE" != x ; then
7152 eval "DEFAULT_$LINE"
7153 else
7154 no_cache=1
7155 fi
7156
7157 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7158
7159fi;
7160
7161 eval "$ac_cv_use_xrc"
7162 if test "$no_cache" != 1; then
7163 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7164 fi
7165
7166 if test "$wxUSE_XRC" = yes; then
7167 echo "$as_me:$LINENO: result: yes" >&5
7168echo "${ECHO_T}yes" >&6
7169 else
7170 echo "$as_me:$LINENO: result: no" >&5
7171echo "${ECHO_T}no" >&6
7172 fi
7173
7174
077c7880 7175 enablestring=
3f60522a
JS
7176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7177echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7178 no_cache=0
7179 # Check whether --enable-aui or --disable-aui was given.
7180if test "${enable_aui+set}" = set; then
7181 enableval="$enable_aui"
7182
7183 if test "$enableval" = yes; then
7184 ac_cv_use_aui='wxUSE_AUI=yes'
7185 else
7186 ac_cv_use_aui='wxUSE_AUI=no'
7187 fi
7188
7189else
7190
7191 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7192 if test "x$LINE" != x ; then
7193 eval "DEFAULT_$LINE"
7194 else
7195 no_cache=1
7196 fi
7197
7198 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7199
7200fi;
7201
7202 eval "$ac_cv_use_aui"
7203 if test "$no_cache" != 1; then
7204 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7205 fi
7206
7207 if test "$wxUSE_AUI" = yes; then
7208 echo "$as_me:$LINENO: result: yes" >&5
7209echo "${ECHO_T}yes" >&6
7210 else
7211 echo "$as_me:$LINENO: result: no" >&5
7212echo "${ECHO_T}no" >&6
7213 fi
7214
7215
077c7880 7216 enablestring=
a848cd7e
SC
7217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7218echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7219 no_cache=0
7220 # Check whether --enable-constraints or --disable-constraints was given.
7221if test "${enable_constraints+set}" = set; then
7222 enableval="$enable_constraints"
7223
7224 if test "$enableval" = yes; then
7225 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7226 else
7227 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7228 fi
7229
7230else
7231
7232 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7233 if test "x$LINE" != x ; then
7234 eval "DEFAULT_$LINE"
7235 else
7236 no_cache=1
7237 fi
7238
7239 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7240
7241fi;
7242
7243 eval "$ac_cv_use_constraints"
7244 if test "$no_cache" != 1; then
7245 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7246 fi
7247
7248 if test "$wxUSE_CONSTRAINTS" = yes; then
7249 echo "$as_me:$LINENO: result: yes" >&5
7250echo "${ECHO_T}yes" >&6
7251 else
7252 echo "$as_me:$LINENO: result: no" >&5
7253echo "${ECHO_T}no" >&6
7254 fi
7255
7256
077c7880 7257 enablestring=
a848cd7e
SC
7258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7259echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7260 no_cache=0
7261 # Check whether --enable-printarch or --disable-printarch was given.
7262if test "${enable_printarch+set}" = set; then
7263 enableval="$enable_printarch"
7264
7265 if test "$enableval" = yes; then
7266 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7267 else
7268 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7269 fi
7270
7271else
7272
7273 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7274 if test "x$LINE" != x ; then
7275 eval "DEFAULT_$LINE"
7276 else
7277 no_cache=1
7278 fi
7279
7280 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7281
7282fi;
7283
7284 eval "$ac_cv_use_printarch"
7285 if test "$no_cache" != 1; then
7286 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7287 fi
7288
7289 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7290 echo "$as_me:$LINENO: result: yes" >&5
7291echo "${ECHO_T}yes" >&6
7292 else
7293 echo "$as_me:$LINENO: result: no" >&5
7294echo "${ECHO_T}no" >&6
7295 fi
7296
7297
077c7880 7298 enablestring=
a848cd7e
SC
7299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7300echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7301 no_cache=0
7302 # Check whether --enable-mdi or --disable-mdi was given.
7303if test "${enable_mdi+set}" = set; then
7304 enableval="$enable_mdi"
7305
7306 if test "$enableval" = yes; then
8a7b1113 7307 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7308 else
8a7b1113 7309 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7310 fi
7311
7312else
7313
8a7b1113 7314 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7315 if test "x$LINE" != x ; then
7316 eval "DEFAULT_$LINE"
7317 else
7318 no_cache=1
7319 fi
7320
8a7b1113 7321 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7322
7323fi;
7324
7325 eval "$ac_cv_use_mdi"
7326 if test "$no_cache" != 1; then
7327 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7328 fi
7329
8a7b1113
VZ
7330 if test "$wxUSE_MDI" = yes; then
7331 echo "$as_me:$LINENO: result: yes" >&5
7332echo "${ECHO_T}yes" >&6
7333 else
7334 echo "$as_me:$LINENO: result: no" >&5
7335echo "${ECHO_T}no" >&6
7336 fi
7337
7338
077c7880 7339 enablestring=
8a7b1113
VZ
7340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7341echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7342 no_cache=0
7343 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7344if test "${enable_mdidoc+set}" = set; then
7345 enableval="$enable_mdidoc"
7346
7347 if test "$enableval" = yes; then
7348 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7349 else
7350 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7351 fi
7352
7353else
7354
7355 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7356 if test "x$LINE" != x ; then
7357 eval "DEFAULT_$LINE"
7358 else
7359 no_cache=1
7360 fi
7361
7362 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7363
7364fi;
7365
7366 eval "$ac_cv_use_mdidoc"
7367 if test "$no_cache" != 1; then
7368 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7369 fi
7370
a848cd7e
SC
7371 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7372 echo "$as_me:$LINENO: result: yes" >&5
7373echo "${ECHO_T}yes" >&6
7374 else
7375 echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6
7377 fi
7378
7379
077c7880 7380 enablestring=
a848cd7e
SC
7381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7382echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7383 no_cache=0
7384 # Check whether --enable-loggui or --disable-loggui was given.
7385if test "${enable_loggui+set}" = set; then
7386 enableval="$enable_loggui"
7387
7388 if test "$enableval" = yes; then
7389 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7390 else
7391 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7392 fi
7393
7394else
7395
7396 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7397 if test "x$LINE" != x ; then
7398 eval "DEFAULT_$LINE"
7399 else
7400 no_cache=1
7401 fi
7402
7403 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7404
7405fi;
7406
7407 eval "$ac_cv_use_loggui"
7408 if test "$no_cache" != 1; then
7409 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7410 fi
7411
7412 if test "$wxUSE_LOGGUI" = yes; then
7413 echo "$as_me:$LINENO: result: yes" >&5
7414echo "${ECHO_T}yes" >&6
7415 else
7416 echo "$as_me:$LINENO: result: no" >&5
7417echo "${ECHO_T}no" >&6
7418 fi
7419
7420
077c7880 7421 enablestring=
a848cd7e
SC
7422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7423echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7424 no_cache=0
7425 # Check whether --enable-logwin or --disable-logwin was given.
7426if test "${enable_logwin+set}" = set; then
7427 enableval="$enable_logwin"
7428
7429 if test "$enableval" = yes; then
7430 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7431 else
7432 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7433 fi
7434
7435else
7436
7437 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7438 if test "x$LINE" != x ; then
7439 eval "DEFAULT_$LINE"
7440 else
7441 no_cache=1
7442 fi
7443
7444 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7445
7446fi;
7447
7448 eval "$ac_cv_use_logwin"
7449 if test "$no_cache" != 1; then
7450 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7451 fi
7452
7453 if test "$wxUSE_LOGWINDOW" = yes; then
7454 echo "$as_me:$LINENO: result: yes" >&5
7455echo "${ECHO_T}yes" >&6
7456 else
7457 echo "$as_me:$LINENO: result: no" >&5
7458echo "${ECHO_T}no" >&6
7459 fi
7460
7461
077c7880 7462 enablestring=
a848cd7e
SC
7463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7464echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7465 no_cache=0
7466 # Check whether --enable-logdialog or --disable-logdialog was given.
7467if test "${enable_logdialog+set}" = set; then
7468 enableval="$enable_logdialog"
7469
7470 if test "$enableval" = yes; then
7471 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7472 else
7473 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7474 fi
7475
7476else
7477
7478 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7479 if test "x$LINE" != x ; then
7480 eval "DEFAULT_$LINE"
7481 else
7482 no_cache=1
7483 fi
7484
7485 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7486
7487fi;
7488
7489 eval "$ac_cv_use_logdialog"
7490 if test "$no_cache" != 1; then
7491 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7492 fi
7493
7494 if test "$wxUSE_LOGDIALOG" = yes; then
7495 echo "$as_me:$LINENO: result: yes" >&5
7496echo "${ECHO_T}yes" >&6
7497 else
7498 echo "$as_me:$LINENO: result: no" >&5
7499echo "${ECHO_T}no" >&6
7500 fi
7501
7502
077c7880 7503 enablestring=
646b6ec1
VS
7504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7505echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7506 no_cache=0
7507 # Check whether --enable-webkit or --disable-webkit was given.
7508if test "${enable_webkit+set}" = set; then
7509 enableval="$enable_webkit"
7510
7511 if test "$enableval" = yes; then
7512 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7513 else
7514 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7515 fi
7516
7517else
7518
7519 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7520 if test "x$LINE" != x ; then
7521 eval "DEFAULT_$LINE"
7522 else
7523 no_cache=1
7524 fi
7525
7526 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7527
7528fi;
7529
7530 eval "$ac_cv_use_webkit"
7531 if test "$no_cache" != 1; then
7532 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7533 fi
7534
7535 if test "$wxUSE_WEBKIT" = yes; then
7536 echo "$as_me:$LINENO: result: yes" >&5
7537echo "${ECHO_T}yes" >&6
7538 else
7539 echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6
7541 fi
7542
7543
077c7880 7544 enablestring=
6da4ac91
VZ
7545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
7546echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6
91dea314 7547 no_cache=0
6da4ac91
VZ
7548 # Check whether --enable-richtext or --disable-richtext was given.
7549if test "${enable_richtext+set}" = set; then
7550 enableval="$enable_richtext"
91dea314
MW
7551
7552 if test "$enableval" = yes; then
6da4ac91 7553 ac_cv_use_richtext='wxUSE_RICHTEXT=yes'
91dea314 7554 else
6da4ac91 7555 ac_cv_use_richtext='wxUSE_RICHTEXT=no'
91dea314
MW
7556 fi
7557
7558else
7559
7560 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7561 if test "x$LINE" != x ; then
7562 eval "DEFAULT_$LINE"
7563 else
7564 no_cache=1
7565 fi
7566
6da4ac91 7567 ac_cv_use_richtext='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
91dea314
MW
7568
7569fi;
7570
6da4ac91 7571 eval "$ac_cv_use_richtext"
91dea314 7572 if test "$no_cache" != 1; then
6da4ac91 7573 echo $ac_cv_use_richtext >> ${wx_arg_cache_file}.tmp
91dea314
MW
7574 fi
7575
7576 if test "$wxUSE_RICHTEXT" = yes; then
7577 echo "$as_me:$LINENO: result: yes" >&5
7578echo "${ECHO_T}yes" >&6
7579 else
7580 echo "$as_me:$LINENO: result: no" >&5
7581echo "${ECHO_T}no" >&6
7582 fi
7583
7584
077c7880 7585 enablestring=
f43426c1
RD
7586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
7587echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6
7588 no_cache=0
7589 # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given.
7590if test "${enable_graphics_ctx+set}" = set; then
7591 enableval="$enable_graphics_ctx"
7592
7593 if test "$enableval" = yes; then
7594 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
7595 else
7596 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
7597 fi
7598
7599else
7600
7601 LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
7602 if test "x$LINE" != x ; then
7603 eval "DEFAULT_$LINE"
7604 else
7605 no_cache=1
7606 fi
7607
7608 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
7609
7610fi;
7611
7612 eval "$ac_cv_use_graphics_ctx"
7613 if test "$no_cache" != 1; then
7614 echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
7615 fi
7616
7617 if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
7618 echo "$as_me:$LINENO: result: yes" >&5
7619echo "${ECHO_T}yes" >&6
7620 else
7621 echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6
7623 fi
7624
7625
a848cd7e 7626
077c7880 7627 enablestring=
a848cd7e
SC
7628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7629echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7630 no_cache=0
7631 # Check whether --enable-postscript or --disable-postscript was given.
7632if test "${enable_postscript+set}" = set; then
7633 enableval="$enable_postscript"
7634
7635 if test "$enableval" = yes; then
7636 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7637 else
7638 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7639 fi
7640
7641else
7642
7643 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7644 if test "x$LINE" != x ; then
7645 eval "DEFAULT_$LINE"
7646 else
7647 no_cache=1
7648 fi
7649
7650 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7651
7652fi;
7653
7654 eval "$ac_cv_use_postscript"
7655 if test "$no_cache" != 1; then
7656 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7657 fi
7658
7659 if test "$wxUSE_POSTSCRIPT" = yes; then
7660 echo "$as_me:$LINENO: result: yes" >&5
7661echo "${ECHO_T}yes" >&6
7662 else
7663 echo "$as_me:$LINENO: result: no" >&5
7664echo "${ECHO_T}no" >&6
7665 fi
7666
7667
7668
7669
7670
077c7880 7671 enablestring=
a848cd7e
SC
7672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7673echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7674 no_cache=0
7675 # Check whether --enable-prologio or --disable-prologio was given.
7676if test "${enable_prologio+set}" = set; then
7677 enableval="$enable_prologio"
7678
7679 if test "$enableval" = yes; then
7680 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7681 else
7682 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7683 fi
7684
7685else
7686
7687 LINE=`grep "wxUSE_PROLOGIO" ${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_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7695
7696fi;
7697
7698 eval "$ac_cv_use_prologio"
7699 if test "$no_cache" != 1; then
7700 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7701 fi
7702
7703 if test "$wxUSE_PROLOGIO" = 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
077c7880 7712 enablestring=
a848cd7e
SC
7713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7714echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7715 no_cache=0
7716 # Check whether --enable-resources or --disable-resources was given.
7717if test "${enable_resources+set}" = set; then
7718 enableval="$enable_resources"
7719
7720 if test "$enableval" = yes; then
7721 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7722 else
7723 ac_cv_use_resources='wxUSE_RESOURCES=no'
7724 fi
7725
7726else
7727
7728 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7729 if test "x$LINE" != x ; then
7730 eval "DEFAULT_$LINE"
7731 else
7732 no_cache=1
7733 fi
7734
7735 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7736
7737fi;
7738
7739 eval "$ac_cv_use_resources"
7740 if test "$no_cache" != 1; then
7741 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7742 fi
7743
7744 if test "$wxUSE_RESOURCES" = yes; then
7745 echo "$as_me:$LINENO: result: yes" >&5
7746echo "${ECHO_T}yes" >&6
7747 else
7748 echo "$as_me:$LINENO: result: no" >&5
7749echo "${ECHO_T}no" >&6
7750 fi
7751
7752
7753
7754
077c7880 7755 enablestring=
a848cd7e
SC
7756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7757echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7758 no_cache=0
7759 # Check whether --enable-clipboard or --disable-clipboard was given.
7760if test "${enable_clipboard+set}" = set; then
7761 enableval="$enable_clipboard"
7762
7763 if test "$enableval" = yes; then
7764 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7765 else
7766 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7767 fi
7768
7769else
7770
7771 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7772 if test "x$LINE" != x ; then
7773 eval "DEFAULT_$LINE"
7774 else
7775 no_cache=1
7776 fi
7777
7778 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7779
7780fi;
7781
7782 eval "$ac_cv_use_clipboard"
7783 if test "$no_cache" != 1; then
7784 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7785 fi
7786
7787 if test "$wxUSE_CLIPBOARD" = yes; then
7788 echo "$as_me:$LINENO: result: yes" >&5
7789echo "${ECHO_T}yes" >&6
7790 else
7791 echo "$as_me:$LINENO: result: no" >&5
7792echo "${ECHO_T}no" >&6
7793 fi
7794
7795
077c7880 7796 enablestring=
a848cd7e
SC
7797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7798echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7799 no_cache=0
7800 # Check whether --enable-dnd or --disable-dnd was given.
7801if test "${enable_dnd+set}" = set; then
7802 enableval="$enable_dnd"
7803
7804 if test "$enableval" = yes; then
7805 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7806 else
7807 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7808 fi
7809
7810else
7811
7812 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7813 if test "x$LINE" != x ; then
7814 eval "DEFAULT_$LINE"
7815 else
7816 no_cache=1
7817 fi
7818
7819 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7820
7821fi;
7822
7823 eval "$ac_cv_use_dnd"
7824 if test "$no_cache" != 1; then
7825 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7826 fi
7827
7828 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7829 echo "$as_me:$LINENO: result: yes" >&5
7830echo "${ECHO_T}yes" >&6
7831 else
7832 echo "$as_me:$LINENO: result: no" >&5
7833echo "${ECHO_T}no" >&6
7834 fi
7835
7836
077c7880 7837 enablestring=
a848cd7e
SC
7838 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7839echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7840 no_cache=0
7841 # Check whether --enable-metafile or --disable-metafile was given.
7842if test "${enable_metafile+set}" = set; then
7843 enableval="$enable_metafile"
7844
7845 if test "$enableval" = yes; then
7846 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7847 else
7848 ac_cv_use_metafile='wxUSE_METAFILE=no'
7849 fi
7850
7851else
7852
7853 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7854 if test "x$LINE" != x ; then
7855 eval "DEFAULT_$LINE"
7856 else
7857 no_cache=1
7858 fi
7859
7860 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7861
7862fi;
7863
7864 eval "$ac_cv_use_metafile"
7865 if test "$no_cache" != 1; then
7866 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7867 fi
7868
7869 if test "$wxUSE_METAFILE" = yes; then
7870 echo "$as_me:$LINENO: result: yes" >&5
7871echo "${ECHO_T}yes" >&6
7872 else
7873 echo "$as_me:$LINENO: result: no" >&5
7874echo "${ECHO_T}no" >&6
7875 fi
7876
7877
7878
7879
7880
077c7880 7881 enablestring=
a848cd7e
SC
7882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7883echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7884 no_cache=0
7885 # Check whether --enable-controls or --disable-controls was given.
7886if test "${enable_controls+set}" = set; then
7887 enableval="$enable_controls"
7888
7889 if test "$enableval" = yes; then
7890 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7891 else
7892 ac_cv_use_controls='wxUSE_CONTROLS=no'
7893 fi
7894
7895else
7896
7897 LINE=`grep "wxUSE_CONTROLS" ${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_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7905
7906fi;
7907
7908 eval "$ac_cv_use_controls"
7909 if test "$no_cache" != 1; then
7910 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7911 fi
7912
7913 if test "$wxUSE_CONTROLS" = 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
7922if test "$wxUSE_CONTROLS" = "yes"; then
7923 DEFAULT_wxUSE_ACCEL=yes
3ea50042 7924 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
7925 DEFAULT_wxUSE_BMPBUTTON=yes
7926 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7927 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7928 DEFAULT_wxUSE_CARET=yes
7929 DEFAULT_wxUSE_COMBOBOX=yes
7930 DEFAULT_wxUSE_CHECKBOX=yes
7931 DEFAULT_wxUSE_CHECKLISTBOX=yes
7932 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7933 DEFAULT_wxUSE_CHOICEBOOK=yes
bd915ace 7934 DEFAULT_wxUSE_COLLPANE=yes
e9263684
VZ
7935 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7936 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7937 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684 7938 DEFAULT_wxUSE_DISPLAY=yes
88bbc332 7939 DEFAULT_wxUSE_DETECT_SM=yes
e9263684
VZ
7940 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7941 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7942 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7943 DEFAULT_wxUSE_GAUGE=yes
7944 DEFAULT_wxUSE_GRID=yes
6954625c 7945 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7946 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7947 DEFAULT_wxUSE_IMAGLIST=yes
7948 DEFAULT_wxUSE_LISTBOOK=yes
7949 DEFAULT_wxUSE_LISTBOX=yes
7950 DEFAULT_wxUSE_LISTCTRL=yes
7951 DEFAULT_wxUSE_NOTEBOOK=yes
7952 DEFAULT_wxUSE_RADIOBOX=yes
7953 DEFAULT_wxUSE_RADIOBTN=yes
7954 DEFAULT_wxUSE_SASH=yes
7955 DEFAULT_wxUSE_SCROLLBAR=yes
7956 DEFAULT_wxUSE_SLIDER=yes
7957 DEFAULT_wxUSE_SPINBTN=yes
7958 DEFAULT_wxUSE_SPINCTRL=yes
7959 DEFAULT_wxUSE_SPLITTER=yes
7960 DEFAULT_wxUSE_STATBMP=yes
7961 DEFAULT_wxUSE_STATBOX=yes
7962 DEFAULT_wxUSE_STATLINE=yes
7963 DEFAULT_wxUSE_STATUSBAR=yes
7964 DEFAULT_wxUSE_TAB_DIALOG=yes
7965 DEFAULT_wxUSE_TOGGLEBTN=yes
7966 DEFAULT_wxUSE_TOOLBAR=yes
7967 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
a848cd7e 7968 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7969 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7970 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7971 DEFAULT_wxUSE_TREECTRL=yes
7972 DEFAULT_wxUSE_POPUPWIN=yes
7973 DEFAULT_wxUSE_TIPWINDOW=yes
7974elif test "$wxUSE_CONTROLS" = "no"; then
7975 DEFAULT_wxUSE_ACCEL=no
3ea50042 7976 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
7977 DEFAULT_wxUSE_BMPBUTTON=no
7978 DEFAULT_wxUSE_BUTTON=no
7979 DEFAULT_wxUSE_CALCTRL=no
7980 DEFAULT_wxUSE_CARET=no
bd915ace 7981 DEFAULT_wxUSE_COLLPANE=no
a848cd7e
SC
7982 DEFAULT_wxUSE_COMBOBOX=no
7983 DEFAULT_wxUSE_CHECKBOX=no
7984 DEFAULT_wxUSE_CHECKLISTBOX=no
7985 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7986 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7987 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7988 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7989 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684 7990 DEFAULT_wxUSE_DISPLAY=no
88bbc332 7991 DEFAULT_wxUSE_DETECT_SM=no
e9263684
VZ
7992 DEFAULT_wxUSE_DIRPICKERCTRL=no
7993 DEFAULT_wxUSE_FILEPICKERCTRL=no
7994 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7995 DEFAULT_wxUSE_GAUGE=no
7996 DEFAULT_wxUSE_GRID=no
6954625c 7997 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7998 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7999 DEFAULT_wxUSE_IMAGLIST=no
8000 DEFAULT_wxUSE_LISTBOOK=no
8001 DEFAULT_wxUSE_LISTBOX=no
8002 DEFAULT_wxUSE_LISTCTRL=no
8003 DEFAULT_wxUSE_NOTEBOOK=no
8004 DEFAULT_wxUSE_RADIOBOX=no
8005 DEFAULT_wxUSE_RADIOBTN=no
8006 DEFAULT_wxUSE_SASH=no
8007 DEFAULT_wxUSE_SCROLLBAR=no
8008 DEFAULT_wxUSE_SLIDER=no
8009 DEFAULT_wxUSE_SPINBTN=no
8010 DEFAULT_wxUSE_SPINCTRL=no
8011 DEFAULT_wxUSE_SPLITTER=no
8012 DEFAULT_wxUSE_STATBMP=no
8013 DEFAULT_wxUSE_STATBOX=no
8014 DEFAULT_wxUSE_STATLINE=no
8015 DEFAULT_wxUSE_STATUSBAR=no
8016 DEFAULT_wxUSE_TAB_DIALOG=no
8017 DEFAULT_wxUSE_TOGGLEBTN=no
8018 DEFAULT_wxUSE_TOOLBAR=no
8019 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
a848cd7e 8020 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 8021 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 8022 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
8023 DEFAULT_wxUSE_TREECTRL=no
8024 DEFAULT_wxUSE_POPUPWIN=no
8025 DEFAULT_wxUSE_TIPWINDOW=no
8026fi
8027
a848cd7e 8028
077c7880 8029 enablestring=
a848cd7e
SC
8030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
8031echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
8032 no_cache=0
8033 # Check whether --enable-accel or --disable-accel was given.
8034if test "${enable_accel+set}" = set; then
8035 enableval="$enable_accel"
8036
8037 if test "$enableval" = yes; then
8038 ac_cv_use_accel='wxUSE_ACCEL=yes'
8039 else
8040 ac_cv_use_accel='wxUSE_ACCEL=no'
8041 fi
8042
8043else
8044
8045 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
8046 if test "x$LINE" != x ; then
8047 eval "DEFAULT_$LINE"
8048 else
8049 no_cache=1
8050 fi
8051
8052 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
8053
8054fi;
8055
8056 eval "$ac_cv_use_accel"
8057 if test "$no_cache" != 1; then
8058 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
8059 fi
8060
8061 if test "$wxUSE_ACCEL" = yes; then
8062 echo "$as_me:$LINENO: result: yes" >&5
8063echo "${ECHO_T}yes" >&6
8064 else
8065 echo "$as_me:$LINENO: result: no" >&5
8066echo "${ECHO_T}no" >&6
8067 fi
8068
8069
077c7880 8070 enablestring=
3ea50042
VZ
8071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
8072echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6
8073 no_cache=0
8074 # Check whether --enable-animatectrl or --disable-animatectrl was given.
8075if test "${enable_animatectrl+set}" = set; then
8076 enableval="$enable_animatectrl"
8077
8078 if test "$enableval" = yes; then
8079 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
8080 else
8081 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
8082 fi
8083
8084else
8085
8086 LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}`
8087 if test "x$LINE" != x ; then
8088 eval "DEFAULT_$LINE"
8089 else
8090 no_cache=1
8091 fi
8092
8093 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
8094
8095fi;
8096
8097 eval "$ac_cv_use_animatectrl"
8098 if test "$no_cache" != 1; then
8099 echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
8100 fi
8101
8102 if test "$wxUSE_ANIMATIONCTRL" = yes; then
8103 echo "$as_me:$LINENO: result: yes" >&5
8104echo "${ECHO_T}yes" >&6
8105 else
8106 echo "$as_me:$LINENO: result: no" >&5
8107echo "${ECHO_T}no" >&6
8108 fi
8109
8110
077c7880 8111 enablestring=
a848cd7e
SC
8112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
8113echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
8114 no_cache=0
8115 # Check whether --enable-button or --disable-button was given.
8116if test "${enable_button+set}" = set; then
8117 enableval="$enable_button"
8118
8119 if test "$enableval" = yes; then
8120 ac_cv_use_button='wxUSE_BUTTON=yes'
8121 else
8122 ac_cv_use_button='wxUSE_BUTTON=no'
8123 fi
8124
8125else
8126
8127 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
8128 if test "x$LINE" != x ; then
8129 eval "DEFAULT_$LINE"
8130 else
8131 no_cache=1
8132 fi
8133
8134 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
8135
8136fi;
8137
8138 eval "$ac_cv_use_button"
8139 if test "$no_cache" != 1; then
8140 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
8141 fi
8142
8143 if test "$wxUSE_BUTTON" = yes; then
8144 echo "$as_me:$LINENO: result: yes" >&5
8145echo "${ECHO_T}yes" >&6
8146 else
8147 echo "$as_me:$LINENO: result: no" >&5
8148echo "${ECHO_T}no" >&6
8149 fi
8150
8151
077c7880 8152 enablestring=
a848cd7e
SC
8153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
8154echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
8155 no_cache=0
8156 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
8157if test "${enable_bmpbutton+set}" = set; then
8158 enableval="$enable_bmpbutton"
8159
8160 if test "$enableval" = yes; then
8161 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8162 else
8163 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8164 fi
8165
8166else
8167
8168 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8169 if test "x$LINE" != x ; then
8170 eval "DEFAULT_$LINE"
8171 else
8172 no_cache=1
8173 fi
8174
8175 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8176
8177fi;
8178
8179 eval "$ac_cv_use_bmpbutton"
8180 if test "$no_cache" != 1; then
8181 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8182 fi
8183
8184 if test "$wxUSE_BMPBUTTON" = yes; then
8185 echo "$as_me:$LINENO: result: yes" >&5
8186echo "${ECHO_T}yes" >&6
8187 else
8188 echo "$as_me:$LINENO: result: no" >&5
8189echo "${ECHO_T}no" >&6
8190 fi
8191
8192
077c7880 8193 enablestring=
95a46303
RR
8194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8195echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
8196 no_cache=0
8197 # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
8198if test "${enable_bmpcombobox+set}" = set; then
8199 enableval="$enable_bmpcombobox"
8200
8201 if test "$enableval" = yes; then
8202 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8203 else
8204 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8205 fi
8206
8207else
8208
8209 LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8210 if test "x$LINE" != x ; then
8211 eval "DEFAULT_$LINE"
8212 else
8213 no_cache=1
8214 fi
8215
8216 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8217
8218fi;
8219
8220 eval "$ac_cv_use_bmpcombobox"
8221 if test "$no_cache" != 1; then
8222 echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8223 fi
8224
8225 if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8226 echo "$as_me:$LINENO: result: yes" >&5
8227echo "${ECHO_T}yes" >&6
8228 else
8229 echo "$as_me:$LINENO: result: no" >&5
8230echo "${ECHO_T}no" >&6
8231 fi
8232
8233
077c7880 8234 enablestring=
a848cd7e
SC
8235 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8236echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
8237 no_cache=0
8238 # Check whether --enable-calendar or --disable-calendar was given.
8239if test "${enable_calendar+set}" = set; then
8240 enableval="$enable_calendar"
8241
8242 if test "$enableval" = yes; then
8243 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8244 else
8245 ac_cv_use_calendar='wxUSE_CALCTRL=no'
8246 fi
8247
8248else
8249
8250 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8251 if test "x$LINE" != x ; then
8252 eval "DEFAULT_$LINE"
8253 else
8254 no_cache=1
8255 fi
8256
8257 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8258
8259fi;
8260
8261 eval "$ac_cv_use_calendar"
8262 if test "$no_cache" != 1; then
8263 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8264 fi
8265
8266 if test "$wxUSE_CALCTRL" = yes; then
8267 echo "$as_me:$LINENO: result: yes" >&5
8268echo "${ECHO_T}yes" >&6
8269 else
8270 echo "$as_me:$LINENO: result: no" >&5
8271echo "${ECHO_T}no" >&6
8272 fi
8273
8274
077c7880 8275 enablestring=
a848cd7e
SC
8276 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8277echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
8278 no_cache=0
8279 # Check whether --enable-caret or --disable-caret was given.
8280if test "${enable_caret+set}" = set; then
8281 enableval="$enable_caret"
8282
8283 if test "$enableval" = yes; then
8284 ac_cv_use_caret='wxUSE_CARET=yes'
8285 else
8286 ac_cv_use_caret='wxUSE_CARET=no'
8287 fi
8288
8289else
8290
8291 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8292 if test "x$LINE" != x ; then
8293 eval "DEFAULT_$LINE"
8294 else
8295 no_cache=1
8296 fi
8297
8298 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8299
8300fi;
8301
8302 eval "$ac_cv_use_caret"
8303 if test "$no_cache" != 1; then
8304 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8305 fi
8306
8307 if test "$wxUSE_CARET" = yes; then
8308 echo "$as_me:$LINENO: result: yes" >&5
8309echo "${ECHO_T}yes" >&6
8310 else
8311 echo "$as_me:$LINENO: result: no" >&5
8312echo "${ECHO_T}no" >&6
8313 fi
8314
8315
077c7880 8316 enablestring=
a848cd7e
SC
8317 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8318echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8319 no_cache=0
8320 # Check whether --enable-checkbox or --disable-checkbox was given.
8321if test "${enable_checkbox+set}" = set; then
8322 enableval="$enable_checkbox"
8323
8324 if test "$enableval" = yes; then
8325 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8326 else
8327 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8328 fi
8329
8330else
8331
8332 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8333 if test "x$LINE" != x ; then
8334 eval "DEFAULT_$LINE"
8335 else
8336 no_cache=1
8337 fi
8338
8339 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8340
8341fi;
8342
8343 eval "$ac_cv_use_checkbox"
8344 if test "$no_cache" != 1; then
8345 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8346 fi
8347
8348 if test "$wxUSE_CHECKBOX" = yes; then
8349 echo "$as_me:$LINENO: result: yes" >&5
8350echo "${ECHO_T}yes" >&6
8351 else
8352 echo "$as_me:$LINENO: result: no" >&5
8353echo "${ECHO_T}no" >&6
8354 fi
8355
8356
077c7880 8357 enablestring=
a848cd7e
SC
8358 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8359echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8360 no_cache=0
8361 # Check whether --enable-checklst or --disable-checklst was given.
8362if test "${enable_checklst+set}" = set; then
8363 enableval="$enable_checklst"
8364
8365 if test "$enableval" = yes; then
8366 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8367 else
8368 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8369 fi
8370
8371else
8372
8373 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8374 if test "x$LINE" != x ; then
8375 eval "DEFAULT_$LINE"
8376 else
8377 no_cache=1
8378 fi
8379
8380 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8381
8382fi;
8383
8384 eval "$ac_cv_use_checklst"
8385 if test "$no_cache" != 1; then
8386 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8387 fi
8388
8389 if test "$wxUSE_CHECKLST" = yes; then
8390 echo "$as_me:$LINENO: result: yes" >&5
8391echo "${ECHO_T}yes" >&6
8392 else
8393 echo "$as_me:$LINENO: result: no" >&5
8394echo "${ECHO_T}no" >&6
8395 fi
8396
8397
077c7880 8398 enablestring=
a848cd7e
SC
8399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8400echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8401 no_cache=0
8402 # Check whether --enable-choice or --disable-choice was given.
8403if test "${enable_choice+set}" = set; then
8404 enableval="$enable_choice"
8405
8406 if test "$enableval" = yes; then
8407 ac_cv_use_choice='wxUSE_CHOICE=yes'
8408 else
8409 ac_cv_use_choice='wxUSE_CHOICE=no'
8410 fi
8411
8412else
8413
8414 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8415 if test "x$LINE" != x ; then
8416 eval "DEFAULT_$LINE"
8417 else
8418 no_cache=1
8419 fi
8420
8421 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8422
8423fi;
8424
8425 eval "$ac_cv_use_choice"
8426 if test "$no_cache" != 1; then
8427 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8428 fi
8429
8430 if test "$wxUSE_CHOICE" = yes; then
8431 echo "$as_me:$LINENO: result: yes" >&5
8432echo "${ECHO_T}yes" >&6
8433 else
8434 echo "$as_me:$LINENO: result: no" >&5
8435echo "${ECHO_T}no" >&6
8436 fi
8437
8438
077c7880 8439 enablestring=
92bbdbcd
WS
8440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8441echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8442 no_cache=0
8443 # Check whether --enable-choicebook or --disable-choicebook was given.
8444if test "${enable_choicebook+set}" = set; then
8445 enableval="$enable_choicebook"
8446
8447 if test "$enableval" = yes; then
8448 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8449 else
8450 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8451 fi
8452
8453else
8454
8455 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8456 if test "x$LINE" != x ; then
8457 eval "DEFAULT_$LINE"
8458 else
8459 no_cache=1
8460 fi
8461
8462 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8463
8464fi;
8465
8466 eval "$ac_cv_use_choicebook"
8467 if test "$no_cache" != 1; then
8468 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8469 fi
8470
8471 if test "$wxUSE_CHOICEBOOK" = yes; then
8472 echo "$as_me:$LINENO: result: yes" >&5
8473echo "${ECHO_T}yes" >&6
8474 else
8475 echo "$as_me:$LINENO: result: no" >&5
8476echo "${ECHO_T}no" >&6
8477 fi
8478
8479
077c7880 8480 enablestring=
bd915ace
RR
8481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
8482echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6
8483 no_cache=0
8484 # Check whether --enable-collpane or --disable-collpane was given.
8485if test "${enable_collpane+set}" = set; then
8486 enableval="$enable_collpane"
8487
8488 if test "$enableval" = yes; then
8489 ac_cv_use_collpane='wxUSE_COLLPANE=yes'
8490 else
8491 ac_cv_use_collpane='wxUSE_COLLPANE=no'
8492 fi
8493
8494else
8495
8496 LINE=`grep "wxUSE_COLLPANE" ${wx_arg_cache_file}`
8497 if test "x$LINE" != x ; then
8498 eval "DEFAULT_$LINE"
8499 else
8500 no_cache=1
8501 fi
8502
8503 ac_cv_use_collpane='wxUSE_COLLPANE='$DEFAULT_wxUSE_COLLPANE
8504
8505fi;
8506
8507 eval "$ac_cv_use_collpane"
8508 if test "$no_cache" != 1; then
8509 echo $ac_cv_use_collpane >> ${wx_arg_cache_file}.tmp
8510 fi
8511
8512 if test "$wxUSE_COLLPANE" = yes; then
8513 echo "$as_me:$LINENO: result: yes" >&5
8514echo "${ECHO_T}yes" >&6
8515 else
8516 echo "$as_me:$LINENO: result: no" >&5
8517echo "${ECHO_T}no" >&6
8518 fi
8519
8520
077c7880 8521 enablestring=
e9263684
VZ
8522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8523echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8524 no_cache=0
8525 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8526if test "${enable_colourpicker+set}" = set; then
8527 enableval="$enable_colourpicker"
8528
8529 if test "$enableval" = yes; then
8530 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8531 else
8532 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8533 fi
8534
8535else
8536
8537 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8538 if test "x$LINE" != x ; then
8539 eval "DEFAULT_$LINE"
8540 else
8541 no_cache=1
8542 fi
8543
8544 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8545
8546fi;
8547
8548 eval "$ac_cv_use_colourpicker"
8549 if test "$no_cache" != 1; then
8550 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8551 fi
8552
8553 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8554 echo "$as_me:$LINENO: result: yes" >&5
8555echo "${ECHO_T}yes" >&6
8556 else
8557 echo "$as_me:$LINENO: result: no" >&5
8558echo "${ECHO_T}no" >&6
8559 fi
8560
8561
077c7880 8562 enablestring=
a848cd7e
SC
8563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8564echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8565 no_cache=0
8566 # Check whether --enable-combobox or --disable-combobox was given.
8567if test "${enable_combobox+set}" = set; then
8568 enableval="$enable_combobox"
8569
8570 if test "$enableval" = yes; then
8571 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8572 else
8573 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8574 fi
8575
8576else
8577
8578 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8579 if test "x$LINE" != x ; then
8580 eval "DEFAULT_$LINE"
8581 else
8582 no_cache=1
8583 fi
8584
8585 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8586
8587fi;
8588
8589 eval "$ac_cv_use_combobox"
8590 if test "$no_cache" != 1; then
8591 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8592 fi
8593
8594 if test "$wxUSE_COMBOBOX" = yes; then
8595 echo "$as_me:$LINENO: result: yes" >&5
8596echo "${ECHO_T}yes" >&6
8597 else
8598 echo "$as_me:$LINENO: result: no" >&5
8599echo "${ECHO_T}no" >&6
8600 fi
8601
8602
077c7880 8603 enablestring=
a57d600f
VZ
8604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8605echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8606 no_cache=0
a57d600f
VZ
8607 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8608if test "${enable_comboctrl+set}" = set; then
8609 enableval="$enable_comboctrl"
642bcba9
VZ
8610
8611 if test "$enableval" = yes; then
a57d600f 8612 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8613 else
a57d600f 8614 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8615 fi
8616
8617else
8618
a57d600f 8619 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8620 if test "x$LINE" != x ; then
8621 eval "DEFAULT_$LINE"
8622 else
8623 no_cache=1
8624 fi
8625
a57d600f 8626 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8627
8628fi;
8629
a57d600f 8630 eval "$ac_cv_use_comboctrl"
642bcba9 8631 if test "$no_cache" != 1; then
a57d600f 8632 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8633 fi
8634
a57d600f 8635 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8636 echo "$as_me:$LINENO: result: yes" >&5
8637echo "${ECHO_T}yes" >&6
8638 else
8639 echo "$as_me:$LINENO: result: no" >&5
8640echo "${ECHO_T}no" >&6
8641 fi
8642
8643
077c7880 8644 enablestring=
da98e9be
VZ
8645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8646echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8647 no_cache=0
8648 # Check whether --enable-datepick or --disable-datepick was given.
8649if test "${enable_datepick+set}" = set; then
8650 enableval="$enable_datepick"
8651
8652 if test "$enableval" = yes; then
8653 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8654 else
8655 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8656 fi
8657
8658else
8659
8660 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8661 if test "x$LINE" != x ; then
8662 eval "DEFAULT_$LINE"
8663 else
8664 no_cache=1
8665 fi
8666
8667 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8668
8669fi;
8670
8671 eval "$ac_cv_use_datepick"
8672 if test "$no_cache" != 1; then
8673 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8674 fi
8675
8676 if test "$wxUSE_DATEPICKCTRL" = yes; then
8677 echo "$as_me:$LINENO: result: yes" >&5
8678echo "${ECHO_T}yes" >&6
8679 else
8680 echo "$as_me:$LINENO: result: no" >&5
8681echo "${ECHO_T}no" >&6
8682 fi
8683
8684
077c7880 8685 enablestring=
e9263684
VZ
8686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8687echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8688 no_cache=0
8689 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8690if test "${enable_dirpicker+set}" = set; then
8691 enableval="$enable_dirpicker"
8692
8693 if test "$enableval" = yes; then
8694 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8695 else
8696 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8697 fi
8698
8699else
8700
8701 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8702 if test "x$LINE" != x ; then
8703 eval "DEFAULT_$LINE"
8704 else
8705 no_cache=1
8706 fi
8707
8708 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8709
8710fi;
8711
8712 eval "$ac_cv_use_dirpicker"
8713 if test "$no_cache" != 1; then
8714 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8715 fi
8716
8717 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8718 echo "$as_me:$LINENO: result: yes" >&5
8719echo "${ECHO_T}yes" >&6
8720 else
8721 echo "$as_me:$LINENO: result: no" >&5
8722echo "${ECHO_T}no" >&6
8723 fi
8724
8725
077c7880 8726 enablestring=
a848cd7e
SC
8727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8728echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8729 no_cache=0
8730 # Check whether --enable-display or --disable-display was given.
8731if test "${enable_display+set}" = set; then
8732 enableval="$enable_display"
8733
8734 if test "$enableval" = yes; then
8735 ac_cv_use_display='wxUSE_DISPLAY=yes'
8736 else
8737 ac_cv_use_display='wxUSE_DISPLAY=no'
8738 fi
8739
8740else
8741
8742 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8743 if test "x$LINE" != x ; then
8744 eval "DEFAULT_$LINE"
8745 else
8746 no_cache=1
8747 fi
8748
8749 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8750
8751fi;
8752
8753 eval "$ac_cv_use_display"
8754 if test "$no_cache" != 1; then
8755 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8756 fi
8757
8758 if test "$wxUSE_DISPLAY" = yes; then
8759 echo "$as_me:$LINENO: result: yes" >&5
8760echo "${ECHO_T}yes" >&6
8761 else
8762 echo "$as_me:$LINENO: result: no" >&5
8763echo "${ECHO_T}no" >&6
8764 fi
8765
8766
077c7880 8767 enablestring=
88bbc332
RR
8768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
8769echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6
8770 no_cache=0
8771 # Check whether --enable-detect_sm or --disable-detect_sm was given.
8772if test "${enable_detect_sm+set}" = set; then
8773 enableval="$enable_detect_sm"
8774
8775 if test "$enableval" = yes; then
8776 ac_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
8777 else
8778 ac_cv_use_detect_sm='wxUSE_DETECT_SM=no'
8779 fi
8780
8781else
8782
8783 LINE=`grep "wxUSE_DETECT_SM" ${wx_arg_cache_file}`
8784 if test "x$LINE" != x ; then
8785 eval "DEFAULT_$LINE"
8786 else
8787 no_cache=1
8788 fi
8789
8790 ac_cv_use_detect_sm='wxUSE_DETECT_SM='$DEFAULT_wxUSE_DETECT_SM
8791
8792fi;
8793
8794 eval "$ac_cv_use_detect_sm"
8795 if test "$no_cache" != 1; then
8796 echo $ac_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp
8797 fi
8798
8799 if test "$wxUSE_DETECT_SM" = yes; then
8800 echo "$as_me:$LINENO: result: yes" >&5
8801echo "${ECHO_T}yes" >&6
8802 else
8803 echo "$as_me:$LINENO: result: no" >&5
8804echo "${ECHO_T}no" >&6
8805 fi
8806
8807
077c7880 8808 enablestring=
e9263684
VZ
8809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8810echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8811 no_cache=0
8812 # Check whether --enable-filepicker or --disable-filepicker was given.
8813if test "${enable_filepicker+set}" = set; then
8814 enableval="$enable_filepicker"
8815
8816 if test "$enableval" = yes; then
8817 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8818 else
8819 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8820 fi
8821
8822else
8823
8824 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8825 if test "x$LINE" != x ; then
8826 eval "DEFAULT_$LINE"
8827 else
8828 no_cache=1
8829 fi
8830
8831 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8832
8833fi;
8834
8835 eval "$ac_cv_use_filepicker"
8836 if test "$no_cache" != 1; then
8837 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8838 fi
8839
8840 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8841 echo "$as_me:$LINENO: result: yes" >&5
8842echo "${ECHO_T}yes" >&6
8843 else
8844 echo "$as_me:$LINENO: result: no" >&5
8845echo "${ECHO_T}no" >&6
8846 fi
8847
8848
077c7880 8849 enablestring=
e9263684
VZ
8850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8851echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8852 no_cache=0
8853 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8854if test "${enable_fontpicker+set}" = set; then
8855 enableval="$enable_fontpicker"
8856
8857 if test "$enableval" = yes; then
8858 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8859 else
8860 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8861 fi
8862
8863else
8864
8865 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8866 if test "x$LINE" != x ; then
8867 eval "DEFAULT_$LINE"
8868 else
8869 no_cache=1
8870 fi
8871
8872 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8873
8874fi;
8875
8876 eval "$ac_cv_use_fontpicker"
8877 if test "$no_cache" != 1; then
8878 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8879 fi
8880
8881 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8882 echo "$as_me:$LINENO: result: yes" >&5
8883echo "${ECHO_T}yes" >&6
8884 else
8885 echo "$as_me:$LINENO: result: no" >&5
8886echo "${ECHO_T}no" >&6
8887 fi
8888
8889
077c7880 8890 enablestring=
a848cd7e
SC
8891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8892echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8893 no_cache=0
8894 # Check whether --enable-gauge or --disable-gauge was given.
8895if test "${enable_gauge+set}" = set; then
8896 enableval="$enable_gauge"
8897
8898 if test "$enableval" = yes; then
8899 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8900 else
8901 ac_cv_use_gauge='wxUSE_GAUGE=no'
8902 fi
8903
8904else
8905
8906 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8907 if test "x$LINE" != x ; then
8908 eval "DEFAULT_$LINE"
8909 else
8910 no_cache=1
8911 fi
8912
8913 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8914
8915fi;
8916
8917 eval "$ac_cv_use_gauge"
8918 if test "$no_cache" != 1; then
8919 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8920 fi
8921
8922 if test "$wxUSE_GAUGE" = yes; then
8923 echo "$as_me:$LINENO: result: yes" >&5
8924echo "${ECHO_T}yes" >&6
8925 else
8926 echo "$as_me:$LINENO: result: no" >&5
8927echo "${ECHO_T}no" >&6
8928 fi
8929
8930
077c7880 8931 enablestring=
a848cd7e
SC
8932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8933echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8934 no_cache=0
8935 # Check whether --enable-grid or --disable-grid was given.
8936if test "${enable_grid+set}" = set; then
8937 enableval="$enable_grid"
8938
8939 if test "$enableval" = yes; then
8940 ac_cv_use_grid='wxUSE_GRID=yes'
8941 else
8942 ac_cv_use_grid='wxUSE_GRID=no'
8943 fi
8944
8945else
8946
8947 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8948 if test "x$LINE" != x ; then
8949 eval "DEFAULT_$LINE"
8950 else
8951 no_cache=1
8952 fi
8953
8954 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8955
8956fi;
8957
8958 eval "$ac_cv_use_grid"
8959 if test "$no_cache" != 1; then
8960 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8961 fi
8962
8963 if test "$wxUSE_GRID" = yes; then
8964 echo "$as_me:$LINENO: result: yes" >&5
8965echo "${ECHO_T}yes" >&6
8966 else
8967 echo "$as_me:$LINENO: result: no" >&5
8968echo "${ECHO_T}no" >&6
8969 fi
8970
8971
077c7880 8972 enablestring=
20e34ecc
RR
8973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8974echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8975 no_cache=0
8976 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8977if test "${enable_dataviewctrl+set}" = set; then
8978 enableval="$enable_dataviewctrl"
8979
8980 if test "$enableval" = yes; then
8981 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8982 else
8983 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8984 fi
8985
8986else
8987
8988 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8989 if test "x$LINE" != x ; then
8990 eval "DEFAULT_$LINE"
8991 else
8992 no_cache=1
8993 fi
8994
8995 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8996
8997fi;
8998
8999 eval "$ac_cv_use_dataviewctrl"
9000 if test "$no_cache" != 1; then
9001 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
9002 fi
9003
9004 if test "$wxUSE_DATAVIEWCTRL" = yes; then
9005 echo "$as_me:$LINENO: result: yes" >&5
9006echo "${ECHO_T}yes" >&6
9007 else
9008 echo "$as_me:$LINENO: result: no" >&5
9009echo "${ECHO_T}no" >&6
9010 fi
9011
9012
077c7880 9013 enablestring=
6954625c
VZ
9014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
9015echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
9016 no_cache=0
9017 # Check whether --enable-hyperlink or --disable-hyperlink was given.
9018if test "${enable_hyperlink+set}" = set; then
9019 enableval="$enable_hyperlink"
9020
9021 if test "$enableval" = yes; then
9022 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
9023 else
9024 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
9025 fi
9026
9027else
9028
9029 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
9030 if test "x$LINE" != x ; then
9031 eval "DEFAULT_$LINE"
9032 else
9033 no_cache=1
9034 fi
9035
9036 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
9037
9038fi;
9039
9040 eval "$ac_cv_use_hyperlink"
9041 if test "$no_cache" != 1; then
9042 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
9043 fi
9044
9045 if test "$wxUSE_HYPERLINKCTRL" = yes; then
9046 echo "$as_me:$LINENO: result: yes" >&5
9047echo "${ECHO_T}yes" >&6
9048 else
9049 echo "$as_me:$LINENO: result: no" >&5
9050echo "${ECHO_T}no" >&6
9051 fi
9052
9053
077c7880 9054 enablestring=
a848cd7e
SC
9055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
9056echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
9057 no_cache=0
9058 # Check whether --enable-imaglist or --disable-imaglist was given.
9059if test "${enable_imaglist+set}" = set; then
9060 enableval="$enable_imaglist"
9061
9062 if test "$enableval" = yes; then
9063 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
9064 else
9065 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
9066 fi
9067
9068else
9069
9070 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
9071 if test "x$LINE" != x ; then
9072 eval "DEFAULT_$LINE"
9073 else
9074 no_cache=1
9075 fi
9076
9077 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
9078
9079fi;
9080
9081 eval "$ac_cv_use_imaglist"
9082 if test "$no_cache" != 1; then
9083 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
9084 fi
9085
9086 if test "$wxUSE_IMAGLIST" = yes; then
9087 echo "$as_me:$LINENO: result: yes" >&5
9088echo "${ECHO_T}yes" >&6
9089 else
9090 echo "$as_me:$LINENO: result: no" >&5
9091echo "${ECHO_T}no" >&6
9092 fi
9093
9094
077c7880 9095 enablestring=
a848cd7e
SC
9096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
9097echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
9098 no_cache=0
9099 # Check whether --enable-listbook or --disable-listbook was given.
9100if test "${enable_listbook+set}" = set; then
9101 enableval="$enable_listbook"
9102
9103 if test "$enableval" = yes; then
9104 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
9105 else
9106 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
9107 fi
9108
9109else
9110
9111 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
9112 if test "x$LINE" != x ; then
9113 eval "DEFAULT_$LINE"
9114 else
9115 no_cache=1
9116 fi
9117
9118 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
9119
9120fi;
9121
9122 eval "$ac_cv_use_listbook"
9123 if test "$no_cache" != 1; then
9124 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
9125 fi
9126
9127 if test "$wxUSE_LISTBOOK" = yes; then
9128 echo "$as_me:$LINENO: result: yes" >&5
9129echo "${ECHO_T}yes" >&6
9130 else
9131 echo "$as_me:$LINENO: result: no" >&5
9132echo "${ECHO_T}no" >&6
9133 fi
9134
9135
077c7880 9136 enablestring=
a848cd7e
SC
9137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
9138echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
9139 no_cache=0
9140 # Check whether --enable-listbox or --disable-listbox was given.
9141if test "${enable_listbox+set}" = set; then
9142 enableval="$enable_listbox"
9143
9144 if test "$enableval" = yes; then
9145 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
9146 else
9147 ac_cv_use_listbox='wxUSE_LISTBOX=no'
9148 fi
9149
9150else
9151
9152 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
9153 if test "x$LINE" != x ; then
9154 eval "DEFAULT_$LINE"
9155 else
9156 no_cache=1
9157 fi
9158
9159 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
9160
9161fi;
9162
9163 eval "$ac_cv_use_listbox"
9164 if test "$no_cache" != 1; then
9165 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
9166 fi
9167
9168 if test "$wxUSE_LISTBOX" = yes; then
9169 echo "$as_me:$LINENO: result: yes" >&5
9170echo "${ECHO_T}yes" >&6
9171 else
9172 echo "$as_me:$LINENO: result: no" >&5
9173echo "${ECHO_T}no" >&6
9174 fi
9175
9176
077c7880 9177 enablestring=
a848cd7e
SC
9178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
9179echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
9180 no_cache=0
9181 # Check whether --enable-listctrl or --disable-listctrl was given.
9182if test "${enable_listctrl+set}" = set; then
9183 enableval="$enable_listctrl"
9184
9185 if test "$enableval" = yes; then
9186 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
9187 else
9188 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
9189 fi
9190
9191else
9192
9193 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
9194 if test "x$LINE" != x ; then
9195 eval "DEFAULT_$LINE"
9196 else
9197 no_cache=1
9198 fi
9199
9200 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
9201
9202fi;
9203
9204 eval "$ac_cv_use_listctrl"
9205 if test "$no_cache" != 1; then
9206 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
9207 fi
9208
9209 if test "$wxUSE_LISTCTRL" = yes; then
9210 echo "$as_me:$LINENO: result: yes" >&5
9211echo "${ECHO_T}yes" >&6
9212 else
9213 echo "$as_me:$LINENO: result: no" >&5
9214echo "${ECHO_T}no" >&6
9215 fi
9216
9217
077c7880 9218 enablestring=
a848cd7e
SC
9219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
9220echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
9221 no_cache=0
9222 # Check whether --enable-notebook or --disable-notebook was given.
9223if test "${enable_notebook+set}" = set; then
9224 enableval="$enable_notebook"
9225
9226 if test "$enableval" = yes; then
9227 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
9228 else
9229 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
9230 fi
9231
9232else
9233
9234 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
9235 if test "x$LINE" != x ; then
9236 eval "DEFAULT_$LINE"
9237 else
9238 no_cache=1
9239 fi
9240
9241 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
9242
9243fi;
9244
9245 eval "$ac_cv_use_notebook"
9246 if test "$no_cache" != 1; then
9247 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
9248 fi
9249
9250 if test "$wxUSE_NOTEBOOK" = yes; then
9251 echo "$as_me:$LINENO: result: yes" >&5
9252echo "${ECHO_T}yes" >&6
9253 else
9254 echo "$as_me:$LINENO: result: no" >&5
9255echo "${ECHO_T}no" >&6
9256 fi
9257
9258
077c7880 9259 enablestring=
a57d600f
VZ
9260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
9261echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 9262 no_cache=0
a57d600f
VZ
9263 # Check whether --enable-odcombobox or --disable-odcombobox was given.
9264if test "${enable_odcombobox+set}" = set; then
9265 enableval="$enable_odcombobox"
642bcba9
VZ
9266
9267 if test "$enableval" = yes; then
a57d600f 9268 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 9269 else
a57d600f 9270 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
9271 fi
9272
9273else
9274
a57d600f 9275 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
9276 if test "x$LINE" != x ; then
9277 eval "DEFAULT_$LINE"
9278 else
9279 no_cache=1
9280 fi
9281
a57d600f 9282 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
9283
9284fi;
9285
a57d600f 9286 eval "$ac_cv_use_odcombobox"
642bcba9 9287 if test "$no_cache" != 1; then
a57d600f 9288 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
9289 fi
9290
a57d600f 9291 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
9292 echo "$as_me:$LINENO: result: yes" >&5
9293echo "${ECHO_T}yes" >&6
9294 else
9295 echo "$as_me:$LINENO: result: no" >&5
9296echo "${ECHO_T}no" >&6
9297 fi
9298
9299
077c7880 9300 enablestring=
a848cd7e
SC
9301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9302echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
9303 no_cache=0
9304 # Check whether --enable-radiobox or --disable-radiobox was given.
9305if test "${enable_radiobox+set}" = set; then
9306 enableval="$enable_radiobox"
9307
9308 if test "$enableval" = yes; then
9309 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9310 else
9311 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
9312 fi
9313
9314else
9315
9316 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9317 if test "x$LINE" != x ; then
9318 eval "DEFAULT_$LINE"
9319 else
9320 no_cache=1
9321 fi
9322
9323 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9324
9325fi;
9326
9327 eval "$ac_cv_use_radiobox"
9328 if test "$no_cache" != 1; then
9329 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9330 fi
9331
9332 if test "$wxUSE_RADIOBOX" = yes; then
9333 echo "$as_me:$LINENO: result: yes" >&5
9334echo "${ECHO_T}yes" >&6
9335 else
9336 echo "$as_me:$LINENO: result: no" >&5
9337echo "${ECHO_T}no" >&6
9338 fi
9339
9340
077c7880 9341 enablestring=
a848cd7e
SC
9342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9343echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
9344 no_cache=0
9345 # Check whether --enable-radiobtn or --disable-radiobtn was given.
9346if test "${enable_radiobtn+set}" = set; then
9347 enableval="$enable_radiobtn"
9348
9349 if test "$enableval" = yes; then
9350 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9351 else
9352 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9353 fi
9354
9355else
9356
9357 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9358 if test "x$LINE" != x ; then
9359 eval "DEFAULT_$LINE"
9360 else
9361 no_cache=1
9362 fi
9363
9364 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9365
9366fi;
9367
9368 eval "$ac_cv_use_radiobtn"
9369 if test "$no_cache" != 1; then
9370 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9371 fi
9372
9373 if test "$wxUSE_RADIOBTN" = yes; then
9374 echo "$as_me:$LINENO: result: yes" >&5
9375echo "${ECHO_T}yes" >&6
9376 else
9377 echo "$as_me:$LINENO: result: no" >&5
9378echo "${ECHO_T}no" >&6
9379 fi
9380
9381
077c7880 9382 enablestring=
a848cd7e
SC
9383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9384echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
9385 no_cache=0
9386 # Check whether --enable-sash or --disable-sash was given.
9387if test "${enable_sash+set}" = set; then
9388 enableval="$enable_sash"
9389
9390 if test "$enableval" = yes; then
9391 ac_cv_use_sash='wxUSE_SASH=yes'
9392 else
9393 ac_cv_use_sash='wxUSE_SASH=no'
9394 fi
9395
9396else
9397
9398 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9399 if test "x$LINE" != x ; then
9400 eval "DEFAULT_$LINE"
9401 else
9402 no_cache=1
9403 fi
9404
9405 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9406
9407fi;
9408
9409 eval "$ac_cv_use_sash"
9410 if test "$no_cache" != 1; then
9411 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9412 fi
9413
9414 if test "$wxUSE_SASH" = yes; then
9415 echo "$as_me:$LINENO: result: yes" >&5
9416echo "${ECHO_T}yes" >&6
9417 else
9418 echo "$as_me:$LINENO: result: no" >&5
9419echo "${ECHO_T}no" >&6
9420 fi
9421
9422
077c7880 9423 enablestring=
a848cd7e
SC
9424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9425echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9426 no_cache=0
9427 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9428if test "${enable_scrollbar+set}" = set; then
9429 enableval="$enable_scrollbar"
9430
9431 if test "$enableval" = yes; then
9432 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9433 else
9434 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9435 fi
9436
9437else
9438
9439 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9440 if test "x$LINE" != x ; then
9441 eval "DEFAULT_$LINE"
9442 else
9443 no_cache=1
9444 fi
9445
9446 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9447
9448fi;
9449
9450 eval "$ac_cv_use_scrollbar"
9451 if test "$no_cache" != 1; then
9452 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9453 fi
9454
9455 if test "$wxUSE_SCROLLBAR" = yes; then
9456 echo "$as_me:$LINENO: result: yes" >&5
9457echo "${ECHO_T}yes" >&6
9458 else
9459 echo "$as_me:$LINENO: result: no" >&5
9460echo "${ECHO_T}no" >&6
9461 fi
9462
9463
077c7880 9464 enablestring=
a848cd7e
SC
9465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9466echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9467 no_cache=0
9468 # Check whether --enable-slider or --disable-slider was given.
9469if test "${enable_slider+set}" = set; then
9470 enableval="$enable_slider"
9471
9472 if test "$enableval" = yes; then
9473 ac_cv_use_slider='wxUSE_SLIDER=yes'
9474 else
9475 ac_cv_use_slider='wxUSE_SLIDER=no'
9476 fi
9477
9478else
9479
9480 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9481 if test "x$LINE" != x ; then
9482 eval "DEFAULT_$LINE"
9483 else
9484 no_cache=1
9485 fi
9486
9487 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9488
9489fi;
9490
9491 eval "$ac_cv_use_slider"
9492 if test "$no_cache" != 1; then
9493 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9494 fi
9495
9496 if test "$wxUSE_SLIDER" = yes; then
9497 echo "$as_me:$LINENO: result: yes" >&5
9498echo "${ECHO_T}yes" >&6
9499 else
9500 echo "$as_me:$LINENO: result: no" >&5
9501echo "${ECHO_T}no" >&6
9502 fi
9503
9504
077c7880 9505 enablestring=
a848cd7e
SC
9506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9507echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9508 no_cache=0
9509 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9510if test "${enable_spinbtn+set}" = set; then
9511 enableval="$enable_spinbtn"
9512
9513 if test "$enableval" = yes; then
9514 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9515 else
9516 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9517 fi
9518
9519else
9520
9521 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9522 if test "x$LINE" != x ; then
9523 eval "DEFAULT_$LINE"
9524 else
9525 no_cache=1
9526 fi
9527
9528 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9529
9530fi;
9531
9532 eval "$ac_cv_use_spinbtn"
9533 if test "$no_cache" != 1; then
9534 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9535 fi
9536
9537 if test "$wxUSE_SPINBTN" = yes; then
9538 echo "$as_me:$LINENO: result: yes" >&5
9539echo "${ECHO_T}yes" >&6
9540 else
9541 echo "$as_me:$LINENO: result: no" >&5
9542echo "${ECHO_T}no" >&6
9543 fi
9544
9545
077c7880 9546 enablestring=
a848cd7e
SC
9547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9548echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9549 no_cache=0
9550 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9551if test "${enable_spinctrl+set}" = set; then
9552 enableval="$enable_spinctrl"
9553
9554 if test "$enableval" = yes; then
9555 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9556 else
9557 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9558 fi
9559
9560else
9561
9562 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9563 if test "x$LINE" != x ; then
9564 eval "DEFAULT_$LINE"
9565 else
9566 no_cache=1
9567 fi
9568
9569 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9570
9571fi;
9572
9573 eval "$ac_cv_use_spinctrl"
9574 if test "$no_cache" != 1; then
9575 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9576 fi
9577
9578 if test "$wxUSE_SPINCTRL" = yes; then
9579 echo "$as_me:$LINENO: result: yes" >&5
9580echo "${ECHO_T}yes" >&6
9581 else
9582 echo "$as_me:$LINENO: result: no" >&5
9583echo "${ECHO_T}no" >&6
9584 fi
9585
9586
077c7880 9587 enablestring=
a848cd7e
SC
9588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9589echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9590 no_cache=0
9591 # Check whether --enable-splitter or --disable-splitter was given.
9592if test "${enable_splitter+set}" = set; then
9593 enableval="$enable_splitter"
9594
9595 if test "$enableval" = yes; then
9596 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9597 else
9598 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9599 fi
9600
9601else
9602
9603 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9604 if test "x$LINE" != x ; then
9605 eval "DEFAULT_$LINE"
9606 else
9607 no_cache=1
9608 fi
9609
9610 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9611
9612fi;
9613
9614 eval "$ac_cv_use_splitter"
9615 if test "$no_cache" != 1; then
9616 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9617 fi
9618
9619 if test "$wxUSE_SPLITTER" = yes; then
9620 echo "$as_me:$LINENO: result: yes" >&5
9621echo "${ECHO_T}yes" >&6
9622 else
9623 echo "$as_me:$LINENO: result: no" >&5
9624echo "${ECHO_T}no" >&6
9625 fi
9626
9627
077c7880 9628 enablestring=
a848cd7e
SC
9629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9630echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9631 no_cache=0
9632 # Check whether --enable-statbmp or --disable-statbmp was given.
9633if test "${enable_statbmp+set}" = set; then
9634 enableval="$enable_statbmp"
9635
9636 if test "$enableval" = yes; then
9637 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9638 else
9639 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9640 fi
9641
9642else
9643
9644 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9645 if test "x$LINE" != x ; then
9646 eval "DEFAULT_$LINE"
9647 else
9648 no_cache=1
9649 fi
9650
9651 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9652
9653fi;
9654
9655 eval "$ac_cv_use_statbmp"
9656 if test "$no_cache" != 1; then
9657 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9658 fi
9659
9660 if test "$wxUSE_STATBMP" = yes; then
9661 echo "$as_me:$LINENO: result: yes" >&5
9662echo "${ECHO_T}yes" >&6
9663 else
9664 echo "$as_me:$LINENO: result: no" >&5
9665echo "${ECHO_T}no" >&6
9666 fi
9667
9668
077c7880 9669 enablestring=
a848cd7e
SC
9670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9671echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9672 no_cache=0
9673 # Check whether --enable-statbox or --disable-statbox was given.
9674if test "${enable_statbox+set}" = set; then
9675 enableval="$enable_statbox"
9676
9677 if test "$enableval" = yes; then
9678 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9679 else
9680 ac_cv_use_statbox='wxUSE_STATBOX=no'
9681 fi
9682
9683else
9684
9685 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9686 if test "x$LINE" != x ; then
9687 eval "DEFAULT_$LINE"
9688 else
9689 no_cache=1
9690 fi
9691
9692 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9693
9694fi;
9695
9696 eval "$ac_cv_use_statbox"
9697 if test "$no_cache" != 1; then
9698 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9699 fi
9700
9701 if test "$wxUSE_STATBOX" = yes; then
9702 echo "$as_me:$LINENO: result: yes" >&5
9703echo "${ECHO_T}yes" >&6
9704 else
9705 echo "$as_me:$LINENO: result: no" >&5
9706echo "${ECHO_T}no" >&6
9707 fi
9708
9709
077c7880 9710 enablestring=
a848cd7e
SC
9711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9712echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9713 no_cache=0
9714 # Check whether --enable-statline or --disable-statline was given.
9715if test "${enable_statline+set}" = set; then
9716 enableval="$enable_statline"
9717
9718 if test "$enableval" = yes; then
9719 ac_cv_use_statline='wxUSE_STATLINE=yes'
9720 else
9721 ac_cv_use_statline='wxUSE_STATLINE=no'
9722 fi
9723
9724else
9725
9726 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9727 if test "x$LINE" != x ; then
9728 eval "DEFAULT_$LINE"
9729 else
9730 no_cache=1
9731 fi
9732
9733 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9734
9735fi;
9736
9737 eval "$ac_cv_use_statline"
9738 if test "$no_cache" != 1; then
9739 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9740 fi
9741
9742 if test "$wxUSE_STATLINE" = yes; then
9743 echo "$as_me:$LINENO: result: yes" >&5
9744echo "${ECHO_T}yes" >&6
9745 else
9746 echo "$as_me:$LINENO: result: no" >&5
9747echo "${ECHO_T}no" >&6
9748 fi
9749
9750
077c7880 9751 enablestring=
a848cd7e
SC
9752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9753echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9754 no_cache=0
9755 # Check whether --enable-stattext or --disable-stattext was given.
9756if test "${enable_stattext+set}" = set; then
9757 enableval="$enable_stattext"
9758
9759 if test "$enableval" = yes; then
9760 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9761 else
9762 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9763 fi
9764
9765else
9766
9767 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9768 if test "x$LINE" != x ; then
9769 eval "DEFAULT_$LINE"
9770 else
9771 no_cache=1
9772 fi
9773
9774 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9775
9776fi;
9777
9778 eval "$ac_cv_use_stattext"
9779 if test "$no_cache" != 1; then
9780 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9781 fi
9782
9783 if test "$wxUSE_STATTEXT" = yes; then
9784 echo "$as_me:$LINENO: result: yes" >&5
9785echo "${ECHO_T}yes" >&6
9786 else
9787 echo "$as_me:$LINENO: result: no" >&5
9788echo "${ECHO_T}no" >&6
9789 fi
9790
9791
077c7880 9792 enablestring=
a848cd7e
SC
9793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9794echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9795 no_cache=0
9796 # Check whether --enable-statusbar or --disable-statusbar was given.
9797if test "${enable_statusbar+set}" = set; then
9798 enableval="$enable_statusbar"
9799
9800 if test "$enableval" = yes; then
9801 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9802 else
9803 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9804 fi
9805
9806else
9807
9808 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9809 if test "x$LINE" != x ; then
9810 eval "DEFAULT_$LINE"
9811 else
9812 no_cache=1
9813 fi
9814
9815 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9816
9817fi;
9818
9819 eval "$ac_cv_use_statusbar"
9820 if test "$no_cache" != 1; then
9821 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9822 fi
9823
9824 if test "$wxUSE_STATUSBAR" = yes; then
9825 echo "$as_me:$LINENO: result: yes" >&5
9826echo "${ECHO_T}yes" >&6
9827 else
9828 echo "$as_me:$LINENO: result: no" >&5
9829echo "${ECHO_T}no" >&6
9830 fi
9831
9832
077c7880 9833 enablestring=
a848cd7e
SC
9834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9835echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9836 no_cache=0
9837 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9838if test "${enable_tabdialog+set}" = set; then
9839 enableval="$enable_tabdialog"
9840
9841 if test "$enableval" = yes; then
f10e38c4 9842 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9843 else
f10e38c4 9844 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9845 fi
9846
9847else
9848
f10e38c4 9849 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9850 if test "x$LINE" != x ; then
9851 eval "DEFAULT_$LINE"
9852 else
9853 no_cache=1
9854 fi
9855
f10e38c4 9856 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9857
9858fi;
9859
9860 eval "$ac_cv_use_tabdialog"
9861 if test "$no_cache" != 1; then
9862 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9863 fi
9864
f10e38c4 9865 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9866 echo "$as_me:$LINENO: result: yes" >&5
9867echo "${ECHO_T}yes" >&6
9868 else
9869 echo "$as_me:$LINENO: result: no" >&5
9870echo "${ECHO_T}no" >&6
9871 fi
9872
9873
077c7880 9874 enablestring=
a848cd7e
SC
9875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9876echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9877 no_cache=0
9878 # Check whether --enable-textctrl or --disable-textctrl was given.
9879if test "${enable_textctrl+set}" = set; then
9880 enableval="$enable_textctrl"
9881
9882 if test "$enableval" = yes; then
9883 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9884 else
9885 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9886 fi
9887
9888else
9889
9890 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9891 if test "x$LINE" != x ; then
9892 eval "DEFAULT_$LINE"
9893 else
9894 no_cache=1
9895 fi
9896
9897 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9898
9899fi;
9900
9901 eval "$ac_cv_use_textctrl"
9902 if test "$no_cache" != 1; then
9903 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9904 fi
9905
9906 if test "$wxUSE_TEXTCTRL" = yes; then
9907 echo "$as_me:$LINENO: result: yes" >&5
9908echo "${ECHO_T}yes" >&6
9909 else
9910 echo "$as_me:$LINENO: result: no" >&5
9911echo "${ECHO_T}no" >&6
9912 fi
9913
9914
077c7880 9915 enablestring=
a848cd7e
SC
9916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9917echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9918 no_cache=0
9919 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9920if test "${enable_togglebtn+set}" = set; then
9921 enableval="$enable_togglebtn"
9922
9923 if test "$enableval" = yes; then
9924 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9925 else
9926 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9927 fi
9928
9929else
9930
9931 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9932 if test "x$LINE" != x ; then
9933 eval "DEFAULT_$LINE"
9934 else
9935 no_cache=1
9936 fi
9937
9938 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9939
9940fi;
9941
9942 eval "$ac_cv_use_togglebtn"
9943 if test "$no_cache" != 1; then
9944 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9945 fi
9946
9947 if test "$wxUSE_TOGGLEBTN" = yes; then
9948 echo "$as_me:$LINENO: result: yes" >&5
9949echo "${ECHO_T}yes" >&6
9950 else
9951 echo "$as_me:$LINENO: result: no" >&5
9952echo "${ECHO_T}no" >&6
9953 fi
9954
9955
077c7880 9956 enablestring=
a848cd7e
SC
9957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9958echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9959 no_cache=0
9960 # Check whether --enable-toolbar or --disable-toolbar was given.
9961if test "${enable_toolbar+set}" = set; then
9962 enableval="$enable_toolbar"
9963
9964 if test "$enableval" = yes; then
9965 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9966 else
9967 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9968 fi
9969
9970else
9971
9972 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9973 if test "x$LINE" != x ; then
9974 eval "DEFAULT_$LINE"
9975 else
9976 no_cache=1
9977 fi
9978
9979 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9980
9981fi;
9982
9983 eval "$ac_cv_use_toolbar"
9984 if test "$no_cache" != 1; then
9985 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9986 fi
9987
9988 if test "$wxUSE_TOOLBAR" = yes; then
9989 echo "$as_me:$LINENO: result: yes" >&5
9990echo "${ECHO_T}yes" >&6
9991 else
9992 echo "$as_me:$LINENO: result: no" >&5
9993echo "${ECHO_T}no" >&6
9994 fi
9995
9996
077c7880 9997 enablestring=
a848cd7e
SC
9998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9999echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
10000 no_cache=0
10001 # Check whether --enable-tbarnative or --disable-tbarnative was given.
10002if test "${enable_tbarnative+set}" = set; then
10003 enableval="$enable_tbarnative"
10004
10005 if test "$enableval" = yes; then
10006 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
10007 else
10008 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
10009 fi
10010
10011else
10012
10013 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
10014 if test "x$LINE" != x ; then
10015 eval "DEFAULT_$LINE"
10016 else
10017 no_cache=1
10018 fi
10019
10020 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
10021
10022fi;
10023
10024 eval "$ac_cv_use_tbarnative"
10025 if test "$no_cache" != 1; then
10026 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
10027 fi
10028
10029 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
10030 echo "$as_me:$LINENO: result: yes" >&5
10031echo "${ECHO_T}yes" >&6
10032 else
10033 echo "$as_me:$LINENO: result: no" >&5
10034echo "${ECHO_T}no" >&6
10035 fi
10036
10037
077c7880 10038 enablestring=
0093c2fc
VZ
10039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
10040echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
10041 no_cache=0
10042 # Check whether --enable-treebook or --disable-treebook was given.
10043if test "${enable_treebook+set}" = set; then
10044 enableval="$enable_treebook"
10045
10046 if test "$enableval" = yes; then
10047 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
10048 else
10049 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
10050 fi
10051
10052else
10053
10054 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
10055 if test "x$LINE" != x ; then
10056 eval "DEFAULT_$LINE"
10057 else
10058 no_cache=1
10059 fi
10060
10061 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
10062
10063fi;
10064
10065 eval "$ac_cv_use_treebook"
10066 if test "$no_cache" != 1; then
10067 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
10068 fi
10069
10070 if test "$wxUSE_TREEBOOK" = yes; then
10071 echo "$as_me:$LINENO: result: yes" >&5
10072echo "${ECHO_T}yes" >&6
10073 else
10074 echo "$as_me:$LINENO: result: no" >&5
10075echo "${ECHO_T}no" >&6
10076 fi
10077
10078
077c7880 10079 enablestring=
5ec3bc43
JS
10080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
10081echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
10082 no_cache=0
10083 # Check whether --enable-toolbook or --disable-toolbook was given.
10084if test "${enable_toolbook+set}" = set; then
10085 enableval="$enable_toolbook"
10086
10087 if test "$enableval" = yes; then
10088 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
10089 else
10090 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
10091 fi
10092
10093else
10094
10095 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
10096 if test "x$LINE" != x ; then
10097 eval "DEFAULT_$LINE"
10098 else
10099 no_cache=1
10100 fi
10101
10102 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
10103
10104fi;
10105
10106 eval "$ac_cv_use_toolbook"
10107 if test "$no_cache" != 1; then
10108 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
10109 fi
10110
10111 if test "$wxUSE_TOOLBOOK" = yes; then
10112 echo "$as_me:$LINENO: result: yes" >&5
10113echo "${ECHO_T}yes" >&6
10114 else
10115 echo "$as_me:$LINENO: result: no" >&5
10116echo "${ECHO_T}no" >&6
10117 fi
10118
10119
077c7880 10120 enablestring=
a848cd7e
SC
10121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
10122echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10123 no_cache=0
10124 # Check whether --enable-treectrl or --disable-treectrl was given.
10125if test "${enable_treectrl+set}" = set; then
10126 enableval="$enable_treectrl"
10127
10128 if test "$enableval" = yes; then
10129 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
10130 else
10131 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
10132 fi
10133
10134else
10135
10136 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
10137 if test "x$LINE" != x ; then
10138 eval "DEFAULT_$LINE"
10139 else
10140 no_cache=1
10141 fi
10142
10143 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10144
10145fi;
10146
10147 eval "$ac_cv_use_treectrl"
10148 if test "$no_cache" != 1; then
10149 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
10150 fi
10151
10152 if test "$wxUSE_TREECTRL" = yes; then
10153 echo "$as_me:$LINENO: result: yes" >&5
10154echo "${ECHO_T}yes" >&6
10155 else
10156 echo "$as_me:$LINENO: result: no" >&5
10157echo "${ECHO_T}no" >&6
10158 fi
10159
10160
077c7880 10161 enablestring=
a848cd7e
SC
10162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
10163echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
10164 no_cache=0
10165 # Check whether --enable-tipwindow or --disable-tipwindow was given.
10166if test "${enable_tipwindow+set}" = set; then
10167 enableval="$enable_tipwindow"
10168
10169 if test "$enableval" = yes; then
10170 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
10171 else
10172 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
10173 fi
10174
10175else
10176
10177 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
10178 if test "x$LINE" != x ; then
10179 eval "DEFAULT_$LINE"
10180 else
10181 no_cache=1
10182 fi
10183
10184 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
10185
10186fi;
10187
10188 eval "$ac_cv_use_tipwindow"
10189 if test "$no_cache" != 1; then
10190 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
10191 fi
10192
10193 if test "$wxUSE_TIPWINDOW" = yes; then
10194 echo "$as_me:$LINENO: result: yes" >&5
10195echo "${ECHO_T}yes" >&6
10196 else
10197 echo "$as_me:$LINENO: result: no" >&5
10198echo "${ECHO_T}no" >&6
10199 fi
10200
10201
077c7880 10202 enablestring=
a848cd7e
SC
10203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
10204echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
10205 no_cache=0
10206 # Check whether --enable-popupwin or --disable-popupwin was given.
10207if test "${enable_popupwin+set}" = set; then
10208 enableval="$enable_popupwin"
10209
10210 if test "$enableval" = yes; then
10211 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
10212 else
10213 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
10214 fi
10215
10216else
10217
10218 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
10219 if test "x$LINE" != x ; then
10220 eval "DEFAULT_$LINE"
10221 else
10222 no_cache=1
10223 fi
10224
10225 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
10226
10227fi;
10228
10229 eval "$ac_cv_use_popupwin"
10230 if test "$no_cache" != 1; then
10231 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
10232 fi
10233
10234 if test "$wxUSE_POPUPWIN" = yes; then
10235 echo "$as_me:$LINENO: result: yes" >&5
10236echo "${ECHO_T}yes" >&6
10237 else
10238 echo "$as_me:$LINENO: result: no" >&5
10239echo "${ECHO_T}no" >&6
10240 fi
10241
10242
10243
10244
077c7880 10245 enablestring=
a848cd7e
SC
10246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
10247echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
10248 no_cache=0
10249 # Check whether --enable-commondlg or --disable-commondlg was given.
10250if test "${enable_commondlg+set}" = set; then
10251 enableval="$enable_commondlg"
10252
10253 if test "$enableval" = yes; then
10254 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
10255 else
10256 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
10257 fi
10258
10259else
10260
10261 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
10262 if test "x$LINE" != x ; then
10263 eval "DEFAULT_$LINE"
10264 else
10265 no_cache=1
10266 fi
10267
10268 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
10269
10270fi;
10271
10272 eval "$ac_cv_use_commondlg"
10273 if test "$no_cache" != 1; then
10274 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
10275 fi
10276
10277 if test "$wxUSE_COMMONDLGS" = yes; then
10278 echo "$as_me:$LINENO: result: yes" >&5
10279echo "${ECHO_T}yes" >&6
10280 else
10281 echo "$as_me:$LINENO: result: no" >&5
10282echo "${ECHO_T}no" >&6
10283 fi
10284
10285
077c7880 10286 enablestring=
319c5ed4
VZ
10287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
10288echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6
10289 no_cache=0
10290 # Check whether --enable-aboutdlg or --disable-aboutdlg was given.
10291if test "${enable_aboutdlg+set}" = set; then
10292 enableval="$enable_aboutdlg"
10293
10294 if test "$enableval" = yes; then
10295 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
10296 else
10297 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
10298 fi
10299
10300else
10301
10302 LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
10303 if test "x$LINE" != x ; then
10304 eval "DEFAULT_$LINE"
10305 else
10306 no_cache=1
10307 fi
10308
10309 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
10310
10311fi;
10312
10313 eval "$ac_cv_use_aboutdlg"
10314 if test "$no_cache" != 1; then
10315 echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
10316 fi
10317
10318 if test "$wxUSE_ABOUTDLG" = yes; then
10319 echo "$as_me:$LINENO: result: yes" >&5
10320echo "${ECHO_T}yes" >&6
10321 else
10322 echo "$as_me:$LINENO: result: no" >&5
10323echo "${ECHO_T}no" >&6
10324 fi
10325
10326
077c7880 10327 enablestring=
a848cd7e
SC
10328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
10329echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
10330 no_cache=0
10331 # Check whether --enable-choicedlg or --disable-choicedlg was given.
10332if test "${enable_choicedlg+set}" = set; then
10333 enableval="$enable_choicedlg"
10334
10335 if test "$enableval" = yes; then
10336 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
10337 else
10338 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10339 fi
10340
10341else
10342
10343 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10344 if test "x$LINE" != x ; then
10345 eval "DEFAULT_$LINE"
10346 else
10347 no_cache=1
10348 fi
10349
10350 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10351
10352fi;
10353
10354 eval "$ac_cv_use_choicedlg"
10355 if test "$no_cache" != 1; then
10356 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10357 fi
10358
10359 if test "$wxUSE_CHOICEDLG" = yes; then
10360 echo "$as_me:$LINENO: result: yes" >&5
10361echo "${ECHO_T}yes" >&6
10362 else
10363 echo "$as_me:$LINENO: result: no" >&5
10364echo "${ECHO_T}no" >&6
10365 fi
10366
10367
077c7880 10368 enablestring=
a848cd7e
SC
10369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10370echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
10371 no_cache=0
10372 # Check whether --enable-coldlg or --disable-coldlg was given.
10373if test "${enable_coldlg+set}" = set; then
10374 enableval="$enable_coldlg"
10375
10376 if test "$enableval" = yes; then
10377 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10378 else
10379 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
10380 fi
10381
10382else
10383
10384 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10385 if test "x$LINE" != x ; then
10386 eval "DEFAULT_$LINE"
10387 else
10388 no_cache=1
10389 fi
10390
10391 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10392
10393fi;
10394
10395 eval "$ac_cv_use_coldlg"
10396 if test "$no_cache" != 1; then
10397 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10398 fi
10399
10400 if test "$wxUSE_COLOURDLG" = yes; then
10401 echo "$as_me:$LINENO: result: yes" >&5
10402echo "${ECHO_T}yes" >&6
10403 else
10404 echo "$as_me:$LINENO: result: no" >&5
10405echo "${ECHO_T}no" >&6
10406 fi
10407
10408
077c7880 10409 enablestring=
a848cd7e
SC
10410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10411echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10412 no_cache=0
10413 # Check whether --enable-filedlg or --disable-filedlg was given.
10414if test "${enable_filedlg+set}" = set; then
10415 enableval="$enable_filedlg"
10416
10417 if test "$enableval" = yes; then
10418 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10419 else
10420 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10421 fi
10422
10423else
10424
10425 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10426 if test "x$LINE" != x ; then
10427 eval "DEFAULT_$LINE"
10428 else
10429 no_cache=1
10430 fi
10431
10432 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10433
10434fi;
10435
10436 eval "$ac_cv_use_filedlg"
10437 if test "$no_cache" != 1; then
10438 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10439 fi
10440
10441 if test "$wxUSE_FILEDLG" = yes; then
10442 echo "$as_me:$LINENO: result: yes" >&5
10443echo "${ECHO_T}yes" >&6
10444 else
10445 echo "$as_me:$LINENO: result: no" >&5
10446echo "${ECHO_T}no" >&6
10447 fi
10448
10449
077c7880 10450 enablestring=
a848cd7e
SC
10451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10452echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10453 no_cache=0
10454 # Check whether --enable-finddlg or --disable-finddlg was given.
10455if test "${enable_finddlg+set}" = set; then
10456 enableval="$enable_finddlg"
10457
10458 if test "$enableval" = yes; then
10459 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10460 else
10461 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10462 fi
10463
10464else
10465
10466 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10467 if test "x$LINE" != x ; then
10468 eval "DEFAULT_$LINE"
10469 else
10470 no_cache=1
10471 fi
10472
10473 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10474
10475fi;
10476
10477 eval "$ac_cv_use_finddlg"
10478 if test "$no_cache" != 1; then
10479 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10480 fi
10481
10482 if test "$wxUSE_FINDREPLDLG" = yes; then
10483 echo "$as_me:$LINENO: result: yes" >&5
10484echo "${ECHO_T}yes" >&6
10485 else
10486 echo "$as_me:$LINENO: result: no" >&5
10487echo "${ECHO_T}no" >&6
10488 fi
10489
10490
077c7880 10491 enablestring=
a848cd7e
SC
10492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10493echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10494 no_cache=0
10495 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10496if test "${enable_fontdlg+set}" = set; then
10497 enableval="$enable_fontdlg"
10498
10499 if test "$enableval" = yes; then
10500 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10501 else
10502 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10503 fi
10504
10505else
10506
10507 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10508 if test "x$LINE" != x ; then
10509 eval "DEFAULT_$LINE"
10510 else
10511 no_cache=1
10512 fi
10513
10514 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10515
10516fi;
10517
10518 eval "$ac_cv_use_fontdlg"
10519 if test "$no_cache" != 1; then
10520 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10521 fi
10522
10523 if test "$wxUSE_FONTDLG" = yes; then
10524 echo "$as_me:$LINENO: result: yes" >&5
10525echo "${ECHO_T}yes" >&6
10526 else
10527 echo "$as_me:$LINENO: result: no" >&5
10528echo "${ECHO_T}no" >&6
10529 fi
10530
10531
077c7880 10532 enablestring=
a848cd7e
SC
10533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10534echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10535 no_cache=0
10536 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10537if test "${enable_dirdlg+set}" = set; then
10538 enableval="$enable_dirdlg"
10539
10540 if test "$enableval" = yes; then
10541 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10542 else
10543 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10544 fi
10545
10546else
10547
10548 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10549 if test "x$LINE" != x ; then
10550 eval "DEFAULT_$LINE"
10551 else
10552 no_cache=1
10553 fi
10554
10555 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10556
10557fi;
10558
10559 eval "$ac_cv_use_dirdlg"
10560 if test "$no_cache" != 1; then
10561 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10562 fi
10563
10564 if test "$wxUSE_DIRDLG" = yes; then
10565 echo "$as_me:$LINENO: result: yes" >&5
10566echo "${ECHO_T}yes" >&6
10567 else
10568 echo "$as_me:$LINENO: result: no" >&5
10569echo "${ECHO_T}no" >&6
10570 fi
10571
10572
077c7880 10573 enablestring=
a848cd7e
SC
10574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10575echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10576 no_cache=0
10577 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10578if test "${enable_msgdlg+set}" = set; then
10579 enableval="$enable_msgdlg"
10580
10581 if test "$enableval" = yes; then
10582 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10583 else
10584 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10585 fi
10586
10587else
10588
10589 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10590 if test "x$LINE" != x ; then
10591 eval "DEFAULT_$LINE"
10592 else
10593 no_cache=1
10594 fi
10595
10596 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10597
10598fi;
10599
10600 eval "$ac_cv_use_msgdlg"
10601 if test "$no_cache" != 1; then
10602 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10603 fi
10604
10605 if test "$wxUSE_MSGDLG" = yes; then
10606 echo "$as_me:$LINENO: result: yes" >&5
10607echo "${ECHO_T}yes" >&6
10608 else
10609 echo "$as_me:$LINENO: result: no" >&5
10610echo "${ECHO_T}no" >&6
10611 fi
10612
10613
077c7880 10614 enablestring=
a848cd7e
SC
10615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10616echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10617 no_cache=0
10618 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10619if test "${enable_numberdlg+set}" = set; then
10620 enableval="$enable_numberdlg"
10621
10622 if test "$enableval" = yes; then
10623 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10624 else
10625 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10626 fi
10627
10628else
10629
10630 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10631 if test "x$LINE" != x ; then
10632 eval "DEFAULT_$LINE"
10633 else
10634 no_cache=1
10635 fi
10636
10637 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10638
10639fi;
10640
10641 eval "$ac_cv_use_numberdlg"
10642 if test "$no_cache" != 1; then
10643 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10644 fi
10645
10646 if test "$wxUSE_NUMBERDLG" = yes; then
10647 echo "$as_me:$LINENO: result: yes" >&5
10648echo "${ECHO_T}yes" >&6
10649 else
10650 echo "$as_me:$LINENO: result: no" >&5
10651echo "${ECHO_T}no" >&6
10652 fi
10653
10654
077c7880 10655 enablestring=
a848cd7e
SC
10656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10657echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10658 no_cache=0
10659 # Check whether --enable-splash or --disable-splash was given.
10660if test "${enable_splash+set}" = set; then
10661 enableval="$enable_splash"
10662
10663 if test "$enableval" = yes; then
10664 ac_cv_use_splash='wxUSE_SPLASH=yes'
10665 else
10666 ac_cv_use_splash='wxUSE_SPLASH=no'
10667 fi
10668
10669else
10670
10671 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10672 if test "x$LINE" != x ; then
10673 eval "DEFAULT_$LINE"
10674 else
10675 no_cache=1
10676 fi
10677
10678 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10679
10680fi;
10681
10682 eval "$ac_cv_use_splash"
10683 if test "$no_cache" != 1; then
10684 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10685 fi
10686
10687 if test "$wxUSE_SPLASH" = yes; then
10688 echo "$as_me:$LINENO: result: yes" >&5
10689echo "${ECHO_T}yes" >&6
10690 else
10691 echo "$as_me:$LINENO: result: no" >&5
10692echo "${ECHO_T}no" >&6
10693 fi
10694
10695
077c7880 10696 enablestring=
a848cd7e
SC
10697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10698echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10699 no_cache=0
10700 # Check whether --enable-textdlg or --disable-textdlg was given.
10701if test "${enable_textdlg+set}" = set; then
10702 enableval="$enable_textdlg"
10703
10704 if test "$enableval" = yes; then
10705 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10706 else
10707 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10708 fi
10709
10710else
10711
10712 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10713 if test "x$LINE" != x ; then
10714 eval "DEFAULT_$LINE"
10715 else
10716 no_cache=1
10717 fi
10718
10719 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10720
10721fi;
10722
10723 eval "$ac_cv_use_textdlg"
10724 if test "$no_cache" != 1; then
10725 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10726 fi
10727
10728 if test "$wxUSE_TEXTDLG" = yes; then
10729 echo "$as_me:$LINENO: result: yes" >&5
10730echo "${ECHO_T}yes" >&6
10731 else
10732 echo "$as_me:$LINENO: result: no" >&5
10733echo "${ECHO_T}no" >&6
10734 fi
10735
10736
077c7880 10737 enablestring=
a848cd7e
SC
10738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10739echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10740 no_cache=0
10741 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10742if test "${enable_tipdlg+set}" = set; then
10743 enableval="$enable_tipdlg"
10744
10745 if test "$enableval" = yes; then
10746 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10747 else
10748 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10749 fi
10750
10751else
10752
10753 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10754 if test "x$LINE" != x ; then
10755 eval "DEFAULT_$LINE"
10756 else
10757 no_cache=1
10758 fi
10759
10760 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10761
10762fi;
10763
10764 eval "$ac_cv_use_tipdlg"
10765 if test "$no_cache" != 1; then
10766 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10767 fi
10768
10769 if test "$wxUSE_STARTUP_TIPS" = yes; then
10770 echo "$as_me:$LINENO: result: yes" >&5
10771echo "${ECHO_T}yes" >&6
10772 else
10773 echo "$as_me:$LINENO: result: no" >&5
10774echo "${ECHO_T}no" >&6
10775 fi
10776
10777
077c7880 10778 enablestring=
a848cd7e
SC
10779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10780echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10781 no_cache=0
10782 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10783if test "${enable_progressdlg+set}" = set; then
10784 enableval="$enable_progressdlg"
10785
10786 if test "$enableval" = yes; then
10787 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10788 else
10789 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10790 fi
10791
10792else
10793
10794 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10795 if test "x$LINE" != x ; then
10796 eval "DEFAULT_$LINE"
10797 else
10798 no_cache=1
10799 fi
10800
10801 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10802
10803fi;
10804
10805 eval "$ac_cv_use_progressdlg"
10806 if test "$no_cache" != 1; then
10807 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10808 fi
10809
10810 if test "$wxUSE_PROGRESSDLG" = yes; then
10811 echo "$as_me:$LINENO: result: yes" >&5
10812echo "${ECHO_T}yes" >&6
10813 else
10814 echo "$as_me:$LINENO: result: no" >&5
10815echo "${ECHO_T}no" >&6
10816 fi
10817
10818
077c7880 10819 enablestring=
a848cd7e
SC
10820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10821echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10822 no_cache=0
10823 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10824if test "${enable_wizarddlg+set}" = set; then
10825 enableval="$enable_wizarddlg"
10826
10827 if test "$enableval" = yes; then
10828 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10829 else
10830 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10831 fi
10832
10833else
10834
10835 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10836 if test "x$LINE" != x ; then
10837 eval "DEFAULT_$LINE"
10838 else
10839 no_cache=1
10840 fi
10841
10842 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10843
10844fi;
10845
10846 eval "$ac_cv_use_wizarddlg"
10847 if test "$no_cache" != 1; then
10848 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10849 fi
10850
10851 if test "$wxUSE_WIZARDDLG" = yes; then
10852 echo "$as_me:$LINENO: result: yes" >&5
10853echo "${ECHO_T}yes" >&6
10854 else
10855 echo "$as_me:$LINENO: result: no" >&5
10856echo "${ECHO_T}no" >&6
10857 fi
10858
10859
10860
10861
077c7880 10862 enablestring=
a848cd7e
SC
10863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10864echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10865 no_cache=0
10866 # Check whether --enable-menus or --disable-menus was given.
10867if test "${enable_menus+set}" = set; then
10868 enableval="$enable_menus"
10869
10870 if test "$enableval" = yes; then
10871 ac_cv_use_menus='wxUSE_MENUS=yes'
10872 else
10873 ac_cv_use_menus='wxUSE_MENUS=no'
10874 fi
10875
10876else
10877
10878 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10879 if test "x$LINE" != x ; then
10880 eval "DEFAULT_$LINE"
10881 else
10882 no_cache=1
10883 fi
10884
10885 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10886
10887fi;
10888
10889 eval "$ac_cv_use_menus"
10890 if test "$no_cache" != 1; then
10891 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10892 fi
10893
10894 if test "$wxUSE_MENUS" = yes; then
10895 echo "$as_me:$LINENO: result: yes" >&5
10896echo "${ECHO_T}yes" >&6
10897 else
10898 echo "$as_me:$LINENO: result: no" >&5
10899echo "${ECHO_T}no" >&6
10900 fi
10901
10902
077c7880 10903 enablestring=
a848cd7e
SC
10904 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10905echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10906 no_cache=0
10907 # Check whether --enable-miniframe or --disable-miniframe was given.
10908if test "${enable_miniframe+set}" = set; then
10909 enableval="$enable_miniframe"
10910
10911 if test "$enableval" = yes; then
10912 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10913 else
10914 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10915 fi
10916
10917else
10918
10919 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10920 if test "x$LINE" != x ; then
10921 eval "DEFAULT_$LINE"
10922 else
10923 no_cache=1
10924 fi
10925
10926 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10927
10928fi;
10929
10930 eval "$ac_cv_use_miniframe"
10931 if test "$no_cache" != 1; then
10932 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10933 fi
10934
10935 if test "$wxUSE_MINIFRAME" = yes; then
10936 echo "$as_me:$LINENO: result: yes" >&5
10937echo "${ECHO_T}yes" >&6
10938 else
10939 echo "$as_me:$LINENO: result: no" >&5
10940echo "${ECHO_T}no" >&6
10941 fi
10942
10943
077c7880 10944 enablestring=
a848cd7e
SC
10945 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10946echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10947 no_cache=0
10948 # Check whether --enable-tooltips or --disable-tooltips was given.
10949if test "${enable_tooltips+set}" = set; then
10950 enableval="$enable_tooltips"
10951
10952 if test "$enableval" = yes; then
10953 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10954 else
10955 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10956 fi
10957
10958else
10959
10960 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10961 if test "x$LINE" != x ; then
10962 eval "DEFAULT_$LINE"
10963 else
10964 no_cache=1
10965 fi
10966
10967 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10968
10969fi;
10970
10971 eval "$ac_cv_use_tooltips"
10972 if test "$no_cache" != 1; then
10973 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10974 fi
10975
10976 if test "$wxUSE_TOOLTIPS" = yes; then
10977 echo "$as_me:$LINENO: result: yes" >&5
10978echo "${ECHO_T}yes" >&6
10979 else
10980 echo "$as_me:$LINENO: result: no" >&5
10981echo "${ECHO_T}no" >&6
10982 fi
10983
10984
077c7880 10985 enablestring=
a848cd7e
SC
10986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10987echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10988 no_cache=0
10989 # Check whether --enable-splines or --disable-splines was given.
10990if test "${enable_splines+set}" = set; then
10991 enableval="$enable_splines"
10992
10993 if test "$enableval" = yes; then
10994 ac_cv_use_splines='wxUSE_SPLINES=yes'
10995 else
10996 ac_cv_use_splines='wxUSE_SPLINES=no'
10997 fi
10998
10999else
11000
11001 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
11002 if test "x$LINE" != x ; then
11003 eval "DEFAULT_$LINE"
11004 else
11005 no_cache=1
11006 fi
11007
11008 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
11009
11010fi;
11011
11012 eval "$ac_cv_use_splines"
11013 if test "$no_cache" != 1; then
11014 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
11015 fi
11016
11017 if test "$wxUSE_SPLINES" = yes; then
11018 echo "$as_me:$LINENO: result: yes" >&5
11019echo "${ECHO_T}yes" >&6
11020 else
11021 echo "$as_me:$LINENO: result: no" >&5
11022echo "${ECHO_T}no" >&6
11023 fi
11024
11025
077c7880 11026 enablestring=
fbe2ca43
SN
11027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
11028echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
11029 no_cache=0
11030 # Check whether --enable-mousewheel or --disable-mousewheel was given.
11031if test "${enable_mousewheel+set}" = set; then
11032 enableval="$enable_mousewheel"
11033
11034 if test "$enableval" = yes; then
11035 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
11036 else
11037 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
11038 fi
11039
11040else
11041
11042 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
11043 if test "x$LINE" != x ; then
11044 eval "DEFAULT_$LINE"
11045 else
11046 no_cache=1
11047 fi
11048
11049 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
11050
11051fi;
11052
11053 eval "$ac_cv_use_mousewheel"
11054 if test "$no_cache" != 1; then
11055 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
11056 fi
11057
11058 if test "$wxUSE_MOUSEWHEEL" = yes; then
11059 echo "$as_me:$LINENO: result: yes" >&5
11060echo "${ECHO_T}yes" >&6
11061 else
11062 echo "$as_me:$LINENO: result: no" >&5
11063echo "${ECHO_T}no" >&6
11064 fi
11065
11066
077c7880 11067 enablestring=
a848cd7e
SC
11068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
11069echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
11070 no_cache=0
11071 # Check whether --enable-validators or --disable-validators was given.
11072if test "${enable_validators+set}" = set; then
11073 enableval="$enable_validators"
11074
11075 if test "$enableval" = yes; then
11076 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
11077 else
11078 ac_cv_use_validators='wxUSE_VALIDATORS=no'
11079 fi
11080
11081else
11082
11083 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
11084 if test "x$LINE" != x ; then
11085 eval "DEFAULT_$LINE"
11086 else
11087 no_cache=1
11088 fi
11089
11090 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
11091
11092fi;
11093
11094 eval "$ac_cv_use_validators"
11095 if test "$no_cache" != 1; then
11096 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
11097 fi
11098
11099 if test "$wxUSE_VALIDATORS" = yes; then
11100 echo "$as_me:$LINENO: result: yes" >&5
11101echo "${ECHO_T}yes" >&6
11102 else
11103 echo "$as_me:$LINENO: result: no" >&5
11104echo "${ECHO_T}no" >&6
11105 fi
11106
11107
077c7880 11108 enablestring=
a848cd7e
SC
11109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
11110echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
11111 no_cache=0
11112 # Check whether --enable-busyinfo or --disable-busyinfo was given.
11113if test "${enable_busyinfo+set}" = set; then
11114 enableval="$enable_busyinfo"
11115
11116 if test "$enableval" = yes; then
11117 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
11118 else
11119 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
11120 fi
11121
11122else
11123
11124 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
11125 if test "x$LINE" != x ; then
11126 eval "DEFAULT_$LINE"
11127 else
11128 no_cache=1
11129 fi
11130
11131 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
11132
11133fi;
11134
11135 eval "$ac_cv_use_busyinfo"
11136 if test "$no_cache" != 1; then
11137 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
11138 fi
11139
11140 if test "$wxUSE_BUSYINFO" = yes; then
11141 echo "$as_me:$LINENO: result: yes" >&5
11142echo "${ECHO_T}yes" >&6
11143 else
11144 echo "$as_me:$LINENO: result: no" >&5
11145echo "${ECHO_T}no" >&6
11146 fi
11147
11148
077c7880 11149 enablestring=
a848cd7e
SC
11150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
11151echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
11152 no_cache=0
11153 # Check whether --enable-joystick or --disable-joystick was given.
11154if test "${enable_joystick+set}" = set; then
11155 enableval="$enable_joystick"
11156
11157 if test "$enableval" = yes; then
11158 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
11159 else
11160 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
11161 fi
11162
11163else
11164
11165 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
11166 if test "x$LINE" != x ; then
11167 eval "DEFAULT_$LINE"
11168 else
11169 no_cache=1
11170 fi
11171
11172 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
11173
11174fi;
11175
11176 eval "$ac_cv_use_joystick"
11177 if test "$no_cache" != 1; then
11178 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
11179 fi
11180
11181 if test "$wxUSE_JOYSTICK" = yes; then
11182 echo "$as_me:$LINENO: result: yes" >&5
11183echo "${ECHO_T}yes" >&6
11184 else
11185 echo "$as_me:$LINENO: result: no" >&5
11186echo "${ECHO_T}no" >&6
11187 fi
11188
11189
077c7880 11190 enablestring=
a848cd7e
SC
11191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
11192echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
11193 no_cache=0
11194 # Check whether --enable-metafile or --disable-metafile was given.
11195if test "${enable_metafile+set}" = set; then
11196 enableval="$enable_metafile"
11197
11198 if test "$enableval" = yes; then
11199 ac_cv_use_metafile='wxUSE_METAFILE=yes'
11200 else
11201 ac_cv_use_metafile='wxUSE_METAFILE=no'
11202 fi
11203
11204else
11205
11206 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
11207 if test "x$LINE" != x ; then
11208 eval "DEFAULT_$LINE"
11209 else
11210 no_cache=1
11211 fi
11212
11213 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
11214
11215fi;
11216
11217 eval "$ac_cv_use_metafile"
11218 if test "$no_cache" != 1; then
11219 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
11220 fi
11221
11222 if test "$wxUSE_METAFILE" = yes; then
11223 echo "$as_me:$LINENO: result: yes" >&5
11224echo "${ECHO_T}yes" >&6
11225 else
11226 echo "$as_me:$LINENO: result: no" >&5
11227echo "${ECHO_T}no" >&6
11228 fi
11229
11230
077c7880 11231 enablestring=
a848cd7e
SC
11232 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
11233echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
11234 no_cache=0
11235 # Check whether --enable-dragimage or --disable-dragimage was given.
11236if test "${enable_dragimage+set}" = set; then
11237 enableval="$enable_dragimage"
11238
11239 if test "$enableval" = yes; then
11240 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
11241 else
11242 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
11243 fi
11244
11245else
11246
11247 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
11248 if test "x$LINE" != x ; then
11249 eval "DEFAULT_$LINE"
11250 else
11251 no_cache=1
11252 fi
11253
11254 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
11255
11256fi;
11257
11258 eval "$ac_cv_use_dragimage"
11259 if test "$no_cache" != 1; then
11260 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
11261 fi
11262
11263 if test "$wxUSE_DRAGIMAGE" = yes; then
11264 echo "$as_me:$LINENO: result: yes" >&5
11265echo "${ECHO_T}yes" >&6
11266 else
11267 echo "$as_me:$LINENO: result: no" >&5
11268echo "${ECHO_T}no" >&6
11269 fi
11270
11271
077c7880 11272 enablestring=
a848cd7e
SC
11273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
11274echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
11275 no_cache=0
11276 # Check whether --enable-accessibility or --disable-accessibility was given.
11277if test "${enable_accessibility+set}" = set; then
11278 enableval="$enable_accessibility"
11279
11280 if test "$enableval" = yes; then
11281 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
11282 else
11283 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
11284 fi
11285
11286else
11287
11288 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
11289 if test "x$LINE" != x ; then
11290 eval "DEFAULT_$LINE"
11291 else
11292 no_cache=1
11293 fi
11294
11295 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
11296
11297fi;
11298
11299 eval "$ac_cv_use_accessibility"
11300 if test "$no_cache" != 1; then
11301 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
11302 fi
11303
11304 if test "$wxUSE_ACCESSIBILITY" = yes; then
11305 echo "$as_me:$LINENO: result: yes" >&5
11306echo "${ECHO_T}yes" >&6
11307 else
11308 echo "$as_me:$LINENO: result: no" >&5
11309echo "${ECHO_T}no" >&6
11310 fi
11311
11312
38b4a946
VZ
11313if test "$wxUSE_MSW" = "1"; then
11314
077c7880 11315 enablestring=
38b4a946
VZ
11316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
11317echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
11318 no_cache=0
11319 # Check whether --enable-dccache or --disable-dccache was given.
11320if test "${enable_dccache+set}" = set; then
11321 enableval="$enable_dccache"
11322
11323 if test "$enableval" = yes; then
11324 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
11325 else
11326 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
11327 fi
11328
11329else
11330
11331 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
11332 if test "x$LINE" != x ; then
11333 eval "DEFAULT_$LINE"
11334 else
11335 no_cache=1
11336 fi
11337
11338 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11339
11340fi;
11341
11342 eval "$ac_cv_use_dccache"
11343 if test "$no_cache" != 1; then
11344 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11345 fi
11346
11347 if test "$wxUSE_DC_CACHEING" = yes; then
11348 echo "$as_me:$LINENO: result: yes" >&5
11349echo "${ECHO_T}yes" >&6
11350 else
11351 echo "$as_me:$LINENO: result: no" >&5
11352echo "${ECHO_T}no" >&6
11353 fi
11354
11355fi
11356
a848cd7e
SC
11357
11358
077c7880 11359 enablestring=
a848cd7e
SC
11360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11361echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
11362 no_cache=0
11363 # Check whether --enable-palette or --disable-palette was given.
11364if test "${enable_palette+set}" = set; then
11365 enableval="$enable_palette"
11366
11367 if test "$enableval" = yes; then
11368 ac_cv_use_palette='wxUSE_PALETTE=yes'
11369 else
11370 ac_cv_use_palette='wxUSE_PALETTE=no'
11371 fi
11372
11373else
11374
11375 LINE=`grep "wxUSE_PALETTE" ${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_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11383
11384fi;
11385
11386 eval "$ac_cv_use_palette"
11387 if test "$no_cache" != 1; then
11388 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
11389 fi
11390
11391 if test "$wxUSE_PALETTE" = 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
11399
077c7880 11400 enablestring=
a848cd7e
SC
11401 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11402echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11403 no_cache=0
11404 # Check whether --enable-image or --disable-image was given.
11405if test "${enable_image+set}" = set; then
11406 enableval="$enable_image"
11407
11408 if test "$enableval" = yes; then
11409 ac_cv_use_image='wxUSE_IMAGE=yes'
11410 else
11411 ac_cv_use_image='wxUSE_IMAGE=no'
11412 fi
11413
11414else
11415
11416 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11417 if test "x$LINE" != x ; then
11418 eval "DEFAULT_$LINE"
11419 else
11420 no_cache=1
11421 fi
11422
11423 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11424
11425fi;
11426
11427 eval "$ac_cv_use_image"
11428 if test "$no_cache" != 1; then
11429 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11430 fi
11431
11432 if test "$wxUSE_IMAGE" = yes; then
11433 echo "$as_me:$LINENO: result: yes" >&5
11434echo "${ECHO_T}yes" >&6
11435 else
11436 echo "$as_me:$LINENO: result: no" >&5
11437echo "${ECHO_T}no" >&6
11438 fi
11439
11440
077c7880 11441 enablestring=
a848cd7e
SC
11442 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11443echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11444 no_cache=0
11445 # Check whether --enable-gif or --disable-gif was given.
11446if test "${enable_gif+set}" = set; then
11447 enableval="$enable_gif"
11448
11449 if test "$enableval" = yes; then
11450 ac_cv_use_gif='wxUSE_GIF=yes'
11451 else
11452 ac_cv_use_gif='wxUSE_GIF=no'
11453 fi
11454
11455else
11456
11457 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11458 if test "x$LINE" != x ; then
11459 eval "DEFAULT_$LINE"
11460 else
11461 no_cache=1
11462 fi
11463
11464 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11465
11466fi;
11467
11468 eval "$ac_cv_use_gif"
11469 if test "$no_cache" != 1; then
11470 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11471 fi
11472
11473 if test "$wxUSE_GIF" = yes; then
11474 echo "$as_me:$LINENO: result: yes" >&5
11475echo "${ECHO_T}yes" >&6
11476 else
11477 echo "$as_me:$LINENO: result: no" >&5
11478echo "${ECHO_T}no" >&6
11479 fi
11480
11481
077c7880 11482 enablestring=
a848cd7e
SC
11483 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11484echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11485 no_cache=0
11486 # Check whether --enable-pcx or --disable-pcx was given.
11487if test "${enable_pcx+set}" = set; then
11488 enableval="$enable_pcx"
11489
11490 if test "$enableval" = yes; then
11491 ac_cv_use_pcx='wxUSE_PCX=yes'
11492 else
11493 ac_cv_use_pcx='wxUSE_PCX=no'
11494 fi
11495
11496else
11497
11498 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11499 if test "x$LINE" != x ; then
11500 eval "DEFAULT_$LINE"
11501 else
11502 no_cache=1
11503 fi
11504
11505 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11506
11507fi;
11508
11509 eval "$ac_cv_use_pcx"
11510 if test "$no_cache" != 1; then
11511 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11512 fi
11513
11514 if test "$wxUSE_PCX" = yes; then
11515 echo "$as_me:$LINENO: result: yes" >&5
11516echo "${ECHO_T}yes" >&6
11517 else
11518 echo "$as_me:$LINENO: result: no" >&5
11519echo "${ECHO_T}no" >&6
11520 fi
11521
11522
077c7880 11523 enablestring=
bb9e79c0
VZ
11524 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
11525echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6
11526 no_cache=0
11527 # Check whether --enable-tga or --disable-tga was given.
11528if test "${enable_tga+set}" = set; then
11529 enableval="$enable_tga"
11530
11531 if test "$enableval" = yes; then
11532 ac_cv_use_tga='wxUSE_TGA=yes'
11533 else
11534 ac_cv_use_tga='wxUSE_TGA=no'
11535 fi
11536
11537else
11538
11539 LINE=`grep "wxUSE_TGA" ${wx_arg_cache_file}`
11540 if test "x$LINE" != x ; then
11541 eval "DEFAULT_$LINE"
11542 else
11543 no_cache=1
11544 fi
11545
11546 ac_cv_use_tga='wxUSE_TGA='$DEFAULT_wxUSE_TGA
11547
11548fi;
11549
11550 eval "$ac_cv_use_tga"
11551 if test "$no_cache" != 1; then
11552 echo $ac_cv_use_tga >> ${wx_arg_cache_file}.tmp
11553 fi
11554
11555 if test "$wxUSE_TGA" = yes; then
11556 echo "$as_me:$LINENO: result: yes" >&5
11557echo "${ECHO_T}yes" >&6
11558 else
11559 echo "$as_me:$LINENO: result: no" >&5
11560echo "${ECHO_T}no" >&6
11561 fi
11562
11563
077c7880 11564 enablestring=
a848cd7e
SC
11565 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11566echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11567 no_cache=0
11568 # Check whether --enable-iff or --disable-iff was given.
11569if test "${enable_iff+set}" = set; then
11570 enableval="$enable_iff"
11571
11572 if test "$enableval" = yes; then
11573 ac_cv_use_iff='wxUSE_IFF=yes'
11574 else
11575 ac_cv_use_iff='wxUSE_IFF=no'
11576 fi
11577
11578else
11579
11580 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11581 if test "x$LINE" != x ; then
11582 eval "DEFAULT_$LINE"
11583 else
11584 no_cache=1
11585 fi
11586
11587 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11588
11589fi;
11590
11591 eval "$ac_cv_use_iff"
11592 if test "$no_cache" != 1; then
11593 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11594 fi
11595
11596 if test "$wxUSE_IFF" = yes; then
11597 echo "$as_me:$LINENO: result: yes" >&5
11598echo "${ECHO_T}yes" >&6
11599 else
11600 echo "$as_me:$LINENO: result: no" >&5
11601echo "${ECHO_T}no" >&6
11602 fi
11603
11604
077c7880 11605 enablestring=
a848cd7e
SC
11606 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11607echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11608 no_cache=0
11609 # Check whether --enable-pnm or --disable-pnm was given.
11610if test "${enable_pnm+set}" = set; then
11611 enableval="$enable_pnm"
11612
11613 if test "$enableval" = yes; then
11614 ac_cv_use_pnm='wxUSE_PNM=yes'
11615 else
11616 ac_cv_use_pnm='wxUSE_PNM=no'
11617 fi
11618
11619else
11620
11621 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11622 if test "x$LINE" != x ; then
11623 eval "DEFAULT_$LINE"
11624 else
11625 no_cache=1
11626 fi
11627
11628 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11629
11630fi;
11631
11632 eval "$ac_cv_use_pnm"
11633 if test "$no_cache" != 1; then
11634 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11635 fi
11636
11637 if test "$wxUSE_PNM" = yes; then
11638 echo "$as_me:$LINENO: result: yes" >&5
11639echo "${ECHO_T}yes" >&6
11640 else
11641 echo "$as_me:$LINENO: result: no" >&5
11642echo "${ECHO_T}no" >&6
11643 fi
11644
11645
077c7880 11646 enablestring=
a848cd7e
SC
11647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11648echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11649 no_cache=0
11650 # Check whether --enable-xpm or --disable-xpm was given.
11651if test "${enable_xpm+set}" = set; then
11652 enableval="$enable_xpm"
11653
11654 if test "$enableval" = yes; then
11655 ac_cv_use_xpm='wxUSE_XPM=yes'
11656 else
11657 ac_cv_use_xpm='wxUSE_XPM=no'
11658 fi
11659
11660else
11661
11662 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11663 if test "x$LINE" != x ; then
11664 eval "DEFAULT_$LINE"
11665 else
11666 no_cache=1
11667 fi
11668
11669 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11670
11671fi;
11672
11673 eval "$ac_cv_use_xpm"
11674 if test "$no_cache" != 1; then
11675 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11676 fi
11677
11678 if test "$wxUSE_XPM" = yes; then
11679 echo "$as_me:$LINENO: result: yes" >&5
11680echo "${ECHO_T}yes" >&6
11681 else
11682 echo "$as_me:$LINENO: result: no" >&5
11683echo "${ECHO_T}no" >&6
11684 fi
11685
11686
077c7880 11687 enablestring=
a848cd7e
SC
11688 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11689echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11690 no_cache=0
11691 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11692if test "${enable_ico_cur+set}" = set; then
11693 enableval="$enable_ico_cur"
11694
11695 if test "$enableval" = yes; then
11696 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11697 else
11698 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11699 fi
11700
11701else
11702
11703 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11704 if test "x$LINE" != x ; then
11705 eval "DEFAULT_$LINE"
11706 else
11707 no_cache=1
11708 fi
11709
11710 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11711
11712fi;
11713
11714 eval "$ac_cv_use_ico_cur"
11715 if test "$no_cache" != 1; then
11716 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11717 fi
11718
11719 if test "$wxUSE_ICO_CUR" = yes; then
11720 echo "$as_me:$LINENO: result: yes" >&5
11721echo "${ECHO_T}yes" >&6
11722 else
11723 echo "$as_me:$LINENO: result: no" >&5
11724echo "${ECHO_T}no" >&6
11725 fi
11726
11727
11728fi
11729
11730
11731
ceec2216
RL
11732# Check whether --with-flavour or --without-flavour was given.
11733if test "${with_flavour+set}" = set; then
11734 withval="$with_flavour"
11735 WX_FLAVOUR="$withval"
11736fi;
11737
11738
11739
077c7880 11740 enablestring=
a848cd7e
SC
11741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11742echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11743 no_cache=0
11744 # Check whether --enable-official_build or --disable-official_build was given.
11745if test "${enable_official_build+set}" = set; then
11746 enableval="$enable_official_build"
11747
11748 if test "$enableval" = yes; then
11749 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11750 else
11751 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11752 fi
11753
11754else
11755
11756 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11757 if test "x$LINE" != x ; then
11758 eval "DEFAULT_$LINE"
11759 else
11760 no_cache=1
11761 fi
11762
11763 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11764
11765fi;
11766
11767 eval "$ac_cv_use_official_build"
11768 if test "$no_cache" != 1; then
11769 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11770 fi
11771
11772 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11773 echo "$as_me:$LINENO: result: yes" >&5
11774echo "${ECHO_T}yes" >&6
11775 else
11776 echo "$as_me:$LINENO: result: no" >&5
11777echo "${ECHO_T}no" >&6
11778 fi
11779
11780# Check whether --enable-vendor or --disable-vendor was given.
11781if test "${enable_vendor+set}" = set; then
11782 enableval="$enable_vendor"
11783 VENDOR="$enableval"
11784fi;
11785if test "x$VENDOR" = "x"; then
11786 VENDOR="custom"
11787fi
11788
a848cd7e
SC
11789
11790
11791
11792 echo "saving argument cache $wx_arg_cache_file"
11793 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11794
11795
11796
11797echo "$as_me:$LINENO: checking for toolkit" >&5
11798echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11799
11800# In Wine, we need to default to MSW, not GTK or MOTIF
11801if test "$wxUSE_WINE" = "yes"; then
11802 DEFAULT_DEFAULT_wxUSE_GTK=0
11803 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11804 DEFAULT_DEFAULT_wxUSE_MSW=1
11805 wxUSE_SHARED=no
11806fi
11807
f597b41c 11808
a848cd7e
SC
11809if test "$wxUSE_GUI" = "yes"; then
11810
11811 if test "$USE_BEOS" = 1; then
11812 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11813echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11814 { (exit 1); exit 1; }; }
11815 fi
11816
11817 if test "$TOOLKIT_GIVEN" = 1; then
11818 for toolkit in `echo $ALL_TOOLKITS`; do
11819 var=wxUSE_$toolkit
11820 eval "value=\$${var}"
f34ca037
MW
11821 if test "x$value" = "xno"; then
11822 eval "$var=0"
11823 elif test "x$value" != "x"; then
11824 eval "$var=1"
11825 fi
11826
11827 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11828 eval "wx${toolkit}_VERSION=$value"
11829 fi
a848cd7e
SC
11830 done
11831 else
11832 for toolkit in `echo $ALL_TOOLKITS`; do
11833 if test "$has_toolkit_in_cache" != 1; then
11834 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11835 else
11836 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11837
11838 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11839 if test "x$version" != "x"; then
11840 eval "wx${toolkit}_VERSION=$version"
11841 fi
a848cd7e
SC
11842 fi
11843 eval "wxUSE_$toolkit=\$${var}"
11844 done
11845 fi
11846
11847 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
b3c86150 11848 + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
a848cd7e
SC
11849 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11850
11851 case "${host}" in
11852 *-pc-os2_emx | *-pc-os2-emx )
11853 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11854 esac
11855
11856 case "$NUM_TOOLKITS" in
11857 1)
11858 ;;
11859 0)
11860 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11861echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11862 { (exit 1); exit 1; }; }
11863 ;;
11864 *)
11865 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11866echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11867 { (exit 1); exit 1; }; }
11868 esac
11869
f34ca037
MW
11870 # to be removed when --disable-gtk2 isn't needed
11871 if test "x$wxUSE_GTK2" = "xyes"; then
11872 wxGTK_VERSION=2
11873 elif test "x$wxUSE_GTK2" = "xno"; then
11874 wxGTK_VERSION=1
11875 fi
11876
a848cd7e
SC
11877 for toolkit in `echo $ALL_TOOLKITS`; do
11878 var=wxUSE_$toolkit
11879 eval "value=\$${var}"
11880 if test "x$value" != x; then
11881 cache_var=CACHE_$toolkit
11882 eval "cache=\$${cache_var}"
11883 if test "$cache" = 1; then
11884 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11885 eval "version=\$wx${toolkit}_VERSION"
11886 if test "x$version" != "x"; then
11887 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11888 fi
a848cd7e
SC
11889 fi
11890 if test "$value" = 1; then
11891 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11892 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11893echo "${ECHO_T}$toolkit_echo" >&6
11894 fi
11895 fi
11896 done
11897else
11898 if test "x$host_alias" != "x"; then
11899 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11900echo "${ECHO_T}base ($host_alias hosted) only" >&6
11901 else
11902 echo "$as_me:$LINENO: result: base only" >&5
11903echo "${ECHO_T}base only" >&6
11904 fi
11905fi
11906
8bf7f1a9
VZ
11907
11908cat >confcache <<\_ACEOF
11909# This file is a shell script that caches the results of configure
11910# tests run on this system so they can be shared between configure
11911# scripts and configure runs, see configure's option --config-cache.
11912# It is not useful on other systems. If it contains results you don't
11913# want to keep, you may remove or edit it.
11914#
11915# config.status only pays attention to the cache file if you give it
11916# the --recheck option to rerun configure.
11917#
11918# `ac_cv_env_foo' variables (set or unset) will be overridden when
11919# loading this file, other *unset* `ac_cv_foo' will be assigned the
11920# following values.
11921
11922_ACEOF
11923
11924# The following way of writing the cache mishandles newlines in values,
11925# but we know of no workaround that is simple, portable, and efficient.
11926# So, don't put newlines in cache variables' values.
11927# Ultrix sh set writes to stderr and can't be redirected directly,
11928# and sets the high bit in the cache file unless we assign to the vars.
11929{
11930 (set) 2>&1 |
11931 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11932 *ac_space=\ *)
11933 # `set' does not quote correctly, so add quotes (double-quote
11934 # substitution turns \\\\ into \\, and sed turns \\ into \).
11935 sed -n \
11936 "s/'/'\\\\''/g;
11937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11938 ;;
11939 *)
11940 # `set' quotes correctly as required by POSIX, so do not add quotes.
11941 sed -n \
11942 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11943 ;;
11944 esac;
11945} |
11946 sed '
11947 t clear
11948 : clear
11949 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11950 t end
11951 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11952 : end' >>confcache
11953if diff $cache_file confcache >/dev/null 2>&1; then :; else
11954 if test -w $cache_file; then
11955 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11956 cat confcache >$cache_file
11957 else
11958 echo "not updating unwritable cache $cache_file"
11959 fi
11960fi
11961rm -f confcache
11962
11963CFLAGS=${CFLAGS:=}
11964
11965
11966
11967 ac_ext=c
a848cd7e
SC
11968ac_cpp='$CPP $CPPFLAGS'
11969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11971ac_compiler_gnu=$ac_cv_c_compiler_gnu
11972if test -n "$ac_tool_prefix"; then
11973 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11974set dummy ${ac_tool_prefix}gcc; ac_word=$2
11975echo "$as_me:$LINENO: checking for $ac_word" >&5
11976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11977if test "${ac_cv_prog_CC+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11979else
11980 if test -n "$CC"; then
11981 ac_cv_prog_CC="$CC" # Let the user override the test.
11982else
11983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11984for as_dir in $PATH
11985do
11986 IFS=$as_save_IFS
11987 test -z "$as_dir" && as_dir=.
11988 for ac_exec_ext in '' $ac_executable_extensions; do
11989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11990 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11992 break 2
11993 fi
11994done
11995done
11996
11997fi
11998fi
11999CC=$ac_cv_prog_CC
12000if test -n "$CC"; then
12001 echo "$as_me:$LINENO: result: $CC" >&5
12002echo "${ECHO_T}$CC" >&6
12003else
12004 echo "$as_me:$LINENO: result: no" >&5
12005echo "${ECHO_T}no" >&6
12006fi
12007
12008fi
12009if test -z "$ac_cv_prog_CC"; then
12010 ac_ct_CC=$CC
12011 # Extract the first word of "gcc", so it can be a program name with args.
12012set dummy gcc; ac_word=$2
12013echo "$as_me:$LINENO: checking for $ac_word" >&5
12014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12015if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12017else
12018 if test -n "$ac_ct_CC"; then
12019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12020else
12021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12022for as_dir in $PATH
12023do
12024 IFS=$as_save_IFS
12025 test -z "$as_dir" && as_dir=.
12026 for ac_exec_ext in '' $ac_executable_extensions; do
12027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12028 ac_cv_prog_ac_ct_CC="gcc"
12029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12030 break 2
12031 fi
12032done
12033done
12034
12035fi
12036fi
12037ac_ct_CC=$ac_cv_prog_ac_ct_CC
12038if test -n "$ac_ct_CC"; then
12039 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12040echo "${ECHO_T}$ac_ct_CC" >&6
12041else
12042 echo "$as_me:$LINENO: result: no" >&5
12043echo "${ECHO_T}no" >&6
12044fi
12045
12046 CC=$ac_ct_CC
12047else
12048 CC="$ac_cv_prog_CC"
12049fi
12050
12051if test -z "$CC"; then
12052 if test -n "$ac_tool_prefix"; then
12053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12054set dummy ${ac_tool_prefix}cc; ac_word=$2
12055echo "$as_me:$LINENO: checking for $ac_word" >&5
12056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12057if test "${ac_cv_prog_CC+set}" = set; then
12058 echo $ECHO_N "(cached) $ECHO_C" >&6
12059else
12060 if test -n "$CC"; then
12061 ac_cv_prog_CC="$CC" # Let the user override the test.
12062else
12063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064for as_dir in $PATH
12065do
12066 IFS=$as_save_IFS
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12070 ac_cv_prog_CC="${ac_tool_prefix}cc"
12071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12072 break 2
12073 fi
12074done
12075done
12076
12077fi
12078fi
12079CC=$ac_cv_prog_CC
12080if test -n "$CC"; then
12081 echo "$as_me:$LINENO: result: $CC" >&5
12082echo "${ECHO_T}$CC" >&6
12083else
12084 echo "$as_me:$LINENO: result: no" >&5
12085echo "${ECHO_T}no" >&6
12086fi
12087
12088fi
12089if test -z "$ac_cv_prog_CC"; then
12090 ac_ct_CC=$CC
12091 # Extract the first word of "cc", so it can be a program name with args.
12092set dummy cc; ac_word=$2
12093echo "$as_me:$LINENO: checking for $ac_word" >&5
12094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12095if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12097else
12098 if test -n "$ac_ct_CC"; then
12099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12100else
12101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102for as_dir in $PATH
12103do
12104 IFS=$as_save_IFS
12105 test -z "$as_dir" && as_dir=.
12106 for ac_exec_ext in '' $ac_executable_extensions; do
12107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12108 ac_cv_prog_ac_ct_CC="cc"
12109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12110 break 2
12111 fi
12112done
12113done
12114
12115fi
12116fi
12117ac_ct_CC=$ac_cv_prog_ac_ct_CC
12118if test -n "$ac_ct_CC"; then
12119 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12120echo "${ECHO_T}$ac_ct_CC" >&6
12121else
12122 echo "$as_me:$LINENO: result: no" >&5
12123echo "${ECHO_T}no" >&6
12124fi
12125
12126 CC=$ac_ct_CC
12127else
12128 CC="$ac_cv_prog_CC"
12129fi
12130
12131fi
12132if test -z "$CC"; then
12133 # Extract the first word of "cc", so it can be a program name with args.
12134set dummy cc; ac_word=$2
12135echo "$as_me:$LINENO: checking for $ac_word" >&5
12136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12137if test "${ac_cv_prog_CC+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139else
12140 if test -n "$CC"; then
12141 ac_cv_prog_CC="$CC" # Let the user override the test.
12142else
12143 ac_prog_rejected=no
12144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145for as_dir in $PATH
12146do
12147 IFS=$as_save_IFS
12148 test -z "$as_dir" && as_dir=.
12149 for ac_exec_ext in '' $ac_executable_extensions; do
12150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12151 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12152 ac_prog_rejected=yes
12153 continue
12154 fi
12155 ac_cv_prog_CC="cc"
12156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12157 break 2
12158 fi
12159done
12160done
12161
12162if test $ac_prog_rejected = yes; then
12163 # We found a bogon in the path, so make sure we never use it.
12164 set dummy $ac_cv_prog_CC
12165 shift
12166 if test $# != 0; then
12167 # We chose a different compiler from the bogus one.
12168 # However, it has the same basename, so the bogon will be chosen
12169 # first if we set CC to just the basename; use the full file name.
12170 shift
12171 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12172 fi
12173fi
12174fi
12175fi
12176CC=$ac_cv_prog_CC
12177if test -n "$CC"; then
12178 echo "$as_me:$LINENO: result: $CC" >&5
12179echo "${ECHO_T}$CC" >&6
12180else
12181 echo "$as_me:$LINENO: result: no" >&5
12182echo "${ECHO_T}no" >&6
12183fi
12184
12185fi
12186if test -z "$CC"; then
12187 if test -n "$ac_tool_prefix"; then
12188 for ac_prog in cl
12189 do
12190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12191set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12192echo "$as_me:$LINENO: checking for $ac_word" >&5
12193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12194if test "${ac_cv_prog_CC+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12196else
12197 if test -n "$CC"; then
12198 ac_cv_prog_CC="$CC" # Let the user override the test.
12199else
12200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12201for as_dir in $PATH
12202do
12203 IFS=$as_save_IFS
12204 test -z "$as_dir" && as_dir=.
12205 for ac_exec_ext in '' $ac_executable_extensions; do
12206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12207 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12209 break 2
12210 fi
12211done
12212done
12213
12214fi
12215fi
12216CC=$ac_cv_prog_CC
12217if test -n "$CC"; then
12218 echo "$as_me:$LINENO: result: $CC" >&5
12219echo "${ECHO_T}$CC" >&6
12220else
12221 echo "$as_me:$LINENO: result: no" >&5
12222echo "${ECHO_T}no" >&6
12223fi
12224
12225 test -n "$CC" && break
12226 done
12227fi
12228if test -z "$CC"; then
12229 ac_ct_CC=$CC
12230 for ac_prog in cl
12231do
12232 # Extract the first word of "$ac_prog", so it can be a program name with args.
12233set dummy $ac_prog; ac_word=$2
12234echo "$as_me:$LINENO: checking for $ac_word" >&5
12235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12236if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238else
12239 if test -n "$ac_ct_CC"; then
12240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12241else
12242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12243for as_dir in $PATH
12244do
12245 IFS=$as_save_IFS
12246 test -z "$as_dir" && as_dir=.
12247 for ac_exec_ext in '' $ac_executable_extensions; do
12248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12249 ac_cv_prog_ac_ct_CC="$ac_prog"
12250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12251 break 2
12252 fi
12253done
12254done
12255
12256fi
12257fi
12258ac_ct_CC=$ac_cv_prog_ac_ct_CC
12259if test -n "$ac_ct_CC"; then
12260 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12261echo "${ECHO_T}$ac_ct_CC" >&6
12262else
12263 echo "$as_me:$LINENO: result: no" >&5
12264echo "${ECHO_T}no" >&6
12265fi
12266
12267 test -n "$ac_ct_CC" && break
12268done
12269
12270 CC=$ac_ct_CC
12271fi
12272
12273fi
12274
12275
12276test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12277See \`config.log' for more details." >&5
12278echo "$as_me: error: no acceptable C compiler found in \$PATH
12279See \`config.log' for more details." >&2;}
12280 { (exit 1); exit 1; }; }
12281
12282# Provide some information about the compiler.
12283echo "$as_me:$LINENO:" \
12284 "checking for C compiler version" >&5
12285ac_compiler=`set X $ac_compile; echo $2`
12286{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12287 (eval $ac_compiler --version </dev/null >&5) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }
12291{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12292 (eval $ac_compiler -v </dev/null >&5) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }
12296{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12297 (eval $ac_compiler -V </dev/null >&5) 2>&5
12298 ac_status=$?
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }
12301
12302cat >conftest.$ac_ext <<_ACEOF
12303/* confdefs.h. */
12304_ACEOF
12305cat confdefs.h >>conftest.$ac_ext
12306cat >>conftest.$ac_ext <<_ACEOF
12307/* end confdefs.h. */
12308
12309int
12310main ()
12311{
12312
12313 ;
12314 return 0;
12315}
12316_ACEOF
12317ac_clean_files_save=$ac_clean_files
12318ac_clean_files="$ac_clean_files a.out a.exe b.out"
12319# Try to create an executable without -o first, disregard a.out.
12320# It will help us diagnose broken compilers, and finding out an intuition
12321# of exeext.
ac1cb8d3
VS
12322echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12323echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
12324ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12325if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12326 (eval $ac_link_default) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; then
12330 # Find the output, starting from the most likely. This scheme is
12331# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12332# resort.
12333
12334# Be careful to initialize this variable, since it used to be cached.
12335# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12336ac_cv_exeext=
12337# b.out is created by i960 compilers.
12338for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12339do
12340 test -f "$ac_file" || continue
12341 case $ac_file in
12342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 12343 ;;
a848cd7e 12344 conftest.$ac_ext )
ac1cb8d3
VS
12345 # This is the source file.
12346 ;;
a848cd7e 12347 [ab].out )
ac1cb8d3
VS
12348 # We found the default executable, but exeext='' is most
12349 # certainly right.
12350 break;;
a848cd7e 12351 *.* )
ac1cb8d3
VS
12352 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12353 # FIXME: I believe we export ac_cv_exeext for Libtool,
12354 # but it would be cool to find out if it's true. Does anybody
12355 # maintain Libtool? --akim.
12356 export ac_cv_exeext
12357 break;;
a848cd7e 12358 * )
ac1cb8d3 12359 break;;
a848cd7e
SC
12360 esac
12361done
12362else
12363 echo "$as_me: failed program was:" >&5
12364sed 's/^/| /' conftest.$ac_ext >&5
12365
12366{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12367See \`config.log' for more details." >&5
12368echo "$as_me: error: C compiler cannot create executables
12369See \`config.log' for more details." >&2;}
12370 { (exit 77); exit 77; }; }
12371fi
12372
12373ac_exeext=$ac_cv_exeext
12374echo "$as_me:$LINENO: result: $ac_file" >&5
12375echo "${ECHO_T}$ac_file" >&6
12376
12377# Check the compiler produces executables we can run. If not, either
12378# the compiler is broken, or we cross compile.
12379echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12380echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12381# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12382# If not cross compiling, check that we can run a simple program.
12383if test "$cross_compiling" != yes; then
12384 if { ac_try='./$ac_file'
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12387 ac_status=$?
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
12390 cross_compiling=no
12391 else
12392 if test "$cross_compiling" = maybe; then
12393 cross_compiling=yes
12394 else
12395 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12396If you meant to cross compile, use \`--host'.
12397See \`config.log' for more details." >&5
12398echo "$as_me: error: cannot run C compiled programs.
12399If you meant to cross compile, use \`--host'.
12400See \`config.log' for more details." >&2;}
12401 { (exit 1); exit 1; }; }
12402 fi
12403 fi
12404fi
12405echo "$as_me:$LINENO: result: yes" >&5
12406echo "${ECHO_T}yes" >&6
12407
12408rm -f a.out a.exe conftest$ac_cv_exeext b.out
12409ac_clean_files=$ac_clean_files_save
12410# Check the compiler produces executables we can run. If not, either
12411# the compiler is broken, or we cross compile.
12412echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12413echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12414echo "$as_me:$LINENO: result: $cross_compiling" >&5
12415echo "${ECHO_T}$cross_compiling" >&6
12416
12417echo "$as_me:$LINENO: checking for suffix of executables" >&5
12418echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12420 (eval $ac_link) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; then
12424 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12425# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12426# work properly (i.e., refer to `conftest.exe'), while it won't with
12427# `rm'.
12428for ac_file in conftest.exe conftest conftest.*; do
12429 test -f "$ac_file" || continue
12430 case $ac_file in
12431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12432 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12433 export ac_cv_exeext
12434 break;;
8bf7f1a9
VZ
12435 * ) break;;
12436 esac
6da4ac91 12437done
6da4ac91 12438else
8bf7f1a9
VZ
12439 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12440See \`config.log' for more details." >&5
12441echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12442See \`config.log' for more details." >&2;}
12443 { (exit 1); exit 1; }; }
6da4ac91
VZ
12444fi
12445
8bf7f1a9
VZ
12446rm -f conftest$ac_cv_exeext
12447echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12448echo "${ECHO_T}$ac_cv_exeext" >&6
12449
12450rm -f conftest.$ac_ext
12451EXEEXT=$ac_cv_exeext
12452ac_exeext=$EXEEXT
12453echo "$as_me:$LINENO: checking for suffix of object files" >&5
12454echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12455if test "${ac_cv_objext+set}" = set; then
6da4ac91
VZ
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12457else
8bf7f1a9
VZ
12458 cat >conftest.$ac_ext <<_ACEOF
12459/* confdefs.h. */
12460_ACEOF
12461cat confdefs.h >>conftest.$ac_ext
12462cat >>conftest.$ac_ext <<_ACEOF
12463/* end confdefs.h. */
6da4ac91 12464
8bf7f1a9
VZ
12465int
12466main ()
12467{
6da4ac91 12468
8bf7f1a9
VZ
12469 ;
12470 return 0;
12471}
12472_ACEOF
12473rm -f conftest.o conftest.obj
12474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12475 (eval $ac_compile) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; then
12479 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12480 case $ac_file in
12481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12482 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12483 break;;
12484 esac
6da4ac91 12485done
8bf7f1a9
VZ
12486else
12487 echo "$as_me: failed program was:" >&5
12488sed 's/^/| /' conftest.$ac_ext >&5
6da4ac91 12489
8bf7f1a9 12490{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
6da4ac91 12491See \`config.log' for more details." >&5
8bf7f1a9 12492echo "$as_me: error: cannot compute suffix of object files: cannot compile
6da4ac91
VZ
12493See \`config.log' for more details." >&2;}
12494 { (exit 1); exit 1; }; }
8bf7f1a9 12495fi
6da4ac91 12496
8bf7f1a9
VZ
12497rm -f conftest.$ac_cv_objext conftest.$ac_ext
12498fi
12499echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12500echo "${ECHO_T}$ac_cv_objext" >&6
12501OBJEXT=$ac_cv_objext
12502ac_objext=$OBJEXT
6da4ac91
VZ
12503echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12504echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12505if test "${ac_cv_c_compiler_gnu+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12507else
12508 cat >conftest.$ac_ext <<_ACEOF
12509/* confdefs.h. */
12510_ACEOF
12511cat confdefs.h >>conftest.$ac_ext
12512cat >>conftest.$ac_ext <<_ACEOF
12513/* end confdefs.h. */
12514
12515int
12516main ()
12517{
12518#ifndef __GNUC__
12519 choke me
12520#endif
12521
12522 ;
12523 return 0;
12524}
12525_ACEOF
12526rm -f conftest.$ac_objext
12527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12528 (eval $ac_compile) 2>conftest.er1
12529 ac_status=$?
12530 grep -v '^ *+' conftest.er1 >conftest.err
12531 rm -f conftest.er1
12532 cat conftest.err >&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } &&
12535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; } &&
12541 { ac_try='test -s conftest.$ac_objext'
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 ac_compiler_gnu=yes
12548else
12549 echo "$as_me: failed program was:" >&5
12550sed 's/^/| /' conftest.$ac_ext >&5
12551
12552ac_compiler_gnu=no
12553fi
12554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12555ac_cv_c_compiler_gnu=$ac_compiler_gnu
12556
12557fi
12558echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12559echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12560GCC=`test $ac_compiler_gnu = yes && echo yes`
12561ac_test_CFLAGS=${CFLAGS+set}
12562ac_save_CFLAGS=$CFLAGS
d7ae4a62 12563CFLAGS="$CFLAGS -g"
6da4ac91
VZ
12564echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12565echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12566if test "${ac_cv_prog_cc_g+set}" = set; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12568else
12569 cat >conftest.$ac_ext <<_ACEOF
12570/* confdefs.h. */
12571_ACEOF
12572cat confdefs.h >>conftest.$ac_ext
12573cat >>conftest.$ac_ext <<_ACEOF
12574/* end confdefs.h. */
12575
12576int
12577main ()
12578{
12579
12580 ;
12581 return 0;
12582}
12583_ACEOF
12584rm -f conftest.$ac_objext
12585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12586 (eval $ac_compile) 2>conftest.er1
12587 ac_status=$?
12588 grep -v '^ *+' conftest.er1 >conftest.err
12589 rm -f conftest.er1
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12596 ac_status=$?
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; } &&
12599 { ac_try='test -s conftest.$ac_objext'
12600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601 (eval $ac_try) 2>&5
12602 ac_status=$?
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; }; then
12605 ac_cv_prog_cc_g=yes
12606else
12607 echo "$as_me: failed program was:" >&5
12608sed 's/^/| /' conftest.$ac_ext >&5
12609
12610ac_cv_prog_cc_g=no
12611fi
12612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12613fi
12614echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12615echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12616if test "$ac_test_CFLAGS" = set; then
12617 CFLAGS=$ac_save_CFLAGS
12618elif test $ac_cv_prog_cc_g = yes; then
12619 if test "$GCC" = yes; then
12620 CFLAGS="-g -O2"
12621 else
12622 CFLAGS="-g"
12623 fi
12624else
12625 if test "$GCC" = yes; then
12626 CFLAGS="-O2"
12627 else
12628 CFLAGS=
12629 fi
12630fi
12631echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12632echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12633if test "${ac_cv_prog_cc_stdc+set}" = set; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12635else
12636 ac_cv_prog_cc_stdc=no
12637ac_save_CC=$CC
12638cat >conftest.$ac_ext <<_ACEOF
12639/* confdefs.h. */
12640_ACEOF
12641cat confdefs.h >>conftest.$ac_ext
12642cat >>conftest.$ac_ext <<_ACEOF
12643/* end confdefs.h. */
12644#include <stdarg.h>
12645#include <stdio.h>
12646#include <sys/types.h>
12647#include <sys/stat.h>
12648/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12649struct buf { int x; };
12650FILE * (*rcsopen) (struct buf *, struct stat *, int);
12651static char *e (p, i)
12652 char **p;
12653 int i;
12654{
12655 return p[i];
12656}
12657static char *f (char * (*g) (char **, int), char **p, ...)
12658{
12659 char *s;
12660 va_list v;
12661 va_start (v,p);
12662 s = g (p, va_arg (v,int));
12663 va_end (v);
12664 return s;
12665}
12666
12667/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12668 function prototypes and stuff, but not '\xHH' hex character constants.
12669 These don't provoke an error unfortunately, instead are silently treated
12670 as 'x'. The following induces an error, until -std1 is added to get
12671 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12672 array size at least. It's necessary to write '\x00'==0 to get something
12673 that's true only with -std1. */
12674int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12675
12676int test (int i, double x);
12677struct s1 {int (*f) (int a);};
12678struct s2 {int (*f) (double a);};
12679int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12680int argc;
12681char **argv;
12682int
12683main ()
12684{
12685return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12686 ;
12687 return 0;
12688}
12689_ACEOF
12690# Don't try gcc -ansi; that turns off useful extensions and
12691# breaks some systems' header files.
12692# AIX -qlanglvl=ansi
12693# Ultrix and OSF/1 -std1
12694# HP-UX 10.20 and later -Ae
12695# HP-UX older versions -Aa -D_HPUX_SOURCE
12696# SVR4 -Xc -D__EXTENSIONS__
12697for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12698do
12699 CC="$ac_save_CC $ac_arg"
12700 rm -f conftest.$ac_objext
12701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12702 (eval $ac_compile) 2>conftest.er1
12703 ac_status=$?
12704 grep -v '^ *+' conftest.er1 >conftest.err
12705 rm -f conftest.er1
12706 cat conftest.err >&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } &&
12709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711 (eval $ac_try) 2>&5
12712 ac_status=$?
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; } &&
12715 { ac_try='test -s conftest.$ac_objext'
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; }; then
12721 ac_cv_prog_cc_stdc=$ac_arg
12722break
12723else
12724 echo "$as_me: failed program was:" >&5
12725sed 's/^/| /' conftest.$ac_ext >&5
12726
12727fi
12728rm -f conftest.err conftest.$ac_objext
12729done
12730rm -f conftest.$ac_ext conftest.$ac_objext
12731CC=$ac_save_CC
12732
12733fi
12734
12735case "x$ac_cv_prog_cc_stdc" in
12736 x|xno)
12737 echo "$as_me:$LINENO: result: none needed" >&5
12738echo "${ECHO_T}none needed" >&6 ;;
12739 *)
12740 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12741echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12742 CC="$CC $ac_cv_prog_cc_stdc" ;;
12743esac
12744
12745# Some people use a C++ compiler to compile C. Since we use `exit',
12746# in C++ we need to declare it. In case someone uses the same compiler
12747# for both compiling C and C++ we need to have the C++ compiler decide
12748# the declaration of exit, since it's the most demanding environment.
12749cat >conftest.$ac_ext <<_ACEOF
12750#ifndef __cplusplus
12751 choke me
12752#endif
12753_ACEOF
12754rm -f conftest.$ac_objext
12755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12756 (eval $ac_compile) 2>conftest.er1
12757 ac_status=$?
12758 grep -v '^ *+' conftest.er1 >conftest.err
12759 rm -f conftest.er1
12760 cat conftest.err >&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
12763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; } &&
12769 { ac_try='test -s conftest.$ac_objext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 for ac_declaration in \
12776 '' \
12777 'extern "C" void std::exit (int) throw (); using std::exit;' \
12778 'extern "C" void std::exit (int); using std::exit;' \
12779 'extern "C" void exit (int) throw ();' \
12780 'extern "C" void exit (int);' \
12781 'void exit (int);'
12782do
12783 cat >conftest.$ac_ext <<_ACEOF
12784/* confdefs.h. */
12785_ACEOF
12786cat confdefs.h >>conftest.$ac_ext
12787cat >>conftest.$ac_ext <<_ACEOF
12788/* end confdefs.h. */
12789$ac_declaration
12790#include <stdlib.h>
12791int
12792main ()
12793{
12794exit (42);
12795 ;
12796 return 0;
12797}
12798_ACEOF
12799rm -f conftest.$ac_objext
12800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801 (eval $ac_compile) 2>conftest.er1
12802 ac_status=$?
12803 grep -v '^ *+' conftest.er1 >conftest.err
12804 rm -f conftest.er1
12805 cat conftest.err >&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } &&
12808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; } &&
12814 { ac_try='test -s conftest.$ac_objext'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12820 :
12821else
12822 echo "$as_me: failed program was:" >&5
12823sed 's/^/| /' conftest.$ac_ext >&5
12824
12825continue
12826fi
12827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12828 cat >conftest.$ac_ext <<_ACEOF
12829/* confdefs.h. */
12830_ACEOF
12831cat confdefs.h >>conftest.$ac_ext
12832cat >>conftest.$ac_ext <<_ACEOF
12833/* end confdefs.h. */
12834$ac_declaration
12835int
12836main ()
12837{
12838exit (42);
12839 ;
12840 return 0;
12841}
12842_ACEOF
12843rm -f conftest.$ac_objext
12844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12845 (eval $ac_compile) 2>conftest.er1
12846 ac_status=$?
12847 grep -v '^ *+' conftest.er1 >conftest.err
12848 rm -f conftest.er1
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } &&
12852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12855 ac_status=$?
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; } &&
12858 { ac_try='test -s conftest.$ac_objext'
12859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12861 ac_status=$?
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; }; then
12864 break
12865else
12866 echo "$as_me: failed program was:" >&5
12867sed 's/^/| /' conftest.$ac_ext >&5
12868
12869fi
12870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12871done
12872rm -f conftest*
12873if test -n "$ac_declaration"; then
12874 echo '#ifdef __cplusplus' >>confdefs.h
12875 echo $ac_declaration >>confdefs.h
12876 echo '#endif' >>confdefs.h
12877fi
12878
12879else
12880 echo "$as_me: failed program was:" >&5
12881sed 's/^/| /' conftest.$ac_ext >&5
12882
12883fi
12884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12885ac_ext=c
12886ac_cpp='$CPP $CPPFLAGS'
12887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12889ac_compiler_gnu=$ac_cv_c_compiler_gnu
12890
12891
ab0ad5f1
VZ
12892
12893 ac_ext=c
12894ac_cpp='$CPP $CPPFLAGS'
12895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12897ac_compiler_gnu=$ac_cv_c_compiler_gnu
12898
12899 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12900echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12901if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903else
12904 cat >conftest.$ac_ext <<_ACEOF
12905/* confdefs.h. */
12906_ACEOF
12907cat confdefs.h >>conftest.$ac_ext
12908cat >>conftest.$ac_ext <<_ACEOF
12909/* end confdefs.h. */
12910
12911int
12912main ()
12913{
12914
12915 #ifndef __INTEL_COMPILER
12916 choke me
12917 #endif
12918
12919 ;
12920 return 0;
12921}
12922_ACEOF
12923rm -f conftest.$ac_objext
12924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12925 (eval $ac_compile) 2>conftest.er1
12926 ac_status=$?
12927 grep -v '^ *+' conftest.er1 >conftest.err
12928 rm -f conftest.er1
12929 cat conftest.err >&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } &&
bb9e79c0 12932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; } &&
12938 { ac_try='test -s conftest.$ac_objext'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
12944 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12945else
12946 echo "$as_me: failed program was:" >&5
12947sed 's/^/| /' conftest.$ac_ext >&5
12948
12949bakefile_cv_c_compiler___INTEL_COMPILER=no
12950
12951fi
12952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12953
12954
12955fi
12956echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12957echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12958 ac_ext=c
12959ac_cpp='$CPP $CPPFLAGS'
12960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12962ac_compiler_gnu=$ac_cv_c_compiler_gnu
12963
12964 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12965 :; INTELCC=yes
12966 else
12967 :;
12968 fi
12969
12970
12971 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12972 if test "xCC" = "xC"; then
12973 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12974echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12975if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12977else
12978 cat >conftest.$ac_ext <<_ACEOF
12979/* confdefs.h. */
12980_ACEOF
12981cat confdefs.h >>conftest.$ac_ext
12982cat >>conftest.$ac_ext <<_ACEOF
12983/* end confdefs.h. */
12984
12985int
12986main ()
12987{
12988
12989 ;
12990 return 0;
12991}
12992_ACEOF
12993rm -f conftest.$ac_objext conftest.$ac_ext.o
12994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12995 (eval $ac_compile) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; then
12999 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13000 case $ac_file in
13001 conftest.$ac_ext.o)
0093c2fc 13002 bakefile_cv_c_exto="-ext o"
480ccd21
DE
13003 ;;
13004 *)
13005 ;;
13006 esac
13007done
13008else
13009 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13010See \`config.log' for more details." >&5
13011echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13012See \`config.log' for more details." >&2;}
13013 { (exit 1); exit 1; }; }
13014
13015fi
13016
13017rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13018
13019fi
0093c2fc
VZ
13020echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
13021echo "${ECHO_T}$bakefile_cv_c_exto" >&6
13022if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 13023 if test "c" = "c"; then
0093c2fc 13024 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
13025 fi
13026 if test "c" = "cxx"; then
0093c2fc 13027 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
13028 fi
13029fi
13030
0093c2fc 13031 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13032 unset ac_cv_prog_cc_g
13033 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 13034ac_save_CFLAGS=$CFLAGS
d7ae4a62 13035CFLAGS="$CFLAGS -g"
480ccd21
DE
13036echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13037echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13038if test "${ac_cv_prog_cc_g+set}" = set; then
13039 echo $ECHO_N "(cached) $ECHO_C" >&6
13040else
13041 cat >conftest.$ac_ext <<_ACEOF
13042/* confdefs.h. */
13043_ACEOF
13044cat confdefs.h >>conftest.$ac_ext
13045cat >>conftest.$ac_ext <<_ACEOF
13046/* end confdefs.h. */
13047
13048int
13049main ()
13050{
13051
13052 ;
13053 return 0;
13054}
13055_ACEOF
13056rm -f conftest.$ac_objext
13057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13058 (eval $ac_compile) 2>conftest.er1
13059 ac_status=$?
13060 grep -v '^ *+' conftest.er1 >conftest.err
13061 rm -f conftest.er1
13062 cat conftest.err >&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } &&
bb9e79c0 13065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; } &&
13071 { ac_try='test -s conftest.$ac_objext'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13074 ac_status=$?
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; }; then
13077 ac_cv_prog_cc_g=yes
13078else
13079 echo "$as_me: failed program was:" >&5
13080sed 's/^/| /' conftest.$ac_ext >&5
13081
13082ac_cv_prog_cc_g=no
13083fi
13084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13085fi
13086echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13087echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13088if test "$ac_test_CFLAGS" = set; then
13089 CFLAGS=$ac_save_CFLAGS
13090elif test $ac_cv_prog_cc_g = yes; then
13091 if test "$GCC" = yes; then
13092 CFLAGS="-g -O2"
13093 else
13094 CFLAGS="-g"
13095 fi
13096else
13097 if test "$GCC" = yes; then
13098 CFLAGS="-O2"
13099 else
13100 CFLAGS=
13101 fi
13102fi
3006edc0 13103 fi
ab0ad5f1 13104 fi
3006edc0
VZ
13105
13106 case `uname -s` in
13107 AIX*)
13108 ac_ext=c
13109ac_cpp='$CPP $CPPFLAGS'
13110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13112ac_compiler_gnu=$ac_cv_c_compiler_gnu
13113
13114echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13115echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13116if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13118else
13119 cat >conftest.$ac_ext <<_ACEOF
13120/* confdefs.h. */
13121_ACEOF
13122cat confdefs.h >>conftest.$ac_ext
13123cat >>conftest.$ac_ext <<_ACEOF
13124/* end confdefs.h. */
13125
13126int
13127main ()
13128{
13129#ifndef __xlC__
13130 choke me
13131#endif
13132
13133 ;
13134 return 0;
13135}
13136_ACEOF
13137rm -f conftest.$ac_objext
13138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13139 (eval $ac_compile) 2>conftest.er1
13140 ac_status=$?
13141 grep -v '^ *+' conftest.er1 >conftest.err
13142 rm -f conftest.er1
13143 cat conftest.err >&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } &&
bb9e79c0 13146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } &&
13152 { ac_try='test -s conftest.$ac_objext'
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13155 ac_status=$?
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; }; then
0093c2fc 13158 bakefile_compiler_xlc=yes
3006edc0
VZ
13159else
13160 echo "$as_me: failed program was:" >&5
13161sed 's/^/| /' conftest.$ac_ext >&5
13162
0093c2fc 13163bakefile_compiler_xlc=no
3006edc0
VZ
13164fi
13165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13166 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13167
13168fi
0093c2fc
VZ
13169echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13170echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 13171
0093c2fc 13172XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
13173ac_ext=c
13174ac_cpp='$CPP $CPPFLAGS'
13175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13177ac_compiler_gnu=$ac_cv_c_compiler_gnu
13178
13179
13180 ;;
13181
13182 Darwin)
13183 ac_ext=c
95986553
DE
13184ac_cpp='$CPP $CPPFLAGS'
13185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13187ac_compiler_gnu=$ac_cv_c_compiler_gnu
13188
13189echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
13190echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
13191if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13193else
13194 cat >conftest.$ac_ext <<_ACEOF
13195/* confdefs.h. */
13196_ACEOF
13197cat confdefs.h >>conftest.$ac_ext
13198cat >>conftest.$ac_ext <<_ACEOF
13199/* end confdefs.h. */
13200
13201int
13202main ()
13203{
13204#ifndef __MWERKS__
13205 choke me
13206#endif
13207
13208 ;
13209 return 0;
13210}
13211_ACEOF
13212rm -f conftest.$ac_objext
13213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13214 (eval $ac_compile) 2>conftest.er1
13215 ac_status=$?
13216 grep -v '^ *+' conftest.er1 >conftest.err
13217 rm -f conftest.er1
13218 cat conftest.err >&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } &&
bb9e79c0 13221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
13222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; } &&
13227 { ac_try='test -s conftest.$ac_objext'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; }; then
13233 bakefile_compiler_mwerks=yes
13234else
13235 echo "$as_me: failed program was:" >&5
13236sed 's/^/| /' conftest.$ac_ext >&5
13237
13238bakefile_compiler_mwerks=no
13239fi
13240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13241 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
13242
13243fi
13244echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
13245echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
13246
0e6fa1d9 13247MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
13248ac_ext=c
13249ac_cpp='$CPP $CPPFLAGS'
13250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13252ac_compiler_gnu=$ac_cv_c_compiler_gnu
13253
13254
3006edc0 13255 ac_ext=c
9273ffba
DE
13256ac_cpp='$CPP $CPPFLAGS'
13257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13259ac_compiler_gnu=$ac_cv_c_compiler_gnu
13260
13261echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13262echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13263if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13265else
13266 cat >conftest.$ac_ext <<_ACEOF
13267/* confdefs.h. */
13268_ACEOF
13269cat confdefs.h >>conftest.$ac_ext
13270cat >>conftest.$ac_ext <<_ACEOF
13271/* end confdefs.h. */
13272
13273int
13274main ()
13275{
13276#ifndef __xlC__
13277 choke me
13278#endif
13279
13280 ;
13281 return 0;
13282}
13283_ACEOF
13284rm -f conftest.$ac_objext
13285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13286 (eval $ac_compile) 2>conftest.er1
13287 ac_status=$?
13288 grep -v '^ *+' conftest.er1 >conftest.err
13289 rm -f conftest.er1
13290 cat conftest.err >&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } &&
bb9e79c0 13293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295 (eval $ac_try) 2>&5
13296 ac_status=$?
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; } &&
13299 { ac_try='test -s conftest.$ac_objext'
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }; then
0093c2fc 13305 bakefile_compiler_xlc=yes
9273ffba
DE
13306else
13307 echo "$as_me: failed program was:" >&5
13308sed 's/^/| /' conftest.$ac_ext >&5
13309
0093c2fc 13310bakefile_compiler_xlc=no
9273ffba
DE
13311fi
13312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13313 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13314
13315fi
0093c2fc
VZ
13316echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13317echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 13318
0093c2fc 13319XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
13320ac_ext=c
13321ac_cpp='$CPP $CPPFLAGS'
13322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13324ac_compiler_gnu=$ac_cv_c_compiler_gnu
13325
13326
3006edc0
VZ
13327 ;;
13328
13329 IRIX*)
a848cd7e 13330
6dcfc289 13331
0ad5d837
VZ
13332 ac_ext=c
13333ac_cpp='$CPP $CPPFLAGS'
13334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13336ac_compiler_gnu=$ac_cv_c_compiler_gnu
13337
13338 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13339echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
13340if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13341 echo $ECHO_N "(cached) $ECHO_C" >&6
13342else
13343 cat >conftest.$ac_ext <<_ACEOF
13344/* confdefs.h. */
13345_ACEOF
13346cat confdefs.h >>conftest.$ac_ext
13347cat >>conftest.$ac_ext <<_ACEOF
13348/* end confdefs.h. */
13349
13350int
13351main ()
13352{
13353
13354 #ifndef _SGI_COMPILER_VERSION
13355 choke me
13356 #endif
13357
13358 ;
13359 return 0;
13360}
13361_ACEOF
13362rm -f conftest.$ac_objext
13363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13364 (eval $ac_compile) 2>conftest.er1
13365 ac_status=$?
13366 grep -v '^ *+' conftest.er1 >conftest.err
13367 rm -f conftest.er1
13368 cat conftest.err >&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } &&
bb9e79c0 13371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13374 ac_status=$?
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; } &&
13377 { ac_try='test -s conftest.$ac_objext'
13378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379 (eval $ac_try) 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
13383 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13384else
13385 echo "$as_me: failed program was:" >&5
13386sed 's/^/| /' conftest.$ac_ext >&5
13387
13388bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13389
13390fi
13391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13392
13393
13394fi
13395echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13396echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13397 ac_ext=c
13398ac_cpp='$CPP $CPPFLAGS'
13399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13401ac_compiler_gnu=$ac_cv_c_compiler_gnu
13402
13403 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13404 :; SGICC=yes
13405 else
13406 :;
13407 fi
13408
13409
3006edc0
VZ
13410 ;;
13411
0093c2fc 13412 HP-UX*)
3006edc0
VZ
13413
13414
13415 ac_ext=c
13416ac_cpp='$CPP $CPPFLAGS'
13417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13419ac_compiler_gnu=$ac_cv_c_compiler_gnu
13420
0093c2fc
VZ
13421 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13422echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13423if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13425else
13426 cat >conftest.$ac_ext <<_ACEOF
13427/* confdefs.h. */
13428_ACEOF
13429cat confdefs.h >>conftest.$ac_ext
13430cat >>conftest.$ac_ext <<_ACEOF
13431/* end confdefs.h. */
13432
13433int
13434main ()
13435{
13436
0093c2fc 13437 #ifndef __HP_cc
3006edc0
VZ
13438 choke me
13439 #endif
13440
13441 ;
13442 return 0;
13443}
13444_ACEOF
13445rm -f conftest.$ac_objext
13446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13447 (eval $ac_compile) 2>conftest.er1
13448 ac_status=$?
13449 grep -v '^ *+' conftest.er1 >conftest.err
13450 rm -f conftest.er1
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } &&
bb9e79c0 13454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; } &&
13460 { ac_try='test -s conftest.$ac_objext'
13461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13463 ac_status=$?
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; }; then
0093c2fc 13466 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13467else
13468 echo "$as_me: failed program was:" >&5
13469sed 's/^/| /' conftest.$ac_ext >&5
13470
0093c2fc 13471bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13472
13473fi
13474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13475
13476
13477fi
0093c2fc
VZ
13478echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13479echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13480 ac_ext=c
13481ac_cpp='$CPP $CPPFLAGS'
13482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13484ac_compiler_gnu=$ac_cv_c_compiler_gnu
13485
0093c2fc
VZ
13486 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13487 :; HPCC=yes
a1aa0349
VZ
13488 else
13489 :;
13490 fi
13491
13492
13493 ;;
13494
0093c2fc 13495 OSF1)
a1aa0349
VZ
13496
13497
13498 ac_ext=c
13499ac_cpp='$CPP $CPPFLAGS'
13500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13502ac_compiler_gnu=$ac_cv_c_compiler_gnu
13503
0093c2fc
VZ
13504 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13505echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13506if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13508else
13509 cat >conftest.$ac_ext <<_ACEOF
13510/* confdefs.h. */
13511_ACEOF
13512cat confdefs.h >>conftest.$ac_ext
13513cat >>conftest.$ac_ext <<_ACEOF
13514/* end confdefs.h. */
13515
13516int
13517main ()
13518{
13519
0093c2fc 13520 #ifndef __DECC
a1aa0349
VZ
13521 choke me
13522 #endif
13523
13524 ;
13525 return 0;
13526}
13527_ACEOF
13528rm -f conftest.$ac_objext
13529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13530 (eval $ac_compile) 2>conftest.er1
13531 ac_status=$?
13532 grep -v '^ *+' conftest.er1 >conftest.err
13533 rm -f conftest.er1
13534 cat conftest.err >&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); } &&
bb9e79c0 13537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; } &&
13543 { ac_try='test -s conftest.$ac_objext'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
0093c2fc 13549 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13550else
13551 echo "$as_me: failed program was:" >&5
13552sed 's/^/| /' conftest.$ac_ext >&5
13553
0093c2fc 13554bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13555
13556fi
13557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13558
13559
13560fi
0093c2fc
VZ
13561echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13562echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13563 ac_ext=c
13564ac_cpp='$CPP $CPPFLAGS'
13565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13567ac_compiler_gnu=$ac_cv_c_compiler_gnu
13568
0093c2fc
VZ
13569 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13570 :; COMPAQCC=yes
13571 else
13572 :;
13573 fi
13574
13575
13576 ;;
13577
13578 SunOS)
13579
13580
13581 ac_ext=c
13582ac_cpp='$CPP $CPPFLAGS'
13583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13585ac_compiler_gnu=$ac_cv_c_compiler_gnu
13586
13587 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13588echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13589if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13591else
13592 cat >conftest.$ac_ext <<_ACEOF
13593/* confdefs.h. */
13594_ACEOF
13595cat confdefs.h >>conftest.$ac_ext
13596cat >>conftest.$ac_ext <<_ACEOF
13597/* end confdefs.h. */
13598
13599int
13600main ()
13601{
13602
13603 #ifndef __SUNPRO_C
13604 choke me
13605 #endif
13606
13607 ;
13608 return 0;
13609}
13610_ACEOF
13611rm -f conftest.$ac_objext
13612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613 (eval $ac_compile) 2>conftest.er1
13614 ac_status=$?
13615 grep -v '^ *+' conftest.er1 >conftest.err
13616 rm -f conftest.er1
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
bb9e79c0 13620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; } &&
13626 { ac_try='test -s conftest.$ac_objext'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13629 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; }; then
13632 bakefile_cv_c_compiler___SUNPRO_C=yes
13633else
13634 echo "$as_me: failed program was:" >&5
13635sed 's/^/| /' conftest.$ac_ext >&5
13636
13637bakefile_cv_c_compiler___SUNPRO_C=no
13638
13639fi
13640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13641
13642
13643fi
13644echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13645echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13646 ac_ext=c
13647ac_cpp='$CPP $CPPFLAGS'
13648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13650ac_compiler_gnu=$ac_cv_c_compiler_gnu
13651
13652 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13653 :; SUNCC=yes
3006edc0
VZ
13654 else
13655 :;
13656 fi
13657
13658
13659 ;;
13660 esac
ab0ad5f1 13661 fi
a9e5b1f0
MW
13662
13663
3006edc0 13664
a848cd7e
SC
13665ac_ext=c
13666ac_cpp='$CPP $CPPFLAGS'
13667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13669ac_compiler_gnu=$ac_cv_c_compiler_gnu
13670echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13671echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13672# On Suns, sometimes $CPP names a directory.
13673if test -n "$CPP" && test -d "$CPP"; then
13674 CPP=
13675fi
13676if test -z "$CPP"; then
13677 if test "${ac_cv_prog_CPP+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13679else
13680 # Double quotes because CPP needs to be expanded
13681 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13682 do
13683 ac_preproc_ok=false
13684for ac_c_preproc_warn_flag in '' yes
13685do
13686 # Use a header file that comes with gcc, so configuring glibc
13687 # with a fresh cross-compiler works.
13688 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13689 # <limits.h> exists even on freestanding compilers.
13690 # On the NeXT, cc -E runs the code through the compiler's parser,
13691 # not just through cpp. "Syntax error" is here to catch this case.
13692 cat >conftest.$ac_ext <<_ACEOF
13693/* confdefs.h. */
13694_ACEOF
13695cat confdefs.h >>conftest.$ac_ext
13696cat >>conftest.$ac_ext <<_ACEOF
13697/* end confdefs.h. */
13698#ifdef __STDC__
13699# include <limits.h>
13700#else
13701# include <assert.h>
13702#endif
ac1cb8d3 13703 Syntax error
a848cd7e
SC
13704_ACEOF
13705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13707 ac_status=$?
13708 grep -v '^ *+' conftest.er1 >conftest.err
13709 rm -f conftest.er1
13710 cat conftest.err >&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } >/dev/null; then
13713 if test -s conftest.err; then
13714 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13716 else
13717 ac_cpp_err=
13718 fi
13719else
13720 ac_cpp_err=yes
13721fi
13722if test -z "$ac_cpp_err"; then
13723 :
13724else
13725 echo "$as_me: failed program was:" >&5
13726sed 's/^/| /' conftest.$ac_ext >&5
13727
13728 # Broken: fails on valid input.
13729continue
13730fi
13731rm -f conftest.err conftest.$ac_ext
13732
13733 # OK, works on sane cases. Now check whether non-existent headers
13734 # can be detected and how.
13735 cat >conftest.$ac_ext <<_ACEOF
13736/* confdefs.h. */
13737_ACEOF
13738cat confdefs.h >>conftest.$ac_ext
13739cat >>conftest.$ac_ext <<_ACEOF
13740/* end confdefs.h. */
13741#include <ac_nonexistent.h>
13742_ACEOF
13743if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13745 ac_status=$?
13746 grep -v '^ *+' conftest.er1 >conftest.err
13747 rm -f conftest.er1
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } >/dev/null; then
13751 if test -s conftest.err; then
13752 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13754 else
13755 ac_cpp_err=
13756 fi
13757else
13758 ac_cpp_err=yes
13759fi
13760if test -z "$ac_cpp_err"; then
13761 # Broken: success on invalid input.
13762continue
13763else
13764 echo "$as_me: failed program was:" >&5
13765sed 's/^/| /' conftest.$ac_ext >&5
13766
13767 # Passes both tests.
13768ac_preproc_ok=:
13769break
13770fi
13771rm -f conftest.err conftest.$ac_ext
13772
13773done
13774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13775rm -f conftest.err conftest.$ac_ext
13776if $ac_preproc_ok; then
13777 break
13778fi
13779
13780 done
13781 ac_cv_prog_CPP=$CPP
13782
13783fi
13784 CPP=$ac_cv_prog_CPP
13785else
13786 ac_cv_prog_CPP=$CPP
13787fi
13788echo "$as_me:$LINENO: result: $CPP" >&5
13789echo "${ECHO_T}$CPP" >&6
13790ac_preproc_ok=false
13791for ac_c_preproc_warn_flag in '' yes
13792do
13793 # Use a header file that comes with gcc, so configuring glibc
13794 # with a fresh cross-compiler works.
13795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13796 # <limits.h> exists even on freestanding compilers.
13797 # On the NeXT, cc -E runs the code through the compiler's parser,
13798 # not just through cpp. "Syntax error" is here to catch this case.
13799 cat >conftest.$ac_ext <<_ACEOF
13800/* confdefs.h. */
13801_ACEOF
13802cat confdefs.h >>conftest.$ac_ext
13803cat >>conftest.$ac_ext <<_ACEOF
13804/* end confdefs.h. */
13805#ifdef __STDC__
13806# include <limits.h>
13807#else
13808# include <assert.h>
13809#endif
ac1cb8d3 13810 Syntax error
a848cd7e
SC
13811_ACEOF
13812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13814 ac_status=$?
13815 grep -v '^ *+' conftest.er1 >conftest.err
13816 rm -f conftest.er1
13817 cat conftest.err >&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } >/dev/null; then
13820 if test -s conftest.err; then
13821 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13823 else
13824 ac_cpp_err=
13825 fi
13826else
13827 ac_cpp_err=yes
13828fi
13829if test -z "$ac_cpp_err"; then
13830 :
13831else
13832 echo "$as_me: failed program was:" >&5
13833sed 's/^/| /' conftest.$ac_ext >&5
13834
13835 # Broken: fails on valid input.
13836continue
13837fi
13838rm -f conftest.err conftest.$ac_ext
13839
13840 # OK, works on sane cases. Now check whether non-existent headers
13841 # can be detected and how.
13842 cat >conftest.$ac_ext <<_ACEOF
13843/* confdefs.h. */
13844_ACEOF
13845cat confdefs.h >>conftest.$ac_ext
13846cat >>conftest.$ac_ext <<_ACEOF
13847/* end confdefs.h. */
13848#include <ac_nonexistent.h>
13849_ACEOF
13850if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13852 ac_status=$?
13853 grep -v '^ *+' conftest.er1 >conftest.err
13854 rm -f conftest.er1
13855 cat conftest.err >&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); } >/dev/null; then
13858 if test -s conftest.err; then
13859 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13861 else
13862 ac_cpp_err=
13863 fi
13864else
13865 ac_cpp_err=yes
13866fi
13867if test -z "$ac_cpp_err"; then
13868 # Broken: success on invalid input.
13869continue
13870else
13871 echo "$as_me: failed program was:" >&5
13872sed 's/^/| /' conftest.$ac_ext >&5
13873
13874 # Passes both tests.
13875ac_preproc_ok=:
13876break
13877fi
13878rm -f conftest.err conftest.$ac_ext
13879
13880done
13881# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13882rm -f conftest.err conftest.$ac_ext
13883if $ac_preproc_ok; then
13884 :
13885else
13886 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13887See \`config.log' for more details." >&5
13888echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13889See \`config.log' for more details." >&2;}
13890 { (exit 1); exit 1; }; }
13891fi
13892
13893ac_ext=c
13894ac_cpp='$CPP $CPPFLAGS'
13895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13897ac_compiler_gnu=$ac_cv_c_compiler_gnu
13898
13899
13900echo "$as_me:$LINENO: checking for egrep" >&5
13901echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13902if test "${ac_cv_prog_egrep+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904else
13905 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13906 then ac_cv_prog_egrep='grep -E'
13907 else ac_cv_prog_egrep='egrep'
13908 fi
13909fi
13910echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13911echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13912 EGREP=$ac_cv_prog_egrep
13913
13914
13915if test $ac_cv_c_compiler_gnu = yes; then
13916 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13917echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13918if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13920else
13921 ac_pattern="Autoconf.*'x'"
13922 cat >conftest.$ac_ext <<_ACEOF
13923/* confdefs.h. */
13924_ACEOF
13925cat confdefs.h >>conftest.$ac_ext
13926cat >>conftest.$ac_ext <<_ACEOF
13927/* end confdefs.h. */
13928#include <sgtty.h>
13929Autoconf TIOCGETP
13930_ACEOF
13931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13932 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13933 ac_cv_prog_gcc_traditional=yes
13934else
13935 ac_cv_prog_gcc_traditional=no
13936fi
13937rm -f conftest*
13938
13939
13940 if test $ac_cv_prog_gcc_traditional = no; then
13941 cat >conftest.$ac_ext <<_ACEOF
13942/* confdefs.h. */
13943_ACEOF
13944cat confdefs.h >>conftest.$ac_ext
13945cat >>conftest.$ac_ext <<_ACEOF
13946/* end confdefs.h. */
13947#include <termio.h>
13948Autoconf TCGETA
13949_ACEOF
13950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13951 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13952 ac_cv_prog_gcc_traditional=yes
13953fi
13954rm -f conftest*
13955
13956 fi
13957fi
13958echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13959echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13960 if test $ac_cv_prog_gcc_traditional = yes; then
13961 CC="$CC -traditional"
13962 fi
13963fi
13964
13965
a848cd7e 13966CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13967
13968
3006edc0 13969
6dcfc289 13970 ac_ext=cc
a848cd7e
SC
13971ac_cpp='$CXXCPP $CPPFLAGS'
13972ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13973ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13974ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13975if test -n "$ac_tool_prefix"; then
13976 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13977 do
13978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13980echo "$as_me:$LINENO: checking for $ac_word" >&5
13981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13982if test "${ac_cv_prog_CXX+set}" = set; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13984else
13985 if test -n "$CXX"; then
13986 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13987else
13988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13989for as_dir in $PATH
13990do
13991 IFS=$as_save_IFS
13992 test -z "$as_dir" && as_dir=.
13993 for ac_exec_ext in '' $ac_executable_extensions; do
13994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13995 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13997 break 2
13998 fi
13999done
14000done
14001
14002fi
14003fi
14004CXX=$ac_cv_prog_CXX
14005if test -n "$CXX"; then
14006 echo "$as_me:$LINENO: result: $CXX" >&5
14007echo "${ECHO_T}$CXX" >&6
14008else
14009 echo "$as_me:$LINENO: result: no" >&5
14010echo "${ECHO_T}no" >&6
14011fi
14012
14013 test -n "$CXX" && break
14014 done
14015fi
14016if test -z "$CXX"; then
14017 ac_ct_CXX=$CXX
14018 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
14019do
14020 # Extract the first word of "$ac_prog", so it can be a program name with args.
14021set dummy $ac_prog; ac_word=$2
14022echo "$as_me:$LINENO: checking for $ac_word" >&5
14023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14024if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
14025 echo $ECHO_N "(cached) $ECHO_C" >&6
14026else
14027 if test -n "$ac_ct_CXX"; then
14028 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14029else
14030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14031for as_dir in $PATH
14032do
14033 IFS=$as_save_IFS
14034 test -z "$as_dir" && as_dir=.
14035 for ac_exec_ext in '' $ac_executable_extensions; do
14036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14037 ac_cv_prog_ac_ct_CXX="$ac_prog"
14038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14039 break 2
14040 fi
14041done
14042done
14043
14044fi
14045fi
14046ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14047if test -n "$ac_ct_CXX"; then
14048 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
14049echo "${ECHO_T}$ac_ct_CXX" >&6
14050else
14051 echo "$as_me:$LINENO: result: no" >&5
14052echo "${ECHO_T}no" >&6
14053fi
14054
14055 test -n "$ac_ct_CXX" && break
14056done
14057test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
14058
14059 CXX=$ac_ct_CXX
14060fi
14061
14062
14063# Provide some information about the compiler.
14064echo "$as_me:$LINENO:" \
14065 "checking for C++ compiler version" >&5
14066ac_compiler=`set X $ac_compile; echo $2`
14067{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
14068 (eval $ac_compiler --version </dev/null >&5) 2>&5
14069 ac_status=$?
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }
14072{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
14073 (eval $ac_compiler -v </dev/null >&5) 2>&5
14074 ac_status=$?
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }
14077{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
14078 (eval $ac_compiler -V </dev/null >&5) 2>&5
14079 ac_status=$?
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }
14082
14083echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
14084echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
14085if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14087else
14088 cat >conftest.$ac_ext <<_ACEOF
14089/* confdefs.h. */
14090_ACEOF
14091cat confdefs.h >>conftest.$ac_ext
14092cat >>conftest.$ac_ext <<_ACEOF
14093/* end confdefs.h. */
14094
14095int
14096main ()
14097{
14098#ifndef __GNUC__
14099 choke me
14100#endif
14101
14102 ;
14103 return 0;
14104}
14105_ACEOF
14106rm -f conftest.$ac_objext
14107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14108 (eval $ac_compile) 2>conftest.er1
a848cd7e 14109 ac_status=$?
ac1cb8d3
VS
14110 grep -v '^ *+' conftest.er1 >conftest.err
14111 rm -f conftest.er1
14112 cat conftest.err >&5
a848cd7e
SC
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } &&
bb9e79c0 14115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; } &&
14121 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14123 (eval $ac_try) 2>&5
14124 ac_status=$?
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; }; then
14127 ac_compiler_gnu=yes
14128else
14129 echo "$as_me: failed program was:" >&5
14130sed 's/^/| /' conftest.$ac_ext >&5
14131
14132ac_compiler_gnu=no
14133fi
ac1cb8d3 14134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14135ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14136
14137fi
14138echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
14139echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
14140GXX=`test $ac_compiler_gnu = yes && echo yes`
14141ac_test_CXXFLAGS=${CXXFLAGS+set}
14142ac_save_CXXFLAGS=$CXXFLAGS
14143CXXFLAGS="-g"
14144echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
14145echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
14146if test "${ac_cv_prog_cxx_g+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148else
14149 cat >conftest.$ac_ext <<_ACEOF
14150/* confdefs.h. */
14151_ACEOF
14152cat confdefs.h >>conftest.$ac_ext
14153cat >>conftest.$ac_ext <<_ACEOF
14154/* end confdefs.h. */
14155
14156int
14157main ()
14158{
14159
14160 ;
14161 return 0;
14162}
14163_ACEOF
14164rm -f conftest.$ac_objext
14165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14166 (eval $ac_compile) 2>conftest.er1
a848cd7e 14167 ac_status=$?
ac1cb8d3
VS
14168 grep -v '^ *+' conftest.er1 >conftest.err
14169 rm -f conftest.er1
14170 cat conftest.err >&5
a848cd7e
SC
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } &&
bb9e79c0 14173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14176 ac_status=$?
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; } &&
14179 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 ac_cv_prog_cxx_g=yes
14186else
14187 echo "$as_me: failed program was:" >&5
14188sed 's/^/| /' conftest.$ac_ext >&5
14189
14190ac_cv_prog_cxx_g=no
14191fi
ac1cb8d3 14192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14193fi
14194echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14195echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
14196if test "$ac_test_CXXFLAGS" = set; then
14197 CXXFLAGS=$ac_save_CXXFLAGS
14198elif test $ac_cv_prog_cxx_g = yes; then
14199 if test "$GXX" = yes; then
d7ae4a62 14200 CXXFLAGS="$CXXFLAGS -g -O2"
a848cd7e 14201 else
d7ae4a62 14202 CXXFLAGS="$CXXFLAGS -g"
a848cd7e
SC
14203 fi
14204else
14205 if test "$GXX" = yes; then
14206 CXXFLAGS="-O2"
14207 else
14208 CXXFLAGS=
14209 fi
14210fi
14211for ac_declaration in \
ac1cb8d3 14212 '' \
a848cd7e
SC
14213 'extern "C" void std::exit (int) throw (); using std::exit;' \
14214 'extern "C" void std::exit (int); using std::exit;' \
14215 'extern "C" void exit (int) throw ();' \
14216 'extern "C" void exit (int);' \
14217 'void exit (int);'
14218do
14219 cat >conftest.$ac_ext <<_ACEOF
14220/* confdefs.h. */
14221_ACEOF
14222cat confdefs.h >>conftest.$ac_ext
14223cat >>conftest.$ac_ext <<_ACEOF
14224/* end confdefs.h. */
de59c161 14225$ac_declaration
ac1cb8d3 14226#include <stdlib.h>
a848cd7e
SC
14227int
14228main ()
14229{
14230exit (42);
14231 ;
14232 return 0;
14233}
14234_ACEOF
14235rm -f conftest.$ac_objext
14236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14237 (eval $ac_compile) 2>conftest.er1
a848cd7e 14238 ac_status=$?
ac1cb8d3
VS
14239 grep -v '^ *+' conftest.er1 >conftest.err
14240 rm -f conftest.er1
14241 cat conftest.err >&5
a848cd7e
SC
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); } &&
bb9e79c0 14244 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14247 ac_status=$?
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; } &&
14250 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14253 ac_status=$?
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; }; then
14256 :
14257else
14258 echo "$as_me: failed program was:" >&5
14259sed 's/^/| /' conftest.$ac_ext >&5
14260
14261continue
14262fi
ac1cb8d3 14263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14264 cat >conftest.$ac_ext <<_ACEOF
14265/* confdefs.h. */
14266_ACEOF
14267cat confdefs.h >>conftest.$ac_ext
14268cat >>conftest.$ac_ext <<_ACEOF
14269/* end confdefs.h. */
14270$ac_declaration
14271int
14272main ()
14273{
14274exit (42);
14275 ;
14276 return 0;
14277}
14278_ACEOF
14279rm -f conftest.$ac_objext
14280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14281 (eval $ac_compile) 2>conftest.er1
a848cd7e 14282 ac_status=$?
ac1cb8d3
VS
14283 grep -v '^ *+' conftest.er1 >conftest.err
14284 rm -f conftest.er1
14285 cat conftest.err >&5
a848cd7e
SC
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } &&
bb9e79c0 14288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14291 ac_status=$?
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; } &&
14294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14297 ac_status=$?
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; }; then
14300 break
14301else
14302 echo "$as_me: failed program was:" >&5
14303sed 's/^/| /' conftest.$ac_ext >&5
14304
14305fi
ac1cb8d3 14306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14307done
14308rm -f conftest*
14309if test -n "$ac_declaration"; then
14310 echo '#ifdef __cplusplus' >>confdefs.h
14311 echo $ac_declaration >>confdefs.h
14312 echo '#endif' >>confdefs.h
14313fi
14314
fd5199d6
VZ
14315ac_ext=c
14316ac_cpp='$CPP $CPPFLAGS'
14317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14319ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e 14320
ab0ad5f1
VZ
14321
14322
14323 ac_ext=cc
14324ac_cpp='$CXXCPP $CPPFLAGS'
14325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14328
14329 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14330echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
14331if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14332 echo $ECHO_N "(cached) $ECHO_C" >&6
14333else
14334 cat >conftest.$ac_ext <<_ACEOF
14335/* confdefs.h. */
14336_ACEOF
14337cat confdefs.h >>conftest.$ac_ext
14338cat >>conftest.$ac_ext <<_ACEOF
14339/* end confdefs.h. */
14340
14341int
14342main ()
14343{
14344
14345 #ifndef __INTEL_COMPILER
14346 choke me
14347 #endif
14348
14349 ;
14350 return 0;
14351}
14352_ACEOF
14353rm -f conftest.$ac_objext
14354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14355 (eval $ac_compile) 2>conftest.er1
14356 ac_status=$?
14357 grep -v '^ *+' conftest.er1 >conftest.err
14358 rm -f conftest.er1
14359 cat conftest.err >&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } &&
bb9e79c0 14362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364 (eval $ac_try) 2>&5
14365 ac_status=$?
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; } &&
14368 { ac_try='test -s conftest.$ac_objext'
14369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370 (eval $ac_try) 2>&5
14371 ac_status=$?
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); }; }; then
14374 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14375else
14376 echo "$as_me: failed program was:" >&5
14377sed 's/^/| /' conftest.$ac_ext >&5
14378
14379bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14380
14381fi
14382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14383
14384
14385fi
14386echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14387echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
fd5199d6
VZ
14388 ac_ext=c
14389ac_cpp='$CPP $CPPFLAGS'
14390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14392ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab0ad5f1 14393
fd5199d6 14394 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
ab0ad5f1
VZ
14395 :; INTELCXX=yes
14396 else
14397 :;
14398 fi
14399
14400
3006edc0
VZ
14401 if test "x$GCXX" != "xyes"; then
14402 if test "xCXX" = "xC"; then
fd5199d6
VZ
14403 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
14404echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
14405if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
14406 echo $ECHO_N "(cached) $ECHO_C" >&6
14407else
14408 cat >conftest.$ac_ext <<_ACEOF
14409/* confdefs.h. */
14410_ACEOF
14411cat confdefs.h >>conftest.$ac_ext
14412cat >>conftest.$ac_ext <<_ACEOF
14413/* end confdefs.h. */
14414
14415int
14416main ()
14417{
14418
14419 ;
14420 return 0;
14421}
14422_ACEOF
14423rm -f conftest.$ac_objext conftest.$ac_ext.o
14424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14425 (eval $ac_compile) 2>&5
14426 ac_status=$?
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; then
14429 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14430 case $ac_file in
14431 conftest.$ac_ext.o)
fd5199d6 14432 bakefile_cv_c_exto="-ext o"
480ccd21
DE
14433 ;;
14434 *)
14435 ;;
14436 esac
14437done
14438else
14439 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14440See \`config.log' for more details." >&5
14441echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14442See \`config.log' for more details." >&2;}
14443 { (exit 1); exit 1; }; }
14444
14445fi
14446
14447rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14448
14449fi
fd5199d6
VZ
14450echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
14451echo "${ECHO_T}$bakefile_cv_c_exto" >&6
14452if test "x$bakefile_cv_c_exto" '!=' "x"; then
14453 if test "c" = "c"; then
14454 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21 14455 fi
fd5199d6
VZ
14456 if test "c" = "cxx"; then
14457 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
14458 fi
14459fi
14460
0093c2fc 14461 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14462 unset ac_cv_prog_cc_g
14463 ac_test_CFLAGS=${CFLAGS+set}
14464ac_save_CFLAGS=$CFLAGS
d7ae4a62 14465CFLAGS="$CFLAGS -g"
3006edc0
VZ
14466echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14467echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14468if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
14470else
14471 cat >conftest.$ac_ext <<_ACEOF
14472/* confdefs.h. */
14473_ACEOF
14474cat confdefs.h >>conftest.$ac_ext
14475cat >>conftest.$ac_ext <<_ACEOF
14476/* end confdefs.h. */
14477
14478int
14479main ()
14480{
14481
14482 ;
14483 return 0;
14484}
14485_ACEOF
14486rm -f conftest.$ac_objext
14487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14488 (eval $ac_compile) 2>conftest.er1
14489 ac_status=$?
14490 grep -v '^ *+' conftest.er1 >conftest.err
14491 rm -f conftest.er1
14492 cat conftest.err >&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } &&
fd5199d6 14495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; } &&
14501 { ac_try='test -s conftest.$ac_objext'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14504 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; }; then
3006edc0 14507 ac_cv_prog_cc_g=yes
480ccd21
DE
14508else
14509 echo "$as_me: failed program was:" >&5
14510sed 's/^/| /' conftest.$ac_ext >&5
14511
3006edc0 14512ac_cv_prog_cc_g=no
480ccd21
DE
14513fi
14514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14515fi
3006edc0
VZ
14516echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14517echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14518if test "$ac_test_CFLAGS" = set; then
14519 CFLAGS=$ac_save_CFLAGS
14520elif test $ac_cv_prog_cc_g = yes; then
14521 if test "$GCC" = yes; then
14522 CFLAGS="-g -O2"
480ccd21 14523 else
3006edc0 14524 CFLAGS="-g"
480ccd21
DE
14525 fi
14526else
3006edc0
VZ
14527 if test "$GCC" = yes; then
14528 CFLAGS="-O2"
480ccd21 14529 else
3006edc0 14530 CFLAGS=
480ccd21
DE
14531 fi
14532fi
3006edc0 14533 fi
ab0ad5f1 14534 fi
3006edc0
VZ
14535
14536 case `uname -s` in
14537 AIX*)
14538 ac_ext=cc
14539ac_cpp='$CXXCPP $CPPFLAGS'
14540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14543
14544echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14545echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14546if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14548else
14549 cat >conftest.$ac_ext <<_ACEOF
14550/* confdefs.h. */
14551_ACEOF
14552cat confdefs.h >>conftest.$ac_ext
14553cat >>conftest.$ac_ext <<_ACEOF
14554/* end confdefs.h. */
14555
14556int
14557main ()
14558{
14559#ifndef __xlC__
14560 choke me
14561#endif
14562
14563 ;
14564 return 0;
14565}
14566_ACEOF
14567rm -f conftest.$ac_objext
14568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14569 (eval $ac_compile) 2>conftest.er1
14570 ac_status=$?
14571 grep -v '^ *+' conftest.er1 >conftest.err
14572 rm -f conftest.er1
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } &&
bb9e79c0 14576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; } &&
14582 { ac_try='test -s conftest.$ac_objext'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
0093c2fc 14588 bakefile_compiler_xlc=yes
3006edc0
VZ
14589else
14590 echo "$as_me: failed program was:" >&5
14591sed 's/^/| /' conftest.$ac_ext >&5
14592
0093c2fc 14593bakefile_compiler_xlc=no
3006edc0
VZ
14594fi
14595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14596 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14597
14598fi
0093c2fc
VZ
14599echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14600echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14601
0093c2fc 14602XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
fd5199d6
VZ
14603ac_ext=c
14604ac_cpp='$CPP $CPPFLAGS'
14605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14607ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006edc0
VZ
14608
14609
14610 ;;
14611
14612 Darwin)
14613 ac_ext=cc
95986553
DE
14614ac_cpp='$CXXCPP $CPPFLAGS'
14615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14618
14619echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14620echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14621if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14622 echo $ECHO_N "(cached) $ECHO_C" >&6
14623else
14624 cat >conftest.$ac_ext <<_ACEOF
14625/* confdefs.h. */
14626_ACEOF
14627cat confdefs.h >>conftest.$ac_ext
14628cat >>conftest.$ac_ext <<_ACEOF
14629/* end confdefs.h. */
14630
14631int
14632main ()
14633{
14634#ifndef __MWERKS__
14635 choke me
14636#endif
14637
14638 ;
14639 return 0;
14640}
14641_ACEOF
14642rm -f conftest.$ac_objext
14643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14644 (eval $ac_compile) 2>conftest.er1
14645 ac_status=$?
14646 grep -v '^ *+' conftest.er1 >conftest.err
14647 rm -f conftest.er1
14648 cat conftest.err >&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } &&
bb9e79c0 14651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; } &&
14657 { ac_try='test -s conftest.$ac_objext'
14658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659 (eval $ac_try) 2>&5
14660 ac_status=$?
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); }; }; then
14663 bakefile_compiler_mwerks=yes
14664else
14665 echo "$as_me: failed program was:" >&5
14666sed 's/^/| /' conftest.$ac_ext >&5
14667
14668bakefile_compiler_mwerks=no
14669fi
14670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14671 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14672
14673fi
14674echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14675echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14676
0e6fa1d9 14677MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
fd5199d6
VZ
14678ac_ext=c
14679ac_cpp='$CPP $CPPFLAGS'
14680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14682ac_compiler_gnu=$ac_cv_c_compiler_gnu
95986553
DE
14683
14684
3006edc0 14685 ac_ext=cc
9273ffba
DE
14686ac_cpp='$CXXCPP $CPPFLAGS'
14687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14690
14691echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14692echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14693if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14694 echo $ECHO_N "(cached) $ECHO_C" >&6
14695else
14696 cat >conftest.$ac_ext <<_ACEOF
14697/* confdefs.h. */
14698_ACEOF
14699cat confdefs.h >>conftest.$ac_ext
14700cat >>conftest.$ac_ext <<_ACEOF
14701/* end confdefs.h. */
14702
14703int
14704main ()
14705{
14706#ifndef __xlC__
14707 choke me
14708#endif
14709
14710 ;
14711 return 0;
14712}
14713_ACEOF
14714rm -f conftest.$ac_objext
14715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14716 (eval $ac_compile) 2>conftest.er1
14717 ac_status=$?
14718 grep -v '^ *+' conftest.er1 >conftest.err
14719 rm -f conftest.er1
14720 cat conftest.err >&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); } &&
bb9e79c0 14723 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14725 (eval $ac_try) 2>&5
14726 ac_status=$?
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); }; } &&
14729 { ac_try='test -s conftest.$ac_objext'
14730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731 (eval $ac_try) 2>&5
14732 ac_status=$?
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; }; then
0093c2fc 14735 bakefile_compiler_xlc=yes
9273ffba
DE
14736else
14737 echo "$as_me: failed program was:" >&5
14738sed 's/^/| /' conftest.$ac_ext >&5
14739
0093c2fc 14740bakefile_compiler_xlc=no
9273ffba
DE
14741fi
14742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14743 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14744
14745fi
0093c2fc
VZ
14746echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14747echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14748
0093c2fc 14749XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
fd5199d6
VZ
14750ac_ext=c
14751ac_cpp='$CPP $CPPFLAGS'
14752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14754ac_compiler_gnu=$ac_cv_c_compiler_gnu
9273ffba
DE
14755
14756
3006edc0
VZ
14757 ;;
14758
14759 IRIX*)
95986553 14760
6dcfc289 14761
0ad5d837
VZ
14762 ac_ext=cc
14763ac_cpp='$CXXCPP $CPPFLAGS'
14764ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14765ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14766ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14767
14768 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14769echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14770if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14772else
14773 cat >conftest.$ac_ext <<_ACEOF
14774/* confdefs.h. */
14775_ACEOF
14776cat confdefs.h >>conftest.$ac_ext
14777cat >>conftest.$ac_ext <<_ACEOF
14778/* end confdefs.h. */
14779
14780int
14781main ()
14782{
14783
14784 #ifndef _SGI_COMPILER_VERSION
14785 choke me
14786 #endif
14787
14788 ;
14789 return 0;
14790}
14791_ACEOF
14792rm -f conftest.$ac_objext
14793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14794 (eval $ac_compile) 2>conftest.er1
14795 ac_status=$?
14796 grep -v '^ *+' conftest.er1 >conftest.err
14797 rm -f conftest.er1
14798 cat conftest.err >&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
bb9e79c0 14801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; } &&
14807 { ac_try='test -s conftest.$ac_objext'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; }; then
14813 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14814else
14815 echo "$as_me: failed program was:" >&5
14816sed 's/^/| /' conftest.$ac_ext >&5
14817
14818bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14819
14820fi
14821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14822
14823
14824fi
14825echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14826echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
fd5199d6
VZ
14827 ac_ext=c
14828ac_cpp='$CPP $CPPFLAGS'
14829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14831ac_compiler_gnu=$ac_cv_c_compiler_gnu
0ad5d837 14832
fd5199d6 14833 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
0ad5d837
VZ
14834 :; SGICXX=yes
14835 else
14836 :;
14837 fi
14838
14839
3006edc0
VZ
14840 ;;
14841
0093c2fc 14842 HP-UX*)
3006edc0
VZ
14843
14844
14845 ac_ext=cc
14846ac_cpp='$CXXCPP $CPPFLAGS'
14847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14850
0093c2fc
VZ
14851 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14852echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14853if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14854 echo $ECHO_N "(cached) $ECHO_C" >&6
14855else
14856 cat >conftest.$ac_ext <<_ACEOF
14857/* confdefs.h. */
14858_ACEOF
14859cat confdefs.h >>conftest.$ac_ext
14860cat >>conftest.$ac_ext <<_ACEOF
14861/* end confdefs.h. */
14862
14863int
14864main ()
14865{
14866
0093c2fc 14867 #ifndef __HP_aCC
3006edc0
VZ
14868 choke me
14869 #endif
14870
14871 ;
14872 return 0;
14873}
14874_ACEOF
14875rm -f conftest.$ac_objext
14876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14877 (eval $ac_compile) 2>conftest.er1
14878 ac_status=$?
14879 grep -v '^ *+' conftest.er1 >conftest.err
14880 rm -f conftest.er1
14881 cat conftest.err >&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } &&
bb9e79c0 14884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14887 ac_status=$?
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; } &&
14890 { ac_try='test -s conftest.$ac_objext'
14891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14892 (eval $ac_try) 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; }; then
0093c2fc 14896 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14897else
14898 echo "$as_me: failed program was:" >&5
14899sed 's/^/| /' conftest.$ac_ext >&5
14900
0093c2fc 14901bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14902
14903fi
14904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14905
14906
14907fi
0093c2fc
VZ
14908echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14909echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
fd5199d6
VZ
14910 ac_ext=c
14911ac_cpp='$CPP $CPPFLAGS'
14912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14914ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006edc0 14915
fd5199d6 14916 if test "x$bakefile_cv_c_compiler___HP_aCC" = "xyes"; then
0093c2fc 14917 :; HPCXX=yes
a1aa0349
VZ
14918 else
14919 :;
14920 fi
14921
14922
14923 ;;
14924
0093c2fc 14925 OSF1)
a1aa0349
VZ
14926
14927
14928 ac_ext=cc
14929ac_cpp='$CXXCPP $CPPFLAGS'
14930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14933
0093c2fc
VZ
14934 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14935echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14936if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14938else
14939 cat >conftest.$ac_ext <<_ACEOF
14940/* confdefs.h. */
14941_ACEOF
14942cat confdefs.h >>conftest.$ac_ext
14943cat >>conftest.$ac_ext <<_ACEOF
14944/* end confdefs.h. */
14945
14946int
14947main ()
14948{
14949
0093c2fc 14950 #ifndef __DECCXX
a1aa0349
VZ
14951 choke me
14952 #endif
14953
14954 ;
14955 return 0;
14956}
14957_ACEOF
14958rm -f conftest.$ac_objext
14959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14960 (eval $ac_compile) 2>conftest.er1
14961 ac_status=$?
14962 grep -v '^ *+' conftest.er1 >conftest.err
14963 rm -f conftest.er1
14964 cat conftest.err >&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } &&
bb9e79c0 14967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; } &&
14973 { ac_try='test -s conftest.$ac_objext'
14974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975 (eval $ac_try) 2>&5
14976 ac_status=$?
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; }; then
0093c2fc 14979 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14980else
14981 echo "$as_me: failed program was:" >&5
14982sed 's/^/| /' conftest.$ac_ext >&5
14983
0093c2fc 14984bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14985
14986fi
14987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14988
14989
14990fi
0093c2fc
VZ
14991echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14992echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
fd5199d6
VZ
14993 ac_ext=c
14994ac_cpp='$CPP $CPPFLAGS'
14995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14997ac_compiler_gnu=$ac_cv_c_compiler_gnu
a1aa0349 14998
fd5199d6 14999 if test "x$bakefile_cv_c_compiler___DECCXX" = "xyes"; then
0093c2fc
VZ
15000 :; COMPAQCXX=yes
15001 else
15002 :;
15003 fi
15004
15005
15006 ;;
15007
15008 SunOS)
15009
15010
15011 ac_ext=cc
15012ac_cpp='$CXXCPP $CPPFLAGS'
15013ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15014ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15015ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15016
15017 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
15018echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
15019if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
15020 echo $ECHO_N "(cached) $ECHO_C" >&6
15021else
15022 cat >conftest.$ac_ext <<_ACEOF
15023/* confdefs.h. */
15024_ACEOF
15025cat confdefs.h >>conftest.$ac_ext
15026cat >>conftest.$ac_ext <<_ACEOF
15027/* end confdefs.h. */
15028
15029int
15030main ()
15031{
15032
15033 #ifndef __SUNPRO_CC
15034 choke me
15035 #endif
15036
15037 ;
15038 return 0;
15039}
15040_ACEOF
15041rm -f conftest.$ac_objext
15042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15043 (eval $ac_compile) 2>conftest.er1
15044 ac_status=$?
15045 grep -v '^ *+' conftest.er1 >conftest.err
15046 rm -f conftest.er1
15047 cat conftest.err >&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } &&
bb9e79c0 15050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15053 ac_status=$?
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; } &&
15056 { ac_try='test -s conftest.$ac_objext'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15062 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
15063else
15064 echo "$as_me: failed program was:" >&5
15065sed 's/^/| /' conftest.$ac_ext >&5
15066
15067bakefile_cv_cxx_compiler___SUNPRO_CC=no
15068
15069fi
15070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15071
15072
15073fi
15074echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
15075echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
fd5199d6
VZ
15076 ac_ext=c
15077ac_cpp='$CPP $CPPFLAGS'
15078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15080ac_compiler_gnu=$ac_cv_c_compiler_gnu
0093c2fc 15081
fd5199d6 15082 if test "x$bakefile_cv_c_compiler___SUNPRO_CC" = "xyes"; then
0093c2fc 15083 :; SUNCXX=yes
3006edc0
VZ
15084 else
15085 :;
ab0ad5f1 15086 fi
a9e5b1f0
MW
15087
15088
3006edc0
VZ
15089 ;;
15090 esac
15091 fi
15092
15093
15094
a848cd7e
SC
15095if test -n "$ac_tool_prefix"; then
15096 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15097set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15098echo "$as_me:$LINENO: checking for $ac_word" >&5
15099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15100if test "${ac_cv_prog_RANLIB+set}" = set; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15102else
15103 if test -n "$RANLIB"; then
15104 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15105else
15106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15107for as_dir in $PATH
15108do
15109 IFS=$as_save_IFS
15110 test -z "$as_dir" && as_dir=.
15111 for ac_exec_ext in '' $ac_executable_extensions; do
15112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15113 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15115 break 2
15116 fi
15117done
15118done
15119
15120fi
15121fi
15122RANLIB=$ac_cv_prog_RANLIB
15123if test -n "$RANLIB"; then
15124 echo "$as_me:$LINENO: result: $RANLIB" >&5
15125echo "${ECHO_T}$RANLIB" >&6
15126else
15127 echo "$as_me:$LINENO: result: no" >&5
15128echo "${ECHO_T}no" >&6
15129fi
15130
15131fi
15132if test -z "$ac_cv_prog_RANLIB"; then
15133 ac_ct_RANLIB=$RANLIB
15134 # Extract the first word of "ranlib", so it can be a program name with args.
15135set dummy ranlib; ac_word=$2
15136echo "$as_me:$LINENO: checking for $ac_word" >&5
15137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15138if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15139 echo $ECHO_N "(cached) $ECHO_C" >&6
15140else
15141 if test -n "$ac_ct_RANLIB"; then
15142 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15143else
15144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15145for as_dir in $PATH
15146do
15147 IFS=$as_save_IFS
15148 test -z "$as_dir" && as_dir=.
15149 for ac_exec_ext in '' $ac_executable_extensions; do
15150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15151 ac_cv_prog_ac_ct_RANLIB="ranlib"
15152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15153 break 2
15154 fi
15155done
15156done
15157
15158 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15159fi
15160fi
15161ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15162if test -n "$ac_ct_RANLIB"; then
15163 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15164echo "${ECHO_T}$ac_ct_RANLIB" >&6
15165else
15166 echo "$as_me:$LINENO: result: no" >&5
15167echo "${ECHO_T}no" >&6
15168fi
15169
15170 RANLIB=$ac_ct_RANLIB
15171else
15172 RANLIB="$ac_cv_prog_RANLIB"
15173fi
15174
15175
8c80d384
DE
15176if test -n "$ac_tool_prefix"; then
15177 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15178set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
15179echo "$as_me:$LINENO: checking for $ac_word" >&5
15180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15181if test "${ac_cv_prog_AR+set}" = set; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15183else
15184 if test -n "$AR"; then
15185 ac_cv_prog_AR="$AR" # Let the user override the test.
15186else
15187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15188for as_dir in $PATH
15189do
15190 IFS=$as_save_IFS
15191 test -z "$as_dir" && as_dir=.
15192 for ac_exec_ext in '' $ac_executable_extensions; do
15193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15194 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
15195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15196 break 2
15197 fi
15198done
15199done
15200
15201fi
15202fi
15203AR=$ac_cv_prog_AR
15204if test -n "$AR"; then
15205 echo "$as_me:$LINENO: result: $AR" >&5
15206echo "${ECHO_T}$AR" >&6
15207else
15208 echo "$as_me:$LINENO: result: no" >&5
15209echo "${ECHO_T}no" >&6
15210fi
15211
8c80d384
DE
15212fi
15213if test -z "$ac_cv_prog_AR"; then
15214 ac_ct_AR=$AR
15215 # Extract the first word of "ar", so it can be a program name with args.
15216set dummy ar; ac_word=$2
15217echo "$as_me:$LINENO: checking for $ac_word" >&5
15218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15219if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
15221else
15222 if test -n "$ac_ct_AR"; then
15223 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15224else
15225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15226for as_dir in $PATH
15227do
15228 IFS=$as_save_IFS
15229 test -z "$as_dir" && as_dir=.
15230 for ac_exec_ext in '' $ac_executable_extensions; do
15231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15232 ac_cv_prog_ac_ct_AR="ar"
15233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15234 break 2
15235 fi
15236done
15237done
15238
15239fi
15240fi
15241ac_ct_AR=$ac_cv_prog_ac_ct_AR
15242if test -n "$ac_ct_AR"; then
15243 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15244echo "${ECHO_T}$ac_ct_AR" >&6
15245else
15246 echo "$as_me:$LINENO: result: no" >&5
15247echo "${ECHO_T}no" >&6
15248fi
15249
15250 AR=$ac_ct_AR
15251else
15252 AR="$ac_cv_prog_AR"
15253fi
15254
a848cd7e 15255if test "x$AR" = "x" ; then
77ffb593
JS
15256 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
15257echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
15258 { (exit 1); exit 1; }; }
15259fi
15260
15261# Find a good install program. We prefer a C program (faster),
15262# so one script is as good as another. But avoid the broken or
15263# incompatible versions:
15264# SysV /etc/install, /usr/sbin/install
15265# SunOS /usr/etc/install
15266# IRIX /sbin/install
15267# AIX /bin/install
15268# AmigaOS /C/install, which installs bootblocks on floppy discs
15269# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15270# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15271# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 15272# OS/2's system install, which has a completely different semantic
a848cd7e
SC
15273# ./install, which can be erroneously created by make from ./install.sh.
15274echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15275echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
15276if test -z "$INSTALL"; then
15277if test "${ac_cv_path_install+set}" = set; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15279else
15280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15281for as_dir in $PATH
15282do
15283 IFS=$as_save_IFS
15284 test -z "$as_dir" && as_dir=.
15285 # Account for people who put trailing slashes in PATH elements.
15286case $as_dir/ in
15287 ./ | .// | /cC/* | \
15288 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 15289 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
15290 /usr/ucb/* ) ;;
15291 *)
15292 # OSF1 and SCO ODT 3.0 have their own names for install.
15293 # Don't use installbsd from OSF since it installs stuff as root
15294 # by default.
15295 for ac_prog in ginstall scoinst install; do
15296 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
15297 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15298 if test $ac_prog = install &&
15299 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15300 # AIX install. It has an incompatible calling convention.
15301 :
15302 elif test $ac_prog = install &&
15303 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15304 # program-specific install script used by HP pwplus--don't use.
15305 :
15306 else
15307 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15308 break 3
15309 fi
15310 fi
a848cd7e
SC
15311 done
15312 done
15313 ;;
15314esac
15315done
15316
15317
15318fi
15319 if test "${ac_cv_path_install+set}" = set; then
15320 INSTALL=$ac_cv_path_install
15321 else
15322 # As a last resort, use the slow shell script. We don't cache a
15323 # path for INSTALL within a source directory, because that will
15324 # break other packages using the cache if that directory is
15325 # removed, or if the path is relative.
15326 INSTALL=$ac_install_sh
15327 fi
15328fi
15329echo "$as_me:$LINENO: result: $INSTALL" >&5
15330echo "${ECHO_T}$INSTALL" >&6
15331
15332# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15333# It thinks the first close brace ends the variable substitution.
15334test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15335
15336test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15337
15338test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15339
15340
15341case ${INSTALL} in
15342 /* ) # Absolute
15343 ;;
15344 ?:* ) # Drive letter, considered as absolute.
15345 ;;
15346 *)
15347 INSTALL=`pwd`/${INSTALL} ;;
15348esac
15349
a848cd7e
SC
15350
15351case "${host}" in
15352
cfda0ea8 15353 *-*-darwin* )
a848cd7e
SC
15354 INSTALL_PROGRAM="cp -fp"
15355 INSTALL_DATA="cp -fp"
15356 ;;
15357 *)
15358 ;;
15359esac
15360
8c80d384
DE
15361if test -n "$ac_tool_prefix"; then
15362 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15363set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
15364echo "$as_me:$LINENO: checking for $ac_word" >&5
15365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15366if test "${ac_cv_prog_STRIP+set}" = set; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15368else
15369 if test -n "$STRIP"; then
15370 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15371else
15372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15373for as_dir in $PATH
15374do
15375 IFS=$as_save_IFS
15376 test -z "$as_dir" && as_dir=.
15377 for ac_exec_ext in '' $ac_executable_extensions; do
15378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15379 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
15380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15381 break 2
15382 fi
15383done
15384done
15385
a848cd7e
SC
15386fi
15387fi
15388STRIP=$ac_cv_prog_STRIP
15389if test -n "$STRIP"; then
15390 echo "$as_me:$LINENO: result: $STRIP" >&5
15391echo "${ECHO_T}$STRIP" >&6
15392else
15393 echo "$as_me:$LINENO: result: no" >&5
15394echo "${ECHO_T}no" >&6
15395fi
15396
8c80d384
DE
15397fi
15398if test -z "$ac_cv_prog_STRIP"; then
15399 ac_ct_STRIP=$STRIP
15400 # Extract the first word of "strip", so it can be a program name with args.
15401set dummy strip; ac_word=$2
15402echo "$as_me:$LINENO: checking for $ac_word" >&5
15403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15404if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15406else
15407 if test -n "$ac_ct_STRIP"; then
15408 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15409else
15410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15411for as_dir in $PATH
15412do
15413 IFS=$as_save_IFS
15414 test -z "$as_dir" && as_dir=.
15415 for ac_exec_ext in '' $ac_executable_extensions; do
15416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15417 ac_cv_prog_ac_ct_STRIP="strip"
15418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15419 break 2
15420 fi
15421done
15422done
15423
15424 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15425fi
15426fi
15427ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15428if test -n "$ac_ct_STRIP"; then
15429 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15430echo "${ECHO_T}$ac_ct_STRIP" >&6
15431else
15432 echo "$as_me:$LINENO: result: no" >&5
15433echo "${ECHO_T}no" >&6
15434fi
15435
15436 STRIP=$ac_ct_STRIP
15437else
15438 STRIP="$ac_cv_prog_STRIP"
15439fi
15440
15441
15442if test "$wxUSE_WINE" = "yes"; then
15443 if test -n "$ac_tool_prefix"; then
15444 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15445set dummy ${ac_tool_prefix}wrc; ac_word=$2
15446echo "$as_me:$LINENO: checking for $ac_word" >&5
15447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15448if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15449 echo $ECHO_N "(cached) $ECHO_C" >&6
15450else
8ced02f6
DE
15451 if test -n "$WINDRES"; then
15452 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15453else
15454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15455for as_dir in $PATH
15456do
15457 IFS=$as_save_IFS
15458 test -z "$as_dir" && as_dir=.
15459 for ac_exec_ext in '' $ac_executable_extensions; do
15460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15461 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15463 break 2
15464 fi
15465done
15466done
15467
15468fi
15469fi
8ced02f6
DE
15470WINDRES=$ac_cv_prog_WINDRES
15471if test -n "$WINDRES"; then
15472 echo "$as_me:$LINENO: result: $WINDRES" >&5
15473echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15474else
15475 echo "$as_me:$LINENO: result: no" >&5
15476echo "${ECHO_T}no" >&6
15477fi
15478
15479fi
8ced02f6
DE
15480if test -z "$ac_cv_prog_WINDRES"; then
15481 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15482 # Extract the first word of "wrc", so it can be a program name with args.
15483set dummy wrc; ac_word=$2
15484echo "$as_me:$LINENO: checking for $ac_word" >&5
15485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15486if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15488else
8ced02f6
DE
15489 if test -n "$ac_ct_WINDRES"; then
15490 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15491else
15492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15493for as_dir in $PATH
15494do
15495 IFS=$as_save_IFS
15496 test -z "$as_dir" && as_dir=.
15497 for ac_exec_ext in '' $ac_executable_extensions; do
15498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15499 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15501 break 2
15502 fi
15503done
15504done
15505
15506fi
15507fi
8ced02f6
DE
15508ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15509if test -n "$ac_ct_WINDRES"; then
15510 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15511echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15512else
15513 echo "$as_me:$LINENO: result: no" >&5
15514echo "${ECHO_T}no" >&6
15515fi
15516
8ced02f6 15517 WINDRES=$ac_ct_WINDRES
8c80d384 15518else
8ced02f6 15519 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15520fi
15521
004ee6da 15522 RESCOMP="$WINDRES"
8c80d384
DE
15523else
15524 case "${host}" in
15525 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15526 if test -n "$ac_tool_prefix"; then
15527 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15528set dummy ${ac_tool_prefix}windres; ac_word=$2
15529echo "$as_me:$LINENO: checking for $ac_word" >&5
15530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15531if test "${ac_cv_prog_WINDRES+set}" = set; then
15532 echo $ECHO_N "(cached) $ECHO_C" >&6
15533else
15534 if test -n "$WINDRES"; then
15535 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15536else
15537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15538for as_dir in $PATH
15539do
15540 IFS=$as_save_IFS
15541 test -z "$as_dir" && as_dir=.
15542 for ac_exec_ext in '' $ac_executable_extensions; do
15543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15544 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15546 break 2
15547 fi
15548done
15549done
15550
15551fi
15552fi
15553WINDRES=$ac_cv_prog_WINDRES
15554if test -n "$WINDRES"; then
15555 echo "$as_me:$LINENO: result: $WINDRES" >&5
15556echo "${ECHO_T}$WINDRES" >&6
15557else
15558 echo "$as_me:$LINENO: result: no" >&5
15559echo "${ECHO_T}no" >&6
15560fi
15561
15562fi
15563if test -z "$ac_cv_prog_WINDRES"; then
15564 ac_ct_WINDRES=$WINDRES
15565 # Extract the first word of "windres", so it can be a program name with args.
15566set dummy windres; ac_word=$2
15567echo "$as_me:$LINENO: checking for $ac_word" >&5
15568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15569if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15570 echo $ECHO_N "(cached) $ECHO_C" >&6
15571else
15572 if test -n "$ac_ct_WINDRES"; then
15573 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15574else
15575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15576for as_dir in $PATH
15577do
15578 IFS=$as_save_IFS
15579 test -z "$as_dir" && as_dir=.
15580 for ac_exec_ext in '' $ac_executable_extensions; do
15581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15582 ac_cv_prog_ac_ct_WINDRES="windres"
15583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15584 break 2
15585 fi
15586done
15587done
15588
15589fi
15590fi
15591ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15592if test -n "$ac_ct_WINDRES"; then
15593 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15594echo "${ECHO_T}$ac_ct_WINDRES" >&6
15595else
15596 echo "$as_me:$LINENO: result: no" >&5
15597echo "${ECHO_T}no" >&6
15598fi
15599
15600 WINDRES=$ac_ct_WINDRES
15601else
15602 WINDRES="$ac_cv_prog_WINDRES"
15603fi
15604
15605 RESCOMP="$WINDRES"
15606 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15607 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15608set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15609echo "$as_me:$LINENO: checking for $ac_word" >&5
15610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15611if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15612 echo $ECHO_N "(cached) $ECHO_C" >&6
15613else
15614 if test -n "$DLLTOOL"; then
15615 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15616else
15617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15618for as_dir in $PATH
15619do
15620 IFS=$as_save_IFS
15621 test -z "$as_dir" && as_dir=.
15622 for ac_exec_ext in '' $ac_executable_extensions; do
15623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15624 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15626 break 2
15627 fi
15628done
15629done
15630
15631fi
15632fi
15633DLLTOOL=$ac_cv_prog_DLLTOOL
15634if test -n "$DLLTOOL"; then
15635 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15636echo "${ECHO_T}$DLLTOOL" >&6
15637else
15638 echo "$as_me:$LINENO: result: no" >&5
15639echo "${ECHO_T}no" >&6
15640fi
15641
15642fi
15643if test -z "$ac_cv_prog_DLLTOOL"; then
15644 ac_ct_DLLTOOL=$DLLTOOL
15645 # Extract the first word of "dlltool", so it can be a program name with args.
15646set dummy dlltool; ac_word=$2
15647echo "$as_me:$LINENO: checking for $ac_word" >&5
15648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15649if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15651else
15652 if test -n "$ac_ct_DLLTOOL"; then
15653 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15654else
15655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15656for as_dir in $PATH
15657do
15658 IFS=$as_save_IFS
15659 test -z "$as_dir" && as_dir=.
15660 for ac_exec_ext in '' $ac_executable_extensions; do
15661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15662 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15664 break 2
15665 fi
15666done
15667done
15668
15669fi
15670fi
15671ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15672if test -n "$ac_ct_DLLTOOL"; then
15673 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15674echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15675else
15676 echo "$as_me:$LINENO: result: no" >&5
15677echo "${ECHO_T}no" >&6
15678fi
15679
15680 DLLTOOL=$ac_ct_DLLTOOL
15681else
15682 DLLTOOL="$ac_cv_prog_DLLTOOL"
15683fi
15684
15685 ;;
15686 esac
15687fi
a848cd7e
SC
15688
15689echo "$as_me:$LINENO: checking if make is GNU make" >&5
15690echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15691if test "${wx_cv_prog_makeisgnu+set}" = set; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15693else
15694
15695 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15696 egrep -s GNU > /dev/null); then
15697 wx_cv_prog_makeisgnu="yes"
15698 else
15699 wx_cv_prog_makeisgnu="no"
15700 fi
15701
15702fi
15703echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15704echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15705
15706if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15707 IF_GNU_MAKE=""
15708else
15709 IF_GNU_MAKE="#"
15710fi
15711
15712
15713
15714if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15715echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15716echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15717if test "${wx_cv_prog_makevpath+set}" = set; then
15718 echo $ECHO_N "(cached) $ECHO_C" >&6
15719else
15720
15721cat - << EOF > confMake
15722check : file
15723 cp \$? \$@
15724 cp \$? final_file
15725EOF
15726
15727if test ! -d sub ; then
15728 mkdir sub
15729fi
15730echo dummy > sub/file
15731${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15732RESULT=$?
15733rm -f sub/file check final_file confMake
15734rmdir sub
15735if test "$RESULT" = 0; then
15736 wx_cv_prog_makevpath="yes"
15737else
15738 wx_cv_prog_makevpath="no"
15739fi
15740
15741fi
15742echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15743echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15744
15745if test "x$wx_cv_prog_makevpath" != "xyes"; then
15746{ { echo "$as_me:$LINENO: error:
15747You need a make-utility that is able to use the variable
15748VPATH correctly.
15749If your version of make does not support VPATH correctly,
15750please install GNU-make (possibly as gmake), and start
15751configure with the following command:
15752export MAKE=gmake; ./configure for sh-type shells
15753setenv MAKE gmake; ./configure for csh-type shells
15754Also please do remember to use gmake in this case every time
15755you are trying to compile.
15756" >&5
15757echo "$as_me: error:
15758You need a make-utility that is able to use the variable
15759VPATH correctly.
15760If your version of make does not support VPATH correctly,
15761please install GNU-make (possibly as gmake), and start
15762configure with the following command:
15763export MAKE=gmake; ./configure for sh-type shells
15764setenv MAKE gmake; ./configure for csh-type shells
15765Also please do remember to use gmake in this case every time
15766you are trying to compile.
15767" >&2;}
15768 { (exit 1); exit 1; }; }
15769fi fi
15770echo "$as_me:$LINENO: checking whether ln -s works" >&5
15771echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15772LN_S=$as_ln_s
15773if test "$LN_S" = "ln -s"; then
15774 echo "$as_me:$LINENO: result: yes" >&5
15775echo "${ECHO_T}yes" >&6
15776else
15777 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15778echo "${ECHO_T}no, using $LN_S" >&6
15779fi
15780
15781
bcaab0f9 15782
a848cd7e 15783
2113bc77 15784if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15785 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15786fi
15787
4d7ec9f1
DE
15788case "${host}" in
15789 powerpc-*-darwin* )
15790 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15791echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15792 cat >conftest.$ac_ext <<_ACEOF
15793/* confdefs.h. */
15794_ACEOF
15795cat confdefs.h >>conftest.$ac_ext
15796cat >>conftest.$ac_ext <<_ACEOF
15797/* end confdefs.h. */
15798
15799int
15800main ()
15801{
15802#ifndef __POWERPC__
15803 choke me for lack of PowerPC
15804#endif
15805
15806 ;
15807 return 0;
15808}
15809_ACEOF
15810rm -f conftest.$ac_objext
15811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15812 (eval $ac_compile) 2>conftest.er1
15813 ac_status=$?
15814 grep -v '^ *+' conftest.er1 >conftest.err
15815 rm -f conftest.er1
15816 cat conftest.err >&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } &&
fd5199d6 15819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; } &&
15825 { ac_try='test -s conftest.$ac_objext'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15828 ac_status=$?
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; }; then
15831 echo "$as_me:$LINENO: result: yes" >&5
15832echo "${ECHO_T}yes" >&6
15833else
15834 echo "$as_me: failed program was:" >&5
15835sed 's/^/| /' conftest.$ac_ext >&5
15836
15837echo "$as_me:$LINENO: result: no" >&5
15838echo "${ECHO_T}no" >&6
15839 cat >>confdefs.h <<\_ACEOF
15840#define __POWERPC__ 1
15841_ACEOF
15842
15843
15844fi
15845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15846 ;;
15847esac
15848
15849case "${host}" in
15850 *-*-darwin* )
4d7ec9f1
DE
15851 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15852echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15853 cat >conftest.$ac_ext <<_ACEOF
15854/* confdefs.h. */
15855_ACEOF
15856cat confdefs.h >>conftest.$ac_ext
15857cat >>conftest.$ac_ext <<_ACEOF
15858/* end confdefs.h. */
15859#include <CoreFoundation/CFBase.h>
15860
15861int
15862main ()
15863{
15864
15865 ;
15866 return 0;
15867}
15868_ACEOF
15869rm -f conftest.$ac_objext
15870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15871 (eval $ac_compile) 2>conftest.er1
15872 ac_status=$?
15873 grep -v '^ *+' conftest.er1 >conftest.err
15874 rm -f conftest.er1
15875 cat conftest.err >&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } &&
fd5199d6 15878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880 (eval $ac_try) 2>&5
15881 ac_status=$?
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; } &&
15884 { ac_try='test -s conftest.$ac_objext'
15885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15886 (eval $ac_try) 2>&5
15887 ac_status=$?
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; }; then
15890 echo "$as_me:$LINENO: result: yes" >&5
15891echo "${ECHO_T}yes" >&6
15892else
15893 echo "$as_me: failed program was:" >&5
15894sed 's/^/| /' conftest.$ac_ext >&5
15895
15896echo "$as_me:$LINENO: result: no" >&5
15897echo "${ECHO_T}no" >&6
15898 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15899echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15900 cat >conftest.$ac_ext <<_ACEOF
15901/* confdefs.h. */
15902_ACEOF
15903cat confdefs.h >>conftest.$ac_ext
15904cat >>conftest.$ac_ext <<_ACEOF
15905/* end confdefs.h. */
15906#define __CF_USE_FRAMEWORK_INCLUDES__
15907#include <CoreFoundation/CFBase.h>
15908
15909int
15910main ()
15911{
15912
15913 ;
15914 return 0;
15915}
15916_ACEOF
15917rm -f conftest.$ac_objext
15918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15919 (eval $ac_compile) 2>conftest.er1
15920 ac_status=$?
15921 grep -v '^ *+' conftest.er1 >conftest.err
15922 rm -f conftest.er1
15923 cat conftest.err >&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } &&
fd5199d6 15926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928 (eval $ac_try) 2>&5
15929 ac_status=$?
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); }; } &&
15932 { ac_try='test -s conftest.$ac_objext'
15933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934 (eval $ac_try) 2>&5
15935 ac_status=$?
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; }; then
15938 echo "$as_me:$LINENO: result: yes" >&5
15939echo "${ECHO_T}yes" >&6
c92ad099 15940 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15941else
15942 echo "$as_me: failed program was:" >&5
15943sed 's/^/| /' conftest.$ac_ext >&5
15944
15945{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15946See \`config.log' for more details." >&5
15947echo "$as_me: error: no. CoreFoundation not available.
15948See \`config.log' for more details." >&2;}
15949 { (exit 1); exit 1; }; }
15950
15951fi
15952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15953
15954
15955fi
15956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15957 ;;
15958esac
15959
8bf7f1a9
VZ
15960wants_win32=0
15961doesnt_want_win32=0
15962case "${host}" in
15963 *-*-cygwin*)
15964 if test "$wxUSE_MSW" = 1 ; then
15965 wants_win32=1
15966 else
15967 echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
15968echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6
15969if test "${wx_cv_nocygwin+set}" = set; then
15970 echo $ECHO_N "(cached) $ECHO_C" >&6
15971else
15972
15973 cat >conftest.$ac_ext <<_ACEOF
15974/* confdefs.h. */
15975_ACEOF
15976cat confdefs.h >>conftest.$ac_ext
15977cat >>conftest.$ac_ext <<_ACEOF
15978/* end confdefs.h. */
15979
15980int
15981main ()
15982{
15983
15984 #ifdef __MINGW32__
15985 choke me
15986 #endif
15987
15988 ;
15989 return 0;
15990}
15991_ACEOF
15992rm -f conftest.$ac_objext
15993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15994 (eval $ac_compile) 2>conftest.er1
15995 ac_status=$?
15996 grep -v '^ *+' conftest.er1 >conftest.err
15997 rm -f conftest.er1
15998 cat conftest.err >&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } &&
fd5199d6 16001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8bf7f1a9
VZ
16002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003 (eval $ac_try) 2>&5
16004 ac_status=$?
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; } &&
16007 { ac_try='test -s conftest.$ac_objext'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5
16010 ac_status=$?
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; }; then
16013 wx_cv_nocygwin=no
16014else
16015 echo "$as_me: failed program was:" >&5
16016sed 's/^/| /' conftest.$ac_ext >&5
16017
16018wx_cv_nocygwin=yes
16019
16020fi
16021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16022
16023
16024fi
16025echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
16026echo "${ECHO_T}$wx_cv_nocygwin" >&6
16027
16028 if test "$wx_cv_nocygwin" = "yes"; then
16029 wants_win32=1
16030 else
16031 doesnt_want_win32=1
16032 fi
16033 fi
16034 if test "$wants_win32" = 1 ; then
16035 BAKEFILE_FORCE_PLATFORM=win32
16036 fi
16037 ;;
16038 *-*-mingw*)
16039 wants_win32=1
16040 ;;
16041esac
16042
16043if test "$wxUSE_WINE" = "yes"; then
16044 wants_win32=1
16045 CC=winegcc
16046 CXX=wineg++
16047 LDFLAGS_GUI="-mwindows"
16048fi
16049
16050if test "$wants_win32" = 1 ; then
16051 USE_UNIX=0
16052 USE_WIN32=1
16053 cat >>confdefs.h <<\_ACEOF
16054#define __WIN32__ 1
16055_ACEOF
16056
16057 cat >>confdefs.h <<\_ACEOF
16058#define __WIN95__ 1
16059_ACEOF
16060
16061 cat >>confdefs.h <<\_ACEOF
16062#define __WINDOWS__ 1
16063_ACEOF
16064
16065 cat >>confdefs.h <<\_ACEOF
16066#define __GNUWIN32__ 1
16067_ACEOF
16068
16069 cat >>confdefs.h <<\_ACEOF
16070#define STRICT 1
16071_ACEOF
16072
16073fi
16074if test "$doesnt_want_win32" = 1 ; then
16075 USE_UNIX=1
16076 USE_WIN32=0
16077fi
16078
16079if test "$USE_UNIX" = 1 ; then
16080 wxUSE_UNIX=yes
16081 cat >>confdefs.h <<\_ACEOF
16082#define __UNIX__ 1
16083_ACEOF
16084
16085fi
16086
a848cd7e
SC
16087case "${host}" in
16088 *-pc-os2_emx | *-pc-os2-emx )
fd5199d6 16089 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
16090 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
16091echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
16092if test "${ac_cv_lib_cExt_drand48+set}" = set; then
16093 echo $ECHO_N "(cached) $ECHO_C" >&6
16094else
16095 ac_check_lib_save_LIBS=$LIBS
16096LIBS="-lcExt $LIBS"
16097cat >conftest.$ac_ext <<_ACEOF
16098/* confdefs.h. */
16099_ACEOF
16100cat confdefs.h >>conftest.$ac_ext
16101cat >>conftest.$ac_ext <<_ACEOF
16102/* end confdefs.h. */
16103
16104/* Override any gcc2 internal prototype to avoid an error. */
16105#ifdef __cplusplus
16106extern "C"
16107#endif
16108/* We use char because int might match the return type of a gcc2
16109 builtin and then its argument prototype would still apply. */
16110char drand48 ();
16111int
16112main ()
16113{
16114drand48 ();
16115 ;
16116 return 0;
16117}
16118_ACEOF
16119rm -f conftest.$ac_objext conftest$ac_exeext
16120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16121 (eval $ac_link) 2>conftest.er1
a848cd7e 16122 ac_status=$?
ac1cb8d3
VS
16123 grep -v '^ *+' conftest.er1 >conftest.err
16124 rm -f conftest.er1
16125 cat conftest.err >&5
a848cd7e
SC
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } &&
bb9e79c0 16128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16131 ac_status=$?
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; } &&
16134 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16137 ac_status=$?
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; }; then
16140 ac_cv_lib_cExt_drand48=yes
16141else
16142 echo "$as_me: failed program was:" >&5
16143sed 's/^/| /' conftest.$ac_ext >&5
16144
16145ac_cv_lib_cExt_drand48=no
16146fi
ac1cb8d3
VS
16147rm -f conftest.err conftest.$ac_objext \
16148 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16149LIBS=$ac_check_lib_save_LIBS
16150fi
16151echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
16152echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
16153if test $ac_cv_lib_cExt_drand48 = yes; then
16154 LIBS="$LIBS -lcExt"
16155fi
16156
16157 else
16158 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
16159 fi
69120ee4
VZ
16160 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
16161echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
16162if test "${wx_cv_gccversion+set}" = set; then
16163 echo $ECHO_N "(cached) $ECHO_C" >&6
16164else
16165
391a765e
VS
16166 if test "$cross_compiling" = yes; then
16167 wx_cv_gccversion="EMX2"
16168
16169else
16170 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
16171/* confdefs.h. */
16172_ACEOF
16173cat confdefs.h >>conftest.$ac_ext
16174cat >>conftest.$ac_ext <<_ACEOF
16175/* end confdefs.h. */
16176
391a765e 16177 #include <stdio.h>
a848cd7e 16178
391a765e
VS
16179 int main()
16180 {
16181 FILE *f=fopen("conftestval", "w");
16182 if (!f) exit(1);
16183 fprintf(f,
a848cd7e 16184 #if (__GNUC__ < 3)
391a765e
VS
16185 "EMX2"
16186 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
16187 "EMX3"
16188 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
16189 "Innotek5"
16190 #else
16191 "Innotek6"
a848cd7e 16192 #endif
5039a2df 16193 );
391a765e
VS
16194 exit(0);
16195 }
a848cd7e 16196
a848cd7e 16197_ACEOF
391a765e
VS
16198rm -f conftest$ac_exeext
16199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16200 (eval $ac_link) 2>&5
ac1cb8d3
VS
16201 ac_status=$?
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 16203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
391a765e 16209 wx_cv_gccversion=`cat conftestval`
a848cd7e 16210else
391a765e
VS
16211 echo "$as_me: program exited with status $ac_status" >&5
16212echo "$as_me: failed program was:" >&5
a848cd7e
SC
16213sed 's/^/| /' conftest.$ac_ext >&5
16214
391a765e
VS
16215( exit $ac_status )
16216wx_cv_gccversion="EMX2"
a848cd7e 16217fi
391a765e 16218rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 16219fi
a848cd7e
SC
16220
16221fi
16222echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
16223echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 16224 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
16225 LIBS="$LIBS -lstdcpp"
16226 LDFLAGS="$LDFLAGS -Zsysv-signals"
16227 else
391a765e 16228 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 16229 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
16230 LDFLAGS="$LDFLAGS -Zsysv-signals"
16231 else
16232 LIBS="$LIBS -lstdc++"
16233 fi
16234 fi
94acd38e
DE
16235 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
16236 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
16237echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
16238 wxUSE_OMF=yes
ec3edcc9 16239 enable_omf=yes
a848cd7e
SC
16240 fi
16241 ;;
16242 *)
16243
95986553 16244 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
16245echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
16246if test "${ac_cv_string_strcasecmp+set}" = set; then
16247 echo $ECHO_N "(cached) $ECHO_C" >&6
16248else
16249
16250 cat >conftest.$ac_ext <<_ACEOF
16251/* confdefs.h. */
16252_ACEOF
16253cat confdefs.h >>conftest.$ac_ext
16254cat >>conftest.$ac_ext <<_ACEOF
16255/* end confdefs.h. */
16256
16257 #include <string.h>
16258
16259int
16260main ()
16261{
16262
16263 strcasecmp("foo", "bar");
16264
16265 ;
16266 return 0;
16267}
16268_ACEOF
16269rm -f conftest.$ac_objext conftest$ac_exeext
16270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16271 (eval $ac_link) 2>conftest.er1
a848cd7e 16272 ac_status=$?
ac1cb8d3
VS
16273 grep -v '^ *+' conftest.er1 >conftest.err
16274 rm -f conftest.er1
16275 cat conftest.err >&5
a848cd7e
SC
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } &&
fd5199d6 16278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16281 ac_status=$?
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; } &&
16284 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 ac_cv_string_strcasecmp=yes
16291else
16292 echo "$as_me: failed program was:" >&5
16293sed 's/^/| /' conftest.$ac_ext >&5
16294
16295ac_cv_string_strcasecmp=no
16296
16297fi
ac1cb8d3
VS
16298rm -f conftest.err conftest.$ac_objext \
16299 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16300
16301fi
16302echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
16303echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
16304
16305 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
16306 cat >>confdefs.h <<\_ACEOF
16307#define HAVE_STRCASECMP_IN_STRING_H 1
16308_ACEOF
16309
16310 else
16311 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
16312echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
16313if test "${ac_cv_strings_strcasecmp+set}" = set; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16315else
16316
16317 cat >conftest.$ac_ext <<_ACEOF
16318/* confdefs.h. */
16319_ACEOF
16320cat confdefs.h >>conftest.$ac_ext
16321cat >>conftest.$ac_ext <<_ACEOF
16322/* end confdefs.h. */
16323
16324 #include <strings.h>
16325
16326int
16327main ()
16328{
16329
16330 strcasecmp("foo", "bar");
16331
16332 ;
16333 return 0;
16334}
16335_ACEOF
16336rm -f conftest.$ac_objext conftest$ac_exeext
16337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16338 (eval $ac_link) 2>conftest.er1
a848cd7e 16339 ac_status=$?
ac1cb8d3
VS
16340 grep -v '^ *+' conftest.er1 >conftest.err
16341 rm -f conftest.er1
16342 cat conftest.err >&5
a848cd7e
SC
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
fd5199d6 16345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16348 ac_status=$?
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; } &&
16351 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16354 ac_status=$?
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; }; then
16357 ac_cv_strings_strcasecmp=yes
16358else
16359 echo "$as_me: failed program was:" >&5
16360sed 's/^/| /' conftest.$ac_ext >&5
16361
16362ac_cv_strings_strcasecmp=no
16363
16364fi
ac1cb8d3
VS
16365rm -f conftest.err conftest.$ac_objext \
16366 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16367
16368fi
16369echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
16370echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
16371
0c3c69fc 16372 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
16373 cat >>confdefs.h <<\_ACEOF
16374#define HAVE_STRCASECMP_IN_STRINGS_H 1
16375_ACEOF
16376
16377 else
16378 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
16379echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
16380 { (exit 1); exit 1; }; }
16381 fi
16382 fi
16383
a848cd7e
SC
16384 ;;
16385esac
16386
16387
16388echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16389echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16390if test "${ac_cv_header_stdc+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16392else
16393 cat >conftest.$ac_ext <<_ACEOF
16394/* confdefs.h. */
16395_ACEOF
16396cat confdefs.h >>conftest.$ac_ext
16397cat >>conftest.$ac_ext <<_ACEOF
16398/* end confdefs.h. */
16399#include <stdlib.h>
16400#include <stdarg.h>
16401#include <string.h>
16402#include <float.h>
16403
16404int
16405main ()
16406{
16407
16408 ;
16409 return 0;
16410}
16411_ACEOF
16412rm -f conftest.$ac_objext
16413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16414 (eval $ac_compile) 2>conftest.er1
a848cd7e 16415 ac_status=$?
ac1cb8d3
VS
16416 grep -v '^ *+' conftest.er1 >conftest.err
16417 rm -f conftest.er1
16418 cat conftest.err >&5
a848cd7e
SC
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } &&
fd5199d6 16421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16424 ac_status=$?
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; } &&
16427 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16429 (eval $ac_try) 2>&5
16430 ac_status=$?
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); }; }; then
16433 ac_cv_header_stdc=yes
16434else
16435 echo "$as_me: failed program was:" >&5
16436sed 's/^/| /' conftest.$ac_ext >&5
16437
16438ac_cv_header_stdc=no
16439fi
ac1cb8d3 16440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16441
16442if test $ac_cv_header_stdc = yes; then
16443 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16444 cat >conftest.$ac_ext <<_ACEOF
16445/* confdefs.h. */
16446_ACEOF
16447cat confdefs.h >>conftest.$ac_ext
16448cat >>conftest.$ac_ext <<_ACEOF
16449/* end confdefs.h. */
16450#include <string.h>
16451
16452_ACEOF
16453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16454 $EGREP "memchr" >/dev/null 2>&1; then
16455 :
16456else
16457 ac_cv_header_stdc=no
16458fi
16459rm -f conftest*
16460
16461fi
16462
16463if test $ac_cv_header_stdc = yes; then
16464 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16465 cat >conftest.$ac_ext <<_ACEOF
16466/* confdefs.h. */
16467_ACEOF
16468cat confdefs.h >>conftest.$ac_ext
16469cat >>conftest.$ac_ext <<_ACEOF
16470/* end confdefs.h. */
16471#include <stdlib.h>
16472
16473_ACEOF
16474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16475 $EGREP "free" >/dev/null 2>&1; then
16476 :
16477else
16478 ac_cv_header_stdc=no
16479fi
16480rm -f conftest*
16481
16482fi
16483
16484if test $ac_cv_header_stdc = yes; then
16485 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16486 if test "$cross_compiling" = yes; then
16487 :
16488else
16489 cat >conftest.$ac_ext <<_ACEOF
16490/* confdefs.h. */
16491_ACEOF
16492cat confdefs.h >>conftest.$ac_ext
16493cat >>conftest.$ac_ext <<_ACEOF
16494/* end confdefs.h. */
16495#include <ctype.h>
16496#if ((' ' & 0x0FF) == 0x020)
16497# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16498# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16499#else
16500# define ISLOWER(c) \
ac1cb8d3
VS
16501 (('a' <= (c) && (c) <= 'i') \
16502 || ('j' <= (c) && (c) <= 'r') \
16503 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16504# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16505#endif
16506
16507#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16508int
16509main ()
16510{
16511 int i;
16512 for (i = 0; i < 256; i++)
16513 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16514 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16515 exit(2);
16516 exit (0);
16517}
16518_ACEOF
16519rm -f conftest$ac_exeext
16520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16521 (eval $ac_link) 2>&5
16522 ac_status=$?
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526 (eval $ac_try) 2>&5
16527 ac_status=$?
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); }; }; then
16530 :
16531else
16532 echo "$as_me: program exited with status $ac_status" >&5
16533echo "$as_me: failed program was:" >&5
16534sed 's/^/| /' conftest.$ac_ext >&5
16535
16536( exit $ac_status )
16537ac_cv_header_stdc=no
16538fi
ac1cb8d3 16539rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16540fi
16541fi
16542fi
16543echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16544echo "${ECHO_T}$ac_cv_header_stdc" >&6
16545if test $ac_cv_header_stdc = yes; then
16546
16547cat >>confdefs.h <<\_ACEOF
16548#define STDC_HEADERS 1
16549_ACEOF
16550
16551fi
16552
16553# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16564 inttypes.h stdint.h unistd.h
a848cd7e
SC
16565do
16566as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16567echo "$as_me:$LINENO: checking for $ac_header" >&5
16568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16569if eval "test \"\${$as_ac_Header+set}\" = set"; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16571else
16572 cat >conftest.$ac_ext <<_ACEOF
16573/* confdefs.h. */
16574_ACEOF
16575cat confdefs.h >>conftest.$ac_ext
16576cat >>conftest.$ac_ext <<_ACEOF
16577/* end confdefs.h. */
16578$ac_includes_default
16579
16580#include <$ac_header>
16581_ACEOF
16582rm -f conftest.$ac_objext
16583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16584 (eval $ac_compile) 2>conftest.er1
a848cd7e 16585 ac_status=$?
ac1cb8d3
VS
16586 grep -v '^ *+' conftest.er1 >conftest.err
16587 rm -f conftest.er1
16588 cat conftest.err >&5
a848cd7e
SC
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); } &&
fd5199d6 16591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593 (eval $ac_try) 2>&5
16594 ac_status=$?
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; } &&
16597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599 (eval $ac_try) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; }; then
16603 eval "$as_ac_Header=yes"
16604else
16605 echo "$as_me: failed program was:" >&5
16606sed 's/^/| /' conftest.$ac_ext >&5
16607
16608eval "$as_ac_Header=no"
16609fi
ac1cb8d3 16610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16611fi
16612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16613echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16614if test `eval echo '${'$as_ac_Header'}'` = yes; then
16615 cat >>confdefs.h <<_ACEOF
16616#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16617_ACEOF
16618
16619fi
16620
16621done
16622
16623
16624
a848cd7e 16625
a848cd7e 16626
a848cd7e
SC
16627
16628
a848cd7e 16629
55e34571 16630for ac_header in stdlib.h fnmatch.h langinfo.h malloc.h unistd.h wchar.h
a848cd7e
SC
16631do
16632as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16633if eval "test \"\${$as_ac_Header+set}\" = set"; then
16634 echo "$as_me:$LINENO: checking for $ac_header" >&5
16635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16636if eval "test \"\${$as_ac_Header+set}\" = set"; then
16637 echo $ECHO_N "(cached) $ECHO_C" >&6
16638fi
16639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16640echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16641else
16642 # Is the header compilable?
16643echo "$as_me:$LINENO: checking $ac_header usability" >&5
16644echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16645cat >conftest.$ac_ext <<_ACEOF
16646/* confdefs.h. */
16647_ACEOF
16648cat confdefs.h >>conftest.$ac_ext
16649cat >>conftest.$ac_ext <<_ACEOF
16650/* end confdefs.h. */
16651$ac_includes_default
16652#include <$ac_header>
16653_ACEOF
16654rm -f conftest.$ac_objext
16655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16656 (eval $ac_compile) 2>conftest.er1
a848cd7e 16657 ac_status=$?
ac1cb8d3
VS
16658 grep -v '^ *+' conftest.er1 >conftest.err
16659 rm -f conftest.er1
16660 cat conftest.err >&5
a848cd7e
SC
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
fd5199d6 16663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16665 (eval $ac_try) 2>&5
16666 ac_status=$?
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; } &&
16669 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16672 ac_status=$?
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; }; then
16675 ac_header_compiler=yes
16676else
16677 echo "$as_me: failed program was:" >&5
16678sed 's/^/| /' conftest.$ac_ext >&5
16679
16680ac_header_compiler=no
16681fi
ac1cb8d3 16682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16683echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16684echo "${ECHO_T}$ac_header_compiler" >&6
16685
16686# Is the header present?
16687echo "$as_me:$LINENO: checking $ac_header presence" >&5
16688echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
16696_ACEOF
16697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16699 ac_status=$?
16700 grep -v '^ *+' conftest.er1 >conftest.err
16701 rm -f conftest.er1
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } >/dev/null; then
16705 if test -s conftest.err; then
fd5199d6
VZ
16706 ac_cpp_err=$ac_c_preproc_warn_flag
16707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16708 else
16709 ac_cpp_err=
16710 fi
16711else
16712 ac_cpp_err=yes
16713fi
16714if test -z "$ac_cpp_err"; then
16715 ac_header_preproc=yes
16716else
16717 echo "$as_me: failed program was:" >&5
16718sed 's/^/| /' conftest.$ac_ext >&5
16719
16720 ac_header_preproc=no
16721fi
16722rm -f conftest.err conftest.$ac_ext
16723echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16724echo "${ECHO_T}$ac_header_preproc" >&6
16725
16726# So? What about this header?
fd5199d6 16727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 16728 yes:no: )
a848cd7e
SC
16729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16730echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16732echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16733 ac_header_preproc=yes
a848cd7e 16734 ;;
ac1cb8d3 16735 no:yes:* )
a848cd7e
SC
16736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16737echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16739echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16741echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16743echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16745echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16747echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16748 (
16749 cat <<\_ASBOX
ac1cb8d3
VS
16750## ----------------------------------------- ##
16751## Report this to wx-dev@lists.wxwidgets.org ##
16752## ----------------------------------------- ##
a848cd7e
SC
16753_ASBOX
16754 ) |
16755 sed "s/^/$as_me: WARNING: /" >&2
16756 ;;
16757esac
16758echo "$as_me:$LINENO: checking for $ac_header" >&5
16759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16760if eval "test \"\${$as_ac_Header+set}\" = set"; then
16761 echo $ECHO_N "(cached) $ECHO_C" >&6
16762else
ac1cb8d3 16763 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16764fi
16765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16767
16768fi
16769if test `eval echo '${'$as_ac_Header'}'` = yes; then
16770 cat >>confdefs.h <<_ACEOF
16771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16772_ACEOF
16773
16774fi
16775
16776done
16777
a848cd7e 16778
55e34571 16779if test "$ac_cv_header_wchar_h" != "yes"; then
a848cd7e 16780
55e34571 16781for ac_header in wcstr.h
a848cd7e
SC
16782do
16783as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16784if eval "test \"\${$as_ac_Header+set}\" = set"; then
16785 echo "$as_me:$LINENO: checking for $ac_header" >&5
16786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16787if eval "test \"\${$as_ac_Header+set}\" = set"; then
16788 echo $ECHO_N "(cached) $ECHO_C" >&6
16789fi
16790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16792else
16793 # Is the header compilable?
16794echo "$as_me:$LINENO: checking $ac_header usability" >&5
16795echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16796cat >conftest.$ac_ext <<_ACEOF
16797/* confdefs.h. */
16798_ACEOF
16799cat confdefs.h >>conftest.$ac_ext
16800cat >>conftest.$ac_ext <<_ACEOF
16801/* end confdefs.h. */
16802$ac_includes_default
16803#include <$ac_header>
16804_ACEOF
16805rm -f conftest.$ac_objext
16806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16807 (eval $ac_compile) 2>conftest.er1
a848cd7e 16808 ac_status=$?
ac1cb8d3
VS
16809 grep -v '^ *+' conftest.er1 >conftest.err
16810 rm -f conftest.er1
16811 cat conftest.err >&5
a848cd7e
SC
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } &&
fd5199d6 16814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; } &&
16820 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822 (eval $ac_try) 2>&5
16823 ac_status=$?
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; }; then
16826 ac_header_compiler=yes
16827else
16828 echo "$as_me: failed program was:" >&5
16829sed 's/^/| /' conftest.$ac_ext >&5
16830
16831ac_header_compiler=no
16832fi
ac1cb8d3 16833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16834echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16835echo "${ECHO_T}$ac_header_compiler" >&6
16836
16837# Is the header present?
16838echo "$as_me:$LINENO: checking $ac_header presence" >&5
16839echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
16847_ACEOF
16848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16850 ac_status=$?
16851 grep -v '^ *+' conftest.er1 >conftest.err
16852 rm -f conftest.er1
16853 cat conftest.err >&5
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); } >/dev/null; then
16856 if test -s conftest.err; then
fd5199d6
VZ
16857 ac_cpp_err=$ac_c_preproc_warn_flag
16858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16859 else
16860 ac_cpp_err=
16861 fi
16862else
16863 ac_cpp_err=yes
16864fi
16865if test -z "$ac_cpp_err"; then
16866 ac_header_preproc=yes
16867else
16868 echo "$as_me: failed program was:" >&5
16869sed 's/^/| /' conftest.$ac_ext >&5
16870
16871 ac_header_preproc=no
16872fi
16873rm -f conftest.err conftest.$ac_ext
16874echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16875echo "${ECHO_T}$ac_header_preproc" >&6
16876
16877# So? What about this header?
fd5199d6 16878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 16879 yes:no: )
a848cd7e
SC
16880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16883echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16884 ac_header_preproc=yes
a848cd7e 16885 ;;
ac1cb8d3 16886 no:yes:* )
a848cd7e
SC
16887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16890echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16892echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16894echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16898echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16899 (
16900 cat <<\_ASBOX
ac1cb8d3
VS
16901## ----------------------------------------- ##
16902## Report this to wx-dev@lists.wxwidgets.org ##
16903## ----------------------------------------- ##
a848cd7e
SC
16904_ASBOX
16905 ) |
16906 sed "s/^/$as_me: WARNING: /" >&2
16907 ;;
16908esac
16909echo "$as_me:$LINENO: checking for $ac_header" >&5
16910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16911if eval "test \"\${$as_ac_Header+set}\" = set"; then
16912 echo $ECHO_N "(cached) $ECHO_C" >&6
16913else
ac1cb8d3 16914 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16915fi
16916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16917echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16918
16919fi
16920if test `eval echo '${'$as_ac_Header'}'` = yes; then
16921 cat >>confdefs.h <<_ACEOF
16922#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16923_ACEOF
16924
16925fi
16926
16927done
16928
a848cd7e
SC
16929fi
16930
a848cd7e
SC
16931case "${host}" in
16932 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16933 if test $ac_cv_header_langinfo_h = "yes" \
16934 -a \( "$wx_cv_gccversion" = "EMX2" \
16935 -o "$wx_cv_gccversion" = "EMX3" \
16936 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16937 LIBS="$LIBS -lintl"
16938 fi
16939 ;;
16940esac
16941
bc023abb
MW
16942if test "$USE_UNIX" = 1 ; then
16943
16944for ac_header in sys/select.h
16945do
16946as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16947if eval "test \"\${$as_ac_Header+set}\" = set"; then
16948 echo "$as_me:$LINENO: checking for $ac_header" >&5
16949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16950if eval "test \"\${$as_ac_Header+set}\" = set"; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16952fi
16953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16954echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16955else
16956 # Is the header compilable?
16957echo "$as_me:$LINENO: checking $ac_header usability" >&5
16958echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16959cat >conftest.$ac_ext <<_ACEOF
16960/* confdefs.h. */
16961_ACEOF
16962cat confdefs.h >>conftest.$ac_ext
16963cat >>conftest.$ac_ext <<_ACEOF
16964/* end confdefs.h. */
16965$ac_includes_default
16966#include <$ac_header>
16967_ACEOF
16968rm -f conftest.$ac_objext
16969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16970 (eval $ac_compile) 2>conftest.er1
16971 ac_status=$?
16972 grep -v '^ *+' conftest.er1 >conftest.err
16973 rm -f conftest.er1
16974 cat conftest.err >&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); } &&
fd5199d6 16977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bc023abb
MW
16978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16979 (eval $ac_try) 2>&5
16980 ac_status=$?
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); }; } &&
16983 { ac_try='test -s conftest.$ac_objext'
16984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985 (eval $ac_try) 2>&5
16986 ac_status=$?
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); }; }; then
16989 ac_header_compiler=yes
16990else
16991 echo "$as_me: failed program was:" >&5
16992sed 's/^/| /' conftest.$ac_ext >&5
16993
16994ac_header_compiler=no
16995fi
16996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16997echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16998echo "${ECHO_T}$ac_header_compiler" >&6
16999
17000# Is the header present?
17001echo "$as_me:$LINENO: checking $ac_header presence" >&5
17002echo $ECHO_N "checking $ac_header presence... $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#include <$ac_header>
17010_ACEOF
17011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17013 ac_status=$?
17014 grep -v '^ *+' conftest.er1 >conftest.err
17015 rm -f conftest.er1
17016 cat conftest.err >&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } >/dev/null; then
17019 if test -s conftest.err; then
fd5199d6
VZ
17020 ac_cpp_err=$ac_c_preproc_warn_flag
17021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
bc023abb
MW
17022 else
17023 ac_cpp_err=
17024 fi
17025else
17026 ac_cpp_err=yes
17027fi
17028if test -z "$ac_cpp_err"; then
17029 ac_header_preproc=yes
17030else
17031 echo "$as_me: failed program was:" >&5
17032sed 's/^/| /' conftest.$ac_ext >&5
17033
17034 ac_header_preproc=no
17035fi
17036rm -f conftest.err conftest.$ac_ext
17037echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17038echo "${ECHO_T}$ac_header_preproc" >&6
17039
17040# So? What about this header?
fd5199d6 17041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
bc023abb
MW
17042 yes:no: )
17043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17044echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17046echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17047 ac_header_preproc=yes
17048 ;;
17049 no:yes:* )
17050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17053echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17055echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17057echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17061echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17062 (
17063 cat <<\_ASBOX
17064## ----------------------------------------- ##
17065## Report this to wx-dev@lists.wxwidgets.org ##
17066## ----------------------------------------- ##
17067_ASBOX
17068 ) |
17069 sed "s/^/$as_me: WARNING: /" >&2
17070 ;;
17071esac
17072echo "$as_me:$LINENO: checking for $ac_header" >&5
17073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17074if eval "test \"\${$as_ac_Header+set}\" = set"; then
17075 echo $ECHO_N "(cached) $ECHO_C" >&6
17076else
17077 eval "$as_ac_Header=\$ac_header_preproc"
17078fi
17079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17081
17082fi
17083if test `eval echo '${'$as_ac_Header'}'` = yes; then
17084 cat >>confdefs.h <<_ACEOF
17085#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17086_ACEOF
17087
17088fi
17089
17090done
17091
17092fi
17093
a848cd7e
SC
17094
17095echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17096echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17097if test "${ac_cv_c_const+set}" = set; then
17098 echo $ECHO_N "(cached) $ECHO_C" >&6
17099else
17100 cat >conftest.$ac_ext <<_ACEOF
17101/* confdefs.h. */
17102_ACEOF
17103cat confdefs.h >>conftest.$ac_ext
17104cat >>conftest.$ac_ext <<_ACEOF
17105/* end confdefs.h. */
17106
17107int
17108main ()
17109{
17110/* FIXME: Include the comments suggested by Paul. */
17111#ifndef __cplusplus
17112 /* Ultrix mips cc rejects this. */
17113 typedef int charset[2];
17114 const charset x;
17115 /* SunOS 4.1.1 cc rejects this. */
17116 char const *const *ccp;
17117 char **p;
17118 /* NEC SVR4.0.2 mips cc rejects this. */
17119 struct point {int x, y;};
17120 static struct point const zero = {0,0};
17121 /* AIX XL C 1.02.0.0 rejects this.
17122 It does not let you subtract one const X* pointer from another in
17123 an arm of an if-expression whose if-part is not a constant
17124 expression */
17125 const char *g = "string";
17126 ccp = &g + (g ? g-g : 0);
17127 /* HPUX 7.0 cc rejects these. */
17128 ++ccp;
17129 p = (char**) ccp;
17130 ccp = (char const *const *) p;
17131 { /* SCO 3.2v4 cc rejects this. */
17132 char *t;
17133 char const *s = 0 ? (char *) 0 : (char const *) 0;
17134
17135 *t++ = 0;
17136 }
17137 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17138 int x[] = {25, 17};
17139 const int *foo = &x[0];
17140 ++foo;
17141 }
17142 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17143 typedef const int *iptr;
17144 iptr p = 0;
17145 ++p;
17146 }
17147 { /* AIX XL C 1.02.0.0 rejects this saying
17148 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17149 struct s { int j; const int *ap[3]; };
17150 struct s *b; b->j = 5;
17151 }
17152 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17153 const int foo = 10;
17154 }
17155#endif
17156
17157 ;
17158 return 0;
17159}
17160_ACEOF
17161rm -f conftest.$ac_objext
17162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17163 (eval $ac_compile) 2>conftest.er1
a848cd7e 17164 ac_status=$?
ac1cb8d3
VS
17165 grep -v '^ *+' conftest.er1 >conftest.err
17166 rm -f conftest.er1
17167 cat conftest.err >&5
a848cd7e
SC
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } &&
fd5199d6 17170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17172 (eval $ac_try) 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; } &&
17176 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17178 (eval $ac_try) 2>&5
17179 ac_status=$?
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; }; then
17182 ac_cv_c_const=yes
17183else
17184 echo "$as_me: failed program was:" >&5
17185sed 's/^/| /' conftest.$ac_ext >&5
17186
17187ac_cv_c_const=no
17188fi
ac1cb8d3 17189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17190fi
17191echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17192echo "${ECHO_T}$ac_cv_c_const" >&6
17193if test $ac_cv_c_const = no; then
17194
17195cat >>confdefs.h <<\_ACEOF
17196#define const
17197_ACEOF
17198
17199fi
17200
17201echo "$as_me:$LINENO: checking for inline" >&5
17202echo $ECHO_N "checking for inline... $ECHO_C" >&6
17203if test "${ac_cv_c_inline+set}" = set; then
17204 echo $ECHO_N "(cached) $ECHO_C" >&6
17205else
17206 ac_cv_c_inline=no
17207for ac_kw in inline __inline__ __inline; do
17208 cat >conftest.$ac_ext <<_ACEOF
17209/* confdefs.h. */
17210_ACEOF
17211cat confdefs.h >>conftest.$ac_ext
17212cat >>conftest.$ac_ext <<_ACEOF
17213/* end confdefs.h. */
17214#ifndef __cplusplus
17215typedef int foo_t;
17216static $ac_kw foo_t static_foo () {return 0; }
17217$ac_kw foo_t foo () {return 0; }
17218#endif
17219
17220_ACEOF
17221rm -f conftest.$ac_objext
17222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17223 (eval $ac_compile) 2>conftest.er1
a848cd7e 17224 ac_status=$?
ac1cb8d3
VS
17225 grep -v '^ *+' conftest.er1 >conftest.err
17226 rm -f conftest.er1
17227 cat conftest.err >&5
a848cd7e
SC
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); } &&
fd5199d6 17230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17233 ac_status=$?
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; } &&
17236 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238 (eval $ac_try) 2>&5
17239 ac_status=$?
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 ac_cv_c_inline=$ac_kw; break
17243else
17244 echo "$as_me: failed program was:" >&5
17245sed 's/^/| /' conftest.$ac_ext >&5
17246
17247fi
ac1cb8d3 17248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17249done
17250
17251fi
17252echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17253echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17254
17255
a848cd7e
SC
17256case $ac_cv_c_inline in
17257 inline | yes) ;;
ac1cb8d3
VS
17258 *)
17259 case $ac_cv_c_inline in
17260 no) ac_val=;;
17261 *) ac_val=$ac_cv_c_inline;;
17262 esac
17263 cat >>confdefs.h <<_ACEOF
17264#ifndef __cplusplus
17265#define inline $ac_val
17266#endif
de59c161 17267_ACEOF
ac1cb8d3 17268 ;;
a848cd7e
SC
17269esac
17270
17271
17272echo "$as_me:$LINENO: checking for char" >&5
17273echo $ECHO_N "checking for char... $ECHO_C" >&6
17274if test "${ac_cv_type_char+set}" = set; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17276else
17277 cat >conftest.$ac_ext <<_ACEOF
17278/* confdefs.h. */
17279_ACEOF
17280cat confdefs.h >>conftest.$ac_ext
17281cat >>conftest.$ac_ext <<_ACEOF
17282/* end confdefs.h. */
17283$ac_includes_default
17284int
17285main ()
17286{
17287if ((char *) 0)
17288 return 0;
17289if (sizeof (char))
17290 return 0;
17291 ;
17292 return 0;
17293}
17294_ACEOF
17295rm -f conftest.$ac_objext
17296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17297 (eval $ac_compile) 2>conftest.er1
a848cd7e 17298 ac_status=$?
ac1cb8d3
VS
17299 grep -v '^ *+' conftest.er1 >conftest.err
17300 rm -f conftest.er1
17301 cat conftest.err >&5
a848cd7e
SC
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } &&
fd5199d6 17304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17307 ac_status=$?
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; } &&
17310 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312 (eval $ac_try) 2>&5
17313 ac_status=$?
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; }; then
17316 ac_cv_type_char=yes
17317else
17318 echo "$as_me: failed program was:" >&5
17319sed 's/^/| /' conftest.$ac_ext >&5
17320
17321ac_cv_type_char=no
17322fi
ac1cb8d3 17323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17324fi
17325echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17326echo "${ECHO_T}$ac_cv_type_char" >&6
17327
17328echo "$as_me:$LINENO: checking size of char" >&5
17329echo $ECHO_N "checking size of char... $ECHO_C" >&6
17330if test "${ac_cv_sizeof_char+set}" = set; then
17331 echo $ECHO_N "(cached) $ECHO_C" >&6
17332else
17333 if test "$ac_cv_type_char" = yes; then
17334 # The cast to unsigned long works around a bug in the HP C Compiler
17335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17337 # This bug is HP SR number 8606223364.
17338 if test "$cross_compiling" = yes; then
17339 # Depending upon the size, compute the lo and hi bounds.
17340cat >conftest.$ac_ext <<_ACEOF
17341/* confdefs.h. */
17342_ACEOF
17343cat confdefs.h >>conftest.$ac_ext
17344cat >>conftest.$ac_ext <<_ACEOF
17345/* end confdefs.h. */
17346$ac_includes_default
17347int
17348main ()
17349{
17350static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17351test_array [0] = 0
17352
17353 ;
17354 return 0;
17355}
17356_ACEOF
17357rm -f conftest.$ac_objext
17358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17359 (eval $ac_compile) 2>conftest.er1
a848cd7e 17360 ac_status=$?
ac1cb8d3
VS
17361 grep -v '^ *+' conftest.er1 >conftest.err
17362 rm -f conftest.er1
17363 cat conftest.err >&5
a848cd7e
SC
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
fd5199d6 17366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; } &&
17372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17375 ac_status=$?
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; }; then
17378 ac_lo=0 ac_mid=0
17379 while :; do
17380 cat >conftest.$ac_ext <<_ACEOF
17381/* confdefs.h. */
17382_ACEOF
17383cat confdefs.h >>conftest.$ac_ext
17384cat >>conftest.$ac_ext <<_ACEOF
17385/* end confdefs.h. */
17386$ac_includes_default
17387int
17388main ()
17389{
17390static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17391test_array [0] = 0
17392
17393 ;
17394 return 0;
17395}
17396_ACEOF
17397rm -f conftest.$ac_objext
17398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17399 (eval $ac_compile) 2>conftest.er1
a848cd7e 17400 ac_status=$?
ac1cb8d3
VS
17401 grep -v '^ *+' conftest.er1 >conftest.err
17402 rm -f conftest.er1
17403 cat conftest.err >&5
a848cd7e
SC
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } &&
fd5199d6 17406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408 (eval $ac_try) 2>&5
17409 ac_status=$?
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; } &&
17412 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414 (eval $ac_try) 2>&5
17415 ac_status=$?
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; }; then
17418 ac_hi=$ac_mid; break
17419else
17420 echo "$as_me: failed program was:" >&5
17421sed 's/^/| /' conftest.$ac_ext >&5
17422
17423ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17424 if test $ac_lo -le $ac_mid; then
17425 ac_lo= ac_hi=
17426 break
17427 fi
17428 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17429fi
ac1cb8d3 17430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17431 done
17432else
17433 echo "$as_me: failed program was:" >&5
17434sed 's/^/| /' conftest.$ac_ext >&5
17435
17436cat >conftest.$ac_ext <<_ACEOF
17437/* confdefs.h. */
17438_ACEOF
17439cat confdefs.h >>conftest.$ac_ext
17440cat >>conftest.$ac_ext <<_ACEOF
17441/* end confdefs.h. */
17442$ac_includes_default
17443int
17444main ()
17445{
17446static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17447test_array [0] = 0
17448
17449 ;
17450 return 0;
17451}
17452_ACEOF
17453rm -f conftest.$ac_objext
17454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17455 (eval $ac_compile) 2>conftest.er1
a848cd7e 17456 ac_status=$?
ac1cb8d3
VS
17457 grep -v '^ *+' conftest.er1 >conftest.err
17458 rm -f conftest.er1
17459 cat conftest.err >&5
a848cd7e
SC
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); } &&
fd5199d6 17462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17465 ac_status=$?
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; } &&
17468 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17471 ac_status=$?
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; }; then
17474 ac_hi=-1 ac_mid=-1
17475 while :; do
17476 cat >conftest.$ac_ext <<_ACEOF
17477/* confdefs.h. */
17478_ACEOF
17479cat confdefs.h >>conftest.$ac_ext
17480cat >>conftest.$ac_ext <<_ACEOF
17481/* end confdefs.h. */
17482$ac_includes_default
17483int
17484main ()
17485{
17486static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17487test_array [0] = 0
17488
17489 ;
17490 return 0;
17491}
17492_ACEOF
17493rm -f conftest.$ac_objext
17494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17495 (eval $ac_compile) 2>conftest.er1
a848cd7e 17496 ac_status=$?
ac1cb8d3
VS
17497 grep -v '^ *+' conftest.er1 >conftest.err
17498 rm -f conftest.er1
17499 cat conftest.err >&5
a848cd7e
SC
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } &&
fd5199d6 17502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504 (eval $ac_try) 2>&5
17505 ac_status=$?
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; } &&
17508 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; }; then
17514 ac_lo=$ac_mid; break
17515else
17516 echo "$as_me: failed program was:" >&5
17517sed 's/^/| /' conftest.$ac_ext >&5
17518
17519ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17520 if test $ac_mid -le $ac_hi; then
17521 ac_lo= ac_hi=
17522 break
17523 fi
17524 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17525fi
ac1cb8d3 17526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17527 done
17528else
17529 echo "$as_me: failed program was:" >&5
17530sed 's/^/| /' conftest.$ac_ext >&5
17531
17532ac_lo= ac_hi=
17533fi
ac1cb8d3 17534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17535fi
ac1cb8d3 17536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17537# Binary search between lo and hi bounds.
17538while test "x$ac_lo" != "x$ac_hi"; do
17539 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17540 cat >conftest.$ac_ext <<_ACEOF
17541/* confdefs.h. */
17542_ACEOF
17543cat confdefs.h >>conftest.$ac_ext
17544cat >>conftest.$ac_ext <<_ACEOF
17545/* end confdefs.h. */
17546$ac_includes_default
17547int
17548main ()
17549{
17550static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17551test_array [0] = 0
17552
17553 ;
17554 return 0;
17555}
17556_ACEOF
17557rm -f conftest.$ac_objext
17558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17559 (eval $ac_compile) 2>conftest.er1
a848cd7e 17560 ac_status=$?
ac1cb8d3
VS
17561 grep -v '^ *+' conftest.er1 >conftest.err
17562 rm -f conftest.er1
17563 cat conftest.err >&5
a848cd7e
SC
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); } &&
fd5199d6 17566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17569 ac_status=$?
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; } &&
17572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574 (eval $ac_try) 2>&5
17575 ac_status=$?
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; }; then
17578 ac_hi=$ac_mid
17579else
17580 echo "$as_me: failed program was:" >&5
17581sed 's/^/| /' conftest.$ac_ext >&5
17582
17583ac_lo=`expr '(' $ac_mid ')' + 1`
17584fi
ac1cb8d3 17585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17586done
17587case $ac_lo in
17588?*) ac_cv_sizeof_char=$ac_lo;;
17589'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17590See \`config.log' for more details." >&5
17591echo "$as_me: error: cannot compute sizeof (char), 77
17592See \`config.log' for more details." >&2;}
17593 { (exit 1); exit 1; }; } ;;
17594esac
17595else
17596 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
17597 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17598echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17599 { (exit 1); exit 1; }; }
17600else
17601 cat >conftest.$ac_ext <<_ACEOF
17602/* confdefs.h. */
17603_ACEOF
17604cat confdefs.h >>conftest.$ac_ext
17605cat >>conftest.$ac_ext <<_ACEOF
17606/* end confdefs.h. */
17607$ac_includes_default
17608long longval () { return (long) (sizeof (char)); }
17609unsigned long ulongval () { return (long) (sizeof (char)); }
17610#include <stdio.h>
17611#include <stdlib.h>
17612int
17613main ()
17614{
17615
17616 FILE *f = fopen ("conftest.val", "w");
17617 if (! f)
17618 exit (1);
17619 if (((long) (sizeof (char))) < 0)
17620 {
17621 long i = longval ();
17622 if (i != ((long) (sizeof (char))))
17623 exit (1);
17624 fprintf (f, "%ld\n", i);
17625 }
17626 else
17627 {
17628 unsigned long i = ulongval ();
17629 if (i != ((long) (sizeof (char))))
17630 exit (1);
17631 fprintf (f, "%lu\n", i);
17632 }
17633 exit (ferror (f) || fclose (f) != 0);
17634
17635 ;
17636 return 0;
17637}
17638_ACEOF
17639rm -f conftest$ac_exeext
17640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17641 (eval $ac_link) 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646 (eval $ac_try) 2>&5
17647 ac_status=$?
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; }; then
17650 ac_cv_sizeof_char=`cat conftest.val`
17651else
17652 echo "$as_me: program exited with status $ac_status" >&5
17653echo "$as_me: failed program was:" >&5
17654sed 's/^/| /' conftest.$ac_ext >&5
17655
17656( exit $ac_status )
17657{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17658See \`config.log' for more details." >&5
17659echo "$as_me: error: cannot compute sizeof (char), 77
17660See \`config.log' for more details." >&2;}
17661 { (exit 1); exit 1; }; }
17662fi
ac1cb8d3 17663rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17664fi
17665fi
17666rm -f conftest.val
17667else
17668 ac_cv_sizeof_char=0
17669fi
17670fi
17671echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17672echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17673cat >>confdefs.h <<_ACEOF
17674#define SIZEOF_CHAR $ac_cv_sizeof_char
17675_ACEOF
17676
17677
17678echo "$as_me:$LINENO: checking for short" >&5
17679echo $ECHO_N "checking for short... $ECHO_C" >&6
17680if test "${ac_cv_type_short+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17682else
17683 cat >conftest.$ac_ext <<_ACEOF
17684/* confdefs.h. */
17685_ACEOF
17686cat confdefs.h >>conftest.$ac_ext
17687cat >>conftest.$ac_ext <<_ACEOF
17688/* end confdefs.h. */
17689$ac_includes_default
17690int
17691main ()
17692{
17693if ((short *) 0)
17694 return 0;
17695if (sizeof (short))
17696 return 0;
17697 ;
17698 return 0;
17699}
17700_ACEOF
17701rm -f conftest.$ac_objext
17702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17703 (eval $ac_compile) 2>conftest.er1
a848cd7e 17704 ac_status=$?
ac1cb8d3
VS
17705 grep -v '^ *+' conftest.er1 >conftest.err
17706 rm -f conftest.er1
17707 cat conftest.err >&5
a848cd7e
SC
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); } &&
fd5199d6 17710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712 (eval $ac_try) 2>&5
17713 ac_status=$?
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; } &&
17716 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; }; then
17722 ac_cv_type_short=yes
17723else
17724 echo "$as_me: failed program was:" >&5
17725sed 's/^/| /' conftest.$ac_ext >&5
17726
17727ac_cv_type_short=no
17728fi
ac1cb8d3 17729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17730fi
17731echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17732echo "${ECHO_T}$ac_cv_type_short" >&6
17733
17734echo "$as_me:$LINENO: checking size of short" >&5
17735echo $ECHO_N "checking size of short... $ECHO_C" >&6
17736if test "${ac_cv_sizeof_short+set}" = set; then
17737 echo $ECHO_N "(cached) $ECHO_C" >&6
17738else
17739 if test "$ac_cv_type_short" = yes; then
17740 # The cast to unsigned long works around a bug in the HP C Compiler
17741 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17742 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17743 # This bug is HP SR number 8606223364.
17744 if test "$cross_compiling" = yes; then
17745 # Depending upon the size, compute the lo and hi bounds.
17746cat >conftest.$ac_ext <<_ACEOF
17747/* confdefs.h. */
17748_ACEOF
17749cat confdefs.h >>conftest.$ac_ext
17750cat >>conftest.$ac_ext <<_ACEOF
17751/* end confdefs.h. */
17752$ac_includes_default
17753int
17754main ()
17755{
17756static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17757test_array [0] = 0
17758
17759 ;
17760 return 0;
17761}
17762_ACEOF
17763rm -f conftest.$ac_objext
17764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17765 (eval $ac_compile) 2>conftest.er1
a848cd7e 17766 ac_status=$?
ac1cb8d3
VS
17767 grep -v '^ *+' conftest.er1 >conftest.err
17768 rm -f conftest.er1
17769 cat conftest.err >&5
a848cd7e
SC
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); } &&
fd5199d6 17772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; } &&
17778 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17781 ac_status=$?
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; }; then
17784 ac_lo=0 ac_mid=0
17785 while :; do
17786 cat >conftest.$ac_ext <<_ACEOF
17787/* confdefs.h. */
17788_ACEOF
17789cat confdefs.h >>conftest.$ac_ext
17790cat >>conftest.$ac_ext <<_ACEOF
17791/* end confdefs.h. */
17792$ac_includes_default
17793int
17794main ()
17795{
17796static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17797test_array [0] = 0
17798
17799 ;
17800 return 0;
17801}
17802_ACEOF
17803rm -f conftest.$ac_objext
17804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17805 (eval $ac_compile) 2>conftest.er1
a848cd7e 17806 ac_status=$?
ac1cb8d3
VS
17807 grep -v '^ *+' conftest.er1 >conftest.err
17808 rm -f conftest.er1
17809 cat conftest.err >&5
a848cd7e
SC
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); } &&
fd5199d6 17812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; } &&
17818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820 (eval $ac_try) 2>&5
17821 ac_status=$?
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
17824 ac_hi=$ac_mid; break
17825else
17826 echo "$as_me: failed program was:" >&5
17827sed 's/^/| /' conftest.$ac_ext >&5
17828
17829ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17830 if test $ac_lo -le $ac_mid; then
17831 ac_lo= ac_hi=
17832 break
17833 fi
17834 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17835fi
ac1cb8d3 17836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17837 done
17838else
17839 echo "$as_me: failed program was:" >&5
17840sed 's/^/| /' conftest.$ac_ext >&5
17841
17842cat >conftest.$ac_ext <<_ACEOF
17843/* confdefs.h. */
17844_ACEOF
17845cat confdefs.h >>conftest.$ac_ext
17846cat >>conftest.$ac_ext <<_ACEOF
17847/* end confdefs.h. */
17848$ac_includes_default
17849int
17850main ()
17851{
17852static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17853test_array [0] = 0
17854
17855 ;
17856 return 0;
17857}
17858_ACEOF
17859rm -f conftest.$ac_objext
17860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17861 (eval $ac_compile) 2>conftest.er1
a848cd7e 17862 ac_status=$?
ac1cb8d3
VS
17863 grep -v '^ *+' conftest.er1 >conftest.err
17864 rm -f conftest.er1
17865 cat conftest.err >&5
a848cd7e
SC
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } &&
fd5199d6 17868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17870 (eval $ac_try) 2>&5
17871 ac_status=$?
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); }; } &&
17874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17876 (eval $ac_try) 2>&5
17877 ac_status=$?
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; }; then
17880 ac_hi=-1 ac_mid=-1
17881 while :; do
17882 cat >conftest.$ac_ext <<_ACEOF
17883/* confdefs.h. */
17884_ACEOF
17885cat confdefs.h >>conftest.$ac_ext
17886cat >>conftest.$ac_ext <<_ACEOF
17887/* end confdefs.h. */
17888$ac_includes_default
17889int
17890main ()
17891{
17892static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17893test_array [0] = 0
17894
17895 ;
17896 return 0;
17897}
17898_ACEOF
17899rm -f conftest.$ac_objext
17900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17901 (eval $ac_compile) 2>conftest.er1
a848cd7e 17902 ac_status=$?
ac1cb8d3
VS
17903 grep -v '^ *+' conftest.er1 >conftest.err
17904 rm -f conftest.er1
17905 cat conftest.err >&5
a848cd7e
SC
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } &&
fd5199d6 17908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17911 ac_status=$?
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; } &&
17914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17917 ac_status=$?
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; }; then
17920 ac_lo=$ac_mid; break
17921else
17922 echo "$as_me: failed program was:" >&5
17923sed 's/^/| /' conftest.$ac_ext >&5
17924
17925ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17926 if test $ac_mid -le $ac_hi; then
17927 ac_lo= ac_hi=
17928 break
17929 fi
17930 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17931fi
ac1cb8d3 17932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17933 done
17934else
17935 echo "$as_me: failed program was:" >&5
17936sed 's/^/| /' conftest.$ac_ext >&5
17937
17938ac_lo= ac_hi=
17939fi
ac1cb8d3 17940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17941fi
ac1cb8d3 17942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17943# Binary search between lo and hi bounds.
17944while test "x$ac_lo" != "x$ac_hi"; do
17945 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17946 cat >conftest.$ac_ext <<_ACEOF
17947/* confdefs.h. */
17948_ACEOF
17949cat confdefs.h >>conftest.$ac_ext
17950cat >>conftest.$ac_ext <<_ACEOF
17951/* end confdefs.h. */
17952$ac_includes_default
17953int
17954main ()
17955{
17956static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17957test_array [0] = 0
17958
17959 ;
17960 return 0;
17961}
17962_ACEOF
17963rm -f conftest.$ac_objext
17964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17965 (eval $ac_compile) 2>conftest.er1
a848cd7e 17966 ac_status=$?
ac1cb8d3
VS
17967 grep -v '^ *+' conftest.er1 >conftest.err
17968 rm -f conftest.er1
17969 cat conftest.err >&5
a848cd7e
SC
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } &&
fd5199d6 17972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17974 (eval $ac_try) 2>&5
17975 ac_status=$?
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }; } &&
17978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17980 (eval $ac_try) 2>&5
17981 ac_status=$?
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); }; }; then
17984 ac_hi=$ac_mid
17985else
17986 echo "$as_me: failed program was:" >&5
17987sed 's/^/| /' conftest.$ac_ext >&5
17988
17989ac_lo=`expr '(' $ac_mid ')' + 1`
17990fi
ac1cb8d3 17991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17992done
17993case $ac_lo in
17994?*) ac_cv_sizeof_short=$ac_lo;;
17995'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17996See \`config.log' for more details." >&5
17997echo "$as_me: error: cannot compute sizeof (short), 77
17998See \`config.log' for more details." >&2;}
17999 { (exit 1); exit 1; }; } ;;
18000esac
18001else
18002 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
18003 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18004echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18005 { (exit 1); exit 1; }; }
18006else
18007 cat >conftest.$ac_ext <<_ACEOF
18008/* confdefs.h. */
18009_ACEOF
18010cat confdefs.h >>conftest.$ac_ext
18011cat >>conftest.$ac_ext <<_ACEOF
18012/* end confdefs.h. */
18013$ac_includes_default
18014long longval () { return (long) (sizeof (short)); }
18015unsigned long ulongval () { return (long) (sizeof (short)); }
18016#include <stdio.h>
18017#include <stdlib.h>
18018int
18019main ()
18020{
18021
18022 FILE *f = fopen ("conftest.val", "w");
18023 if (! f)
18024 exit (1);
18025 if (((long) (sizeof (short))) < 0)
18026 {
18027 long i = longval ();
18028 if (i != ((long) (sizeof (short))))
18029 exit (1);
18030 fprintf (f, "%ld\n", i);
18031 }
18032 else
18033 {
18034 unsigned long i = ulongval ();
18035 if (i != ((long) (sizeof (short))))
18036 exit (1);
18037 fprintf (f, "%lu\n", i);
18038 }
18039 exit (ferror (f) || fclose (f) != 0);
18040
18041 ;
18042 return 0;
18043}
18044_ACEOF
18045rm -f conftest$ac_exeext
18046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18047 (eval $ac_link) 2>&5
18048 ac_status=$?
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052 (eval $ac_try) 2>&5
18053 ac_status=$?
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; }; then
18056 ac_cv_sizeof_short=`cat conftest.val`
18057else
18058 echo "$as_me: program exited with status $ac_status" >&5
18059echo "$as_me: failed program was:" >&5
18060sed 's/^/| /' conftest.$ac_ext >&5
18061
18062( exit $ac_status )
18063{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18064See \`config.log' for more details." >&5
18065echo "$as_me: error: cannot compute sizeof (short), 77
18066See \`config.log' for more details." >&2;}
18067 { (exit 1); exit 1; }; }
18068fi
ac1cb8d3 18069rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18070fi
18071fi
18072rm -f conftest.val
18073else
18074 ac_cv_sizeof_short=0
18075fi
18076fi
18077echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18078echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18079cat >>confdefs.h <<_ACEOF
18080#define SIZEOF_SHORT $ac_cv_sizeof_short
18081_ACEOF
18082
18083
18084echo "$as_me:$LINENO: checking for void *" >&5
18085echo $ECHO_N "checking for void *... $ECHO_C" >&6
18086if test "${ac_cv_type_void_p+set}" = set; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
18088else
18089 cat >conftest.$ac_ext <<_ACEOF
18090/* confdefs.h. */
18091_ACEOF
18092cat confdefs.h >>conftest.$ac_ext
18093cat >>conftest.$ac_ext <<_ACEOF
18094/* end confdefs.h. */
18095$ac_includes_default
18096int
18097main ()
18098{
18099if ((void * *) 0)
18100 return 0;
18101if (sizeof (void *))
18102 return 0;
18103 ;
18104 return 0;
18105}
18106_ACEOF
18107rm -f conftest.$ac_objext
18108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18109 (eval $ac_compile) 2>conftest.er1
a848cd7e 18110 ac_status=$?
ac1cb8d3
VS
18111 grep -v '^ *+' conftest.er1 >conftest.err
18112 rm -f conftest.er1
18113 cat conftest.err >&5
a848cd7e
SC
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } &&
fd5199d6 18116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18119 ac_status=$?
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; } &&
18122 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 ac_cv_type_void_p=yes
18129else
18130 echo "$as_me: failed program was:" >&5
18131sed 's/^/| /' conftest.$ac_ext >&5
18132
18133ac_cv_type_void_p=no
18134fi
ac1cb8d3 18135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18136fi
18137echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18138echo "${ECHO_T}$ac_cv_type_void_p" >&6
18139
18140echo "$as_me:$LINENO: checking size of void *" >&5
18141echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18142if test "${ac_cv_sizeof_void_p+set}" = set; then
18143 echo $ECHO_N "(cached) $ECHO_C" >&6
18144else
18145 if test "$ac_cv_type_void_p" = yes; then
18146 # The cast to unsigned long works around a bug in the HP C Compiler
18147 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18148 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18149 # This bug is HP SR number 8606223364.
18150 if test "$cross_compiling" = yes; then
18151 # Depending upon the size, compute the lo and hi bounds.
18152cat >conftest.$ac_ext <<_ACEOF
18153/* confdefs.h. */
18154_ACEOF
18155cat confdefs.h >>conftest.$ac_ext
18156cat >>conftest.$ac_ext <<_ACEOF
18157/* end confdefs.h. */
18158$ac_includes_default
18159int
18160main ()
18161{
18162static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18163test_array [0] = 0
18164
18165 ;
18166 return 0;
18167}
18168_ACEOF
18169rm -f conftest.$ac_objext
18170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18171 (eval $ac_compile) 2>conftest.er1
a848cd7e 18172 ac_status=$?
ac1cb8d3
VS
18173 grep -v '^ *+' conftest.er1 >conftest.err
18174 rm -f conftest.er1
18175 cat conftest.err >&5
a848cd7e
SC
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); } &&
fd5199d6 18178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180 (eval $ac_try) 2>&5
18181 ac_status=$?
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; } &&
18184 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; }; then
18190 ac_lo=0 ac_mid=0
18191 while :; do
18192 cat >conftest.$ac_ext <<_ACEOF
18193/* confdefs.h. */
18194_ACEOF
18195cat confdefs.h >>conftest.$ac_ext
18196cat >>conftest.$ac_ext <<_ACEOF
18197/* end confdefs.h. */
18198$ac_includes_default
18199int
18200main ()
18201{
18202static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18203test_array [0] = 0
18204
18205 ;
18206 return 0;
18207}
18208_ACEOF
18209rm -f conftest.$ac_objext
18210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18211 (eval $ac_compile) 2>conftest.er1
a848cd7e 18212 ac_status=$?
ac1cb8d3
VS
18213 grep -v '^ *+' conftest.er1 >conftest.err
18214 rm -f conftest.er1
18215 cat conftest.err >&5
a848cd7e
SC
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
fd5199d6 18218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; } &&
18224 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18227 ac_status=$?
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; }; then
18230 ac_hi=$ac_mid; break
18231else
18232 echo "$as_me: failed program was:" >&5
18233sed 's/^/| /' conftest.$ac_ext >&5
18234
18235ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18236 if test $ac_lo -le $ac_mid; then
18237 ac_lo= ac_hi=
18238 break
18239 fi
18240 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18241fi
ac1cb8d3 18242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18243 done
18244else
18245 echo "$as_me: failed program was:" >&5
18246sed 's/^/| /' conftest.$ac_ext >&5
18247
18248cat >conftest.$ac_ext <<_ACEOF
18249/* confdefs.h. */
18250_ACEOF
18251cat confdefs.h >>conftest.$ac_ext
18252cat >>conftest.$ac_ext <<_ACEOF
18253/* end confdefs.h. */
18254$ac_includes_default
18255int
18256main ()
18257{
18258static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18259test_array [0] = 0
18260
18261 ;
18262 return 0;
18263}
18264_ACEOF
18265rm -f conftest.$ac_objext
18266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18267 (eval $ac_compile) 2>conftest.er1
a848cd7e 18268 ac_status=$?
ac1cb8d3
VS
18269 grep -v '^ *+' conftest.er1 >conftest.err
18270 rm -f conftest.er1
18271 cat conftest.err >&5
a848cd7e
SC
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } &&
fd5199d6 18274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; } &&
18280 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
18286 ac_hi=-1 ac_mid=-1
18287 while :; do
18288 cat >conftest.$ac_ext <<_ACEOF
18289/* confdefs.h. */
18290_ACEOF
18291cat confdefs.h >>conftest.$ac_ext
18292cat >>conftest.$ac_ext <<_ACEOF
18293/* end confdefs.h. */
18294$ac_includes_default
18295int
18296main ()
18297{
18298static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18299test_array [0] = 0
18300
18301 ;
18302 return 0;
18303}
18304_ACEOF
18305rm -f conftest.$ac_objext
18306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18307 (eval $ac_compile) 2>conftest.er1
a848cd7e 18308 ac_status=$?
ac1cb8d3
VS
18309 grep -v '^ *+' conftest.er1 >conftest.err
18310 rm -f conftest.er1
18311 cat conftest.err >&5
a848cd7e
SC
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); } &&
fd5199d6 18314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18316 (eval $ac_try) 2>&5
18317 ac_status=$?
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; } &&
18320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18322 (eval $ac_try) 2>&5
18323 ac_status=$?
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; }; then
18326 ac_lo=$ac_mid; break
18327else
18328 echo "$as_me: failed program was:" >&5
18329sed 's/^/| /' conftest.$ac_ext >&5
18330
18331ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18332 if test $ac_mid -le $ac_hi; then
18333 ac_lo= ac_hi=
18334 break
18335 fi
18336 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18337fi
ac1cb8d3 18338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18339 done
18340else
18341 echo "$as_me: failed program was:" >&5
18342sed 's/^/| /' conftest.$ac_ext >&5
18343
18344ac_lo= ac_hi=
18345fi
ac1cb8d3 18346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18347fi
ac1cb8d3 18348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18349# Binary search between lo and hi bounds.
18350while test "x$ac_lo" != "x$ac_hi"; do
18351 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18352 cat >conftest.$ac_ext <<_ACEOF
18353/* confdefs.h. */
18354_ACEOF
18355cat confdefs.h >>conftest.$ac_ext
18356cat >>conftest.$ac_ext <<_ACEOF
18357/* end confdefs.h. */
18358$ac_includes_default
18359int
18360main ()
18361{
18362static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18363test_array [0] = 0
18364
18365 ;
18366 return 0;
18367}
18368_ACEOF
18369rm -f conftest.$ac_objext
18370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18371 (eval $ac_compile) 2>conftest.er1
a848cd7e 18372 ac_status=$?
ac1cb8d3
VS
18373 grep -v '^ *+' conftest.er1 >conftest.err
18374 rm -f conftest.er1
18375 cat conftest.err >&5
a848cd7e
SC
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); } &&
fd5199d6 18378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380 (eval $ac_try) 2>&5
18381 ac_status=$?
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; } &&
18384 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18387 ac_status=$?
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; }; then
18390 ac_hi=$ac_mid
18391else
18392 echo "$as_me: failed program was:" >&5
18393sed 's/^/| /' conftest.$ac_ext >&5
18394
18395ac_lo=`expr '(' $ac_mid ')' + 1`
18396fi
ac1cb8d3 18397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18398done
18399case $ac_lo in
18400?*) ac_cv_sizeof_void_p=$ac_lo;;
18401'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18402See \`config.log' for more details." >&5
18403echo "$as_me: error: cannot compute sizeof (void *), 77
18404See \`config.log' for more details." >&2;}
18405 { (exit 1); exit 1; }; } ;;
18406esac
18407else
18408 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
18409 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18410echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18411 { (exit 1); exit 1; }; }
18412else
18413 cat >conftest.$ac_ext <<_ACEOF
18414/* confdefs.h. */
18415_ACEOF
18416cat confdefs.h >>conftest.$ac_ext
18417cat >>conftest.$ac_ext <<_ACEOF
18418/* end confdefs.h. */
18419$ac_includes_default
18420long longval () { return (long) (sizeof (void *)); }
18421unsigned long ulongval () { return (long) (sizeof (void *)); }
18422#include <stdio.h>
18423#include <stdlib.h>
18424int
18425main ()
18426{
18427
18428 FILE *f = fopen ("conftest.val", "w");
18429 if (! f)
18430 exit (1);
18431 if (((long) (sizeof (void *))) < 0)
18432 {
18433 long i = longval ();
18434 if (i != ((long) (sizeof (void *))))
18435 exit (1);
18436 fprintf (f, "%ld\n", i);
18437 }
18438 else
18439 {
18440 unsigned long i = ulongval ();
18441 if (i != ((long) (sizeof (void *))))
18442 exit (1);
18443 fprintf (f, "%lu\n", i);
18444 }
18445 exit (ferror (f) || fclose (f) != 0);
18446
18447 ;
18448 return 0;
18449}
18450_ACEOF
18451rm -f conftest$ac_exeext
18452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18453 (eval $ac_link) 2>&5
18454 ac_status=$?
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18458 (eval $ac_try) 2>&5
18459 ac_status=$?
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; }; then
18462 ac_cv_sizeof_void_p=`cat conftest.val`
18463else
18464 echo "$as_me: program exited with status $ac_status" >&5
18465echo "$as_me: failed program was:" >&5
18466sed 's/^/| /' conftest.$ac_ext >&5
18467
18468( exit $ac_status )
18469{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18470See \`config.log' for more details." >&5
18471echo "$as_me: error: cannot compute sizeof (void *), 77
18472See \`config.log' for more details." >&2;}
18473 { (exit 1); exit 1; }; }
18474fi
ac1cb8d3 18475rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18476fi
18477fi
18478rm -f conftest.val
18479else
18480 ac_cv_sizeof_void_p=0
18481fi
18482fi
18483echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18484echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18485cat >>confdefs.h <<_ACEOF
18486#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18487_ACEOF
18488
18489
18490echo "$as_me:$LINENO: checking for int" >&5
18491echo $ECHO_N "checking for int... $ECHO_C" >&6
18492if test "${ac_cv_type_int+set}" = set; then
18493 echo $ECHO_N "(cached) $ECHO_C" >&6
18494else
18495 cat >conftest.$ac_ext <<_ACEOF
18496/* confdefs.h. */
18497_ACEOF
18498cat confdefs.h >>conftest.$ac_ext
18499cat >>conftest.$ac_ext <<_ACEOF
18500/* end confdefs.h. */
18501$ac_includes_default
18502int
18503main ()
18504{
18505if ((int *) 0)
18506 return 0;
18507if (sizeof (int))
18508 return 0;
18509 ;
18510 return 0;
18511}
18512_ACEOF
18513rm -f conftest.$ac_objext
18514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18515 (eval $ac_compile) 2>conftest.er1
a848cd7e 18516 ac_status=$?
ac1cb8d3
VS
18517 grep -v '^ *+' conftest.er1 >conftest.err
18518 rm -f conftest.er1
18519 cat conftest.err >&5
a848cd7e
SC
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } &&
fd5199d6 18522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; } &&
18528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18530 (eval $ac_try) 2>&5
18531 ac_status=$?
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; }; then
18534 ac_cv_type_int=yes
18535else
18536 echo "$as_me: failed program was:" >&5
18537sed 's/^/| /' conftest.$ac_ext >&5
18538
18539ac_cv_type_int=no
18540fi
ac1cb8d3 18541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18542fi
18543echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18544echo "${ECHO_T}$ac_cv_type_int" >&6
18545
18546echo "$as_me:$LINENO: checking size of int" >&5
18547echo $ECHO_N "checking size of int... $ECHO_C" >&6
18548if test "${ac_cv_sizeof_int+set}" = set; then
18549 echo $ECHO_N "(cached) $ECHO_C" >&6
18550else
18551 if test "$ac_cv_type_int" = yes; then
18552 # The cast to unsigned long works around a bug in the HP C Compiler
18553 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18554 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18555 # This bug is HP SR number 8606223364.
18556 if test "$cross_compiling" = yes; then
18557 # Depending upon the size, compute the lo and hi bounds.
18558cat >conftest.$ac_ext <<_ACEOF
18559/* confdefs.h. */
18560_ACEOF
18561cat confdefs.h >>conftest.$ac_ext
18562cat >>conftest.$ac_ext <<_ACEOF
18563/* end confdefs.h. */
18564$ac_includes_default
18565int
18566main ()
18567{
18568static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18569test_array [0] = 0
18570
18571 ;
18572 return 0;
18573}
18574_ACEOF
18575rm -f conftest.$ac_objext
18576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18577 (eval $ac_compile) 2>conftest.er1
a848cd7e 18578 ac_status=$?
ac1cb8d3
VS
18579 grep -v '^ *+' conftest.er1 >conftest.err
18580 rm -f conftest.er1
18581 cat conftest.err >&5
a848cd7e
SC
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); } &&
fd5199d6 18584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18586 (eval $ac_try) 2>&5
18587 ac_status=$?
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); }; } &&
18590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18592 (eval $ac_try) 2>&5
18593 ac_status=$?
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); }; }; then
18596 ac_lo=0 ac_mid=0
18597 while :; do
18598 cat >conftest.$ac_ext <<_ACEOF
18599/* confdefs.h. */
18600_ACEOF
18601cat confdefs.h >>conftest.$ac_ext
18602cat >>conftest.$ac_ext <<_ACEOF
18603/* end confdefs.h. */
18604$ac_includes_default
18605int
18606main ()
18607{
18608static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18609test_array [0] = 0
18610
18611 ;
18612 return 0;
18613}
18614_ACEOF
18615rm -f conftest.$ac_objext
18616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18617 (eval $ac_compile) 2>conftest.er1
a848cd7e 18618 ac_status=$?
ac1cb8d3
VS
18619 grep -v '^ *+' conftest.er1 >conftest.err
18620 rm -f conftest.er1
18621 cat conftest.err >&5
a848cd7e
SC
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } &&
fd5199d6 18624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626 (eval $ac_try) 2>&5
18627 ac_status=$?
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; } &&
18630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18632 (eval $ac_try) 2>&5
18633 ac_status=$?
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; }; then
18636 ac_hi=$ac_mid; break
18637else
18638 echo "$as_me: failed program was:" >&5
18639sed 's/^/| /' conftest.$ac_ext >&5
18640
18641ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18642 if test $ac_lo -le $ac_mid; then
18643 ac_lo= ac_hi=
18644 break
18645 fi
18646 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18647fi
ac1cb8d3 18648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18649 done
18650else
18651 echo "$as_me: failed program was:" >&5
18652sed 's/^/| /' conftest.$ac_ext >&5
18653
18654cat >conftest.$ac_ext <<_ACEOF
18655/* confdefs.h. */
18656_ACEOF
18657cat confdefs.h >>conftest.$ac_ext
18658cat >>conftest.$ac_ext <<_ACEOF
18659/* end confdefs.h. */
18660$ac_includes_default
18661int
18662main ()
18663{
18664static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18665test_array [0] = 0
18666
18667 ;
18668 return 0;
18669}
18670_ACEOF
18671rm -f conftest.$ac_objext
18672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18673 (eval $ac_compile) 2>conftest.er1
a848cd7e 18674 ac_status=$?
ac1cb8d3
VS
18675 grep -v '^ *+' conftest.er1 >conftest.err
18676 rm -f conftest.er1
18677 cat conftest.err >&5
a848cd7e
SC
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } &&
fd5199d6 18680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18682 (eval $ac_try) 2>&5
18683 ac_status=$?
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); }; } &&
18686 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688 (eval $ac_try) 2>&5
18689 ac_status=$?
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; }; then
18692 ac_hi=-1 ac_mid=-1
18693 while :; do
18694 cat >conftest.$ac_ext <<_ACEOF
18695/* confdefs.h. */
18696_ACEOF
18697cat confdefs.h >>conftest.$ac_ext
18698cat >>conftest.$ac_ext <<_ACEOF
18699/* end confdefs.h. */
18700$ac_includes_default
18701int
18702main ()
18703{
18704static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18705test_array [0] = 0
18706
18707 ;
18708 return 0;
18709}
18710_ACEOF
18711rm -f conftest.$ac_objext
18712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18713 (eval $ac_compile) 2>conftest.er1
a848cd7e 18714 ac_status=$?
ac1cb8d3
VS
18715 grep -v '^ *+' conftest.er1 >conftest.err
18716 rm -f conftest.er1
18717 cat conftest.err >&5
a848cd7e
SC
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } &&
fd5199d6 18720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722 (eval $ac_try) 2>&5
18723 ac_status=$?
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; } &&
18726 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728 (eval $ac_try) 2>&5
18729 ac_status=$?
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; }; then
18732 ac_lo=$ac_mid; break
18733else
18734 echo "$as_me: failed program was:" >&5
18735sed 's/^/| /' conftest.$ac_ext >&5
18736
18737ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18738 if test $ac_mid -le $ac_hi; then
18739 ac_lo= ac_hi=
18740 break
18741 fi
18742 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18743fi
ac1cb8d3 18744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18745 done
18746else
18747 echo "$as_me: failed program was:" >&5
18748sed 's/^/| /' conftest.$ac_ext >&5
18749
18750ac_lo= ac_hi=
18751fi
ac1cb8d3 18752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18753fi
ac1cb8d3 18754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18755# Binary search between lo and hi bounds.
18756while test "x$ac_lo" != "x$ac_hi"; do
18757 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18758 cat >conftest.$ac_ext <<_ACEOF
18759/* confdefs.h. */
18760_ACEOF
18761cat confdefs.h >>conftest.$ac_ext
18762cat >>conftest.$ac_ext <<_ACEOF
18763/* end confdefs.h. */
18764$ac_includes_default
18765int
18766main ()
18767{
18768static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18769test_array [0] = 0
18770
18771 ;
18772 return 0;
18773}
18774_ACEOF
18775rm -f conftest.$ac_objext
18776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18777 (eval $ac_compile) 2>conftest.er1
a848cd7e 18778 ac_status=$?
ac1cb8d3
VS
18779 grep -v '^ *+' conftest.er1 >conftest.err
18780 rm -f conftest.er1
18781 cat conftest.err >&5
a848cd7e
SC
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); } &&
fd5199d6 18784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786 (eval $ac_try) 2>&5
18787 ac_status=$?
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; } &&
18790 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792 (eval $ac_try) 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; }; then
18796 ac_hi=$ac_mid
18797else
18798 echo "$as_me: failed program was:" >&5
18799sed 's/^/| /' conftest.$ac_ext >&5
18800
18801ac_lo=`expr '(' $ac_mid ')' + 1`
18802fi
ac1cb8d3 18803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18804done
18805case $ac_lo in
18806?*) ac_cv_sizeof_int=$ac_lo;;
18807'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18808See \`config.log' for more details." >&5
18809echo "$as_me: error: cannot compute sizeof (int), 77
18810See \`config.log' for more details." >&2;}
18811 { (exit 1); exit 1; }; } ;;
18812esac
18813else
18814 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
18815 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18816echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18817 { (exit 1); exit 1; }; }
18818else
18819 cat >conftest.$ac_ext <<_ACEOF
18820/* confdefs.h. */
18821_ACEOF
18822cat confdefs.h >>conftest.$ac_ext
18823cat >>conftest.$ac_ext <<_ACEOF
18824/* end confdefs.h. */
18825$ac_includes_default
18826long longval () { return (long) (sizeof (int)); }
18827unsigned long ulongval () { return (long) (sizeof (int)); }
18828#include <stdio.h>
18829#include <stdlib.h>
18830int
18831main ()
18832{
18833
18834 FILE *f = fopen ("conftest.val", "w");
18835 if (! f)
18836 exit (1);
18837 if (((long) (sizeof (int))) < 0)
18838 {
18839 long i = longval ();
18840 if (i != ((long) (sizeof (int))))
18841 exit (1);
18842 fprintf (f, "%ld\n", i);
18843 }
18844 else
18845 {
18846 unsigned long i = ulongval ();
18847 if (i != ((long) (sizeof (int))))
18848 exit (1);
18849 fprintf (f, "%lu\n", i);
18850 }
18851 exit (ferror (f) || fclose (f) != 0);
18852
18853 ;
18854 return 0;
18855}
18856_ACEOF
18857rm -f conftest$ac_exeext
18858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18859 (eval $ac_link) 2>&5
18860 ac_status=$?
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18865 ac_status=$?
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18868 ac_cv_sizeof_int=`cat conftest.val`
18869else
18870 echo "$as_me: program exited with status $ac_status" >&5
18871echo "$as_me: failed program was:" >&5
18872sed 's/^/| /' conftest.$ac_ext >&5
18873
18874( exit $ac_status )
18875{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18876See \`config.log' for more details." >&5
18877echo "$as_me: error: cannot compute sizeof (int), 77
18878See \`config.log' for more details." >&2;}
18879 { (exit 1); exit 1; }; }
18880fi
ac1cb8d3 18881rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18882fi
18883fi
18884rm -f conftest.val
18885else
18886 ac_cv_sizeof_int=0
18887fi
18888fi
18889echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18890echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18891cat >>confdefs.h <<_ACEOF
18892#define SIZEOF_INT $ac_cv_sizeof_int
18893_ACEOF
18894
18895
18896echo "$as_me:$LINENO: checking for long" >&5
18897echo $ECHO_N "checking for long... $ECHO_C" >&6
18898if test "${ac_cv_type_long+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18900else
18901 cat >conftest.$ac_ext <<_ACEOF
18902/* confdefs.h. */
18903_ACEOF
18904cat confdefs.h >>conftest.$ac_ext
18905cat >>conftest.$ac_ext <<_ACEOF
18906/* end confdefs.h. */
18907$ac_includes_default
18908int
18909main ()
18910{
18911if ((long *) 0)
18912 return 0;
18913if (sizeof (long))
18914 return 0;
18915 ;
18916 return 0;
18917}
18918_ACEOF
18919rm -f conftest.$ac_objext
18920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18921 (eval $ac_compile) 2>conftest.er1
a848cd7e 18922 ac_status=$?
ac1cb8d3
VS
18923 grep -v '^ *+' conftest.er1 >conftest.err
18924 rm -f conftest.er1
18925 cat conftest.err >&5
a848cd7e
SC
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); } &&
fd5199d6 18928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930 (eval $ac_try) 2>&5
18931 ac_status=$?
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; } &&
18934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936 (eval $ac_try) 2>&5
18937 ac_status=$?
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; }; then
18940 ac_cv_type_long=yes
18941else
18942 echo "$as_me: failed program was:" >&5
18943sed 's/^/| /' conftest.$ac_ext >&5
18944
18945ac_cv_type_long=no
18946fi
ac1cb8d3 18947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18948fi
18949echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18950echo "${ECHO_T}$ac_cv_type_long" >&6
18951
18952echo "$as_me:$LINENO: checking size of long" >&5
18953echo $ECHO_N "checking size of long... $ECHO_C" >&6
18954if test "${ac_cv_sizeof_long+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18956else
18957 if test "$ac_cv_type_long" = yes; then
18958 # The cast to unsigned long works around a bug in the HP C Compiler
18959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18961 # This bug is HP SR number 8606223364.
18962 if test "$cross_compiling" = yes; then
18963 # Depending upon the size, compute the lo and hi bounds.
18964cat >conftest.$ac_ext <<_ACEOF
18965/* confdefs.h. */
18966_ACEOF
18967cat confdefs.h >>conftest.$ac_ext
18968cat >>conftest.$ac_ext <<_ACEOF
18969/* end confdefs.h. */
18970$ac_includes_default
18971int
18972main ()
18973{
18974static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18975test_array [0] = 0
18976
18977 ;
18978 return 0;
18979}
18980_ACEOF
18981rm -f conftest.$ac_objext
18982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18983 (eval $ac_compile) 2>conftest.er1
a848cd7e 18984 ac_status=$?
ac1cb8d3
VS
18985 grep -v '^ *+' conftest.er1 >conftest.err
18986 rm -f conftest.er1
18987 cat conftest.err >&5
a848cd7e
SC
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } &&
fd5199d6 18990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992 (eval $ac_try) 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; } &&
18996 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
19002 ac_lo=0 ac_mid=0
19003 while :; do
19004 cat >conftest.$ac_ext <<_ACEOF
19005/* confdefs.h. */
19006_ACEOF
19007cat confdefs.h >>conftest.$ac_ext
19008cat >>conftest.$ac_ext <<_ACEOF
19009/* end confdefs.h. */
19010$ac_includes_default
19011int
19012main ()
19013{
19014static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19015test_array [0] = 0
19016
19017 ;
19018 return 0;
19019}
19020_ACEOF
19021rm -f conftest.$ac_objext
19022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19023 (eval $ac_compile) 2>conftest.er1
a848cd7e 19024 ac_status=$?
ac1cb8d3
VS
19025 grep -v '^ *+' conftest.er1 >conftest.err
19026 rm -f conftest.er1
19027 cat conftest.err >&5
a848cd7e
SC
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } &&
fd5199d6 19030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032 (eval $ac_try) 2>&5
19033 ac_status=$?
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; } &&
19036 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19039 ac_status=$?
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; }; then
19042 ac_hi=$ac_mid; break
19043else
19044 echo "$as_me: failed program was:" >&5
19045sed 's/^/| /' conftest.$ac_ext >&5
19046
19047ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19048 if test $ac_lo -le $ac_mid; then
19049 ac_lo= ac_hi=
19050 break
19051 fi
19052 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19053fi
ac1cb8d3 19054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19055 done
19056else
19057 echo "$as_me: failed program was:" >&5
19058sed 's/^/| /' conftest.$ac_ext >&5
19059
19060cat >conftest.$ac_ext <<_ACEOF
19061/* confdefs.h. */
19062_ACEOF
19063cat confdefs.h >>conftest.$ac_ext
19064cat >>conftest.$ac_ext <<_ACEOF
19065/* end confdefs.h. */
19066$ac_includes_default
19067int
19068main ()
19069{
19070static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19071test_array [0] = 0
19072
19073 ;
19074 return 0;
19075}
19076_ACEOF
19077rm -f conftest.$ac_objext
19078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19079 (eval $ac_compile) 2>conftest.er1
a848cd7e 19080 ac_status=$?
ac1cb8d3
VS
19081 grep -v '^ *+' conftest.er1 >conftest.err
19082 rm -f conftest.er1
19083 cat conftest.err >&5
a848cd7e
SC
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); } &&
fd5199d6 19086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088 (eval $ac_try) 2>&5
19089 ac_status=$?
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; } &&
19092 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19094 (eval $ac_try) 2>&5
19095 ac_status=$?
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); }; }; then
19098 ac_hi=-1 ac_mid=-1
19099 while :; do
19100 cat >conftest.$ac_ext <<_ACEOF
19101/* confdefs.h. */
19102_ACEOF
19103cat confdefs.h >>conftest.$ac_ext
19104cat >>conftest.$ac_ext <<_ACEOF
19105/* end confdefs.h. */
19106$ac_includes_default
19107int
19108main ()
19109{
19110static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19111test_array [0] = 0
19112
19113 ;
19114 return 0;
19115}
19116_ACEOF
19117rm -f conftest.$ac_objext
19118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19119 (eval $ac_compile) 2>conftest.er1
a848cd7e 19120 ac_status=$?
ac1cb8d3
VS
19121 grep -v '^ *+' conftest.er1 >conftest.err
19122 rm -f conftest.er1
19123 cat conftest.err >&5
a848cd7e
SC
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); } &&
fd5199d6 19126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19129 ac_status=$?
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; } &&
19132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134 (eval $ac_try) 2>&5
19135 ac_status=$?
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; }; then
19138 ac_lo=$ac_mid; break
19139else
19140 echo "$as_me: failed program was:" >&5
19141sed 's/^/| /' conftest.$ac_ext >&5
19142
19143ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19144 if test $ac_mid -le $ac_hi; then
19145 ac_lo= ac_hi=
19146 break
19147 fi
19148 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19149fi
ac1cb8d3 19150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19151 done
19152else
19153 echo "$as_me: failed program was:" >&5
19154sed 's/^/| /' conftest.$ac_ext >&5
19155
19156ac_lo= ac_hi=
19157fi
ac1cb8d3 19158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19159fi
ac1cb8d3 19160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19161# Binary search between lo and hi bounds.
19162while test "x$ac_lo" != "x$ac_hi"; do
19163 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19164 cat >conftest.$ac_ext <<_ACEOF
19165/* confdefs.h. */
19166_ACEOF
19167cat confdefs.h >>conftest.$ac_ext
19168cat >>conftest.$ac_ext <<_ACEOF
19169/* end confdefs.h. */
19170$ac_includes_default
19171int
19172main ()
19173{
19174static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19175test_array [0] = 0
19176
19177 ;
19178 return 0;
19179}
19180_ACEOF
19181rm -f conftest.$ac_objext
19182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19183 (eval $ac_compile) 2>conftest.er1
a848cd7e 19184 ac_status=$?
ac1cb8d3
VS
19185 grep -v '^ *+' conftest.er1 >conftest.err
19186 rm -f conftest.er1
19187 cat conftest.err >&5
a848cd7e
SC
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } &&
fd5199d6 19190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19192 (eval $ac_try) 2>&5
19193 ac_status=$?
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); }; } &&
19196 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19199 ac_status=$?
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; }; then
19202 ac_hi=$ac_mid
19203else
19204 echo "$as_me: failed program was:" >&5
19205sed 's/^/| /' conftest.$ac_ext >&5
19206
19207ac_lo=`expr '(' $ac_mid ')' + 1`
19208fi
ac1cb8d3 19209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19210done
19211case $ac_lo in
19212?*) ac_cv_sizeof_long=$ac_lo;;
19213'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19214See \`config.log' for more details." >&5
19215echo "$as_me: error: cannot compute sizeof (long), 77
19216See \`config.log' for more details." >&2;}
19217 { (exit 1); exit 1; }; } ;;
19218esac
19219else
19220 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
19221 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19222echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19223 { (exit 1); exit 1; }; }
19224else
19225 cat >conftest.$ac_ext <<_ACEOF
19226/* confdefs.h. */
19227_ACEOF
19228cat confdefs.h >>conftest.$ac_ext
19229cat >>conftest.$ac_ext <<_ACEOF
19230/* end confdefs.h. */
19231$ac_includes_default
19232long longval () { return (long) (sizeof (long)); }
19233unsigned long ulongval () { return (long) (sizeof (long)); }
19234#include <stdio.h>
19235#include <stdlib.h>
19236int
19237main ()
19238{
19239
19240 FILE *f = fopen ("conftest.val", "w");
19241 if (! f)
19242 exit (1);
19243 if (((long) (sizeof (long))) < 0)
19244 {
19245 long i = longval ();
19246 if (i != ((long) (sizeof (long))))
19247 exit (1);
19248 fprintf (f, "%ld\n", i);
19249 }
19250 else
19251 {
19252 unsigned long i = ulongval ();
19253 if (i != ((long) (sizeof (long))))
19254 exit (1);
19255 fprintf (f, "%lu\n", i);
19256 }
19257 exit (ferror (f) || fclose (f) != 0);
19258
19259 ;
19260 return 0;
19261}
19262_ACEOF
19263rm -f conftest$ac_exeext
19264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19265 (eval $ac_link) 2>&5
19266 ac_status=$?
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19270 (eval $ac_try) 2>&5
19271 ac_status=$?
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); }; }; then
19274 ac_cv_sizeof_long=`cat conftest.val`
19275else
19276 echo "$as_me: program exited with status $ac_status" >&5
19277echo "$as_me: failed program was:" >&5
19278sed 's/^/| /' conftest.$ac_ext >&5
19279
19280( exit $ac_status )
19281{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19282See \`config.log' for more details." >&5
19283echo "$as_me: error: cannot compute sizeof (long), 77
19284See \`config.log' for more details." >&2;}
19285 { (exit 1); exit 1; }; }
19286fi
ac1cb8d3 19287rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19288fi
19289fi
19290rm -f conftest.val
19291else
19292 ac_cv_sizeof_long=0
19293fi
19294fi
19295echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19296echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19297cat >>confdefs.h <<_ACEOF
19298#define SIZEOF_LONG $ac_cv_sizeof_long
19299_ACEOF
19300
19301
19302echo "$as_me:$LINENO: checking for size_t" >&5
19303echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19304if test "${ac_cv_type_size_t+set}" = set; then
19305 echo $ECHO_N "(cached) $ECHO_C" >&6
19306else
19307 cat >conftest.$ac_ext <<_ACEOF
19308/* confdefs.h. */
19309_ACEOF
19310cat confdefs.h >>conftest.$ac_ext
19311cat >>conftest.$ac_ext <<_ACEOF
19312/* end confdefs.h. */
19313$ac_includes_default
19314int
19315main ()
19316{
19317if ((size_t *) 0)
19318 return 0;
19319if (sizeof (size_t))
19320 return 0;
19321 ;
19322 return 0;
19323}
19324_ACEOF
19325rm -f conftest.$ac_objext
19326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19327 (eval $ac_compile) 2>conftest.er1
a848cd7e 19328 ac_status=$?
ac1cb8d3
VS
19329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
a848cd7e
SC
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } &&
fd5199d6 19334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19337 ac_status=$?
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19343 ac_status=$?
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; }; then
19346 ac_cv_type_size_t=yes
19347else
19348 echo "$as_me: failed program was:" >&5
19349sed 's/^/| /' conftest.$ac_ext >&5
19350
19351ac_cv_type_size_t=no
19352fi
ac1cb8d3 19353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19354fi
19355echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19356echo "${ECHO_T}$ac_cv_type_size_t" >&6
19357
19358echo "$as_me:$LINENO: checking size of size_t" >&5
19359echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19360if test "${ac_cv_sizeof_size_t+set}" = set; then
19361 echo $ECHO_N "(cached) $ECHO_C" >&6
19362else
19363 if test "$ac_cv_type_size_t" = yes; then
19364 # The cast to unsigned long works around a bug in the HP C Compiler
19365 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19366 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19367 # This bug is HP SR number 8606223364.
19368 if test "$cross_compiling" = yes; then
19369 # Depending upon the size, compute the lo and hi bounds.
19370cat >conftest.$ac_ext <<_ACEOF
19371/* confdefs.h. */
19372_ACEOF
19373cat confdefs.h >>conftest.$ac_ext
19374cat >>conftest.$ac_ext <<_ACEOF
19375/* end confdefs.h. */
19376$ac_includes_default
19377int
19378main ()
19379{
19380static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19381test_array [0] = 0
19382
19383 ;
19384 return 0;
19385}
19386_ACEOF
19387rm -f conftest.$ac_objext
19388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19389 (eval $ac_compile) 2>conftest.er1
a848cd7e 19390 ac_status=$?
ac1cb8d3
VS
19391 grep -v '^ *+' conftest.er1 >conftest.err
19392 rm -f conftest.er1
19393 cat conftest.err >&5
a848cd7e
SC
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); } &&
fd5199d6 19396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; } &&
19402 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19405 ac_status=$?
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; }; then
19408 ac_lo=0 ac_mid=0
19409 while :; do
19410 cat >conftest.$ac_ext <<_ACEOF
19411/* confdefs.h. */
19412_ACEOF
19413cat confdefs.h >>conftest.$ac_ext
19414cat >>conftest.$ac_ext <<_ACEOF
19415/* end confdefs.h. */
19416$ac_includes_default
19417int
19418main ()
19419{
19420static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19421test_array [0] = 0
19422
19423 ;
19424 return 0;
19425}
19426_ACEOF
19427rm -f conftest.$ac_objext
19428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19429 (eval $ac_compile) 2>conftest.er1
a848cd7e 19430 ac_status=$?
ac1cb8d3
VS
19431 grep -v '^ *+' conftest.er1 >conftest.err
19432 rm -f conftest.er1
19433 cat conftest.err >&5
a848cd7e
SC
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } &&
fd5199d6 19436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19439 ac_status=$?
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; } &&
19442 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19448 ac_hi=$ac_mid; break
19449else
19450 echo "$as_me: failed program was:" >&5
19451sed 's/^/| /' conftest.$ac_ext >&5
19452
19453ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19454 if test $ac_lo -le $ac_mid; then
19455 ac_lo= ac_hi=
19456 break
19457 fi
19458 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19459fi
ac1cb8d3 19460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19461 done
19462else
19463 echo "$as_me: failed program was:" >&5
19464sed 's/^/| /' conftest.$ac_ext >&5
19465
19466cat >conftest.$ac_ext <<_ACEOF
19467/* confdefs.h. */
19468_ACEOF
19469cat confdefs.h >>conftest.$ac_ext
19470cat >>conftest.$ac_ext <<_ACEOF
19471/* end confdefs.h. */
19472$ac_includes_default
19473int
19474main ()
19475{
19476static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19477test_array [0] = 0
19478
19479 ;
19480 return 0;
19481}
19482_ACEOF
19483rm -f conftest.$ac_objext
19484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19485 (eval $ac_compile) 2>conftest.er1
a848cd7e 19486 ac_status=$?
ac1cb8d3
VS
19487 grep -v '^ *+' conftest.er1 >conftest.err
19488 rm -f conftest.er1
19489 cat conftest.err >&5
a848cd7e
SC
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); } &&
fd5199d6 19492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19495 ac_status=$?
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; } &&
19498 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19501 ac_status=$?
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; }; then
19504 ac_hi=-1 ac_mid=-1
19505 while :; do
19506 cat >conftest.$ac_ext <<_ACEOF
19507/* confdefs.h. */
19508_ACEOF
19509cat confdefs.h >>conftest.$ac_ext
19510cat >>conftest.$ac_ext <<_ACEOF
19511/* end confdefs.h. */
19512$ac_includes_default
19513int
19514main ()
19515{
19516static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19517test_array [0] = 0
19518
19519 ;
19520 return 0;
19521}
19522_ACEOF
19523rm -f conftest.$ac_objext
19524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19525 (eval $ac_compile) 2>conftest.er1
a848cd7e 19526 ac_status=$?
ac1cb8d3
VS
19527 grep -v '^ *+' conftest.er1 >conftest.err
19528 rm -f conftest.er1
19529 cat conftest.err >&5
a848cd7e
SC
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); } &&
fd5199d6 19532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; } &&
19538 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540 (eval $ac_try) 2>&5
19541 ac_status=$?
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; }; then
19544 ac_lo=$ac_mid; break
19545else
19546 echo "$as_me: failed program was:" >&5
19547sed 's/^/| /' conftest.$ac_ext >&5
19548
19549ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19550 if test $ac_mid -le $ac_hi; then
19551 ac_lo= ac_hi=
19552 break
19553 fi
19554 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19555fi
ac1cb8d3 19556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19557 done
19558else
19559 echo "$as_me: failed program was:" >&5
19560sed 's/^/| /' conftest.$ac_ext >&5
19561
19562ac_lo= ac_hi=
19563fi
ac1cb8d3 19564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19565fi
ac1cb8d3 19566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19567# Binary search between lo and hi bounds.
19568while test "x$ac_lo" != "x$ac_hi"; do
19569 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19570 cat >conftest.$ac_ext <<_ACEOF
19571/* confdefs.h. */
19572_ACEOF
19573cat confdefs.h >>conftest.$ac_ext
19574cat >>conftest.$ac_ext <<_ACEOF
19575/* end confdefs.h. */
19576$ac_includes_default
19577int
19578main ()
19579{
19580static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19581test_array [0] = 0
19582
19583 ;
19584 return 0;
19585}
19586_ACEOF
19587rm -f conftest.$ac_objext
19588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19589 (eval $ac_compile) 2>conftest.er1
a848cd7e 19590 ac_status=$?
ac1cb8d3
VS
19591 grep -v '^ *+' conftest.er1 >conftest.err
19592 rm -f conftest.er1
19593 cat conftest.err >&5
a848cd7e
SC
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } &&
fd5199d6 19596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598 (eval $ac_try) 2>&5
19599 ac_status=$?
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; } &&
19602 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; }; then
19608 ac_hi=$ac_mid
19609else
19610 echo "$as_me: failed program was:" >&5
19611sed 's/^/| /' conftest.$ac_ext >&5
19612
19613ac_lo=`expr '(' $ac_mid ')' + 1`
19614fi
ac1cb8d3 19615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19616done
19617case $ac_lo in
19618?*) ac_cv_sizeof_size_t=$ac_lo;;
19619'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19620See \`config.log' for more details." >&5
19621echo "$as_me: error: cannot compute sizeof (size_t), 77
19622See \`config.log' for more details." >&2;}
19623 { (exit 1); exit 1; }; } ;;
19624esac
19625else
19626 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
19627 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19628echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19629 { (exit 1); exit 1; }; }
19630else
19631 cat >conftest.$ac_ext <<_ACEOF
19632/* confdefs.h. */
19633_ACEOF
19634cat confdefs.h >>conftest.$ac_ext
19635cat >>conftest.$ac_ext <<_ACEOF
19636/* end confdefs.h. */
19637$ac_includes_default
19638long longval () { return (long) (sizeof (size_t)); }
19639unsigned long ulongval () { return (long) (sizeof (size_t)); }
19640#include <stdio.h>
19641#include <stdlib.h>
19642int
19643main ()
19644{
19645
19646 FILE *f = fopen ("conftest.val", "w");
19647 if (! f)
19648 exit (1);
19649 if (((long) (sizeof (size_t))) < 0)
19650 {
19651 long i = longval ();
19652 if (i != ((long) (sizeof (size_t))))
19653 exit (1);
19654 fprintf (f, "%ld\n", i);
19655 }
19656 else
19657 {
19658 unsigned long i = ulongval ();
19659 if (i != ((long) (sizeof (size_t))))
19660 exit (1);
19661 fprintf (f, "%lu\n", i);
19662 }
19663 exit (ferror (f) || fclose (f) != 0);
19664
19665 ;
19666 return 0;
19667}
19668_ACEOF
19669rm -f conftest$ac_exeext
19670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19671 (eval $ac_link) 2>&5
19672 ac_status=$?
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676 (eval $ac_try) 2>&5
19677 ac_status=$?
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; }; then
19680 ac_cv_sizeof_size_t=`cat conftest.val`
19681else
19682 echo "$as_me: program exited with status $ac_status" >&5
19683echo "$as_me: failed program was:" >&5
19684sed 's/^/| /' conftest.$ac_ext >&5
19685
19686( exit $ac_status )
19687{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19688See \`config.log' for more details." >&5
19689echo "$as_me: error: cannot compute sizeof (size_t), 77
19690See \`config.log' for more details." >&2;}
19691 { (exit 1); exit 1; }; }
19692fi
ac1cb8d3 19693rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19694fi
19695fi
19696rm -f conftest.val
19697else
19698 ac_cv_sizeof_size_t=0
19699fi
19700fi
19701echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19702echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19703cat >>confdefs.h <<_ACEOF
19704#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19705_ACEOF
19706
19707
19708
19709case "${host}" in
19710 arm-*-linux* )
19711 echo "$as_me:$LINENO: checking for long long" >&5
19712echo $ECHO_N "checking for long long... $ECHO_C" >&6
19713if test "${ac_cv_type_long_long+set}" = set; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19715else
19716 cat >conftest.$ac_ext <<_ACEOF
19717/* confdefs.h. */
19718_ACEOF
19719cat confdefs.h >>conftest.$ac_ext
19720cat >>conftest.$ac_ext <<_ACEOF
19721/* end confdefs.h. */
19722$ac_includes_default
19723int
19724main ()
19725{
19726if ((long long *) 0)
19727 return 0;
19728if (sizeof (long long))
19729 return 0;
19730 ;
19731 return 0;
19732}
19733_ACEOF
19734rm -f conftest.$ac_objext
19735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19736 (eval $ac_compile) 2>conftest.er1
a848cd7e 19737 ac_status=$?
ac1cb8d3
VS
19738 grep -v '^ *+' conftest.er1 >conftest.err
19739 rm -f conftest.er1
19740 cat conftest.err >&5
a848cd7e
SC
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } &&
fd5199d6 19743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19746 ac_status=$?
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; } &&
19749 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
19755 ac_cv_type_long_long=yes
19756else
19757 echo "$as_me: failed program was:" >&5
19758sed 's/^/| /' conftest.$ac_ext >&5
19759
19760ac_cv_type_long_long=no
19761fi
ac1cb8d3 19762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19763fi
19764echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19765echo "${ECHO_T}$ac_cv_type_long_long" >&6
19766
19767echo "$as_me:$LINENO: checking size of long long" >&5
19768echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19769if test "${ac_cv_sizeof_long_long+set}" = set; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
19771else
19772 if test "$ac_cv_type_long_long" = yes; then
19773 # The cast to unsigned long works around a bug in the HP C Compiler
19774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19775 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19776 # This bug is HP SR number 8606223364.
19777 if test "$cross_compiling" = yes; then
19778 # Depending upon the size, compute the lo and hi bounds.
19779cat >conftest.$ac_ext <<_ACEOF
19780/* confdefs.h. */
19781_ACEOF
19782cat confdefs.h >>conftest.$ac_ext
19783cat >>conftest.$ac_ext <<_ACEOF
19784/* end confdefs.h. */
19785$ac_includes_default
19786int
19787main ()
19788{
19789static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19790test_array [0] = 0
19791
19792 ;
19793 return 0;
19794}
19795_ACEOF
19796rm -f conftest.$ac_objext
19797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19798 (eval $ac_compile) 2>conftest.er1
a848cd7e 19799 ac_status=$?
ac1cb8d3
VS
19800 grep -v '^ *+' conftest.er1 >conftest.err
19801 rm -f conftest.er1
19802 cat conftest.err >&5
a848cd7e
SC
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); } &&
fd5199d6 19805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19808 ac_status=$?
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; } &&
19811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19813 (eval $ac_try) 2>&5
19814 ac_status=$?
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; }; then
19817 ac_lo=0 ac_mid=0
19818 while :; do
19819 cat >conftest.$ac_ext <<_ACEOF
19820/* confdefs.h. */
19821_ACEOF
19822cat confdefs.h >>conftest.$ac_ext
19823cat >>conftest.$ac_ext <<_ACEOF
19824/* end confdefs.h. */
19825$ac_includes_default
19826int
19827main ()
19828{
19829static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19830test_array [0] = 0
19831
19832 ;
19833 return 0;
19834}
19835_ACEOF
19836rm -f conftest.$ac_objext
19837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19838 (eval $ac_compile) 2>conftest.er1
a848cd7e 19839 ac_status=$?
ac1cb8d3
VS
19840 grep -v '^ *+' conftest.er1 >conftest.err
19841 rm -f conftest.er1
19842 cat conftest.err >&5
a848cd7e
SC
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); } &&
fd5199d6 19845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19848 ac_status=$?
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
19851 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; }; then
19857 ac_hi=$ac_mid; break
19858else
19859 echo "$as_me: failed program was:" >&5
19860sed 's/^/| /' conftest.$ac_ext >&5
19861
19862ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19863 if test $ac_lo -le $ac_mid; then
19864 ac_lo= ac_hi=
19865 break
19866 fi
19867 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19868fi
ac1cb8d3 19869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19870 done
19871else
19872 echo "$as_me: failed program was:" >&5
19873sed 's/^/| /' conftest.$ac_ext >&5
19874
19875cat >conftest.$ac_ext <<_ACEOF
19876/* confdefs.h. */
19877_ACEOF
19878cat confdefs.h >>conftest.$ac_ext
19879cat >>conftest.$ac_ext <<_ACEOF
19880/* end confdefs.h. */
19881$ac_includes_default
19882int
19883main ()
19884{
19885static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19886test_array [0] = 0
19887
19888 ;
19889 return 0;
19890}
19891_ACEOF
19892rm -f conftest.$ac_objext
19893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19894 (eval $ac_compile) 2>conftest.er1
a848cd7e 19895 ac_status=$?
ac1cb8d3
VS
19896 grep -v '^ *+' conftest.er1 >conftest.err
19897 rm -f conftest.er1
19898 cat conftest.err >&5
a848cd7e
SC
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } &&
fd5199d6 19901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19903 (eval $ac_try) 2>&5
19904 ac_status=$?
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; } &&
19907 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19909 (eval $ac_try) 2>&5
19910 ac_status=$?
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; }; then
19913 ac_hi=-1 ac_mid=-1
19914 while :; do
19915 cat >conftest.$ac_ext <<_ACEOF
19916/* confdefs.h. */
19917_ACEOF
19918cat confdefs.h >>conftest.$ac_ext
19919cat >>conftest.$ac_ext <<_ACEOF
19920/* end confdefs.h. */
19921$ac_includes_default
19922int
19923main ()
19924{
19925static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19926test_array [0] = 0
19927
19928 ;
19929 return 0;
19930}
19931_ACEOF
19932rm -f conftest.$ac_objext
19933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19934 (eval $ac_compile) 2>conftest.er1
a848cd7e 19935 ac_status=$?
ac1cb8d3
VS
19936 grep -v '^ *+' conftest.er1 >conftest.err
19937 rm -f conftest.er1
19938 cat conftest.err >&5
a848cd7e
SC
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); } &&
fd5199d6 19941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19943 (eval $ac_try) 2>&5
19944 ac_status=$?
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); }; } &&
19947 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949 (eval $ac_try) 2>&5
19950 ac_status=$?
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); }; }; then
19953 ac_lo=$ac_mid; break
19954else
19955 echo "$as_me: failed program was:" >&5
19956sed 's/^/| /' conftest.$ac_ext >&5
19957
19958ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19959 if test $ac_mid -le $ac_hi; then
19960 ac_lo= ac_hi=
19961 break
19962 fi
19963 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19964fi
ac1cb8d3 19965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19966 done
19967else
19968 echo "$as_me: failed program was:" >&5
19969sed 's/^/| /' conftest.$ac_ext >&5
19970
19971ac_lo= ac_hi=
19972fi
ac1cb8d3 19973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19974fi
ac1cb8d3 19975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19976# Binary search between lo and hi bounds.
19977while test "x$ac_lo" != "x$ac_hi"; do
19978 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19979 cat >conftest.$ac_ext <<_ACEOF
19980/* confdefs.h. */
19981_ACEOF
19982cat confdefs.h >>conftest.$ac_ext
19983cat >>conftest.$ac_ext <<_ACEOF
19984/* end confdefs.h. */
19985$ac_includes_default
19986int
19987main ()
19988{
19989static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19990test_array [0] = 0
19991
19992 ;
19993 return 0;
19994}
19995_ACEOF
19996rm -f conftest.$ac_objext
19997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19998 (eval $ac_compile) 2>conftest.er1
a848cd7e 19999 ac_status=$?
ac1cb8d3
VS
20000 grep -v '^ *+' conftest.er1 >conftest.err
20001 rm -f conftest.er1
20002 cat conftest.err >&5
a848cd7e
SC
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); } &&
fd5199d6 20005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20007 (eval $ac_try) 2>&5
20008 ac_status=$?
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); }; } &&
20011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013 (eval $ac_try) 2>&5
20014 ac_status=$?
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; }; then
20017 ac_hi=$ac_mid
20018else
20019 echo "$as_me: failed program was:" >&5
20020sed 's/^/| /' conftest.$ac_ext >&5
20021
20022ac_lo=`expr '(' $ac_mid ')' + 1`
20023fi
ac1cb8d3 20024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20025done
20026case $ac_lo in
20027?*) ac_cv_sizeof_long_long=$ac_lo;;
20028'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20029See \`config.log' for more details." >&5
20030echo "$as_me: error: cannot compute sizeof (long long), 77
20031See \`config.log' for more details." >&2;}
20032 { (exit 1); exit 1; }; } ;;
20033esac
20034else
20035 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
20036 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20037echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20038 { (exit 1); exit 1; }; }
20039else
20040 cat >conftest.$ac_ext <<_ACEOF
20041/* confdefs.h. */
20042_ACEOF
20043cat confdefs.h >>conftest.$ac_ext
20044cat >>conftest.$ac_ext <<_ACEOF
20045/* end confdefs.h. */
20046$ac_includes_default
20047long longval () { return (long) (sizeof (long long)); }
20048unsigned long ulongval () { return (long) (sizeof (long long)); }
20049#include <stdio.h>
20050#include <stdlib.h>
20051int
20052main ()
20053{
20054
20055 FILE *f = fopen ("conftest.val", "w");
20056 if (! f)
20057 exit (1);
20058 if (((long) (sizeof (long long))) < 0)
20059 {
20060 long i = longval ();
20061 if (i != ((long) (sizeof (long long))))
20062 exit (1);
20063 fprintf (f, "%ld\n", i);
20064 }
20065 else
20066 {
20067 unsigned long i = ulongval ();
20068 if (i != ((long) (sizeof (long long))))
20069 exit (1);
20070 fprintf (f, "%lu\n", i);
20071 }
20072 exit (ferror (f) || fclose (f) != 0);
20073
20074 ;
20075 return 0;
20076}
20077_ACEOF
20078rm -f conftest$ac_exeext
20079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20080 (eval $ac_link) 2>&5
20081 ac_status=$?
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085 (eval $ac_try) 2>&5
20086 ac_status=$?
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; }; then
20089 ac_cv_sizeof_long_long=`cat conftest.val`
20090else
20091 echo "$as_me: program exited with status $ac_status" >&5
20092echo "$as_me: failed program was:" >&5
20093sed 's/^/| /' conftest.$ac_ext >&5
20094
20095( exit $ac_status )
20096{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20097See \`config.log' for more details." >&5
20098echo "$as_me: error: cannot compute sizeof (long long), 77
20099See \`config.log' for more details." >&2;}
20100 { (exit 1); exit 1; }; }
20101fi
ac1cb8d3 20102rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20103fi
20104fi
20105rm -f conftest.val
20106else
20107 ac_cv_sizeof_long_long=0
20108fi
20109fi
20110echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20111echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20112cat >>confdefs.h <<_ACEOF
20113#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20114_ACEOF
20115
20116
20117 ;;
20118 *-hp-hpux* )
20119 echo "$as_me:$LINENO: checking for long long" >&5
20120echo $ECHO_N "checking for long long... $ECHO_C" >&6
20121if test "${ac_cv_type_long_long+set}" = set; then
20122 echo $ECHO_N "(cached) $ECHO_C" >&6
20123else
20124 cat >conftest.$ac_ext <<_ACEOF
20125/* confdefs.h. */
20126_ACEOF
20127cat confdefs.h >>conftest.$ac_ext
20128cat >>conftest.$ac_ext <<_ACEOF
20129/* end confdefs.h. */
20130$ac_includes_default
20131int
20132main ()
20133{
20134if ((long long *) 0)
20135 return 0;
20136if (sizeof (long long))
20137 return 0;
20138 ;
20139 return 0;
20140}
20141_ACEOF
20142rm -f conftest.$ac_objext
20143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20144 (eval $ac_compile) 2>conftest.er1
a848cd7e 20145 ac_status=$?
ac1cb8d3
VS
20146 grep -v '^ *+' conftest.er1 >conftest.err
20147 rm -f conftest.er1
20148 cat conftest.err >&5
a848cd7e
SC
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } &&
fd5199d6 20151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153 (eval $ac_try) 2>&5
20154 ac_status=$?
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; } &&
20157 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20160 ac_status=$?
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; }; then
20163 ac_cv_type_long_long=yes
20164else
20165 echo "$as_me: failed program was:" >&5
20166sed 's/^/| /' conftest.$ac_ext >&5
20167
20168ac_cv_type_long_long=no
20169fi
ac1cb8d3 20170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20171fi
20172echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20173echo "${ECHO_T}$ac_cv_type_long_long" >&6
20174
20175echo "$as_me:$LINENO: checking size of long long" >&5
20176echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20177if test "${ac_cv_sizeof_long_long+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20179else
20180 if test "$ac_cv_type_long_long" = yes; then
20181 # The cast to unsigned long works around a bug in the HP C Compiler
20182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20184 # This bug is HP SR number 8606223364.
20185 if test "$cross_compiling" = yes; then
20186 # Depending upon the size, compute the lo and hi bounds.
20187cat >conftest.$ac_ext <<_ACEOF
20188/* confdefs.h. */
20189_ACEOF
20190cat confdefs.h >>conftest.$ac_ext
20191cat >>conftest.$ac_ext <<_ACEOF
20192/* end confdefs.h. */
20193$ac_includes_default
20194int
20195main ()
20196{
20197static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20198test_array [0] = 0
20199
20200 ;
20201 return 0;
20202}
20203_ACEOF
20204rm -f conftest.$ac_objext
20205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20206 (eval $ac_compile) 2>conftest.er1
a848cd7e 20207 ac_status=$?
ac1cb8d3
VS
20208 grep -v '^ *+' conftest.er1 >conftest.err
20209 rm -f conftest.er1
20210 cat conftest.err >&5
a848cd7e
SC
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } &&
fd5199d6 20213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20216 ac_status=$?
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; } &&
20219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221 (eval $ac_try) 2>&5
20222 ac_status=$?
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); }; }; then
20225 ac_lo=0 ac_mid=0
20226 while :; do
20227 cat >conftest.$ac_ext <<_ACEOF
20228/* confdefs.h. */
20229_ACEOF
20230cat confdefs.h >>conftest.$ac_ext
20231cat >>conftest.$ac_ext <<_ACEOF
20232/* end confdefs.h. */
20233$ac_includes_default
20234int
20235main ()
20236{
20237static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20238test_array [0] = 0
20239
20240 ;
20241 return 0;
20242}
20243_ACEOF
20244rm -f conftest.$ac_objext
20245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20246 (eval $ac_compile) 2>conftest.er1
a848cd7e 20247 ac_status=$?
ac1cb8d3
VS
20248 grep -v '^ *+' conftest.er1 >conftest.err
20249 rm -f conftest.er1
20250 cat conftest.err >&5
a848cd7e
SC
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); } &&
fd5199d6 20253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255 (eval $ac_try) 2>&5
20256 ac_status=$?
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; } &&
20259 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261 (eval $ac_try) 2>&5
20262 ac_status=$?
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; }; then
20265 ac_hi=$ac_mid; break
20266else
20267 echo "$as_me: failed program was:" >&5
20268sed 's/^/| /' conftest.$ac_ext >&5
20269
20270ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20271 if test $ac_lo -le $ac_mid; then
20272 ac_lo= ac_hi=
20273 break
20274 fi
20275 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20276fi
ac1cb8d3 20277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20278 done
20279else
20280 echo "$as_me: failed program was:" >&5
20281sed 's/^/| /' conftest.$ac_ext >&5
20282
20283cat >conftest.$ac_ext <<_ACEOF
20284/* confdefs.h. */
20285_ACEOF
20286cat confdefs.h >>conftest.$ac_ext
20287cat >>conftest.$ac_ext <<_ACEOF
20288/* end confdefs.h. */
20289$ac_includes_default
20290int
20291main ()
20292{
20293static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20294test_array [0] = 0
20295
20296 ;
20297 return 0;
20298}
20299_ACEOF
20300rm -f conftest.$ac_objext
20301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20302 (eval $ac_compile) 2>conftest.er1
a848cd7e 20303 ac_status=$?
ac1cb8d3
VS
20304 grep -v '^ *+' conftest.er1 >conftest.err
20305 rm -f conftest.er1
20306 cat conftest.err >&5
a848cd7e
SC
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } &&
fd5199d6 20309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311 (eval $ac_try) 2>&5
20312 ac_status=$?
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; } &&
20315 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317 (eval $ac_try) 2>&5
20318 ac_status=$?
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; }; then
20321 ac_hi=-1 ac_mid=-1
20322 while :; do
20323 cat >conftest.$ac_ext <<_ACEOF
20324/* confdefs.h. */
20325_ACEOF
20326cat confdefs.h >>conftest.$ac_ext
20327cat >>conftest.$ac_ext <<_ACEOF
20328/* end confdefs.h. */
20329$ac_includes_default
20330int
20331main ()
20332{
20333static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20334test_array [0] = 0
20335
20336 ;
20337 return 0;
20338}
20339_ACEOF
20340rm -f conftest.$ac_objext
20341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20342 (eval $ac_compile) 2>conftest.er1
a848cd7e 20343 ac_status=$?
ac1cb8d3
VS
20344 grep -v '^ *+' conftest.er1 >conftest.err
20345 rm -f conftest.er1
20346 cat conftest.err >&5
a848cd7e
SC
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); } &&
fd5199d6 20349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20351 (eval $ac_try) 2>&5
20352 ac_status=$?
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; } &&
20355 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20357 (eval $ac_try) 2>&5
20358 ac_status=$?
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); }; }; then
20361 ac_lo=$ac_mid; break
20362else
20363 echo "$as_me: failed program was:" >&5
20364sed 's/^/| /' conftest.$ac_ext >&5
20365
20366ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20367 if test $ac_mid -le $ac_hi; then
20368 ac_lo= ac_hi=
20369 break
20370 fi
20371 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20372fi
ac1cb8d3 20373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20374 done
20375else
20376 echo "$as_me: failed program was:" >&5
20377sed 's/^/| /' conftest.$ac_ext >&5
20378
20379ac_lo= ac_hi=
20380fi
ac1cb8d3 20381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20382fi
ac1cb8d3 20383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20384# Binary search between lo and hi bounds.
20385while test "x$ac_lo" != "x$ac_hi"; do
20386 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20387 cat >conftest.$ac_ext <<_ACEOF
20388/* confdefs.h. */
20389_ACEOF
20390cat confdefs.h >>conftest.$ac_ext
20391cat >>conftest.$ac_ext <<_ACEOF
20392/* end confdefs.h. */
20393$ac_includes_default
20394int
20395main ()
20396{
20397static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20398test_array [0] = 0
20399
20400 ;
20401 return 0;
20402}
20403_ACEOF
20404rm -f conftest.$ac_objext
20405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20406 (eval $ac_compile) 2>conftest.er1
a848cd7e 20407 ac_status=$?
ac1cb8d3
VS
20408 grep -v '^ *+' conftest.er1 >conftest.err
20409 rm -f conftest.er1
20410 cat conftest.err >&5
a848cd7e
SC
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } &&
fd5199d6 20413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415 (eval $ac_try) 2>&5
20416 ac_status=$?
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); }; } &&
20419 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421 (eval $ac_try) 2>&5
20422 ac_status=$?
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); }; }; then
20425 ac_hi=$ac_mid
20426else
20427 echo "$as_me: failed program was:" >&5
20428sed 's/^/| /' conftest.$ac_ext >&5
20429
20430ac_lo=`expr '(' $ac_mid ')' + 1`
20431fi
ac1cb8d3 20432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20433done
20434case $ac_lo in
20435?*) ac_cv_sizeof_long_long=$ac_lo;;
20436'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20437See \`config.log' for more details." >&5
20438echo "$as_me: error: cannot compute sizeof (long long), 77
20439See \`config.log' for more details." >&2;}
20440 { (exit 1); exit 1; }; } ;;
20441esac
20442else
20443 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
20444 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20445echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20446 { (exit 1); exit 1; }; }
20447else
20448 cat >conftest.$ac_ext <<_ACEOF
20449/* confdefs.h. */
20450_ACEOF
20451cat confdefs.h >>conftest.$ac_ext
20452cat >>conftest.$ac_ext <<_ACEOF
20453/* end confdefs.h. */
20454$ac_includes_default
20455long longval () { return (long) (sizeof (long long)); }
20456unsigned long ulongval () { return (long) (sizeof (long long)); }
20457#include <stdio.h>
20458#include <stdlib.h>
20459int
20460main ()
20461{
20462
20463 FILE *f = fopen ("conftest.val", "w");
20464 if (! f)
20465 exit (1);
20466 if (((long) (sizeof (long long))) < 0)
20467 {
20468 long i = longval ();
20469 if (i != ((long) (sizeof (long long))))
20470 exit (1);
20471 fprintf (f, "%ld\n", i);
20472 }
20473 else
20474 {
20475 unsigned long i = ulongval ();
20476 if (i != ((long) (sizeof (long long))))
20477 exit (1);
20478 fprintf (f, "%lu\n", i);
20479 }
20480 exit (ferror (f) || fclose (f) != 0);
20481
20482 ;
20483 return 0;
20484}
20485_ACEOF
20486rm -f conftest$ac_exeext
20487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20488 (eval $ac_link) 2>&5
20489 ac_status=$?
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20493 (eval $ac_try) 2>&5
20494 ac_status=$?
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); }; }; then
20497 ac_cv_sizeof_long_long=`cat conftest.val`
20498else
20499 echo "$as_me: program exited with status $ac_status" >&5
20500echo "$as_me: failed program was:" >&5
20501sed 's/^/| /' conftest.$ac_ext >&5
20502
20503( exit $ac_status )
20504{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20505See \`config.log' for more details." >&5
20506echo "$as_me: error: cannot compute sizeof (long long), 77
20507See \`config.log' for more details." >&2;}
20508 { (exit 1); exit 1; }; }
20509fi
ac1cb8d3 20510rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20511fi
20512fi
20513rm -f conftest.val
20514else
20515 ac_cv_sizeof_long_long=0
20516fi
20517fi
20518echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20519echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20520cat >>confdefs.h <<_ACEOF
20521#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20522_ACEOF
20523
20524
20525 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20526 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20527 fi
20528 ;;
20529 * )
20530 echo "$as_me:$LINENO: checking for long long" >&5
20531echo $ECHO_N "checking for long long... $ECHO_C" >&6
20532if test "${ac_cv_type_long_long+set}" = set; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20534else
20535 cat >conftest.$ac_ext <<_ACEOF
20536/* confdefs.h. */
20537_ACEOF
20538cat confdefs.h >>conftest.$ac_ext
20539cat >>conftest.$ac_ext <<_ACEOF
20540/* end confdefs.h. */
20541$ac_includes_default
20542int
20543main ()
20544{
20545if ((long long *) 0)
20546 return 0;
20547if (sizeof (long long))
20548 return 0;
20549 ;
20550 return 0;
20551}
20552_ACEOF
20553rm -f conftest.$ac_objext
20554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20555 (eval $ac_compile) 2>conftest.er1
a848cd7e 20556 ac_status=$?
ac1cb8d3
VS
20557 grep -v '^ *+' conftest.er1 >conftest.err
20558 rm -f conftest.er1
20559 cat conftest.err >&5
a848cd7e
SC
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); } &&
fd5199d6 20562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; } &&
20568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; }; then
20574 ac_cv_type_long_long=yes
20575else
20576 echo "$as_me: failed program was:" >&5
20577sed 's/^/| /' conftest.$ac_ext >&5
20578
20579ac_cv_type_long_long=no
20580fi
ac1cb8d3 20581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20582fi
20583echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20584echo "${ECHO_T}$ac_cv_type_long_long" >&6
20585
20586echo "$as_me:$LINENO: checking size of long long" >&5
20587echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20588if test "${ac_cv_sizeof_long_long+set}" = set; then
20589 echo $ECHO_N "(cached) $ECHO_C" >&6
20590else
20591 if test "$ac_cv_type_long_long" = yes; then
20592 # The cast to unsigned long works around a bug in the HP C Compiler
20593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20595 # This bug is HP SR number 8606223364.
20596 if test "$cross_compiling" = yes; then
20597 # Depending upon the size, compute the lo and hi bounds.
20598cat >conftest.$ac_ext <<_ACEOF
20599/* confdefs.h. */
20600_ACEOF
20601cat confdefs.h >>conftest.$ac_ext
20602cat >>conftest.$ac_ext <<_ACEOF
20603/* end confdefs.h. */
20604$ac_includes_default
20605int
20606main ()
20607{
20608static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20609test_array [0] = 0
20610
20611 ;
20612 return 0;
20613}
20614_ACEOF
20615rm -f conftest.$ac_objext
20616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20617 (eval $ac_compile) 2>conftest.er1
a848cd7e 20618 ac_status=$?
ac1cb8d3
VS
20619 grep -v '^ *+' conftest.er1 >conftest.err
20620 rm -f conftest.er1
20621 cat conftest.err >&5
a848cd7e
SC
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } &&
fd5199d6 20624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626 (eval $ac_try) 2>&5
20627 ac_status=$?
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; } &&
20630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632 (eval $ac_try) 2>&5
20633 ac_status=$?
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; }; then
20636 ac_lo=0 ac_mid=0
20637 while :; do
20638 cat >conftest.$ac_ext <<_ACEOF
20639/* confdefs.h. */
20640_ACEOF
20641cat confdefs.h >>conftest.$ac_ext
20642cat >>conftest.$ac_ext <<_ACEOF
20643/* end confdefs.h. */
20644$ac_includes_default
20645int
20646main ()
20647{
20648static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20649test_array [0] = 0
20650
20651 ;
20652 return 0;
20653}
20654_ACEOF
20655rm -f conftest.$ac_objext
20656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20657 (eval $ac_compile) 2>conftest.er1
a848cd7e 20658 ac_status=$?
ac1cb8d3
VS
20659 grep -v '^ *+' conftest.er1 >conftest.err
20660 rm -f conftest.er1
20661 cat conftest.err >&5
a848cd7e
SC
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); } &&
fd5199d6 20664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20666 (eval $ac_try) 2>&5
20667 ac_status=$?
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; } &&
20670 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20672 (eval $ac_try) 2>&5
20673 ac_status=$?
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); }; }; then
20676 ac_hi=$ac_mid; break
20677else
20678 echo "$as_me: failed program was:" >&5
20679sed 's/^/| /' conftest.$ac_ext >&5
20680
20681ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20682 if test $ac_lo -le $ac_mid; then
20683 ac_lo= ac_hi=
20684 break
20685 fi
20686 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20687fi
ac1cb8d3 20688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20689 done
20690else
20691 echo "$as_me: failed program was:" >&5
20692sed 's/^/| /' conftest.$ac_ext >&5
20693
20694cat >conftest.$ac_ext <<_ACEOF
20695/* confdefs.h. */
20696_ACEOF
20697cat confdefs.h >>conftest.$ac_ext
20698cat >>conftest.$ac_ext <<_ACEOF
20699/* end confdefs.h. */
20700$ac_includes_default
20701int
20702main ()
20703{
20704static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20705test_array [0] = 0
20706
20707 ;
20708 return 0;
20709}
20710_ACEOF
20711rm -f conftest.$ac_objext
20712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20713 (eval $ac_compile) 2>conftest.er1
a848cd7e 20714 ac_status=$?
ac1cb8d3
VS
20715 grep -v '^ *+' conftest.er1 >conftest.err
20716 rm -f conftest.er1
20717 cat conftest.err >&5
a848cd7e
SC
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); } &&
fd5199d6 20720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20722 (eval $ac_try) 2>&5
20723 ac_status=$?
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 (exit $ac_status); }; } &&
20726 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20728 (eval $ac_try) 2>&5
20729 ac_status=$?
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); }; }; then
20732 ac_hi=-1 ac_mid=-1
20733 while :; do
20734 cat >conftest.$ac_ext <<_ACEOF
20735/* confdefs.h. */
20736_ACEOF
20737cat confdefs.h >>conftest.$ac_ext
20738cat >>conftest.$ac_ext <<_ACEOF
20739/* end confdefs.h. */
20740$ac_includes_default
20741int
20742main ()
20743{
20744static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20745test_array [0] = 0
20746
20747 ;
20748 return 0;
20749}
20750_ACEOF
20751rm -f conftest.$ac_objext
20752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20753 (eval $ac_compile) 2>conftest.er1
a848cd7e 20754 ac_status=$?
ac1cb8d3
VS
20755 grep -v '^ *+' conftest.er1 >conftest.err
20756 rm -f conftest.er1
20757 cat conftest.err >&5
a848cd7e
SC
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } &&
fd5199d6 20760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20762 (eval $ac_try) 2>&5
20763 ac_status=$?
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; } &&
20766 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20768 (eval $ac_try) 2>&5
20769 ac_status=$?
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); }; }; then
20772 ac_lo=$ac_mid; break
20773else
20774 echo "$as_me: failed program was:" >&5
20775sed 's/^/| /' conftest.$ac_ext >&5
20776
20777ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20778 if test $ac_mid -le $ac_hi; then
20779 ac_lo= ac_hi=
20780 break
20781 fi
20782 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20783fi
ac1cb8d3 20784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20785 done
20786else
20787 echo "$as_me: failed program was:" >&5
20788sed 's/^/| /' conftest.$ac_ext >&5
20789
20790ac_lo= ac_hi=
20791fi
ac1cb8d3 20792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20793fi
ac1cb8d3 20794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20795# Binary search between lo and hi bounds.
20796while test "x$ac_lo" != "x$ac_hi"; do
20797 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20798 cat >conftest.$ac_ext <<_ACEOF
20799/* confdefs.h. */
20800_ACEOF
20801cat confdefs.h >>conftest.$ac_ext
20802cat >>conftest.$ac_ext <<_ACEOF
20803/* end confdefs.h. */
20804$ac_includes_default
20805int
20806main ()
20807{
20808static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20809test_array [0] = 0
20810
20811 ;
20812 return 0;
20813}
20814_ACEOF
20815rm -f conftest.$ac_objext
20816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20817 (eval $ac_compile) 2>conftest.er1
a848cd7e 20818 ac_status=$?
ac1cb8d3
VS
20819 grep -v '^ *+' conftest.er1 >conftest.err
20820 rm -f conftest.er1
20821 cat conftest.err >&5
a848cd7e
SC
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } &&
fd5199d6 20824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826 (eval $ac_try) 2>&5
20827 ac_status=$?
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; } &&
20830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832 (eval $ac_try) 2>&5
20833 ac_status=$?
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); }; }; then
20836 ac_hi=$ac_mid
20837else
20838 echo "$as_me: failed program was:" >&5
20839sed 's/^/| /' conftest.$ac_ext >&5
20840
20841ac_lo=`expr '(' $ac_mid ')' + 1`
20842fi
ac1cb8d3 20843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20844done
20845case $ac_lo in
20846?*) ac_cv_sizeof_long_long=$ac_lo;;
20847'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20848See \`config.log' for more details." >&5
20849echo "$as_me: error: cannot compute sizeof (long long), 77
20850See \`config.log' for more details." >&2;}
20851 { (exit 1); exit 1; }; } ;;
20852esac
20853else
20854 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
20855 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20856echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20857 { (exit 1); exit 1; }; }
20858else
20859 cat >conftest.$ac_ext <<_ACEOF
20860/* confdefs.h. */
20861_ACEOF
20862cat confdefs.h >>conftest.$ac_ext
20863cat >>conftest.$ac_ext <<_ACEOF
20864/* end confdefs.h. */
20865$ac_includes_default
20866long longval () { return (long) (sizeof (long long)); }
20867unsigned long ulongval () { return (long) (sizeof (long long)); }
20868#include <stdio.h>
20869#include <stdlib.h>
20870int
20871main ()
20872{
20873
20874 FILE *f = fopen ("conftest.val", "w");
20875 if (! f)
20876 exit (1);
20877 if (((long) (sizeof (long long))) < 0)
20878 {
20879 long i = longval ();
20880 if (i != ((long) (sizeof (long long))))
20881 exit (1);
20882 fprintf (f, "%ld\n", i);
20883 }
20884 else
20885 {
20886 unsigned long i = ulongval ();
20887 if (i != ((long) (sizeof (long long))))
20888 exit (1);
20889 fprintf (f, "%lu\n", i);
20890 }
20891 exit (ferror (f) || fclose (f) != 0);
20892
20893 ;
20894 return 0;
20895}
20896_ACEOF
20897rm -f conftest$ac_exeext
20898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20899 (eval $ac_link) 2>&5
20900 ac_status=$?
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20905 ac_status=$?
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; }; then
20908 ac_cv_sizeof_long_long=`cat conftest.val`
20909else
20910 echo "$as_me: program exited with status $ac_status" >&5
20911echo "$as_me: failed program was:" >&5
20912sed 's/^/| /' conftest.$ac_ext >&5
20913
20914( exit $ac_status )
20915{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20916See \`config.log' for more details." >&5
20917echo "$as_me: error: cannot compute sizeof (long long), 77
20918See \`config.log' for more details." >&2;}
20919 { (exit 1); exit 1; }; }
20920fi
ac1cb8d3 20921rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20922fi
20923fi
20924rm -f conftest.val
20925else
20926 ac_cv_sizeof_long_long=0
20927fi
20928fi
20929echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20930echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20931cat >>confdefs.h <<_ACEOF
20932#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20933_ACEOF
20934
20935
20936esac
20937
238ecede
MW
20938echo "$as_me:$LINENO: checking for wchar_t" >&5
20939echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20940if test "${ac_cv_type_wchar_t+set}" = set; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20942else
20943 cat >conftest.$ac_ext <<_ACEOF
20944/* confdefs.h. */
20945_ACEOF
20946cat confdefs.h >>conftest.$ac_ext
20947cat >>conftest.$ac_ext <<_ACEOF
20948/* end confdefs.h. */
20949
83d8eb47
MW
20950 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20951 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20952 # error "fake wchar_t"
20953 #endif
20954 #ifdef HAVE_WCHAR_H
20955 # ifdef __CYGWIN__
20956 # include <stddef.h>
20957 # endif
20958 # include <wchar.h>
20959 #endif
20960 #ifdef HAVE_STDLIB_H
20961 # include <stdlib.h>
20962 #endif
20963 #include <stdio.h>
20964
20965
20966
20967int
20968main ()
20969{
20970if ((wchar_t *) 0)
20971 return 0;
20972if (sizeof (wchar_t))
20973 return 0;
20974 ;
20975 return 0;
20976}
20977_ACEOF
20978rm -f conftest.$ac_objext
20979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20980 (eval $ac_compile) 2>conftest.er1
20981 ac_status=$?
20982 grep -v '^ *+' conftest.er1 >conftest.err
20983 rm -f conftest.er1
20984 cat conftest.err >&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } &&
fd5199d6 20987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989 (eval $ac_try) 2>&5
20990 ac_status=$?
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; } &&
20993 { ac_try='test -s conftest.$ac_objext'
20994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995 (eval $ac_try) 2>&5
20996 ac_status=$?
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; }; then
20999 ac_cv_type_wchar_t=yes
21000else
21001 echo "$as_me: failed program was:" >&5
21002sed 's/^/| /' conftest.$ac_ext >&5
21003
21004ac_cv_type_wchar_t=no
21005fi
21006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21007fi
21008echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21009echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21010
a848cd7e
SC
21011echo "$as_me:$LINENO: checking size of wchar_t" >&5
21012echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21013if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21014 echo $ECHO_N "(cached) $ECHO_C" >&6
21015else
238ecede
MW
21016 if test "$ac_cv_type_wchar_t" = yes; then
21017 # The cast to unsigned long works around a bug in the HP C Compiler
21018 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21019 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21020 # This bug is HP SR number 8606223364.
21021 if test "$cross_compiling" = yes; then
21022 # Depending upon the size, compute the lo and hi bounds.
21023cat >conftest.$ac_ext <<_ACEOF
21024/* confdefs.h. */
21025_ACEOF
21026cat confdefs.h >>conftest.$ac_ext
21027cat >>conftest.$ac_ext <<_ACEOF
21028/* end confdefs.h. */
21029
83d8eb47
MW
21030 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21031 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21032 # error "fake wchar_t"
21033 #endif
21034 #ifdef HAVE_WCHAR_H
21035 # ifdef __CYGWIN__
21036 # include <stddef.h>
21037 # endif
21038 # include <wchar.h>
21039 #endif
21040 #ifdef HAVE_STDLIB_H
21041 # include <stdlib.h>
21042 #endif
21043 #include <stdio.h>
21044
21045
21046
21047int
21048main ()
21049{
21050static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21051test_array [0] = 0
21052
21053 ;
21054 return 0;
21055}
21056_ACEOF
21057rm -f conftest.$ac_objext
21058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21059 (eval $ac_compile) 2>conftest.er1
21060 ac_status=$?
21061 grep -v '^ *+' conftest.er1 >conftest.err
21062 rm -f conftest.er1
21063 cat conftest.err >&5
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); } &&
fd5199d6 21066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
21067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21068 (eval $ac_try) 2>&5
21069 ac_status=$?
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); }; } &&
21072 { ac_try='test -s conftest.$ac_objext'
21073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074 (eval $ac_try) 2>&5
21075 ac_status=$?
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); }; }; then
21078 ac_lo=0 ac_mid=0
21079 while :; do
21080 cat >conftest.$ac_ext <<_ACEOF
21081/* confdefs.h. */
21082_ACEOF
21083cat confdefs.h >>conftest.$ac_ext
21084cat >>conftest.$ac_ext <<_ACEOF
21085/* end confdefs.h. */
21086
83d8eb47
MW
21087 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21088 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21089 # error "fake wchar_t"
21090 #endif
21091 #ifdef HAVE_WCHAR_H
21092 # ifdef __CYGWIN__
21093 # include <stddef.h>
21094 # endif
21095 # include <wchar.h>
21096 #endif
21097 #ifdef HAVE_STDLIB_H
21098 # include <stdlib.h>
21099 #endif
21100 #include <stdio.h>
21101
21102
21103
21104int
21105main ()
21106{
21107static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21108test_array [0] = 0
21109
21110 ;
21111 return 0;
21112}
21113_ACEOF
21114rm -f conftest.$ac_objext
21115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21116 (eval $ac_compile) 2>conftest.er1
21117 ac_status=$?
21118 grep -v '^ *+' conftest.er1 >conftest.err
21119 rm -f conftest.er1
21120 cat conftest.err >&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); } &&
fd5199d6 21123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
21124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125 (eval $ac_try) 2>&5
21126 ac_status=$?
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); }; } &&
21129 { ac_try='test -s conftest.$ac_objext'
21130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131 (eval $ac_try) 2>&5
21132 ac_status=$?
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; }; then
21135 ac_hi=$ac_mid; break
21136else
21137 echo "$as_me: failed program was:" >&5
21138sed 's/^/| /' conftest.$ac_ext >&5
21139
21140ac_lo=`expr $ac_mid + 1`
21141 if test $ac_lo -le $ac_mid; then
21142 ac_lo= ac_hi=
21143 break
21144 fi
21145 ac_mid=`expr 2 '*' $ac_mid + 1`
21146fi
21147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21148 done
21149else
21150 echo "$as_me: failed program was:" >&5
21151sed 's/^/| /' conftest.$ac_ext >&5
21152
21153cat >conftest.$ac_ext <<_ACEOF
21154/* confdefs.h. */
21155_ACEOF
21156cat confdefs.h >>conftest.$ac_ext
21157cat >>conftest.$ac_ext <<_ACEOF
21158/* end confdefs.h. */
21159
83d8eb47
MW
21160 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21161 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21162 # error "fake wchar_t"
21163 #endif
21164 #ifdef HAVE_WCHAR_H
21165 # ifdef __CYGWIN__
21166 # include <stddef.h>
21167 # endif
21168 # include <wchar.h>
21169 #endif
21170 #ifdef HAVE_STDLIB_H
21171 # include <stdlib.h>
21172 #endif
21173 #include <stdio.h>
21174
21175
21176
21177int
21178main ()
21179{
21180static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21181test_array [0] = 0
21182
21183 ;
21184 return 0;
21185}
21186_ACEOF
21187rm -f conftest.$ac_objext
21188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21189 (eval $ac_compile) 2>conftest.er1
21190 ac_status=$?
21191 grep -v '^ *+' conftest.er1 >conftest.err
21192 rm -f conftest.er1
21193 cat conftest.err >&5
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); } &&
fd5199d6 21196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
21197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198 (eval $ac_try) 2>&5
21199 ac_status=$?
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; } &&
21202 { ac_try='test -s conftest.$ac_objext'
21203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204 (eval $ac_try) 2>&5
21205 ac_status=$?
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); }; }; then
21208 ac_hi=-1 ac_mid=-1
21209 while :; do
21210 cat >conftest.$ac_ext <<_ACEOF
21211/* confdefs.h. */
21212_ACEOF
21213cat confdefs.h >>conftest.$ac_ext
21214cat >>conftest.$ac_ext <<_ACEOF
21215/* end confdefs.h. */
21216
83d8eb47
MW
21217 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21218 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21219 # error "fake wchar_t"
21220 #endif
21221 #ifdef HAVE_WCHAR_H
21222 # ifdef __CYGWIN__
21223 # include <stddef.h>
21224 # endif
21225 # include <wchar.h>
21226 #endif
21227 #ifdef HAVE_STDLIB_H
21228 # include <stdlib.h>
21229 #endif
21230 #include <stdio.h>
21231
21232
21233
21234int
21235main ()
21236{
21237static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21238test_array [0] = 0
21239
21240 ;
21241 return 0;
21242}
21243_ACEOF
21244rm -f conftest.$ac_objext
21245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21246 (eval $ac_compile) 2>conftest.er1
21247 ac_status=$?
21248 grep -v '^ *+' conftest.er1 >conftest.err
21249 rm -f conftest.er1
21250 cat conftest.err >&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } &&
fd5199d6 21253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
21254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255 (eval $ac_try) 2>&5
21256 ac_status=$?
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; } &&
21259 { ac_try='test -s conftest.$ac_objext'
21260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261 (eval $ac_try) 2>&5
21262 ac_status=$?
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); }; }; then
21265 ac_lo=$ac_mid; break
21266else
21267 echo "$as_me: failed program was:" >&5
21268sed 's/^/| /' conftest.$ac_ext >&5
21269
21270ac_hi=`expr '(' $ac_mid ')' - 1`
21271 if test $ac_mid -le $ac_hi; then
21272 ac_lo= ac_hi=
21273 break
21274 fi
21275 ac_mid=`expr 2 '*' $ac_mid`
21276fi
21277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21278 done
21279else
21280 echo "$as_me: failed program was:" >&5
21281sed 's/^/| /' conftest.$ac_ext >&5
21282
21283ac_lo= ac_hi=
21284fi
21285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21286fi
21287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21288# Binary search between lo and hi bounds.
21289while test "x$ac_lo" != "x$ac_hi"; do
21290 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21291 cat >conftest.$ac_ext <<_ACEOF
21292/* confdefs.h. */
21293_ACEOF
21294cat confdefs.h >>conftest.$ac_ext
21295cat >>conftest.$ac_ext <<_ACEOF
21296/* end confdefs.h. */
21297
83d8eb47
MW
21298 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21299 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21300 # error "fake wchar_t"
21301 #endif
21302 #ifdef HAVE_WCHAR_H
21303 # ifdef __CYGWIN__
21304 # include <stddef.h>
21305 # endif
21306 # include <wchar.h>
21307 #endif
21308 #ifdef HAVE_STDLIB_H
21309 # include <stdlib.h>
21310 #endif
21311 #include <stdio.h>
a848cd7e 21312
a848cd7e 21313
a848cd7e 21314
238ecede
MW
21315int
21316main ()
21317{
21318static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21319test_array [0] = 0
a848cd7e 21320
238ecede
MW
21321 ;
21322 return 0;
21323}
21324_ACEOF
21325rm -f conftest.$ac_objext
21326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21327 (eval $ac_compile) 2>conftest.er1
21328 ac_status=$?
21329 grep -v '^ *+' conftest.er1 >conftest.err
21330 rm -f conftest.er1
21331 cat conftest.err >&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); } &&
fd5199d6 21334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
21335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21336 (eval $ac_try) 2>&5
21337 ac_status=$?
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); }; } &&
21340 { ac_try='test -s conftest.$ac_objext'
21341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342 (eval $ac_try) 2>&5
21343 ac_status=$?
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; }; then
21346 ac_hi=$ac_mid
21347else
21348 echo "$as_me: failed program was:" >&5
21349sed 's/^/| /' conftest.$ac_ext >&5
21350
21351ac_lo=`expr '(' $ac_mid ')' + 1`
21352fi
21353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21354done
21355case $ac_lo in
21356?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21357'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21358See \`config.log' for more details." >&5
21359echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21360See \`config.log' for more details." >&2;}
21361 { (exit 1); exit 1; }; } ;;
21362esac
21363else
21364 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
21365 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21366echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 21367 { (exit 1); exit 1; }; }
a848cd7e
SC
21368else
21369 cat >conftest.$ac_ext <<_ACEOF
21370/* confdefs.h. */
21371_ACEOF
21372cat confdefs.h >>conftest.$ac_ext
21373cat >>conftest.$ac_ext <<_ACEOF
21374/* end confdefs.h. */
21375
83d8eb47
MW
21376 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21377 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21378 # error "fake wchar_t"
21379 #endif
21380 #ifdef HAVE_WCHAR_H
21381 # ifdef __CYGWIN__
21382 # include <stddef.h>
21383 # endif
21384 # include <wchar.h>
21385 #endif
21386 #ifdef HAVE_STDLIB_H
21387 # include <stdlib.h>
21388 #endif
21389 #include <stdio.h>
21390
21391
21392
21393long longval () { return (long) (sizeof (wchar_t)); }
21394unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21395#include <stdio.h>
21396#include <stdlib.h>
21397int
21398main ()
21399{
a848cd7e 21400
238ecede
MW
21401 FILE *f = fopen ("conftest.val", "w");
21402 if (! f)
21403 exit (1);
21404 if (((long) (sizeof (wchar_t))) < 0)
21405 {
21406 long i = longval ();
21407 if (i != ((long) (sizeof (wchar_t))))
21408 exit (1);
21409 fprintf (f, "%ld\n", i);
21410 }
21411 else
21412 {
21413 unsigned long i = ulongval ();
21414 if (i != ((long) (sizeof (wchar_t))))
21415 exit (1);
21416 fprintf (f, "%lu\n", i);
21417 }
21418 exit (ferror (f) || fclose (f) != 0);
21419
21420 ;
21421 return 0;
21422}
a848cd7e
SC
21423_ACEOF
21424rm -f conftest$ac_exeext
21425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21426 (eval $ac_link) 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21432 ac_status=$?
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; }; then
238ecede 21435 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21436else
21437 echo "$as_me: program exited with status $ac_status" >&5
21438echo "$as_me: failed program was:" >&5
21439sed 's/^/| /' conftest.$ac_ext >&5
21440
21441( exit $ac_status )
238ecede
MW
21442{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21443See \`config.log' for more details." >&5
21444echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21445See \`config.log' for more details." >&2;}
21446 { (exit 1); exit 1; }; }
a848cd7e 21447fi
ac1cb8d3 21448rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21449fi
a848cd7e 21450fi
238ecede
MW
21451rm -f conftest.val
21452else
21453 ac_cv_sizeof_wchar_t=0
21454fi
21455fi
21456echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21457echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21458cat >>confdefs.h <<_ACEOF
238ecede 21459#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21460_ACEOF
21461
21462
47a7e797
MW
21463if test "$ac_cv_sizeof_wchar_t" != "0"; then
21464 wxUSE_WCHAR_T=yes
21465else
21466 wxUSE_WCHAR_T=no
21467fi
238ecede 21468
ba3d13e1
VZ
21469echo "$as_me:$LINENO: checking for va_copy" >&5
21470echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21471if test "${wx_cv_func_va_copy+set}" = set; then
21472 echo $ECHO_N "(cached) $ECHO_C" >&6
21473else
21474
21475 cat >conftest.$ac_ext <<_ACEOF
21476
21477 #include <stdarg.h>
21478 void foo(char *f, ...)
21479 {
21480 va_list ap1, ap2;
21481 va_start(ap1, f);
21482 va_copy(ap2, ap1);
21483 va_end(ap2);
21484 va_end(ap1);
21485 }
5886b072
VZ
21486 int main()
21487 {
b902e639
VZ
21488 foo("hi", 17);
21489 return 0;
5886b072 21490 }
ba3d13e1
VZ
21491_ACEOF
21492rm -f conftest.$ac_objext conftest$ac_exeext
21493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21494 (eval $ac_link) 2>conftest.er1
21495 ac_status=$?
21496 grep -v '^ *+' conftest.er1 >conftest.err
21497 rm -f conftest.er1
21498 cat conftest.err >&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); } &&
fd5199d6 21501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
21502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21503 (eval $ac_try) 2>&5
21504 ac_status=$?
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); }; } &&
21507 { ac_try='test -s conftest$ac_exeext'
21508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21509 (eval $ac_try) 2>&5
21510 ac_status=$?
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); }; }; then
21513 wx_cv_func_va_copy=yes
21514else
21515 echo "$as_me: failed program was:" >&5
21516sed 's/^/| /' conftest.$ac_ext >&5
21517
21518wx_cv_func_va_copy=no
21519
21520fi
21521rm -f conftest.err conftest.$ac_objext \
21522 conftest$ac_exeext conftest.$ac_ext
21523
21524
21525fi
21526echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21527echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21528
21529if test $wx_cv_func_va_copy = "yes"; then
21530 cat >>confdefs.h <<\_ACEOF
21531#define HAVE_VA_COPY 1
21532_ACEOF
21533
21534else
21535 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21536echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21537if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21539else
21540
21541 if test "$cross_compiling" = yes; then
21542 wx_cv_type_va_list_lvalue=yes
21543
21544else
21545 cat >conftest.$ac_ext <<_ACEOF
21546
21547 #include <stdarg.h>
21548 int foo(char *f, ...)
21549 {
21550 va_list ap1, ap2;
21551 va_start(ap1, f);
21552 ap2 = ap1;
21553 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21554 return 1;
21555 va_end(ap2);
21556 va_end(ap1);
21557 return 0;
21558 }
21559 int main()
21560 {
21561 return foo("hi", 17);
21562 }
21563_ACEOF
21564rm -f conftest$ac_exeext
21565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21566 (eval $ac_link) 2>&5
21567 ac_status=$?
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21571 (eval $ac_try) 2>&5
21572 ac_status=$?
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); }; }; then
21575 wx_cv_type_va_list_lvalue=yes
21576else
21577 echo "$as_me: program exited with status $ac_status" >&5
21578echo "$as_me: failed program was:" >&5
21579sed 's/^/| /' conftest.$ac_ext >&5
21580
21581( exit $ac_status )
21582wx_cv_type_va_list_lvalue=no
21583fi
21584rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21585fi
21586
21587
21588fi
21589echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21590echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21591
21592 if test $wx_cv_type_va_list_lvalue != "yes"; then
21593 cat >>confdefs.h <<\_ACEOF
21594#define VA_LIST_IS_ARRAY 1
21595_ACEOF
21596
21597 fi
21598fi
21599
ca766534
VS
21600echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
21601echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
21602if test "${wx_cv_have_variadic_macros+set}" = set; then
21603 echo $ECHO_N "(cached) $ECHO_C" >&6
21604else
21605
38c6938f
VZ
21606 ac_ext=cc
21607ac_cpp='$CXXCPP $CPPFLAGS'
21608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21611
ca766534
VS
21612 cat >conftest.$ac_ext <<_ACEOF
21613/* confdefs.h. */
21614_ACEOF
21615cat confdefs.h >>conftest.$ac_ext
21616cat >>conftest.$ac_ext <<_ACEOF
21617/* end confdefs.h. */
21618
21619 #include <stdio.h>
21620 #define test(fmt, ...) printf(fmt, __VA_ARGS__)
21621
21622int
21623main ()
21624{
21625
21626 test("%s %d %p", "test", 1, 0);
21627
21628
21629 ;
21630 return 0;
21631}
21632_ACEOF
21633rm -f conftest.$ac_objext
21634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21635 (eval $ac_compile) 2>conftest.er1
21636 ac_status=$?
21637 grep -v '^ *+' conftest.er1 >conftest.err
21638 rm -f conftest.er1
21639 cat conftest.err >&5
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } &&
38c6938f 21642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ca766534
VS
21643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644 (eval $ac_try) 2>&5
21645 ac_status=$?
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; } &&
21648 { ac_try='test -s conftest.$ac_objext'
21649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21650 (eval $ac_try) 2>&5
21651 ac_status=$?
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); }; }; then
21654 wx_cv_have_variadic_macros=yes
21655else
21656 echo "$as_me: failed program was:" >&5
21657sed 's/^/| /' conftest.$ac_ext >&5
21658
21659wx_cv_have_variadic_macros=no
21660
21661fi
21662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38c6938f
VZ
21663 ac_ext=c
21664ac_cpp='$CPP $CPPFLAGS'
21665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21667ac_compiler_gnu=$ac_cv_c_compiler_gnu
21668
ca766534
VS
21669
21670
21671fi
21672echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
21673echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
21674
21675if test $wx_cv_have_variadic_macros = "yes"; then
21676 cat >>confdefs.h <<\_ACEOF
21677#define HAVE_VARIADIC_MACROS 1
21678_ACEOF
21679
21680fi
21681
a848cd7e
SC
21682# Check whether --enable-largefile or --disable-largefile was given.
21683if test "${enable_largefile+set}" = set; then
21684 enableval="$enable_largefile"
21685
21686fi;
21687if test "$enable_largefile" != no; then
21688 wx_largefile=no
21689
21690 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21691echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21692if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21693 echo $ECHO_N "(cached) $ECHO_C" >&6
21694else
21695
21696 cat >conftest.$ac_ext <<_ACEOF
21697/* confdefs.h. */
21698_ACEOF
21699cat confdefs.h >>conftest.$ac_ext
21700cat >>conftest.$ac_ext <<_ACEOF
21701/* end confdefs.h. */
21702#define _FILE_OFFSET_BITS 64
21703 #include <sys/types.h>
21704int
21705main ()
21706{
21707typedef struct {
21708 unsigned int field: sizeof(off_t) == 8;
21709} wxlf;
21710
21711 ;
21712 return 0;
21713}
21714_ACEOF
21715rm -f conftest.$ac_objext
21716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21717 (eval $ac_compile) 2>conftest.er1
a848cd7e 21718 ac_status=$?
ac1cb8d3
VS
21719 grep -v '^ *+' conftest.er1 >conftest.err
21720 rm -f conftest.er1
21721 cat conftest.err >&5
a848cd7e
SC
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } &&
fd5199d6 21724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21726 (eval $ac_try) 2>&5
21727 ac_status=$?
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); }; } &&
21730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21732 (eval $ac_try) 2>&5
21733 ac_status=$?
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); }; }; then
21736 ac_cv_sys_file_offset_bits=64
21737else
21738 echo "$as_me: failed program was:" >&5
21739sed 's/^/| /' conftest.$ac_ext >&5
21740
21741ac_cv_sys_file_offset_bits=no
21742fi
ac1cb8d3 21743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21744
21745
21746fi
21747echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21748echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21749
21750 if test "$ac_cv_sys_file_offset_bits" != no; then
21751 wx_largefile=yes
21752 cat >>confdefs.h <<_ACEOF
21753#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21754_ACEOF
21755
21756 fi
21757
21758 if test "x$wx_largefile" != "xyes"; then
21759
21760 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21761echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21762if test "${ac_cv_sys_large_files+set}" = set; then
21763 echo $ECHO_N "(cached) $ECHO_C" >&6
21764else
21765
21766 cat >conftest.$ac_ext <<_ACEOF
21767/* confdefs.h. */
21768_ACEOF
21769cat confdefs.h >>conftest.$ac_ext
21770cat >>conftest.$ac_ext <<_ACEOF
21771/* end confdefs.h. */
21772#define _LARGE_FILES 1
21773 #include <sys/types.h>
21774int
21775main ()
21776{
21777typedef struct {
21778 unsigned int field: sizeof(off_t) == 8;
21779} wxlf;
21780
21781 ;
21782 return 0;
21783}
21784_ACEOF
21785rm -f conftest.$ac_objext
21786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21787 (eval $ac_compile) 2>conftest.er1
a848cd7e 21788 ac_status=$?
ac1cb8d3
VS
21789 grep -v '^ *+' conftest.er1 >conftest.err
21790 rm -f conftest.er1
21791 cat conftest.err >&5
a848cd7e
SC
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); } &&
fd5199d6 21794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21796 (eval $ac_try) 2>&5
21797 ac_status=$?
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); }; } &&
21800 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21802 (eval $ac_try) 2>&5
21803 ac_status=$?
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); }; }; then
21806 ac_cv_sys_large_files=1
21807else
21808 echo "$as_me: failed program was:" >&5
21809sed 's/^/| /' conftest.$ac_ext >&5
21810
21811ac_cv_sys_large_files=no
21812fi
ac1cb8d3 21813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21814
21815
21816fi
21817echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21818echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21819
21820 if test "$ac_cv_sys_large_files" != no; then
21821 wx_largefile=yes
21822 cat >>confdefs.h <<_ACEOF
21823#define _LARGE_FILES $ac_cv_sys_large_files
21824_ACEOF
21825
21826 fi
21827
21828 fi
21829
21830 echo "$as_me:$LINENO: checking if large file support is available" >&5
21831echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21832 if test "x$wx_largefile" = "xyes"; then
21833 cat >>confdefs.h <<\_ACEOF
21834#define HAVE_LARGEFILE_SUPPORT 1
21835_ACEOF
21836
21837 fi
21838 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21839echo "${ECHO_T}$wx_largefile" >&6
21840fi
21841
5b674b9d
DE
21842
21843if test "x$wx_largefile" = "xyes"; then
21844 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 21845 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21846
21847 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21848 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21849echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21850if test "${wx_cv_STDC_EXT_required+set}" = set; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21852else
21853
9b8888f9
VZ
21854 ac_ext=cc
21855ac_cpp='$CXXCPP $CPPFLAGS'
21856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21859
00421666
MW
21860 cat >conftest.$ac_ext <<_ACEOF
21861/* confdefs.h. */
21862_ACEOF
21863cat confdefs.h >>conftest.$ac_ext
21864cat >>conftest.$ac_ext <<_ACEOF
21865/* end confdefs.h. */
21866
21867int
21868main ()
21869{
21870
21871 #ifndef __STDC_EXT__
21872 choke me
21873 #endif
21874
21875 ;
21876 return 0;
21877}
21878_ACEOF
21879rm -f conftest.$ac_objext
21880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21881 (eval $ac_compile) 2>conftest.er1
21882 ac_status=$?
21883 grep -v '^ *+' conftest.er1 >conftest.err
21884 rm -f conftest.er1
21885 cat conftest.err >&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } &&
9b8888f9 21888 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
21889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890 (eval $ac_try) 2>&5
21891 ac_status=$?
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); }; } &&
21894 { ac_try='test -s conftest.$ac_objext'
21895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21896 (eval $ac_try) 2>&5
21897 ac_status=$?
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); }; }; then
21900 wx_cv_STDC_EXT_required=no
21901else
21902 echo "$as_me: failed program was:" >&5
21903sed 's/^/| /' conftest.$ac_ext >&5
21904
21905wx_cv_STDC_EXT_required=yes
21906
21907fi
21908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
21909 ac_ext=c
21910ac_cpp='$CPP $CPPFLAGS'
21911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21913ac_compiler_gnu=$ac_cv_c_compiler_gnu
21914
00421666
MW
21915
21916
21917fi
21918echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21919echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21920 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 21921 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
21922 fi
21923 fi
5b674b9d 21924 else
5ff751d6 21925 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
21926 fi
21927 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21928echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21929if test "${ac_cv_sys_largefile_source+set}" = set; then
21930 echo $ECHO_N "(cached) $ECHO_C" >&6
21931else
21932 while :; do
21933 ac_cv_sys_largefile_source=no
21934 cat >conftest.$ac_ext <<_ACEOF
21935/* confdefs.h. */
21936_ACEOF
21937cat confdefs.h >>conftest.$ac_ext
21938cat >>conftest.$ac_ext <<_ACEOF
21939/* end confdefs.h. */
21940#include <stdio.h>
21941int
21942main ()
21943{
21944return !fseeko;
21945 ;
21946 return 0;
21947}
21948_ACEOF
21949rm -f conftest.$ac_objext
21950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21951 (eval $ac_compile) 2>conftest.er1
21952 ac_status=$?
21953 grep -v '^ *+' conftest.er1 >conftest.err
21954 rm -f conftest.er1
21955 cat conftest.err >&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); } &&
fd5199d6 21958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960 (eval $ac_try) 2>&5
21961 ac_status=$?
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); }; } &&
21964 { ac_try='test -s conftest.$ac_objext'
21965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966 (eval $ac_try) 2>&5
21967 ac_status=$?
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; }; then
21970 break
21971else
21972 echo "$as_me: failed program was:" >&5
21973sed 's/^/| /' conftest.$ac_ext >&5
21974
21975fi
21976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21977 cat >conftest.$ac_ext <<_ACEOF
21978/* confdefs.h. */
21979_ACEOF
21980cat confdefs.h >>conftest.$ac_ext
21981cat >>conftest.$ac_ext <<_ACEOF
21982/* end confdefs.h. */
21983#define _LARGEFILE_SOURCE 1
21984#include <stdio.h>
21985int
21986main ()
21987{
21988return !fseeko;
21989 ;
21990 return 0;
21991}
21992_ACEOF
21993rm -f conftest.$ac_objext
21994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21995 (eval $ac_compile) 2>conftest.er1
21996 ac_status=$?
21997 grep -v '^ *+' conftest.er1 >conftest.err
21998 rm -f conftest.er1
21999 cat conftest.err >&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); } &&
fd5199d6 22002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22004 (eval $ac_try) 2>&5
22005 ac_status=$?
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); }; } &&
22008 { ac_try='test -s conftest.$ac_objext'
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; }; then
22014 ac_cv_sys_largefile_source=1; break
22015else
22016 echo "$as_me: failed program was:" >&5
22017sed 's/^/| /' conftest.$ac_ext >&5
22018
22019fi
22020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22021 break
22022done
22023fi
22024echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22025echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22026if test "$ac_cv_sys_largefile_source" != no; then
22027
22028cat >>confdefs.h <<_ACEOF
22029#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22030_ACEOF
22031
22032fi
22033rm -f conftest*
22034
22035# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22036# in glibc 2.1.3, but that breaks too many other things.
22037# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22038echo "$as_me:$LINENO: checking for fseeko" >&5
22039echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22040if test "${ac_cv_func_fseeko+set}" = set; then
22041 echo $ECHO_N "(cached) $ECHO_C" >&6
22042else
22043 cat >conftest.$ac_ext <<_ACEOF
22044/* confdefs.h. */
22045_ACEOF
22046cat confdefs.h >>conftest.$ac_ext
22047cat >>conftest.$ac_ext <<_ACEOF
22048/* end confdefs.h. */
22049#include <stdio.h>
22050int
22051main ()
22052{
22053return fseeko && fseeko (stdin, 0, 0);
22054 ;
22055 return 0;
22056}
22057_ACEOF
22058rm -f conftest.$ac_objext conftest$ac_exeext
22059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22060 (eval $ac_link) 2>conftest.er1
22061 ac_status=$?
22062 grep -v '^ *+' conftest.er1 >conftest.err
22063 rm -f conftest.er1
22064 cat conftest.err >&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } &&
fd5199d6 22067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22069 (eval $ac_try) 2>&5
22070 ac_status=$?
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); }; } &&
22073 { ac_try='test -s conftest$ac_exeext'
22074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22075 (eval $ac_try) 2>&5
22076 ac_status=$?
22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); }; }; then
22079 ac_cv_func_fseeko=yes
22080else
22081 echo "$as_me: failed program was:" >&5
22082sed 's/^/| /' conftest.$ac_ext >&5
22083
22084ac_cv_func_fseeko=no
22085fi
22086rm -f conftest.err conftest.$ac_objext \
22087 conftest$ac_exeext conftest.$ac_ext
22088fi
22089echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22090echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22091if test $ac_cv_func_fseeko = yes; then
22092
22093cat >>confdefs.h <<\_ACEOF
22094#define HAVE_FSEEKO 1
22095_ACEOF
22096
22097fi
22098
5b674b9d 22099 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22100 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22101 fi
a848cd7e
SC
22102fi
22103
22104echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22105echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22106if test "${ac_cv_c_bigendian+set}" = set; then
22107 echo $ECHO_N "(cached) $ECHO_C" >&6
22108else
22109 ac_cv_c_bigendian=unknown
22110# See if sys/param.h defines the BYTE_ORDER macro.
22111cat >conftest.$ac_ext <<_ACEOF
22112/* confdefs.h. */
22113_ACEOF
22114cat confdefs.h >>conftest.$ac_ext
22115cat >>conftest.$ac_ext <<_ACEOF
22116/* end confdefs.h. */
22117#include <sys/types.h>
22118#include <sys/param.h>
22119int
22120main ()
22121{
22122
22123#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22124 bogus endian macros
22125#endif
22126 ;
22127 return 0;
22128}
22129_ACEOF
22130rm -f conftest.$ac_objext
22131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22132 (eval $ac_compile) 2>conftest.er1
a848cd7e 22133 ac_status=$?
ac1cb8d3
VS
22134 grep -v '^ *+' conftest.er1 >conftest.err
22135 rm -f conftest.er1
22136 cat conftest.err >&5
a848cd7e
SC
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } &&
fd5199d6 22139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22141 (eval $ac_try) 2>&5
22142 ac_status=$?
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); }; } &&
22145 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22147 (eval $ac_try) 2>&5
22148 ac_status=$?
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); }; }; then
22151 # It does; now see whether it defined to BIG_ENDIAN or not.
22152cat >conftest.$ac_ext <<_ACEOF
22153/* confdefs.h. */
22154_ACEOF
22155cat confdefs.h >>conftest.$ac_ext
22156cat >>conftest.$ac_ext <<_ACEOF
22157/* end confdefs.h. */
22158#include <sys/types.h>
22159#include <sys/param.h>
22160int
22161main ()
22162{
22163
22164#if BYTE_ORDER != BIG_ENDIAN
22165 not big endian
22166#endif
22167 ;
22168 return 0;
22169}
22170_ACEOF
22171rm -f conftest.$ac_objext
22172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22173 (eval $ac_compile) 2>conftest.er1
a848cd7e 22174 ac_status=$?
ac1cb8d3
VS
22175 grep -v '^ *+' conftest.er1 >conftest.err
22176 rm -f conftest.er1
22177 cat conftest.err >&5
a848cd7e
SC
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); } &&
fd5199d6 22180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22182 (eval $ac_try) 2>&5
22183 ac_status=$?
22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); }; } &&
22186 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
22192 ac_cv_c_bigendian=yes
22193else
22194 echo "$as_me: failed program was:" >&5
22195sed 's/^/| /' conftest.$ac_ext >&5
22196
22197ac_cv_c_bigendian=no
22198fi
ac1cb8d3 22199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22200else
22201 echo "$as_me: failed program was:" >&5
22202sed 's/^/| /' conftest.$ac_ext >&5
22203
22204fi
ac1cb8d3 22205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22206if test $ac_cv_c_bigendian = unknown; then
22207if test "$cross_compiling" = yes; then
22208 ac_cv_c_bigendian=unknown
22209else
22210 cat >conftest.$ac_ext <<_ACEOF
22211/* confdefs.h. */
22212_ACEOF
22213cat confdefs.h >>conftest.$ac_ext
22214cat >>conftest.$ac_ext <<_ACEOF
22215/* end confdefs.h. */
22216main () {
22217 /* Are we little or big endian? From Harbison&Steele. */
22218 union
22219 {
22220 long l;
22221 char c[sizeof (long)];
22222 } u;
22223 u.l = 1;
22224 exit (u.c[sizeof (long) - 1] == 1);
22225}
22226_ACEOF
22227rm -f conftest$ac_exeext
22228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22229 (eval $ac_link) 2>&5
22230 ac_status=$?
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22234 (eval $ac_try) 2>&5
22235 ac_status=$?
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); }; }; then
22238 ac_cv_c_bigendian=no
22239else
22240 echo "$as_me: program exited with status $ac_status" >&5
22241echo "$as_me: failed program was:" >&5
22242sed 's/^/| /' conftest.$ac_ext >&5
22243
22244( exit $ac_status )
22245ac_cv_c_bigendian=yes
22246fi
ac1cb8d3 22247rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22248fi
22249fi
22250fi
22251echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22252echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22253if test $ac_cv_c_bigendian = unknown; then
22254 { 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
22255echo "$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;}
22256fi
22257if test $ac_cv_c_bigendian = yes; then
22258 cat >>confdefs.h <<\_ACEOF
22259#define WORDS_BIGENDIAN 1
22260_ACEOF
22261
22262fi
22263
22264
fd5199d6 22265ac_ext=cc
a848cd7e
SC
22266ac_cpp='$CXXCPP $CPPFLAGS'
22267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
fd5199d6
VZ
22270echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
22271echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
22272if test -z "$CXXCPP"; then
22273 if test "${ac_cv_prog_CXXCPP+set}" = set; then
a848cd7e 22274 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 22275else
fd5199d6
VZ
22276 # Double quotes because CXXCPP needs to be expanded
22277 for CXXCPP in "$CXX -E" "/lib/cpp"
22278 do
22279 ac_preproc_ok=false
22280for ac_cxx_preproc_warn_flag in '' yes
22281do
22282 # Use a header file that comes with gcc, so configuring glibc
22283 # with a fresh cross-compiler works.
22284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22285 # <limits.h> exists even on freestanding compilers.
22286 # On the NeXT, cc -E runs the code through the compiler's parser,
22287 # not just through cpp. "Syntax error" is here to catch this case.
22288 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
22289/* confdefs.h. */
22290_ACEOF
22291cat confdefs.h >>conftest.$ac_ext
22292cat >>conftest.$ac_ext <<_ACEOF
22293/* end confdefs.h. */
fd5199d6
VZ
22294#ifdef __STDC__
22295# include <limits.h>
22296#else
22297# include <assert.h>
22298#endif
22299 Syntax error
a848cd7e 22300_ACEOF
fd5199d6
VZ
22301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a848cd7e 22303 ac_status=$?
ac1cb8d3
VS
22304 grep -v '^ *+' conftest.er1 >conftest.err
22305 rm -f conftest.er1
22306 cat conftest.err >&5
a848cd7e 22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fd5199d6
VZ
22308 (exit $ac_status); } >/dev/null; then
22309 if test -s conftest.err; then
22310 ac_cpp_err=$ac_cxx_preproc_warn_flag
22311 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22312 else
22313 ac_cpp_err=
22314 fi
22315else
22316 ac_cpp_err=yes
22317fi
22318if test -z "$ac_cpp_err"; then
22319 :
a848cd7e
SC
22320else
22321 echo "$as_me: failed program was:" >&5
22322sed 's/^/| /' conftest.$ac_ext >&5
22323
fd5199d6
VZ
22324 # Broken: fails on valid input.
22325continue
a848cd7e 22326fi
fd5199d6 22327rm -f conftest.err conftest.$ac_ext
a848cd7e 22328
fd5199d6
VZ
22329 # OK, works on sane cases. Now check whether non-existent headers
22330 # can be detected and how.
22331 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
22332/* confdefs.h. */
22333_ACEOF
22334cat confdefs.h >>conftest.$ac_ext
22335cat >>conftest.$ac_ext <<_ACEOF
22336/* end confdefs.h. */
fd5199d6 22337#include <ac_nonexistent.h>
a848cd7e
SC
22338_ACEOF
22339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22341 ac_status=$?
22342 grep -v '^ *+' conftest.er1 >conftest.err
22343 rm -f conftest.er1
22344 cat conftest.err >&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } >/dev/null; then
22347 if test -s conftest.err; then
22348 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22349 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22350 else
22351 ac_cpp_err=
22352 fi
22353else
22354 ac_cpp_err=yes
22355fi
22356if test -z "$ac_cpp_err"; then
fd5199d6
VZ
22357 # Broken: success on invalid input.
22358continue
a848cd7e
SC
22359else
22360 echo "$as_me: failed program was:" >&5
22361sed 's/^/| /' conftest.$ac_ext >&5
22362
fd5199d6
VZ
22363 # Passes both tests.
22364ac_preproc_ok=:
22365break
a848cd7e
SC
22366fi
22367rm -f conftest.err conftest.$ac_ext
a848cd7e 22368
fd5199d6
VZ
22369done
22370# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22371rm -f conftest.err conftest.$ac_ext
22372if $ac_preproc_ok; then
22373 break
a848cd7e 22374fi
fd5199d6
VZ
22375
22376 done
22377 ac_cv_prog_CXXCPP=$CXXCPP
a848cd7e
SC
22378
22379fi
fd5199d6
VZ
22380 CXXCPP=$ac_cv_prog_CXXCPP
22381else
22382 ac_cv_prog_CXXCPP=$CXXCPP
22383fi
22384echo "$as_me:$LINENO: result: $CXXCPP" >&5
22385echo "${ECHO_T}$CXXCPP" >&6
22386ac_preproc_ok=false
22387for ac_cxx_preproc_warn_flag in '' yes
22388do
22389 # Use a header file that comes with gcc, so configuring glibc
22390 # with a fresh cross-compiler works.
22391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22392 # <limits.h> exists even on freestanding compilers.
22393 # On the NeXT, cc -E runs the code through the compiler's parser,
22394 # not just through cpp. "Syntax error" is here to catch this case.
22395 cat >conftest.$ac_ext <<_ACEOF
22396/* confdefs.h. */
a848cd7e 22397_ACEOF
fd5199d6
VZ
22398cat confdefs.h >>conftest.$ac_ext
22399cat >>conftest.$ac_ext <<_ACEOF
22400/* end confdefs.h. */
22401#ifdef __STDC__
22402# include <limits.h>
22403#else
22404# include <assert.h>
22405#endif
22406 Syntax error
22407_ACEOF
22408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22410 ac_status=$?
22411 grep -v '^ *+' conftest.er1 >conftest.err
22412 rm -f conftest.er1
22413 cat conftest.err >&5
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); } >/dev/null; then
22416 if test -s conftest.err; then
22417 ac_cpp_err=$ac_cxx_preproc_warn_flag
22418 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22419 else
22420 ac_cpp_err=
22421 fi
22422else
22423 ac_cpp_err=yes
a848cd7e 22424fi
fd5199d6
VZ
22425if test -z "$ac_cpp_err"; then
22426 :
22427else
22428 echo "$as_me: failed program was:" >&5
22429sed 's/^/| /' conftest.$ac_ext >&5
a848cd7e 22430
fd5199d6
VZ
22431 # Broken: fails on valid input.
22432continue
22433fi
22434rm -f conftest.err conftest.$ac_ext
a848cd7e 22435
fd5199d6
VZ
22436 # OK, works on sane cases. Now check whether non-existent headers
22437 # can be detected and how.
22438 cat >conftest.$ac_ext <<_ACEOF
22439/* confdefs.h. */
a848cd7e 22440_ACEOF
fd5199d6
VZ
22441cat confdefs.h >>conftest.$ac_ext
22442cat >>conftest.$ac_ext <<_ACEOF
22443/* end confdefs.h. */
22444#include <ac_nonexistent.h>
22445_ACEOF
22446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22448 ac_status=$?
22449 grep -v '^ *+' conftest.er1 >conftest.err
22450 rm -f conftest.er1
22451 cat conftest.err >&5
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); } >/dev/null; then
22454 if test -s conftest.err; then
22455 ac_cpp_err=$ac_cxx_preproc_warn_flag
22456 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22457 else
22458 ac_cpp_err=
22459 fi
22460else
22461 ac_cpp_err=yes
22462fi
22463if test -z "$ac_cpp_err"; then
22464 # Broken: success on invalid input.
22465continue
22466else
22467 echo "$as_me: failed program was:" >&5
22468sed 's/^/| /' conftest.$ac_ext >&5
a848cd7e 22469
fd5199d6
VZ
22470 # Passes both tests.
22471ac_preproc_ok=:
22472break
22473fi
22474rm -f conftest.err conftest.$ac_ext
a848cd7e 22475
fd5199d6
VZ
22476done
22477# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22478rm -f conftest.err conftest.$ac_ext
22479if $ac_preproc_ok; then
22480 :
22481else
22482 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22483See \`config.log' for more details." >&5
22484echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22485See \`config.log' for more details." >&2;}
22486 { (exit 1); exit 1; }; }
22487fi
22488
22489ac_ext=cc
5d7b7554
VZ
22490ac_cpp='$CXXCPP $CPPFLAGS'
22491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22494
22495
22496
22497
a848cd7e
SC
22498
22499 ac_ext=cc
22500ac_cpp='$CXXCPP $CPPFLAGS'
22501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22504
22505
fd5199d6
VZ
22506
22507for ac_header in iostream
22508do
22509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22510if eval "test \"\${$as_ac_Header+set}\" = set"; then
22511 echo "$as_me:$LINENO: checking for $ac_header" >&5
22512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22513if eval "test \"\${$as_ac_Header+set}\" = set"; then
22514 echo $ECHO_N "(cached) $ECHO_C" >&6
22515fi
22516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22517echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22518else
22519 # Is the header compilable?
22520echo "$as_me:$LINENO: checking $ac_header usability" >&5
22521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22522cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
22523/* confdefs.h. */
22524_ACEOF
22525cat confdefs.h >>conftest.$ac_ext
22526cat >>conftest.$ac_ext <<_ACEOF
22527/* end confdefs.h. */
fd5199d6
VZ
22528$ac_includes_default
22529#include <$ac_header>
a848cd7e
SC
22530_ACEOF
22531rm -f conftest.$ac_objext
22532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22533 (eval $ac_compile) 2>conftest.er1
a848cd7e 22534 ac_status=$?
ac1cb8d3
VS
22535 grep -v '^ *+' conftest.er1 >conftest.err
22536 rm -f conftest.er1
22537 cat conftest.err >&5
a848cd7e
SC
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } &&
bb9e79c0 22540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22542 (eval $ac_try) 2>&5
22543 ac_status=$?
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }; } &&
22546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548 (eval $ac_try) 2>&5
22549 ac_status=$?
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); }; }; then
fd5199d6
VZ
22552 ac_header_compiler=yes
22553else
22554 echo "$as_me: failed program was:" >&5
22555sed 's/^/| /' conftest.$ac_ext >&5
a848cd7e 22556
fd5199d6
VZ
22557ac_header_compiler=no
22558fi
22559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22560echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22561echo "${ECHO_T}$ac_header_compiler" >&6
a848cd7e 22562
fd5199d6
VZ
22563# Is the header present?
22564echo "$as_me:$LINENO: checking $ac_header presence" >&5
22565echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22566cat >conftest.$ac_ext <<_ACEOF
22567/* confdefs.h. */
22568_ACEOF
22569cat confdefs.h >>conftest.$ac_ext
22570cat >>conftest.$ac_ext <<_ACEOF
22571/* end confdefs.h. */
22572#include <$ac_header>
22573_ACEOF
22574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22576 ac_status=$?
22577 grep -v '^ *+' conftest.er1 >conftest.err
22578 rm -f conftest.er1
22579 cat conftest.err >&5
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); } >/dev/null; then
22582 if test -s conftest.err; then
22583 ac_cpp_err=$ac_cxx_preproc_warn_flag
22584 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22585 else
22586 ac_cpp_err=
22587 fi
22588else
22589 ac_cpp_err=yes
22590fi
22591if test -z "$ac_cpp_err"; then
22592 ac_header_preproc=yes
a848cd7e
SC
22593else
22594 echo "$as_me: failed program was:" >&5
22595sed 's/^/| /' conftest.$ac_ext >&5
22596
fd5199d6
VZ
22597 ac_header_preproc=no
22598fi
22599rm -f conftest.err conftest.$ac_ext
22600echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22601echo "${ECHO_T}$ac_header_preproc" >&6
a848cd7e 22602
fd5199d6
VZ
22603# So? What about this header?
22604case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22605 yes:no: )
22606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22607echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22609echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22610 ac_header_preproc=yes
22611 ;;
22612 no:yes:* )
22613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22616echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22618echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22620echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22624echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22625 (
22626 cat <<\_ASBOX
22627## ----------------------------------------- ##
22628## Report this to wx-dev@lists.wxwidgets.org ##
22629## ----------------------------------------- ##
22630_ASBOX
22631 ) |
22632 sed "s/^/$as_me: WARNING: /" >&2
22633 ;;
22634esac
22635echo "$as_me:$LINENO: checking for $ac_header" >&5
22636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22637if eval "test \"\${$as_ac_Header+set}\" = set"; then
22638 echo $ECHO_N "(cached) $ECHO_C" >&6
22639else
22640 eval "$as_ac_Header=\$ac_header_preproc"
22641fi
22642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a848cd7e 22644
fd5199d6
VZ
22645fi
22646if test `eval echo '${'$as_ac_Header'}'` = yes; then
22647 cat >>confdefs.h <<_ACEOF
22648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22649_ACEOF
a848cd7e
SC
22650
22651fi
fd5199d6
VZ
22652
22653done
22654
22655
22656 if test "$ac_cv_header_iostream" = "yes" ; then
22657 :
22658 else
22659 cat >>confdefs.h <<\_ACEOF
22660#define wxUSE_IOSTREAMH 1
22661_ACEOF
22662
22663 fi
22664
22665 ac_ext=c
22666ac_cpp='$CPP $CPPFLAGS'
22667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22669ac_compiler_gnu=$ac_cv_c_compiler_gnu
22670
22671
22672
22673
22674 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22675echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22676if test "${wx_cv_cpp_bool+set}" = set; then
22677 echo $ECHO_N "(cached) $ECHO_C" >&6
22678else
22679
22680
a848cd7e 22681
5d7b7554
VZ
22682 ac_ext=cc
22683ac_cpp='$CXXCPP $CPPFLAGS'
22684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22687
22688
fd5199d6
VZ
22689 cat >conftest.$ac_ext <<_ACEOF
22690/* confdefs.h. */
22691_ACEOF
22692cat confdefs.h >>conftest.$ac_ext
22693cat >>conftest.$ac_ext <<_ACEOF
22694/* end confdefs.h. */
22695
22696
22697int
22698main ()
22699{
22700
22701 bool b = true;
22702
22703 return 0;
22704
22705 ;
22706 return 0;
22707}
22708_ACEOF
22709rm -f conftest.$ac_objext
22710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22711 (eval $ac_compile) 2>conftest.er1
22712 ac_status=$?
22713 grep -v '^ *+' conftest.er1 >conftest.err
22714 rm -f conftest.er1
22715 cat conftest.err >&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); } &&
22718 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22720 (eval $ac_try) 2>&5
22721 ac_status=$?
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); }; } &&
22724 { ac_try='test -s conftest.$ac_objext'
22725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22726 (eval $ac_try) 2>&5
22727 ac_status=$?
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); }; }; then
22730
22731 wx_cv_cpp_bool=yes
22732
22733else
22734 echo "$as_me: failed program was:" >&5
22735sed 's/^/| /' conftest.$ac_ext >&5
22736
22737
22738 wx_cv_cpp_bool=no
22739
22740
22741fi
22742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22743
22744 ac_ext=c
22745ac_cpp='$CPP $CPPFLAGS'
22746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22748ac_compiler_gnu=$ac_cv_c_compiler_gnu
22749
22750
a848cd7e
SC
22751fi
22752echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22753echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22754
22755 if test "$wx_cv_cpp_bool" = "yes"; then
22756 cat >>confdefs.h <<\_ACEOF
22757#define HAVE_BOOL 1
22758_ACEOF
22759
22760 fi
22761
22762
22763
22764 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22765echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22766if test "${wx_cv_explicit+set}" = set; then
22767 echo $ECHO_N "(cached) $ECHO_C" >&6
22768else
22769
22770
22771
22772 ac_ext=cc
22773ac_cpp='$CXXCPP $CPPFLAGS'
22774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22777
22778
22779 cat >conftest.$ac_ext <<_ACEOF
22780/* confdefs.h. */
22781_ACEOF
22782cat confdefs.h >>conftest.$ac_ext
22783cat >>conftest.$ac_ext <<_ACEOF
22784/* end confdefs.h. */
22785
22786 class Foo { public: explicit Foo(int) {} };
22787
22788int
22789main ()
22790{
22791
22792 return 0;
22793
22794 ;
22795 return 0;
22796}
22797_ACEOF
22798rm -f conftest.$ac_objext
22799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22800 (eval $ac_compile) 2>conftest.er1
a848cd7e 22801 ac_status=$?
ac1cb8d3
VS
22802 grep -v '^ *+' conftest.er1 >conftest.err
22803 rm -f conftest.er1
22804 cat conftest.err >&5
a848cd7e
SC
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); } &&
bb9e79c0 22807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22809 (eval $ac_try) 2>&5
22810 ac_status=$?
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); }; } &&
22813 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22815 (eval $ac_try) 2>&5
22816 ac_status=$?
22817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818 (exit $ac_status); }; }; then
22819
22820 cat >conftest.$ac_ext <<_ACEOF
22821/* confdefs.h. */
22822_ACEOF
22823cat confdefs.h >>conftest.$ac_ext
22824cat >>conftest.$ac_ext <<_ACEOF
22825/* end confdefs.h. */
22826
22827 class Foo { public: explicit Foo(int) {} };
22828 static void TakeFoo(const Foo& foo) { }
22829
22830int
22831main ()
22832{
22833
22834 TakeFoo(17);
22835 return 0;
22836
22837 ;
22838 return 0;
22839}
22840_ACEOF
22841rm -f conftest.$ac_objext
22842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22843 (eval $ac_compile) 2>conftest.er1
a848cd7e 22844 ac_status=$?
ac1cb8d3
VS
22845 grep -v '^ *+' conftest.er1 >conftest.err
22846 rm -f conftest.er1
22847 cat conftest.err >&5
a848cd7e
SC
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); } &&
bb9e79c0 22850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22852 (eval $ac_try) 2>&5
22853 ac_status=$?
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); }; } &&
22856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22858 (eval $ac_try) 2>&5
22859 ac_status=$?
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); }; }; then
22862 wx_cv_explicit=no
22863else
22864 echo "$as_me: failed program was:" >&5
22865sed 's/^/| /' conftest.$ac_ext >&5
22866
22867wx_cv_explicit=yes
22868
22869fi
ac1cb8d3 22870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22871
22872else
22873 echo "$as_me: failed program was:" >&5
22874sed 's/^/| /' conftest.$ac_ext >&5
22875
22876wx_cv_explicit=no
22877
22878fi
ac1cb8d3 22879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22880
fd5199d6
VZ
22881 ac_ext=c
22882ac_cpp='$CPP $CPPFLAGS'
22883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22885ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e
SC
22886
22887
22888fi
22889echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22890echo "${ECHO_T}$wx_cv_explicit" >&6
22891
22892 if test "$wx_cv_explicit" = "yes"; then
22893 cat >>confdefs.h <<\_ACEOF
22894#define HAVE_EXPLICIT 1
22895_ACEOF
22896
22897 fi
22898
22899
22900echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22901echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22902if test "${ac_cv_cxx_const_cast+set}" = set; then
22903 echo $ECHO_N "(cached) $ECHO_C" >&6
22904else
22905
22906
22907 ac_ext=cc
22908ac_cpp='$CXXCPP $CPPFLAGS'
22909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22912
22913 cat >conftest.$ac_ext <<_ACEOF
22914/* confdefs.h. */
22915_ACEOF
22916cat confdefs.h >>conftest.$ac_ext
22917cat >>conftest.$ac_ext <<_ACEOF
22918/* end confdefs.h. */
22919
22920int
22921main ()
22922{
22923int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22924 ;
22925 return 0;
22926}
22927_ACEOF
22928rm -f conftest.$ac_objext
22929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22930 (eval $ac_compile) 2>conftest.er1
a848cd7e 22931 ac_status=$?
ac1cb8d3
VS
22932 grep -v '^ *+' conftest.er1 >conftest.err
22933 rm -f conftest.er1
22934 cat conftest.err >&5
a848cd7e
SC
22935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936 (exit $ac_status); } &&
bb9e79c0 22937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22939 (eval $ac_try) 2>&5
22940 ac_status=$?
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); }; } &&
22943 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945 (eval $ac_try) 2>&5
22946 ac_status=$?
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); }; }; then
22949 ac_cv_cxx_const_cast=yes
22950else
22951 echo "$as_me: failed program was:" >&5
22952sed 's/^/| /' conftest.$ac_ext >&5
22953
22954ac_cv_cxx_const_cast=no
22955fi
ac1cb8d3 22956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
22957 ac_ext=c
22958ac_cpp='$CPP $CPPFLAGS'
22959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22961ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e
SC
22962
22963
22964fi
22965echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22966echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22967if test "$ac_cv_cxx_const_cast" = yes; then
22968
22969cat >>confdefs.h <<\_ACEOF
22970#define HAVE_CONST_CAST
22971_ACEOF
22972
22973fi
22974
7714864e
RL
22975echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22976echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22977if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22978 echo $ECHO_N "(cached) $ECHO_C" >&6
22979else
22980
22981
22982 ac_ext=cc
22983ac_cpp='$CXXCPP $CPPFLAGS'
22984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22987
22988 cat >conftest.$ac_ext <<_ACEOF
22989/* confdefs.h. */
22990_ACEOF
22991cat confdefs.h >>conftest.$ac_ext
22992cat >>conftest.$ac_ext <<_ACEOF
22993/* end confdefs.h. */
22994#include <typeinfo>
22995class Base { public : Base () {} virtual void f () = 0;};
22996class Derived : public Base { public : Derived () {} virtual void f () {} };
22997class Unrelated { public : Unrelated () {} };
22998int g (Unrelated&) { return 0; }
22999int
23000main ()
23001{
23002
23003Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23004 ;
23005 return 0;
23006}
23007_ACEOF
23008rm -f conftest.$ac_objext
23009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23010 (eval $ac_compile) 2>conftest.er1
23011 ac_status=$?
23012 grep -v '^ *+' conftest.er1 >conftest.err
23013 rm -f conftest.er1
23014 cat conftest.err >&5
23015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016 (exit $ac_status); } &&
bb9e79c0 23017 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
23018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23019 (eval $ac_try) 2>&5
23020 ac_status=$?
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); }; } &&
23023 { ac_try='test -s conftest.$ac_objext'
23024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23025 (eval $ac_try) 2>&5
23026 ac_status=$?
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); }; }; then
23029 ac_cv_cxx_reinterpret_cast=yes
23030else
23031 echo "$as_me: failed program was:" >&5
23032sed 's/^/| /' conftest.$ac_ext >&5
23033
23034ac_cv_cxx_reinterpret_cast=no
23035fi
23036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
23037 ac_ext=c
23038ac_cpp='$CPP $CPPFLAGS'
23039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23041ac_compiler_gnu=$ac_cv_c_compiler_gnu
7714864e
RL
23042
23043
23044fi
23045echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23046echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23047if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23048
23049cat >>confdefs.h <<\_ACEOF
23050#define HAVE_REINTERPRET_CAST
23051_ACEOF
23052
23053fi
23054
a848cd7e
SC
23055echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23056echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23057if test "${ac_cv_cxx_static_cast+set}" = set; then
23058 echo $ECHO_N "(cached) $ECHO_C" >&6
23059else
23060
23061
23062 ac_ext=cc
23063ac_cpp='$CXXCPP $CPPFLAGS'
23064ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23065ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23066ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23067
23068 cat >conftest.$ac_ext <<_ACEOF
23069/* confdefs.h. */
23070_ACEOF
23071cat confdefs.h >>conftest.$ac_ext
23072cat >>conftest.$ac_ext <<_ACEOF
23073/* end confdefs.h. */
23074#include <typeinfo>
23075class Base { public : Base () {} virtual void f () = 0; };
23076class Derived : public Base { public : Derived () {} virtual void f () {} };
23077int g (Derived&) { return 0; }
23078int
23079main ()
23080{
23081
23082Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23083 ;
23084 return 0;
23085}
23086_ACEOF
23087rm -f conftest.$ac_objext
23088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23089 (eval $ac_compile) 2>conftest.er1
a848cd7e 23090 ac_status=$?
ac1cb8d3
VS
23091 grep -v '^ *+' conftest.er1 >conftest.err
23092 rm -f conftest.er1
23093 cat conftest.err >&5
a848cd7e
SC
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); } &&
bb9e79c0 23096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098 (eval $ac_try) 2>&5
23099 ac_status=$?
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); }; } &&
23102 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104 (eval $ac_try) 2>&5
23105 ac_status=$?
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); }; }; then
23108 ac_cv_cxx_static_cast=yes
23109else
23110 echo "$as_me: failed program was:" >&5
23111sed 's/^/| /' conftest.$ac_ext >&5
23112
23113ac_cv_cxx_static_cast=no
23114fi
ac1cb8d3 23115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
23116 ac_ext=c
23117ac_cpp='$CPP $CPPFLAGS'
23118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23120ac_compiler_gnu=$ac_cv_c_compiler_gnu
a848cd7e
SC
23121
23122
23123fi
23124echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23125echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23126if test "$ac_cv_cxx_static_cast" = yes; then
23127
23128cat >>confdefs.h <<\_ACEOF
23129#define HAVE_STATIC_CAST
23130_ACEOF
23131
23132fi
23133
23134
3c28b7cb 23135if test "x$SUNCXX" = xyes; then
c92ad099 23136 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23137fi
23138
9122d155 23139if test "x$SUNCC" = xyes; then
c92ad099 23140 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23141fi
23142
0ad5d837 23143if test "x$SGICC" = "xyes"; then
c92ad099 23144 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23145fi
23146if test "x$SGICXX" = "xyes"; then
c92ad099 23147 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23148fi
23149
2eef8513 23150if test "x$HPCC" = "xyes"; then
c92ad099 23151 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23152fi
23153if test "x$HPCXX" = "xyes"; then
c92ad099 23154 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23155fi
23156
23157if test "x$COMPAQCXX" = "xyes"; then
23158 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23159fi
23160
9b8888f9
VZ
23161ac_ext=cc
23162ac_cpp='$CXXCPP $CPPFLAGS'
23163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23166
23167
f56c22b4 23168if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23169 if test "$wxUSE_UNICODE" = "yes"; then
23170 std_string="std::wstring"
23171 char_type="wchar_t"
23172 else
23173 std_string="std::string"
23174 char_type="char"
23175 fi
23176
23177 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23178echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
9b8888f9
VZ
23179if test "${wx_cv_class_stdstring+set}" = set; then
23180 echo $ECHO_N "(cached) $ECHO_C" >&6
23181else
23182
23183 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
23184/* confdefs.h. */
23185_ACEOF
23186cat confdefs.h >>conftest.$ac_ext
23187cat >>conftest.$ac_ext <<_ACEOF
23188/* end confdefs.h. */
23189#include <string>
a848cd7e
SC
23190int
23191main ()
23192{
f56c22b4 23193$std_string foo;
a848cd7e
SC
23194 ;
23195 return 0;
23196}
23197_ACEOF
23198rm -f conftest.$ac_objext
23199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23200 (eval $ac_compile) 2>conftest.er1
a848cd7e 23201 ac_status=$?
ac1cb8d3
VS
23202 grep -v '^ *+' conftest.er1 >conftest.err
23203 rm -f conftest.er1
23204 cat conftest.err >&5
a848cd7e
SC
23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); } &&
9b8888f9 23207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23209 (eval $ac_try) 2>&5
23210 ac_status=$?
23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212 (exit $ac_status); }; } &&
23213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23215 (eval $ac_try) 2>&5
23216 ac_status=$?
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); }; }; then
9b8888f9 23219 wx_cv_class_stdstring=yes
a848cd7e
SC
23220else
23221 echo "$as_me: failed program was:" >&5
23222sed 's/^/| /' conftest.$ac_ext >&5
23223
9b8888f9
VZ
23224wx_cv_class_stdstring=no
23225
23226fi
23227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23228
23229
23230fi
23231echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
23232echo "${ECHO_T}$wx_cv_class_stdstring" >&6
23233
23234 if test "$wx_cv_class_stdstring" = yes; then
23235 if test "$wxUSE_UNICODE" = "yes"; then
23236 cat >>confdefs.h <<\_ACEOF
23237#define HAVE_STD_WSTRING 1
23238_ACEOF
23239
23240 fi
23241 else
23242 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
f56c22b4 23243echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
9b8888f9
VZ
23244if test "${wx_cv_class_stdbasicstring+set}" = set; then
23245 echo $ECHO_N "(cached) $ECHO_C" >&6
23246else
23247
23248 cat >conftest.$ac_ext <<_ACEOF
0a08f02a
MB
23249/* confdefs.h. */
23250_ACEOF
23251cat confdefs.h >>conftest.$ac_ext
23252cat >>conftest.$ac_ext <<_ACEOF
23253/* end confdefs.h. */
23254
9b8888f9
VZ
23255 #ifdef HAVE_WCHAR_H
23256 # ifdef __CYGWIN__
23257 # include <stddef.h>
23258 # endif
23259 # include <wchar.h>
23260 #endif
23261 #ifdef HAVE_STDLIB_H
23262 # include <stdlib.h>
23263 #endif
23264 #include <stdio.h>
23265 #include <string>
0a08f02a
MB
23266
23267int
23268main ()
23269{
f56c22b4 23270std::basic_string<$char_type> foo;
9b8888f9 23271 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23272 ;
23273 return 0;
23274}
23275_ACEOF
23276rm -f conftest.$ac_objext
23277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23278 (eval $ac_compile) 2>conftest.er1
23279 ac_status=$?
23280 grep -v '^ *+' conftest.er1 >conftest.err
23281 rm -f conftest.er1
23282 cat conftest.err >&5
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); } &&
9b8888f9 23285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23287 (eval $ac_try) 2>&5
23288 ac_status=$?
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); }; } &&
23291 { ac_try='test -s conftest.$ac_objext'
23292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23293 (eval $ac_try) 2>&5
23294 ac_status=$?
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); }; }; then
9b8888f9 23297 wx_cv_class_stdbasicstring=yes
0a08f02a
MB
23298else
23299 echo "$as_me: failed program was:" >&5
23300sed 's/^/| /' conftest.$ac_ext >&5
23301
9b8888f9 23302wx_cv_class_stdbasicstring=no
0a08f02a 23303
a848cd7e 23304fi
ac1cb8d3 23305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23306
9b8888f9 23307
0a08f02a 23308fi
9b8888f9
VZ
23309echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
23310echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6
23311
23312 if test "$wx_cv_class_stdbasicstring" != yes; then
23313 if test "$wxUSE_STL" = "yes"; then
23314 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23315echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23316 { (exit 1); exit 1; }; }
23317 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23318 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23319echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
23320 { (exit 1); exit 1; }; }
23321 else
23322 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23323echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23324 wxUSE_STD_STRING=no
23325 fi
23326 fi
23327 fi
f56c22b4
MW
23328fi
23329
23330if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23331 echo "$as_me:$LINENO: checking for std::istream" >&5
23332echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23333if test "${ac_cv_type_std__istream+set}" = set; then
23334 echo $ECHO_N "(cached) $ECHO_C" >&6
23335else
23336 cat >conftest.$ac_ext <<_ACEOF
23337/* confdefs.h. */
23338_ACEOF
23339cat confdefs.h >>conftest.$ac_ext
23340cat >>conftest.$ac_ext <<_ACEOF
23341/* end confdefs.h. */
23342#include <iostream>
23343
23344int
23345main ()
23346{
23347if ((std::istream *) 0)
23348 return 0;
23349if (sizeof (std::istream))
23350 return 0;
23351 ;
23352 return 0;
23353}
23354_ACEOF
23355rm -f conftest.$ac_objext
23356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23357 (eval $ac_compile) 2>conftest.er1
23358 ac_status=$?
23359 grep -v '^ *+' conftest.er1 >conftest.err
23360 rm -f conftest.er1
23361 cat conftest.err >&5
23362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363 (exit $ac_status); } &&
9b8888f9 23364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23366 (eval $ac_try) 2>&5
23367 ac_status=$?
23368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369 (exit $ac_status); }; } &&
23370 { ac_try='test -s conftest.$ac_objext'
23371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23372 (eval $ac_try) 2>&5
23373 ac_status=$?
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); }; }; then
23376 ac_cv_type_std__istream=yes
23377else
23378 echo "$as_me: failed program was:" >&5
23379sed 's/^/| /' conftest.$ac_ext >&5
23380
23381ac_cv_type_std__istream=no
23382fi
23383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23384fi
23385echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23386echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23387if test $ac_cv_type_std__istream = yes; then
23388
23389cat >>confdefs.h <<_ACEOF
23390#define HAVE_STD__ISTREAM 1
23391_ACEOF
23392
23393
23394else
23395 wxUSE_STD_IOSTREAM=no
23396fi
23397echo "$as_me:$LINENO: checking for std::ostream" >&5
23398echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23399if test "${ac_cv_type_std__ostream+set}" = set; then
23400 echo $ECHO_N "(cached) $ECHO_C" >&6
23401else
23402 cat >conftest.$ac_ext <<_ACEOF
23403/* confdefs.h. */
23404_ACEOF
23405cat confdefs.h >>conftest.$ac_ext
23406cat >>conftest.$ac_ext <<_ACEOF
23407/* end confdefs.h. */
23408#include <iostream>
23409
23410int
23411main ()
23412{
23413if ((std::ostream *) 0)
23414 return 0;
23415if (sizeof (std::ostream))
23416 return 0;
23417 ;
23418 return 0;
23419}
23420_ACEOF
23421rm -f conftest.$ac_objext
23422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23423 (eval $ac_compile) 2>conftest.er1
23424 ac_status=$?
23425 grep -v '^ *+' conftest.er1 >conftest.err
23426 rm -f conftest.er1
23427 cat conftest.err >&5
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); } &&
9b8888f9 23430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23432 (eval $ac_try) 2>&5
23433 ac_status=$?
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); }; } &&
23436 { ac_try='test -s conftest.$ac_objext'
23437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23438 (eval $ac_try) 2>&5
23439 ac_status=$?
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); }; }; then
23442 ac_cv_type_std__ostream=yes
23443else
23444 echo "$as_me: failed program was:" >&5
23445sed 's/^/| /' conftest.$ac_ext >&5
23446
23447ac_cv_type_std__ostream=no
23448fi
23449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23450fi
23451echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23452echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23453if test $ac_cv_type_std__ostream = yes; then
23454
23455cat >>confdefs.h <<_ACEOF
23456#define HAVE_STD__OSTREAM 1
23457_ACEOF
23458
23459
23460else
23461 wxUSE_STD_IOSTREAM=no
23462fi
23463
23464
23465 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23466 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23467 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23468echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23469 { (exit 1); exit 1; }; }
23470 else
23471 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23472echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23473 fi
f56c22b4 23474 fi
0a08f02a
MB
23475fi
23476
23477if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23478 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23479echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
9b8888f9
VZ
23480if test "${wx_cv_lib_stl+set}" = set; then
23481 echo $ECHO_N "(cached) $ECHO_C" >&6
23482else
23483 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
23484/* confdefs.h. */
23485_ACEOF
23486cat confdefs.h >>conftest.$ac_ext
23487cat >>conftest.$ac_ext <<_ACEOF
23488/* end confdefs.h. */
23489#include <string>
9b8888f9
VZ
23490 #include <functional>
23491 #include <algorithm>
23492 #include <vector>
23493 #include <list>
a848cd7e
SC
23494int
23495main ()
23496{
0a08f02a 23497std::vector<int> moo;
9b8888f9
VZ
23498 std::list<int> foo;
23499 std::vector<int>::iterator it =
23500 std::find_if(moo.begin(), moo.end(),
23501 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23502 ;
23503 return 0;
23504}
23505_ACEOF
23506rm -f conftest.$ac_objext
23507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23508 (eval $ac_compile) 2>conftest.er1
a848cd7e 23509 ac_status=$?
ac1cb8d3
VS
23510 grep -v '^ *+' conftest.er1 >conftest.err
23511 rm -f conftest.er1
23512 cat conftest.err >&5
a848cd7e
SC
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); } &&
9b8888f9 23515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23517 (eval $ac_try) 2>&5
23518 ac_status=$?
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); }; } &&
23521 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23523 (eval $ac_try) 2>&5
23524 ac_status=$?
23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); }; }; then
9b8888f9 23527 wx_cv_lib_stl=yes
a848cd7e
SC
23528else
23529 echo "$as_me: failed program was:" >&5
23530sed 's/^/| /' conftest.$ac_ext >&5
23531
9b8888f9
VZ
23532wx_cv_lib_stl=no
23533
a848cd7e 23534fi
ac1cb8d3 23535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23536
9b8888f9
VZ
23537fi
23538echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
23539echo "${ECHO_T}$wx_cv_lib_stl" >&6
23540
23541 if test "$wx_cv_lib_stl" != yes; then
23542 { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
23543echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
23544 { (exit 1); exit 1; }; }
23545 fi
23546
a848cd7e
SC
23547 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23548echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
9b8888f9
VZ
23549if test "${wx_cv_func_stdstring_compare+set}" = set; then
23550 echo $ECHO_N "(cached) $ECHO_C" >&6
23551else
23552 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
23553/* confdefs.h. */
23554_ACEOF
23555cat confdefs.h >>conftest.$ac_ext
23556cat >>conftest.$ac_ext <<_ACEOF
23557/* end confdefs.h. */
23558#include <string>
23559int
23560main ()
23561{
23562std::string foo, bar;
9b8888f9
VZ
23563 foo.compare(bar);
23564 foo.compare(1, 1, bar);
23565 foo.compare(1, 1, bar, 1, 1);
23566 foo.compare("");
23567 foo.compare(1, 1, "");
23568 foo.compare(1, 1, "", 2);
a848cd7e
SC
23569 ;
23570 return 0;
23571}
23572_ACEOF
23573rm -f conftest.$ac_objext
23574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23575 (eval $ac_compile) 2>conftest.er1
a848cd7e 23576 ac_status=$?
ac1cb8d3
VS
23577 grep -v '^ *+' conftest.er1 >conftest.err
23578 rm -f conftest.er1
23579 cat conftest.err >&5
a848cd7e
SC
23580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); } &&
9b8888f9 23582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23584 (eval $ac_try) 2>&5
23585 ac_status=$?
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); }; } &&
23588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23590 (eval $ac_try) 2>&5
23591 ac_status=$?
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); }; }; then
9b8888f9 23594 wx_cv_func_stdstring_compare=yes
a848cd7e
SC
23595else
23596 echo "$as_me: failed program was:" >&5
23597sed 's/^/| /' conftest.$ac_ext >&5
23598
9b8888f9
VZ
23599wx_cv_func_stdstring_compare=no
23600
a848cd7e 23601fi
ac1cb8d3 23602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a 23603
9b8888f9
VZ
23604fi
23605echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
23606echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6
23607
23608 if test "$wx_cv_func_stdstring_compare" = yes; then
23609 cat >>confdefs.h <<\_ACEOF
23610#define HAVE_STD_STRING_COMPARE 1
23611_ACEOF
23612
23613 fi
23614
bdcade0a
MB
23615 if test "${ac_cv_header_hash_map+set}" = set; then
23616 echo "$as_me:$LINENO: checking for hash_map" >&5
23617echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23618if test "${ac_cv_header_hash_map+set}" = set; then
23619 echo $ECHO_N "(cached) $ECHO_C" >&6
23620fi
23621echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23622echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23623else
23624 # Is the header compilable?
23625echo "$as_me:$LINENO: checking hash_map usability" >&5
23626echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23627cat >conftest.$ac_ext <<_ACEOF
23628/* confdefs.h. */
23629_ACEOF
23630cat confdefs.h >>conftest.$ac_ext
23631cat >>conftest.$ac_ext <<_ACEOF
23632/* end confdefs.h. */
23633$ac_includes_default
23634#include <hash_map>
23635_ACEOF
23636rm -f conftest.$ac_objext
23637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23638 (eval $ac_compile) 2>conftest.er1
bdcade0a 23639 ac_status=$?
ac1cb8d3
VS
23640 grep -v '^ *+' conftest.er1 >conftest.err
23641 rm -f conftest.er1
23642 cat conftest.err >&5
bdcade0a
MB
23643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644 (exit $ac_status); } &&
9b8888f9 23645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23647 (eval $ac_try) 2>&5
23648 ac_status=$?
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); }; } &&
23651 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23653 (eval $ac_try) 2>&5
23654 ac_status=$?
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); }; }; then
23657 ac_header_compiler=yes
23658else
23659 echo "$as_me: failed program was:" >&5
23660sed 's/^/| /' conftest.$ac_ext >&5
23661
23662ac_header_compiler=no
23663fi
ac1cb8d3 23664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23665echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23666echo "${ECHO_T}$ac_header_compiler" >&6
23667
23668# Is the header present?
23669echo "$as_me:$LINENO: checking hash_map presence" >&5
23670echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23671cat >conftest.$ac_ext <<_ACEOF
23672/* confdefs.h. */
23673_ACEOF
23674cat confdefs.h >>conftest.$ac_ext
23675cat >>conftest.$ac_ext <<_ACEOF
23676/* end confdefs.h. */
23677#include <hash_map>
23678_ACEOF
23679if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23681 ac_status=$?
23682 grep -v '^ *+' conftest.er1 >conftest.err
23683 rm -f conftest.er1
23684 cat conftest.err >&5
23685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); } >/dev/null; then
23687 if test -s conftest.err; then
9b8888f9
VZ
23688 ac_cpp_err=$ac_cxx_preproc_warn_flag
23689 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23690 else
23691 ac_cpp_err=
23692 fi
23693else
23694 ac_cpp_err=yes
23695fi
23696if test -z "$ac_cpp_err"; then
23697 ac_header_preproc=yes
23698else
23699 echo "$as_me: failed program was:" >&5
23700sed 's/^/| /' conftest.$ac_ext >&5
23701
23702 ac_header_preproc=no
23703fi
23704rm -f conftest.err conftest.$ac_ext
23705echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23706echo "${ECHO_T}$ac_header_preproc" >&6
23707
23708# So? What about this header?
9b8888f9 23709case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 23710 yes:no: )
bdcade0a
MB
23711 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23712echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23713 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23714echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23715 ac_header_preproc=yes
bdcade0a 23716 ;;
ac1cb8d3 23717 no:yes:* )
bdcade0a
MB
23718 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23719echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23720 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23721echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23722 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23723echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23724 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23725echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23726 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23727echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23728 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23729echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23730 (
23731 cat <<\_ASBOX
ac1cb8d3
VS
23732## ----------------------------------------- ##
23733## Report this to wx-dev@lists.wxwidgets.org ##
23734## ----------------------------------------- ##
bdcade0a
MB
23735_ASBOX
23736 ) |
23737 sed "s/^/$as_me: WARNING: /" >&2
23738 ;;
23739esac
23740echo "$as_me:$LINENO: checking for hash_map" >&5
23741echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23742if test "${ac_cv_header_hash_map+set}" = set; then
23743 echo $ECHO_N "(cached) $ECHO_C" >&6
23744else
23745 ac_cv_header_hash_map=$ac_header_preproc
23746fi
23747echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23748echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23749
23750fi
23751if test $ac_cv_header_hash_map = yes; then
9b8888f9
VZ
23752 echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
23753echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6
23754if test "${wx_cv_class_stdhashmapset+set}" = set; then
23755 echo $ECHO_N "(cached) $ECHO_C" >&6
23756else
23757 cat >conftest.$ac_ext <<_ACEOF
bdcade0a
MB
23758/* confdefs.h. */
23759_ACEOF
23760cat confdefs.h >>conftest.$ac_ext
23761cat >>conftest.$ac_ext <<_ACEOF
23762/* end confdefs.h. */
23763#include <hash_map>
9b8888f9 23764 #include <hash_set>
bdcade0a
MB
23765int
23766main ()
23767{
23768std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
9b8888f9 23769 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
bdcade0a
MB
23770 ;
23771 return 0;
23772}
23773_ACEOF
23774rm -f conftest.$ac_objext
23775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23776 (eval $ac_compile) 2>conftest.er1
bdcade0a 23777 ac_status=$?
ac1cb8d3
VS
23778 grep -v '^ *+' conftest.er1 >conftest.err
23779 rm -f conftest.er1
23780 cat conftest.err >&5
bdcade0a
MB
23781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); } &&
9b8888f9 23783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23785 (eval $ac_try) 2>&5
23786 ac_status=$?
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); }; } &&
23789 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23791 (eval $ac_try) 2>&5
23792 ac_status=$?
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); }; }; then
9b8888f9 23795 wx_cv_class_stdhashmapset=yes
bdcade0a
MB
23796else
23797 echo "$as_me: failed program was:" >&5
23798sed 's/^/| /' conftest.$ac_ext >&5
23799
9b8888f9 23800wx_cv_class_stdhashmapset=no
bdcade0a 23801fi
ac1cb8d3 23802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a 23803
9b8888f9
VZ
23804
23805fi
23806echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
23807echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6
23808
bdcade0a
MB
23809fi
23810
23811
23812
9b8888f9
VZ
23813 if test "$wx_cv_class_stdhashmapset" = yes; then
23814 cat >>confdefs.h <<\_ACEOF
23815#define HAVE_HASH_MAP 1
23816_ACEOF
23817
23818 cat >>confdefs.h <<\_ACEOF
23819#define HAVE_STD_HASH_MAP 1
23820_ACEOF
23821
23822 fi
23823
bdcade0a
MB
23824 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23825 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23826echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23827if test "${ac_cv_header_ext_hash_map+set}" = set; then
23828 echo $ECHO_N "(cached) $ECHO_C" >&6
23829fi
23830echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23831echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23832else
23833 # Is the header compilable?
23834echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23835echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23836cat >conftest.$ac_ext <<_ACEOF
23837/* confdefs.h. */
23838_ACEOF
23839cat confdefs.h >>conftest.$ac_ext
23840cat >>conftest.$ac_ext <<_ACEOF
23841/* end confdefs.h. */
23842$ac_includes_default
23843#include <ext/hash_map>
23844_ACEOF
23845rm -f conftest.$ac_objext
23846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23847 (eval $ac_compile) 2>conftest.er1
bdcade0a 23848 ac_status=$?
ac1cb8d3
VS
23849 grep -v '^ *+' conftest.er1 >conftest.err
23850 rm -f conftest.er1
23851 cat conftest.err >&5
bdcade0a
MB
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); } &&
9b8888f9 23854 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23856 (eval $ac_try) 2>&5
23857 ac_status=$?
23858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859 (exit $ac_status); }; } &&
23860 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23862 (eval $ac_try) 2>&5
23863 ac_status=$?
23864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); }; }; then
23866 ac_header_compiler=yes
23867else
23868 echo "$as_me: failed program was:" >&5
23869sed 's/^/| /' conftest.$ac_ext >&5
23870
23871ac_header_compiler=no
23872fi
ac1cb8d3 23873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23874echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23875echo "${ECHO_T}$ac_header_compiler" >&6
23876
23877# Is the header present?
23878echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23879echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23880cat >conftest.$ac_ext <<_ACEOF
23881/* confdefs.h. */
23882_ACEOF
23883cat confdefs.h >>conftest.$ac_ext
23884cat >>conftest.$ac_ext <<_ACEOF
23885/* end confdefs.h. */
23886#include <ext/hash_map>
23887_ACEOF
23888if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23890 ac_status=$?
23891 grep -v '^ *+' conftest.er1 >conftest.err
23892 rm -f conftest.er1
23893 cat conftest.err >&5
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); } >/dev/null; then
23896 if test -s conftest.err; then
9b8888f9
VZ
23897 ac_cpp_err=$ac_cxx_preproc_warn_flag
23898 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23899 else
23900 ac_cpp_err=
23901 fi
23902else
23903 ac_cpp_err=yes
23904fi
23905if test -z "$ac_cpp_err"; then
23906 ac_header_preproc=yes
23907else
23908 echo "$as_me: failed program was:" >&5
23909sed 's/^/| /' conftest.$ac_ext >&5
23910
23911 ac_header_preproc=no
23912fi
23913rm -f conftest.err conftest.$ac_ext
23914echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23915echo "${ECHO_T}$ac_header_preproc" >&6
23916
23917# So? What about this header?
9b8888f9 23918case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 23919 yes:no: )
bdcade0a
MB
23920 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23921echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23922 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23923echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23924 ac_header_preproc=yes
bdcade0a 23925 ;;
ac1cb8d3 23926 no:yes:* )
bdcade0a
MB
23927 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23928echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23929 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23930echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23931 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23932echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23933 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23934echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23935 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23936echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23937 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23938echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23939 (
23940 cat <<\_ASBOX
ac1cb8d3
VS
23941## ----------------------------------------- ##
23942## Report this to wx-dev@lists.wxwidgets.org ##
23943## ----------------------------------------- ##
bdcade0a
MB
23944_ASBOX
23945 ) |
23946 sed "s/^/$as_me: WARNING: /" >&2
23947 ;;
23948esac
23949echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23950echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23951if test "${ac_cv_header_ext_hash_map+set}" = set; then
23952 echo $ECHO_N "(cached) $ECHO_C" >&6
23953else
23954 ac_cv_header_ext_hash_map=$ac_header_preproc
23955fi
23956echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23957echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23958
23959fi
23960if test $ac_cv_header_ext_hash_map = yes; then
9b8888f9
VZ
23961 echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
23962echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6
23963if test "${wx_cv_class_gnuhashmapset+set}" = set; then
23964 echo $ECHO_N "(cached) $ECHO_C" >&6
23965else
23966 cat >conftest.$ac_ext <<_ACEOF
bdcade0a
MB
23967/* confdefs.h. */
23968_ACEOF
23969cat confdefs.h >>conftest.$ac_ext
23970cat >>conftest.$ac_ext <<_ACEOF
23971/* end confdefs.h. */
23972#include <ext/hash_map>
9b8888f9 23973 #include <ext/hash_set>
bdcade0a
MB
23974int
23975main ()
23976{
23977__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
9b8888f9 23978 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
bdcade0a
MB
23979 ;
23980 return 0;
23981}
23982_ACEOF
23983rm -f conftest.$ac_objext
23984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23985 (eval $ac_compile) 2>conftest.er1
bdcade0a 23986 ac_status=$?
ac1cb8d3
VS
23987 grep -v '^ *+' conftest.er1 >conftest.err
23988 rm -f conftest.er1
23989 cat conftest.err >&5
bdcade0a
MB
23990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); } &&
9b8888f9 23992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23994 (eval $ac_try) 2>&5
23995 ac_status=$?
23996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997 (exit $ac_status); }; } &&
23998 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24000 (eval $ac_try) 2>&5
24001 ac_status=$?
24002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003 (exit $ac_status); }; }; then
9b8888f9 24004 wx_cv_class_gnuhashmapset=yes
bdcade0a
MB
24005else
24006 echo "$as_me: failed program was:" >&5
24007sed 's/^/| /' conftest.$ac_ext >&5
24008
9b8888f9 24009wx_cv_class_gnuhashmapset=no
bdcade0a 24010fi
ac1cb8d3 24011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a 24012
9b8888f9 24013
bdcade0a 24014fi
9b8888f9
VZ
24015echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
24016echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6
24017
24018fi
24019
bdcade0a
MB
24020
24021
9b8888f9
VZ
24022 if test "$wx_cv_class_gnuhashmapset" = yes; then
24023 cat >>confdefs.h <<\_ACEOF
24024#define HAVE_EXT_HASH_MAP 1
24025_ACEOF
24026
24027 cat >>confdefs.h <<\_ACEOF
24028#define HAVE_GNU_CXX_HASH_MAP 1
24029_ACEOF
24030
24031 fi
a848cd7e
SC
24032fi
24033
9b8888f9
VZ
24034ac_ext=c
24035ac_cpp='$CPP $CPPFLAGS'
24036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24038ac_compiler_gnu=$ac_cv_c_compiler_gnu
24039
24040
a848cd7e
SC
24041
24042SEARCH_INCLUDE="\
24043 /usr/local/include \
24044 \
24045 /usr/Motif-2.1/include \
24046 /usr/Motif-1.2/include \
24047 /usr/include/Motif1.2 \
a848cd7e
SC
24048 \
24049 /usr/dt/include \
24050 /usr/openwin/include \
24051 \
24052 /usr/include/Xm \
24053 \
24054 /usr/X11R6/include \
24055 /usr/X11R6.4/include \
24056 /usr/X11R5/include \
24057 /usr/X11R4/include \
24058 \
24059 /usr/include/X11R6 \
24060 /usr/include/X11R5 \
24061 /usr/include/X11R4 \
24062 \
24063 /usr/local/X11R6/include \
24064 /usr/local/X11R5/include \
24065 /usr/local/X11R4/include \
24066 \
24067 /usr/local/include/X11R6 \
24068 /usr/local/include/X11R5 \
24069 /usr/local/include/X11R4 \
24070 \
24071 /usr/X11/include \
24072 /usr/include/X11 \
24073 /usr/local/X11/include \
24074 /usr/local/include/X11 \
24075 \
a848cd7e 24076 /usr/XFree86/include/X11 \
e051b34e
MW
24077 /usr/pkg/include \
24078 \
a848cd7e
SC
24079 /usr/openwin/share/include"
24080
6f9cf1e6 24081echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24082echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24083
24084case "${host}" in
24085 *-*-irix6* )
24086 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24087 echo $ECHO_N "(cached) $ECHO_C" >&6
24088else
24089
c687b303
VZ
24090 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24091 for e in a so sl dylib dll.a; do
24092 libc="$d/libc.$e"
24093 if test -f $libc; then
24094 save_LIBS="$LIBS"
24095 LIBS="$libc"
24096 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24097int main() { return 0; }
24098_ACEOF
24099rm -f conftest.$ac_objext conftest$ac_exeext
24100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24101 (eval $ac_link) 2>conftest.er1
24102 ac_status=$?
24103 grep -v '^ *+' conftest.er1 >conftest.err
24104 rm -f conftest.er1
24105 cat conftest.err >&5
24106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107 (exit $ac_status); } &&
fd5199d6 24108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
24109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24110 (eval $ac_try) 2>&5
24111 ac_status=$?
24112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113 (exit $ac_status); }; } &&
24114 { ac_try='test -s conftest$ac_exeext'
24115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24116 (eval $ac_try) 2>&5
24117 ac_status=$?
24118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119 (exit $ac_status); }; }; then
24120 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24121else
24122 echo "$as_me: failed program was:" >&5
24123sed 's/^/| /' conftest.$ac_ext >&5
24124
24125fi
24126rm -f conftest.err conftest.$ac_objext \
24127 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24128 LIBS="$save_LIBS"
24129 if test "x$wx_cv_std_libpath" != "x"; then
24130 break 2
24131 fi
24132 fi
24133 done
24134 done
24135 if test "x$wx_cv_std_libpath" = "x"; then
24136 wx_cv_std_libpath="lib"
0ad5d837 24137 fi
0ad5d837
VZ
24138
24139
24140fi
6f9cf1e6
MW
24141
24142 ;;
24143
24144 *-*-solaris2* )
24145 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24146 wx_cv_std_libpath="lib/64"
24147 else
24148 wx_cv_std_libpath="lib"
24149 fi
24150 ;;
24151
24152 *-*-linux* )
24153 if test "$ac_cv_sizeof_void_p" = 8 -a \
24154 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24155 wx_cv_std_libpath="lib64"
24156 else
24157 wx_cv_std_libpath="lib"
24158 fi
c687b303
VZ
24159 ;;
24160
24161 *)
24162 wx_cv_std_libpath="lib";
24163 ;;
24164esac
0ad5d837 24165
6f9cf1e6
MW
24166echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24167echo "${ECHO_T}$wx_cv_std_libpath" >&6
24168
24169SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24170
3eca31dc
MW
24171if test "$build" != "$host" -a "$GCC" = yes; then
24172 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24173 cross_root=`dirname $cross_root`
24174 cross_root=`dirname $cross_root`
24175
24176 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24177 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24178 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24179
24180 if test -z "$PKG_CONFIG_PATH"; then
24181 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24182 export PKG_CONFIG_PATH
24183 fi
24184
24185 if test -z "$x_includes" -o "$x_includes" = NONE; then
24186
24187ac_find_includes=
24188for ac_dir in $SEARCH_INCLUDE /usr/include;
24189 do
24190 if test -f "$ac_dir/X11/Intrinsic.h"; then
24191 ac_find_includes=$ac_dir
24192 break
24193 fi
24194 done
24195
24196 x_includes=$ac_find_includes
24197 fi
24198 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24199
0ad5d837
VZ
24200 ac_find_libraries=
24201 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24202 do
24203 for ac_extension in a so sl dylib dll.a; do
24204 if test -f "$ac_dir/libXt.$ac_extension"; then
24205 ac_find_libraries=$ac_dir
24206 break 2
24207 fi
24208 done
24209 done
24210
24211 x_libraries=$ac_find_libraries
24212 fi
24213 fi
24214fi
24215
a848cd7e
SC
24216
24217cat >confcache <<\_ACEOF
24218# This file is a shell script that caches the results of configure
24219# tests run on this system so they can be shared between configure
24220# scripts and configure runs, see configure's option --config-cache.
24221# It is not useful on other systems. If it contains results you don't
24222# want to keep, you may remove or edit it.
24223#
24224# config.status only pays attention to the cache file if you give it
24225# the --recheck option to rerun configure.
24226#
24227# `ac_cv_env_foo' variables (set or unset) will be overridden when
24228# loading this file, other *unset* `ac_cv_foo' will be assigned the
24229# following values.
24230
24231_ACEOF
24232
24233# The following way of writing the cache mishandles newlines in values,
24234# but we know of no workaround that is simple, portable, and efficient.
24235# So, don't put newlines in cache variables' values.
24236# Ultrix sh set writes to stderr and can't be redirected directly,
24237# and sets the high bit in the cache file unless we assign to the vars.
24238{
24239 (set) 2>&1 |
24240 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24241 *ac_space=\ *)
24242 # `set' does not quote correctly, so add quotes (double-quote
24243 # substitution turns \\\\ into \\, and sed turns \\ into \).
24244 sed -n \
ac1cb8d3
VS
24245 "s/'/'\\\\''/g;
24246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24247 ;;
24248 *)
24249 # `set' quotes correctly as required by POSIX, so do not add quotes.
24250 sed -n \
ac1cb8d3 24251 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24252 ;;
24253 esac;
24254} |
24255 sed '
24256 t clear
24257 : clear
24258 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24259 t end
24260 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24261 : end' >>confcache
24262if diff $cache_file confcache >/dev/null 2>&1; then :; else
24263 if test -w $cache_file; then
24264 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24265 cat confcache >$cache_file
24266 else
24267 echo "not updating unwritable cache $cache_file"
24268 fi
24269fi
24270rm -f confcache
24271
24272if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24273 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24274echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24275if test "${wx_cv_lib_glibc21+set}" = set; then
24276 echo $ECHO_N "(cached) $ECHO_C" >&6
24277else
24278
24279 cat >conftest.$ac_ext <<_ACEOF
24280/* confdefs.h. */
24281_ACEOF
24282cat confdefs.h >>conftest.$ac_ext
24283cat >>conftest.$ac_ext <<_ACEOF
24284/* end confdefs.h. */
24285#include <features.h>
24286int
24287main ()
24288{
24289
24290 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24291 not glibc 2.1
a848cd7e
SC
24292 #endif
24293
24294 ;
24295 return 0;
24296}
24297_ACEOF
24298rm -f conftest.$ac_objext
24299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24300 (eval $ac_compile) 2>conftest.er1
a848cd7e 24301 ac_status=$?
ac1cb8d3
VS
24302 grep -v '^ *+' conftest.er1 >conftest.err
24303 rm -f conftest.er1
24304 cat conftest.err >&5
a848cd7e
SC
24305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306 (exit $ac_status); } &&
fd5199d6 24307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24309 (eval $ac_try) 2>&5
24310 ac_status=$?
24311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312 (exit $ac_status); }; } &&
24313 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24315 (eval $ac_try) 2>&5
24316 ac_status=$?
24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); }; }; then
24319
24320 wx_cv_lib_glibc21=yes
24321
24322else
24323 echo "$as_me: failed program was:" >&5
24324sed 's/^/| /' conftest.$ac_ext >&5
24325
24326
24327 wx_cv_lib_glibc21=no
24328
24329
24330fi
ac1cb8d3 24331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24332
24333fi
24334echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24335echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24336 if test "$wx_cv_lib_glibc21" = "yes"; then
24337 cat >>confdefs.h <<\_ACEOF
24338#define wxHAVE_GLIBC2 1
24339_ACEOF
24340
24341 fi
24342fi
24343
24344if test "x$wx_cv_lib_glibc21" = "xyes"; then
24345 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24346 cat >>confdefs.h <<\_ACEOF
24347#define _GNU_SOURCE 1
24348_ACEOF
24349
24350 fi
24351fi
24352
5d7b7554
VZ
24353have_cos=0
24354have_floor=0
a848cd7e 24355
5d7b7554
VZ
24356for ac_func in cos
24357do
24358as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24359echo "$as_me:$LINENO: checking for $ac_func" >&5
24360echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24361if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24362 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24363else
5d7b7554 24364 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24365/* confdefs.h. */
24366_ACEOF
24367cat confdefs.h >>conftest.$ac_ext
24368cat >>conftest.$ac_ext <<_ACEOF
24369/* end confdefs.h. */
5d7b7554
VZ
24370/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24372#define $ac_func innocuous_$ac_func
24373
24374/* System header to define __stub macros and hopefully few prototypes,
24375 which can conflict with char $ac_func (); below.
24376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24377 <limits.h> exists even on freestanding compilers. */
24378
24379#ifdef __STDC__
24380# include <limits.h>
24381#else
24382# include <assert.h>
24383#endif
24384
24385#undef $ac_func
24386
24387/* Override any gcc2 internal prototype to avoid an error. */
24388#ifdef __cplusplus
24389extern "C"
24390{
24391#endif
24392/* We use char because int might match the return type of a gcc2
24393 builtin and then its argument prototype would still apply. */
24394char $ac_func ();
24395/* The GNU C library defines this for functions which it implements
24396 to always fail with ENOSYS. Some functions are actually named
24397 something starting with __ and the normal name is an alias. */
24398#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24399choke me
24400#else
24401char (*f) () = $ac_func;
24402#endif
24403#ifdef __cplusplus
24404}
24405#endif
24406
24407int
24408main ()
24409{
24410return f != $ac_func;
24411 ;
24412 return 0;
24413}
a848cd7e 24414_ACEOF
5d7b7554
VZ
24415rm -f conftest.$ac_objext conftest$ac_exeext
24416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24417 (eval $ac_link) 2>conftest.er1
a848cd7e 24418 ac_status=$?
ac1cb8d3
VS
24419 grep -v '^ *+' conftest.er1 >conftest.err
24420 rm -f conftest.er1
24421 cat conftest.err >&5
a848cd7e
SC
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); } &&
fd5199d6 24424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24426 (eval $ac_try) 2>&5
24427 ac_status=$?
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); }; } &&
5d7b7554 24430 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24432 (eval $ac_try) 2>&5
24433 ac_status=$?
24434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435 (exit $ac_status); }; }; then
5d7b7554 24436 eval "$as_ac_var=yes"
a848cd7e
SC
24437else
24438 echo "$as_me: failed program was:" >&5
24439sed 's/^/| /' conftest.$ac_ext >&5
24440
5d7b7554 24441eval "$as_ac_var=no"
a848cd7e 24442fi
5d7b7554
VZ
24443rm -f conftest.err conftest.$ac_objext \
24444 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24445fi
5d7b7554
VZ
24446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24447echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24448if test `eval echo '${'$as_ac_var'}'` = yes; then
24449 cat >>confdefs.h <<_ACEOF
24450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24451_ACEOF
24452 have_cos=1
a848cd7e 24453fi
5d7b7554 24454done
a848cd7e 24455
ab0f0edd 24456
5d7b7554 24457for ac_func in floor
a848cd7e
SC
24458do
24459as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24460echo "$as_me:$LINENO: checking for $ac_func" >&5
24461echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24462if eval "test \"\${$as_ac_var+set}\" = set"; then
24463 echo $ECHO_N "(cached) $ECHO_C" >&6
24464else
24465 cat >conftest.$ac_ext <<_ACEOF
24466/* confdefs.h. */
24467_ACEOF
24468cat confdefs.h >>conftest.$ac_ext
24469cat >>conftest.$ac_ext <<_ACEOF
24470/* end confdefs.h. */
ac1cb8d3
VS
24471/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24473#define $ac_func innocuous_$ac_func
24474
a848cd7e
SC
24475/* System header to define __stub macros and hopefully few prototypes,
24476 which can conflict with char $ac_func (); below.
24477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24478 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24479
a848cd7e
SC
24480#ifdef __STDC__
24481# include <limits.h>
24482#else
24483# include <assert.h>
24484#endif
ac1cb8d3
VS
24485
24486#undef $ac_func
24487
a848cd7e
SC
24488/* Override any gcc2 internal prototype to avoid an error. */
24489#ifdef __cplusplus
24490extern "C"
24491{
24492#endif
24493/* We use char because int might match the return type of a gcc2
24494 builtin and then its argument prototype would still apply. */
24495char $ac_func ();
24496/* The GNU C library defines this for functions which it implements
24497 to always fail with ENOSYS. Some functions are actually named
24498 something starting with __ and the normal name is an alias. */
24499#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24500choke me
24501#else
24502char (*f) () = $ac_func;
24503#endif
24504#ifdef __cplusplus
24505}
24506#endif
24507
24508int
24509main ()
24510{
24511return f != $ac_func;
24512 ;
24513 return 0;
24514}
24515_ACEOF
24516rm -f conftest.$ac_objext conftest$ac_exeext
24517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24518 (eval $ac_link) 2>conftest.er1
a848cd7e 24519 ac_status=$?
ac1cb8d3
VS
24520 grep -v '^ *+' conftest.er1 >conftest.err
24521 rm -f conftest.er1
24522 cat conftest.err >&5
a848cd7e
SC
24523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524 (exit $ac_status); } &&
fd5199d6 24525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24527 (eval $ac_try) 2>&5
24528 ac_status=$?
24529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530 (exit $ac_status); }; } &&
24531 { ac_try='test -s conftest$ac_exeext'
24532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24533 (eval $ac_try) 2>&5
24534 ac_status=$?
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); }; }; then
24537 eval "$as_ac_var=yes"
24538else
24539 echo "$as_me: failed program was:" >&5
24540sed 's/^/| /' conftest.$ac_ext >&5
24541
24542eval "$as_ac_var=no"
24543fi
24544rm -f conftest.err conftest.$ac_objext \
24545 conftest$ac_exeext conftest.$ac_ext
24546fi
24547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24548echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24549if test `eval echo '${'$as_ac_var'}'` = yes; then
24550 cat >>confdefs.h <<_ACEOF
24551#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24552_ACEOF
24553 have_floor=1
24554fi
24555done
24556
24557echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24558echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24559if test "$have_cos" = 1 -a "$have_floor" = 1; then
24560 echo "$as_me:$LINENO: result: yes" >&5
24561echo "${ECHO_T}yes" >&6
24562else
24563 echo "$as_me:$LINENO: result: no" >&5
24564echo "${ECHO_T}no" >&6
24565 LIBS="$LIBS -lm"
24566 # use different functions to avoid configure caching
24567 have_sin=0
24568 have_ceil=0
24569
24570for ac_func in sin
24571do
24572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24573echo "$as_me:$LINENO: checking for $ac_func" >&5
24574echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24575if eval "test \"\${$as_ac_var+set}\" = set"; then
24576 echo $ECHO_N "(cached) $ECHO_C" >&6
24577else
24578 cat >conftest.$ac_ext <<_ACEOF
24579/* confdefs.h. */
24580_ACEOF
24581cat confdefs.h >>conftest.$ac_ext
24582cat >>conftest.$ac_ext <<_ACEOF
24583/* end confdefs.h. */
24584/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24586#define $ac_func innocuous_$ac_func
24587
24588/* System header to define __stub macros and hopefully few prototypes,
24589 which can conflict with char $ac_func (); below.
24590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24591 <limits.h> exists even on freestanding compilers. */
24592
24593#ifdef __STDC__
24594# include <limits.h>
24595#else
24596# include <assert.h>
24597#endif
24598
24599#undef $ac_func
24600
24601/* Override any gcc2 internal prototype to avoid an error. */
24602#ifdef __cplusplus
24603extern "C"
24604{
24605#endif
24606/* We use char because int might match the return type of a gcc2
24607 builtin and then its argument prototype would still apply. */
24608char $ac_func ();
24609/* The GNU C library defines this for functions which it implements
24610 to always fail with ENOSYS. Some functions are actually named
24611 something starting with __ and the normal name is an alias. */
24612#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24613choke me
24614#else
24615char (*f) () = $ac_func;
24616#endif
24617#ifdef __cplusplus
24618}
24619#endif
24620
24621int
24622main ()
24623{
24624return f != $ac_func;
24625 ;
24626 return 0;
24627}
24628_ACEOF
24629rm -f conftest.$ac_objext conftest$ac_exeext
24630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24631 (eval $ac_link) 2>conftest.er1
24632 ac_status=$?
24633 grep -v '^ *+' conftest.er1 >conftest.err
24634 rm -f conftest.er1
24635 cat conftest.err >&5
24636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637 (exit $ac_status); } &&
fd5199d6 24638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24640 (eval $ac_try) 2>&5
24641 ac_status=$?
24642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643 (exit $ac_status); }; } &&
24644 { ac_try='test -s conftest$ac_exeext'
24645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24646 (eval $ac_try) 2>&5
24647 ac_status=$?
24648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 (exit $ac_status); }; }; then
24650 eval "$as_ac_var=yes"
24651else
24652 echo "$as_me: failed program was:" >&5
24653sed 's/^/| /' conftest.$ac_ext >&5
24654
24655eval "$as_ac_var=no"
24656fi
24657rm -f conftest.err conftest.$ac_objext \
24658 conftest$ac_exeext conftest.$ac_ext
24659fi
24660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24661echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24662if test `eval echo '${'$as_ac_var'}'` = yes; then
24663 cat >>confdefs.h <<_ACEOF
24664#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24665_ACEOF
24666 have_sin=1
24667fi
24668done
24669
24670
24671for ac_func in ceil
24672do
24673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24674echo "$as_me:$LINENO: checking for $ac_func" >&5
24675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24676if eval "test \"\${$as_ac_var+set}\" = set"; then
24677 echo $ECHO_N "(cached) $ECHO_C" >&6
24678else
24679 cat >conftest.$ac_ext <<_ACEOF
24680/* confdefs.h. */
24681_ACEOF
24682cat confdefs.h >>conftest.$ac_ext
24683cat >>conftest.$ac_ext <<_ACEOF
24684/* end confdefs.h. */
24685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24687#define $ac_func innocuous_$ac_func
24688
24689/* System header to define __stub macros and hopefully few prototypes,
24690 which can conflict with char $ac_func (); below.
24691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24692 <limits.h> exists even on freestanding compilers. */
24693
24694#ifdef __STDC__
24695# include <limits.h>
24696#else
24697# include <assert.h>
24698#endif
24699
24700#undef $ac_func
24701
24702/* Override any gcc2 internal prototype to avoid an error. */
24703#ifdef __cplusplus
24704extern "C"
24705{
24706#endif
24707/* We use char because int might match the return type of a gcc2
24708 builtin and then its argument prototype would still apply. */
24709char $ac_func ();
24710/* The GNU C library defines this for functions which it implements
24711 to always fail with ENOSYS. Some functions are actually named
24712 something starting with __ and the normal name is an alias. */
24713#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24714choke me
24715#else
24716char (*f) () = $ac_func;
24717#endif
24718#ifdef __cplusplus
24719}
24720#endif
24721
24722int
24723main ()
24724{
24725return f != $ac_func;
24726 ;
24727 return 0;
24728}
24729_ACEOF
24730rm -f conftest.$ac_objext conftest$ac_exeext
24731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24732 (eval $ac_link) 2>conftest.er1
24733 ac_status=$?
24734 grep -v '^ *+' conftest.er1 >conftest.err
24735 rm -f conftest.er1
24736 cat conftest.err >&5
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); } &&
fd5199d6 24739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24741 (eval $ac_try) 2>&5
24742 ac_status=$?
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); }; } &&
24745 { ac_try='test -s conftest$ac_exeext'
24746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24747 (eval $ac_try) 2>&5
24748 ac_status=$?
24749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750 (exit $ac_status); }; }; then
24751 eval "$as_ac_var=yes"
24752else
24753 echo "$as_me: failed program was:" >&5
24754sed 's/^/| /' conftest.$ac_ext >&5
24755
24756eval "$as_ac_var=no"
24757fi
24758rm -f conftest.err conftest.$ac_objext \
24759 conftest$ac_exeext conftest.$ac_ext
24760fi
24761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24762echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24763if test `eval echo '${'$as_ac_var'}'` = yes; then
24764 cat >>confdefs.h <<_ACEOF
24765#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24766_ACEOF
24767 have_ceil=1
24768fi
24769done
24770
24771 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24772echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24773 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24774 echo "$as_me:$LINENO: result: yes" >&5
24775echo "${ECHO_T}yes" >&6
24776 else
24777 echo "$as_me:$LINENO: result: no" >&5
24778echo "${ECHO_T}no" >&6
24779 # not sure we should warn the user, crash, etc.
24780 fi
24781fi
24782
ec3edcc9
VZ
24783if test "wxUSE_UNICODE" = "yes"; then
24784
fd5199d6
VZ
24785 for wx_func in wcstoull
24786 do
24787 echo "$as_me:$LINENO: checking for $wx_func" >&5
24788echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
24789if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
ec3edcc9
VZ
24790 echo $ECHO_N "(cached) $ECHO_C" >&6
24791else
fd5199d6
VZ
24792
24793 cat >conftest.$ac_ext <<_ACEOF
24794
24795 /* confdefs.h. */
ec3edcc9
VZ
24796_ACEOF
24797cat confdefs.h >>conftest.$ac_ext
24798cat >>conftest.$ac_ext <<_ACEOF
24799/* end confdefs.h. */
ec3edcc9 24800
ec3edcc9 24801
fd5199d6 24802 $ac_includes_default
ec3edcc9
VZ
24803
24804int
24805main ()
24806{
fd5199d6
VZ
24807
24808 #ifndef $wx_func
24809 &$wx_func;
24810 #endif
24811
24812
ec3edcc9
VZ
24813 ;
24814 return 0;
24815}
fd5199d6 24816
ec3edcc9
VZ
24817_ACEOF
24818rm -f conftest.$ac_objext conftest$ac_exeext
24819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24820 (eval $ac_link) 2>conftest.er1
24821 ac_status=$?
24822 grep -v '^ *+' conftest.er1 >conftest.err
24823 rm -f conftest.er1
24824 cat conftest.err >&5
24825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826 (exit $ac_status); } &&
fd5199d6 24827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ec3edcc9
VZ
24828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24829 (eval $ac_try) 2>&5
24830 ac_status=$?
24831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832 (exit $ac_status); }; } &&
24833 { ac_try='test -s conftest$ac_exeext'
24834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24835 (eval $ac_try) 2>&5
24836 ac_status=$?
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); }; }; then
fd5199d6 24839 eval wx_cv_func_$wx_func=yes
ec3edcc9
VZ
24840else
24841 echo "$as_me: failed program was:" >&5
24842sed 's/^/| /' conftest.$ac_ext >&5
24843
fd5199d6 24844eval wx_cv_func_$wx_func=no
ec3edcc9
VZ
24845fi
24846rm -f conftest.err conftest.$ac_objext \
24847 conftest$ac_exeext conftest.$ac_ext
fd5199d6 24848
ec3edcc9 24849fi
fd5199d6
VZ
24850echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
24851echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
24852
24853 if eval test \$wx_cv_func_$wx_func = yes
24854 then
24855 cat >>confdefs.h <<_ACEOF
24856#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
ec3edcc9
VZ
24857_ACEOF
24858
fd5199d6
VZ
24859
24860 else
24861 :
24862
24863 fi
24864 done
ec3edcc9
VZ
24865
24866else
24867
fd5199d6
VZ
24868 for wx_func in strtoull
24869 do
24870 echo "$as_me:$LINENO: checking for $wx_func" >&5
24871echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
24872if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
ec3edcc9
VZ
24873 echo $ECHO_N "(cached) $ECHO_C" >&6
24874else
fd5199d6
VZ
24875
24876 cat >conftest.$ac_ext <<_ACEOF
24877
24878 /* confdefs.h. */
ec3edcc9
VZ
24879_ACEOF
24880cat confdefs.h >>conftest.$ac_ext
24881cat >>conftest.$ac_ext <<_ACEOF
24882/* end confdefs.h. */
ec3edcc9 24883
ec3edcc9 24884
fd5199d6 24885 $ac_includes_default
ec3edcc9
VZ
24886
24887int
24888main ()
24889{
fd5199d6
VZ
24890
24891 #ifndef $wx_func
24892 &$wx_func;
24893 #endif
24894
24895
ec3edcc9
VZ
24896 ;
24897 return 0;
24898}
fd5199d6 24899
ec3edcc9
VZ
24900_ACEOF
24901rm -f conftest.$ac_objext conftest$ac_exeext
24902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24903 (eval $ac_link) 2>conftest.er1
24904 ac_status=$?
24905 grep -v '^ *+' conftest.er1 >conftest.err
24906 rm -f conftest.er1
24907 cat conftest.err >&5
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); } &&
fd5199d6 24910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ec3edcc9
VZ
24911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24912 (eval $ac_try) 2>&5
24913 ac_status=$?
24914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915 (exit $ac_status); }; } &&
24916 { ac_try='test -s conftest$ac_exeext'
24917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24918 (eval $ac_try) 2>&5
24919 ac_status=$?
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); }; }; then
fd5199d6 24922 eval wx_cv_func_$wx_func=yes
ec3edcc9
VZ
24923else
24924 echo "$as_me: failed program was:" >&5
24925sed 's/^/| /' conftest.$ac_ext >&5
24926
fd5199d6 24927eval wx_cv_func_$wx_func=no
ec3edcc9
VZ
24928fi
24929rm -f conftest.err conftest.$ac_objext \
24930 conftest$ac_exeext conftest.$ac_ext
fd5199d6 24931
ec3edcc9 24932fi
fd5199d6
VZ
24933echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
24934echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
24935
24936 if eval test \$wx_cv_func_$wx_func = yes
24937 then
24938 cat >>confdefs.h <<_ACEOF
24939#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
ec3edcc9
VZ
24940_ACEOF
24941
fd5199d6
VZ
24942
24943 else
24944 :
24945
24946 fi
24947 done
ec3edcc9
VZ
24948
24949fi
24950
5d7b7554
VZ
24951
24952
24953if test "$wxUSE_REGEX" != "no"; then
24954 cat >>confdefs.h <<\_ACEOF
24955#define wxUSE_REGEX 1
24956_ACEOF
24957
24958
24959 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24960 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24961echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24962 wxUSE_REGEX=builtin
24963 fi
24964
24965 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24966 if test "${ac_cv_header_regex_h+set}" = set; then
24967 echo "$as_me:$LINENO: checking for regex.h" >&5
24968echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24969if test "${ac_cv_header_regex_h+set}" = set; then
24970 echo $ECHO_N "(cached) $ECHO_C" >&6
24971fi
24972echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24973echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24974else
24975 # Is the header compilable?
24976echo "$as_me:$LINENO: checking regex.h usability" >&5
24977echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24978cat >conftest.$ac_ext <<_ACEOF
24979/* confdefs.h. */
24980_ACEOF
24981cat confdefs.h >>conftest.$ac_ext
24982cat >>conftest.$ac_ext <<_ACEOF
24983/* end confdefs.h. */
24984$ac_includes_default
24985#include <regex.h>
24986_ACEOF
24987rm -f conftest.$ac_objext
24988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24989 (eval $ac_compile) 2>conftest.er1
24990 ac_status=$?
24991 grep -v '^ *+' conftest.er1 >conftest.err
24992 rm -f conftest.er1
24993 cat conftest.err >&5
24994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995 (exit $ac_status); } &&
fd5199d6 24996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24998 (eval $ac_try) 2>&5
24999 ac_status=$?
25000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001 (exit $ac_status); }; } &&
25002 { ac_try='test -s conftest.$ac_objext'
25003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25004 (eval $ac_try) 2>&5
25005 ac_status=$?
25006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007 (exit $ac_status); }; }; then
25008 ac_header_compiler=yes
25009else
25010 echo "$as_me: failed program was:" >&5
25011sed 's/^/| /' conftest.$ac_ext >&5
25012
25013ac_header_compiler=no
25014fi
25015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25016echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25017echo "${ECHO_T}$ac_header_compiler" >&6
25018
25019# Is the header present?
25020echo "$as_me:$LINENO: checking regex.h presence" >&5
25021echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
25022cat >conftest.$ac_ext <<_ACEOF
25023/* confdefs.h. */
25024_ACEOF
25025cat confdefs.h >>conftest.$ac_ext
25026cat >>conftest.$ac_ext <<_ACEOF
25027/* end confdefs.h. */
25028#include <regex.h>
25029_ACEOF
25030if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25032 ac_status=$?
25033 grep -v '^ *+' conftest.er1 >conftest.err
25034 rm -f conftest.er1
25035 cat conftest.err >&5
25036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); } >/dev/null; then
25038 if test -s conftest.err; then
fd5199d6
VZ
25039 ac_cpp_err=$ac_c_preproc_warn_flag
25040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5d7b7554
VZ
25041 else
25042 ac_cpp_err=
25043 fi
25044else
25045 ac_cpp_err=yes
25046fi
25047if test -z "$ac_cpp_err"; then
25048 ac_header_preproc=yes
25049else
25050 echo "$as_me: failed program was:" >&5
25051sed 's/^/| /' conftest.$ac_ext >&5
25052
25053 ac_header_preproc=no
25054fi
25055rm -f conftest.err conftest.$ac_ext
25056echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25057echo "${ECHO_T}$ac_header_preproc" >&6
25058
25059# So? What about this header?
fd5199d6 25060case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5d7b7554
VZ
25061 yes:no: )
25062 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25063echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25064 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25065echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25066 ac_header_preproc=yes
25067 ;;
25068 no:yes:* )
25069 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25070echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25071 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
25072echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
25073 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25074echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25075 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
25076echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25077 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25078echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25079 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25080echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25081 (
25082 cat <<\_ASBOX
25083## ----------------------------------------- ##
25084## Report this to wx-dev@lists.wxwidgets.org ##
25085## ----------------------------------------- ##
25086_ASBOX
25087 ) |
25088 sed "s/^/$as_me: WARNING: /" >&2
25089 ;;
25090esac
25091echo "$as_me:$LINENO: checking for regex.h" >&5
25092echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25093if test "${ac_cv_header_regex_h+set}" = set; then
25094 echo $ECHO_N "(cached) $ECHO_C" >&6
25095else
25096 ac_cv_header_regex_h=$ac_header_preproc
25097fi
25098echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25099echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25100
25101fi
25102if test $ac_cv_header_regex_h = yes; then
25103
25104
25105for ac_func in regcomp re_search
25106do
25107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25108echo "$as_me:$LINENO: checking for $ac_func" >&5
25109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25110if eval "test \"\${$as_ac_var+set}\" = set"; then
25111 echo $ECHO_N "(cached) $ECHO_C" >&6
25112else
25113 cat >conftest.$ac_ext <<_ACEOF
25114/* confdefs.h. */
25115_ACEOF
25116cat confdefs.h >>conftest.$ac_ext
25117cat >>conftest.$ac_ext <<_ACEOF
25118/* end confdefs.h. */
25119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25121#define $ac_func innocuous_$ac_func
25122
25123/* System header to define __stub macros and hopefully few prototypes,
25124 which can conflict with char $ac_func (); below.
25125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25126 <limits.h> exists even on freestanding compilers. */
25127
25128#ifdef __STDC__
25129# include <limits.h>
25130#else
25131# include <assert.h>
25132#endif
25133
25134#undef $ac_func
25135
25136/* Override any gcc2 internal prototype to avoid an error. */
25137#ifdef __cplusplus
25138extern "C"
25139{
25140#endif
25141/* We use char because int might match the return type of a gcc2
25142 builtin and then its argument prototype would still apply. */
25143char $ac_func ();
25144/* The GNU C library defines this for functions which it implements
25145 to always fail with ENOSYS. Some functions are actually named
25146 something starting with __ and the normal name is an alias. */
25147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25148choke me
25149#else
25150char (*f) () = $ac_func;
25151#endif
25152#ifdef __cplusplus
25153}
25154#endif
25155
25156int
25157main ()
25158{
25159return f != $ac_func;
25160 ;
25161 return 0;
25162}
25163_ACEOF
25164rm -f conftest.$ac_objext conftest$ac_exeext
25165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25166 (eval $ac_link) 2>conftest.er1
25167 ac_status=$?
25168 grep -v '^ *+' conftest.er1 >conftest.err
25169 rm -f conftest.er1
25170 cat conftest.err >&5
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); } &&
fd5199d6 25173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25175 (eval $ac_try) 2>&5
25176 ac_status=$?
25177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178 (exit $ac_status); }; } &&
25179 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25181 (eval $ac_try) 2>&5
25182 ac_status=$?
25183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184 (exit $ac_status); }; }; then
25185 eval "$as_ac_var=yes"
25186else
25187 echo "$as_me: failed program was:" >&5
25188sed 's/^/| /' conftest.$ac_ext >&5
25189
25190eval "$as_ac_var=no"
25191fi
ac1cb8d3
VS
25192rm -f conftest.err conftest.$ac_objext \
25193 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25194fi
25195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25196echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25197if test `eval echo '${'$as_ac_var'}'` = yes; then
25198 cat >>confdefs.h <<_ACEOF
25199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25200_ACEOF
25201
25202fi
25203done
25204
25205fi
25206
25207
25208
25209 if test "x$ac_cv_func_regcomp" != "xyes"; then
25210 if test "$wxUSE_REGEX" = "sys" ; then
25211 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25212echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25213 { (exit 1); exit 1; }; }
25214 else
25215 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25216echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25217 wxUSE_REGEX=builtin
25218 fi
25219 else
25220 wxUSE_REGEX=sys
25221 cat >>confdefs.h <<\_ACEOF
25222#define WX_NO_REGEX_ADVANCED 1
25223_ACEOF
25224
25225 fi
25226 fi
25227fi
25228
25229
25230ZLIB_LINK=
25231if test "$wxUSE_ZLIB" != "no" ; then
25232 cat >>confdefs.h <<\_ACEOF
25233#define wxUSE_ZLIB 1
25234_ACEOF
25235
25236
25237 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25238 if test "$USE_DARWIN" = 1; then
25239 system_zlib_h_ok="yes"
25240 else
25241 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25242echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25243if test "${ac_cv_header_zlib_h+set}" = set; then
25244 echo $ECHO_N "(cached) $ECHO_C" >&6
25245else
25246 if test "$cross_compiling" = yes; then
25247 unset ac_cv_header_zlib_h
25248
25249else
25250 cat >conftest.$ac_ext <<_ACEOF
25251/* confdefs.h. */
25252_ACEOF
25253cat confdefs.h >>conftest.$ac_ext
25254cat >>conftest.$ac_ext <<_ACEOF
25255/* end confdefs.h. */
25256
25257 #include <zlib.h>
25258 #include <stdio.h>
25259
25260 int main()
25261 {
25262 FILE *f=fopen("conftestval", "w");
25263 if (!f) exit(1);
25264 fprintf(f, "%s",
25265 ZLIB_VERSION[0] == '1' &&
25266 (ZLIB_VERSION[2] > '1' ||
25267 (ZLIB_VERSION[2] == '1' &&
25268 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25269 exit(0);
25270 }
25271
25272_ACEOF
25273rm -f conftest$ac_exeext
25274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25275 (eval $ac_link) 2>&5
25276 ac_status=$?
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25280 (eval $ac_try) 2>&5
25281 ac_status=$?
25282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); }; }; then
25284 ac_cv_header_zlib_h=`cat conftestval`
25285else
25286 echo "$as_me: program exited with status $ac_status" >&5
25287echo "$as_me: failed program was:" >&5
25288sed 's/^/| /' conftest.$ac_ext >&5
25289
25290( exit $ac_status )
25291ac_cv_header_zlib_h=no
25292fi
ac1cb8d3 25293rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25294fi
25295
25296fi
25297echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25298echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25299 if test "${ac_cv_header_zlib_h+set}" = set; then
25300 echo "$as_me:$LINENO: checking for zlib.h" >&5
25301echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25302if test "${ac_cv_header_zlib_h+set}" = set; then
25303 echo $ECHO_N "(cached) $ECHO_C" >&6
25304fi
25305echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25306echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25307else
25308 # Is the header compilable?
25309echo "$as_me:$LINENO: checking zlib.h usability" >&5
25310echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25311cat >conftest.$ac_ext <<_ACEOF
25312/* confdefs.h. */
25313_ACEOF
25314cat confdefs.h >>conftest.$ac_ext
25315cat >>conftest.$ac_ext <<_ACEOF
25316/* end confdefs.h. */
25317$ac_includes_default
25318#include <zlib.h>
25319_ACEOF
25320rm -f conftest.$ac_objext
25321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25322 (eval $ac_compile) 2>conftest.er1
a848cd7e 25323 ac_status=$?
ac1cb8d3
VS
25324 grep -v '^ *+' conftest.er1 >conftest.err
25325 rm -f conftest.er1
25326 cat conftest.err >&5
a848cd7e
SC
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); } &&
fd5199d6 25329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25331 (eval $ac_try) 2>&5
25332 ac_status=$?
25333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334 (exit $ac_status); }; } &&
25335 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25337 (eval $ac_try) 2>&5
25338 ac_status=$?
25339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); }; }; then
25341 ac_header_compiler=yes
25342else
25343 echo "$as_me: failed program was:" >&5
25344sed 's/^/| /' conftest.$ac_ext >&5
25345
25346ac_header_compiler=no
25347fi
ac1cb8d3 25348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25349echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25350echo "${ECHO_T}$ac_header_compiler" >&6
25351
25352# Is the header present?
25353echo "$as_me:$LINENO: checking zlib.h presence" >&5
25354echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25355cat >conftest.$ac_ext <<_ACEOF
25356/* confdefs.h. */
25357_ACEOF
25358cat confdefs.h >>conftest.$ac_ext
25359cat >>conftest.$ac_ext <<_ACEOF
25360/* end confdefs.h. */
25361#include <zlib.h>
25362_ACEOF
25363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25365 ac_status=$?
25366 grep -v '^ *+' conftest.er1 >conftest.err
25367 rm -f conftest.er1
25368 cat conftest.err >&5
25369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370 (exit $ac_status); } >/dev/null; then
25371 if test -s conftest.err; then
fd5199d6
VZ
25372 ac_cpp_err=$ac_c_preproc_warn_flag
25373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25374 else
25375 ac_cpp_err=
25376 fi
25377else
25378 ac_cpp_err=yes
25379fi
25380if test -z "$ac_cpp_err"; then
25381 ac_header_preproc=yes
25382else
25383 echo "$as_me: failed program was:" >&5
25384sed 's/^/| /' conftest.$ac_ext >&5
25385
25386 ac_header_preproc=no
25387fi
25388rm -f conftest.err conftest.$ac_ext
25389echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25390echo "${ECHO_T}$ac_header_preproc" >&6
25391
25392# So? What about this header?
fd5199d6 25393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 25394 yes:no: )
a848cd7e
SC
25395 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25396echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25397 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25398echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25399 ac_header_preproc=yes
a848cd7e 25400 ;;
ac1cb8d3 25401 no:yes:* )
a848cd7e
SC
25402 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25403echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25404 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25405echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25406 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25407echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25408 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25409echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25410 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25411echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25412 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25413echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25414 (
25415 cat <<\_ASBOX
ac1cb8d3
VS
25416## ----------------------------------------- ##
25417## Report this to wx-dev@lists.wxwidgets.org ##
25418## ----------------------------------------- ##
a848cd7e
SC
25419_ASBOX
25420 ) |
25421 sed "s/^/$as_me: WARNING: /" >&2
25422 ;;
25423esac
25424echo "$as_me:$LINENO: checking for zlib.h" >&5
25425echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25426if test "${ac_cv_header_zlib_h+set}" = set; then
25427 echo $ECHO_N "(cached) $ECHO_C" >&6
25428else
25429 ac_cv_header_zlib_h=$ac_header_preproc
25430fi
25431echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25432echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25433
25434fi
25435
25436
25437
25438 system_zlib_h_ok=$ac_cv_header_zlib_h
25439 fi
25440
25441 if test "$system_zlib_h_ok" = "yes"; then
25442 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25443echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25444if test "${ac_cv_lib_z_deflate+set}" = set; then
25445 echo $ECHO_N "(cached) $ECHO_C" >&6
25446else
25447 ac_check_lib_save_LIBS=$LIBS
25448LIBS="-lz $LIBS"
25449cat >conftest.$ac_ext <<_ACEOF
25450/* confdefs.h. */
25451_ACEOF
25452cat confdefs.h >>conftest.$ac_ext
25453cat >>conftest.$ac_ext <<_ACEOF
25454/* end confdefs.h. */
25455
25456/* Override any gcc2 internal prototype to avoid an error. */
25457#ifdef __cplusplus
25458extern "C"
25459#endif
25460/* We use char because int might match the return type of a gcc2
25461 builtin and then its argument prototype would still apply. */
25462char deflate ();
25463int
25464main ()
25465{
25466deflate ();
25467 ;
25468 return 0;
25469}
25470_ACEOF
25471rm -f conftest.$ac_objext conftest$ac_exeext
25472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25473 (eval $ac_link) 2>conftest.er1
a848cd7e 25474 ac_status=$?
ac1cb8d3
VS
25475 grep -v '^ *+' conftest.er1 >conftest.err
25476 rm -f conftest.er1
25477 cat conftest.err >&5
a848cd7e
SC
25478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25479 (exit $ac_status); } &&
fd5199d6 25480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25482 (eval $ac_try) 2>&5
25483 ac_status=$?
25484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25485 (exit $ac_status); }; } &&
25486 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25488 (eval $ac_try) 2>&5
25489 ac_status=$?
25490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25491 (exit $ac_status); }; }; then
25492 ac_cv_lib_z_deflate=yes
25493else
25494 echo "$as_me: failed program was:" >&5
25495sed 's/^/| /' conftest.$ac_ext >&5
25496
25497ac_cv_lib_z_deflate=no
25498fi
ac1cb8d3
VS
25499rm -f conftest.err conftest.$ac_objext \
25500 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25501LIBS=$ac_check_lib_save_LIBS
25502fi
25503echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25504echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25505if test $ac_cv_lib_z_deflate = yes; then
25506 ZLIB_LINK=" -lz"
25507fi
25508
25509 fi
25510
25511 if test "x$ZLIB_LINK" = "x" ; then
25512 if test "$wxUSE_ZLIB" = "sys" ; then
25513 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25514echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25515 { (exit 1); exit 1; }; }
25516 else
25517 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25518echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25519 wxUSE_ZLIB=builtin
25520 fi
25521 else
25522 wxUSE_ZLIB=sys
25523 fi
25524 fi
25525fi
25526
25527
25528PNG_LINK=
25529if test "$wxUSE_LIBPNG" != "no" ; then
25530 cat >>confdefs.h <<\_ACEOF
25531#define wxUSE_LIBPNG 1
25532_ACEOF
25533
25534
25535 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25536 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25537echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25538 wxUSE_LIBPNG=sys
25539 fi
25540
25541 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25542 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25543echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25544 wxUSE_LIBPNG=builtin
25545 fi
25546
25547 if test "$wxUSE_MGL" != 1 ; then
25548 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25549 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25550echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25551if test "${ac_cv_header_png_h+set}" = set; then
25552 echo $ECHO_N "(cached) $ECHO_C" >&6
25553else
25554 if test "$cross_compiling" = yes; then
25555 unset ac_cv_header_png_h
25556
25557else
25558 cat >conftest.$ac_ext <<_ACEOF
25559/* confdefs.h. */
25560_ACEOF
25561cat confdefs.h >>conftest.$ac_ext
25562cat >>conftest.$ac_ext <<_ACEOF
25563/* end confdefs.h. */
25564
25565 #include <png.h>
25566 #include <stdio.h>
25567
25568 int main()
25569 {
25570 FILE *f=fopen("conftestval", "w");
25571 if (!f) exit(1);
25572 fprintf(f, "%s",
25573 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25574 exit(0);
25575 }
25576
25577_ACEOF
25578rm -f conftest$ac_exeext
25579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25580 (eval $ac_link) 2>&5
25581 ac_status=$?
25582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25585 (eval $ac_try) 2>&5
25586 ac_status=$?
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); }; }; then
25589 ac_cv_header_png_h=`cat conftestval`
25590else
25591 echo "$as_me: program exited with status $ac_status" >&5
25592echo "$as_me: failed program was:" >&5
25593sed 's/^/| /' conftest.$ac_ext >&5
25594
25595( exit $ac_status )
25596ac_cv_header_png_h=no
25597fi
ac1cb8d3 25598rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25599fi
25600
25601fi
25602echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25603echo "${ECHO_T}$ac_cv_header_png_h" >&6
25604 if test "${ac_cv_header_png_h+set}" = set; then
25605 echo "$as_me:$LINENO: checking for png.h" >&5
25606echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25607if test "${ac_cv_header_png_h+set}" = set; then
25608 echo $ECHO_N "(cached) $ECHO_C" >&6
25609fi
25610echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25611echo "${ECHO_T}$ac_cv_header_png_h" >&6
25612else
25613 # Is the header compilable?
25614echo "$as_me:$LINENO: checking png.h usability" >&5
25615echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25616cat >conftest.$ac_ext <<_ACEOF
25617/* confdefs.h. */
25618_ACEOF
25619cat confdefs.h >>conftest.$ac_ext
25620cat >>conftest.$ac_ext <<_ACEOF
25621/* end confdefs.h. */
25622$ac_includes_default
25623#include <png.h>
25624_ACEOF
25625rm -f conftest.$ac_objext
25626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25627 (eval $ac_compile) 2>conftest.er1
a848cd7e 25628 ac_status=$?
ac1cb8d3
VS
25629 grep -v '^ *+' conftest.er1 >conftest.err
25630 rm -f conftest.er1
25631 cat conftest.err >&5
a848cd7e
SC
25632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633 (exit $ac_status); } &&
fd5199d6 25634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25636 (eval $ac_try) 2>&5
25637 ac_status=$?
25638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); }; } &&
25640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25642 (eval $ac_try) 2>&5
25643 ac_status=$?
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); }; }; then
25646 ac_header_compiler=yes
25647else
25648 echo "$as_me: failed program was:" >&5
25649sed 's/^/| /' conftest.$ac_ext >&5
25650
25651ac_header_compiler=no
25652fi
ac1cb8d3 25653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25654echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25655echo "${ECHO_T}$ac_header_compiler" >&6
25656
25657# Is the header present?
25658echo "$as_me:$LINENO: checking png.h presence" >&5
25659echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25660cat >conftest.$ac_ext <<_ACEOF
25661/* confdefs.h. */
25662_ACEOF
25663cat confdefs.h >>conftest.$ac_ext
25664cat >>conftest.$ac_ext <<_ACEOF
25665/* end confdefs.h. */
25666#include <png.h>
25667_ACEOF
25668if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25670 ac_status=$?
25671 grep -v '^ *+' conftest.er1 >conftest.err
25672 rm -f conftest.er1
25673 cat conftest.err >&5
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); } >/dev/null; then
25676 if test -s conftest.err; then
fd5199d6
VZ
25677 ac_cpp_err=$ac_c_preproc_warn_flag
25678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25679 else
25680 ac_cpp_err=
25681 fi
25682else
25683 ac_cpp_err=yes
25684fi
25685if test -z "$ac_cpp_err"; then
25686 ac_header_preproc=yes
25687else
25688 echo "$as_me: failed program was:" >&5
25689sed 's/^/| /' conftest.$ac_ext >&5
25690
25691 ac_header_preproc=no
25692fi
25693rm -f conftest.err conftest.$ac_ext
25694echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25695echo "${ECHO_T}$ac_header_preproc" >&6
25696
25697# So? What about this header?
fd5199d6 25698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 25699 yes:no: )
a848cd7e
SC
25700 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25701echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25702 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25703echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25704 ac_header_preproc=yes
a848cd7e 25705 ;;
ac1cb8d3 25706 no:yes:* )
a848cd7e
SC
25707 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25708echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25709 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25710echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25711 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25712echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25713 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25714echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25715 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25716echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25717 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25718echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25719 (
25720 cat <<\_ASBOX
ac1cb8d3
VS
25721## ----------------------------------------- ##
25722## Report this to wx-dev@lists.wxwidgets.org ##
25723## ----------------------------------------- ##
a848cd7e
SC
25724_ASBOX
25725 ) |
25726 sed "s/^/$as_me: WARNING: /" >&2
25727 ;;
25728esac
25729echo "$as_me:$LINENO: checking for png.h" >&5
25730echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25731if test "${ac_cv_header_png_h+set}" = set; then
25732 echo $ECHO_N "(cached) $ECHO_C" >&6
25733else
25734 ac_cv_header_png_h=$ac_header_preproc
25735fi
25736echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25737echo "${ECHO_T}$ac_cv_header_png_h" >&6
25738
25739fi
25740
25741
25742
25743 if test "$ac_cv_header_png_h" = "yes"; then
25744 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25745echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25746if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25747 echo $ECHO_N "(cached) $ECHO_C" >&6
25748else
25749 ac_check_lib_save_LIBS=$LIBS
25750LIBS="-lpng -lz -lm $LIBS"
25751cat >conftest.$ac_ext <<_ACEOF
25752/* confdefs.h. */
25753_ACEOF
25754cat confdefs.h >>conftest.$ac_ext
25755cat >>conftest.$ac_ext <<_ACEOF
25756/* end confdefs.h. */
25757
25758/* Override any gcc2 internal prototype to avoid an error. */
25759#ifdef __cplusplus
25760extern "C"
25761#endif
25762/* We use char because int might match the return type of a gcc2
25763 builtin and then its argument prototype would still apply. */
25764char png_check_sig ();
25765int
25766main ()
25767{
25768png_check_sig ();
25769 ;
25770 return 0;
25771}
25772_ACEOF
25773rm -f conftest.$ac_objext conftest$ac_exeext
25774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25775 (eval $ac_link) 2>conftest.er1
a848cd7e 25776 ac_status=$?
ac1cb8d3
VS
25777 grep -v '^ *+' conftest.er1 >conftest.err
25778 rm -f conftest.er1
25779 cat conftest.err >&5
a848cd7e
SC
25780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781 (exit $ac_status); } &&
fd5199d6 25782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25784 (eval $ac_try) 2>&5
25785 ac_status=$?
25786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787 (exit $ac_status); }; } &&
25788 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25790 (eval $ac_try) 2>&5
25791 ac_status=$?
25792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793 (exit $ac_status); }; }; then
25794 ac_cv_lib_png_png_check_sig=yes
25795else
25796 echo "$as_me: failed program was:" >&5
25797sed 's/^/| /' conftest.$ac_ext >&5
25798
25799ac_cv_lib_png_png_check_sig=no
25800fi
ac1cb8d3
VS
25801rm -f conftest.err conftest.$ac_objext \
25802 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25803LIBS=$ac_check_lib_save_LIBS
25804fi
25805echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25806echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25807if test $ac_cv_lib_png_png_check_sig = yes; then
25808 PNG_LINK=" -lpng -lz"
25809fi
25810
25811 fi
25812
25813 if test "x$PNG_LINK" = "x" ; then
25814 if test "$wxUSE_LIBPNG" = "sys" ; then
25815 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25816echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25817 { (exit 1); exit 1; }; }
25818 else
25819 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25820echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25821 wxUSE_LIBPNG=builtin
25822 fi
25823 else
25824 wxUSE_LIBPNG=sys
25825 fi
25826 fi
25827 fi
25828
25829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25830fi
25831
25832
25833JPEG_LINK=
25834if test "$wxUSE_LIBJPEG" != "no" ; then
25835 cat >>confdefs.h <<\_ACEOF
25836#define wxUSE_LIBJPEG 1
25837_ACEOF
25838
25839
25840 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25841 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25842echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25843 wxUSE_LIBJPEG=sys
25844 fi
25845
25846 if test "$wxUSE_MGL" != 1 ; then
25847 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25848 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25849echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25850 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25851 echo $ECHO_N "(cached) $ECHO_C" >&6
25852else
25853 cat >conftest.$ac_ext <<_ACEOF
25854/* confdefs.h. */
25855_ACEOF
25856cat confdefs.h >>conftest.$ac_ext
25857cat >>conftest.$ac_ext <<_ACEOF
25858/* end confdefs.h. */
25859
25860 #undef HAVE_STDLIB_H
25861 #include <stdio.h>
25862 #include <jpeglib.h>
25863
25864int
25865main ()
25866{
25867
25868
25869 ;
25870 return 0;
25871}
25872_ACEOF
25873rm -f conftest.$ac_objext
25874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25875 (eval $ac_compile) 2>conftest.er1
a848cd7e 25876 ac_status=$?
ac1cb8d3
VS
25877 grep -v '^ *+' conftest.er1 >conftest.err
25878 rm -f conftest.er1
25879 cat conftest.err >&5
a848cd7e
SC
25880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881 (exit $ac_status); } &&
fd5199d6 25882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25884 (eval $ac_try) 2>&5
25885 ac_status=$?
25886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); }; } &&
25888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25890 (eval $ac_try) 2>&5
25891 ac_status=$?
25892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893 (exit $ac_status); }; }; then
25894 ac_cv_header_jpeglib_h=yes
25895else
25896 echo "$as_me: failed program was:" >&5
25897sed 's/^/| /' conftest.$ac_ext >&5
25898
25899ac_cv_header_jpeglib_h=no
25900
25901fi
ac1cb8d3 25902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25903
25904fi
25905
25906 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25907echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25908
25909 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25910 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25911echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25912if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25913 echo $ECHO_N "(cached) $ECHO_C" >&6
25914else
25915 ac_check_lib_save_LIBS=$LIBS
25916LIBS="-ljpeg $LIBS"
25917cat >conftest.$ac_ext <<_ACEOF
25918/* confdefs.h. */
25919_ACEOF
25920cat confdefs.h >>conftest.$ac_ext
25921cat >>conftest.$ac_ext <<_ACEOF
25922/* end confdefs.h. */
25923
25924/* Override any gcc2 internal prototype to avoid an error. */
25925#ifdef __cplusplus
25926extern "C"
25927#endif
25928/* We use char because int might match the return type of a gcc2
25929 builtin and then its argument prototype would still apply. */
25930char jpeg_read_header ();
25931int
25932main ()
25933{
25934jpeg_read_header ();
25935 ;
25936 return 0;
25937}
25938_ACEOF
25939rm -f conftest.$ac_objext conftest$ac_exeext
25940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25941 (eval $ac_link) 2>conftest.er1
a848cd7e 25942 ac_status=$?
ac1cb8d3
VS
25943 grep -v '^ *+' conftest.er1 >conftest.err
25944 rm -f conftest.er1
25945 cat conftest.err >&5
a848cd7e
SC
25946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); } &&
fd5199d6 25948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25950 (eval $ac_try) 2>&5
25951 ac_status=$?
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); }; } &&
25954 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25956 (eval $ac_try) 2>&5
25957 ac_status=$?
25958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959 (exit $ac_status); }; }; then
25960 ac_cv_lib_jpeg_jpeg_read_header=yes
25961else
25962 echo "$as_me: failed program was:" >&5
25963sed 's/^/| /' conftest.$ac_ext >&5
25964
25965ac_cv_lib_jpeg_jpeg_read_header=no
25966fi
ac1cb8d3
VS
25967rm -f conftest.err conftest.$ac_objext \
25968 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25969LIBS=$ac_check_lib_save_LIBS
25970fi
25971echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25972echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25973if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25974 JPEG_LINK=" -ljpeg"
25975fi
25976
25977 fi
25978
25979 if test "x$JPEG_LINK" = "x" ; then
25980 if test "$wxUSE_LIBJPEG" = "sys" ; then
25981 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25982echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25983 { (exit 1); exit 1; }; }
25984 else
25985 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25986echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25987 wxUSE_LIBJPEG=builtin
25988 fi
25989 else
25990 wxUSE_LIBJPEG=sys
25991 fi
25992 fi
25993 fi
25994fi
25995
25996
25997TIFF_LINK=
25998TIFF_PREREQ_LINKS=-lm
25999if test "$wxUSE_LIBTIFF" != "no" ; then
26000 cat >>confdefs.h <<\_ACEOF
26001#define wxUSE_LIBTIFF 1
26002_ACEOF
26003
26004
26005 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26006 if test "$wxUSE_LIBJPEG" = "sys"; then
26007 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26008 fi
26009 if test "$wxUSE_ZLIB" = "sys"; then
26010 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26011 fi
26012 if test "${ac_cv_header_tiffio_h+set}" = set; then
26013 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26014echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26015if test "${ac_cv_header_tiffio_h+set}" = set; then
26016 echo $ECHO_N "(cached) $ECHO_C" >&6
26017fi
26018echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26019echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26020else
26021 # Is the header compilable?
26022echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26023echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26024cat >conftest.$ac_ext <<_ACEOF
26025/* confdefs.h. */
26026_ACEOF
26027cat confdefs.h >>conftest.$ac_ext
26028cat >>conftest.$ac_ext <<_ACEOF
26029/* end confdefs.h. */
26030$ac_includes_default
26031#include <tiffio.h>
26032_ACEOF
26033rm -f conftest.$ac_objext
26034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26035 (eval $ac_compile) 2>conftest.er1
a848cd7e 26036 ac_status=$?
ac1cb8d3
VS
26037 grep -v '^ *+' conftest.er1 >conftest.err
26038 rm -f conftest.er1
26039 cat conftest.err >&5
a848cd7e
SC
26040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041 (exit $ac_status); } &&
fd5199d6 26042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26044 (eval $ac_try) 2>&5
26045 ac_status=$?
26046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047 (exit $ac_status); }; } &&
26048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26050 (eval $ac_try) 2>&5
26051 ac_status=$?
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); }; }; then
26054 ac_header_compiler=yes
26055else
26056 echo "$as_me: failed program was:" >&5
26057sed 's/^/| /' conftest.$ac_ext >&5
26058
26059ac_header_compiler=no
26060fi
ac1cb8d3 26061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26062echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26063echo "${ECHO_T}$ac_header_compiler" >&6
26064
26065# Is the header present?
26066echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26067echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26068cat >conftest.$ac_ext <<_ACEOF
26069/* confdefs.h. */
26070_ACEOF
26071cat confdefs.h >>conftest.$ac_ext
26072cat >>conftest.$ac_ext <<_ACEOF
26073/* end confdefs.h. */
26074#include <tiffio.h>
26075_ACEOF
26076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26078 ac_status=$?
26079 grep -v '^ *+' conftest.er1 >conftest.err
26080 rm -f conftest.er1
26081 cat conftest.err >&5
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); } >/dev/null; then
26084 if test -s conftest.err; then
fd5199d6
VZ
26085 ac_cpp_err=$ac_c_preproc_warn_flag
26086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26087 else
26088 ac_cpp_err=
26089 fi
26090else
26091 ac_cpp_err=yes
26092fi
26093if test -z "$ac_cpp_err"; then
26094 ac_header_preproc=yes
26095else
26096 echo "$as_me: failed program was:" >&5
26097sed 's/^/| /' conftest.$ac_ext >&5
26098
26099 ac_header_preproc=no
26100fi
26101rm -f conftest.err conftest.$ac_ext
26102echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26103echo "${ECHO_T}$ac_header_preproc" >&6
26104
26105# So? What about this header?
fd5199d6 26106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 26107 yes:no: )
a848cd7e
SC
26108 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26109echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26110 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26111echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26112 ac_header_preproc=yes
a848cd7e 26113 ;;
ac1cb8d3 26114 no:yes:* )
a848cd7e
SC
26115 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26116echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26117 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26118echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26119 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26120echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26121 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26122echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26123 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26124echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26125 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26126echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26127 (
26128 cat <<\_ASBOX
ac1cb8d3
VS
26129## ----------------------------------------- ##
26130## Report this to wx-dev@lists.wxwidgets.org ##
26131## ----------------------------------------- ##
a848cd7e
SC
26132_ASBOX
26133 ) |
26134 sed "s/^/$as_me: WARNING: /" >&2
26135 ;;
26136esac
26137echo "$as_me:$LINENO: checking for tiffio.h" >&5
26138echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26139if test "${ac_cv_header_tiffio_h+set}" = set; then
26140 echo $ECHO_N "(cached) $ECHO_C" >&6
26141else
26142 ac_cv_header_tiffio_h=$ac_header_preproc
26143fi
26144echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26145echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26146
26147fi
26148if test $ac_cv_header_tiffio_h = yes; then
26149
26150 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26151echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26152if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26153 echo $ECHO_N "(cached) $ECHO_C" >&6
26154else
26155 ac_check_lib_save_LIBS=$LIBS
26156LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26157cat >conftest.$ac_ext <<_ACEOF
26158/* confdefs.h. */
26159_ACEOF
26160cat confdefs.h >>conftest.$ac_ext
26161cat >>conftest.$ac_ext <<_ACEOF
26162/* end confdefs.h. */
26163
26164/* Override any gcc2 internal prototype to avoid an error. */
26165#ifdef __cplusplus
26166extern "C"
26167#endif
26168/* We use char because int might match the return type of a gcc2
26169 builtin and then its argument prototype would still apply. */
26170char TIFFError ();
26171int
26172main ()
26173{
26174TIFFError ();
26175 ;
26176 return 0;
26177}
26178_ACEOF
26179rm -f conftest.$ac_objext conftest$ac_exeext
26180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26181 (eval $ac_link) 2>conftest.er1
a848cd7e 26182 ac_status=$?
ac1cb8d3
VS
26183 grep -v '^ *+' conftest.er1 >conftest.err
26184 rm -f conftest.er1
26185 cat conftest.err >&5
a848cd7e
SC
26186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 (exit $ac_status); } &&
fd5199d6 26188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26190 (eval $ac_try) 2>&5
26191 ac_status=$?
26192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); }; } &&
26194 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26196 (eval $ac_try) 2>&5
26197 ac_status=$?
26198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); }; }; then
26200 ac_cv_lib_tiff_TIFFError=yes
26201else
26202 echo "$as_me: failed program was:" >&5
26203sed 's/^/| /' conftest.$ac_ext >&5
26204
26205ac_cv_lib_tiff_TIFFError=no
26206fi
ac1cb8d3
VS
26207rm -f conftest.err conftest.$ac_objext \
26208 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26209LIBS=$ac_check_lib_save_LIBS
26210fi
26211echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26212echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26213if test $ac_cv_lib_tiff_TIFFError = yes; then
26214 TIFF_LINK=" -ltiff"
26215fi
26216
26217
26218
26219fi
26220
26221
26222
26223 if test "x$TIFF_LINK" = "x" ; then
26224 if test "$wxUSE_LIBTIFF" = "sys" ; then
26225 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26226echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26227 { (exit 1); exit 1; }; }
26228 else
26229 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26230echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26231 wxUSE_LIBTIFF=builtin
26232 fi
26233 else
26234 wxUSE_LIBTIFF=sys
26235 fi
26236 fi
26237fi
26238
26239
47a7e797
MW
26240if test "$wxUSE_WCHAR_T" != "yes"; then
26241 if test "$wxUSE_EXPAT" != "no"; then
26242 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26243echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26244 wxUSE_EXPAT=no
26245 fi
26246 if test "$wxUSE_XML" != "no"; then
26247 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26248echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26249 wxUSE_XML=no
26250 fi
26251fi
26252
a848cd7e
SC
26253if test "$wxUSE_EXPAT" != "no"; then
26254 wxUSE_XML=yes
26255 cat >>confdefs.h <<\_ACEOF
26256#define wxUSE_EXPAT 1
26257_ACEOF
26258
26259 cat >>confdefs.h <<\_ACEOF
26260#define wxUSE_XML 1
26261_ACEOF
26262
26263
26264 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26265 if test "${ac_cv_header_expat_h+set}" = set; then
26266 echo "$as_me:$LINENO: checking for expat.h" >&5
26267echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26268if test "${ac_cv_header_expat_h+set}" = set; then
26269 echo $ECHO_N "(cached) $ECHO_C" >&6
26270fi
26271echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26272echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26273else
26274 # Is the header compilable?
26275echo "$as_me:$LINENO: checking expat.h usability" >&5
26276echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26277cat >conftest.$ac_ext <<_ACEOF
26278/* confdefs.h. */
26279_ACEOF
26280cat confdefs.h >>conftest.$ac_ext
26281cat >>conftest.$ac_ext <<_ACEOF
26282/* end confdefs.h. */
26283$ac_includes_default
26284#include <expat.h>
26285_ACEOF
26286rm -f conftest.$ac_objext
26287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26288 (eval $ac_compile) 2>conftest.er1
a848cd7e 26289 ac_status=$?
ac1cb8d3
VS
26290 grep -v '^ *+' conftest.er1 >conftest.err
26291 rm -f conftest.er1
26292 cat conftest.err >&5
a848cd7e
SC
26293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294 (exit $ac_status); } &&
fd5199d6 26295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26297 (eval $ac_try) 2>&5
26298 ac_status=$?
26299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); }; } &&
26301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26303 (eval $ac_try) 2>&5
26304 ac_status=$?
26305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); }; }; then
26307 ac_header_compiler=yes
26308else
26309 echo "$as_me: failed program was:" >&5
26310sed 's/^/| /' conftest.$ac_ext >&5
26311
26312ac_header_compiler=no
26313fi
ac1cb8d3 26314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26315echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26316echo "${ECHO_T}$ac_header_compiler" >&6
26317
26318# Is the header present?
26319echo "$as_me:$LINENO: checking expat.h presence" >&5
26320echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26321cat >conftest.$ac_ext <<_ACEOF
26322/* confdefs.h. */
26323_ACEOF
26324cat confdefs.h >>conftest.$ac_ext
26325cat >>conftest.$ac_ext <<_ACEOF
26326/* end confdefs.h. */
26327#include <expat.h>
26328_ACEOF
26329if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26331 ac_status=$?
26332 grep -v '^ *+' conftest.er1 >conftest.err
26333 rm -f conftest.er1
26334 cat conftest.err >&5
26335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336 (exit $ac_status); } >/dev/null; then
26337 if test -s conftest.err; then
fd5199d6
VZ
26338 ac_cpp_err=$ac_c_preproc_warn_flag
26339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26340 else
26341 ac_cpp_err=
26342 fi
26343else
26344 ac_cpp_err=yes
26345fi
26346if test -z "$ac_cpp_err"; then
26347 ac_header_preproc=yes
26348else
26349 echo "$as_me: failed program was:" >&5
26350sed 's/^/| /' conftest.$ac_ext >&5
26351
26352 ac_header_preproc=no
26353fi
26354rm -f conftest.err conftest.$ac_ext
26355echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26356echo "${ECHO_T}$ac_header_preproc" >&6
26357
26358# So? What about this header?
fd5199d6 26359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 26360 yes:no: )
a848cd7e
SC
26361 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26362echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26363 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26364echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26365 ac_header_preproc=yes
a848cd7e 26366 ;;
ac1cb8d3 26367 no:yes:* )
a848cd7e
SC
26368 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26369echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26370 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26371echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26372 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26373echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26374 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26375echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26376 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26377echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26378 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26379echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26380 (
26381 cat <<\_ASBOX
ac1cb8d3
VS
26382## ----------------------------------------- ##
26383## Report this to wx-dev@lists.wxwidgets.org ##
26384## ----------------------------------------- ##
a848cd7e
SC
26385_ASBOX
26386 ) |
26387 sed "s/^/$as_me: WARNING: /" >&2
26388 ;;
26389esac
26390echo "$as_me:$LINENO: checking for expat.h" >&5
26391echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26392if test "${ac_cv_header_expat_h+set}" = set; then
26393 echo $ECHO_N "(cached) $ECHO_C" >&6
26394else
26395 ac_cv_header_expat_h=$ac_header_preproc
26396fi
26397echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26398echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26399
26400fi
26401if test $ac_cv_header_expat_h = yes; then
26402 found_expat_h=1
26403fi
26404
26405
26406 if test "x$found_expat_h" = "x1"; then
26407 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26408echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26409if test "${wx_cv_expat_is_not_broken+set}" = set; then
26410 echo $ECHO_N "(cached) $ECHO_C" >&6
26411else
26412
9b8888f9
VZ
26413 ac_ext=cc
26414ac_cpp='$CXXCPP $CPPFLAGS'
26415ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26416ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26417ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26418
a848cd7e
SC
26419 cat >conftest.$ac_ext <<_ACEOF
26420/* confdefs.h. */
26421_ACEOF
26422cat confdefs.h >>conftest.$ac_ext
26423cat >>conftest.$ac_ext <<_ACEOF
26424/* end confdefs.h. */
26425#include <expat.h>
26426int
26427main ()
26428{
26429
26430 ;
26431 return 0;
26432}
26433_ACEOF
26434rm -f conftest.$ac_objext
26435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26436 (eval $ac_compile) 2>conftest.er1
a848cd7e 26437 ac_status=$?
ac1cb8d3
VS
26438 grep -v '^ *+' conftest.er1 >conftest.err
26439 rm -f conftest.er1
26440 cat conftest.err >&5
a848cd7e
SC
26441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442 (exit $ac_status); } &&
9b8888f9 26443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26445 (eval $ac_try) 2>&5
26446 ac_status=$?
26447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26448 (exit $ac_status); }; } &&
26449 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26451 (eval $ac_try) 2>&5
26452 ac_status=$?
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); }; }; then
26455 wx_cv_expat_is_not_broken=yes
26456else
26457 echo "$as_me: failed program was:" >&5
26458sed 's/^/| /' conftest.$ac_ext >&5
26459
26460wx_cv_expat_is_not_broken=no
26461
26462fi
ac1cb8d3 26463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
26464 ac_ext=c
26465ac_cpp='$CPP $CPPFLAGS'
26466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26468ac_compiler_gnu=$ac_cv_c_compiler_gnu
26469
a848cd7e
SC
26470
26471
26472fi
26473echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26474echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26475 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26476 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26477echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26478if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26479 echo $ECHO_N "(cached) $ECHO_C" >&6
26480else
26481 ac_check_lib_save_LIBS=$LIBS
26482LIBS="-lexpat $LIBS"
26483cat >conftest.$ac_ext <<_ACEOF
26484/* confdefs.h. */
26485_ACEOF
26486cat confdefs.h >>conftest.$ac_ext
26487cat >>conftest.$ac_ext <<_ACEOF
26488/* end confdefs.h. */
26489
26490/* Override any gcc2 internal prototype to avoid an error. */
26491#ifdef __cplusplus
26492extern "C"
26493#endif
26494/* We use char because int might match the return type of a gcc2
26495 builtin and then its argument prototype would still apply. */
26496char XML_ParserCreate ();
26497int
26498main ()
26499{
26500XML_ParserCreate ();
26501 ;
26502 return 0;
26503}
26504_ACEOF
26505rm -f conftest.$ac_objext conftest$ac_exeext
26506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26507 (eval $ac_link) 2>conftest.er1
a848cd7e 26508 ac_status=$?
ac1cb8d3
VS
26509 grep -v '^ *+' conftest.er1 >conftest.err
26510 rm -f conftest.er1
26511 cat conftest.err >&5
a848cd7e
SC
26512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); } &&
fd5199d6 26514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26516 (eval $ac_try) 2>&5
26517 ac_status=$?
26518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26519 (exit $ac_status); }; } &&
26520 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26522 (eval $ac_try) 2>&5
26523 ac_status=$?
26524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); }; }; then
26526 ac_cv_lib_expat_XML_ParserCreate=yes
26527else
26528 echo "$as_me: failed program was:" >&5
26529sed 's/^/| /' conftest.$ac_ext >&5
26530
26531ac_cv_lib_expat_XML_ParserCreate=no
26532fi
ac1cb8d3
VS
26533rm -f conftest.err conftest.$ac_objext \
26534 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26535LIBS=$ac_check_lib_save_LIBS
26536fi
26537echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26538echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26539if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26540 EXPAT_LINK=" -lexpat"
26541fi
26542
26543 fi
26544 fi
26545 if test "x$EXPAT_LINK" = "x" ; then
26546 if test "$wxUSE_EXPAT" = "sys" ; then
26547 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26548echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26549 { (exit 1); exit 1; }; }
26550 else
26551 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26552echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26553 wxUSE_EXPAT=builtin
26554 fi
26555 else
26556 wxUSE_EXPAT=sys
26557 fi
26558 fi
26559 if test "$wxUSE_EXPAT" = "builtin" ; then
26560
26561
26562subdirs="$subdirs src/expat"
26563
26564 fi
26565fi
26566
26567
26568
26569if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26570 if test "${ac_cv_header_mspack_h+set}" = set; then
26571 echo "$as_me:$LINENO: checking for mspack.h" >&5
26572echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26573if test "${ac_cv_header_mspack_h+set}" = set; then
26574 echo $ECHO_N "(cached) $ECHO_C" >&6
26575fi
26576echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26577echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26578else
26579 # Is the header compilable?
26580echo "$as_me:$LINENO: checking mspack.h usability" >&5
26581echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26582cat >conftest.$ac_ext <<_ACEOF
26583/* confdefs.h. */
26584_ACEOF
26585cat confdefs.h >>conftest.$ac_ext
26586cat >>conftest.$ac_ext <<_ACEOF
26587/* end confdefs.h. */
26588$ac_includes_default
26589#include <mspack.h>
26590_ACEOF
26591rm -f conftest.$ac_objext
26592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26593 (eval $ac_compile) 2>conftest.er1
a848cd7e 26594 ac_status=$?
ac1cb8d3
VS
26595 grep -v '^ *+' conftest.er1 >conftest.err
26596 rm -f conftest.er1
26597 cat conftest.err >&5
a848cd7e
SC
26598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599 (exit $ac_status); } &&
fd5199d6 26600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26602 (eval $ac_try) 2>&5
26603 ac_status=$?
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); }; } &&
26606 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26608 (eval $ac_try) 2>&5
26609 ac_status=$?
26610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611 (exit $ac_status); }; }; then
26612 ac_header_compiler=yes
26613else
26614 echo "$as_me: failed program was:" >&5
26615sed 's/^/| /' conftest.$ac_ext >&5
26616
26617ac_header_compiler=no
26618fi
ac1cb8d3 26619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26620echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26621echo "${ECHO_T}$ac_header_compiler" >&6
26622
26623# Is the header present?
26624echo "$as_me:$LINENO: checking mspack.h presence" >&5
26625echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26626cat >conftest.$ac_ext <<_ACEOF
26627/* confdefs.h. */
26628_ACEOF
26629cat confdefs.h >>conftest.$ac_ext
26630cat >>conftest.$ac_ext <<_ACEOF
26631/* end confdefs.h. */
26632#include <mspack.h>
26633_ACEOF
26634if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26636 ac_status=$?
26637 grep -v '^ *+' conftest.er1 >conftest.err
26638 rm -f conftest.er1
26639 cat conftest.err >&5
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); } >/dev/null; then
26642 if test -s conftest.err; then
fd5199d6
VZ
26643 ac_cpp_err=$ac_c_preproc_warn_flag
26644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26645 else
26646 ac_cpp_err=
26647 fi
26648else
26649 ac_cpp_err=yes
26650fi
26651if test -z "$ac_cpp_err"; then
26652 ac_header_preproc=yes
26653else
26654 echo "$as_me: failed program was:" >&5
26655sed 's/^/| /' conftest.$ac_ext >&5
26656
26657 ac_header_preproc=no
26658fi
26659rm -f conftest.err conftest.$ac_ext
26660echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26661echo "${ECHO_T}$ac_header_preproc" >&6
26662
26663# So? What about this header?
fd5199d6 26664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 26665 yes:no: )
a848cd7e
SC
26666 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26667echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26668 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26669echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26670 ac_header_preproc=yes
a848cd7e 26671 ;;
ac1cb8d3 26672 no:yes:* )
a848cd7e
SC
26673 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26674echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26675 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26676echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26677 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26678echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26679 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26680echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26681 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26682echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26683 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26684echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26685 (
26686 cat <<\_ASBOX
ac1cb8d3
VS
26687## ----------------------------------------- ##
26688## Report this to wx-dev@lists.wxwidgets.org ##
26689## ----------------------------------------- ##
a848cd7e
SC
26690_ASBOX
26691 ) |
26692 sed "s/^/$as_me: WARNING: /" >&2
26693 ;;
26694esac
26695echo "$as_me:$LINENO: checking for mspack.h" >&5
26696echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26697if test "${ac_cv_header_mspack_h+set}" = set; then
26698 echo $ECHO_N "(cached) $ECHO_C" >&6
26699else
26700 ac_cv_header_mspack_h=$ac_header_preproc
26701fi
26702echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26703echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26704
26705fi
26706if test $ac_cv_header_mspack_h = yes; then
26707 found_mspack_h=1
26708fi
26709
26710
26711 if test "x$found_mspack_h" = "x1"; then
26712 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26713echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26714if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26715 echo $ECHO_N "(cached) $ECHO_C" >&6
26716else
26717 ac_check_lib_save_LIBS=$LIBS
26718LIBS="-lmspack $LIBS"
26719cat >conftest.$ac_ext <<_ACEOF
26720/* confdefs.h. */
26721_ACEOF
26722cat confdefs.h >>conftest.$ac_ext
26723cat >>conftest.$ac_ext <<_ACEOF
26724/* end confdefs.h. */
26725
26726/* Override any gcc2 internal prototype to avoid an error. */
26727#ifdef __cplusplus
26728extern "C"
26729#endif
26730/* We use char because int might match the return type of a gcc2
26731 builtin and then its argument prototype would still apply. */
26732char mspack_create_chm_decompressor ();
26733int
26734main ()
26735{
26736mspack_create_chm_decompressor ();
26737 ;
26738 return 0;
26739}
26740_ACEOF
26741rm -f conftest.$ac_objext conftest$ac_exeext
26742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26743 (eval $ac_link) 2>conftest.er1
a848cd7e 26744 ac_status=$?
ac1cb8d3
VS
26745 grep -v '^ *+' conftest.er1 >conftest.err
26746 rm -f conftest.er1
26747 cat conftest.err >&5
a848cd7e
SC
26748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749 (exit $ac_status); } &&
fd5199d6 26750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26752 (eval $ac_try) 2>&5
26753 ac_status=$?
26754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755 (exit $ac_status); }; } &&
26756 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26758 (eval $ac_try) 2>&5
26759 ac_status=$?
26760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761 (exit $ac_status); }; }; then
26762 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26763else
26764 echo "$as_me: failed program was:" >&5
26765sed 's/^/| /' conftest.$ac_ext >&5
26766
26767ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26768fi
ac1cb8d3
VS
26769rm -f conftest.err conftest.$ac_objext \
26770 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26771LIBS=$ac_check_lib_save_LIBS
26772fi
26773echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26774echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26775if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26776 MSPACK_LINK=" -lmspack"
26777fi
26778
26779 fi
26780 if test "x$MSPACK_LINK" = "x" ; then
26781 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26782 fi
26783fi
26784
26785if test "$wxUSE_LIBMSPACK" != "no"; then
26786 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26787#define wxUSE_LIBMSPACK 1
26788_ACEOF
26789
a848cd7e
SC
26790fi
26791
26792
26793
26794AFMINSTALL=
26795WIN32INSTALL=
26796
26797TOOLKIT=
26798TOOLKIT_INCLUDE=
26799WIDGET_SET=
26800
26801if test "$USE_WIN32" = 1 ; then
26802
26803for ac_header in w32api.h
26804do
26805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26806if eval "test \"\${$as_ac_Header+set}\" = set"; then
26807 echo "$as_me:$LINENO: checking for $ac_header" >&5
26808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26809if eval "test \"\${$as_ac_Header+set}\" = set"; then
26810 echo $ECHO_N "(cached) $ECHO_C" >&6
26811fi
26812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26814else
26815 # Is the header compilable?
26816echo "$as_me:$LINENO: checking $ac_header usability" >&5
26817echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26818cat >conftest.$ac_ext <<_ACEOF
26819/* confdefs.h. */
26820_ACEOF
26821cat confdefs.h >>conftest.$ac_ext
26822cat >>conftest.$ac_ext <<_ACEOF
26823/* end confdefs.h. */
26824$ac_includes_default
26825#include <$ac_header>
26826_ACEOF
26827rm -f conftest.$ac_objext
26828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26829 (eval $ac_compile) 2>conftest.er1
a848cd7e 26830 ac_status=$?
ac1cb8d3
VS
26831 grep -v '^ *+' conftest.er1 >conftest.err
26832 rm -f conftest.er1
26833 cat conftest.err >&5
a848cd7e
SC
26834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835 (exit $ac_status); } &&
fd5199d6 26836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26838 (eval $ac_try) 2>&5
26839 ac_status=$?
26840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841 (exit $ac_status); }; } &&
26842 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26844 (eval $ac_try) 2>&5
26845 ac_status=$?
26846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847 (exit $ac_status); }; }; then
26848 ac_header_compiler=yes
26849else
26850 echo "$as_me: failed program was:" >&5
26851sed 's/^/| /' conftest.$ac_ext >&5
26852
26853ac_header_compiler=no
26854fi
ac1cb8d3 26855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26856echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26857echo "${ECHO_T}$ac_header_compiler" >&6
26858
26859# Is the header present?
26860echo "$as_me:$LINENO: checking $ac_header presence" >&5
26861echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26862cat >conftest.$ac_ext <<_ACEOF
26863/* confdefs.h. */
26864_ACEOF
26865cat confdefs.h >>conftest.$ac_ext
26866cat >>conftest.$ac_ext <<_ACEOF
26867/* end confdefs.h. */
26868#include <$ac_header>
26869_ACEOF
26870if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26872 ac_status=$?
26873 grep -v '^ *+' conftest.er1 >conftest.err
26874 rm -f conftest.er1
26875 cat conftest.err >&5
26876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877 (exit $ac_status); } >/dev/null; then
26878 if test -s conftest.err; then
fd5199d6
VZ
26879 ac_cpp_err=$ac_c_preproc_warn_flag
26880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26881 else
26882 ac_cpp_err=
26883 fi
26884else
26885 ac_cpp_err=yes
26886fi
26887if test -z "$ac_cpp_err"; then
26888 ac_header_preproc=yes
26889else
26890 echo "$as_me: failed program was:" >&5
26891sed 's/^/| /' conftest.$ac_ext >&5
26892
26893 ac_header_preproc=no
26894fi
26895rm -f conftest.err conftest.$ac_ext
26896echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26897echo "${ECHO_T}$ac_header_preproc" >&6
26898
26899# So? What about this header?
fd5199d6 26900case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 26901 yes:no: )
a848cd7e
SC
26902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26903echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26905echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26906 ac_header_preproc=yes
a848cd7e 26907 ;;
ac1cb8d3 26908 no:yes:* )
a848cd7e
SC
26909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26910echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26912echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26914echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26916echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26918echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26920echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26921 (
26922 cat <<\_ASBOX
ac1cb8d3
VS
26923## ----------------------------------------- ##
26924## Report this to wx-dev@lists.wxwidgets.org ##
26925## ----------------------------------------- ##
a848cd7e
SC
26926_ASBOX
26927 ) |
26928 sed "s/^/$as_me: WARNING: /" >&2
26929 ;;
26930esac
26931echo "$as_me:$LINENO: checking for $ac_header" >&5
26932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26933if eval "test \"\${$as_ac_Header+set}\" = set"; then
26934 echo $ECHO_N "(cached) $ECHO_C" >&6
26935else
ac1cb8d3 26936 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
26937fi
26938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26939echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26940
26941fi
26942if test `eval echo '${'$as_ac_Header'}'` = yes; then
26943 cat >>confdefs.h <<_ACEOF
26944#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26945_ACEOF
26946
26947fi
26948
26949done
26950
26951 if test "${ac_cv_header_windows_h+set}" = set; then
26952 echo "$as_me:$LINENO: checking for windows.h" >&5
26953echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26954if test "${ac_cv_header_windows_h+set}" = set; then
26955 echo $ECHO_N "(cached) $ECHO_C" >&6
26956fi
26957echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26958echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26959else
26960 # Is the header compilable?
26961echo "$as_me:$LINENO: checking windows.h usability" >&5
26962echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26963cat >conftest.$ac_ext <<_ACEOF
26964/* confdefs.h. */
26965_ACEOF
26966cat confdefs.h >>conftest.$ac_ext
26967cat >>conftest.$ac_ext <<_ACEOF
26968/* end confdefs.h. */
26969$ac_includes_default
26970#include <windows.h>
26971_ACEOF
26972rm -f conftest.$ac_objext
26973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26974 (eval $ac_compile) 2>conftest.er1
a848cd7e 26975 ac_status=$?
ac1cb8d3
VS
26976 grep -v '^ *+' conftest.er1 >conftest.err
26977 rm -f conftest.er1
26978 cat conftest.err >&5
a848cd7e
SC
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); } &&
fd5199d6 26981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26983 (eval $ac_try) 2>&5
26984 ac_status=$?
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); }; } &&
26987 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26989 (eval $ac_try) 2>&5
26990 ac_status=$?
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); }; }; then
26993 ac_header_compiler=yes
26994else
26995 echo "$as_me: failed program was:" >&5
26996sed 's/^/| /' conftest.$ac_ext >&5
26997
26998ac_header_compiler=no
26999fi
ac1cb8d3 27000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27001echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27002echo "${ECHO_T}$ac_header_compiler" >&6
27003
27004# Is the header present?
27005echo "$as_me:$LINENO: checking windows.h presence" >&5
27006echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27007cat >conftest.$ac_ext <<_ACEOF
27008/* confdefs.h. */
27009_ACEOF
27010cat confdefs.h >>conftest.$ac_ext
27011cat >>conftest.$ac_ext <<_ACEOF
27012/* end confdefs.h. */
27013#include <windows.h>
27014_ACEOF
27015if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27017 ac_status=$?
27018 grep -v '^ *+' conftest.er1 >conftest.err
27019 rm -f conftest.er1
27020 cat conftest.err >&5
27021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022 (exit $ac_status); } >/dev/null; then
27023 if test -s conftest.err; then
fd5199d6
VZ
27024 ac_cpp_err=$ac_c_preproc_warn_flag
27025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27026 else
27027 ac_cpp_err=
27028 fi
27029else
27030 ac_cpp_err=yes
27031fi
27032if test -z "$ac_cpp_err"; then
27033 ac_header_preproc=yes
27034else
27035 echo "$as_me: failed program was:" >&5
27036sed 's/^/| /' conftest.$ac_ext >&5
27037
27038 ac_header_preproc=no
27039fi
27040rm -f conftest.err conftest.$ac_ext
27041echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27042echo "${ECHO_T}$ac_header_preproc" >&6
27043
27044# So? What about this header?
fd5199d6 27045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 27046 yes:no: )
a848cd7e
SC
27047 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27048echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27049 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27050echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27051 ac_header_preproc=yes
a848cd7e 27052 ;;
ac1cb8d3 27053 no:yes:* )
a848cd7e
SC
27054 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27055echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27056 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
27057echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
27058 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27059echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27060 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
27061echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27062 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27063echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27064 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27065echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27066 (
27067 cat <<\_ASBOX
ac1cb8d3
VS
27068## ----------------------------------------- ##
27069## Report this to wx-dev@lists.wxwidgets.org ##
27070## ----------------------------------------- ##
a848cd7e
SC
27071_ASBOX
27072 ) |
27073 sed "s/^/$as_me: WARNING: /" >&2
27074 ;;
27075esac
27076echo "$as_me:$LINENO: checking for windows.h" >&5
27077echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27078if test "${ac_cv_header_windows_h+set}" = set; then
27079 echo $ECHO_N "(cached) $ECHO_C" >&6
27080else
27081 ac_cv_header_windows_h=$ac_header_preproc
27082fi
27083echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27084echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27085
27086fi
27087if test $ac_cv_header_windows_h = yes; then
27088 :
27089else
27090
27091 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27092echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27093 { (exit 1); exit 1; }; }
27094
27095fi
27096
27097
27098
27099 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27100
27101 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27102 LIBS="$LIBS -loleacc"
27103 fi
27104
27105 case "${host}" in
27106 *-*-cygwin* )
27107 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
27108 esac
27109
27110 if test "$wxUSE_ODBC" = "sys" ; then
27111 wxUSE_ODBC = "yes"
27112 fi
27113 if test "$wxUSE_ODBC" = "yes" ; then
27114 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27115 cat >>confdefs.h <<\_ACEOF
27116#define wxUSE_ODBC 1
27117_ACEOF
27118
27119 fi
27120
370d2fd7 27121 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27122 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27123
004ee6da 27124 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27125
a848cd7e 27126 WIN32INSTALL=win32install
5f41d1bf
MW
27127
27128 echo "$as_me:$LINENO: checking for boolean" >&5
27129echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27130if test "${ac_cv_type_boolean+set}" = set; then
27131 echo $ECHO_N "(cached) $ECHO_C" >&6
27132else
27133 cat >conftest.$ac_ext <<_ACEOF
27134/* confdefs.h. */
27135_ACEOF
27136cat confdefs.h >>conftest.$ac_ext
27137cat >>conftest.$ac_ext <<_ACEOF
27138/* end confdefs.h. */
27139#include <windows.h>
27140
27141int
27142main ()
27143{
27144if ((boolean *) 0)
27145 return 0;
27146if (sizeof (boolean))
27147 return 0;
27148 ;
27149 return 0;
27150}
27151_ACEOF
27152rm -f conftest.$ac_objext
27153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27154 (eval $ac_compile) 2>conftest.er1
27155 ac_status=$?
27156 grep -v '^ *+' conftest.er1 >conftest.err
27157 rm -f conftest.er1
27158 cat conftest.err >&5
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'
5f41d1bf
MW
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'
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_cv_type_boolean=yes
27174else
27175 echo "$as_me: failed program was:" >&5
27176sed 's/^/| /' conftest.$ac_ext >&5
27177
27178ac_cv_type_boolean=no
27179fi
27180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27181fi
27182echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27183echo "${ECHO_T}$ac_cv_type_boolean" >&6
27184if test $ac_cv_type_boolean = yes; then
27185
27186cat >>confdefs.h <<_ACEOF
27187#define HAVE_BOOLEAN 1
27188_ACEOF
27189
27190
27191fi
27192
dcfd4ac4
MW
27193
27194
27195for ac_header in pbt.h
27196do
27197as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27198if eval "test \"\${$as_ac_Header+set}\" = set"; then
27199 echo "$as_me:$LINENO: checking for $ac_header" >&5
27200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27201if eval "test \"\${$as_ac_Header+set}\" = set"; then
27202 echo $ECHO_N "(cached) $ECHO_C" >&6
27203fi
27204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27205echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27206else
27207 # Is the header compilable?
27208echo "$as_me:$LINENO: checking $ac_header usability" >&5
27209echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27210cat >conftest.$ac_ext <<_ACEOF
27211/* confdefs.h. */
27212_ACEOF
27213cat confdefs.h >>conftest.$ac_ext
27214cat >>conftest.$ac_ext <<_ACEOF
27215/* end confdefs.h. */
27216$ac_includes_default
27217#include <$ac_header>
27218_ACEOF
27219rm -f conftest.$ac_objext
27220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27221 (eval $ac_compile) 2>conftest.er1
27222 ac_status=$?
27223 grep -v '^ *+' conftest.er1 >conftest.err
27224 rm -f conftest.er1
27225 cat conftest.err >&5
27226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227 (exit $ac_status); } &&
fd5199d6 27228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
dcfd4ac4
MW
27229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27230 (eval $ac_try) 2>&5
27231 ac_status=$?
27232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233 (exit $ac_status); }; } &&
27234 { ac_try='test -s conftest.$ac_objext'
27235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27236 (eval $ac_try) 2>&5
27237 ac_status=$?
27238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 (exit $ac_status); }; }; then
27240 ac_header_compiler=yes
27241else
27242 echo "$as_me: failed program was:" >&5
27243sed 's/^/| /' conftest.$ac_ext >&5
27244
27245ac_header_compiler=no
27246fi
27247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27248echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27249echo "${ECHO_T}$ac_header_compiler" >&6
27250
27251# Is the header present?
27252echo "$as_me:$LINENO: checking $ac_header presence" >&5
27253echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27254cat >conftest.$ac_ext <<_ACEOF
27255/* confdefs.h. */
27256_ACEOF
27257cat confdefs.h >>conftest.$ac_ext
27258cat >>conftest.$ac_ext <<_ACEOF
27259/* end confdefs.h. */
27260#include <$ac_header>
27261_ACEOF
27262if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27264 ac_status=$?
27265 grep -v '^ *+' conftest.er1 >conftest.err
27266 rm -f conftest.er1
27267 cat conftest.err >&5
27268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); } >/dev/null; then
27270 if test -s conftest.err; then
fd5199d6
VZ
27271 ac_cpp_err=$ac_c_preproc_warn_flag
27272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
dcfd4ac4
MW
27273 else
27274 ac_cpp_err=
27275 fi
27276else
27277 ac_cpp_err=yes
27278fi
27279if test -z "$ac_cpp_err"; then
27280 ac_header_preproc=yes
27281else
27282 echo "$as_me: failed program was:" >&5
27283sed 's/^/| /' conftest.$ac_ext >&5
27284
27285 ac_header_preproc=no
27286fi
27287rm -f conftest.err conftest.$ac_ext
27288echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27289echo "${ECHO_T}$ac_header_preproc" >&6
27290
27291# So? What about this header?
fd5199d6 27292case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
dcfd4ac4
MW
27293 yes:no: )
27294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27295echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27297echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27298 ac_header_preproc=yes
27299 ;;
27300 no:yes:* )
27301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27302echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27304echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27306echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27308echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27310echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27312echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27313 (
27314 cat <<\_ASBOX
27315## ----------------------------------------- ##
27316## Report this to wx-dev@lists.wxwidgets.org ##
27317## ----------------------------------------- ##
27318_ASBOX
27319 ) |
27320 sed "s/^/$as_me: WARNING: /" >&2
27321 ;;
27322esac
27323echo "$as_me:$LINENO: checking for $ac_header" >&5
27324echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27325if eval "test \"\${$as_ac_Header+set}\" = set"; then
27326 echo $ECHO_N "(cached) $ECHO_C" >&6
27327else
27328 eval "$as_ac_Header=\$ac_header_preproc"
27329fi
27330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27331echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27332
27333fi
27334if test `eval echo '${'$as_ac_Header'}'` = yes; then
27335 cat >>confdefs.h <<_ACEOF
27336#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27337_ACEOF
27338
27339else
27340 cat >>confdefs.h <<\_ACEOF
27341#define NEED_PBT_H 1
27342_ACEOF
27343
27344fi
27345
27346done
27347
a848cd7e
SC
27348fi
27349
27350if test "$wxUSE_GUI" = "yes"; then
27351 USE_GUI=1
27352
27353 GUI_TK_LIBRARY=
27354
27355 WXGTK12=
27356 WXGTK127=
27357 WXGTK20=
27358 WXGPE=
27359
207bc66c
RN
27360 if test "$wxUSE_COCOA" = 1 ; then
27361 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27362 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27363echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27364 wxUSE_PRINTING_ARCHITECTURE=no
27365 fi
27366 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27367 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27368echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27369 wxUSE_DRAG_AND_DROP=no
27370 fi
27371 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27372 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27373echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27374 wxUSE_DRAGIMAGE=no
27375 fi
27376 fi
27377
a848cd7e
SC
27378 if test "$wxUSE_MSW" = 1 ; then
27379 TOOLKIT=MSW
27380 GUIDIST=MSW_DIST
27381
ceec2216 27382 case "${host}" in
a848cd7e
SC
27383 *-*-mingw32* )
27384 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27385 esac
27386 fi
27387
27388 if test "$wxUSE_GTK" = 1; then
fd5199d6 27389 echo "$as_me:$LINENO: checking for GTK+ version" >&5
a848cd7e
SC
27390echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27391
27392 gtk_version_cached=1
27393 if test "${wx_cv_lib_gtk+set}" = set; then
27394 echo $ECHO_N "(cached) $ECHO_C" >&6
27395else
27396
27397 gtk_version_cached=0
27398 echo "$as_me:$LINENO: result: " >&5
27399echo "${ECHO_T}" >&6
27400
27401 GTK_MODULES=
27402 if test "$wxUSE_THREADS" = "yes"; then
27403 GTK_MODULES=gthread
27404 fi
27405
f597b41c 27406 wx_cv_lib_gtk=
5001df0d
MW
27407 if test "x$wxGTK_VERSION" != "x1"
27408 then
27409 case "${host}" in
27410 *-*-solaris2* )
27411 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27412 enable_gtktest=no
5001df0d
MW
27413 fi
27414 esac
27415
a848cd7e
SC
27416 # Check whether --enable-gtktest or --disable-gtktest was given.
27417if test "${enable_gtktest+set}" = set; then
27418 enableval="$enable_gtktest"
27419
27420else
27421 enable_gtktest=yes
27422fi;
27423
27424 pkg_config_args=gtk+-2.0
27425 for module in . $GTK_MODULES
27426 do
27427 case "$module" in
27428 gthread)
27429 pkg_config_args="$pkg_config_args gthread-2.0"
27430 ;;
27431 esac
27432 done
27433
27434 no_gtk=""
27435
27436 # Extract the first word of "pkg-config", so it can be a program name with args.
27437set dummy pkg-config; ac_word=$2
27438echo "$as_me:$LINENO: checking for $ac_word" >&5
27439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27440if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27441 echo $ECHO_N "(cached) $ECHO_C" >&6
27442else
27443 case $PKG_CONFIG in
27444 [\\/]* | ?:[\\/]*)
27445 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27446 ;;
27447 *)
27448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27449for as_dir in $PATH
27450do
27451 IFS=$as_save_IFS
27452 test -z "$as_dir" && as_dir=.
27453 for ac_exec_ext in '' $ac_executable_extensions; do
27454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27455 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27457 break 2
27458 fi
27459done
27460done
27461
27462 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27463 ;;
27464esac
27465fi
27466PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27467
27468if test -n "$PKG_CONFIG"; then
27469 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27470echo "${ECHO_T}$PKG_CONFIG" >&6
27471else
27472 echo "$as_me:$LINENO: result: no" >&5
27473echo "${ECHO_T}no" >&6
27474fi
27475
27476
27477 if test x$PKG_CONFIG != xno ; then
27478 if pkg-config --atleast-pkgconfig-version 0.7 ; then
27479 :
27480 else
c2218763 27481 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
27482 no_gtk=yes
27483 PKG_CONFIG=no
27484 fi
27485 else
27486 no_gtk=yes
27487 fi
27488
27489 min_gtk_version=2.0.0
27490 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27491echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27492
27493 if test x$PKG_CONFIG != xno ; then
27494 ## don't try to run the test against uninstalled libtool libs
27495 if $PKG_CONFIG --uninstalled $pkg_config_args; then
27496 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27497 enable_gtktest=no
27498 fi
27499
27500 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27501 :
27502 else
27503 no_gtk=yes
27504 fi
27505 fi
27506
27507 if test x"$no_gtk" = x ; then
27508 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27509 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27510 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27511 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27512 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27513 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27514 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27515 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27516 if test "x$enable_gtktest" = "xyes" ; then
27517 ac_save_CFLAGS="$CFLAGS"
27518 ac_save_LIBS="$LIBS"
27519 CFLAGS="$CFLAGS $GTK_CFLAGS"
27520 LIBS="$GTK_LIBS $LIBS"
27521 rm -f conf.gtktest
27522 if test "$cross_compiling" = yes; then
27523 echo $ac_n "cross compiling; assumed OK... $ac_c"
27524else
27525 cat >conftest.$ac_ext <<_ACEOF
27526/* confdefs.h. */
27527_ACEOF
27528cat confdefs.h >>conftest.$ac_ext
27529cat >>conftest.$ac_ext <<_ACEOF
27530/* end confdefs.h. */
27531
27532#include <gtk/gtk.h>
27533#include <stdio.h>
27534#include <stdlib.h>
27535
27536int
27537main ()
27538{
27539 int major, minor, micro;
27540 char *tmp_version;
27541
27542 system ("touch conf.gtktest");
27543
27544 /* HP/UX 9 (%@#!) writes to sscanf strings */
27545 tmp_version = g_strdup("$min_gtk_version");
27546 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27547 printf("%s, bad version string\n", "$min_gtk_version");
27548 exit(1);
27549 }
27550
27551 if ((gtk_major_version != $gtk_config_major_version) ||
27552 (gtk_minor_version != $gtk_config_minor_version) ||
27553 (gtk_micro_version != $gtk_config_micro_version))
27554 {
27555 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27556 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27557 gtk_major_version, gtk_minor_version, gtk_micro_version);
27558 printf ("*** was found! If pkg-config was correct, then it is best\n");
27559 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27560 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27561 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27562 printf("*** required on your system.\n");
27563 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27564 printf("*** to point to the correct configuration files\n");
27565 }
27566 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27567 (gtk_minor_version != GTK_MINOR_VERSION) ||
27568 (gtk_micro_version != GTK_MICRO_VERSION))
27569 {
27570 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27571 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27572 printf("*** library (version %d.%d.%d)\n",
27573 gtk_major_version, gtk_minor_version, gtk_micro_version);
27574 }
27575 else
27576 {
27577 if ((gtk_major_version > major) ||
27578 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27579 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27580 {
27581 return 0;
27582 }
27583 else
27584 {
27585 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27586 gtk_major_version, gtk_minor_version, gtk_micro_version);
27587 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27588 major, minor, micro);
27589 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27590 printf("***\n");
27591 printf("*** If you have already installed a sufficiently new version, this error\n");
27592 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27593 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27594 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27595 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27596 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27597 printf("*** so that the correct libraries are found at run-time))\n");
27598 }
27599 }
27600 return 1;
27601}
27602
27603_ACEOF
27604rm -f conftest$ac_exeext
27605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27606 (eval $ac_link) 2>&5
27607 ac_status=$?
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27611 (eval $ac_try) 2>&5
27612 ac_status=$?
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); }; }; then
27615 :
27616else
27617 echo "$as_me: program exited with status $ac_status" >&5
27618echo "$as_me: failed program was:" >&5
27619sed 's/^/| /' conftest.$ac_ext >&5
27620
27621( exit $ac_status )
27622no_gtk=yes
27623fi
ac1cb8d3 27624rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27625fi
27626 CFLAGS="$ac_save_CFLAGS"
27627 LIBS="$ac_save_LIBS"
27628 fi
27629 fi
27630 if test "x$no_gtk" = x ; then
27631 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27632echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27633 wx_cv_lib_gtk=2.0
27634 else
27635 echo "$as_me:$LINENO: result: no" >&5
27636echo "${ECHO_T}no" >&6
27637 if test "$PKG_CONFIG" = "no" ; then
27638 echo "*** A new enough version of pkg-config was not found."
27639 echo "*** See http://pkgconfig.sourceforge.net"
27640 else
27641 if test -f conf.gtktest ; then
27642 :
27643 else
27644 echo "*** Could not run GTK+ test program, checking why..."
27645 ac_save_CFLAGS="$CFLAGS"
27646 ac_save_LIBS="$LIBS"
27647 CFLAGS="$CFLAGS $GTK_CFLAGS"
27648 LIBS="$LIBS $GTK_LIBS"
27649 cat >conftest.$ac_ext <<_ACEOF
27650/* confdefs.h. */
27651_ACEOF
27652cat confdefs.h >>conftest.$ac_ext
27653cat >>conftest.$ac_ext <<_ACEOF
27654/* end confdefs.h. */
27655
27656#include <gtk/gtk.h>
27657#include <stdio.h>
27658
27659int
27660main ()
27661{
27662 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27663 ;
27664 return 0;
27665}
27666_ACEOF
27667rm -f conftest.$ac_objext conftest$ac_exeext
27668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27669 (eval $ac_link) 2>conftest.er1
a848cd7e 27670 ac_status=$?
ac1cb8d3
VS
27671 grep -v '^ *+' conftest.er1 >conftest.err
27672 rm -f conftest.er1
27673 cat conftest.err >&5
a848cd7e
SC
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675 (exit $ac_status); } &&
bb9e79c0 27676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27678 (eval $ac_try) 2>&5
27679 ac_status=$?
27680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681 (exit $ac_status); }; } &&
27682 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27684 (eval $ac_try) 2>&5
27685 ac_status=$?
27686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27687 (exit $ac_status); }; }; then
27688 echo "*** The test program compiled, but did not run. This usually means"
27689 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27690 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27691 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27692 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27693 echo "*** is required on your system"
27694 echo "***"
27695 echo "*** If you have an old version installed, it is best to remove it, although"
27696 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27697else
27698 echo "$as_me: failed program was:" >&5
27699sed 's/^/| /' conftest.$ac_ext >&5
27700
27701 echo "*** The test program failed to compile or link. See the file config.log for the"
27702 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27703fi
ac1cb8d3
VS
27704rm -f conftest.err conftest.$ac_objext \
27705 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27706 CFLAGS="$ac_save_CFLAGS"
27707 LIBS="$ac_save_LIBS"
27708 fi
27709 fi
27710 GTK_CFLAGS=""
27711 GTK_LIBS=""
27712 :
27713 fi
27714
27715
27716 rm -f conf.gtktest
27717
5001df0d
MW
27718
27719 case "${host}" in
27720 *-*-solaris2* )
27721 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27722 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27723 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27724 fi
27725 if test "$wxUSE_SHARED" != "yes"; then
27726 GTK_LIBS="$GTK_LIBS -lX11"
27727 fi
27728 esac
f597b41c
MW
27729 fi
27730
f34ca037
MW
27731 if test -z "$wx_cv_lib_gtk"; then
27732 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
27733
27734# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27735if test "${with_gtk_prefix+set}" = set; then
27736 withval="$with_gtk_prefix"
27737 gtk_config_prefix="$withval"
27738else
27739 gtk_config_prefix=""
27740fi;
27741
27742# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27743if test "${with_gtk_exec_prefix+set}" = set; then
27744 withval="$with_gtk_exec_prefix"
27745 gtk_config_exec_prefix="$withval"
27746else
27747 gtk_config_exec_prefix=""
27748fi;
27749# Check whether --enable-gtktest or --disable-gtktest was given.
27750if test "${enable_gtktest+set}" = set; then
27751 enableval="$enable_gtktest"
27752
27753else
27754 enable_gtktest=yes
27755fi;
27756
27757 for module in . $GTK_MODULES
27758 do
27759 case "$module" in
27760 gthread)
27761 gtk_config_args="$gtk_config_args gthread"
27762 ;;
27763 esac
27764 done
27765
27766 if test x$gtk_config_exec_prefix != x ; then
27767 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27768 if test x${GTK_CONFIG+set} != xset ; then
27769 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27770 fi
27771 fi
27772 if test x$gtk_config_prefix != x ; then
27773 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27774 if test x${GTK_CONFIG+set} != xset ; then
27775 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27776 fi
27777 fi
27778
27779 # Extract the first word of "gtk-config", so it can be a program name with args.
27780set dummy gtk-config; ac_word=$2
27781echo "$as_me:$LINENO: checking for $ac_word" >&5
27782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27783if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27784 echo $ECHO_N "(cached) $ECHO_C" >&6
27785else
27786 case $GTK_CONFIG in
27787 [\\/]* | ?:[\\/]*)
27788 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27789 ;;
27790 *)
27791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27792for as_dir in $PATH
27793do
27794 IFS=$as_save_IFS
27795 test -z "$as_dir" && as_dir=.
27796 for ac_exec_ext in '' $ac_executable_extensions; do
27797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27798 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27800 break 2
27801 fi
27802done
27803done
27804
27805 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27806 ;;
27807esac
27808fi
27809GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27810
27811if test -n "$GTK_CONFIG"; then
27812 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27813echo "${ECHO_T}$GTK_CONFIG" >&6
27814else
27815 echo "$as_me:$LINENO: result: no" >&5
27816echo "${ECHO_T}no" >&6
27817fi
27818
27819 min_gtk_version=1.2.7
27820 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27821echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27822 no_gtk=""
27823 if test "$GTK_CONFIG" = "no" ; then
27824 no_gtk=yes
27825 else
27826 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27827 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27828 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27829 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27830 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27831 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27832 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27833 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27834 if test "x$enable_gtktest" = "xyes" ; then
27835 ac_save_CFLAGS="$CFLAGS"
27836 ac_save_LIBS="$LIBS"
27837 CFLAGS="$CFLAGS $GTK_CFLAGS"
27838 LIBS="$GTK_LIBS $LIBS"
27839 rm -f conf.gtktest
27840 if test "$cross_compiling" = yes; then
27841 echo $ac_n "cross compiling; assumed OK... $ac_c"
27842else
27843 cat >conftest.$ac_ext <<_ACEOF
27844/* confdefs.h. */
27845_ACEOF
27846cat confdefs.h >>conftest.$ac_ext
27847cat >>conftest.$ac_ext <<_ACEOF
27848/* end confdefs.h. */
27849
27850#include <gtk/gtk.h>
27851#include <stdio.h>
27852#include <stdlib.h>
27853
27854int
27855main ()
27856{
27857 int major, minor, micro;
27858 char *tmp_version;
27859
27860 system ("touch conf.gtktest");
27861
27862 /* HP/UX 9 (%@#!) writes to sscanf strings */
27863 tmp_version = g_strdup("$min_gtk_version");
27864 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27865 printf("%s, bad version string\n", "$min_gtk_version");
27866 exit(1);
27867 }
27868
27869 if ((gtk_major_version != $gtk_config_major_version) ||
27870 (gtk_minor_version != $gtk_config_minor_version) ||
27871 (gtk_micro_version != $gtk_config_micro_version))
27872 {
27873 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27874 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27875 gtk_major_version, gtk_minor_version, gtk_micro_version);
27876 printf ("*** was found! If gtk-config was correct, then it is best\n");
27877 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27878 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27879 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27880 printf("*** required on your system.\n");
27881 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27882 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27883 printf("*** before re-running configure\n");
27884 }
27885#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27886 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27887 (gtk_minor_version != GTK_MINOR_VERSION) ||
27888 (gtk_micro_version != GTK_MICRO_VERSION))
27889 {
27890 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27891 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27892 printf("*** library (version %d.%d.%d)\n",
27893 gtk_major_version, gtk_minor_version, gtk_micro_version);
27894 }
27895#endif /* defined (GTK_MAJOR_VERSION) ... */
27896 else
27897 {
27898 if ((gtk_major_version > major) ||
27899 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27900 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27901 {
27902 return 0;
27903 }
27904 else
27905 {
27906 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27907 gtk_major_version, gtk_minor_version, gtk_micro_version);
27908 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27909 major, minor, micro);
27910 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27911 printf("***\n");
27912 printf("*** If you have already installed a sufficiently new version, this error\n");
27913 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27914 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27915 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27916 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27917 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27918 printf("*** so that the correct libraries are found at run-time))\n");
27919 }
27920 }
27921 return 1;
27922}
27923
27924_ACEOF
27925rm -f conftest$ac_exeext
27926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27927 (eval $ac_link) 2>&5
27928 ac_status=$?
27929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27932 (eval $ac_try) 2>&5
27933 ac_status=$?
27934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27935 (exit $ac_status); }; }; then
27936 :
27937else
27938 echo "$as_me: program exited with status $ac_status" >&5
27939echo "$as_me: failed program was:" >&5
27940sed 's/^/| /' conftest.$ac_ext >&5
27941
27942( exit $ac_status )
27943no_gtk=yes
27944fi
ac1cb8d3 27945rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27946fi
27947 CFLAGS="$ac_save_CFLAGS"
27948 LIBS="$ac_save_LIBS"
27949 fi
27950 fi
27951 if test "x$no_gtk" = x ; then
27952 echo "$as_me:$LINENO: result: yes" >&5
27953echo "${ECHO_T}yes" >&6
27954 wx_cv_lib_gtk=1.2.7
27955 else
27956 echo "$as_me:$LINENO: result: no" >&5
27957echo "${ECHO_T}no" >&6
27958 if test "$GTK_CONFIG" = "no" ; then
27959 echo "*** The gtk-config script installed by GTK could not be found"
27960 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27961 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27962 echo "*** full path to gtk-config."
27963 else
27964 if test -f conf.gtktest ; then
27965 :
27966 else
27967 echo "*** Could not run GTK test program, checking why..."
27968 CFLAGS="$CFLAGS $GTK_CFLAGS"
27969 LIBS="$LIBS $GTK_LIBS"
27970 cat >conftest.$ac_ext <<_ACEOF
27971/* confdefs.h. */
27972_ACEOF
27973cat confdefs.h >>conftest.$ac_ext
27974cat >>conftest.$ac_ext <<_ACEOF
27975/* end confdefs.h. */
27976
27977#include <gtk/gtk.h>
27978#include <stdio.h>
27979
27980int
27981main ()
27982{
27983 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27984 ;
27985 return 0;
27986}
27987_ACEOF
27988rm -f conftest.$ac_objext conftest$ac_exeext
27989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27990 (eval $ac_link) 2>conftest.er1
a848cd7e 27991 ac_status=$?
ac1cb8d3
VS
27992 grep -v '^ *+' conftest.er1 >conftest.err
27993 rm -f conftest.er1
27994 cat conftest.err >&5
a848cd7e
SC
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); } &&
bb9e79c0 27997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27999 (eval $ac_try) 2>&5
28000 ac_status=$?
28001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002 (exit $ac_status); }; } &&
28003 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28005 (eval $ac_try) 2>&5
28006 ac_status=$?
28007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28008 (exit $ac_status); }; }; then
28009 echo "*** The test program compiled, but did not run. This usually means"
28010 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28011 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28012 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28013 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28014 echo "*** is required on your system"
28015 echo "***"
28016 echo "*** If you have an old version installed, it is best to remove it, although"
28017 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28018 echo "***"
28019 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28020 echo "*** came with the system with the command"
28021 echo "***"
28022 echo "*** rpm --erase --nodeps gtk gtk-devel"
28023else
28024 echo "$as_me: failed program was:" >&5
28025sed 's/^/| /' conftest.$ac_ext >&5
28026
28027 echo "*** The test program failed to compile or link. See the file config.log for the"
28028 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28029 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28030 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28031fi
ac1cb8d3
VS
28032rm -f conftest.err conftest.$ac_objext \
28033 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28034 CFLAGS="$ac_save_CFLAGS"
28035 LIBS="$ac_save_LIBS"
28036 fi
28037 fi
28038 GTK_CFLAGS=""
28039 GTK_LIBS=""
28040 :
28041 fi
28042
28043
28044 rm -f conf.gtktest
28045
28046
f34ca037 28047 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
28048
28049# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28050if test "${with_gtk_prefix+set}" = set; then
28051 withval="$with_gtk_prefix"
28052 gtk_config_prefix="$withval"
28053else
28054 gtk_config_prefix=""
28055fi;
28056
28057# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28058if test "${with_gtk_exec_prefix+set}" = set; then
28059 withval="$with_gtk_exec_prefix"
28060 gtk_config_exec_prefix="$withval"
28061else
28062 gtk_config_exec_prefix=""
28063fi;
28064# Check whether --enable-gtktest or --disable-gtktest was given.
28065if test "${enable_gtktest+set}" = set; then
28066 enableval="$enable_gtktest"
28067
28068else
28069 enable_gtktest=yes
28070fi;
28071
28072 for module in . $GTK_MODULES
28073 do
28074 case "$module" in
28075 gthread)
28076 gtk_config_args="$gtk_config_args gthread"
28077 ;;
28078 esac
28079 done
28080
28081 if test x$gtk_config_exec_prefix != x ; then
28082 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28083 if test x${GTK_CONFIG+set} != xset ; then
28084 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28085 fi
28086 fi
28087 if test x$gtk_config_prefix != x ; then
28088 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28089 if test x${GTK_CONFIG+set} != xset ; then
28090 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28091 fi
28092 fi
28093
28094 # Extract the first word of "gtk-config", so it can be a program name with args.
28095set dummy gtk-config; ac_word=$2
28096echo "$as_me:$LINENO: checking for $ac_word" >&5
28097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28098if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28099 echo $ECHO_N "(cached) $ECHO_C" >&6
28100else
28101 case $GTK_CONFIG in
28102 [\\/]* | ?:[\\/]*)
28103 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28104 ;;
28105 *)
28106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28107for as_dir in $PATH
28108do
28109 IFS=$as_save_IFS
28110 test -z "$as_dir" && as_dir=.
28111 for ac_exec_ext in '' $ac_executable_extensions; do
28112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28113 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28115 break 2
28116 fi
28117done
28118done
28119
28120 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28121 ;;
28122esac
28123fi
28124GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28125
28126if test -n "$GTK_CONFIG"; then
28127 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28128echo "${ECHO_T}$GTK_CONFIG" >&6
28129else
28130 echo "$as_me:$LINENO: result: no" >&5
28131echo "${ECHO_T}no" >&6
28132fi
28133
28134 min_gtk_version=1.2.3
28135 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28136echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28137 no_gtk=""
28138 if test "$GTK_CONFIG" = "no" ; then
28139 no_gtk=yes
28140 else
28141 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28142 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28143 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28144 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28145 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28146 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28147 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28148 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28149 if test "x$enable_gtktest" = "xyes" ; then
28150 ac_save_CFLAGS="$CFLAGS"
28151 ac_save_LIBS="$LIBS"
28152 CFLAGS="$CFLAGS $GTK_CFLAGS"
28153 LIBS="$GTK_LIBS $LIBS"
28154 rm -f conf.gtktest
28155 if test "$cross_compiling" = yes; then
28156 echo $ac_n "cross compiling; assumed OK... $ac_c"
28157else
28158 cat >conftest.$ac_ext <<_ACEOF
28159/* confdefs.h. */
28160_ACEOF
28161cat confdefs.h >>conftest.$ac_ext
28162cat >>conftest.$ac_ext <<_ACEOF
28163/* end confdefs.h. */
28164
28165#include <gtk/gtk.h>
28166#include <stdio.h>
28167#include <stdlib.h>
28168
28169int
28170main ()
28171{
28172 int major, minor, micro;
28173 char *tmp_version;
28174
28175 system ("touch conf.gtktest");
28176
28177 /* HP/UX 9 (%@#!) writes to sscanf strings */
28178 tmp_version = g_strdup("$min_gtk_version");
28179 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28180 printf("%s, bad version string\n", "$min_gtk_version");
28181 exit(1);
28182 }
28183
28184 if ((gtk_major_version != $gtk_config_major_version) ||
28185 (gtk_minor_version != $gtk_config_minor_version) ||
28186 (gtk_micro_version != $gtk_config_micro_version))
28187 {
28188 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28189 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28190 gtk_major_version, gtk_minor_version, gtk_micro_version);
28191 printf ("*** was found! If gtk-config was correct, then it is best\n");
28192 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28193 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28194 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28195 printf("*** required on your system.\n");
28196 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28197 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28198 printf("*** before re-running configure\n");
28199 }
28200#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28201 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28202 (gtk_minor_version != GTK_MINOR_VERSION) ||
28203 (gtk_micro_version != GTK_MICRO_VERSION))
28204 {
28205 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28206 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28207 printf("*** library (version %d.%d.%d)\n",
28208 gtk_major_version, gtk_minor_version, gtk_micro_version);
28209 }
28210#endif /* defined (GTK_MAJOR_VERSION) ... */
28211 else
28212 {
28213 if ((gtk_major_version > major) ||
28214 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28215 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28216 {
28217 return 0;
28218 }
28219 else
28220 {
28221 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28222 gtk_major_version, gtk_minor_version, gtk_micro_version);
28223 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28224 major, minor, micro);
28225 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28226 printf("***\n");
28227 printf("*** If you have already installed a sufficiently new version, this error\n");
28228 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28229 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28230 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28231 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28232 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28233 printf("*** so that the correct libraries are found at run-time))\n");
28234 }
28235 }
28236 return 1;
28237}
28238
28239_ACEOF
28240rm -f conftest$ac_exeext
28241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28242 (eval $ac_link) 2>&5
28243 ac_status=$?
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28247 (eval $ac_try) 2>&5
28248 ac_status=$?
28249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250 (exit $ac_status); }; }; then
28251 :
28252else
28253 echo "$as_me: program exited with status $ac_status" >&5
28254echo "$as_me: failed program was:" >&5
28255sed 's/^/| /' conftest.$ac_ext >&5
28256
28257( exit $ac_status )
28258no_gtk=yes
28259fi
ac1cb8d3 28260rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28261fi
28262 CFLAGS="$ac_save_CFLAGS"
28263 LIBS="$ac_save_LIBS"
28264 fi
28265 fi
28266 if test "x$no_gtk" = x ; then
28267 echo "$as_me:$LINENO: result: yes" >&5
28268echo "${ECHO_T}yes" >&6
28269 wx_cv_lib_gtk=1.2.3
28270 else
28271 echo "$as_me:$LINENO: result: no" >&5
28272echo "${ECHO_T}no" >&6
28273 if test "$GTK_CONFIG" = "no" ; then
28274 echo "*** The gtk-config script installed by GTK could not be found"
28275 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28276 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28277 echo "*** full path to gtk-config."
28278 else
28279 if test -f conf.gtktest ; then
28280 :
28281 else
28282 echo "*** Could not run GTK test program, checking why..."
28283 CFLAGS="$CFLAGS $GTK_CFLAGS"
28284 LIBS="$LIBS $GTK_LIBS"
28285 cat >conftest.$ac_ext <<_ACEOF
28286/* confdefs.h. */
28287_ACEOF
28288cat confdefs.h >>conftest.$ac_ext
28289cat >>conftest.$ac_ext <<_ACEOF
28290/* end confdefs.h. */
28291
28292#include <gtk/gtk.h>
28293#include <stdio.h>
28294
28295int
28296main ()
28297{
28298 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28299 ;
28300 return 0;
28301}
28302_ACEOF
28303rm -f conftest.$ac_objext conftest$ac_exeext
28304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28305 (eval $ac_link) 2>conftest.er1
a848cd7e 28306 ac_status=$?
ac1cb8d3
VS
28307 grep -v '^ *+' conftest.er1 >conftest.err
28308 rm -f conftest.er1
28309 cat conftest.err >&5
a848cd7e
SC
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); } &&
bb9e79c0 28312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28314 (eval $ac_try) 2>&5
28315 ac_status=$?
28316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317 (exit $ac_status); }; } &&
28318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28320 (eval $ac_try) 2>&5
28321 ac_status=$?
28322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28323 (exit $ac_status); }; }; then
28324 echo "*** The test program compiled, but did not run. This usually means"
28325 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28326 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28327 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28328 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28329 echo "*** is required on your system"
28330 echo "***"
28331 echo "*** If you have an old version installed, it is best to remove it, although"
28332 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28333 echo "***"
28334 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28335 echo "*** came with the system with the command"
28336 echo "***"
28337 echo "*** rpm --erase --nodeps gtk gtk-devel"
28338else
28339 echo "$as_me: failed program was:" >&5
28340sed 's/^/| /' conftest.$ac_ext >&5
28341
28342 echo "*** The test program failed to compile or link. See the file config.log for the"
28343 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28344 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28345 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28346fi
ac1cb8d3
VS
28347rm -f conftest.err conftest.$ac_objext \
28348 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28349 CFLAGS="$ac_save_CFLAGS"
28350 LIBS="$ac_save_LIBS"
28351 fi
28352 fi
28353 GTK_CFLAGS=""
28354 GTK_LIBS=""
28355 :
28356 fi
28357
28358
28359 rm -f conf.gtktest
28360
f34ca037 28361 fi
a848cd7e
SC
28362 fi
28363 fi
28364
28365 if test -z "$wx_cv_lib_gtk"; then
28366 wx_cv_lib_gtk=none
28367 else
28368 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28369 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28370 fi
28371
28372
28373fi
28374
28375
28376 if test "$gtk_version_cached" = 1; then
28377 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28378echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28379 fi
28380
28381 case "$wx_cv_lib_gtk" in
28382 2.0) WXGTK20=1
28383 TOOLKIT_VERSION=2
28384 ;;
28385 1.2.7) WXGTK127=1
28386 WXGTK12=1
28387 ;;
28388 1.2.3) WXGTK12=1
28389 ;;
28390 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28391The development files for GTK+ were not found. For GTK+ 2, please
28392ensure that pkg-config is in the path and that gtk+-2.0.pc is
28393installed. For GTK+ 1.2 please check that gtk-config is in the path,
28394and that the version is 1.2.3 or above. Also check that the
28395libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28396--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28397 " >&5
28398echo "$as_me: error:
f597b41c
MW
28399The development files for GTK+ were not found. For GTK+ 2, please
28400ensure that pkg-config is in the path and that gtk+-2.0.pc is
28401installed. For GTK+ 1.2 please check that gtk-config is in the path,
28402and that the version is 1.2.3 or above. Also check that the
28403libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28404--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28405 " >&2;}
28406 { (exit 1); exit 1; }; }
28407 ;;
28408 esac
28409
28410 if test "$WXGTK20" = 1; then
6954625c 28411 save_CFLAGS="$CFLAGS"
304205f1 28412 save_LIBS="$LIBS"
6954625c 28413 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28414 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28415
58e65954
MW
28416 echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
28417echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
28418if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
28419 echo $ECHO_N "(cached) $ECHO_C" >&6
28420else
28421 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28422/* confdefs.h. */
28423_ACEOF
28424cat confdefs.h >>conftest.$ac_ext
28425cat >>conftest.$ac_ext <<_ACEOF
28426/* end confdefs.h. */
58e65954 28427#include <gtk/gtk.h>
304205f1 28428
d12aef51
VZ
28429int
28430main ()
28431{
58e65954
MW
28432#ifndef gtk_icon_size_lookup
28433 char *p = (char *) gtk_icon_size_lookup;
28434#endif
abc736fd
MW
28435
28436 ;
28437 return 0;
28438}
28439_ACEOF
28440rm -f conftest.$ac_objext
28441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28442 (eval $ac_compile) 2>conftest.er1
28443 ac_status=$?
28444 grep -v '^ *+' conftest.er1 >conftest.err
28445 rm -f conftest.er1
28446 cat conftest.err >&5
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); } &&
bb9e79c0 28449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
28450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28451 (eval $ac_try) 2>&5
28452 ac_status=$?
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); }; } &&
28455 { ac_try='test -s conftest.$ac_objext'
28456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28457 (eval $ac_try) 2>&5
28458 ac_status=$?
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); }; }; then
58e65954 28461 ac_cv_have_decl_gtk_icon_size_lookup=yes
abc736fd
MW
28462else
28463 echo "$as_me: failed program was:" >&5
28464sed 's/^/| /' conftest.$ac_ext >&5
28465
58e65954
MW
28466ac_cv_have_decl_gtk_icon_size_lookup=no
28467fi
28468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28469fi
28470echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
28471echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
28472if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
abc736fd 28473
58e65954
MW
28474cat >>confdefs.h <<_ACEOF
28475#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
abc736fd
MW
28476_ACEOF
28477
58e65954
MW
28478
28479else
28480 cat >>confdefs.h <<_ACEOF
28481#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
28482_ACEOF
28483
28484cat >>confdefs.h <<\_ACEOF
28485#define NEED_GTK_ICON_SIZE_LOOKUP 1
28486_ACEOF
abc736fd
MW
28487
28488fi
58e65954
MW
28489
28490
abc736fd 28491
e9263684
VZ
28492 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28493echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28494 cat >conftest.$ac_ext <<_ACEOF
28495/* confdefs.h. */
28496_ACEOF
28497cat confdefs.h >>conftest.$ac_ext
28498cat >>conftest.$ac_ext <<_ACEOF
28499/* end confdefs.h. */
28500
28501 #include <gtk/gtk.h>
28502
28503int
28504main ()
28505{
28506
28507 #if !GTK_CHECK_VERSION(2,6,0)
28508 Not GTK+ 2.6
28509 #endif
28510
28511 ;
28512 return 0;
28513}
28514_ACEOF
28515rm -f conftest.$ac_objext
28516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28517 (eval $ac_compile) 2>conftest.er1
28518 ac_status=$?
28519 grep -v '^ *+' conftest.er1 >conftest.err
28520 rm -f conftest.er1
28521 cat conftest.err >&5
28522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523 (exit $ac_status); } &&
bb9e79c0 28524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
28525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28526 (eval $ac_try) 2>&5
28527 ac_status=$?
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); }; } &&
28530 { ac_try='test -s conftest.$ac_objext'
28531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28532 (eval $ac_try) 2>&5
28533 ac_status=$?
28534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535 (exit $ac_status); }; }; then
28536
28537 cat >>confdefs.h <<\_ACEOF
28538#define __WXGTK26__ 1
28539_ACEOF
28540
28541 cat >>confdefs.h <<\_ACEOF
28542#define __WXGTK24__ 1
28543_ACEOF
28544
28545 echo "$as_me:$LINENO: result: yes" >&5
28546echo "${ECHO_T}yes" >&6
28547 ac_wxgtk26=1
28548
28549else
28550 echo "$as_me: failed program was:" >&5
28551sed 's/^/| /' conftest.$ac_ext >&5
28552
28553
28554 echo "$as_me:$LINENO: result: no" >&5
28555echo "${ECHO_T}no" >&6
28556 ac_wxgtk26=0
28557
28558fi
28559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28560
28561 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
28562 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28563echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28564 cat >conftest.$ac_ext <<_ACEOF
28565/* confdefs.h. */
28566_ACEOF
28567cat confdefs.h >>conftest.$ac_ext
28568cat >>conftest.$ac_ext <<_ACEOF
28569/* end confdefs.h. */
28570
28571 #include <gtk/gtk.h>
28572
28573int
28574main ()
28575{
28576
28577 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 28578 Not GTK+ 2.4
9755e73b
VS
28579 #endif
28580
28581 ;
28582 return 0;
28583}
28584_ACEOF
28585rm -f conftest.$ac_objext
28586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28587 (eval $ac_compile) 2>conftest.er1
28588 ac_status=$?
28589 grep -v '^ *+' conftest.er1 >conftest.err
28590 rm -f conftest.er1
28591 cat conftest.err >&5
28592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); } &&
bb9e79c0 28594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
28595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28596 (eval $ac_try) 2>&5
28597 ac_status=$?
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); }; } &&
28600 { ac_try='test -s conftest.$ac_objext'
28601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28602 (eval $ac_try) 2>&5
28603 ac_status=$?
28604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605 (exit $ac_status); }; }; then
28606
28607 cat >>confdefs.h <<\_ACEOF
28608#define __WXGTK24__ 1
28609_ACEOF
28610
28611 echo "$as_me:$LINENO: result: yes" >&5
28612echo "${ECHO_T}yes" >&6
28613
28614else
28615 echo "$as_me: failed program was:" >&5
28616sed 's/^/| /' conftest.$ac_ext >&5
28617
28618
28619 echo "$as_me:$LINENO: result: no" >&5
28620echo "${ECHO_T}no" >&6
28621
28622fi
28623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 28624 fi
9755e73b 28625
6954625c 28626 CFLAGS="$save_CFLAGS"
304205f1 28627 LIBS="$save_LIBS"
a848cd7e
SC
28628 else
28629 if test "$wxUSE_UNICODE" = "yes"; then
28630 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28631echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28632 wxUSE_UNICODE=no
28633 fi
64b75e64
RD
28634
28635 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28636echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28637if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28638 echo $ECHO_N "(cached) $ECHO_C" >&6
28639else
28640 ac_check_lib_save_LIBS=$LIBS
28641LIBS="-lgdk $LIBS"
28642cat >conftest.$ac_ext <<_ACEOF
28643/* confdefs.h. */
28644_ACEOF
28645cat confdefs.h >>conftest.$ac_ext
28646cat >>conftest.$ac_ext <<_ACEOF
28647/* end confdefs.h. */
28648
28649/* Override any gcc2 internal prototype to avoid an error. */
28650#ifdef __cplusplus
28651extern "C"
28652#endif
28653/* We use char because int might match the return type of a gcc2
28654 builtin and then its argument prototype would still apply. */
28655char gdk_im_open ();
28656int
28657main ()
28658{
28659gdk_im_open ();
28660 ;
28661 return 0;
28662}
28663_ACEOF
28664rm -f conftest.$ac_objext conftest$ac_exeext
28665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28666 (eval $ac_link) 2>conftest.er1
28667 ac_status=$?
28668 grep -v '^ *+' conftest.er1 >conftest.err
28669 rm -f conftest.er1
28670 cat conftest.err >&5
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); } &&
bb9e79c0 28673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
64b75e64
RD
28674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28675 (eval $ac_try) 2>&5
28676 ac_status=$?
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); }; } &&
28679 { ac_try='test -s conftest$ac_exeext'
28680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28681 (eval $ac_try) 2>&5
28682 ac_status=$?
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); }; }; then
28685 ac_cv_lib_gdk_gdk_im_open=yes
28686else
28687 echo "$as_me: failed program was:" >&5
28688sed 's/^/| /' conftest.$ac_ext >&5
28689
28690ac_cv_lib_gdk_gdk_im_open=no
28691fi
28692rm -f conftest.err conftest.$ac_objext \
28693 conftest$ac_exeext conftest.$ac_ext
28694LIBS=$ac_check_lib_save_LIBS
28695fi
28696echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28697echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28698if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28699 cat >>confdefs.h <<\_ACEOF
28700#define HAVE_XIM 1
28701_ACEOF
28702
28703fi
28704
a848cd7e
SC
28705 fi
28706
28707 if test "$USE_DARWIN" != 1; then
28708
28709for ac_func in poll
28710do
28711as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28712echo "$as_me:$LINENO: checking for $ac_func" >&5
28713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28714if eval "test \"\${$as_ac_var+set}\" = set"; then
28715 echo $ECHO_N "(cached) $ECHO_C" >&6
28716else
28717 cat >conftest.$ac_ext <<_ACEOF
28718/* confdefs.h. */
28719_ACEOF
28720cat confdefs.h >>conftest.$ac_ext
28721cat >>conftest.$ac_ext <<_ACEOF
28722/* end confdefs.h. */
ac1cb8d3
VS
28723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28725#define $ac_func innocuous_$ac_func
28726
a848cd7e
SC
28727/* System header to define __stub macros and hopefully few prototypes,
28728 which can conflict with char $ac_func (); below.
28729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28730 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28731
a848cd7e
SC
28732#ifdef __STDC__
28733# include <limits.h>
28734#else
28735# include <assert.h>
28736#endif
ac1cb8d3
VS
28737
28738#undef $ac_func
28739
a848cd7e
SC
28740/* Override any gcc2 internal prototype to avoid an error. */
28741#ifdef __cplusplus
28742extern "C"
28743{
28744#endif
28745/* We use char because int might match the return type of a gcc2
28746 builtin and then its argument prototype would still apply. */
28747char $ac_func ();
28748/* The GNU C library defines this for functions which it implements
28749 to always fail with ENOSYS. Some functions are actually named
28750 something starting with __ and the normal name is an alias. */
28751#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28752choke me
28753#else
28754char (*f) () = $ac_func;
28755#endif
28756#ifdef __cplusplus
28757}
28758#endif
28759
28760int
28761main ()
28762{
28763return f != $ac_func;
28764 ;
28765 return 0;
28766}
28767_ACEOF
28768rm -f conftest.$ac_objext conftest$ac_exeext
28769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28770 (eval $ac_link) 2>conftest.er1
a848cd7e 28771 ac_status=$?
ac1cb8d3
VS
28772 grep -v '^ *+' conftest.er1 >conftest.err
28773 rm -f conftest.er1
28774 cat conftest.err >&5
a848cd7e
SC
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); } &&
fd5199d6 28777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28779 (eval $ac_try) 2>&5
28780 ac_status=$?
28781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 (exit $ac_status); }; } &&
28783 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28785 (eval $ac_try) 2>&5
28786 ac_status=$?
28787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788 (exit $ac_status); }; }; then
28789 eval "$as_ac_var=yes"
28790else
28791 echo "$as_me: failed program was:" >&5
28792sed 's/^/| /' conftest.$ac_ext >&5
28793
28794eval "$as_ac_var=no"
28795fi
ac1cb8d3
VS
28796rm -f conftest.err conftest.$ac_objext \
28797 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28798fi
28799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28800echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28801if test `eval echo '${'$as_ac_var'}'` = yes; then
28802 cat >>confdefs.h <<_ACEOF
28803#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28804_ACEOF
28805
28806fi
28807done
28808
28809 fi
28810
28811 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28812 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28813
28814 AFMINSTALL=afminstall
28815 TOOLKIT=GTK
28816 GUIDIST=GTK_DIST
28817
a848cd7e
SC
28818 if test "$wxUSE_GPE" = "yes"; then
28819 echo "$as_me:$LINENO: checking for gpewidget library" >&5
28820echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28821
0ad5d837
VZ
28822 ac_find_libraries=
28823 for ac_dir in $SEARCH_LIB;
a848cd7e 28824 do
3eca31dc 28825 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28826 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28827 ac_find_libraries=$ac_dir
28828 break 2
28829 fi
28830 done
28831 done
28832
28833 if test "$ac_find_libraries" != "" ; then
28834
0ad5d837 28835 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
28836 ac_path_to_link=""
28837 else
0ad5d837
VZ
28838 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28839 result=$?
28840 if test $result = 0; then
28841 ac_path_to_link=""
28842 else
28843 ac_path_to_link=" -L$ac_find_libraries"
28844 fi
a848cd7e
SC
28845 fi
28846
28847 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28848 WXGPE=1
0ad5d837
VZ
28849 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28850echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
28851 else
28852 echo "$as_me:$LINENO: result: not found" >&5
28853echo "${ECHO_T}not found" >&6
28854 fi
28855
28856 fi
28857 fi
28858
28859 if test "$wxUSE_MGL" = 1; then
28860 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28861echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28862 if test "x$MGL_ROOT" = x ; then
28863 echo "$as_me:$LINENO: result: not found" >&5
28864echo "${ECHO_T}not found" >&6
28865 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28866echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28867 { (exit 1); exit 1; }; }
28868 else
28869 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28870echo "${ECHO_T}$MGL_ROOT" >&6
28871 fi
28872
28873 echo "$as_me:$LINENO: checking for libmgl location" >&5
28874echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28875 case "${host}" in
28876 *-*-linux* )
28877 if test "x$wxUSE_SHARED" = xyes ; then
28878 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28879 else
28880 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28881 fi
28882 ;;
28883 *-pc-msdosdjgpp )
28884 mgl_os_candidates="dos32/dj2"
28885 ;;
28886 *)
28887 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28888echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28889 { (exit 1); exit 1; }; }
28890 esac
28891
28892 mgl_lib_type=""
28893 mgl_os=""
28894
28895 for mgl_os_i in $mgl_os_candidates ; do
28896 if test "x$mgl_os" = x ; then
28897 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28898 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28899 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28900 mgl_lib_type=debug
28901 mgl_os=$mgl_os_i
28902 fi
28903 fi
28904 if test "x$mgl_lib_type" = x ; then
28905 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28906 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28907 mgl_lib_type=release
28908 mgl_os=$mgl_os_i
28909 fi
28910 fi
28911 fi
28912 done
28913
28914 if test "x$mgl_os" = x ; then
28915 echo "$as_me:$LINENO: result: not found" >&5
28916echo "${ECHO_T}not found" >&6
28917 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28918echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28919 { (exit 1); exit 1; }; }
28920 fi
28921 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28922echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28923
28924 wxUSE_UNIVERSAL="yes"
28925
28926 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28927 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28928
28929 AFMINSTALL=afminstall
28930 TOOLKIT=MGL
28931 GUIDIST=MGL_DIST
28932 fi
28933
b3c86150
VS
28934 if test "$wxUSE_DFB" = 1; then
28935
28936
28937if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
28938 if test -n "$ac_tool_prefix"; then
28939 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28940set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28941echo "$as_me:$LINENO: checking for $ac_word" >&5
28942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28943if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28944 echo $ECHO_N "(cached) $ECHO_C" >&6
28945else
28946 case $PKG_CONFIG in
28947 [\\/]* | ?:[\\/]*)
28948 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28949 ;;
28950 *)
28951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28952for as_dir in $PATH
28953do
28954 IFS=$as_save_IFS
28955 test -z "$as_dir" && as_dir=.
28956 for ac_exec_ext in '' $ac_executable_extensions; do
28957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28958 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28960 break 2
28961 fi
28962done
28963done
28964
28965 ;;
28966esac
28967fi
28968PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28969
28970if test -n "$PKG_CONFIG"; then
28971 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28972echo "${ECHO_T}$PKG_CONFIG" >&6
28973else
28974 echo "$as_me:$LINENO: result: no" >&5
28975echo "${ECHO_T}no" >&6
28976fi
28977
28978fi
28979if test -z "$ac_cv_path_PKG_CONFIG"; then
28980 ac_pt_PKG_CONFIG=$PKG_CONFIG
28981 # Extract the first word of "pkg-config", so it can be a program name with args.
28982set dummy pkg-config; ac_word=$2
28983echo "$as_me:$LINENO: checking for $ac_word" >&5
28984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28985if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
28986 echo $ECHO_N "(cached) $ECHO_C" >&6
28987else
28988 case $ac_pt_PKG_CONFIG in
28989 [\\/]* | ?:[\\/]*)
28990 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
28991 ;;
28992 *)
28993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28994for as_dir in $PATH
28995do
28996 IFS=$as_save_IFS
28997 test -z "$as_dir" && as_dir=.
28998 for ac_exec_ext in '' $ac_executable_extensions; do
28999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29000 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29002 break 2
29003 fi
29004done
29005done
29006
29007 ;;
29008esac
29009fi
29010ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29011
29012if test -n "$ac_pt_PKG_CONFIG"; then
29013 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29014echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29015else
29016 echo "$as_me:$LINENO: result: no" >&5
29017echo "${ECHO_T}no" >&6
29018fi
29019
29020 PKG_CONFIG=$ac_pt_PKG_CONFIG
29021else
29022 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29023fi
29024
29025fi
29026if test -n "$PKG_CONFIG"; then
29027 _pkg_min_version=0.9.0
29028 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29029echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29030 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29031 echo "$as_me:$LINENO: result: yes" >&5
29032echo "${ECHO_T}yes" >&6
29033 else
29034 echo "$as_me:$LINENO: result: no" >&5
29035echo "${ECHO_T}no" >&6
29036 PKG_CONFIG=""
29037 fi
29038
29039fi
29040
479c790c 29041
b3c86150
VS
29042pkg_failed=no
29043echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29044echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29045
29046if test -n "$PKG_CONFIG"; then
29047 if test -n "$DIRECTFB_CFLAGS"; then
29048 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29049 else
29050 if test -n "$PKG_CONFIG" && \
d7ae4a62
VS
29051 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29052 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
b3c86150
VS
29053 ac_status=$?
29054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055 (exit $ac_status); }; then
d7ae4a62 29056 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
b3c86150
VS
29057else
29058 pkg_failed=yes
29059fi
29060 fi
29061else
29062 pkg_failed=untried
29063fi
29064if test -n "$PKG_CONFIG"; then
29065 if test -n "$DIRECTFB_LIBS"; then
29066 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29067 else
29068 if test -n "$PKG_CONFIG" && \
d7ae4a62
VS
29069 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29070 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
b3c86150
VS
29071 ac_status=$?
29072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073 (exit $ac_status); }; then
d7ae4a62 29074 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
b3c86150
VS
29075else
29076 pkg_failed=yes
29077fi
29078 fi
29079else
29080 pkg_failed=untried
29081fi
29082
29083
29084
29085if test $pkg_failed = yes; then
29086
29087if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29088 _pkg_short_errors_supported=yes
29089else
29090 _pkg_short_errors_supported=no
29091fi
29092 if test $_pkg_short_errors_supported = yes; then
d7ae4a62 29093 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
b3c86150 29094 else
d7ae4a62 29095 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
b3c86150
VS
29096 fi
29097 # Put the nasty error message in config.log where it belongs
29098 echo "$DIRECTFB_PKG_ERRORS" >&5
29099
29100
29101 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29102echo "$as_me: error: DirectFB not found." >&2;}
29103 { (exit 1); exit 1; }; }
29104
29105
29106elif test $pkg_failed = untried; then
29107
29108 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29109echo "$as_me: error: DirectFB not found." >&2;}
29110 { (exit 1); exit 1; }; }
29111
29112
29113else
29114 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29115 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29116 echo "$as_me:$LINENO: result: yes" >&5
29117echo "${ECHO_T}yes" >&6
29118
29119 wxUSE_UNIVERSAL="yes"
29120 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29121 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29122 TOOLKIT=DFB
29123 GUIDIST=DFB_DIST
29124
29125fi
29126 fi
29127
a848cd7e
SC
29128 if test "$wxUSE_MICROWIN" = 1; then
29129 echo "$as_me:$LINENO: checking for MicroWindows" >&5
29130echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29131 if test "x$MICROWINDOWS" = x ; then
29132 echo "$as_me:$LINENO: result: not found" >&5
29133echo "${ECHO_T}not found" >&6
29134 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29135echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29136 { (exit 1); exit 1; }; }
29137 else
29138 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29139echo "${ECHO_T}$MICROWINDOWS" >&6
29140 fi
29141
29142 if test -f $MICROWINDOWS/lib/libmwin.a; then
29143 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29144echo "${ECHO_T}MicroWindows' libraries found." >&6
29145 else
29146 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29147echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29148 { (exit 1); exit 1; }; }
29149 fi
29150
29151 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29152 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29153
29154 wxUSE_UNIVERSAL="yes"
29155
29156 AFMINSTALL=afminstall
29157 TOOLKIT=MICROWIN
29158 GUIDIST=MICROWIN_DIST
29159
29160 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29161 fi
29162
74b84332 29163 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
bb9e79c0
VZ
29164
29165if test "x$ac_path_x_has_been_run" != xyes; then
29166 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
29167echo $ECHO_N "checking for X... $ECHO_C" >&6
29168
bb9e79c0 29169ac_path_x_has_been_run=yes
a848cd7e
SC
29170
29171# Check whether --with-x or --without-x was given.
29172if test "${with_x+set}" = set; then
29173 withval="$with_x"
29174
29175fi;
29176# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29177if test "x$with_x" = xno; then
29178 # The user explicitly disabled X.
29179 have_x=disabled
29180else
29181 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29182 # Both variables are already set.
29183 have_x=yes
29184 else
29185 if test "${ac_cv_have_x+set}" = set; then
29186 echo $ECHO_N "(cached) $ECHO_C" >&6
29187else
29188 # One or both of the vars are not set, and there is no cached value.
29189ac_x_includes=no ac_x_libraries=no
29190rm -fr conftest.dir
29191if mkdir conftest.dir; then
29192 cd conftest.dir
29193 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29194 cat >Imakefile <<'_ACEOF'
29195acfindx:
29196 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29197_ACEOF
29198 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29199 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29200 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29201 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29202 for ac_extension in a so sl; do
29203 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
29204 test -f $ac_im_libdir/libX11.$ac_extension; then
29205 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
29206 fi
29207 done
29208 # Screen out bogus values from the imake configuration. They are
29209 # bogus both because they are the default anyway, and because
29210 # using them would break gcc on systems where it needs fixed includes.
29211 case $ac_im_incroot in
29212 /usr/include) ;;
29213 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29214 esac
29215 case $ac_im_usrlibdir in
29216 /usr/lib | /lib) ;;
29217 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29218 esac
29219 fi
29220 cd ..
29221 rm -fr conftest.dir
29222fi
29223
29224# Standard set of common directories for X headers.
29225# Check X11 before X11Rn because it is often a symlink to the current release.
29226ac_x_header_dirs='
29227/usr/X11/include
29228/usr/X11R6/include
29229/usr/X11R5/include
29230/usr/X11R4/include
29231
29232/usr/include/X11
29233/usr/include/X11R6
29234/usr/include/X11R5
29235/usr/include/X11R4
29236
29237/usr/local/X11/include
29238/usr/local/X11R6/include
29239/usr/local/X11R5/include
29240/usr/local/X11R4/include
29241
29242/usr/local/include/X11
29243/usr/local/include/X11R6
29244/usr/local/include/X11R5
29245/usr/local/include/X11R4
29246
29247/usr/X386/include
29248/usr/x386/include
29249/usr/XFree86/include/X11
29250
29251/usr/include
29252/usr/local/include
29253/usr/unsupported/include
29254/usr/athena/include
29255/usr/local/x11r5/include
29256/usr/lpp/Xamples/include
29257
29258/usr/openwin/include
29259/usr/openwin/share/include'
29260
29261if test "$ac_x_includes" = no; then
bb9e79c0 29262 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
29263 # First, try using that file with no special directory specified.
29264 cat >conftest.$ac_ext <<_ACEOF
29265/* confdefs.h. */
29266_ACEOF
29267cat confdefs.h >>conftest.$ac_ext
29268cat >>conftest.$ac_ext <<_ACEOF
29269/* end confdefs.h. */
a1b1cf33 29270#include <X11/Intrinsic.h>
a848cd7e
SC
29271_ACEOF
29272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29274 ac_status=$?
29275 grep -v '^ *+' conftest.er1 >conftest.err
29276 rm -f conftest.er1
29277 cat conftest.err >&5
29278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279 (exit $ac_status); } >/dev/null; then
29280 if test -s conftest.err; then
fd5199d6
VZ
29281 ac_cpp_err=$ac_c_preproc_warn_flag
29282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29283 else
29284 ac_cpp_err=
29285 fi
29286else
29287 ac_cpp_err=yes
29288fi
29289if test -z "$ac_cpp_err"; then
29290 # We can compile using X headers with no special include directory.
29291ac_x_includes=
29292else
29293 echo "$as_me: failed program was:" >&5
29294sed 's/^/| /' conftest.$ac_ext >&5
29295
29296 for ac_dir in $ac_x_header_dirs; do
a1b1cf33 29297 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
29298 ac_x_includes=$ac_dir
29299 break
29300 fi
29301done
29302fi
29303rm -f conftest.err conftest.$ac_ext
29304fi # $ac_x_includes = no
29305
29306if test "$ac_x_libraries" = no; then
29307 # Check for the libraries.
29308 # See if we find them without any special options.
29309 # Don't add to $LIBS permanently.
29310 ac_save_LIBS=$LIBS
a1b1cf33 29311 LIBS="-lXt $LIBS"
a848cd7e
SC
29312 cat >conftest.$ac_ext <<_ACEOF
29313/* confdefs.h. */
29314_ACEOF
29315cat confdefs.h >>conftest.$ac_ext
29316cat >>conftest.$ac_ext <<_ACEOF
29317/* end confdefs.h. */
a1b1cf33 29318#include <X11/Intrinsic.h>
a848cd7e
SC
29319int
29320main ()
29321{
a1b1cf33 29322XtMalloc (0)
a848cd7e
SC
29323 ;
29324 return 0;
29325}
29326_ACEOF
29327rm -f conftest.$ac_objext conftest$ac_exeext
29328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29329 (eval $ac_link) 2>conftest.er1
a848cd7e 29330 ac_status=$?
ac1cb8d3
VS
29331 grep -v '^ *+' conftest.er1 >conftest.err
29332 rm -f conftest.er1
29333 cat conftest.err >&5
a848cd7e
SC
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); } &&
fd5199d6 29336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29338 (eval $ac_try) 2>&5
29339 ac_status=$?
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); }; } &&
29342 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29344 (eval $ac_try) 2>&5
29345 ac_status=$?
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); }; }; then
29348 LIBS=$ac_save_LIBS
29349# We can link X programs with no special library path.
29350ac_x_libraries=
29351else
29352 echo "$as_me: failed program was:" >&5
29353sed 's/^/| /' conftest.$ac_ext >&5
29354
29355LIBS=$ac_save_LIBS
29356for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29357do
29358 # Don't even attempt the hair of trying to link an X program!
29359 for ac_extension in a so sl; do
a1b1cf33 29360 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
29361 ac_x_libraries=$ac_dir
29362 break 2
29363 fi
29364 done
29365done
29366fi
ac1cb8d3
VS
29367rm -f conftest.err conftest.$ac_objext \
29368 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29369fi # $ac_x_libraries = no
29370
29371if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29372 # Didn't find X anywhere. Cache the known absence of X.
29373 ac_cv_have_x="have_x=no"
29374else
29375 # Record where we found X for the cache.
29376 ac_cv_have_x="have_x=yes \
ac1cb8d3 29377 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
29378fi
29379fi
29380
29381 fi
29382 eval "$ac_cv_have_x"
29383fi # $with_x != no
29384
29385if test "$have_x" != yes; then
29386 echo "$as_me:$LINENO: result: $have_x" >&5
29387echo "${ECHO_T}$have_x" >&6
29388 no_x=yes
29389else
29390 # If each of the values was on the command line, it overrides each guess.
29391 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29392 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29393 # Update the cache value to reflect the command line values.
29394 ac_cv_have_x="have_x=yes \
29395 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
bb9e79c0
VZ
29396 # It might be that x_includes is empty (headers are found in the
29397 # standard search path. Then output the corresponding message
29398 ac_out_x_includes=$x_includes
29399 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
29400 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
29401echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
29402fi
29403
bb9e79c0 29404fi
a848cd7e
SC
29405if test "$no_x" = yes; then
29406 # Not all programs may use this symbol, but it does not hurt to define it.
29407
29408cat >>confdefs.h <<\_ACEOF
29409#define X_DISPLAY_MISSING 1
29410_ACEOF
29411
29412 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29413else
29414 if test -n "$x_includes"; then
29415 X_CFLAGS="$X_CFLAGS -I$x_includes"
29416 fi
29417
29418 # It would also be nice to do this for all -L options, not just this one.
29419 if test -n "$x_libraries"; then
29420 X_LIBS="$X_LIBS -L$x_libraries"
29421 # For Solaris; some versions of Sun CC require a space after -R and
29422 # others require no space. Words are not sufficient . . . .
29423 case `(uname -sr) 2>/dev/null` in
29424 "SunOS 5"*)
29425 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29426echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29427 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29428 cat >conftest.$ac_ext <<_ACEOF
29429/* confdefs.h. */
29430_ACEOF
29431cat confdefs.h >>conftest.$ac_ext
29432cat >>conftest.$ac_ext <<_ACEOF
29433/* end confdefs.h. */
29434
29435int
29436main ()
29437{
29438
29439 ;
29440 return 0;
29441}
29442_ACEOF
29443rm -f conftest.$ac_objext conftest$ac_exeext
29444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29445 (eval $ac_link) 2>conftest.er1
a848cd7e 29446 ac_status=$?
ac1cb8d3
VS
29447 grep -v '^ *+' conftest.er1 >conftest.err
29448 rm -f conftest.er1
29449 cat conftest.err >&5
a848cd7e
SC
29450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451 (exit $ac_status); } &&
fd5199d6 29452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29454 (eval $ac_try) 2>&5
29455 ac_status=$?
29456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29457 (exit $ac_status); }; } &&
29458 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29460 (eval $ac_try) 2>&5
29461 ac_status=$?
29462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463 (exit $ac_status); }; }; then
29464 ac_R_nospace=yes
29465else
29466 echo "$as_me: failed program was:" >&5
29467sed 's/^/| /' conftest.$ac_ext >&5
29468
29469ac_R_nospace=no
29470fi
ac1cb8d3
VS
29471rm -f conftest.err conftest.$ac_objext \
29472 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29473 if test $ac_R_nospace = yes; then
29474 echo "$as_me:$LINENO: result: no" >&5
29475echo "${ECHO_T}no" >&6
29476 X_LIBS="$X_LIBS -R$x_libraries"
29477 else
29478 LIBS="$ac_xsave_LIBS -R $x_libraries"
29479 cat >conftest.$ac_ext <<_ACEOF
29480/* confdefs.h. */
29481_ACEOF
29482cat confdefs.h >>conftest.$ac_ext
29483cat >>conftest.$ac_ext <<_ACEOF
29484/* end confdefs.h. */
29485
29486int
29487main ()
29488{
29489
29490 ;
29491 return 0;
29492}
29493_ACEOF
29494rm -f conftest.$ac_objext conftest$ac_exeext
29495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29496 (eval $ac_link) 2>conftest.er1
a848cd7e 29497 ac_status=$?
ac1cb8d3
VS
29498 grep -v '^ *+' conftest.er1 >conftest.err
29499 rm -f conftest.er1
29500 cat conftest.err >&5
a848cd7e
SC
29501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502 (exit $ac_status); } &&
fd5199d6 29503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29505 (eval $ac_try) 2>&5
29506 ac_status=$?
29507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508 (exit $ac_status); }; } &&
29509 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29511 (eval $ac_try) 2>&5
29512 ac_status=$?
29513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514 (exit $ac_status); }; }; then
29515 ac_R_space=yes
29516else
29517 echo "$as_me: failed program was:" >&5
29518sed 's/^/| /' conftest.$ac_ext >&5
29519
29520ac_R_space=no
29521fi
ac1cb8d3
VS
29522rm -f conftest.err conftest.$ac_objext \
29523 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29524 if test $ac_R_space = yes; then
29525 echo "$as_me:$LINENO: result: yes" >&5
29526echo "${ECHO_T}yes" >&6
29527 X_LIBS="$X_LIBS -R $x_libraries"
29528 else
29529 echo "$as_me:$LINENO: result: neither works" >&5
29530echo "${ECHO_T}neither works" >&6
29531 fi
29532 fi
29533 LIBS=$ac_xsave_LIBS
29534 esac
29535 fi
29536
29537 # Check for system-dependent libraries X programs must link with.
29538 # Do this before checking for the system-independent R6 libraries
29539 # (-lICE), since we may need -lsocket or whatever for X linking.
29540
29541 if test "$ISC" = yes; then
29542 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29543 else
29544 # Martyn Johnson says this is needed for Ultrix, if the X
29545 # libraries were built with DECnet support. And Karl Berry says
29546 # the Alpha needs dnet_stub (dnet does not exist).
29547 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29548 cat >conftest.$ac_ext <<_ACEOF
29549/* confdefs.h. */
29550_ACEOF
29551cat confdefs.h >>conftest.$ac_ext
29552cat >>conftest.$ac_ext <<_ACEOF
29553/* end confdefs.h. */
29554
29555/* Override any gcc2 internal prototype to avoid an error. */
29556#ifdef __cplusplus
29557extern "C"
29558#endif
29559/* We use char because int might match the return type of a gcc2
29560 builtin and then its argument prototype would still apply. */
29561char XOpenDisplay ();
29562int
29563main ()
29564{
29565XOpenDisplay ();
29566 ;
29567 return 0;
29568}
29569_ACEOF
29570rm -f conftest.$ac_objext conftest$ac_exeext
29571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29572 (eval $ac_link) 2>conftest.er1
a848cd7e 29573 ac_status=$?
ac1cb8d3
VS
29574 grep -v '^ *+' conftest.er1 >conftest.err
29575 rm -f conftest.er1
29576 cat conftest.err >&5
a848cd7e
SC
29577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578 (exit $ac_status); } &&
fd5199d6 29579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29581 (eval $ac_try) 2>&5
29582 ac_status=$?
29583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); }; } &&
29585 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29587 (eval $ac_try) 2>&5
29588 ac_status=$?
29589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590 (exit $ac_status); }; }; then
29591 :
29592else
29593 echo "$as_me: failed program was:" >&5
29594sed 's/^/| /' conftest.$ac_ext >&5
29595
29596echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29597echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29598if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29599 echo $ECHO_N "(cached) $ECHO_C" >&6
29600else
29601 ac_check_lib_save_LIBS=$LIBS
29602LIBS="-ldnet $LIBS"
29603cat >conftest.$ac_ext <<_ACEOF
29604/* confdefs.h. */
29605_ACEOF
29606cat confdefs.h >>conftest.$ac_ext
29607cat >>conftest.$ac_ext <<_ACEOF
29608/* end confdefs.h. */
29609
29610/* Override any gcc2 internal prototype to avoid an error. */
29611#ifdef __cplusplus
29612extern "C"
29613#endif
29614/* We use char because int might match the return type of a gcc2
29615 builtin and then its argument prototype would still apply. */
29616char dnet_ntoa ();
29617int
29618main ()
29619{
29620dnet_ntoa ();
29621 ;
29622 return 0;
29623}
29624_ACEOF
29625rm -f conftest.$ac_objext conftest$ac_exeext
29626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29627 (eval $ac_link) 2>conftest.er1
a848cd7e 29628 ac_status=$?
ac1cb8d3
VS
29629 grep -v '^ *+' conftest.er1 >conftest.err
29630 rm -f conftest.er1
29631 cat conftest.err >&5
a848cd7e
SC
29632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); } &&
fd5199d6 29634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29636 (eval $ac_try) 2>&5
29637 ac_status=$?
29638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); }; } &&
29640 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29642 (eval $ac_try) 2>&5
29643 ac_status=$?
29644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29645 (exit $ac_status); }; }; then
29646 ac_cv_lib_dnet_dnet_ntoa=yes
29647else
29648 echo "$as_me: failed program was:" >&5
29649sed 's/^/| /' conftest.$ac_ext >&5
29650
29651ac_cv_lib_dnet_dnet_ntoa=no
29652fi
ac1cb8d3
VS
29653rm -f conftest.err conftest.$ac_objext \
29654 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29655LIBS=$ac_check_lib_save_LIBS
29656fi
29657echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29658echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29659if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29660 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29661fi
29662
29663 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29664 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29665echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29666if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29667 echo $ECHO_N "(cached) $ECHO_C" >&6
29668else
29669 ac_check_lib_save_LIBS=$LIBS
29670LIBS="-ldnet_stub $LIBS"
29671cat >conftest.$ac_ext <<_ACEOF
29672/* confdefs.h. */
29673_ACEOF
29674cat confdefs.h >>conftest.$ac_ext
29675cat >>conftest.$ac_ext <<_ACEOF
29676/* end confdefs.h. */
29677
29678/* Override any gcc2 internal prototype to avoid an error. */
29679#ifdef __cplusplus
29680extern "C"
29681#endif
29682/* We use char because int might match the return type of a gcc2
29683 builtin and then its argument prototype would still apply. */
29684char dnet_ntoa ();
29685int
29686main ()
29687{
29688dnet_ntoa ();
29689 ;
29690 return 0;
29691}
29692_ACEOF
29693rm -f conftest.$ac_objext conftest$ac_exeext
29694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29695 (eval $ac_link) 2>conftest.er1
a848cd7e 29696 ac_status=$?
ac1cb8d3
VS
29697 grep -v '^ *+' conftest.er1 >conftest.err
29698 rm -f conftest.er1
29699 cat conftest.err >&5
a848cd7e
SC
29700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701 (exit $ac_status); } &&
fd5199d6 29702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29704 (eval $ac_try) 2>&5
29705 ac_status=$?
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707 (exit $ac_status); }; } &&
29708 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29710 (eval $ac_try) 2>&5
29711 ac_status=$?
29712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29713 (exit $ac_status); }; }; then
29714 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29715else
29716 echo "$as_me: failed program was:" >&5
29717sed 's/^/| /' conftest.$ac_ext >&5
29718
29719ac_cv_lib_dnet_stub_dnet_ntoa=no
29720fi
ac1cb8d3
VS
29721rm -f conftest.err conftest.$ac_objext \
29722 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29723LIBS=$ac_check_lib_save_LIBS
29724fi
29725echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29726echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29727if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29728 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29729fi
29730
29731 fi
29732fi
ac1cb8d3
VS
29733rm -f conftest.err conftest.$ac_objext \
29734 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29735 LIBS="$ac_xsave_LIBS"
29736
29737 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29738 # to get the SysV transport functions.
29739 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29740 # needs -lnsl.
29741 # The nsl library prevents programs from opening the X display
29742 # on Irix 5.2, according to T.E. Dickey.
29743 # The functions gethostbyname, getservbyname, and inet_addr are
29744 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29745 echo "$as_me:$LINENO: checking for gethostbyname" >&5
29746echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29747if test "${ac_cv_func_gethostbyname+set}" = set; then
29748 echo $ECHO_N "(cached) $ECHO_C" >&6
29749else
29750 cat >conftest.$ac_ext <<_ACEOF
29751/* confdefs.h. */
29752_ACEOF
29753cat confdefs.h >>conftest.$ac_ext
29754cat >>conftest.$ac_ext <<_ACEOF
29755/* end confdefs.h. */
ac1cb8d3
VS
29756/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29758#define gethostbyname innocuous_gethostbyname
29759
a848cd7e
SC
29760/* System header to define __stub macros and hopefully few prototypes,
29761 which can conflict with char gethostbyname (); below.
29762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29763 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29764
a848cd7e
SC
29765#ifdef __STDC__
29766# include <limits.h>
29767#else
29768# include <assert.h>
29769#endif
ac1cb8d3
VS
29770
29771#undef gethostbyname
29772
a848cd7e
SC
29773/* Override any gcc2 internal prototype to avoid an error. */
29774#ifdef __cplusplus
29775extern "C"
29776{
29777#endif
29778/* We use char because int might match the return type of a gcc2
29779 builtin and then its argument prototype would still apply. */
29780char gethostbyname ();
29781/* The GNU C library defines this for functions which it implements
29782 to always fail with ENOSYS. Some functions are actually named
29783 something starting with __ and the normal name is an alias. */
29784#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29785choke me
29786#else
29787char (*f) () = gethostbyname;
29788#endif
29789#ifdef __cplusplus
29790}
29791#endif
29792
29793int
29794main ()
29795{
29796return f != gethostbyname;
29797 ;
29798 return 0;
29799}
29800_ACEOF
29801rm -f conftest.$ac_objext conftest$ac_exeext
29802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29803 (eval $ac_link) 2>conftest.er1
a848cd7e 29804 ac_status=$?
ac1cb8d3
VS
29805 grep -v '^ *+' conftest.er1 >conftest.err
29806 rm -f conftest.er1
29807 cat conftest.err >&5
a848cd7e
SC
29808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809 (exit $ac_status); } &&
fd5199d6 29810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29812 (eval $ac_try) 2>&5
29813 ac_status=$?
29814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815 (exit $ac_status); }; } &&
29816 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29818 (eval $ac_try) 2>&5
29819 ac_status=$?
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); }; }; then
29822 ac_cv_func_gethostbyname=yes
29823else
29824 echo "$as_me: failed program was:" >&5
29825sed 's/^/| /' conftest.$ac_ext >&5
29826
29827ac_cv_func_gethostbyname=no
29828fi
ac1cb8d3
VS
29829rm -f conftest.err conftest.$ac_objext \
29830 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29831fi
29832echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29833echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29834
29835 if test $ac_cv_func_gethostbyname = no; then
29836 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29837echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29838if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29839 echo $ECHO_N "(cached) $ECHO_C" >&6
29840else
29841 ac_check_lib_save_LIBS=$LIBS
29842LIBS="-lnsl $LIBS"
29843cat >conftest.$ac_ext <<_ACEOF
29844/* confdefs.h. */
29845_ACEOF
29846cat confdefs.h >>conftest.$ac_ext
29847cat >>conftest.$ac_ext <<_ACEOF
29848/* end confdefs.h. */
29849
29850/* Override any gcc2 internal prototype to avoid an error. */
29851#ifdef __cplusplus
29852extern "C"
29853#endif
29854/* We use char because int might match the return type of a gcc2
29855 builtin and then its argument prototype would still apply. */
29856char gethostbyname ();
29857int
29858main ()
29859{
29860gethostbyname ();
29861 ;
29862 return 0;
29863}
29864_ACEOF
29865rm -f conftest.$ac_objext conftest$ac_exeext
29866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
29867 (eval $ac_link) 2>conftest.er1
29868 ac_status=$?
29869 grep -v '^ *+' conftest.er1 >conftest.err
29870 rm -f conftest.er1
29871 cat conftest.err >&5
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); } &&
fd5199d6 29874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29876 (eval $ac_try) 2>&5
29877 ac_status=$?
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); }; } &&
29880 { ac_try='test -s conftest$ac_exeext'
29881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29882 (eval $ac_try) 2>&5
29883 ac_status=$?
29884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885 (exit $ac_status); }; }; then
29886 ac_cv_lib_nsl_gethostbyname=yes
29887else
29888 echo "$as_me: failed program was:" >&5
29889sed 's/^/| /' conftest.$ac_ext >&5
29890
29891ac_cv_lib_nsl_gethostbyname=no
29892fi
29893rm -f conftest.err conftest.$ac_objext \
29894 conftest$ac_exeext conftest.$ac_ext
29895LIBS=$ac_check_lib_save_LIBS
29896fi
29897echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29898echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29899if test $ac_cv_lib_nsl_gethostbyname = yes; then
29900 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29901fi
29902
29903 if test $ac_cv_lib_nsl_gethostbyname = no; then
29904 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29905echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29906if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29907 echo $ECHO_N "(cached) $ECHO_C" >&6
29908else
29909 ac_check_lib_save_LIBS=$LIBS
29910LIBS="-lbsd $LIBS"
29911cat >conftest.$ac_ext <<_ACEOF
29912/* confdefs.h. */
29913_ACEOF
29914cat confdefs.h >>conftest.$ac_ext
29915cat >>conftest.$ac_ext <<_ACEOF
29916/* end confdefs.h. */
29917
29918/* Override any gcc2 internal prototype to avoid an error. */
29919#ifdef __cplusplus
29920extern "C"
29921#endif
29922/* We use char because int might match the return type of a gcc2
29923 builtin and then its argument prototype would still apply. */
29924char gethostbyname ();
29925int
29926main ()
29927{
29928gethostbyname ();
29929 ;
29930 return 0;
29931}
29932_ACEOF
29933rm -f conftest.$ac_objext conftest$ac_exeext
29934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29935 (eval $ac_link) 2>conftest.er1
a848cd7e 29936 ac_status=$?
ac1cb8d3
VS
29937 grep -v '^ *+' conftest.er1 >conftest.err
29938 rm -f conftest.er1
29939 cat conftest.err >&5
a848cd7e
SC
29940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29941 (exit $ac_status); } &&
fd5199d6 29942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29944 (eval $ac_try) 2>&5
29945 ac_status=$?
29946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
29947 (exit $ac_status); }; } &&
29948 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29950 (eval $ac_try) 2>&5
29951 ac_status=$?
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); }; }; then
29954 ac_cv_lib_bsd_gethostbyname=yes
29955else
29956 echo "$as_me: failed program was:" >&5
29957sed 's/^/| /' conftest.$ac_ext >&5
29958
29959ac_cv_lib_bsd_gethostbyname=no
29960fi
ac1cb8d3
VS
29961rm -f conftest.err conftest.$ac_objext \
29962 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29963LIBS=$ac_check_lib_save_LIBS
29964fi
29965echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29966echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29967if test $ac_cv_lib_bsd_gethostbyname = yes; then
29968 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29969fi
29970
29971 fi
29972 fi
29973
29974 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29975 # socket/setsockopt and other routines are undefined under SCO ODT
29976 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29977 # on later versions), says Simon Leinen: it contains gethostby*
29978 # variants that don't use the name server (or something). -lsocket
29979 # must be given before -lnsl if both are needed. We assume that
29980 # if connect needs -lnsl, so does gethostbyname.
29981 echo "$as_me:$LINENO: checking for connect" >&5
29982echo $ECHO_N "checking for connect... $ECHO_C" >&6
29983if test "${ac_cv_func_connect+set}" = set; then
29984 echo $ECHO_N "(cached) $ECHO_C" >&6
29985else
29986 cat >conftest.$ac_ext <<_ACEOF
29987/* confdefs.h. */
29988_ACEOF
29989cat confdefs.h >>conftest.$ac_ext
29990cat >>conftest.$ac_ext <<_ACEOF
29991/* end confdefs.h. */
ac1cb8d3
VS
29992/* Define connect to an innocuous variant, in case <limits.h> declares connect.
29993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29994#define connect innocuous_connect
29995
a848cd7e
SC
29996/* System header to define __stub macros and hopefully few prototypes,
29997 which can conflict with char connect (); below.
29998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29999 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30000
a848cd7e
SC
30001#ifdef __STDC__
30002# include <limits.h>
30003#else
30004# include <assert.h>
30005#endif
ac1cb8d3
VS
30006
30007#undef connect
30008
a848cd7e
SC
30009/* Override any gcc2 internal prototype to avoid an error. */
30010#ifdef __cplusplus
30011extern "C"
30012{
30013#endif
30014/* We use char because int might match the return type of a gcc2
30015 builtin and then its argument prototype would still apply. */
30016char connect ();
30017/* The GNU C library defines this for functions which it implements
30018 to always fail with ENOSYS. Some functions are actually named
30019 something starting with __ and the normal name is an alias. */
30020#if defined (__stub_connect) || defined (__stub___connect)
30021choke me
30022#else
30023char (*f) () = connect;
30024#endif
30025#ifdef __cplusplus
30026}
30027#endif
30028
30029int
30030main ()
30031{
30032return f != connect;
30033 ;
30034 return 0;
30035}
30036_ACEOF
30037rm -f conftest.$ac_objext conftest$ac_exeext
30038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30039 (eval $ac_link) 2>conftest.er1
a848cd7e 30040 ac_status=$?
ac1cb8d3
VS
30041 grep -v '^ *+' conftest.er1 >conftest.err
30042 rm -f conftest.er1
30043 cat conftest.err >&5
a848cd7e
SC
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); } &&
fd5199d6 30046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30048 (eval $ac_try) 2>&5
30049 ac_status=$?
30050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051 (exit $ac_status); }; } &&
30052 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30054 (eval $ac_try) 2>&5
30055 ac_status=$?
30056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057 (exit $ac_status); }; }; then
30058 ac_cv_func_connect=yes
30059else
30060 echo "$as_me: failed program was:" >&5
30061sed 's/^/| /' conftest.$ac_ext >&5
30062
30063ac_cv_func_connect=no
30064fi
ac1cb8d3
VS
30065rm -f conftest.err conftest.$ac_objext \
30066 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30067fi
30068echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30069echo "${ECHO_T}$ac_cv_func_connect" >&6
30070
30071 if test $ac_cv_func_connect = no; then
30072 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30073echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30074if test "${ac_cv_lib_socket_connect+set}" = set; then
30075 echo $ECHO_N "(cached) $ECHO_C" >&6
30076else
30077 ac_check_lib_save_LIBS=$LIBS
30078LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30079cat >conftest.$ac_ext <<_ACEOF
30080/* confdefs.h. */
30081_ACEOF
30082cat confdefs.h >>conftest.$ac_ext
30083cat >>conftest.$ac_ext <<_ACEOF
30084/* end confdefs.h. */
30085
30086/* Override any gcc2 internal prototype to avoid an error. */
30087#ifdef __cplusplus
30088extern "C"
30089#endif
30090/* We use char because int might match the return type of a gcc2
30091 builtin and then its argument prototype would still apply. */
30092char connect ();
30093int
30094main ()
30095{
30096connect ();
30097 ;
30098 return 0;
30099}
30100_ACEOF
30101rm -f conftest.$ac_objext conftest$ac_exeext
30102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30103 (eval $ac_link) 2>conftest.er1
a848cd7e 30104 ac_status=$?
ac1cb8d3
VS
30105 grep -v '^ *+' conftest.er1 >conftest.err
30106 rm -f conftest.er1
30107 cat conftest.err >&5
a848cd7e
SC
30108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109 (exit $ac_status); } &&
fd5199d6 30110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30112 (eval $ac_try) 2>&5
30113 ac_status=$?
30114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115 (exit $ac_status); }; } &&
30116 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30118 (eval $ac_try) 2>&5
30119 ac_status=$?
30120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121 (exit $ac_status); }; }; then
30122 ac_cv_lib_socket_connect=yes
30123else
30124 echo "$as_me: failed program was:" >&5
30125sed 's/^/| /' conftest.$ac_ext >&5
30126
30127ac_cv_lib_socket_connect=no
30128fi
ac1cb8d3
VS
30129rm -f conftest.err conftest.$ac_objext \
30130 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30131LIBS=$ac_check_lib_save_LIBS
30132fi
30133echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30134echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30135if test $ac_cv_lib_socket_connect = yes; then
30136 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30137fi
30138
30139 fi
30140
30141 # Guillermo Gomez says -lposix is necessary on A/UX.
30142 echo "$as_me:$LINENO: checking for remove" >&5
30143echo $ECHO_N "checking for remove... $ECHO_C" >&6
30144if test "${ac_cv_func_remove+set}" = set; then
30145 echo $ECHO_N "(cached) $ECHO_C" >&6
30146else
30147 cat >conftest.$ac_ext <<_ACEOF
30148/* confdefs.h. */
30149_ACEOF
30150cat confdefs.h >>conftest.$ac_ext
30151cat >>conftest.$ac_ext <<_ACEOF
30152/* end confdefs.h. */
ac1cb8d3
VS
30153/* Define remove to an innocuous variant, in case <limits.h> declares remove.
30154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30155#define remove innocuous_remove
30156
a848cd7e
SC
30157/* System header to define __stub macros and hopefully few prototypes,
30158 which can conflict with char remove (); below.
30159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30160 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30161
a848cd7e
SC
30162#ifdef __STDC__
30163# include <limits.h>
30164#else
30165# include <assert.h>
30166#endif
ac1cb8d3
VS
30167
30168#undef remove
30169
a848cd7e
SC
30170/* Override any gcc2 internal prototype to avoid an error. */
30171#ifdef __cplusplus
30172extern "C"
30173{
30174#endif
30175/* We use char because int might match the return type of a gcc2
30176 builtin and then its argument prototype would still apply. */
30177char remove ();
30178/* The GNU C library defines this for functions which it implements
30179 to always fail with ENOSYS. Some functions are actually named
30180 something starting with __ and the normal name is an alias. */
30181#if defined (__stub_remove) || defined (__stub___remove)
30182choke me
30183#else
30184char (*f) () = remove;
30185#endif
30186#ifdef __cplusplus
30187}
30188#endif
30189
30190int
30191main ()
30192{
30193return f != remove;
30194 ;
30195 return 0;
30196}
30197_ACEOF
30198rm -f conftest.$ac_objext conftest$ac_exeext
30199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30200 (eval $ac_link) 2>conftest.er1
a848cd7e 30201 ac_status=$?
ac1cb8d3
VS
30202 grep -v '^ *+' conftest.er1 >conftest.err
30203 rm -f conftest.er1
30204 cat conftest.err >&5
a848cd7e
SC
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); } &&
fd5199d6 30207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30209 (eval $ac_try) 2>&5
30210 ac_status=$?
30211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212 (exit $ac_status); }; } &&
30213 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30215 (eval $ac_try) 2>&5
30216 ac_status=$?
30217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30218 (exit $ac_status); }; }; then
30219 ac_cv_func_remove=yes
30220else
30221 echo "$as_me: failed program was:" >&5
30222sed 's/^/| /' conftest.$ac_ext >&5
30223
30224ac_cv_func_remove=no
30225fi
ac1cb8d3
VS
30226rm -f conftest.err conftest.$ac_objext \
30227 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30228fi
30229echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30230echo "${ECHO_T}$ac_cv_func_remove" >&6
30231
30232 if test $ac_cv_func_remove = no; then
30233 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30234echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30235if test "${ac_cv_lib_posix_remove+set}" = set; then
30236 echo $ECHO_N "(cached) $ECHO_C" >&6
30237else
30238 ac_check_lib_save_LIBS=$LIBS
30239LIBS="-lposix $LIBS"
30240cat >conftest.$ac_ext <<_ACEOF
30241/* confdefs.h. */
30242_ACEOF
30243cat confdefs.h >>conftest.$ac_ext
30244cat >>conftest.$ac_ext <<_ACEOF
30245/* end confdefs.h. */
30246
30247/* Override any gcc2 internal prototype to avoid an error. */
30248#ifdef __cplusplus
30249extern "C"
30250#endif
30251/* We use char because int might match the return type of a gcc2
30252 builtin and then its argument prototype would still apply. */
30253char remove ();
30254int
30255main ()
30256{
30257remove ();
30258 ;
30259 return 0;
30260}
30261_ACEOF
30262rm -f conftest.$ac_objext conftest$ac_exeext
30263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30264 (eval $ac_link) 2>conftest.er1
a848cd7e 30265 ac_status=$?
ac1cb8d3
VS
30266 grep -v '^ *+' conftest.er1 >conftest.err
30267 rm -f conftest.er1
30268 cat conftest.err >&5
a848cd7e
SC
30269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30270 (exit $ac_status); } &&
fd5199d6 30271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30273 (eval $ac_try) 2>&5
30274 ac_status=$?
30275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30276 (exit $ac_status); }; } &&
30277 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30279 (eval $ac_try) 2>&5
30280 ac_status=$?
30281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); }; }; then
30283 ac_cv_lib_posix_remove=yes
30284else
30285 echo "$as_me: failed program was:" >&5
30286sed 's/^/| /' conftest.$ac_ext >&5
30287
30288ac_cv_lib_posix_remove=no
30289fi
ac1cb8d3
VS
30290rm -f conftest.err conftest.$ac_objext \
30291 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30292LIBS=$ac_check_lib_save_LIBS
30293fi
30294echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30295echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30296if test $ac_cv_lib_posix_remove = yes; then
30297 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30298fi
30299
30300 fi
30301
30302 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30303 echo "$as_me:$LINENO: checking for shmat" >&5
30304echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30305if test "${ac_cv_func_shmat+set}" = set; then
30306 echo $ECHO_N "(cached) $ECHO_C" >&6
30307else
30308 cat >conftest.$ac_ext <<_ACEOF
30309/* confdefs.h. */
30310_ACEOF
30311cat confdefs.h >>conftest.$ac_ext
30312cat >>conftest.$ac_ext <<_ACEOF
30313/* end confdefs.h. */
ac1cb8d3
VS
30314/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30316#define shmat innocuous_shmat
30317
a848cd7e
SC
30318/* System header to define __stub macros and hopefully few prototypes,
30319 which can conflict with char shmat (); below.
30320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30321 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30322
a848cd7e
SC
30323#ifdef __STDC__
30324# include <limits.h>
30325#else
30326# include <assert.h>
30327#endif
ac1cb8d3
VS
30328
30329#undef shmat
30330
a848cd7e
SC
30331/* Override any gcc2 internal prototype to avoid an error. */
30332#ifdef __cplusplus
30333extern "C"
30334{
30335#endif
30336/* We use char because int might match the return type of a gcc2
30337 builtin and then its argument prototype would still apply. */
30338char shmat ();
30339/* The GNU C library defines this for functions which it implements
30340 to always fail with ENOSYS. Some functions are actually named
30341 something starting with __ and the normal name is an alias. */
30342#if defined (__stub_shmat) || defined (__stub___shmat)
30343choke me
30344#else
30345char (*f) () = shmat;
30346#endif
30347#ifdef __cplusplus
30348}
30349#endif
30350
30351int
30352main ()
30353{
30354return f != shmat;
30355 ;
30356 return 0;
30357}
30358_ACEOF
30359rm -f conftest.$ac_objext conftest$ac_exeext
30360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30361 (eval $ac_link) 2>conftest.er1
a848cd7e 30362 ac_status=$?
ac1cb8d3
VS
30363 grep -v '^ *+' conftest.er1 >conftest.err
30364 rm -f conftest.er1
30365 cat conftest.err >&5
a848cd7e
SC
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); } &&
fd5199d6 30368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30370 (eval $ac_try) 2>&5
30371 ac_status=$?
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); }; } &&
30374 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30376 (eval $ac_try) 2>&5
30377 ac_status=$?
30378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379 (exit $ac_status); }; }; then
30380 ac_cv_func_shmat=yes
30381else
30382 echo "$as_me: failed program was:" >&5
30383sed 's/^/| /' conftest.$ac_ext >&5
30384
30385ac_cv_func_shmat=no
30386fi
ac1cb8d3
VS
30387rm -f conftest.err conftest.$ac_objext \
30388 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30389fi
30390echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30391echo "${ECHO_T}$ac_cv_func_shmat" >&6
30392
30393 if test $ac_cv_func_shmat = no; then
30394 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30395echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30396if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30397 echo $ECHO_N "(cached) $ECHO_C" >&6
30398else
30399 ac_check_lib_save_LIBS=$LIBS
30400LIBS="-lipc $LIBS"
30401cat >conftest.$ac_ext <<_ACEOF
30402/* confdefs.h. */
30403_ACEOF
30404cat confdefs.h >>conftest.$ac_ext
30405cat >>conftest.$ac_ext <<_ACEOF
30406/* end confdefs.h. */
30407
30408/* Override any gcc2 internal prototype to avoid an error. */
30409#ifdef __cplusplus
30410extern "C"
30411#endif
30412/* We use char because int might match the return type of a gcc2
30413 builtin and then its argument prototype would still apply. */
30414char shmat ();
30415int
30416main ()
30417{
30418shmat ();
30419 ;
30420 return 0;
30421}
30422_ACEOF
30423rm -f conftest.$ac_objext conftest$ac_exeext
30424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30425 (eval $ac_link) 2>conftest.er1
a848cd7e 30426 ac_status=$?
ac1cb8d3
VS
30427 grep -v '^ *+' conftest.er1 >conftest.err
30428 rm -f conftest.er1
30429 cat conftest.err >&5
a848cd7e
SC
30430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30431 (exit $ac_status); } &&
fd5199d6 30432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30434 (eval $ac_try) 2>&5
30435 ac_status=$?
30436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30437 (exit $ac_status); }; } &&
30438 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30440 (eval $ac_try) 2>&5
30441 ac_status=$?
30442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443 (exit $ac_status); }; }; then
30444 ac_cv_lib_ipc_shmat=yes
30445else
30446 echo "$as_me: failed program was:" >&5
30447sed 's/^/| /' conftest.$ac_ext >&5
30448
30449ac_cv_lib_ipc_shmat=no
30450fi
ac1cb8d3
VS
30451rm -f conftest.err conftest.$ac_objext \
30452 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30453LIBS=$ac_check_lib_save_LIBS
30454fi
30455echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30456echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30457if test $ac_cv_lib_ipc_shmat = yes; then
30458 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30459fi
30460
30461 fi
30462 fi
30463
30464 # Check for libraries that X11R6 Xt/Xaw programs need.
30465 ac_save_LDFLAGS=$LDFLAGS
30466 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30467 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30468 # check for ICE first), but we must link in the order -lSM -lICE or
30469 # we get undefined symbols. So assume we have SM if we have ICE.
30470 # These have to be linked with before -lX11, unlike the other
30471 # libraries we check for below, so use a different variable.
30472 # John Interrante, Karl Berry
30473 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30474echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30475if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30476 echo $ECHO_N "(cached) $ECHO_C" >&6
30477else
30478 ac_check_lib_save_LIBS=$LIBS
30479LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30480cat >conftest.$ac_ext <<_ACEOF
30481/* confdefs.h. */
30482_ACEOF
30483cat confdefs.h >>conftest.$ac_ext
30484cat >>conftest.$ac_ext <<_ACEOF
30485/* end confdefs.h. */
30486
30487/* Override any gcc2 internal prototype to avoid an error. */
30488#ifdef __cplusplus
30489extern "C"
30490#endif
30491/* We use char because int might match the return type of a gcc2
30492 builtin and then its argument prototype would still apply. */
30493char IceConnectionNumber ();
30494int
30495main ()
30496{
30497IceConnectionNumber ();
30498 ;
30499 return 0;
30500}
30501_ACEOF
30502rm -f conftest.$ac_objext conftest$ac_exeext
30503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30504 (eval $ac_link) 2>conftest.er1
a848cd7e 30505 ac_status=$?
ac1cb8d3
VS
30506 grep -v '^ *+' conftest.er1 >conftest.err
30507 rm -f conftest.er1
30508 cat conftest.err >&5
a848cd7e
SC
30509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510 (exit $ac_status); } &&
fd5199d6 30511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30513 (eval $ac_try) 2>&5
30514 ac_status=$?
30515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516 (exit $ac_status); }; } &&
30517 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30519 (eval $ac_try) 2>&5
30520 ac_status=$?
30521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522 (exit $ac_status); }; }; then
30523 ac_cv_lib_ICE_IceConnectionNumber=yes
30524else
30525 echo "$as_me: failed program was:" >&5
30526sed 's/^/| /' conftest.$ac_ext >&5
30527
30528ac_cv_lib_ICE_IceConnectionNumber=no
30529fi
ac1cb8d3
VS
30530rm -f conftest.err conftest.$ac_objext \
30531 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30532LIBS=$ac_check_lib_save_LIBS
30533fi
30534echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30535echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30536if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30537 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30538fi
30539
30540 LDFLAGS=$ac_save_LDFLAGS
30541
30542fi
30543
30544
30545 if test "$no_x" = "yes"; then
89d90d6d
VZ
30546 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30547echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30548 { (exit 1); exit 1; }; }
a848cd7e
SC
30549 fi
30550
74b84332
VS
30551 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30552 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
30553 AFMINSTALL=afminstall
30554 COMPILED_X_PROGRAM=0
30555
74b84332
VS
30556 fi
30557
30558 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
30559 if test "$wxUSE_NANOX" = "yes"; then
30560 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30561echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30562 if test "x$MICROWIN" = x ; then
30563 echo "$as_me:$LINENO: result: not found" >&5
30564echo "${ECHO_T}not found" >&6
30565 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30566echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30567 { (exit 1); exit 1; }; }
30568 else
30569 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30570echo "${ECHO_T}$MICROWIN" >&6
30571 cat >>confdefs.h <<\_ACEOF
30572#define wxUSE_NANOX 1
30573_ACEOF
30574
30575 fi
30576 fi
30577
30578 if test "$wxUSE_UNICODE" = "yes"; then
30579
479c790c
VZ
30580
30581if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30582 if test -n "$ac_tool_prefix"; then
30583 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30584set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30585echo "$as_me:$LINENO: checking for $ac_word" >&5
30586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30587if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30588 echo $ECHO_N "(cached) $ECHO_C" >&6
30589else
30590 case $PKG_CONFIG in
30591 [\\/]* | ?:[\\/]*)
30592 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30593 ;;
30594 *)
30595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30596for as_dir in $PATH
30597do
30598 IFS=$as_save_IFS
30599 test -z "$as_dir" && as_dir=.
30600 for ac_exec_ext in '' $ac_executable_extensions; do
30601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30602 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30604 break 2
30605 fi
30606done
30607done
30608
30609 ;;
30610esac
30611fi
30612PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30613
30614if test -n "$PKG_CONFIG"; then
30615 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30616echo "${ECHO_T}$PKG_CONFIG" >&6
30617else
30618 echo "$as_me:$LINENO: result: no" >&5
30619echo "${ECHO_T}no" >&6
30620fi
30621
30622fi
30623if test -z "$ac_cv_path_PKG_CONFIG"; then
30624 ac_pt_PKG_CONFIG=$PKG_CONFIG
30625 # Extract the first word of "pkg-config", so it can be a program name with args.
30626set dummy pkg-config; ac_word=$2
30627echo "$as_me:$LINENO: checking for $ac_word" >&5
30628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30629if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
30630 echo $ECHO_N "(cached) $ECHO_C" >&6
30631else
30632 case $ac_pt_PKG_CONFIG in
30633 [\\/]* | ?:[\\/]*)
30634 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
30635 ;;
30636 *)
30637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30638for as_dir in $PATH
30639do
30640 IFS=$as_save_IFS
30641 test -z "$as_dir" && as_dir=.
30642 for ac_exec_ext in '' $ac_executable_extensions; do
30643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30644 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30646 break 2
30647 fi
30648done
30649done
30650
30651 ;;
30652esac
30653fi
30654ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
30655
30656if test -n "$ac_pt_PKG_CONFIG"; then
30657 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30658echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
30659else
30660 echo "$as_me:$LINENO: result: no" >&5
30661echo "${ECHO_T}no" >&6
30662fi
30663
30664 PKG_CONFIG=$ac_pt_PKG_CONFIG
30665else
30666 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30667fi
30668
30669fi
30670if test -n "$PKG_CONFIG"; then
30671 _pkg_min_version=0.9.0
30672 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30673echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
30674 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
30675 echo "$as_me:$LINENO: result: yes" >&5
30676echo "${ECHO_T}yes" >&6
30677 else
30678 echo "$as_me:$LINENO: result: no" >&5
30679echo "${ECHO_T}no" >&6
30680 PKG_CONFIG=""
30681 fi
30682
30683fi
30684
30685
3ecd9f92
MW
30686pkg_failed=no
30687echo "$as_me:$LINENO: checking for PANGOX" >&5
30688echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 30689
3ecd9f92
MW
30690if test -n "$PKG_CONFIG"; then
30691 if test -n "$PANGOX_CFLAGS"; then
30692 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30693 else
30694 if test -n "$PKG_CONFIG" && \
30695 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30696 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30697 ac_status=$?
30698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699 (exit $ac_status); }; then
30700 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30701else
30702 pkg_failed=yes
30703fi
30704 fi
30705else
30706 pkg_failed=untried
30707fi
30708if test -n "$PKG_CONFIG"; then
30709 if test -n "$PANGOX_LIBS"; then
30710 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30711 else
30712 if test -n "$PKG_CONFIG" && \
30713 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30714 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30715 ac_status=$?
30716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717 (exit $ac_status); }; then
30718 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30719else
30720 pkg_failed=yes
30721fi
30722 fi
30723else
30724 pkg_failed=untried
30725fi
30726
30727
30728
30729if test $pkg_failed = yes; then
30730
30731if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30732 _pkg_short_errors_supported=yes
30733else
30734 _pkg_short_errors_supported=no
30735fi
30736 if test $_pkg_short_errors_supported = yes; then
30737 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30738 else
30739 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 30740 fi
3ecd9f92
MW
30741 # Put the nasty error message in config.log where it belongs
30742 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
30743
30744
479c790c 30745 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
30746echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30747 { (exit 1); exit 1; }; }
a848cd7e 30748
a848cd7e 30749
3ecd9f92 30750elif test $pkg_failed = untried; then
a848cd7e 30751
479c790c 30752 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
30753echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30754 { (exit 1); exit 1; }; }
30755
30756
30757else
30758 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
30759 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
30760 echo "$as_me:$LINENO: result: yes" >&5
30761echo "${ECHO_T}yes" >&6
30762
9b8888f9 30763 CFLAGS="$PANGOX_CFLAGS $CFLAGS"
479c790c
VZ
30764 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30765 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
3ecd9f92
MW
30766
30767fi
30768
30769pkg_failed=no
30770echo "$as_me:$LINENO: checking for PANGOFT2" >&5
30771echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
30772
30773if test -n "$PKG_CONFIG"; then
30774 if test -n "$PANGOFT2_CFLAGS"; then
30775 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
30776 else
30777 if test -n "$PKG_CONFIG" && \
30778 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30779 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30780 ac_status=$?
30781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782 (exit $ac_status); }; then
30783 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30784else
30785 pkg_failed=yes
30786fi
30787 fi
30788else
30789 pkg_failed=untried
30790fi
30791if test -n "$PKG_CONFIG"; then
30792 if test -n "$PANGOFT2_LIBS"; then
30793 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
30794 else
30795 if test -n "$PKG_CONFIG" && \
30796 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30797 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30798 ac_status=$?
30799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800 (exit $ac_status); }; then
30801 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30802else
30803 pkg_failed=yes
30804fi
30805 fi
30806else
30807 pkg_failed=untried
30808fi
30809
30810
30811
30812if test $pkg_failed = yes; then
30813
30814if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30815 _pkg_short_errors_supported=yes
30816else
30817 _pkg_short_errors_supported=no
30818fi
30819 if test $_pkg_short_errors_supported = yes; then
30820 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
30821 else
30822 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30823 fi
30824 # Put the nasty error message in config.log where it belongs
30825 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 30826
a848cd7e 30827
479c790c 30828 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
a848cd7e 30829echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 30830 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e
SC
30831
30832
3ecd9f92 30833elif test $pkg_failed = untried; then
a848cd7e 30834
479c790c 30835 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
3ecd9f92 30836echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 30837 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 30838
a848cd7e 30839
a848cd7e 30840else
3ecd9f92
MW
30841 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
30842 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
30843 echo "$as_me:$LINENO: result: yes" >&5
30844echo "${ECHO_T}yes" >&6
30845
9b8888f9 30846 CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
479c790c
VZ
30847 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
30848 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 30849
a848cd7e 30850fi
3ecd9f92
MW
30851
30852pkg_failed=no
30853echo "$as_me:$LINENO: checking for PANGOXFT" >&5
30854echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
30855
30856if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
30857 if test -n "$PANGOXFT_CFLAGS"; then
30858 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
30859 else
30860 if test -n "$PKG_CONFIG" && \
30861 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30862 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30863 ac_status=$?
30864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30865 (exit $ac_status); }; then
30866 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 30867else
3ecd9f92
MW
30868 pkg_failed=yes
30869fi
30870 fi
30871else
30872 pkg_failed=untried
30873fi
30874if test -n "$PKG_CONFIG"; then
30875 if test -n "$PANGOXFT_LIBS"; then
30876 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
30877 else
30878 if test -n "$PKG_CONFIG" && \
30879 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30880 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30881 ac_status=$?
30882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883 (exit $ac_status); }; then
30884 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
30885else
30886 pkg_failed=yes
30887fi
30888 fi
30889else
30890 pkg_failed=untried
a848cd7e
SC
30891fi
30892
a848cd7e 30893
a848cd7e 30894
3ecd9f92 30895if test $pkg_failed = yes; then
a848cd7e 30896
3ecd9f92
MW
30897if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30898 _pkg_short_errors_supported=yes
30899else
30900 _pkg_short_errors_supported=no
30901fi
30902 if test $_pkg_short_errors_supported = yes; then
30903 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
30904 else
30905 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 30906 fi
3ecd9f92
MW
30907 # Put the nasty error message in config.log where it belongs
30908 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
30909
30910
479c790c 30911 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
30912echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30913
a848cd7e 30914
3ecd9f92 30915elif test $pkg_failed = untried; then
a848cd7e 30916
479c790c 30917 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
30918echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30919
30920
30921else
30922 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
30923 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
30924 echo "$as_me:$LINENO: result: yes" >&5
30925echo "${ECHO_T}yes" >&6
a848cd7e 30926
479c790c 30927 cat >>confdefs.h <<\_ACEOF
4ae1af05
MB
30928#define HAVE_PANGO_XFT 1
30929_ACEOF
30930
9b8888f9 30931 CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
479c790c
VZ
30932 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
30933 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
a848cd7e 30934
3ecd9f92 30935fi
479c790c 30936 save_LIBS="$LIBS"
479c790c 30937 LIBS="$LIBS $PANGOX_LIBS"
304205f1
VS
30938
30939for ac_func in pango_font_family_is_monospace
30940do
30941as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30942echo "$as_me:$LINENO: checking for $ac_func" >&5
30943echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30944if eval "test \"\${$as_ac_var+set}\" = set"; then
30945 echo $ECHO_N "(cached) $ECHO_C" >&6
30946else
30947 cat >conftest.$ac_ext <<_ACEOF
30948/* confdefs.h. */
30949_ACEOF
30950cat confdefs.h >>conftest.$ac_ext
30951cat >>conftest.$ac_ext <<_ACEOF
30952/* end confdefs.h. */
30953/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30955#define $ac_func innocuous_$ac_func
30956
30957/* System header to define __stub macros and hopefully few prototypes,
30958 which can conflict with char $ac_func (); below.
30959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30960 <limits.h> exists even on freestanding compilers. */
30961
30962#ifdef __STDC__
30963# include <limits.h>
30964#else
30965# include <assert.h>
30966#endif
30967
30968#undef $ac_func
30969
30970/* Override any gcc2 internal prototype to avoid an error. */
30971#ifdef __cplusplus
30972extern "C"
30973{
30974#endif
30975/* We use char because int might match the return type of a gcc2
30976 builtin and then its argument prototype would still apply. */
30977char $ac_func ();
30978/* The GNU C library defines this for functions which it implements
30979 to always fail with ENOSYS. Some functions are actually named
30980 something starting with __ and the normal name is an alias. */
30981#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30982choke me
30983#else
30984char (*f) () = $ac_func;
30985#endif
30986#ifdef __cplusplus
30987}
30988#endif
30989
30990int
30991main ()
30992{
30993return f != $ac_func;
30994 ;
30995 return 0;
30996}
30997_ACEOF
30998rm -f conftest.$ac_objext conftest$ac_exeext
30999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31000 (eval $ac_link) 2>conftest.er1
31001 ac_status=$?
31002 grep -v '^ *+' conftest.er1 >conftest.err
31003 rm -f conftest.er1
31004 cat conftest.err >&5
31005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31006 (exit $ac_status); } &&
fd5199d6 31007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
31008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31009 (eval $ac_try) 2>&5
31010 ac_status=$?
31011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31012 (exit $ac_status); }; } &&
31013 { ac_try='test -s conftest$ac_exeext'
31014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31015 (eval $ac_try) 2>&5
31016 ac_status=$?
31017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31018 (exit $ac_status); }; }; then
31019 eval "$as_ac_var=yes"
31020else
31021 echo "$as_me: failed program was:" >&5
31022sed 's/^/| /' conftest.$ac_ext >&5
31023
31024eval "$as_ac_var=no"
31025fi
31026rm -f conftest.err conftest.$ac_objext \
31027 conftest$ac_exeext conftest.$ac_ext
31028fi
31029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31030echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31031if test `eval echo '${'$as_ac_var'}'` = yes; then
31032 cat >>confdefs.h <<_ACEOF
31033#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31034_ACEOF
31035
31036fi
31037done
31038
479c790c 31039 LIBS="$save_LIBS"
a848cd7e
SC
31040 fi
31041
31042 wxUSE_UNIVERSAL="yes"
31043
31044 if test "$wxUSE_NANOX" = "yes"; then
31045 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31046 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"
31047 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31048 else
31049 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31050 fi
31051
a848cd7e
SC
31052 TOOLKIT=X11
31053 GUIDIST=X11_DIST
31054 fi
31055
31056 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
31057 if test "$wxUSE_UNICODE" = "yes"; then
31058 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31059echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31060 { (exit 1); exit 1; }; }
31061 fi
31062
74b84332
VS
31063 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31064echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 31065
74b84332
VS
31066ac_find_includes=
31067for ac_dir in $SEARCH_INCLUDE /usr/include;
31068 do
31069 if test -f "$ac_dir/Xm/Xm.h"; then
31070 ac_find_includes=$ac_dir
31071 break
31072 fi
31073 done
a848cd7e 31074
74b84332
VS
31075 if test "$ac_find_includes" != "" ; then
31076 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31077echo "${ECHO_T}found in $ac_find_includes" >&6
31078
31079 if test "x$ac_find_includes" = "x/usr/include"; then
31080 ac_path_to_include=""
31081 else
31082 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31083 result=$?
31084 if test $result = 0; then
31085 ac_path_to_include=""
31086 else
31087 ac_path_to_include=" -I$ac_find_includes"
31088 fi
a848cd7e
SC
31089 fi
31090
74b84332
VS
31091 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31092 else
9b8888f9
VZ
31093 save_CFLAGS=$CFLAGS
31094 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
e051b34e 31095
74b84332 31096 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31097/* confdefs.h. */
31098_ACEOF
31099cat confdefs.h >>conftest.$ac_ext
31100cat >>conftest.$ac_ext <<_ACEOF
31101/* end confdefs.h. */
31102
74b84332
VS
31103 #include <Xm/Xm.h>
31104
a848cd7e
SC
31105int
31106main ()
31107{
31108
74b84332
VS
31109 int version;
31110 version = xmUseVersion;
31111
a848cd7e
SC
31112 ;
31113 return 0;
31114}
31115_ACEOF
74b84332
VS
31116rm -f conftest.$ac_objext
31117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31118 (eval $ac_compile) 2>conftest.er1
a848cd7e 31119 ac_status=$?
ac1cb8d3
VS
31120 grep -v '^ *+' conftest.er1 >conftest.err
31121 rm -f conftest.er1
31122 cat conftest.err >&5
a848cd7e
SC
31123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124 (exit $ac_status); } &&
fd5199d6 31125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31127 (eval $ac_try) 2>&5
31128 ac_status=$?
31129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130 (exit $ac_status); }; } &&
74b84332 31131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31133 (eval $ac_try) 2>&5
31134 ac_status=$?
31135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136 (exit $ac_status); }; }; then
74b84332
VS
31137
31138 echo "$as_me:$LINENO: result: found in default search path" >&5
31139echo "${ECHO_T}found in default search path" >&6
31140 COMPILED_X_PROGRAM=1
31141
a848cd7e
SC
31142else
31143 echo "$as_me: failed program was:" >&5
31144sed 's/^/| /' conftest.$ac_ext >&5
31145
a848cd7e 31146
74b84332
VS
31147 echo "$as_me:$LINENO: result: no" >&5
31148echo "${ECHO_T}no" >&6
e051b34e
MW
31149 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31150echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 31151 { (exit 1); exit 1; }; }
a848cd7e 31152
a848cd7e 31153
a848cd7e 31154fi
74b84332 31155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 31156
9b8888f9 31157 CFLAGS=$save_CFLAGS
74b84332
VS
31158 fi
31159
0ad5d837
VZ
31160
31161 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
31162echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31163
0ad5d837
VZ
31164 ac_find_libraries=
31165 for ac_dir in $SEARCH_LIB;
74b84332 31166 do
3eca31dc 31167 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
31168 if test -f "$ac_dir/libXm.$ac_extension"; then
31169 ac_find_libraries=$ac_dir
31170 break 2
a848cd7e 31171 fi
74b84332
VS
31172 done
31173 done
a848cd7e 31174
0ad5d837
VZ
31175
31176 if test "x$ac_find_libraries" != "x" ; then
31177 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31178echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 31179
74b84332 31180
0ad5d837 31181 if test "$ac_find_libraries" = "default location"; then
74b84332 31182 ac_path_to_link=""
a848cd7e 31183 else
0ad5d837
VZ
31184 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31185 result=$?
31186 if test $result = 0; then
31187 ac_path_to_link=""
31188 else
31189 ac_path_to_link=" -L$ac_find_libraries"
31190 fi
74b84332
VS
31191 fi
31192
0ad5d837
VZ
31193 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31194 else
9b8888f9
VZ
31195 save_CFLAGS=$CFLAGS
31196 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
6f9cf1e6
MW
31197 save_LIBS="$LIBS"
31198 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 31199
0ad5d837 31200 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31201/* confdefs.h. */
31202_ACEOF
31203cat confdefs.h >>conftest.$ac_ext
31204cat >>conftest.$ac_ext <<_ACEOF
31205/* end confdefs.h. */
31206
0ad5d837 31207 #include <Xm/Xm.h>
74b84332 31208
a848cd7e
SC
31209int
31210main ()
31211{
74b84332 31212
0ad5d837
VZ
31213 int version;
31214 version = xmUseVersion;
74b84332 31215
a848cd7e
SC
31216 ;
31217 return 0;
31218}
31219_ACEOF
0ad5d837
VZ
31220rm -f conftest.$ac_objext conftest$ac_exeext
31221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31222 (eval $ac_link) 2>conftest.er1
a848cd7e 31223 ac_status=$?
ac1cb8d3
VS
31224 grep -v '^ *+' conftest.er1 >conftest.err
31225 rm -f conftest.er1
31226 cat conftest.err >&5
a848cd7e
SC
31227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31228 (exit $ac_status); } &&
fd5199d6 31229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31231 (eval $ac_try) 2>&5
31232 ac_status=$?
31233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234 (exit $ac_status); }; } &&
0ad5d837 31235 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31237 (eval $ac_try) 2>&5
31238 ac_status=$?
31239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31240 (exit $ac_status); }; }; then
74b84332 31241
0ad5d837 31242 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 31243echo "${ECHO_T}found in default search path" >&6
0ad5d837 31244 COMPILED_X_PROGRAM=1
74b84332 31245
a848cd7e
SC
31246else
31247 echo "$as_me: failed program was:" >&5
31248sed 's/^/| /' conftest.$ac_ext >&5
31249
74b84332 31250
6f9cf1e6 31251 echo "$as_me:$LINENO: result: no" >&5
74b84332 31252echo "${ECHO_T}no" >&6
6f9cf1e6 31253 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
31254echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31255 { (exit 1); exit 1; }; }
31256
31257
31258fi
0ad5d837
VZ
31259rm -f conftest.err conftest.$ac_objext \
31260 conftest$ac_exeext conftest.$ac_ext
74b84332 31261
9b8888f9 31262 CFLAGS=$save_CFLAGS
6f9cf1e6 31263 LIBS="$save_LIBS"
74b84332
VS
31264 fi
31265
31266 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31267echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31268 libp_link=""
31269 libsm_ice_link=""
31270 libs_found=0
31271 for libp in "" " -lXp"; do
31272 if test "$libs_found" = "0"; then
31273 for libsm_ice in "" " -lSM -lICE"; do
31274 if test "$libs_found" = "0"; then
31275 save_LIBS="$LIBS"
31276 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
9b8888f9
VZ
31277 save_CFLAGS=$CFLAGS
31278 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
74b84332
VS
31279
31280 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31281/* confdefs.h. */
31282_ACEOF
31283cat confdefs.h >>conftest.$ac_ext
31284cat >>conftest.$ac_ext <<_ACEOF
31285/* end confdefs.h. */
31286
74b84332
VS
31287 #include <Xm/Xm.h>
31288 #include <Xm/List.h>
31289
a848cd7e
SC
31290int
31291main ()
31292{
74b84332
VS
31293
31294 XmString string = NULL;
31295 Widget w = NULL;
31296 int position = 0;
31297 XmListAddItem(w, string, position);
31298
a848cd7e
SC
31299 ;
31300 return 0;
31301}
31302_ACEOF
31303rm -f conftest.$ac_objext conftest$ac_exeext
31304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31305 (eval $ac_link) 2>conftest.er1
a848cd7e 31306 ac_status=$?
ac1cb8d3
VS
31307 grep -v '^ *+' conftest.er1 >conftest.err
31308 rm -f conftest.er1
31309 cat conftest.err >&5
a848cd7e
SC
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); } &&
fd5199d6 31312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31314 (eval $ac_try) 2>&5
31315 ac_status=$?
31316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317 (exit $ac_status); }; } &&
31318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31320 (eval $ac_try) 2>&5
31321 ac_status=$?
31322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323 (exit $ac_status); }; }; then
31324
31325 libp_link="$libp"
31326 libsm_ice_link="$libsm_ice"
31327 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31328echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31329 libs_found=1
31330
31331else
31332 echo "$as_me: failed program was:" >&5
31333sed 's/^/| /' conftest.$ac_ext >&5
31334
31335
31336
31337fi
ac1cb8d3
VS
31338rm -f conftest.err conftest.$ac_objext \
31339 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31340
31341 LIBS="$save_LIBS"
9b8888f9 31342 CFLAGS=$save_CFLAGS
a848cd7e
SC
31343 fi
31344 done
31345 fi
31346 done
31347
31348 if test "$libs_found" = "0"; then
31349 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31350echo "${ECHO_T}can't find the right libraries" >&6
31351 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31352echo "$as_me: error: can't link a simple motif program" >&2;}
31353 { (exit 1); exit 1; }; }
31354 fi
31355
62fa8b3a
MW
31356 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31357echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31358if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31359 echo $ECHO_N "(cached) $ECHO_C" >&6
31360else
31361 ac_check_lib_save_LIBS=$LIBS
31362LIBS="-lSgm $LIBS"
31363cat >conftest.$ac_ext <<_ACEOF
31364/* confdefs.h. */
31365_ACEOF
31366cat confdefs.h >>conftest.$ac_ext
31367cat >>conftest.$ac_ext <<_ACEOF
31368/* end confdefs.h. */
31369
31370/* Override any gcc2 internal prototype to avoid an error. */
31371#ifdef __cplusplus
31372extern "C"
31373#endif
31374/* We use char because int might match the return type of a gcc2
31375 builtin and then its argument prototype would still apply. */
31376char SgCreateList ();
31377int
31378main ()
31379{
31380SgCreateList ();
31381 ;
31382 return 0;
31383}
31384_ACEOF
31385rm -f conftest.$ac_objext conftest$ac_exeext
31386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31387 (eval $ac_link) 2>conftest.er1
31388 ac_status=$?
31389 grep -v '^ *+' conftest.er1 >conftest.err
31390 rm -f conftest.er1
31391 cat conftest.err >&5
31392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); } &&
fd5199d6 31394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
31395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31396 (eval $ac_try) 2>&5
31397 ac_status=$?
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); }; } &&
31400 { ac_try='test -s conftest$ac_exeext'
31401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31402 (eval $ac_try) 2>&5
31403 ac_status=$?
31404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405 (exit $ac_status); }; }; then
31406 ac_cv_lib_Sgm_SgCreateList=yes
31407else
31408 echo "$as_me: failed program was:" >&5
31409sed 's/^/| /' conftest.$ac_ext >&5
31410
31411ac_cv_lib_Sgm_SgCreateList=no
31412fi
31413rm -f conftest.err conftest.$ac_objext \
31414 conftest$ac_exeext conftest.$ac_ext
31415LIBS=$ac_check_lib_save_LIBS
31416fi
31417echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31418echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
31419if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31420 libsgm_link=" -lSgm"
31421fi
31422
31423
9b8888f9
VZ
31424 save_CFLAGS=$CFLAGS
31425 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
0ad5d837 31426
a848cd7e
SC
31427 echo "$as_me:$LINENO: checking for Motif 2" >&5
31428echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
31429if test "${wx_cv_lib_motif2+set}" = set; then
31430 echo $ECHO_N "(cached) $ECHO_C" >&6
31431else
31432 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31433/* confdefs.h. */
31434_ACEOF
31435cat confdefs.h >>conftest.$ac_ext
31436cat >>conftest.$ac_ext <<_ACEOF
31437/* end confdefs.h. */
31438
0ad5d837 31439 #include <Xm/Xm.h>
a848cd7e
SC
31440
31441int
31442main ()
31443{
31444
0ad5d837
VZ
31445 #if XmVersion < 2000
31446 Not Motif 2
31447 #endif
a848cd7e
SC
31448
31449 ;
31450 return 0;
31451}
31452_ACEOF
31453rm -f conftest.$ac_objext
31454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31455 (eval $ac_compile) 2>conftest.er1
a848cd7e 31456 ac_status=$?
ac1cb8d3
VS
31457 grep -v '^ *+' conftest.er1 >conftest.err
31458 rm -f conftest.er1
31459 cat conftest.err >&5
a848cd7e
SC
31460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461 (exit $ac_status); } &&
fd5199d6 31462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31464 (eval $ac_try) 2>&5
31465 ac_status=$?
31466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31467 (exit $ac_status); }; } &&
31468 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31470 (eval $ac_try) 2>&5
31471 ac_status=$?
31472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31473 (exit $ac_status); }; }; then
0ad5d837 31474 wx_cv_lib_motif2="yes"
a848cd7e
SC
31475else
31476 echo "$as_me: failed program was:" >&5
31477sed 's/^/| /' conftest.$ac_ext >&5
31478
0ad5d837
VZ
31479wx_cv_lib_motif2="no"
31480fi
31481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31482fi
31483echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31484echo "${ECHO_T}$wx_cv_lib_motif2" >&6
31485 if test "$wx_cv_lib_motif2" = "yes"; then
31486 cat >>confdefs.h <<\_ACEOF
31487#define __WXMOTIF20__ 1
31488_ACEOF
a848cd7e 31489
0ad5d837
VZ
31490 else
31491 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31492#define __WXMOTIF20__ 0
31493_ACEOF
31494
0ad5d837 31495 fi
2113bc77
MW
31496
31497 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31498echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
31499if test "${wx_cv_lib_lesstif+set}" = set; then
31500 echo $ECHO_N "(cached) $ECHO_C" >&6
31501else
31502 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
31503/* confdefs.h. */
31504_ACEOF
31505cat confdefs.h >>conftest.$ac_ext
31506cat >>conftest.$ac_ext <<_ACEOF
31507/* end confdefs.h. */
31508
0ad5d837 31509 #include <Xm/Xm.h>
2113bc77
MW
31510
31511int
31512main ()
31513{
31514
0ad5d837
VZ
31515 #if !defined(LesstifVersion) || LesstifVersion <= 0
31516 Not Lesstif
31517 #endif
2113bc77
MW
31518
31519 ;
31520 return 0;
31521}
31522_ACEOF
31523rm -f conftest.$ac_objext
31524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31525 (eval $ac_compile) 2>conftest.er1
31526 ac_status=$?
31527 grep -v '^ *+' conftest.er1 >conftest.err
31528 rm -f conftest.er1
31529 cat conftest.err >&5
31530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531 (exit $ac_status); } &&
fd5199d6 31532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
31533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31534 (eval $ac_try) 2>&5
31535 ac_status=$?
31536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537 (exit $ac_status); }; } &&
31538 { ac_try='test -s conftest.$ac_objext'
31539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31540 (eval $ac_try) 2>&5
31541 ac_status=$?
31542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); }; }; then
0ad5d837 31544 wx_cv_lib_lesstif="yes"
2113bc77
MW
31545else
31546 echo "$as_me: failed program was:" >&5
31547sed 's/^/| /' conftest.$ac_ext >&5
31548
0ad5d837
VZ
31549wx_cv_lib_lesstif="no"
31550fi
31551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 31552
0ad5d837
VZ
31553fi
31554echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31555echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31556 if test "$wx_cv_lib_lesstif" = "yes"; then
31557 cat >>confdefs.h <<\_ACEOF
31558#define __WXLESSTIF__ 1
31559_ACEOF
31560
31561 else
31562 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
31563#define __WXLESSTIF__ 0
31564_ACEOF
31565
0ad5d837 31566 fi
2113bc77 31567
9b8888f9 31568 CFLAGS=$save_CFLAGS
a848cd7e 31569
62fa8b3a 31570 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
31571 TOOLKIT=MOTIF
31572 GUIDIST=MOTIF_DIST
31573 fi
31574
74b84332 31575 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
31576 if test "$wxUSE_LIBXPM" = "sys"; then
31577 echo "$as_me:$LINENO: checking for Xpm library" >&5
31578echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31579
0ad5d837
VZ
31580 ac_find_libraries=
31581 for ac_dir in $SEARCH_LIB;
a848cd7e 31582 do
3eca31dc 31583 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31584 if test -f "$ac_dir/libXpm.$ac_extension"; then
31585 ac_find_libraries=$ac_dir
31586 break 2
31587 fi
31588 done
31589 done
31590
31591 if test "$ac_find_libraries" != "" ; then
31592
0ad5d837 31593 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31594 ac_path_to_link=""
31595 else
0ad5d837
VZ
31596 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31597 result=$?
31598 if test $result = 0; then
31599 ac_path_to_link=""
31600 else
31601 ac_path_to_link=" -L$ac_find_libraries"
31602 fi
a848cd7e
SC
31603 fi
31604
31605 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
31606 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31607echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
31608
31609 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31610echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31611if test "${wx_cv_x11_xpm_h+set}" = set; then
31612 echo $ECHO_N "(cached) $ECHO_C" >&6
31613else
31614
9b8888f9
VZ
31615 save_CFLAGS=$CFLAGS
31616 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
31617
31618 cat >conftest.$ac_ext <<_ACEOF
31619/* confdefs.h. */
31620_ACEOF
31621cat confdefs.h >>conftest.$ac_ext
31622cat >>conftest.$ac_ext <<_ACEOF
31623/* end confdefs.h. */
31624
31625 #include <X11/xpm.h>
31626
31627int
31628main ()
31629{
31630
31631 int version;
31632 version = XpmLibraryVersion();
31633
31634 ;
31635 return 0;
31636}
31637_ACEOF
31638rm -f conftest.$ac_objext
31639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31640 (eval $ac_compile) 2>conftest.er1
a848cd7e 31641 ac_status=$?
ac1cb8d3
VS
31642 grep -v '^ *+' conftest.er1 >conftest.err
31643 rm -f conftest.er1
31644 cat conftest.err >&5
a848cd7e
SC
31645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646 (exit $ac_status); } &&
fd5199d6 31647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31649 (eval $ac_try) 2>&5
31650 ac_status=$?
31651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652 (exit $ac_status); }; } &&
31653 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31655 (eval $ac_try) 2>&5
31656 ac_status=$?
31657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658 (exit $ac_status); }; }; then
31659 wx_cv_x11_xpm_h=yes
31660else
31661 echo "$as_me: failed program was:" >&5
31662sed 's/^/| /' conftest.$ac_ext >&5
31663
31664wx_cv_x11_xpm_h=no
31665
31666fi
ac1cb8d3 31667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 31668
9b8888f9 31669 CFLAGS=$save_CFLAGS
a848cd7e
SC
31670
31671
31672fi
31673echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31674echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31675
31676 if test $wx_cv_x11_xpm_h = "yes"; then
31677 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31678 cat >>confdefs.h <<\_ACEOF
31679#define wxHAVE_LIB_XPM 1
31680_ACEOF
31681
31682 else
31683 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31684echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31685 fi
31686 fi
31687
31688 fi
31689
31690 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31691echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31692if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31693 echo $ECHO_N "(cached) $ECHO_C" >&6
31694else
31695 ac_check_lib_save_LIBS=$LIBS
31696LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31697cat >conftest.$ac_ext <<_ACEOF
31698/* confdefs.h. */
31699_ACEOF
31700cat confdefs.h >>conftest.$ac_ext
31701cat >>conftest.$ac_ext <<_ACEOF
31702/* end confdefs.h. */
31703
31704/* Override any gcc2 internal prototype to avoid an error. */
31705#ifdef __cplusplus
31706extern "C"
31707#endif
31708/* We use char because int might match the return type of a gcc2
31709 builtin and then its argument prototype would still apply. */
31710char XShapeQueryExtension ();
31711int
31712main ()
31713{
31714XShapeQueryExtension ();
31715 ;
31716 return 0;
31717}
31718_ACEOF
31719rm -f conftest.$ac_objext conftest$ac_exeext
31720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31721 (eval $ac_link) 2>conftest.er1
a848cd7e 31722 ac_status=$?
ac1cb8d3
VS
31723 grep -v '^ *+' conftest.er1 >conftest.err
31724 rm -f conftest.er1
31725 cat conftest.err >&5
a848cd7e
SC
31726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31727 (exit $ac_status); } &&
fd5199d6 31728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31730 (eval $ac_try) 2>&5
31731 ac_status=$?
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); }; } &&
31734 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31736 (eval $ac_try) 2>&5
31737 ac_status=$?
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); }; }; then
31740 ac_cv_lib_Xext_XShapeQueryExtension=yes
31741else
31742 echo "$as_me: failed program was:" >&5
31743sed 's/^/| /' conftest.$ac_ext >&5
31744
31745ac_cv_lib_Xext_XShapeQueryExtension=no
31746fi
ac1cb8d3
VS
31747rm -f conftest.err conftest.$ac_objext \
31748 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31749LIBS=$ac_check_lib_save_LIBS
31750fi
31751echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31752echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31753if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31754
31755 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31756 wxHAVE_XEXT_LIB=1
31757
31758fi
31759
31760
31761 if test "$wxHAVE_XEXT_LIB" = 1; then
9b8888f9
VZ
31762 save_CFLAGS="$CFLAGS"
31763 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
31764
31765 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31766echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31767 cat >conftest.$ac_ext <<_ACEOF
31768/* confdefs.h. */
31769_ACEOF
31770cat confdefs.h >>conftest.$ac_ext
31771cat >>conftest.$ac_ext <<_ACEOF
31772/* end confdefs.h. */
31773
31774 #include <X11/Xlib.h>
31775 #include <X11/extensions/shape.h>
31776
31777int
31778main ()
31779{
31780
31781 int dummy1, dummy2;
31782 XShapeQueryExtension((Display*)NULL,
31783 (int*)NULL, (int*)NULL);
31784
31785 ;
31786 return 0;
31787}
31788_ACEOF
31789rm -f conftest.$ac_objext
31790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31791 (eval $ac_compile) 2>conftest.er1
a848cd7e 31792 ac_status=$?
ac1cb8d3
VS
31793 grep -v '^ *+' conftest.er1 >conftest.err
31794 rm -f conftest.er1
31795 cat conftest.err >&5
a848cd7e
SC
31796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797 (exit $ac_status); } &&
fd5199d6 31798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31800 (eval $ac_try) 2>&5
31801 ac_status=$?
31802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803 (exit $ac_status); }; } &&
31804 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31806 (eval $ac_try) 2>&5
31807 ac_status=$?
31808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31809 (exit $ac_status); }; }; then
31810
31811 cat >>confdefs.h <<\_ACEOF
31812#define HAVE_XSHAPE 1
31813_ACEOF
31814
31815 echo "$as_me:$LINENO: result: found" >&5
31816echo "${ECHO_T}found" >&6
31817
31818else
31819 echo "$as_me: failed program was:" >&5
31820sed 's/^/| /' conftest.$ac_ext >&5
31821
31822
31823 echo "$as_me:$LINENO: result: not found" >&5
31824echo "${ECHO_T}not found" >&6
31825
31826fi
ac1cb8d3 31827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9 31828 CFLAGS="$save_CFLAGS"
a848cd7e
SC
31829
31830 fi
31831 fi
31832
31833 if test "$wxUSE_MAC" = 1; then
31834 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31835echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31836 if test "$GCC" = yes; then
31837 echo "$as_me:$LINENO: result: gcc" >&5
31838echo "${ECHO_T}gcc" >&6
31839 CPPFLAGS_PASCAL="-fpascal-strings"
31840 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31841 echo "$as_me:$LINENO: result: xlc" >&5
31842echo "${ECHO_T}xlc" >&6
31843 CPPFLAGS_PASCAL="-qmacpstr"
31844 else
31845 echo "$as_me:$LINENO: result: none" >&5
31846echo "${ECHO_T}none" >&6
31847 fi
31848
1e9e8aba 31849 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 31850 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 31851 else
c92ad099 31852 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 31853 fi
a848cd7e 31854
a848cd7e
SC
31855 TOOLKIT=MAC
31856 GUIDIST=MACX_DIST
dd21ced8 31857 WXBASEPORT="_carbon"
a848cd7e
SC
31858 fi
31859
31860 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
31861 TOOLKIT=COCOA
31862 GUIDIST=COCOA_DIST
31863 fi
31864
31865 if test "$wxUSE_PM" = 1; then
31866 TOOLKIT=PM
de59c161
RD
31867 GUIDIST=PM_DIST
31868 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31869echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31870if test "${wx_cv_spbcdata+set}" = set; then
31871 echo $ECHO_N "(cached) $ECHO_C" >&6
31872else
31873
31874 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
31875/* confdefs.h. */
31876_ACEOF
31877cat confdefs.h >>conftest.$ac_ext
31878cat >>conftest.$ac_ext <<_ACEOF
31879/* end confdefs.h. */
31880
31881 #define INCL_PM
31882 #include <os2.h>
31883
31884int
31885main ()
31886{
31887
31888 SPBCDATA test;
31889
31890 ;
31891 return 0;
31892}
31893_ACEOF
31894rm -f conftest.$ac_objext
31895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31896 (eval $ac_compile) 2>conftest.er1
de59c161 31897 ac_status=$?
ac1cb8d3
VS
31898 grep -v '^ *+' conftest.er1 >conftest.err
31899 rm -f conftest.er1
31900 cat conftest.err >&5
de59c161
RD
31901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31902 (exit $ac_status); } &&
fd5199d6 31903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31905 (eval $ac_try) 2>&5
31906 ac_status=$?
31907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908 (exit $ac_status); }; } &&
31909 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
31910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31911 (eval $ac_try) 2>&5
31912 ac_status=$?
31913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31914 (exit $ac_status); }; }; then
31915 wx_cv_spbcdata=yes
31916else
31917 echo "$as_me: failed program was:" >&5
31918sed 's/^/| /' conftest.$ac_ext >&5
31919
31920wx_cv_spbcdata=no
31921
31922fi
ac1cb8d3 31923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
31924
31925
31926fi
31927echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31928echo "${ECHO_T}$wx_cv_spbcdata" >&6
31929
31930 if test $wx_cv_spbcdata = "yes"; then
31931 cat >>confdefs.h <<\_ACEOF
31932#define HAVE_SPBCDATA 1
31933_ACEOF
31934
31935 fi
a848cd7e
SC
31936 fi
31937
31938 if test "$TOOLKIT" = "PM" ; then
31939 TOOLKIT_DIR="os2"
31940 else
31941 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31942 fi
31943
a848cd7e 31944 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
31945 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31946 WIDGET_SET=univ
a848cd7e
SC
31947 fi
31948
31949 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31950 DISTDIR="wx\$(TOOLKIT)"
31951else
31952 USE_GUI=0
31953
31954 TOOLKIT_DIR="base"
31955
31956 if test "$USE_WIN32" = 1 ; then
a848cd7e 31957 TOOLKIT="MSW"
a848cd7e
SC
31958 fi
31959
a848cd7e
SC
31960 GUIDIST="BASE_DIST"
31961 DISTDIR="wxBase"
31962fi
31963
31964
d12aef51
VZ
31965if test "$wxUSE_GUI" = "yes"; then
31966 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31967
31968for ac_header in X11/Xlib.h
31969do
31970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31971if eval "test \"\${$as_ac_Header+set}\" = set"; then
31972 echo "$as_me:$LINENO: checking for $ac_header" >&5
31973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31974if eval "test \"\${$as_ac_Header+set}\" = set"; then
31975 echo $ECHO_N "(cached) $ECHO_C" >&6
31976fi
31977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31978echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31979else
31980 # Is the header compilable?
31981echo "$as_me:$LINENO: checking $ac_header usability" >&5
31982echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31983cat >conftest.$ac_ext <<_ACEOF
31984/* confdefs.h. */
31985_ACEOF
31986cat confdefs.h >>conftest.$ac_ext
31987cat >>conftest.$ac_ext <<_ACEOF
31988/* end confdefs.h. */
31989$ac_includes_default
31990#include <$ac_header>
31991_ACEOF
31992rm -f conftest.$ac_objext
31993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31994 (eval $ac_compile) 2>conftest.er1
31995 ac_status=$?
31996 grep -v '^ *+' conftest.er1 >conftest.err
31997 rm -f conftest.er1
31998 cat conftest.err >&5
31999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000 (exit $ac_status); } &&
fd5199d6 32001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32003 (eval $ac_try) 2>&5
32004 ac_status=$?
32005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006 (exit $ac_status); }; } &&
32007 { ac_try='test -s conftest.$ac_objext'
32008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32009 (eval $ac_try) 2>&5
32010 ac_status=$?
32011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32012 (exit $ac_status); }; }; then
32013 ac_header_compiler=yes
32014else
32015 echo "$as_me: failed program was:" >&5
32016sed 's/^/| /' conftest.$ac_ext >&5
32017
32018ac_header_compiler=no
32019fi
32020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32021echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32022echo "${ECHO_T}$ac_header_compiler" >&6
32023
32024# Is the header present?
32025echo "$as_me:$LINENO: checking $ac_header presence" >&5
32026echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32027cat >conftest.$ac_ext <<_ACEOF
32028/* confdefs.h. */
32029_ACEOF
32030cat confdefs.h >>conftest.$ac_ext
32031cat >>conftest.$ac_ext <<_ACEOF
32032/* end confdefs.h. */
32033#include <$ac_header>
32034_ACEOF
32035if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32037 ac_status=$?
32038 grep -v '^ *+' conftest.er1 >conftest.err
32039 rm -f conftest.er1
32040 cat conftest.err >&5
32041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042 (exit $ac_status); } >/dev/null; then
32043 if test -s conftest.err; then
fd5199d6
VZ
32044 ac_cpp_err=$ac_c_preproc_warn_flag
32045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
d12aef51
VZ
32046 else
32047 ac_cpp_err=
32048 fi
32049else
32050 ac_cpp_err=yes
32051fi
32052if test -z "$ac_cpp_err"; then
32053 ac_header_preproc=yes
32054else
32055 echo "$as_me: failed program was:" >&5
32056sed 's/^/| /' conftest.$ac_ext >&5
32057
32058 ac_header_preproc=no
32059fi
32060rm -f conftest.err conftest.$ac_ext
32061echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32062echo "${ECHO_T}$ac_header_preproc" >&6
32063
32064# So? What about this header?
fd5199d6 32065case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
d12aef51
VZ
32066 yes:no: )
32067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32068echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32070echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32071 ac_header_preproc=yes
32072 ;;
32073 no:yes:* )
32074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32075echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32077echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32079echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32081echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32083echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32085echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32086 (
32087 cat <<\_ASBOX
32088## ----------------------------------------- ##
32089## Report this to wx-dev@lists.wxwidgets.org ##
32090## ----------------------------------------- ##
32091_ASBOX
32092 ) |
32093 sed "s/^/$as_me: WARNING: /" >&2
32094 ;;
32095esac
32096echo "$as_me:$LINENO: checking for $ac_header" >&5
32097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32098if eval "test \"\${$as_ac_Header+set}\" = set"; then
32099 echo $ECHO_N "(cached) $ECHO_C" >&6
32100else
32101 eval "$as_ac_Header=\$ac_header_preproc"
32102fi
32103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32104echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32105
32106fi
32107if test `eval echo '${'$as_ac_Header'}'` = yes; then
32108 cat >>confdefs.h <<_ACEOF
32109#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32110_ACEOF
32111
32112fi
32113
32114done
32115
32116
32117for ac_header in X11/XKBlib.h
32118do
32119as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32120echo "$as_me:$LINENO: checking for $ac_header" >&5
32121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32122if eval "test \"\${$as_ac_Header+set}\" = set"; then
32123 echo $ECHO_N "(cached) $ECHO_C" >&6
32124else
32125 cat >conftest.$ac_ext <<_ACEOF
32126/* confdefs.h. */
32127_ACEOF
32128cat confdefs.h >>conftest.$ac_ext
32129cat >>conftest.$ac_ext <<_ACEOF
32130/* end confdefs.h. */
32131
32132 #if HAVE_X11_XLIB_H
32133 #include <X11/Xlib.h>
32134 #endif
32135
32136
32137#include <$ac_header>
32138_ACEOF
32139rm -f conftest.$ac_objext
32140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32141 (eval $ac_compile) 2>conftest.er1
32142 ac_status=$?
32143 grep -v '^ *+' conftest.er1 >conftest.err
32144 rm -f conftest.er1
32145 cat conftest.err >&5
32146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32147 (exit $ac_status); } &&
fd5199d6 32148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
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); }; } &&
32154 { ac_try='test -s conftest.$ac_objext'
32155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32156 (eval $ac_try) 2>&5
32157 ac_status=$?
32158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32159 (exit $ac_status); }; }; then
32160 eval "$as_ac_Header=yes"
32161else
32162 echo "$as_me: failed program was:" >&5
32163sed 's/^/| /' conftest.$ac_ext >&5
32164
32165eval "$as_ac_Header=no"
32166fi
32167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32168fi
32169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32171if test `eval echo '${'$as_ac_Header'}'` = yes; then
32172 cat >>confdefs.h <<_ACEOF
32173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32174_ACEOF
32175
32176fi
32177
32178done
32179
32180 fi
32181fi
32182
a848cd7e
SC
32183
32184
32185IODBC_C_SRC=""
32186
32187
32188if test "$TOOLKIT" != "MSW" ; then
32189
32190 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32191
32192 if test "${ac_cv_header_sql_h+set}" = set; then
32193 echo "$as_me:$LINENO: checking for sql.h" >&5
32194echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32195if test "${ac_cv_header_sql_h+set}" = set; then
32196 echo $ECHO_N "(cached) $ECHO_C" >&6
32197fi
32198echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32199echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32200else
32201 # Is the header compilable?
32202echo "$as_me:$LINENO: checking sql.h usability" >&5
32203echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
32204cat >conftest.$ac_ext <<_ACEOF
32205/* confdefs.h. */
32206_ACEOF
32207cat confdefs.h >>conftest.$ac_ext
32208cat >>conftest.$ac_ext <<_ACEOF
32209/* end confdefs.h. */
32210$ac_includes_default
32211#include <sql.h>
32212_ACEOF
32213rm -f conftest.$ac_objext
32214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32215 (eval $ac_compile) 2>conftest.er1
a848cd7e 32216 ac_status=$?
ac1cb8d3
VS
32217 grep -v '^ *+' conftest.er1 >conftest.err
32218 rm -f conftest.er1
32219 cat conftest.err >&5
a848cd7e
SC
32220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221 (exit $ac_status); } &&
fd5199d6 32222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32224 (eval $ac_try) 2>&5
32225 ac_status=$?
32226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227 (exit $ac_status); }; } &&
32228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32230 (eval $ac_try) 2>&5
32231 ac_status=$?
32232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32233 (exit $ac_status); }; }; then
32234 ac_header_compiler=yes
32235else
32236 echo "$as_me: failed program was:" >&5
32237sed 's/^/| /' conftest.$ac_ext >&5
32238
32239ac_header_compiler=no
32240fi
ac1cb8d3 32241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32242echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32243echo "${ECHO_T}$ac_header_compiler" >&6
32244
32245# Is the header present?
32246echo "$as_me:$LINENO: checking sql.h presence" >&5
32247echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32248cat >conftest.$ac_ext <<_ACEOF
32249/* confdefs.h. */
32250_ACEOF
32251cat confdefs.h >>conftest.$ac_ext
32252cat >>conftest.$ac_ext <<_ACEOF
32253/* end confdefs.h. */
32254#include <sql.h>
32255_ACEOF
32256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32258 ac_status=$?
32259 grep -v '^ *+' conftest.er1 >conftest.err
32260 rm -f conftest.er1
32261 cat conftest.err >&5
32262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32263 (exit $ac_status); } >/dev/null; then
32264 if test -s conftest.err; then
fd5199d6
VZ
32265 ac_cpp_err=$ac_c_preproc_warn_flag
32266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32267 else
32268 ac_cpp_err=
32269 fi
32270else
32271 ac_cpp_err=yes
32272fi
32273if test -z "$ac_cpp_err"; then
32274 ac_header_preproc=yes
32275else
32276 echo "$as_me: failed program was:" >&5
32277sed 's/^/| /' conftest.$ac_ext >&5
32278
32279 ac_header_preproc=no
32280fi
32281rm -f conftest.err conftest.$ac_ext
32282echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32283echo "${ECHO_T}$ac_header_preproc" >&6
32284
32285# So? What about this header?
fd5199d6 32286case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 32287 yes:no: )
a848cd7e
SC
32288 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32289echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32290 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32291echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32292 ac_header_preproc=yes
a848cd7e 32293 ;;
ac1cb8d3 32294 no:yes:* )
a848cd7e
SC
32295 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32296echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32297 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
32298echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
32299 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32300echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32301 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
32302echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32303 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32304echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32305 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32306echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32307 (
32308 cat <<\_ASBOX
ac1cb8d3
VS
32309## ----------------------------------------- ##
32310## Report this to wx-dev@lists.wxwidgets.org ##
32311## ----------------------------------------- ##
a848cd7e
SC
32312_ASBOX
32313 ) |
32314 sed "s/^/$as_me: WARNING: /" >&2
32315 ;;
32316esac
32317echo "$as_me:$LINENO: checking for sql.h" >&5
32318echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32319if test "${ac_cv_header_sql_h+set}" = set; then
32320 echo $ECHO_N "(cached) $ECHO_C" >&6
32321else
32322 ac_cv_header_sql_h=$ac_header_preproc
32323fi
32324echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32325echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32326
32327fi
32328if test $ac_cv_header_sql_h = yes; then
32329 found_sql_h=1
32330fi
32331
32332
32333 if test "x$found_sql_h" = "x1" ; then
32334 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32335echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32336if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32337 echo $ECHO_N "(cached) $ECHO_C" >&6
32338else
32339 ac_check_lib_save_LIBS=$LIBS
32340LIBS="-liodbc $LIBS"
32341cat >conftest.$ac_ext <<_ACEOF
32342/* confdefs.h. */
32343_ACEOF
32344cat confdefs.h >>conftest.$ac_ext
32345cat >>conftest.$ac_ext <<_ACEOF
32346/* end confdefs.h. */
32347
32348/* Override any gcc2 internal prototype to avoid an error. */
32349#ifdef __cplusplus
32350extern "C"
32351#endif
32352/* We use char because int might match the return type of a gcc2
32353 builtin and then its argument prototype would still apply. */
32354char SQLAllocEnv ();
32355int
32356main ()
32357{
32358SQLAllocEnv ();
32359 ;
32360 return 0;
32361}
32362_ACEOF
32363rm -f conftest.$ac_objext conftest$ac_exeext
32364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32365 (eval $ac_link) 2>conftest.er1
a848cd7e 32366 ac_status=$?
ac1cb8d3
VS
32367 grep -v '^ *+' conftest.er1 >conftest.err
32368 rm -f conftest.er1
32369 cat conftest.err >&5
a848cd7e
SC
32370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371 (exit $ac_status); } &&
fd5199d6 32372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32374 (eval $ac_try) 2>&5
32375 ac_status=$?
32376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377 (exit $ac_status); }; } &&
32378 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32380 (eval $ac_try) 2>&5
32381 ac_status=$?
32382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32383 (exit $ac_status); }; }; then
32384 ac_cv_lib_iodbc_SQLAllocEnv=yes
32385else
32386 echo "$as_me: failed program was:" >&5
32387sed 's/^/| /' conftest.$ac_ext >&5
32388
32389ac_cv_lib_iodbc_SQLAllocEnv=no
32390fi
ac1cb8d3
VS
32391rm -f conftest.err conftest.$ac_objext \
32392 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32393LIBS=$ac_check_lib_save_LIBS
32394fi
32395echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32396echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
32397if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32398 ODBC_LINK=" -liodbc"
32399else
32400
32401 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32402echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
32403if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32404 echo $ECHO_N "(cached) $ECHO_C" >&6
32405else
32406 ac_check_lib_save_LIBS=$LIBS
32407LIBS="-lunixodbc $LIBS"
32408cat >conftest.$ac_ext <<_ACEOF
32409/* confdefs.h. */
32410_ACEOF
32411cat confdefs.h >>conftest.$ac_ext
32412cat >>conftest.$ac_ext <<_ACEOF
32413/* end confdefs.h. */
32414
32415/* Override any gcc2 internal prototype to avoid an error. */
32416#ifdef __cplusplus
32417extern "C"
32418#endif
32419/* We use char because int might match the return type of a gcc2
32420 builtin and then its argument prototype would still apply. */
32421char SQLAllocEnv ();
32422int
32423main ()
32424{
32425SQLAllocEnv ();
32426 ;
32427 return 0;
32428}
32429_ACEOF
32430rm -f conftest.$ac_objext conftest$ac_exeext
32431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32432 (eval $ac_link) 2>conftest.er1
a848cd7e 32433 ac_status=$?
ac1cb8d3
VS
32434 grep -v '^ *+' conftest.er1 >conftest.err
32435 rm -f conftest.er1
32436 cat conftest.err >&5
a848cd7e
SC
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); } &&
fd5199d6 32439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32441 (eval $ac_try) 2>&5
32442 ac_status=$?
32443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32444 (exit $ac_status); }; } &&
32445 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32447 (eval $ac_try) 2>&5
32448 ac_status=$?
32449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32450 (exit $ac_status); }; }; then
32451 ac_cv_lib_unixodbc_SQLAllocEnv=yes
32452else
32453 echo "$as_me: failed program was:" >&5
32454sed 's/^/| /' conftest.$ac_ext >&5
32455
32456ac_cv_lib_unixodbc_SQLAllocEnv=no
32457fi
ac1cb8d3
VS
32458rm -f conftest.err conftest.$ac_objext \
32459 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32460LIBS=$ac_check_lib_save_LIBS
32461fi
32462echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
32463echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
32464if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
32465 ODBC_LINK=" -lunixodbc"
32466else
32467
32468 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
32469echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
32470if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
32471 echo $ECHO_N "(cached) $ECHO_C" >&6
32472else
32473 ac_check_lib_save_LIBS=$LIBS
32474LIBS="-lodbc $LIBS"
32475cat >conftest.$ac_ext <<_ACEOF
32476/* confdefs.h. */
32477_ACEOF
32478cat confdefs.h >>conftest.$ac_ext
32479cat >>conftest.$ac_ext <<_ACEOF
32480/* end confdefs.h. */
32481
32482/* Override any gcc2 internal prototype to avoid an error. */
32483#ifdef __cplusplus
32484extern "C"
32485#endif
32486/* We use char because int might match the return type of a gcc2
32487 builtin and then its argument prototype would still apply. */
32488char SQLAllocEnv ();
32489int
32490main ()
32491{
32492SQLAllocEnv ();
32493 ;
32494 return 0;
32495}
32496_ACEOF
32497rm -f conftest.$ac_objext conftest$ac_exeext
32498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32499 (eval $ac_link) 2>conftest.er1
a848cd7e 32500 ac_status=$?
ac1cb8d3
VS
32501 grep -v '^ *+' conftest.er1 >conftest.err
32502 rm -f conftest.er1
32503 cat conftest.err >&5
a848cd7e
SC
32504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505 (exit $ac_status); } &&
fd5199d6 32506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32508 (eval $ac_try) 2>&5
32509 ac_status=$?
32510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511 (exit $ac_status); }; } &&
32512 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32514 (eval $ac_try) 2>&5
32515 ac_status=$?
32516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517 (exit $ac_status); }; }; then
32518 ac_cv_lib_odbc_SQLAllocEnv=yes
32519else
32520 echo "$as_me: failed program was:" >&5
32521sed 's/^/| /' conftest.$ac_ext >&5
32522
32523ac_cv_lib_odbc_SQLAllocEnv=no
32524fi
ac1cb8d3
VS
32525rm -f conftest.err conftest.$ac_objext \
32526 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32527LIBS=$ac_check_lib_save_LIBS
32528fi
32529echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32530echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32531if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32532 ODBC_LINK=" -lodbc"
32533fi
32534
32535
32536fi
32537
32538
32539fi
32540
32541 fi
32542 if test "x$ODBC_LINK" = "x" ; then
32543 if test "$wxUSE_ODBC" = "sys" ; then
32544 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32545echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32546 { (exit 1); exit 1; }; }
32547 else
32548 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32549echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32550 wxUSE_ODBC=builtin
32551 fi
32552 else
32553 wxUSE_ODBC=sys
32554 fi
32555 fi
a848cd7e 32556
2da0c077
RD
32557 if test "$wxUSE_ODBC" = "builtin" ; then
32558 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32559#define wxUSE_BUILTIN_IODBC 1
32560_ACEOF
32561
a848cd7e
SC
32562 fi
32563fi
32564
2da0c077
RD
32565if test "$wxUSE_ODBC" != "no" ; then
32566 cat >>confdefs.h <<\_ACEOF
32567#define wxUSE_ODBC 1
32568_ACEOF
32569
32570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32571
5ff751d6 32572 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 32573fi
a848cd7e 32574
01cb68df 32575
a848cd7e 32576if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 32577 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
32578 echo "$as_me:$LINENO: checking for Xinerama" >&5
32579echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32580
0ad5d837
VZ
32581 ac_find_libraries=
32582 for ac_dir in $SEARCH_LIB;
32583 do
32584 for ac_extension in a so sl dylib dll.a; do
32585 if test -f "$ac_dir/libXinerama.$ac_extension"; then
32586 ac_find_libraries=$ac_dir
32587 break 2
32588 fi
32589 done
32590 done
32591
a848cd7e
SC
32592 if test "$ac_find_libraries" != "" ; then
32593
0ad5d837 32594 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32595 ac_path_to_link=""
32596 else
0ad5d837
VZ
32597 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32598 result=$?
32599 if test $result = 0; then
32600 ac_path_to_link=""
32601 else
32602 ac_path_to_link=" -L$ac_find_libraries"
32603 fi
a848cd7e
SC
32604 fi
32605
32606 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32607 LDFLAGS="$LDFLAGS $ac_path_to_link"
32608 fi
32609 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32610 echo "$as_me:$LINENO: result: yes" >&5
32611echo "${ECHO_T}yes" >&6
32612
32613 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32614echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32615
0ad5d837
VZ
32616 ac_find_libraries=
32617 for ac_dir in $SEARCH_LIB;
a848cd7e 32618 do
3eca31dc 32619 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32620 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32621 ac_find_libraries=$ac_dir
32622 break 2
32623 fi
32624 done
32625 done
32626
32627 if test "$ac_find_libraries" != "" ; then
32628 echo "$as_me:$LINENO: result: yes" >&5
32629echo "${ECHO_T}yes" >&6
32630
32631for ac_header in X11/extensions/xf86vmode.h
32632do
32633as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32634echo "$as_me:$LINENO: checking for $ac_header" >&5
32635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32636if eval "test \"\${$as_ac_Header+set}\" = set"; then
32637 echo $ECHO_N "(cached) $ECHO_C" >&6
32638else
32639 cat >conftest.$ac_ext <<_ACEOF
32640/* confdefs.h. */
32641_ACEOF
32642cat confdefs.h >>conftest.$ac_ext
32643cat >>conftest.$ac_ext <<_ACEOF
32644/* end confdefs.h. */
32645
32646 #if HAVE_X11_XLIB_H
32647 #include <X11/Xlib.h>
32648 #endif
32649
32650
32651#include <$ac_header>
32652_ACEOF
32653rm -f conftest.$ac_objext
32654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32655 (eval $ac_compile) 2>conftest.er1
a848cd7e 32656 ac_status=$?
ac1cb8d3
VS
32657 grep -v '^ *+' conftest.er1 >conftest.err
32658 rm -f conftest.er1
32659 cat conftest.err >&5
a848cd7e
SC
32660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32661 (exit $ac_status); } &&
fd5199d6 32662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32664 (eval $ac_try) 2>&5
32665 ac_status=$?
32666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32667 (exit $ac_status); }; } &&
32668 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32670 (eval $ac_try) 2>&5
32671 ac_status=$?
32672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32673 (exit $ac_status); }; }; then
32674 eval "$as_ac_Header=yes"
32675else
32676 echo "$as_me: failed program was:" >&5
32677sed 's/^/| /' conftest.$ac_ext >&5
32678
32679eval "$as_ac_Header=no"
32680fi
ac1cb8d3 32681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32682fi
32683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32685if test `eval echo '${'$as_ac_Header'}'` = yes; then
32686 cat >>confdefs.h <<_ACEOF
32687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32688_ACEOF
32689
32690 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32691
32692fi
32693
32694done
32695
32696 else
32697 echo "$as_me:$LINENO: result: no" >&5
32698echo "${ECHO_T}no" >&6
32699 fi
32700
32701 else
32702 echo "$as_me:$LINENO: result: no" >&5
32703echo "${ECHO_T}no" >&6
dcc1b6ad
VS
32704 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32705echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
32706 wxUSE_DISPLAY="no"
32707 fi
01cb68df
RG
32708 elif test "$wxUSE_MSW" = 1; then
32709
e5efa97e 32710for ac_header in ddraw.h
01cb68df
RG
32711do
32712as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 32713echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
32714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32715if eval "test \"\${$as_ac_Header+set}\" = set"; then
32716 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 32717else
5294a27e 32718 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
32719/* confdefs.h. */
32720_ACEOF
32721cat confdefs.h >>conftest.$ac_ext
32722cat >>conftest.$ac_ext <<_ACEOF
32723/* end confdefs.h. */
5294a27e
VZ
32724#include <windows.h>
32725
01cb68df
RG
32726#include <$ac_header>
32727_ACEOF
32728rm -f conftest.$ac_objext
32729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32730 (eval $ac_compile) 2>conftest.er1
01cb68df 32731 ac_status=$?
ac1cb8d3
VS
32732 grep -v '^ *+' conftest.er1 >conftest.err
32733 rm -f conftest.er1
32734 cat conftest.err >&5
01cb68df
RG
32735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736 (exit $ac_status); } &&
fd5199d6 32737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32739 (eval $ac_try) 2>&5
32740 ac_status=$?
32741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742 (exit $ac_status); }; } &&
32743 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
32744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32745 (eval $ac_try) 2>&5
32746 ac_status=$?
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); }; }; then
5294a27e 32749 eval "$as_ac_Header=yes"
01cb68df
RG
32750else
32751 echo "$as_me: failed program was:" >&5
32752sed 's/^/| /' conftest.$ac_ext >&5
32753
5294a27e 32754eval "$as_ac_Header=no"
01cb68df 32755fi
ac1cb8d3 32756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
32757fi
32758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32759echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
32760if test `eval echo '${'$as_ac_Header'}'` = yes; then
32761 cat >>confdefs.h <<_ACEOF
32762#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32763_ACEOF
32764
01cb68df
RG
32765fi
32766
32767done
32768
a848cd7e
SC
32769 fi
32770fi
32771
88bbc332
RR
32772if test "$wxUSE_DETECT_SM" = "yes"; then
32773 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32774 echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
32775echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6
32776
32777 ac_find_libraries=
32778 for ac_dir in $SEARCH_LIB;
32779 do
32780 for ac_extension in a so sl dylib dll.a; do
32781 if test -f "$ac_dir/libSM.$ac_extension"; then
32782 ac_find_libraries=$ac_dir
32783 break 2
32784 fi
32785 done
32786 done
32787
32788 if test "$ac_find_libraries" != "" ; then
32789
32790 if test "$ac_find_libraries" = "default location"; then
32791 ac_path_to_link=""
32792 else
32793 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32794 result=$?
32795 if test $result = 0; then
32796 ac_path_to_link=""
32797 else
32798 ac_path_to_link=" -L$ac_find_libraries"
32799 fi
32800 fi
32801
32802 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32803 LDFLAGS="$LDFLAGS $ac_path_to_link"
32804 fi
32805 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
32806 echo "$as_me:$LINENO: result: yes" >&5
32807echo "${ECHO_T}yes" >&6
32808 else
32809 echo "$as_me:$LINENO: result: no" >&5
32810echo "${ECHO_T}no" >&6
32811 { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
32812echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
32813 wxUSE_DETECT_SM="no"
32814 fi
32815 else
32816 wxUSE_DETECT_SM="no"
32817 fi
32818fi
32819
32820
a848cd7e
SC
32821
32822USE_OPENGL=0
32823if test "$wxUSE_OPENGL" = "yes"; then
2e35565a
VZ
32824 if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
32825 { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
32826echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
32827 wxUSE_OPENGL="no"
32828 elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
a848cd7e
SC
32829 OPENGL_LIBS="-framework OpenGL -framework AGL"
32830 elif test "$wxUSE_MSW" = 1; then
32831 OPENGL_LIBS="-lopengl32 -lglu32"
32832 else
e541dae0
VZ
32833 echo "$as_me:$LINENO: checking for OpenGL headers" >&5
32834echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6
a848cd7e 32835
a848cd7e 32836ac_find_includes=
02b05020 32837for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
a848cd7e
SC
32838 do
32839 if test -f "$ac_dir/GL/gl.h"; then
32840 ac_find_includes=$ac_dir
32841 break
32842 fi
32843 done
32844
32845 if test "$ac_find_includes" != "" ; then
32846 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32847echo "${ECHO_T}found in $ac_find_includes" >&6
32848
32849 if test "x$ac_find_includes" = "x/usr/include"; then
32850 ac_path_to_include=""
32851 else
32852 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32853 result=$?
32854 if test $result = 0; then
32855 ac_path_to_include=""
32856 else
32857 ac_path_to_include=" -I$ac_find_includes"
32858 fi
32859 fi
32860
c92ad099 32861 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
e541dae0
VZ
32862 else
32863 echo "$as_me:$LINENO: result: not found" >&5
32864echo "${ECHO_T}not found" >&6
a848cd7e
SC
32865 fi
32866
32867 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32868 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32869echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32870if test "${ac_cv_header_GL_gl_h+set}" = set; then
32871 echo $ECHO_N "(cached) $ECHO_C" >&6
32872fi
32873echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32874echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32875else
32876 # Is the header compilable?
32877echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32878echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32879cat >conftest.$ac_ext <<_ACEOF
32880/* confdefs.h. */
32881_ACEOF
32882cat confdefs.h >>conftest.$ac_ext
32883cat >>conftest.$ac_ext <<_ACEOF
32884/* end confdefs.h. */
32885$ac_includes_default
32886#include <GL/gl.h>
32887_ACEOF
32888rm -f conftest.$ac_objext
32889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32890 (eval $ac_compile) 2>conftest.er1
a848cd7e 32891 ac_status=$?
ac1cb8d3
VS
32892 grep -v '^ *+' conftest.er1 >conftest.err
32893 rm -f conftest.er1
32894 cat conftest.err >&5
a848cd7e
SC
32895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896 (exit $ac_status); } &&
fd5199d6 32897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32899 (eval $ac_try) 2>&5
32900 ac_status=$?
32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902 (exit $ac_status); }; } &&
32903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32905 (eval $ac_try) 2>&5
32906 ac_status=$?
32907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908 (exit $ac_status); }; }; then
32909 ac_header_compiler=yes
32910else
32911 echo "$as_me: failed program was:" >&5
32912sed 's/^/| /' conftest.$ac_ext >&5
32913
32914ac_header_compiler=no
32915fi
ac1cb8d3 32916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32917echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32918echo "${ECHO_T}$ac_header_compiler" >&6
32919
32920# Is the header present?
32921echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32922echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32923cat >conftest.$ac_ext <<_ACEOF
32924/* confdefs.h. */
32925_ACEOF
32926cat confdefs.h >>conftest.$ac_ext
32927cat >>conftest.$ac_ext <<_ACEOF
32928/* end confdefs.h. */
32929#include <GL/gl.h>
32930_ACEOF
32931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32933 ac_status=$?
32934 grep -v '^ *+' conftest.er1 >conftest.err
32935 rm -f conftest.er1
32936 cat conftest.err >&5
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); } >/dev/null; then
32939 if test -s conftest.err; then
fd5199d6
VZ
32940 ac_cpp_err=$ac_c_preproc_warn_flag
32941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32942 else
32943 ac_cpp_err=
32944 fi
32945else
32946 ac_cpp_err=yes
32947fi
32948if test -z "$ac_cpp_err"; then
32949 ac_header_preproc=yes
32950else
32951 echo "$as_me: failed program was:" >&5
32952sed 's/^/| /' conftest.$ac_ext >&5
32953
32954 ac_header_preproc=no
32955fi
32956rm -f conftest.err conftest.$ac_ext
32957echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32958echo "${ECHO_T}$ac_header_preproc" >&6
32959
32960# So? What about this header?
fd5199d6 32961case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 32962 yes:no: )
a848cd7e
SC
32963 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32964echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32965 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32966echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32967 ac_header_preproc=yes
a848cd7e 32968 ;;
ac1cb8d3 32969 no:yes:* )
a848cd7e
SC
32970 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32971echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32972 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
32973echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
32974 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32975echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32976 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
32977echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32978 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32979echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32980 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32981echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32982 (
32983 cat <<\_ASBOX
ac1cb8d3
VS
32984## ----------------------------------------- ##
32985## Report this to wx-dev@lists.wxwidgets.org ##
32986## ----------------------------------------- ##
a848cd7e
SC
32987_ASBOX
32988 ) |
32989 sed "s/^/$as_me: WARNING: /" >&2
32990 ;;
32991esac
32992echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32993echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32994if test "${ac_cv_header_GL_gl_h+set}" = set; then
32995 echo $ECHO_N "(cached) $ECHO_C" >&6
32996else
32997 ac_cv_header_GL_gl_h=$ac_header_preproc
32998fi
32999echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33000echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33001
33002fi
33003if test $ac_cv_header_GL_gl_h = yes; then
33004
5dfc7e56
VZ
33005 if test "${ac_cv_header_GL_glu_h+set}" = set; then
33006 echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33007echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6
33008if test "${ac_cv_header_GL_glu_h+set}" = set; then
33009 echo $ECHO_N "(cached) $ECHO_C" >&6
33010fi
33011echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33012echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6
33013else
33014 # Is the header compilable?
33015echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
33016echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6
33017cat >conftest.$ac_ext <<_ACEOF
33018/* confdefs.h. */
33019_ACEOF
33020cat confdefs.h >>conftest.$ac_ext
33021cat >>conftest.$ac_ext <<_ACEOF
33022/* end confdefs.h. */
33023$ac_includes_default
33024#include <GL/glu.h>
33025_ACEOF
33026rm -f conftest.$ac_objext
33027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33028 (eval $ac_compile) 2>conftest.er1
33029 ac_status=$?
33030 grep -v '^ *+' conftest.er1 >conftest.err
33031 rm -f conftest.er1
33032 cat conftest.err >&5
33033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034 (exit $ac_status); } &&
fd5199d6 33035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5dfc7e56
VZ
33036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33037 (eval $ac_try) 2>&5
33038 ac_status=$?
33039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33040 (exit $ac_status); }; } &&
33041 { ac_try='test -s conftest.$ac_objext'
33042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33043 (eval $ac_try) 2>&5
33044 ac_status=$?
33045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046 (exit $ac_status); }; }; then
33047 ac_header_compiler=yes
33048else
33049 echo "$as_me: failed program was:" >&5
33050sed 's/^/| /' conftest.$ac_ext >&5
33051
33052ac_header_compiler=no
33053fi
33054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33055echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33056echo "${ECHO_T}$ac_header_compiler" >&6
33057
33058# Is the header present?
33059echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
33060echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6
33061cat >conftest.$ac_ext <<_ACEOF
33062/* confdefs.h. */
33063_ACEOF
33064cat confdefs.h >>conftest.$ac_ext
33065cat >>conftest.$ac_ext <<_ACEOF
33066/* end confdefs.h. */
33067#include <GL/glu.h>
33068_ACEOF
33069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33071 ac_status=$?
33072 grep -v '^ *+' conftest.er1 >conftest.err
33073 rm -f conftest.er1
33074 cat conftest.err >&5
33075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076 (exit $ac_status); } >/dev/null; then
33077 if test -s conftest.err; then
fd5199d6
VZ
33078 ac_cpp_err=$ac_c_preproc_warn_flag
33079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5dfc7e56
VZ
33080 else
33081 ac_cpp_err=
33082 fi
33083else
33084 ac_cpp_err=yes
33085fi
33086if test -z "$ac_cpp_err"; then
33087 ac_header_preproc=yes
33088else
33089 echo "$as_me: failed program was:" >&5
33090sed 's/^/| /' conftest.$ac_ext >&5
33091
33092 ac_header_preproc=no
33093fi
33094rm -f conftest.err conftest.$ac_ext
33095echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33096echo "${ECHO_T}$ac_header_preproc" >&6
33097
33098# So? What about this header?
fd5199d6 33099case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5dfc7e56
VZ
33100 yes:no: )
33101 { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
33102echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33103 { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
33104echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
33105 ac_header_preproc=yes
33106 ;;
33107 no:yes:* )
33108 { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
33109echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
33110 { echo "$as_me:$LINENO: WARNING: GL/glu.h: check for missing prerequisite headers?" >&5
33111echo "$as_me: WARNING: GL/glu.h: check for missing prerequisite headers?" >&2;}
33112 { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
33113echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
33114 { echo "$as_me:$LINENO: WARNING: GL/glu.h: section \"Present But Cannot Be Compiled\"" >&5
33115echo "$as_me: WARNING: GL/glu.h: section \"Present But Cannot Be Compiled\"" >&2;}
33116 { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
33117echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
33118 { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
33119echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
33120 (
33121 cat <<\_ASBOX
33122## ----------------------------------------- ##
33123## Report this to wx-dev@lists.wxwidgets.org ##
33124## ----------------------------------------- ##
33125_ASBOX
33126 ) |
33127 sed "s/^/$as_me: WARNING: /" >&2
33128 ;;
33129esac
33130echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33131echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6
33132if test "${ac_cv_header_GL_glu_h+set}" = set; then
33133 echo $ECHO_N "(cached) $ECHO_C" >&6
33134else
33135 ac_cv_header_GL_glu_h=$ac_header_preproc
33136fi
33137echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33138echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6
33139
33140fi
33141if test $ac_cv_header_GL_glu_h = yes; then
33142
a848cd7e
SC
33143 found_gl=0
33144
33145 echo "$as_me:$LINENO: checking for -lGL" >&5
33146echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
33147
0ad5d837 33148 ac_find_libraries=
02b05020 33149 for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
a848cd7e 33150 do
3eca31dc 33151 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33152 if test -f "$ac_dir/libGL.$ac_extension"; then
33153 ac_find_libraries=$ac_dir
33154 break 2
33155 fi
33156 done
33157 done
33158
33159 if test "$ac_find_libraries" != "" ; then
02b05020
VZ
33160 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33161echo "${ECHO_T}found in $ac_find_libraries" >&6
69120ee4 33162
a848cd7e 33163
0ad5d837 33164 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33165 ac_path_to_link=""
33166 else
0ad5d837
VZ
33167 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33168 result=$?
33169 if test $result = 0; then
33170 ac_path_to_link=""
33171 else
33172 ac_path_to_link=" -L$ac_find_libraries"
33173 fi
a848cd7e
SC
33174 fi
33175
33176 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33177 LDFLAGS_GL="$ac_path_to_link"
33178 fi
33179
69120ee4
VZ
33180 echo "$as_me:$LINENO: checking for -lGLU" >&5
33181echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 33182
0ad5d837
VZ
33183 ac_find_libraries=
33184 for ac_dir in $SEARCH_LIB;
33185 do
33186 for ac_extension in a so sl dylib dll.a; do
33187 if test -f "$ac_dir/libGLU.$ac_extension"; then
33188 ac_find_libraries=$ac_dir
33189 break 2
33190 fi
33191 done
33192 done
33193
a848cd7e
SC
33194 if test "$ac_find_libraries" != "" ; then
33195
0ad5d837 33196 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33197 ac_path_to_link=""
33198 else
0ad5d837
VZ
33199 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33200 result=$?
33201 if test $result = 0; then
33202 ac_path_to_link=""
33203 else
33204 ac_path_to_link=" -L$ac_find_libraries"
33205 fi
a848cd7e
SC
33206 fi
33207
33208 if test "$ac_path_to_link" != " -L/usr/lib" -a \
33209 "$ac_path_to_link" != "$LDFLAGS_GL"; then
33210 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33211 fi
33212
33213 found_gl=1
33214 OPENGL_LIBS="-lGL -lGLU"
33215 echo "$as_me:$LINENO: result: yes" >&5
33216echo "${ECHO_T}yes" >&6
69120ee4
VZ
33217 else
33218 echo "$as_me:$LINENO: result: no" >&5
33219echo "${ECHO_T}no" >&6
a848cd7e 33220 fi
69120ee4
VZ
33221 else
33222 echo "$as_me:$LINENO: result: no" >&5
33223echo "${ECHO_T}no" >&6
a848cd7e
SC
33224 fi
33225
33226 if test "$found_gl" != 1; then
a848cd7e
SC
33227 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33228echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
33229
0ad5d837
VZ
33230 ac_find_libraries=
33231 for ac_dir in $SEARCH_LIB;
a848cd7e 33232 do
3eca31dc 33233 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33234 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33235 ac_find_libraries=$ac_dir
33236 break 2
33237 fi
33238 done
33239 done
33240
33241 if test "$ac_find_libraries" != "" ; then
33242
0ad5d837 33243 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33244 ac_path_to_link=""
33245 else
0ad5d837
VZ
33246 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33247 result=$?
33248 if test $result = 0; then
33249 ac_path_to_link=""
33250 else
33251 ac_path_to_link=" -L$ac_find_libraries"
33252 fi
a848cd7e
SC
33253 fi
33254
33255 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33256 OPENGL_LIBS="-lMesaGL -lMesaGLU"
33257 echo "$as_me:$LINENO: result: yes" >&5
33258echo "${ECHO_T}yes" >&6
33259 else
33260 echo "$as_me:$LINENO: result: no" >&5
33261echo "${ECHO_T}no" >&6
33262 fi
33263 fi
33264
33265fi
33266
33267
33268
5dfc7e56
VZ
33269fi
33270
33271
33272
a848cd7e
SC
33273 if test "x$OPENGL_LIBS" = "x"; then
33274 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33275echo "$as_me: error: OpenGL libraries not available" >&2;}
33276 { (exit 1); exit 1; }; }
33277 fi
33278 fi
33279
33280 if test "$wxUSE_OPENGL" = "yes"; then
33281 USE_OPENGL=1
33282 cat >>confdefs.h <<\_ACEOF
33283#define wxUSE_OPENGL 1
33284_ACEOF
33285
33286 cat >>confdefs.h <<\_ACEOF
33287#define wxUSE_GLCANVAS 1
33288_ACEOF
33289
33290 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33291 fi
33292fi
33293
a848cd7e
SC
33294
33295if test -n "$TOOLKIT" ; then
33296 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33297fi
33298
a848cd7e
SC
33299
33300
33301if test "$wxUSE_SHARED" = "yes"; then
33302 case "${host}" in
33303 *-pc-msdosdjgpp )
33304 wxUSE_SHARED=no
33305 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33306echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33307 ;;
33308 esac
33309fi
33310
a848cd7e 33311if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
33312
33313
077c7880
VZ
33314 case "${host}" in
33315 *-*-cygwin* | *-*-mingw* )
2dbd07cb 33316 wx_cv_version_script=no
077c7880 33317 ;;
a848cd7e 33318
077c7880
VZ
33319 *)
33320 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
a848cd7e
SC
33321echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
33322if test "${wx_cv_version_script+set}" = set; then
33323 echo $ECHO_N "(cached) $ECHO_C" >&6
33324else
33325
077c7880
VZ
33326 echo "VER_1 { *; };" >conftest.sym
33327 echo "int main() { return 0; }" >conftest.cpp
a848cd7e 33328
077c7880
VZ
33329 if { ac_try='
33330 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33331 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
a848cd7e
SC
33332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33333 (eval $ac_try) 2>&5
33334 ac_status=$?
33335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336 (exit $ac_status); }; } ; then
077c7880
VZ
33337 if test -s conftest.stderr ; then
33338 wx_cv_version_script=no
33339 else
33340 wx_cv_version_script=yes
33341 fi
33342 else
33343 wx_cv_version_script=no
33344 fi
e5d4b470 33345
077c7880
VZ
33346 if test $wx_cv_version_script = yes
33347 then
33348 echo "struct B { virtual ~B() { } }; \
33349 struct D : public B { }; \
33350 void F() { D d; }" > conftest.cpp
e5d4b470 33351
077c7880
VZ
33352 if { ac_try='
33353 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33354 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
e5d4b470
MW
33355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33356 (eval $ac_try) 2>&5
33357 ac_status=$?
33358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359 (exit $ac_status); }; } &&
077c7880
VZ
33360 { ac_try='
33361 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33362 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
e5d4b470
MW
33363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33364 (eval $ac_try) 2>&5
33365 ac_status=$?
33366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367 (exit $ac_status); }; }
077c7880
VZ
33368 then
33369 if { ac_try='
33370 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33371 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
e5d4b470
MW
33372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33373 (eval $ac_try) 2>&5
33374 ac_status=$?
33375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33376 (exit $ac_status); }; }
077c7880
VZ
33377 then
33378 wx_cv_version_script=yes
33379 else
33380 wx_cv_version_script=no
33381 fi
33382 fi
33383 fi
e5d4b470 33384
077c7880
VZ
33385 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33386 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
33387
33388fi
33389echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33390echo "${ECHO_T}$wx_cv_version_script" >&6
077c7880
VZ
33391
33392 if test $wx_cv_version_script = yes ; then
33393 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33394 fi
33395 ;;
33396 esac
a848cd7e
SC
33397
33398
33399 case "${host}" in
33400 *-*-linux* | *-*-gnu* )
02b05020 33401 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
ffa0583f 33402 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 33403 ;;
a848cd7e
SC
33404
33405 *-*-solaris2* )
33406 if test "$GCC" = yes ; then
c92ad099 33407 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
33408
33409 saveLdflags="$LDFLAGS"
33410 LDFLAGS="$saveLdflags -Wl,-rpath,/"
33411 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33412echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
33413 cat >conftest.$ac_ext <<_ACEOF
33414/* confdefs.h. */
33415_ACEOF
33416cat confdefs.h >>conftest.$ac_ext
33417cat >>conftest.$ac_ext <<_ACEOF
33418/* end confdefs.h. */
33419
33420int
33421main ()
33422{
33423
33424 ;
33425 return 0;
33426}
33427_ACEOF
33428rm -f conftest.$ac_objext conftest$ac_exeext
33429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33430 (eval $ac_link) 2>conftest.er1
a848cd7e 33431 ac_status=$?
ac1cb8d3
VS
33432 grep -v '^ *+' conftest.er1 >conftest.err
33433 rm -f conftest.er1
33434 cat conftest.err >&5
a848cd7e
SC
33435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33436 (exit $ac_status); } &&
fd5199d6 33437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33439 (eval $ac_try) 2>&5
33440 ac_status=$?
33441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33442 (exit $ac_status); }; } &&
33443 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33445 (eval $ac_try) 2>&5
33446 ac_status=$?
33447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33448 (exit $ac_status); }; }; then
33449
33450 echo "$as_me:$LINENO: result: yes" >&5
33451echo "${ECHO_T}yes" >&6
02b05020 33452 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
ffa0583f 33453 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
33454
33455else
33456 echo "$as_me: failed program was:" >&5
33457sed 's/^/| /' conftest.$ac_ext >&5
33458
33459
33460 echo "$as_me:$LINENO: result: no" >&5
33461echo "${ECHO_T}no" >&6
33462 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33463echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33464 LDFLAGS="$saveLdflags -Wl,-R,/"
33465 cat >conftest.$ac_ext <<_ACEOF
33466/* confdefs.h. */
33467_ACEOF
33468cat confdefs.h >>conftest.$ac_ext
33469cat >>conftest.$ac_ext <<_ACEOF
33470/* end confdefs.h. */
33471
33472int
33473main ()
33474{
33475
33476 ;
33477 return 0;
33478}
33479_ACEOF
33480rm -f conftest.$ac_objext conftest$ac_exeext
33481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33482 (eval $ac_link) 2>conftest.er1
a848cd7e 33483 ac_status=$?
ac1cb8d3
VS
33484 grep -v '^ *+' conftest.er1 >conftest.err
33485 rm -f conftest.er1
33486 cat conftest.err >&5
a848cd7e
SC
33487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33488 (exit $ac_status); } &&
fd5199d6 33489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33491 (eval $ac_try) 2>&5
33492 ac_status=$?
33493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494 (exit $ac_status); }; } &&
33495 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33497 (eval $ac_try) 2>&5
33498 ac_status=$?
33499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500 (exit $ac_status); }; }; then
33501
ffa0583f 33502 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 33503echo "${ECHO_T}yes" >&6
02b05020 33504 SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
ffa0583f
RL
33505 WXCONFIG_RPATH="-Wl,-R,\$libdir"
33506
a848cd7e
SC
33507else
33508 echo "$as_me: failed program was:" >&5
33509sed 's/^/| /' conftest.$ac_ext >&5
33510
33511
33512 echo "$as_me:$LINENO: result: no" >&5
33513echo "${ECHO_T}no" >&6
33514
33515fi
ac1cb8d3
VS
33516rm -f conftest.err conftest.$ac_objext \
33517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33518
33519fi
ac1cb8d3
VS
33520rm -f conftest.err conftest.$ac_objext \
33521 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33522 LDFLAGS="$saveLdflags"
33523 else
02b05020 33524 SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
ffa0583f 33525 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
33526 fi
33527 ;;
33528
cfda0ea8 33529 *-*-darwin* )
0caebc27
MW
33530 install_name_tool=`which install_name_tool`
33531 if test "$install_name_tool" -a -x "$install_name_tool"; then
02b05020 33532 SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
0caebc27 33533 cat <<EOF >change-install-names
a848cd7e
SC
33534#!/bin/sh
33535libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33536inst_cmd="install_name_tool "
33537for i in \${libnames} ; do
33538 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33539done
33540\${inst_cmd} \${3}
33541EOF
0caebc27
MW
33542 chmod +x change-install-names
33543 fi
a848cd7e
SC
33544 ;;
33545
33546 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
33547 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33548 ;;
a848cd7e 33549
81f90336 33550 *-*-hpux* )
02b05020 33551 SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
81f90336 33552 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 33553 ;;
81f90336 33554
a848cd7e 33555 esac
ceec2216 33556
ffa0583f
RL
33557 if test $wxUSE_RPATH = "no"; then
33558 SAMPLES_RPATH_FLAG=''
33559 SAMPLES_RPATH_POSTLINK=''
33560 WXCONFIG_RPATH=''
33561 fi
33562
33563 SHARED=1
33564
33565else
33566
ceec2216
RL
33567 config_linkage_component="-static"
33568 SHARED=0
ffa0583f 33569
ceec2216 33570fi
a848cd7e 33571
a848cd7e 33572
ceec2216
RL
33573UNICODE=0
33574lib_unicode_suffix=
33575WX_CHARTYPE="ansi"
33576if test "$wxUSE_UNICODE" = "yes"; then
33577 lib_unicode_suffix=u
33578 WX_CHARTYPE="unicode"
33579 UNICODE=1
a848cd7e
SC
33580fi
33581
ceec2216
RL
33582lib_debug_suffix=
33583WX_DEBUGTYPE="release"
33584DEBUG_FLAG=0
33585if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33586 lib_debug_suffix=d
33587 WX_DEBUGTYPE="debug"
33588 DEBUG_FLAG=1
33589fi
a848cd7e 33590
ceec2216
RL
33591WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33592WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 33593
ceec2216
RL
33594DEBUG_INFO=0
33595if test "$wxUSE_DEBUG_INFO" = "yes"; then
33596 DEBUG_INFO=1
33597fi
a848cd7e 33598
ceec2216 33599WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 33600
ceec2216 33601TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 33602
ceec2216 33603TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 33604
ceec2216
RL
33605if test "$cross_compiling" = "yes"; then
33606 HOST_SUFFIX="-$host_alias"
33607 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33608 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
33609fi
33610
dd21ced8 33611WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
33612if test "${TOOLKIT_DIR}" = "os2"; then
33613 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33614else
33615 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33616fi
ceec2216
RL
33617
33618
33619
1d1af5ea
DE
33620if test "$wxUSE_COCOA" = 1; then
33621
33622
33623 ac_ext=c
33624ac_cpp='$CPP $CPPFLAGS'
33625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33627ac_compiler_gnu=$ac_cv_c_compiler_gnu
33628
33629ac_ext=m
33630
33631 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33632echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
33633 cat >conftest.$ac_ext <<_ACEOF
33634/* confdefs.h. */
33635_ACEOF
33636cat confdefs.h >>conftest.$ac_ext
33637cat >>conftest.$ac_ext <<_ACEOF
33638/* end confdefs.h. */
33639#include <AppKit/NSEvent.h>
33640#include <CoreFoundation/CoreFoundation.h>
33641
33642int
33643main ()
33644{
33645
33646 ;
33647 return 0;
33648}
33649_ACEOF
33650rm -f conftest.$ac_objext
33651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33652 (eval $ac_compile) 2>conftest.er1
33653 ac_status=$?
33654 grep -v '^ *+' conftest.er1 >conftest.err
33655 rm -f conftest.er1
33656 cat conftest.err >&5
33657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33658 (exit $ac_status); } &&
bb9e79c0 33659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
33660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33661 (eval $ac_try) 2>&5
33662 ac_status=$?
33663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33664 (exit $ac_status); }; } &&
33665 { ac_try='test -s conftest.$ac_objext'
33666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33667 (eval $ac_try) 2>&5
33668 ac_status=$?
33669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33670 (exit $ac_status); }; }; then
33671 echo "$as_me:$LINENO: result: no" >&5
33672echo "${ECHO_T}no" >&6
33673else
33674 echo "$as_me: failed program was:" >&5
33675sed 's/^/| /' conftest.$ac_ext >&5
33676
33677echo "$as_me:$LINENO: result: yes" >&5
33678echo "${ECHO_T}yes" >&6
33679 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33680echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
33681 cat >conftest.$ac_ext <<_ACEOF
33682/* confdefs.h. */
33683_ACEOF
33684cat confdefs.h >>conftest.$ac_ext
33685cat >>conftest.$ac_ext <<_ACEOF
33686/* end confdefs.h. */
33687#define __Point__ 1
33688#include <AppKit/NSEvent.h>
33689#include <CoreFoundation/CoreFoundation.h>
33690
33691int
33692main ()
33693{
33694
33695 ;
33696 return 0;
33697}
33698_ACEOF
33699rm -f conftest.$ac_objext
33700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33701 (eval $ac_compile) 2>conftest.er1
33702 ac_status=$?
33703 grep -v '^ *+' conftest.er1 >conftest.err
33704 rm -f conftest.er1
33705 cat conftest.err >&5
33706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707 (exit $ac_status); } &&
bb9e79c0 33708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
33709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33710 (eval $ac_try) 2>&5
33711 ac_status=$?
33712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713 (exit $ac_status); }; } &&
33714 { ac_try='test -s conftest.$ac_objext'
33715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33716 (eval $ac_try) 2>&5
33717 ac_status=$?
33718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719 (exit $ac_status); }; }; then
33720 echo "$as_me:$LINENO: result: yes" >&5
33721echo "${ECHO_T}yes" >&6
33722 cat >>confdefs.h <<\_ACEOF
33723#define __Point__ 1
33724_ACEOF
33725
33726
33727else
33728 echo "$as_me: failed program was:" >&5
33729sed 's/^/| /' conftest.$ac_ext >&5
33730
33731{ { echo "$as_me:$LINENO: error: no
33732See \`config.log' for more details." >&5
33733echo "$as_me: error: no
33734See \`config.log' for more details." >&2;}
33735 { (exit 1); exit 1; }; }
33736
33737fi
33738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33739
33740fi
33741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
33742 ac_ext=c
33743ac_cpp='$CPP $CPPFLAGS'
33744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33746ac_compiler_gnu=$ac_cv_c_compiler_gnu
1d1af5ea
DE
33747
33748fi
33749
a848cd7e 33750if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
33751 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33752 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 33753
02b05020 33754 LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
33755
33756 # Extract the first word of "Rez", so it can be a program name with args.
33757set dummy Rez; ac_word=$2
33758echo "$as_me:$LINENO: checking for $ac_word" >&5
33759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 33760if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
33761 echo $ECHO_N "(cached) $ECHO_C" >&6
33762else
8ced02f6
DE
33763 if test -n "$REZ"; then
33764 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
33765else
33766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33767for as_dir in $PATH
33768do
33769 IFS=$as_save_IFS
33770 test -z "$as_dir" && as_dir=.
33771 for ac_exec_ext in '' $ac_executable_extensions; do
33772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 33773 ac_cv_prog_REZ="Rez"
a848cd7e
SC
33774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33775 break 2
33776 fi
33777done
33778done
33779
8ced02f6 33780 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
33781fi
33782fi
8ced02f6
DE
33783REZ=$ac_cv_prog_REZ
33784if test -n "$REZ"; then
33785 echo "$as_me:$LINENO: result: $REZ" >&5
33786echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
33787else
33788 echo "$as_me:$LINENO: result: no" >&5
33789echo "${ECHO_T}no" >&6
33790fi
33791
33792 # Extract the first word of "DeRez", so it can be a program name with args.
33793set dummy DeRez; ac_word=$2
33794echo "$as_me:$LINENO: checking for $ac_word" >&5
33795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33796if test "${ac_cv_prog_DEREZ+set}" = set; then
33797 echo $ECHO_N "(cached) $ECHO_C" >&6
33798else
33799 if test -n "$DEREZ"; then
33800 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33801else
33802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33803for as_dir in $PATH
33804do
33805 IFS=$as_save_IFS
33806 test -z "$as_dir" && as_dir=.
33807 for ac_exec_ext in '' $ac_executable_extensions; do
33808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33809 ac_cv_prog_DEREZ="DeRez"
33810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33811 break 2
33812 fi
33813done
33814done
33815
33816 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33817fi
33818fi
33819DEREZ=$ac_cv_prog_DEREZ
33820if test -n "$DEREZ"; then
33821 echo "$as_me:$LINENO: result: $DEREZ" >&5
33822echo "${ECHO_T}$DEREZ" >&6
33823else
33824 echo "$as_me:$LINENO: result: no" >&5
33825echo "${ECHO_T}no" >&6
33826fi
33827
33828 # Extract the first word of "SetFile", so it can be a program name with args.
33829set dummy SetFile; ac_word=$2
33830echo "$as_me:$LINENO: checking for $ac_word" >&5
33831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33832if test "${ac_cv_prog_SETFILE+set}" = set; then
33833 echo $ECHO_N "(cached) $ECHO_C" >&6
33834else
33835 if test -n "$SETFILE"; then
33836 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33837else
33838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33839for as_dir in $PATH
33840do
33841 IFS=$as_save_IFS
33842 test -z "$as_dir" && as_dir=.
33843 for ac_exec_ext in '' $ac_executable_extensions; do
33844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33845 ac_cv_prog_SETFILE="SetFile"
33846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33847 break 2
33848 fi
33849done
33850done
33851
33852 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33853fi
33854fi
33855SETFILE=$ac_cv_prog_SETFILE
33856if test -n "$SETFILE"; then
33857 echo "$as_me:$LINENO: result: $SETFILE" >&5
33858echo "${ECHO_T}$SETFILE" >&6
33859else
33860 echo "$as_me:$LINENO: result: no" >&5
33861echo "${ECHO_T}no" >&6
33862fi
33863
33864
33865 MACSETFILE="\$(SETFILE)"
33866
33867 if test "$wxUSE_MAC" = 1; then
8ced02f6 33868 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
33869 RESCOMP="$REZ"
33870 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 33871 else
004ee6da
RL
33872 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33873 RESCOMP="echo -n \| $REZ"
33874 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 33875 fi
004ee6da 33876
a848cd7e 33877else
ffa0583f 33878 MACSETFILE="@true"
a848cd7e 33879
8ced02f6 33880 if test "$wxUSE_PM" = 1; then
004ee6da
RL
33881 RESCOMP="emxbind"
33882 WXCONFIG_RESFLAGS="-ep"
33883
33884 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 33885 else
8ced02f6 33886 POSTLINK_COMMAND="@true"
a848cd7e 33887 fi
004ee6da 33888
a848cd7e
SC
33889fi
33890
33891
33892
33893echo "$as_me:$LINENO: checking for mode_t" >&5
33894echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33895if test "${ac_cv_type_mode_t+set}" = set; then
33896 echo $ECHO_N "(cached) $ECHO_C" >&6
33897else
33898 cat >conftest.$ac_ext <<_ACEOF
33899/* confdefs.h. */
33900_ACEOF
33901cat confdefs.h >>conftest.$ac_ext
33902cat >>conftest.$ac_ext <<_ACEOF
33903/* end confdefs.h. */
33904$ac_includes_default
33905int
33906main ()
33907{
33908if ((mode_t *) 0)
33909 return 0;
33910if (sizeof (mode_t))
33911 return 0;
33912 ;
33913 return 0;
33914}
33915_ACEOF
33916rm -f conftest.$ac_objext
33917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33918 (eval $ac_compile) 2>conftest.er1
a848cd7e 33919 ac_status=$?
ac1cb8d3
VS
33920 grep -v '^ *+' conftest.er1 >conftest.err
33921 rm -f conftest.er1
33922 cat conftest.err >&5
a848cd7e
SC
33923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33924 (exit $ac_status); } &&
fd5199d6 33925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33927 (eval $ac_try) 2>&5
33928 ac_status=$?
33929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33930 (exit $ac_status); }; } &&
33931 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33933 (eval $ac_try) 2>&5
33934 ac_status=$?
33935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936 (exit $ac_status); }; }; then
33937 ac_cv_type_mode_t=yes
33938else
33939 echo "$as_me: failed program was:" >&5
33940sed 's/^/| /' conftest.$ac_ext >&5
33941
33942ac_cv_type_mode_t=no
33943fi
ac1cb8d3 33944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33945fi
33946echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33947echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33948if test $ac_cv_type_mode_t = yes; then
33949 :
33950else
33951
33952cat >>confdefs.h <<_ACEOF
33953#define mode_t int
33954_ACEOF
33955
33956fi
33957
33958echo "$as_me:$LINENO: checking for off_t" >&5
33959echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33960if test "${ac_cv_type_off_t+set}" = set; then
33961 echo $ECHO_N "(cached) $ECHO_C" >&6
33962else
33963 cat >conftest.$ac_ext <<_ACEOF
33964/* confdefs.h. */
33965_ACEOF
33966cat confdefs.h >>conftest.$ac_ext
33967cat >>conftest.$ac_ext <<_ACEOF
33968/* end confdefs.h. */
33969$ac_includes_default
33970int
33971main ()
33972{
33973if ((off_t *) 0)
33974 return 0;
33975if (sizeof (off_t))
33976 return 0;
33977 ;
33978 return 0;
33979}
33980_ACEOF
33981rm -f conftest.$ac_objext
33982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33983 (eval $ac_compile) 2>conftest.er1
a848cd7e 33984 ac_status=$?
ac1cb8d3
VS
33985 grep -v '^ *+' conftest.er1 >conftest.err
33986 rm -f conftest.er1
33987 cat conftest.err >&5
a848cd7e
SC
33988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33989 (exit $ac_status); } &&
fd5199d6 33990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
33996 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33998 (eval $ac_try) 2>&5
33999 ac_status=$?
34000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34001 (exit $ac_status); }; }; then
34002 ac_cv_type_off_t=yes
34003else
34004 echo "$as_me: failed program was:" >&5
34005sed 's/^/| /' conftest.$ac_ext >&5
34006
34007ac_cv_type_off_t=no
34008fi
ac1cb8d3 34009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34010fi
34011echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34012echo "${ECHO_T}$ac_cv_type_off_t" >&6
34013if test $ac_cv_type_off_t = yes; then
34014 :
34015else
34016
34017cat >>confdefs.h <<_ACEOF
34018#define off_t long
34019_ACEOF
34020
34021fi
34022
34023echo "$as_me:$LINENO: checking for pid_t" >&5
34024echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
34025if test "${ac_cv_type_pid_t+set}" = set; then
34026 echo $ECHO_N "(cached) $ECHO_C" >&6
34027else
34028 cat >conftest.$ac_ext <<_ACEOF
34029/* confdefs.h. */
34030_ACEOF
34031cat confdefs.h >>conftest.$ac_ext
34032cat >>conftest.$ac_ext <<_ACEOF
34033/* end confdefs.h. */
34034$ac_includes_default
34035int
34036main ()
34037{
34038if ((pid_t *) 0)
34039 return 0;
34040if (sizeof (pid_t))
34041 return 0;
34042 ;
34043 return 0;
34044}
34045_ACEOF
34046rm -f conftest.$ac_objext
34047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34048 (eval $ac_compile) 2>conftest.er1
a848cd7e 34049 ac_status=$?
ac1cb8d3
VS
34050 grep -v '^ *+' conftest.er1 >conftest.err
34051 rm -f conftest.er1
34052 cat conftest.err >&5
a848cd7e
SC
34053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34054 (exit $ac_status); } &&
fd5199d6 34055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34057 (eval $ac_try) 2>&5
34058 ac_status=$?
34059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34060 (exit $ac_status); }; } &&
34061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34063 (eval $ac_try) 2>&5
34064 ac_status=$?
34065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34066 (exit $ac_status); }; }; then
34067 ac_cv_type_pid_t=yes
34068else
34069 echo "$as_me: failed program was:" >&5
34070sed 's/^/| /' conftest.$ac_ext >&5
34071
34072ac_cv_type_pid_t=no
34073fi
ac1cb8d3 34074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34075fi
34076echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34077echo "${ECHO_T}$ac_cv_type_pid_t" >&6
34078if test $ac_cv_type_pid_t = yes; then
34079 :
34080else
34081
34082cat >>confdefs.h <<_ACEOF
34083#define pid_t int
34084_ACEOF
34085
34086fi
34087
34088echo "$as_me:$LINENO: checking for size_t" >&5
34089echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34090if test "${ac_cv_type_size_t+set}" = set; then
34091 echo $ECHO_N "(cached) $ECHO_C" >&6
34092else
34093 cat >conftest.$ac_ext <<_ACEOF
34094/* confdefs.h. */
34095_ACEOF
34096cat confdefs.h >>conftest.$ac_ext
34097cat >>conftest.$ac_ext <<_ACEOF
34098/* end confdefs.h. */
34099$ac_includes_default
34100int
34101main ()
34102{
34103if ((size_t *) 0)
34104 return 0;
34105if (sizeof (size_t))
34106 return 0;
34107 ;
34108 return 0;
34109}
34110_ACEOF
34111rm -f conftest.$ac_objext
34112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34113 (eval $ac_compile) 2>conftest.er1
a848cd7e 34114 ac_status=$?
ac1cb8d3
VS
34115 grep -v '^ *+' conftest.er1 >conftest.err
34116 rm -f conftest.er1
34117 cat conftest.err >&5
a848cd7e
SC
34118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34119 (exit $ac_status); } &&
fd5199d6 34120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34122 (eval $ac_try) 2>&5
34123 ac_status=$?
34124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34125 (exit $ac_status); }; } &&
34126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34128 (eval $ac_try) 2>&5
34129 ac_status=$?
34130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34131 (exit $ac_status); }; }; then
34132 ac_cv_type_size_t=yes
34133else
34134 echo "$as_me: failed program was:" >&5
34135sed 's/^/| /' conftest.$ac_ext >&5
34136
34137ac_cv_type_size_t=no
34138fi
ac1cb8d3 34139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34140fi
34141echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34142echo "${ECHO_T}$ac_cv_type_size_t" >&6
34143if test $ac_cv_type_size_t = yes; then
34144 :
34145else
34146
34147cat >>confdefs.h <<_ACEOF
34148#define size_t unsigned
34149_ACEOF
34150
34151fi
34152
34153echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34154echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34155if test "${ac_cv_type_uid_t+set}" = set; then
34156 echo $ECHO_N "(cached) $ECHO_C" >&6
34157else
34158 cat >conftest.$ac_ext <<_ACEOF
34159/* confdefs.h. */
34160_ACEOF
34161cat confdefs.h >>conftest.$ac_ext
34162cat >>conftest.$ac_ext <<_ACEOF
34163/* end confdefs.h. */
34164#include <sys/types.h>
34165
34166_ACEOF
34167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34168 $EGREP "uid_t" >/dev/null 2>&1; then
34169 ac_cv_type_uid_t=yes
34170else
34171 ac_cv_type_uid_t=no
34172fi
34173rm -f conftest*
34174
34175fi
34176echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34177echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34178if test $ac_cv_type_uid_t = no; then
34179
34180cat >>confdefs.h <<\_ACEOF
34181#define uid_t int
34182_ACEOF
34183
34184
34185cat >>confdefs.h <<\_ACEOF
34186#define gid_t int
34187_ACEOF
34188
34189fi
34190
34191
d51253e8
RL
34192echo "$as_me:$LINENO: checking for ssize_t" >&5
34193echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34194if test "${ac_cv_type_ssize_t+set}" = set; then
34195 echo $ECHO_N "(cached) $ECHO_C" >&6
34196else
34197 cat >conftest.$ac_ext <<_ACEOF
34198/* confdefs.h. */
34199_ACEOF
34200cat confdefs.h >>conftest.$ac_ext
34201cat >>conftest.$ac_ext <<_ACEOF
34202/* end confdefs.h. */
34203$ac_includes_default
34204int
34205main ()
34206{
34207if ((ssize_t *) 0)
34208 return 0;
34209if (sizeof (ssize_t))
34210 return 0;
34211 ;
34212 return 0;
34213}
34214_ACEOF
34215rm -f conftest.$ac_objext
34216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34217 (eval $ac_compile) 2>conftest.er1
34218 ac_status=$?
34219 grep -v '^ *+' conftest.er1 >conftest.err
34220 rm -f conftest.er1
34221 cat conftest.err >&5
34222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34223 (exit $ac_status); } &&
fd5199d6 34224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
34225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34226 (eval $ac_try) 2>&5
34227 ac_status=$?
34228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34229 (exit $ac_status); }; } &&
34230 { ac_try='test -s conftest.$ac_objext'
34231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34232 (eval $ac_try) 2>&5
34233 ac_status=$?
34234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34235 (exit $ac_status); }; }; then
34236 ac_cv_type_ssize_t=yes
34237else
34238 echo "$as_me: failed program was:" >&5
34239sed 's/^/| /' conftest.$ac_ext >&5
34240
34241ac_cv_type_ssize_t=no
34242fi
34243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34244fi
34245echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34246echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34247if test $ac_cv_type_ssize_t = yes; then
34248
34249cat >>confdefs.h <<_ACEOF
34250#define HAVE_SSIZE_T 1
34251_ACEOF
34252
34253
34254fi
34255
34256
9b8888f9
VZ
34257ac_ext=cc
34258ac_cpp='$CXXCPP $CPPFLAGS'
34259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34262 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
a848cd7e
SC
34263echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34264if test "${wx_cv_size_t_is_uint+set}" = set; then
34265 echo $ECHO_N "(cached) $ECHO_C" >&6
34266else
34267
34268 cat >conftest.$ac_ext <<_ACEOF
34269/* confdefs.h. */
34270_ACEOF
34271cat confdefs.h >>conftest.$ac_ext
34272cat >>conftest.$ac_ext <<_ACEOF
34273/* end confdefs.h. */
34274#include <stddef.h>
34275int
34276main ()
34277{
34278
34279 return 0; }
34280
34281 struct Foo { void foo(size_t); void foo(unsigned int); };
34282
34283 int bar() {
34284
34285 ;
34286 return 0;
34287}
34288_ACEOF
34289rm -f conftest.$ac_objext
34290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34291 (eval $ac_compile) 2>conftest.er1
a848cd7e 34292 ac_status=$?
ac1cb8d3
VS
34293 grep -v '^ *+' conftest.er1 >conftest.err
34294 rm -f conftest.er1
34295 cat conftest.err >&5
a848cd7e
SC
34296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34297 (exit $ac_status); } &&
9b8888f9 34298 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34300 (eval $ac_try) 2>&5
34301 ac_status=$?
34302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34303 (exit $ac_status); }; } &&
34304 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34306 (eval $ac_try) 2>&5
34307 ac_status=$?
34308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34309 (exit $ac_status); }; }; then
34310 wx_cv_size_t_is_uint=no
34311else
34312 echo "$as_me: failed program was:" >&5
34313sed 's/^/| /' conftest.$ac_ext >&5
34314
34315wx_cv_size_t_is_uint=yes
34316
34317fi
ac1cb8d3 34318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34319
34320
34321fi
34322echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34323echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
34324
34325if test "$wx_cv_size_t_is_uint" = "yes"; then
34326 cat >>confdefs.h <<\_ACEOF
34327#define wxSIZE_T_IS_UINT 1
34328_ACEOF
34329
34330else
34331 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34332echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
34333if test "${wx_cv_size_t_is_ulong+set}" = set; then
34334 echo $ECHO_N "(cached) $ECHO_C" >&6
34335else
34336 cat >conftest.$ac_ext <<_ACEOF
34337/* confdefs.h. */
34338_ACEOF
34339cat confdefs.h >>conftest.$ac_ext
34340cat >>conftest.$ac_ext <<_ACEOF
34341/* end confdefs.h. */
34342#include <stddef.h>
34343int
34344main ()
34345{
34346
34347 return 0; }
34348
34349 struct Foo { void foo(size_t); void foo(unsigned long); };
34350
34351 int bar() {
34352
34353 ;
34354 return 0;
34355}
34356_ACEOF
34357rm -f conftest.$ac_objext
34358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34359 (eval $ac_compile) 2>conftest.er1
a848cd7e 34360 ac_status=$?
ac1cb8d3
VS
34361 grep -v '^ *+' conftest.er1 >conftest.err
34362 rm -f conftest.er1
34363 cat conftest.err >&5
a848cd7e
SC
34364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34365 (exit $ac_status); } &&
9b8888f9 34366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34368 (eval $ac_try) 2>&5
34369 ac_status=$?
34370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371 (exit $ac_status); }; } &&
34372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34374 (eval $ac_try) 2>&5
34375 ac_status=$?
34376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34377 (exit $ac_status); }; }; then
34378 wx_cv_size_t_is_ulong=no
34379else
34380 echo "$as_me: failed program was:" >&5
34381sed 's/^/| /' conftest.$ac_ext >&5
34382
34383wx_cv_size_t_is_ulong=yes
34384
34385fi
ac1cb8d3 34386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34387
34388fi
34389echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34390echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
34391
34392 if test "$wx_cv_size_t_is_ulong" = "yes"; then
34393 cat >>confdefs.h <<\_ACEOF
34394#define wxSIZE_T_IS_ULONG 1
34395_ACEOF
34396
34397 fi
34398fi
34399
9b8888f9
VZ
34400ac_ext=c
34401ac_cpp='$CPP $CPPFLAGS'
34402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34404ac_compiler_gnu=$ac_cv_c_compiler_gnu
34405
a848cd7e
SC
34406
34407echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34408echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
34409if test "${wx_cv_struct_pw_gecos+set}" = set; then
34410 echo $ECHO_N "(cached) $ECHO_C" >&6
34411else
34412
34413 cat >conftest.$ac_ext <<_ACEOF
34414/* confdefs.h. */
34415_ACEOF
34416cat confdefs.h >>conftest.$ac_ext
34417cat >>conftest.$ac_ext <<_ACEOF
34418/* end confdefs.h. */
34419#include <pwd.h>
34420int
34421main ()
34422{
34423
34424 char *p;
34425 struct passwd *pw;
34426 p = pw->pw_gecos;
34427
34428 ;
34429 return 0;
34430}
34431_ACEOF
34432rm -f conftest.$ac_objext
34433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34434 (eval $ac_compile) 2>conftest.er1
a848cd7e 34435 ac_status=$?
ac1cb8d3
VS
34436 grep -v '^ *+' conftest.er1 >conftest.err
34437 rm -f conftest.er1
34438 cat conftest.err >&5
a848cd7e
SC
34439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34440 (exit $ac_status); } &&
fd5199d6 34441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34443 (eval $ac_try) 2>&5
34444 ac_status=$?
34445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34446 (exit $ac_status); }; } &&
34447 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34449 (eval $ac_try) 2>&5
34450 ac_status=$?
34451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34452 (exit $ac_status); }; }; then
34453
34454 wx_cv_struct_pw_gecos=yes
34455
34456else
34457 echo "$as_me: failed program was:" >&5
34458sed 's/^/| /' conftest.$ac_ext >&5
34459
34460
34461 wx_cv_struct_pw_gecos=no
34462
34463
34464fi
ac1cb8d3 34465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34466
34467
34468fi
34469echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34470echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34471
34472if test "$wx_cv_struct_pw_gecos" = "yes"; then
34473 cat >>confdefs.h <<\_ACEOF
34474#define HAVE_PW_GECOS 1
34475_ACEOF
34476
34477fi
34478
34479
47a7e797 34480if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
34481 cat >>confdefs.h <<\_ACEOF
34482#define wxUSE_WCHAR_T 1
34483_ACEOF
34484
34485
34486 WCSLEN_FOUND=0
34487 WCHAR_LINK=
34488
34489for ac_func in wcslen
34490do
34491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34492echo "$as_me:$LINENO: checking for $ac_func" >&5
34493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34494if eval "test \"\${$as_ac_var+set}\" = set"; then
34495 echo $ECHO_N "(cached) $ECHO_C" >&6
34496else
34497 cat >conftest.$ac_ext <<_ACEOF
34498/* confdefs.h. */
34499_ACEOF
34500cat confdefs.h >>conftest.$ac_ext
34501cat >>conftest.$ac_ext <<_ACEOF
34502/* end confdefs.h. */
ac1cb8d3
VS
34503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34505#define $ac_func innocuous_$ac_func
34506
a848cd7e
SC
34507/* System header to define __stub macros and hopefully few prototypes,
34508 which can conflict with char $ac_func (); below.
34509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34510 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34511
a848cd7e
SC
34512#ifdef __STDC__
34513# include <limits.h>
34514#else
34515# include <assert.h>
34516#endif
ac1cb8d3
VS
34517
34518#undef $ac_func
34519
a848cd7e
SC
34520/* Override any gcc2 internal prototype to avoid an error. */
34521#ifdef __cplusplus
34522extern "C"
34523{
34524#endif
34525/* We use char because int might match the return type of a gcc2
34526 builtin and then its argument prototype would still apply. */
34527char $ac_func ();
34528/* The GNU C library defines this for functions which it implements
34529 to always fail with ENOSYS. Some functions are actually named
34530 something starting with __ and the normal name is an alias. */
34531#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34532choke me
34533#else
34534char (*f) () = $ac_func;
34535#endif
34536#ifdef __cplusplus
34537}
34538#endif
34539
34540int
34541main ()
34542{
34543return f != $ac_func;
34544 ;
34545 return 0;
34546}
34547_ACEOF
34548rm -f conftest.$ac_objext conftest$ac_exeext
34549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34550 (eval $ac_link) 2>conftest.er1
a848cd7e 34551 ac_status=$?
ac1cb8d3
VS
34552 grep -v '^ *+' conftest.er1 >conftest.err
34553 rm -f conftest.er1
34554 cat conftest.err >&5
a848cd7e
SC
34555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34556 (exit $ac_status); } &&
fd5199d6 34557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34559 (eval $ac_try) 2>&5
34560 ac_status=$?
34561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34562 (exit $ac_status); }; } &&
34563 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34565 (eval $ac_try) 2>&5
34566 ac_status=$?
34567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34568 (exit $ac_status); }; }; then
34569 eval "$as_ac_var=yes"
34570else
34571 echo "$as_me: failed program was:" >&5
34572sed 's/^/| /' conftest.$ac_ext >&5
34573
34574eval "$as_ac_var=no"
34575fi
ac1cb8d3
VS
34576rm -f conftest.err conftest.$ac_objext \
34577 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34578fi
34579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34580echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34581if test `eval echo '${'$as_ac_var'}'` = yes; then
34582 cat >>confdefs.h <<_ACEOF
34583#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34584_ACEOF
34585 WCSLEN_FOUND=1
34586fi
34587done
34588
34589
34590 if test "$WCSLEN_FOUND" = 0; then
34591 if test "$TOOLKIT" = "MSW"; then
34592 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34593echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
34594if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34595 echo $ECHO_N "(cached) $ECHO_C" >&6
34596else
34597 ac_check_lib_save_LIBS=$LIBS
34598LIBS="-lmsvcrt $LIBS"
34599cat >conftest.$ac_ext <<_ACEOF
34600/* confdefs.h. */
34601_ACEOF
34602cat confdefs.h >>conftest.$ac_ext
34603cat >>conftest.$ac_ext <<_ACEOF
34604/* end confdefs.h. */
34605
34606/* Override any gcc2 internal prototype to avoid an error. */
34607#ifdef __cplusplus
34608extern "C"
34609#endif
34610/* We use char because int might match the return type of a gcc2
34611 builtin and then its argument prototype would still apply. */
34612char wcslen ();
34613int
34614main ()
34615{
34616wcslen ();
34617 ;
34618 return 0;
34619}
34620_ACEOF
34621rm -f conftest.$ac_objext conftest$ac_exeext
34622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34623 (eval $ac_link) 2>conftest.er1
a848cd7e 34624 ac_status=$?
ac1cb8d3
VS
34625 grep -v '^ *+' conftest.er1 >conftest.err
34626 rm -f conftest.er1
34627 cat conftest.err >&5
a848cd7e
SC
34628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629 (exit $ac_status); } &&
fd5199d6 34630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34632 (eval $ac_try) 2>&5
34633 ac_status=$?
34634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34635 (exit $ac_status); }; } &&
34636 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34638 (eval $ac_try) 2>&5
34639 ac_status=$?
34640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34641 (exit $ac_status); }; }; then
34642 ac_cv_lib_msvcrt_wcslen=yes
34643else
34644 echo "$as_me: failed program was:" >&5
34645sed 's/^/| /' conftest.$ac_ext >&5
34646
34647ac_cv_lib_msvcrt_wcslen=no
34648fi
ac1cb8d3
VS
34649rm -f conftest.err conftest.$ac_objext \
34650 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34651LIBS=$ac_check_lib_save_LIBS
34652fi
34653echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34654echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
34655if test $ac_cv_lib_msvcrt_wcslen = yes; then
34656 WCHAR_OK=1
34657fi
34658
34659 else
34660 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34661echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
34662if test "${ac_cv_lib_w_wcslen+set}" = set; then
34663 echo $ECHO_N "(cached) $ECHO_C" >&6
34664else
34665 ac_check_lib_save_LIBS=$LIBS
34666LIBS="-lw $LIBS"
34667cat >conftest.$ac_ext <<_ACEOF
34668/* confdefs.h. */
34669_ACEOF
34670cat confdefs.h >>conftest.$ac_ext
34671cat >>conftest.$ac_ext <<_ACEOF
34672/* end confdefs.h. */
34673
34674/* Override any gcc2 internal prototype to avoid an error. */
34675#ifdef __cplusplus
34676extern "C"
34677#endif
34678/* We use char because int might match the return type of a gcc2
34679 builtin and then its argument prototype would still apply. */
34680char wcslen ();
34681int
34682main ()
34683{
34684wcslen ();
34685 ;
34686 return 0;
34687}
34688_ACEOF
34689rm -f conftest.$ac_objext conftest$ac_exeext
34690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34691 (eval $ac_link) 2>conftest.er1
a848cd7e 34692 ac_status=$?
ac1cb8d3
VS
34693 grep -v '^ *+' conftest.er1 >conftest.err
34694 rm -f conftest.er1
34695 cat conftest.err >&5
a848cd7e
SC
34696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34697 (exit $ac_status); } &&
fd5199d6 34698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34700 (eval $ac_try) 2>&5
34701 ac_status=$?
34702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34703 (exit $ac_status); }; } &&
34704 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34706 (eval $ac_try) 2>&5
34707 ac_status=$?
34708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34709 (exit $ac_status); }; }; then
34710 ac_cv_lib_w_wcslen=yes
34711else
34712 echo "$as_me: failed program was:" >&5
34713sed 's/^/| /' conftest.$ac_ext >&5
34714
34715ac_cv_lib_w_wcslen=no
34716fi
ac1cb8d3
VS
34717rm -f conftest.err conftest.$ac_objext \
34718 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34719LIBS=$ac_check_lib_save_LIBS
34720fi
34721echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34722echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
34723if test $ac_cv_lib_w_wcslen = yes; then
34724
34725 WCHAR_LINK=" -lw"
34726 WCSLEN_FOUND=1
34727
34728fi
34729
34730 fi
34731 fi
34732
34733 if test "$WCSLEN_FOUND" = 1; then
34734 cat >>confdefs.h <<\_ACEOF
34735#define HAVE_WCSLEN 1
34736_ACEOF
34737
34738 fi
34739
efdf6afe 34740 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 34741 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
34742 fi
34743
efdf6afe
VZ
34744 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34745echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34746if test "${ac_cv_type_mbstate_t+set}" = set; then
34747 echo $ECHO_N "(cached) $ECHO_C" >&6
34748else
34749 cat >conftest.$ac_ext <<_ACEOF
34750/* confdefs.h. */
34751_ACEOF
34752cat confdefs.h >>conftest.$ac_ext
34753cat >>conftest.$ac_ext <<_ACEOF
34754/* end confdefs.h. */
34755#include <wchar.h>
34756
34757int
34758main ()
34759{
34760if ((mbstate_t *) 0)
34761 return 0;
34762if (sizeof (mbstate_t))
34763 return 0;
34764 ;
34765 return 0;
34766}
34767_ACEOF
34768rm -f conftest.$ac_objext
34769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34770 (eval $ac_compile) 2>conftest.er1
34771 ac_status=$?
34772 grep -v '^ *+' conftest.er1 >conftest.err
34773 rm -f conftest.er1
34774 cat conftest.err >&5
34775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34776 (exit $ac_status); } &&
fd5199d6 34777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
34778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34779 (eval $ac_try) 2>&5
34780 ac_status=$?
34781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34782 (exit $ac_status); }; } &&
34783 { ac_try='test -s conftest.$ac_objext'
34784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34785 (eval $ac_try) 2>&5
34786 ac_status=$?
34787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34788 (exit $ac_status); }; }; then
34789 ac_cv_type_mbstate_t=yes
34790else
34791 echo "$as_me: failed program was:" >&5
34792sed 's/^/| /' conftest.$ac_ext >&5
34793
34794ac_cv_type_mbstate_t=no
34795fi
34796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34797fi
34798echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34799echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34800if test $ac_cv_type_mbstate_t = yes; then
34801
34802cat >>confdefs.h <<_ACEOF
34803#define HAVE_MBSTATE_T 1
34804_ACEOF
34805
a848cd7e
SC
34806
34807for ac_func in wcsrtombs
34808do
34809as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34810echo "$as_me:$LINENO: checking for $ac_func" >&5
34811echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34812if eval "test \"\${$as_ac_var+set}\" = set"; then
34813 echo $ECHO_N "(cached) $ECHO_C" >&6
34814else
34815 cat >conftest.$ac_ext <<_ACEOF
34816/* confdefs.h. */
34817_ACEOF
34818cat confdefs.h >>conftest.$ac_ext
34819cat >>conftest.$ac_ext <<_ACEOF
34820/* end confdefs.h. */
ac1cb8d3
VS
34821/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34823#define $ac_func innocuous_$ac_func
34824
a848cd7e
SC
34825/* System header to define __stub macros and hopefully few prototypes,
34826 which can conflict with char $ac_func (); below.
34827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34828 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34829
a848cd7e
SC
34830#ifdef __STDC__
34831# include <limits.h>
34832#else
34833# include <assert.h>
34834#endif
ac1cb8d3
VS
34835
34836#undef $ac_func
34837
a848cd7e
SC
34838/* Override any gcc2 internal prototype to avoid an error. */
34839#ifdef __cplusplus
34840extern "C"
34841{
34842#endif
34843/* We use char because int might match the return type of a gcc2
34844 builtin and then its argument prototype would still apply. */
34845char $ac_func ();
34846/* The GNU C library defines this for functions which it implements
34847 to always fail with ENOSYS. Some functions are actually named
34848 something starting with __ and the normal name is an alias. */
34849#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34850choke me
34851#else
34852char (*f) () = $ac_func;
34853#endif
34854#ifdef __cplusplus
34855}
34856#endif
34857
34858int
34859main ()
34860{
34861return f != $ac_func;
34862 ;
34863 return 0;
34864}
34865_ACEOF
34866rm -f conftest.$ac_objext conftest$ac_exeext
34867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34868 (eval $ac_link) 2>conftest.er1
a848cd7e 34869 ac_status=$?
ac1cb8d3
VS
34870 grep -v '^ *+' conftest.er1 >conftest.err
34871 rm -f conftest.er1
34872 cat conftest.err >&5
a848cd7e
SC
34873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34874 (exit $ac_status); } &&
fd5199d6 34875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34877 (eval $ac_try) 2>&5
34878 ac_status=$?
34879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34880 (exit $ac_status); }; } &&
34881 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34883 (eval $ac_try) 2>&5
34884 ac_status=$?
34885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34886 (exit $ac_status); }; }; then
34887 eval "$as_ac_var=yes"
34888else
34889 echo "$as_me: failed program was:" >&5
34890sed 's/^/| /' conftest.$ac_ext >&5
34891
34892eval "$as_ac_var=no"
34893fi
ac1cb8d3
VS
34894rm -f conftest.err conftest.$ac_objext \
34895 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34896fi
34897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34898echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34899if test `eval echo '${'$as_ac_var'}'` = yes; then
34900 cat >>confdefs.h <<_ACEOF
34901#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34902_ACEOF
34903
34904fi
34905done
34906
efdf6afe
VZ
34907fi
34908
a848cd7e
SC
34909else
34910 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34911echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34912fi
34913
a848cd7e 34914
4a767dd5
VZ
34915
34916for ac_func in snprintf vsnprintf
a848cd7e
SC
34917do
34918as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34919echo "$as_me:$LINENO: checking for $ac_func" >&5
34920echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34921if eval "test \"\${$as_ac_var+set}\" = set"; then
34922 echo $ECHO_N "(cached) $ECHO_C" >&6
34923else
34924 cat >conftest.$ac_ext <<_ACEOF
34925/* confdefs.h. */
34926_ACEOF
34927cat confdefs.h >>conftest.$ac_ext
34928cat >>conftest.$ac_ext <<_ACEOF
34929/* end confdefs.h. */
ac1cb8d3
VS
34930/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34932#define $ac_func innocuous_$ac_func
34933
a848cd7e
SC
34934/* System header to define __stub macros and hopefully few prototypes,
34935 which can conflict with char $ac_func (); below.
34936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34937 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34938
a848cd7e
SC
34939#ifdef __STDC__
34940# include <limits.h>
34941#else
34942# include <assert.h>
34943#endif
ac1cb8d3
VS
34944
34945#undef $ac_func
34946
a848cd7e
SC
34947/* Override any gcc2 internal prototype to avoid an error. */
34948#ifdef __cplusplus
34949extern "C"
34950{
34951#endif
34952/* We use char because int might match the return type of a gcc2
34953 builtin and then its argument prototype would still apply. */
34954char $ac_func ();
34955/* The GNU C library defines this for functions which it implements
34956 to always fail with ENOSYS. Some functions are actually named
34957 something starting with __ and the normal name is an alias. */
34958#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34959choke me
34960#else
34961char (*f) () = $ac_func;
34962#endif
34963#ifdef __cplusplus
34964}
34965#endif
34966
34967int
34968main ()
34969{
34970return f != $ac_func;
34971 ;
34972 return 0;
34973}
34974_ACEOF
34975rm -f conftest.$ac_objext conftest$ac_exeext
34976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34977 (eval $ac_link) 2>conftest.er1
a848cd7e 34978 ac_status=$?
ac1cb8d3
VS
34979 grep -v '^ *+' conftest.er1 >conftest.err
34980 rm -f conftest.er1
34981 cat conftest.err >&5
a848cd7e
SC
34982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34983 (exit $ac_status); } &&
fd5199d6 34984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34986 (eval $ac_try) 2>&5
34987 ac_status=$?
34988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34989 (exit $ac_status); }; } &&
34990 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34992 (eval $ac_try) 2>&5
34993 ac_status=$?
34994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34995 (exit $ac_status); }; }; then
34996 eval "$as_ac_var=yes"
34997else
34998 echo "$as_me: failed program was:" >&5
34999sed 's/^/| /' conftest.$ac_ext >&5
35000
35001eval "$as_ac_var=no"
35002fi
ac1cb8d3
VS
35003rm -f conftest.err conftest.$ac_objext \
35004 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35005fi
35006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35007echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35008if test `eval echo '${'$as_ac_var'}'` = yes; then
35009 cat >>confdefs.h <<_ACEOF
35010#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35011_ACEOF
35012
35013fi
35014done
35015
35016
35017if test "$ac_cv_func_vsnprintf" = "yes"; then
35018 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35019echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
35020if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35021 echo $ECHO_N "(cached) $ECHO_C" >&6
35022else
35023
efdf6afe 35024 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
35025/* confdefs.h. */
35026_ACEOF
35027cat confdefs.h >>conftest.$ac_ext
35028cat >>conftest.$ac_ext <<_ACEOF
35029/* end confdefs.h. */
35030
35031 #include <stdio.h>
35032 #include <stdarg.h>
efdf6afe
VZ
35033 #ifdef __MSL__
35034 #if __MSL__ >= 0x6000
35035 namespace std {}
35036 using namespace std;
35037 #endif
35038 #endif
a848cd7e
SC
35039
35040int
35041main ()
35042{
35043
35044 char *buf;
35045 va_list ap;
62fa8b3a 35046 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
35047
35048 ;
35049 return 0;
35050}
35051_ACEOF
35052rm -f conftest.$ac_objext
35053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35054 (eval $ac_compile) 2>conftest.er1
35055 ac_status=$?
35056 grep -v '^ *+' conftest.er1 >conftest.err
35057 rm -f conftest.er1
35058 cat conftest.err >&5
35059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35060 (exit $ac_status); } &&
fd5199d6 35061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
c122b164
DE
35062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35063 (eval $ac_try) 2>&5
35064 ac_status=$?
35065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35066 (exit $ac_status); }; } &&
35067 { ac_try='test -s conftest.$ac_objext'
35068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35069 (eval $ac_try) 2>&5
35070 ac_status=$?
35071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35072 (exit $ac_status); }; }; then
35073 wx_cv_func_vsnprintf_decl=yes
35074else
35075 echo "$as_me: failed program was:" >&5
35076sed 's/^/| /' conftest.$ac_ext >&5
35077
a848cd7e
SC
35078wx_cv_func_vsnprintf_decl=no
35079
35080fi
ac1cb8d3 35081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35082
35083
35084fi
35085echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35086echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
35087
35088 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35089 cat >>confdefs.h <<\_ACEOF
35090#define HAVE_VSNPRINTF_DECL 1
35091_ACEOF
35092
62fa8b3a
MW
35093
35094 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35095echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
35096if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35097 echo $ECHO_N "(cached) $ECHO_C" >&6
35098else
35099
35100 cat >conftest.$ac_ext <<_ACEOF
35101/* confdefs.h. */
35102_ACEOF
35103cat confdefs.h >>conftest.$ac_ext
35104cat >>conftest.$ac_ext <<_ACEOF
35105/* end confdefs.h. */
35106
35107 #include <stdio.h>
35108 #include <stdarg.h>
35109 #ifdef __MSL__
35110 #if __MSL__ >= 0x6000
35111 namespace std {}
35112 using namespace std;
35113 #endif
35114 #endif
35115
35116int
35117main ()
35118{
35119
35120 char *buf;
35121 va_list ap;
35122 const char *fmt = "%s";
35123 vsnprintf(buf, 10u, fmt, ap);
35124
35125 ;
35126 return 0;
35127}
35128_ACEOF
35129rm -f conftest.$ac_objext
35130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35131 (eval $ac_compile) 2>conftest.er1
35132 ac_status=$?
35133 grep -v '^ *+' conftest.er1 >conftest.err
35134 rm -f conftest.er1
35135 cat conftest.err >&5
35136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35137 (exit $ac_status); } &&
fd5199d6 35138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35140 (eval $ac_try) 2>&5
35141 ac_status=$?
35142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35143 (exit $ac_status); }; } &&
35144 { ac_try='test -s conftest.$ac_objext'
35145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35146 (eval $ac_try) 2>&5
35147 ac_status=$?
35148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35149 (exit $ac_status); }; }; then
35150 wx_cv_func_broken_vsnprintf_decl=no
35151else
35152 echo "$as_me: failed program was:" >&5
35153sed 's/^/| /' conftest.$ac_ext >&5
35154
35155wx_cv_func_broken_vsnprintf_decl=yes
35156
35157fi
35158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35159
35160
35161fi
35162echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35163echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
35164
35165 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35166 cat >>confdefs.h <<\_ACEOF
35167#define HAVE_BROKEN_VSNPRINTF_DECL 1
35168_ACEOF
35169
35170 fi
a848cd7e
SC
35171 fi
35172fi
35173
4a767dd5
VZ
35174if test "$ac_cv_func_snprintf" = "yes"; then
35175 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35176echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
35177if test "${wx_cv_func_snprintf_decl+set}" = set; then
35178 echo $ECHO_N "(cached) $ECHO_C" >&6
35179else
35180
35181 cat >conftest.$ac_ext <<_ACEOF
35182/* confdefs.h. */
35183_ACEOF
35184cat confdefs.h >>conftest.$ac_ext
35185cat >>conftest.$ac_ext <<_ACEOF
35186/* end confdefs.h. */
35187
35188 #include <stdio.h>
35189 #include <stdarg.h>
35190 #ifdef __MSL__
35191 #if __MSL__ >= 0x6000
35192 namespace std {}
35193 using namespace std;
35194 #endif
35195 #endif
35196
35197int
35198main ()
35199{
35200
35201 char *buf;
62fa8b3a 35202 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
35203
35204 ;
35205 return 0;
35206}
35207_ACEOF
35208rm -f conftest.$ac_objext
35209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35210 (eval $ac_compile) 2>conftest.er1
35211 ac_status=$?
35212 grep -v '^ *+' conftest.er1 >conftest.err
35213 rm -f conftest.er1
35214 cat conftest.err >&5
35215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35216 (exit $ac_status); } &&
fd5199d6 35217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
35218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35219 (eval $ac_try) 2>&5
35220 ac_status=$?
35221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35222 (exit $ac_status); }; } &&
35223 { ac_try='test -s conftest.$ac_objext'
35224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35225 (eval $ac_try) 2>&5
35226 ac_status=$?
35227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35228 (exit $ac_status); }; }; then
35229 wx_cv_func_snprintf_decl=yes
35230else
35231 echo "$as_me: failed program was:" >&5
35232sed 's/^/| /' conftest.$ac_ext >&5
35233
35234wx_cv_func_snprintf_decl=no
35235
35236fi
35237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35238
35239
35240fi
35241echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35242echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
35243
35244 if test "$wx_cv_func_snprintf_decl" = "yes"; then
35245 cat >>confdefs.h <<\_ACEOF
35246#define HAVE_SNPRINTF_DECL 1
35247_ACEOF
35248
62fa8b3a
MW
35249
35250 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35251echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
35252if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35253 echo $ECHO_N "(cached) $ECHO_C" >&6
35254else
35255
35256 cat >conftest.$ac_ext <<_ACEOF
35257/* confdefs.h. */
35258_ACEOF
35259cat confdefs.h >>conftest.$ac_ext
35260cat >>conftest.$ac_ext <<_ACEOF
35261/* end confdefs.h. */
35262
35263 #include <stdio.h>
35264 #include <stdarg.h>
35265 #ifdef __MSL__
35266 #if __MSL__ >= 0x6000
35267 namespace std {}
35268 using namespace std;
35269 #endif
35270 #endif
35271
35272int
35273main ()
35274{
35275
35276 char *buf;
35277 const char *fmt = "%s";
35278 snprintf(buf, 10u, fmt, "wx");
35279
35280 ;
35281 return 0;
35282}
35283_ACEOF
35284rm -f conftest.$ac_objext
35285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35286 (eval $ac_compile) 2>conftest.er1
35287 ac_status=$?
35288 grep -v '^ *+' conftest.er1 >conftest.err
35289 rm -f conftest.er1
35290 cat conftest.err >&5
35291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292 (exit $ac_status); } &&
fd5199d6 35293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35295 (eval $ac_try) 2>&5
35296 ac_status=$?
35297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35298 (exit $ac_status); }; } &&
35299 { ac_try='test -s conftest.$ac_objext'
35300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35301 (eval $ac_try) 2>&5
35302 ac_status=$?
35303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35304 (exit $ac_status); }; }; then
35305 wx_cv_func_broken_snprintf_decl=no
35306else
35307 echo "$as_me: failed program was:" >&5
35308sed 's/^/| /' conftest.$ac_ext >&5
35309
35310wx_cv_func_broken_snprintf_decl=yes
35311
35312fi
35313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35314
35315
35316fi
35317echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35318echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
35319
35320 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35321 cat >>confdefs.h <<\_ACEOF
35322#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
35323_ACEOF
35324
35325 fi
35326 fi
35327
35328 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35329
35330 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35331echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
35332if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35333 echo $ECHO_N "(cached) $ECHO_C" >&6
35334else
35335
35336 if test "$cross_compiling" = yes; then
5039a2df
VZ
35337
35338 { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35339define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35340echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35341define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35342 wx_cv_func_snprintf_pos_params=no
35343
35344
8b6682b9
JS
35345else
35346 cat >conftest.$ac_ext <<_ACEOF
35347/* confdefs.h. */
35348_ACEOF
35349cat confdefs.h >>conftest.$ac_ext
35350cat >>conftest.$ac_ext <<_ACEOF
35351/* end confdefs.h. */
35352
35353 #include <stdio.h>
35354
35355 int main (void)
35356 {
35357 char buffer[128];
35358 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
35359 if (strcmp ("2 3 1", buffer) == 0)
35360 exit (0);
35361 exit (1);
35362 }
35363
35364_ACEOF
35365rm -f conftest$ac_exeext
35366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35367 (eval $ac_link) 2>&5
35368 ac_status=$?
35369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
35376 wx_cv_func_snprintf_pos_params=no
35377else
35378 echo "$as_me: program exited with status $ac_status" >&5
35379echo "$as_me: failed program was:" >&5
35380sed 's/^/| /' conftest.$ac_ext >&5
35381
35382( exit $ac_status )
35383wx_cv_func_snprintf_pos_params=yes
8b6682b9
JS
35384fi
35385rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35386fi
35387
35388
35389fi
35390echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35391echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
35392
35393 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35394 cat >>confdefs.h <<\_ACEOF
35395#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
35396_ACEOF
35397
35398 fi
4a767dd5
VZ
35399 fi
35400fi
35401
a848cd7e
SC
35402if test "$wxUSE_UNICODE" = yes; then
35403
35404
6a5c9b3f
RR
35405for ac_func in swprintf
35406do
35407as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35408echo "$as_me:$LINENO: checking for $ac_func" >&5
35409echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35410if eval "test \"\${$as_ac_var+set}\" = set"; then
35411 echo $ECHO_N "(cached) $ECHO_C" >&6
35412else
35413 cat >conftest.$ac_ext <<_ACEOF
35414/* confdefs.h. */
35415_ACEOF
35416cat confdefs.h >>conftest.$ac_ext
35417cat >>conftest.$ac_ext <<_ACEOF
35418/* end confdefs.h. */
35419/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35421#define $ac_func innocuous_$ac_func
35422
35423/* System header to define __stub macros and hopefully few prototypes,
35424 which can conflict with char $ac_func (); below.
35425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35426 <limits.h> exists even on freestanding compilers. */
35427
35428#ifdef __STDC__
35429# include <limits.h>
35430#else
35431# include <assert.h>
35432#endif
35433
35434#undef $ac_func
35435
35436/* Override any gcc2 internal prototype to avoid an error. */
35437#ifdef __cplusplus
35438extern "C"
35439{
35440#endif
35441/* We use char because int might match the return type of a gcc2
35442 builtin and then its argument prototype would still apply. */
35443char $ac_func ();
35444/* The GNU C library defines this for functions which it implements
35445 to always fail with ENOSYS. Some functions are actually named
35446 something starting with __ and the normal name is an alias. */
35447#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35448choke me
35449#else
35450char (*f) () = $ac_func;
35451#endif
35452#ifdef __cplusplus
35453}
35454#endif
35455
35456int
35457main ()
35458{
35459return f != $ac_func;
35460 ;
35461 return 0;
35462}
35463_ACEOF
35464rm -f conftest.$ac_objext conftest$ac_exeext
35465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35466 (eval $ac_link) 2>conftest.er1
35467 ac_status=$?
35468 grep -v '^ *+' conftest.er1 >conftest.err
35469 rm -f conftest.er1
35470 cat conftest.err >&5
35471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35472 (exit $ac_status); } &&
fd5199d6 35473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35475 (eval $ac_try) 2>&5
35476 ac_status=$?
35477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35478 (exit $ac_status); }; } &&
35479 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
35485 eval "$as_ac_var=yes"
35486else
35487 echo "$as_me: failed program was:" >&5
35488sed 's/^/| /' conftest.$ac_ext >&5
35489
35490eval "$as_ac_var=no"
35491fi
35492rm -f conftest.err conftest.$ac_objext \
35493 conftest$ac_exeext conftest.$ac_ext
35494fi
35495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35496echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35497if test `eval echo '${'$as_ac_var'}'` = yes; then
35498 cat >>confdefs.h <<_ACEOF
35499#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35500_ACEOF
35501
35502fi
35503done
35504
35505
35506 if test "$ac_cv_func_swprintf" = "yes"; then
35507 echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
35508echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
35509if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
35510 echo $ECHO_N "(cached) $ECHO_C" >&6
35511else
35512
35513 cat >conftest.$ac_ext <<_ACEOF
35514/* confdefs.h. */
35515_ACEOF
35516cat confdefs.h >>conftest.$ac_ext
35517cat >>conftest.$ac_ext <<_ACEOF
35518/* end confdefs.h. */
35519
35520 #include <stdio.h>
35521 #include <stdarg.h>
35522 #include <wchar.h>
35523
35524int
35525main ()
35526{
35527
35528 wchar_t *buf;
35529 const wchar_t *fmt = L"test";
35530 swprintf(buf, 10u, fmt);
35531
35532 ;
35533 return 0;
35534}
35535_ACEOF
35536rm -f conftest.$ac_objext
35537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35538 (eval $ac_compile) 2>conftest.er1
35539 ac_status=$?
35540 grep -v '^ *+' conftest.er1 >conftest.err
35541 rm -f conftest.er1
35542 cat conftest.err >&5
35543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35544 (exit $ac_status); } &&
fd5199d6 35545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35547 (eval $ac_try) 2>&5
35548 ac_status=$?
35549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35550 (exit $ac_status); }; } &&
35551 { ac_try='test -s conftest.$ac_objext'
35552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35553 (eval $ac_try) 2>&5
35554 ac_status=$?
35555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35556 (exit $ac_status); }; }; then
35557 wx_cv_func_broken_swprintf_decl=no
35558else
35559 echo "$as_me: failed program was:" >&5
35560sed 's/^/| /' conftest.$ac_ext >&5
35561
35562wx_cv_func_broken_swprintf_decl=yes
35563
35564fi
35565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35566
35567
35568fi
35569echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
35570echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
35571
35572 if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
35573 cat >>confdefs.h <<\_ACEOF
35574#define HAVE_BROKEN_SWPRINTF_DECL 1
35575_ACEOF
35576
35577 fi
35578 fi
35579
a49ffb32
VZ
35580 wchar_headers="#include <stdio.h>
35581#include <wchar.h>"
35582 case "${host}" in
35583 *-*-solaris2* )
35584
35585for ac_header in widec.h
35586do
35587as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35588if eval "test \"\${$as_ac_Header+set}\" = set"; then
35589 echo "$as_me:$LINENO: checking for $ac_header" >&5
35590echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35591if eval "test \"\${$as_ac_Header+set}\" = set"; then
35592 echo $ECHO_N "(cached) $ECHO_C" >&6
35593fi
35594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35595echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35596else
35597 # Is the header compilable?
35598echo "$as_me:$LINENO: checking $ac_header usability" >&5
35599echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35600cat >conftest.$ac_ext <<_ACEOF
35601/* confdefs.h. */
35602_ACEOF
35603cat confdefs.h >>conftest.$ac_ext
35604cat >>conftest.$ac_ext <<_ACEOF
35605/* end confdefs.h. */
35606$ac_includes_default
35607#include <$ac_header>
35608_ACEOF
35609rm -f conftest.$ac_objext
35610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35611 (eval $ac_compile) 2>conftest.er1
35612 ac_status=$?
35613 grep -v '^ *+' conftest.er1 >conftest.err
35614 rm -f conftest.er1
35615 cat conftest.err >&5
35616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35617 (exit $ac_status); } &&
35618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35620 (eval $ac_try) 2>&5
35621 ac_status=$?
35622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35623 (exit $ac_status); }; } &&
35624 { ac_try='test -s conftest.$ac_objext'
35625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35626 (eval $ac_try) 2>&5
35627 ac_status=$?
35628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35629 (exit $ac_status); }; }; then
35630 ac_header_compiler=yes
35631else
35632 echo "$as_me: failed program was:" >&5
35633sed 's/^/| /' conftest.$ac_ext >&5
35634
35635ac_header_compiler=no
35636fi
35637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35638echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35639echo "${ECHO_T}$ac_header_compiler" >&6
35640
35641# Is the header present?
35642echo "$as_me:$LINENO: checking $ac_header presence" >&5
35643echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35644cat >conftest.$ac_ext <<_ACEOF
35645/* confdefs.h. */
35646_ACEOF
35647cat confdefs.h >>conftest.$ac_ext
35648cat >>conftest.$ac_ext <<_ACEOF
35649/* end confdefs.h. */
35650#include <$ac_header>
35651_ACEOF
35652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35654 ac_status=$?
35655 grep -v '^ *+' conftest.er1 >conftest.err
35656 rm -f conftest.er1
35657 cat conftest.err >&5
35658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35659 (exit $ac_status); } >/dev/null; then
35660 if test -s conftest.err; then
35661 ac_cpp_err=$ac_c_preproc_warn_flag
35662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35663 else
35664 ac_cpp_err=
35665 fi
35666else
35667 ac_cpp_err=yes
35668fi
35669if test -z "$ac_cpp_err"; then
35670 ac_header_preproc=yes
35671else
35672 echo "$as_me: failed program was:" >&5
35673sed 's/^/| /' conftest.$ac_ext >&5
35674
35675 ac_header_preproc=no
35676fi
35677rm -f conftest.err conftest.$ac_ext
35678echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35679echo "${ECHO_T}$ac_header_preproc" >&6
35680
35681# So? What about this header?
35682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35683 yes:no: )
35684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35685echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35687echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35688 ac_header_preproc=yes
35689 ;;
35690 no:yes:* )
35691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35692echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35694echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35696echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35698echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35700echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35702echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35703 (
35704 cat <<\_ASBOX
35705## ----------------------------------------- ##
35706## Report this to wx-dev@lists.wxwidgets.org ##
35707## ----------------------------------------- ##
35708_ASBOX
35709 ) |
35710 sed "s/^/$as_me: WARNING: /" >&2
35711 ;;
35712esac
35713echo "$as_me:$LINENO: checking for $ac_header" >&5
35714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35715if eval "test \"\${$as_ac_Header+set}\" = set"; then
35716 echo $ECHO_N "(cached) $ECHO_C" >&6
35717else
35718 eval "$as_ac_Header=\$ac_header_preproc"
35719fi
35720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35721echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35722
35723fi
35724if test `eval echo '${'$as_ac_Header'}'` = yes; then
35725 cat >>confdefs.h <<_ACEOF
35726#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35727_ACEOF
35728
35729fi
35730
35731done
35732
35733 if test "$ac_cv_header_widec_h" = "yes"; then
35734 wchar_headers="$wchar_headers
35735#include <widec.h>"
35736 fi
35737 esac
35738
6a5c9b3f 35739
fd5199d6
VZ
35740 for wx_func in wputc wputchar putws fputws wprintf vswprintf
35741 do
35742 echo "$as_me:$LINENO: checking for $wx_func" >&5
35743echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
35744if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
35745 echo $ECHO_N "(cached) $ECHO_C" >&6
35746else
fd5199d6
VZ
35747
35748 cat >conftest.$ac_ext <<_ACEOF
35749
35750 /* confdefs.h. */
a848cd7e
SC
35751_ACEOF
35752cat confdefs.h >>conftest.$ac_ext
35753cat >>conftest.$ac_ext <<_ACEOF
35754/* end confdefs.h. */
ac1cb8d3 35755
a49ffb32 35756 $wchar_headers
fd5199d6 35757 $ac_includes_default
a848cd7e
SC
35758
35759int
35760main ()
35761{
fd5199d6
VZ
35762
35763 #ifndef $wx_func
35764 &$wx_func;
35765 #endif
35766
35767
a848cd7e
SC
35768 ;
35769 return 0;
35770}
fd5199d6 35771
a848cd7e
SC
35772_ACEOF
35773rm -f conftest.$ac_objext conftest$ac_exeext
35774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35775 (eval $ac_link) 2>conftest.er1
a848cd7e 35776 ac_status=$?
ac1cb8d3
VS
35777 grep -v '^ *+' conftest.er1 >conftest.err
35778 rm -f conftest.er1
35779 cat conftest.err >&5
a848cd7e
SC
35780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35781 (exit $ac_status); } &&
fd5199d6 35782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35784 (eval $ac_try) 2>&5
35785 ac_status=$?
35786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787 (exit $ac_status); }; } &&
35788 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
fd5199d6 35794 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
35795else
35796 echo "$as_me: failed program was:" >&5
35797sed 's/^/| /' conftest.$ac_ext >&5
35798
fd5199d6 35799eval wx_cv_func_$wx_func=no
a848cd7e 35800fi
ac1cb8d3
VS
35801rm -f conftest.err conftest.$ac_objext \
35802 conftest$ac_exeext conftest.$ac_ext
fd5199d6 35803
a848cd7e 35804fi
fd5199d6
VZ
35805echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
35806echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
35807
35808 if eval test \$wx_cv_func_$wx_func = yes
35809 then
35810 cat >>confdefs.h <<_ACEOF
35811#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
a848cd7e
SC
35812_ACEOF
35813
fd5199d6
VZ
35814
35815 else
35816 :
35817
35818 fi
35819 done
a848cd7e
SC
35820
35821
35822 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35823echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
35824 cat >conftest.$ac_ext <<_ACEOF
35825/* confdefs.h. */
35826_ACEOF
35827cat confdefs.h >>conftest.$ac_ext
35828cat >>conftest.$ac_ext <<_ACEOF
35829/* end confdefs.h. */
35830#include <wchar.h>
35831int
35832main ()
35833{
35834&_vsnwprintf;
35835 ;
35836 return 0;
35837}
35838_ACEOF
35839rm -f conftest.$ac_objext
35840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35841 (eval $ac_compile) 2>conftest.er1
a848cd7e 35842 ac_status=$?
ac1cb8d3
VS
35843 grep -v '^ *+' conftest.er1 >conftest.err
35844 rm -f conftest.er1
35845 cat conftest.err >&5
a848cd7e
SC
35846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35847 (exit $ac_status); } &&
fd5199d6 35848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35850 (eval $ac_try) 2>&5
35851 ac_status=$?
35852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35853 (exit $ac_status); }; } &&
35854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35856 (eval $ac_try) 2>&5
35857 ac_status=$?
35858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35859 (exit $ac_status); }; }; then
35860 echo "$as_me:$LINENO: result: yes" >&5
35861echo "${ECHO_T}yes" >&6
35862 cat >>confdefs.h <<\_ACEOF
35863#define HAVE__VSNWPRINTF 1
35864_ACEOF
35865
35866else
35867 echo "$as_me: failed program was:" >&5
35868sed 's/^/| /' conftest.$ac_ext >&5
35869
35870echo "$as_me:$LINENO: result: no" >&5
35871echo "${ECHO_T}no" >&6
35872fi
ac1cb8d3 35873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
35874fi
35875
6ebeb4c7
VZ
35876if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
35877
fd5199d6
VZ
35878 for wx_func in fnmatch
35879 do
35880 echo "$as_me:$LINENO: checking for $wx_func" >&5
35881echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
35882if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
6ebeb4c7
VZ
35883 echo $ECHO_N "(cached) $ECHO_C" >&6
35884else
fd5199d6
VZ
35885
35886 cat >conftest.$ac_ext <<_ACEOF
35887
35888 /* confdefs.h. */
6ebeb4c7
VZ
35889_ACEOF
35890cat confdefs.h >>conftest.$ac_ext
35891cat >>conftest.$ac_ext <<_ACEOF
35892/* end confdefs.h. */
6ebeb4c7 35893
9b8888f9 35894 #include <fnmatch.h>
fd5199d6 35895 $ac_includes_default
6ebeb4c7
VZ
35896
35897int
35898main ()
35899{
fd5199d6
VZ
35900
35901 #ifndef $wx_func
35902 &$wx_func;
35903 #endif
35904
35905
6ebeb4c7
VZ
35906 ;
35907 return 0;
35908}
fd5199d6 35909
6ebeb4c7
VZ
35910_ACEOF
35911rm -f conftest.$ac_objext conftest$ac_exeext
35912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35913 (eval $ac_link) 2>conftest.er1
35914 ac_status=$?
35915 grep -v '^ *+' conftest.er1 >conftest.err
35916 rm -f conftest.er1
35917 cat conftest.err >&5
35918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35919 (exit $ac_status); } &&
fd5199d6 35920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
35921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35922 (eval $ac_try) 2>&5
35923 ac_status=$?
35924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35925 (exit $ac_status); }; } &&
35926 { ac_try='test -s conftest$ac_exeext'
35927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35928 (eval $ac_try) 2>&5
35929 ac_status=$?
35930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35931 (exit $ac_status); }; }; then
fd5199d6 35932 eval wx_cv_func_$wx_func=yes
6ebeb4c7
VZ
35933else
35934 echo "$as_me: failed program was:" >&5
35935sed 's/^/| /' conftest.$ac_ext >&5
35936
fd5199d6 35937eval wx_cv_func_$wx_func=no
6ebeb4c7
VZ
35938fi
35939rm -f conftest.err conftest.$ac_objext \
35940 conftest$ac_exeext conftest.$ac_ext
fd5199d6 35941
6ebeb4c7 35942fi
fd5199d6
VZ
35943echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
35944echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
35945
35946 if eval test \$wx_cv_func_$wx_func = yes
35947 then
35948 cat >>confdefs.h <<_ACEOF
35949#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
6ebeb4c7
VZ
35950_ACEOF
35951
fd5199d6
VZ
35952
35953 else
35954 :
35955
35956 fi
35957 done
6ebeb4c7
VZ
35958
35959fi
35960
35961if test "$wxUSE_FILE" = "yes"; then
35962
fd5199d6
VZ
35963 for wx_func in fsync
35964 do
35965 echo "$as_me:$LINENO: checking for $wx_func" >&5
35966echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
35967if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
6ebeb4c7
VZ
35968 echo $ECHO_N "(cached) $ECHO_C" >&6
35969else
fd5199d6
VZ
35970
35971 cat >conftest.$ac_ext <<_ACEOF
35972
35973 /* confdefs.h. */
6ebeb4c7
VZ
35974_ACEOF
35975cat confdefs.h >>conftest.$ac_ext
35976cat >>conftest.$ac_ext <<_ACEOF
35977/* end confdefs.h. */
6ebeb4c7 35978
6ebeb4c7 35979
fd5199d6 35980 $ac_includes_default
6ebeb4c7
VZ
35981
35982int
35983main ()
35984{
fd5199d6
VZ
35985
35986 #ifndef $wx_func
35987 &$wx_func;
35988 #endif
35989
35990
6ebeb4c7
VZ
35991 ;
35992 return 0;
35993}
fd5199d6 35994
6ebeb4c7
VZ
35995_ACEOF
35996rm -f conftest.$ac_objext conftest$ac_exeext
35997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35998 (eval $ac_link) 2>conftest.er1
35999 ac_status=$?
36000 grep -v '^ *+' conftest.er1 >conftest.err
36001 rm -f conftest.er1
36002 cat conftest.err >&5
36003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36004 (exit $ac_status); } &&
fd5199d6 36005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
36006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36007 (eval $ac_try) 2>&5
36008 ac_status=$?
36009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36010 (exit $ac_status); }; } &&
36011 { ac_try='test -s conftest$ac_exeext'
36012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36013 (eval $ac_try) 2>&5
36014 ac_status=$?
36015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36016 (exit $ac_status); }; }; then
fd5199d6 36017 eval wx_cv_func_$wx_func=yes
6ebeb4c7
VZ
36018else
36019 echo "$as_me: failed program was:" >&5
36020sed 's/^/| /' conftest.$ac_ext >&5
36021
fd5199d6 36022eval wx_cv_func_$wx_func=no
6ebeb4c7
VZ
36023fi
36024rm -f conftest.err conftest.$ac_objext \
36025 conftest$ac_exeext conftest.$ac_ext
fd5199d6 36026
6ebeb4c7 36027fi
fd5199d6
VZ
36028echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
36029echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
36030
36031 if eval test \$wx_cv_func_$wx_func = yes
36032 then
36033 cat >>confdefs.h <<_ACEOF
36034#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
6ebeb4c7
VZ
36035_ACEOF
36036
fd5199d6
VZ
36037
36038 else
36039 :
36040
36041 fi
36042 done
6ebeb4c7
VZ
36043
36044fi
a848cd7e
SC
36045
36046
fd5199d6
VZ
36047 for wx_func in round
36048 do
36049 echo "$as_me:$LINENO: checking for $wx_func" >&5
36050echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
36051if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
c2e9ada4
VZ
36052 echo $ECHO_N "(cached) $ECHO_C" >&6
36053else
fd5199d6
VZ
36054
36055 cat >conftest.$ac_ext <<_ACEOF
36056
36057 /* confdefs.h. */
c2e9ada4
VZ
36058_ACEOF
36059cat confdefs.h >>conftest.$ac_ext
36060cat >>conftest.$ac_ext <<_ACEOF
36061/* end confdefs.h. */
c2e9ada4 36062
fd5199d6
VZ
36063 #include <math.h>
36064 $ac_includes_default
c2e9ada4
VZ
36065
36066int
36067main ()
36068{
fd5199d6
VZ
36069
36070 #ifndef $wx_func
36071 &$wx_func;
36072 #endif
36073
36074
c2e9ada4
VZ
36075 ;
36076 return 0;
36077}
fd5199d6 36078
c2e9ada4
VZ
36079_ACEOF
36080rm -f conftest.$ac_objext conftest$ac_exeext
36081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36082 (eval $ac_link) 2>conftest.er1
36083 ac_status=$?
36084 grep -v '^ *+' conftest.er1 >conftest.err
36085 rm -f conftest.er1
36086 cat conftest.err >&5
36087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36088 (exit $ac_status); } &&
fd5199d6 36089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
36090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36091 (eval $ac_try) 2>&5
36092 ac_status=$?
36093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36094 (exit $ac_status); }; } &&
36095 { ac_try='test -s conftest$ac_exeext'
36096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36097 (eval $ac_try) 2>&5
36098 ac_status=$?
36099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36100 (exit $ac_status); }; }; then
fd5199d6 36101 eval wx_cv_func_$wx_func=yes
c2e9ada4
VZ
36102else
36103 echo "$as_me: failed program was:" >&5
36104sed 's/^/| /' conftest.$ac_ext >&5
36105
fd5199d6 36106eval wx_cv_func_$wx_func=no
c2e9ada4
VZ
36107fi
36108rm -f conftest.err conftest.$ac_objext \
36109 conftest$ac_exeext conftest.$ac_ext
c2e9ada4 36110
c2e9ada4 36111fi
fd5199d6
VZ
36112echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
36113echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
c2e9ada4 36114
fd5199d6
VZ
36115 if eval test \$wx_cv_func_$wx_func = yes
36116 then
36117 cat >>confdefs.h <<_ACEOF
36118#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
c2e9ada4
VZ
36119_ACEOF
36120
36121
fd5199d6
VZ
36122 else
36123 :
c2e9ada4 36124
fd5199d6
VZ
36125 fi
36126 done
c2e9ada4
VZ
36127
36128
a848cd7e
SC
36129if test "$TOOLKIT" != "MSW"; then
36130
36131
a848cd7e
SC
36132
36133
36134
36135# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36136if test "${with_libiconv_prefix+set}" = set; then
36137 withval="$with_libiconv_prefix"
36138
36139 for dir in `echo "$withval" | tr : ' '`; do
36140 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36141 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36142 done
36143
36144fi;
36145
36146 echo "$as_me:$LINENO: checking for iconv" >&5
36147echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36148if test "${am_cv_func_iconv+set}" = set; then
36149 echo $ECHO_N "(cached) $ECHO_C" >&6
36150else
36151
36152 am_cv_func_iconv="no, consider installing GNU libiconv"
36153 am_cv_lib_iconv=no
36154 cat >conftest.$ac_ext <<_ACEOF
36155/* confdefs.h. */
36156_ACEOF
36157cat confdefs.h >>conftest.$ac_ext
36158cat >>conftest.$ac_ext <<_ACEOF
36159/* end confdefs.h. */
36160#include <stdlib.h>
36161#include <iconv.h>
36162int
36163main ()
36164{
36165iconv_t cd = iconv_open("","");
36166 iconv(cd,NULL,NULL,NULL,NULL);
36167 iconv_close(cd);
36168 ;
36169 return 0;
36170}
36171_ACEOF
36172rm -f conftest.$ac_objext conftest$ac_exeext
36173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36174 (eval $ac_link) 2>conftest.er1
a848cd7e 36175 ac_status=$?
ac1cb8d3
VS
36176 grep -v '^ *+' conftest.er1 >conftest.err
36177 rm -f conftest.er1
36178 cat conftest.err >&5
a848cd7e
SC
36179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36180 (exit $ac_status); } &&
fd5199d6 36181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36183 (eval $ac_try) 2>&5
36184 ac_status=$?
36185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36186 (exit $ac_status); }; } &&
36187 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36189 (eval $ac_try) 2>&5
36190 ac_status=$?
36191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36192 (exit $ac_status); }; }; then
36193 am_cv_func_iconv=yes
36194else
36195 echo "$as_me: failed program was:" >&5
36196sed 's/^/| /' conftest.$ac_ext >&5
36197
36198fi
ac1cb8d3
VS
36199rm -f conftest.err conftest.$ac_objext \
36200 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36201 if test "$am_cv_func_iconv" != yes; then
36202 am_save_LIBS="$LIBS"
36203 LIBS="$LIBS -liconv"
36204 cat >conftest.$ac_ext <<_ACEOF
36205/* confdefs.h. */
36206_ACEOF
36207cat confdefs.h >>conftest.$ac_ext
36208cat >>conftest.$ac_ext <<_ACEOF
36209/* end confdefs.h. */
36210#include <stdlib.h>
36211#include <iconv.h>
36212int
36213main ()
36214{
36215iconv_t cd = iconv_open("","");
36216 iconv(cd,NULL,NULL,NULL,NULL);
36217 iconv_close(cd);
36218 ;
36219 return 0;
36220}
36221_ACEOF
36222rm -f conftest.$ac_objext conftest$ac_exeext
36223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36224 (eval $ac_link) 2>conftest.er1
a848cd7e 36225 ac_status=$?
ac1cb8d3
VS
36226 grep -v '^ *+' conftest.er1 >conftest.err
36227 rm -f conftest.er1
36228 cat conftest.err >&5
a848cd7e
SC
36229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230 (exit $ac_status); } &&
fd5199d6 36231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36233 (eval $ac_try) 2>&5
36234 ac_status=$?
36235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36236 (exit $ac_status); }; } &&
36237 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36239 (eval $ac_try) 2>&5
36240 ac_status=$?
36241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242 (exit $ac_status); }; }; then
36243 am_cv_lib_iconv=yes
36244 am_cv_func_iconv=yes
36245else
36246 echo "$as_me: failed program was:" >&5
36247sed 's/^/| /' conftest.$ac_ext >&5
36248
36249fi
ac1cb8d3
VS
36250rm -f conftest.err conftest.$ac_objext \
36251 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36252 LIBS="$am_save_LIBS"
36253 fi
36254
36255fi
36256echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36257echo "${ECHO_T}$am_cv_func_iconv" >&6
36258 if test "$am_cv_func_iconv" = yes; then
36259
36260cat >>confdefs.h <<\_ACEOF
36261#define HAVE_ICONV 1
36262_ACEOF
36263
36264 echo "$as_me:$LINENO: checking if iconv needs const" >&5
36265echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
36266if test "${wx_cv_func_iconv_const+set}" = set; then
36267 echo $ECHO_N "(cached) $ECHO_C" >&6
36268else
36269 cat >conftest.$ac_ext <<_ACEOF
36270/* confdefs.h. */
36271_ACEOF
36272cat confdefs.h >>conftest.$ac_ext
36273cat >>conftest.$ac_ext <<_ACEOF
36274/* end confdefs.h. */
36275
36276#include <stdlib.h>
36277#include <iconv.h>
36278extern
36279#ifdef __cplusplus
36280"C"
36281#endif
36282#if defined(__STDC__) || defined(__cplusplus)
36283size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36284#else
36285size_t iconv();
36286#endif
36287
36288int
36289main ()
36290{
36291
36292 ;
36293 return 0;
36294}
36295_ACEOF
36296rm -f conftest.$ac_objext
36297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36298 (eval $ac_compile) 2>conftest.er1
a848cd7e 36299 ac_status=$?
ac1cb8d3
VS
36300 grep -v '^ *+' conftest.er1 >conftest.err
36301 rm -f conftest.er1
36302 cat conftest.err >&5
a848cd7e
SC
36303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36304 (exit $ac_status); } &&
fd5199d6 36305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36307 (eval $ac_try) 2>&5
36308 ac_status=$?
36309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36310 (exit $ac_status); }; } &&
36311 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36313 (eval $ac_try) 2>&5
36314 ac_status=$?
36315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36316 (exit $ac_status); }; }; then
36317 wx_cv_func_iconv_const="no"
36318else
36319 echo "$as_me: failed program was:" >&5
36320sed 's/^/| /' conftest.$ac_ext >&5
36321
36322wx_cv_func_iconv_const="yes"
36323
36324fi
ac1cb8d3 36325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36326
36327fi
36328echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36329echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
36330
36331 iconv_const=
36332 if test "x$wx_cv_func_iconv_const" = "xyes"; then
36333 iconv_const="const"
36334 fi
36335
36336
36337cat >>confdefs.h <<_ACEOF
36338#define ICONV_CONST $iconv_const
36339_ACEOF
36340
36341 fi
36342 LIBICONV=
36343 if test "$am_cv_lib_iconv" = yes; then
36344 LIBICONV="-liconv"
36345 fi
36346
36347
36348LIBS="$LIBICONV $LIBS"
a848cd7e
SC
36349
36350if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36351
36352for ac_func in sigaction
36353do
36354as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36355echo "$as_me:$LINENO: checking for $ac_func" >&5
36356echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36357if eval "test \"\${$as_ac_var+set}\" = set"; then
36358 echo $ECHO_N "(cached) $ECHO_C" >&6
36359else
36360 cat >conftest.$ac_ext <<_ACEOF
36361/* confdefs.h. */
36362_ACEOF
36363cat confdefs.h >>conftest.$ac_ext
36364cat >>conftest.$ac_ext <<_ACEOF
36365/* end confdefs.h. */
ac1cb8d3
VS
36366/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36368#define $ac_func innocuous_$ac_func
36369
a848cd7e
SC
36370/* System header to define __stub macros and hopefully few prototypes,
36371 which can conflict with char $ac_func (); below.
36372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36373 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36374
a848cd7e
SC
36375#ifdef __STDC__
36376# include <limits.h>
36377#else
36378# include <assert.h>
36379#endif
ac1cb8d3
VS
36380
36381#undef $ac_func
36382
a848cd7e
SC
36383/* Override any gcc2 internal prototype to avoid an error. */
36384#ifdef __cplusplus
36385extern "C"
36386{
36387#endif
36388/* We use char because int might match the return type of a gcc2
36389 builtin and then its argument prototype would still apply. */
36390char $ac_func ();
36391/* The GNU C library defines this for functions which it implements
36392 to always fail with ENOSYS. Some functions are actually named
36393 something starting with __ and the normal name is an alias. */
36394#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36395choke me
36396#else
36397char (*f) () = $ac_func;
36398#endif
36399#ifdef __cplusplus
36400}
36401#endif
36402
36403int
36404main ()
36405{
36406return f != $ac_func;
36407 ;
36408 return 0;
36409}
36410_ACEOF
36411rm -f conftest.$ac_objext conftest$ac_exeext
36412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36413 (eval $ac_link) 2>conftest.er1
a848cd7e 36414 ac_status=$?
ac1cb8d3
VS
36415 grep -v '^ *+' conftest.er1 >conftest.err
36416 rm -f conftest.er1
36417 cat conftest.err >&5
a848cd7e
SC
36418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36419 (exit $ac_status); } &&
fd5199d6 36420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36422 (eval $ac_try) 2>&5
36423 ac_status=$?
36424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36425 (exit $ac_status); }; } &&
36426 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36428 (eval $ac_try) 2>&5
36429 ac_status=$?
36430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36431 (exit $ac_status); }; }; then
36432 eval "$as_ac_var=yes"
36433else
36434 echo "$as_me: failed program was:" >&5
36435sed 's/^/| /' conftest.$ac_ext >&5
36436
36437eval "$as_ac_var=no"
36438fi
ac1cb8d3
VS
36439rm -f conftest.err conftest.$ac_objext \
36440 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36441fi
36442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36443echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36444if test `eval echo '${'$as_ac_var'}'` = yes; then
36445 cat >>confdefs.h <<_ACEOF
36446#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36447_ACEOF
36448
36449fi
36450done
36451
36452
36453 if test "$ac_cv_func_sigaction" = "no"; then
36454 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36455echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36456 wxUSE_ON_FATAL_EXCEPTION=no
36457 fi
36458
36459 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
36460 echo "$as_me:$LINENO: checking for sa_handler type" >&5
36461echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
36462if test "${wx_cv_type_sa_handler+set}" = set; then
36463 echo $ECHO_N "(cached) $ECHO_C" >&6
36464else
36465
9b8888f9
VZ
36466 ac_ext=cc
36467ac_cpp='$CXXCPP $CPPFLAGS'
36468ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36469ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36470ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36471
a848cd7e
SC
36472 cat >conftest.$ac_ext <<_ACEOF
36473/* confdefs.h. */
36474_ACEOF
36475cat confdefs.h >>conftest.$ac_ext
36476cat >>conftest.$ac_ext <<_ACEOF
36477/* end confdefs.h. */
36478#include <signal.h>
36479int
36480main ()
36481{
36482
36483 extern void testSigHandler(int);
36484
36485 struct sigaction sa;
36486 sa.sa_handler = testSigHandler;
36487
36488 ;
36489 return 0;
36490}
36491_ACEOF
36492rm -f conftest.$ac_objext
36493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36494 (eval $ac_compile) 2>conftest.er1
a848cd7e 36495 ac_status=$?
ac1cb8d3
VS
36496 grep -v '^ *+' conftest.er1 >conftest.err
36497 rm -f conftest.er1
36498 cat conftest.err >&5
a848cd7e
SC
36499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36500 (exit $ac_status); } &&
9b8888f9 36501 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36503 (eval $ac_try) 2>&5
36504 ac_status=$?
36505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36506 (exit $ac_status); }; } &&
36507 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36509 (eval $ac_try) 2>&5
36510 ac_status=$?
36511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36512 (exit $ac_status); }; }; then
36513
36514 wx_cv_type_sa_handler=int
36515
36516else
36517 echo "$as_me: failed program was:" >&5
36518sed 's/^/| /' conftest.$ac_ext >&5
36519
36520
36521 wx_cv_type_sa_handler=void
36522
36523fi
ac1cb8d3 36524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
36525 ac_ext=c
36526ac_cpp='$CPP $CPPFLAGS'
36527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36529ac_compiler_gnu=$ac_cv_c_compiler_gnu
36530
a848cd7e
SC
36531
36532fi
36533echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36534echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
36535
a848cd7e
SC
36536 cat >>confdefs.h <<_ACEOF
36537#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36538_ACEOF
36539
36540 fi
36541fi
36542
eaff0f0d 36543if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
36544 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36545echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
36546if test "${wx_cv_func_backtrace+set}" = set; then
36547 echo $ECHO_N "(cached) $ECHO_C" >&6
36548else
36549
9b8888f9
VZ
36550 ac_ext=cc
36551ac_cpp='$CXXCPP $CPPFLAGS'
36552ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36553ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36554ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36555
eaff0f0d
VZ
36556 cat >conftest.$ac_ext <<_ACEOF
36557/* confdefs.h. */
36558_ACEOF
36559cat confdefs.h >>conftest.$ac_ext
36560cat >>conftest.$ac_ext <<_ACEOF
36561/* end confdefs.h. */
36562#include <execinfo.h>
36563int
36564main ()
36565{
36566
36567 void *trace[1];
36568 char **messages;
36569
36570 backtrace(trace, 1);
36571 messages = backtrace_symbols(trace, 1);
36572
36573 ;
36574 return 0;
36575}
36576_ACEOF
36577rm -f conftest.$ac_objext
36578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36579 (eval $ac_compile) 2>conftest.er1
36580 ac_status=$?
36581 grep -v '^ *+' conftest.er1 >conftest.err
36582 rm -f conftest.er1
36583 cat conftest.err >&5
36584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36585 (exit $ac_status); } &&
9b8888f9 36586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
36587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36588 (eval $ac_try) 2>&5
36589 ac_status=$?
36590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36591 (exit $ac_status); }; } &&
36592 { ac_try='test -s conftest.$ac_objext'
36593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36594 (eval $ac_try) 2>&5
36595 ac_status=$?
36596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36597 (exit $ac_status); }; }; then
36598 wx_cv_func_backtrace=yes
36599else
36600 echo "$as_me: failed program was:" >&5
36601sed 's/^/| /' conftest.$ac_ext >&5
36602
36603wx_cv_func_backtrace=no
36604
36605fi
36606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
36607 ac_ext=c
36608ac_cpp='$CPP $CPPFLAGS'
36609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36611ac_compiler_gnu=$ac_cv_c_compiler_gnu
36612
eaff0f0d
VZ
36613
36614
36615fi
36616echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36617echo "${ECHO_T}$wx_cv_func_backtrace" >&6
36618
36619
36620 if test "$wx_cv_func_backtrace" = "no"; then
36621 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36622echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36623 wxUSE_STACKWALKER=no
36624 else
36625 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36626echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
36627if test "${wx_cv_func_cxa_demangle+set}" = set; then
36628 echo $ECHO_N "(cached) $ECHO_C" >&6
36629else
36630
9b8888f9
VZ
36631 ac_ext=cc
36632ac_cpp='$CXXCPP $CPPFLAGS'
36633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36636
eaff0f0d
VZ
36637 cat >conftest.$ac_ext <<_ACEOF
36638/* confdefs.h. */
36639_ACEOF
36640cat confdefs.h >>conftest.$ac_ext
36641cat >>conftest.$ac_ext <<_ACEOF
36642/* end confdefs.h. */
36643#include <cxxabi.h>
36644int
36645main ()
36646{
36647
36648 int rc;
36649 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36650
36651 ;
36652 return 0;
36653}
36654_ACEOF
dfe0c803
JS
36655rm -f conftest.$ac_objext conftest$ac_exeext
36656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36657 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
36658 ac_status=$?
36659 grep -v '^ *+' conftest.er1 >conftest.err
36660 rm -f conftest.er1
36661 cat conftest.err >&5
36662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36663 (exit $ac_status); } &&
9b8888f9 36664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
36665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36666 (eval $ac_try) 2>&5
36667 ac_status=$?
36668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36669 (exit $ac_status); }; } &&
dfe0c803 36670 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
36671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36672 (eval $ac_try) 2>&5
36673 ac_status=$?
36674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36675 (exit $ac_status); }; }; then
36676 wx_cv_func_cxa_demangle=yes
36677else
36678 echo "$as_me: failed program was:" >&5
36679sed 's/^/| /' conftest.$ac_ext >&5
36680
36681wx_cv_func_cxa_demangle=no
36682
36683fi
dfe0c803
JS
36684rm -f conftest.err conftest.$ac_objext \
36685 conftest$ac_exeext conftest.$ac_ext
9b8888f9
VZ
36686 ac_ext=c
36687ac_cpp='$CPP $CPPFLAGS'
36688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36690ac_compiler_gnu=$ac_cv_c_compiler_gnu
36691
eaff0f0d
VZ
36692
36693
36694fi
36695echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36696echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
36697
36698 if test "$wx_cv_func_cxa_demangle" = "yes"; then
36699 cat >>confdefs.h <<\_ACEOF
36700#define HAVE_CXA_DEMANGLE 1
36701_ACEOF
36702
36703 fi
36704 fi
eaff0f0d
VZ
36705fi
36706
898beab1
DE
36707if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
36708 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36709echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36710 wxUSE_STACKWALKER=no
36711fi
36712
36713
a848cd7e
SC
36714
36715
36716for ac_func in mkstemp mktemp
36717do
36718as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36719echo "$as_me:$LINENO: checking for $ac_func" >&5
36720echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36721if eval "test \"\${$as_ac_var+set}\" = set"; then
36722 echo $ECHO_N "(cached) $ECHO_C" >&6
36723else
36724 cat >conftest.$ac_ext <<_ACEOF
36725/* confdefs.h. */
36726_ACEOF
36727cat confdefs.h >>conftest.$ac_ext
36728cat >>conftest.$ac_ext <<_ACEOF
36729/* end confdefs.h. */
ac1cb8d3
VS
36730/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36732#define $ac_func innocuous_$ac_func
36733
a848cd7e
SC
36734/* System header to define __stub macros and hopefully few prototypes,
36735 which can conflict with char $ac_func (); below.
36736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36737 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36738
a848cd7e
SC
36739#ifdef __STDC__
36740# include <limits.h>
36741#else
36742# include <assert.h>
36743#endif
ac1cb8d3
VS
36744
36745#undef $ac_func
36746
a848cd7e
SC
36747/* Override any gcc2 internal prototype to avoid an error. */
36748#ifdef __cplusplus
36749extern "C"
36750{
36751#endif
36752/* We use char because int might match the return type of a gcc2
36753 builtin and then its argument prototype would still apply. */
36754char $ac_func ();
36755/* The GNU C library defines this for functions which it implements
36756 to always fail with ENOSYS. Some functions are actually named
36757 something starting with __ and the normal name is an alias. */
36758#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36759choke me
36760#else
36761char (*f) () = $ac_func;
36762#endif
36763#ifdef __cplusplus
36764}
36765#endif
36766
36767int
36768main ()
36769{
36770return f != $ac_func;
36771 ;
36772 return 0;
36773}
36774_ACEOF
36775rm -f conftest.$ac_objext conftest$ac_exeext
36776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36777 (eval $ac_link) 2>conftest.er1
a848cd7e 36778 ac_status=$?
ac1cb8d3
VS
36779 grep -v '^ *+' conftest.er1 >conftest.err
36780 rm -f conftest.er1
36781 cat conftest.err >&5
a848cd7e
SC
36782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36783 (exit $ac_status); } &&
fd5199d6 36784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36786 (eval $ac_try) 2>&5
36787 ac_status=$?
36788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36789 (exit $ac_status); }; } &&
36790 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36792 (eval $ac_try) 2>&5
36793 ac_status=$?
36794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36795 (exit $ac_status); }; }; then
36796 eval "$as_ac_var=yes"
36797else
36798 echo "$as_me: failed program was:" >&5
36799sed 's/^/| /' conftest.$ac_ext >&5
36800
36801eval "$as_ac_var=no"
36802fi
ac1cb8d3
VS
36803rm -f conftest.err conftest.$ac_objext \
36804 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36805fi
36806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36807echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36808if test `eval echo '${'$as_ac_var'}'` = yes; then
36809 cat >>confdefs.h <<_ACEOF
36810#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36811_ACEOF
36812 break
36813fi
36814done
36815
36816
36817echo "$as_me:$LINENO: checking for statfs" >&5
36818echo $ECHO_N "checking for statfs... $ECHO_C" >&6
36819if test "${wx_cv_func_statfs+set}" = set; then
36820 echo $ECHO_N "(cached) $ECHO_C" >&6
36821else
36822 cat >conftest.$ac_ext <<_ACEOF
36823/* confdefs.h. */
36824_ACEOF
36825cat confdefs.h >>conftest.$ac_ext
36826cat >>conftest.$ac_ext <<_ACEOF
36827/* end confdefs.h. */
36828
36829 #if defined(__BSD__)
84ae7ca4
VZ
36830 #include <sys/param.h>
36831 #include <sys/mount.h>
a848cd7e 36832 #else
84ae7ca4 36833 #include <sys/vfs.h>
a848cd7e
SC
36834 #endif
36835
36836int
36837main ()
36838{
36839
36840 long l;
36841 struct statfs fs;
36842 statfs("/", &fs);
36843 l = fs.f_bsize;
36844 l += fs.f_blocks;
36845 l += fs.f_bavail;
36846
36847 ;
36848 return 0;
36849}
36850_ACEOF
36851rm -f conftest.$ac_objext
36852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36853 (eval $ac_compile) 2>conftest.er1
a848cd7e 36854 ac_status=$?
ac1cb8d3
VS
36855 grep -v '^ *+' conftest.er1 >conftest.err
36856 rm -f conftest.er1
36857 cat conftest.err >&5
a848cd7e
SC
36858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36859 (exit $ac_status); } &&
fd5199d6 36860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36862 (eval $ac_try) 2>&5
36863 ac_status=$?
36864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36865 (exit $ac_status); }; } &&
36866 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36868 (eval $ac_try) 2>&5
36869 ac_status=$?
36870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36871 (exit $ac_status); }; }; then
84ae7ca4 36872 wx_cv_func_statfs=yes
a848cd7e
SC
36873else
36874 echo "$as_me: failed program was:" >&5
36875sed 's/^/| /' conftest.$ac_ext >&5
36876
84ae7ca4 36877wx_cv_func_statfs=no
a848cd7e
SC
36878
36879fi
ac1cb8d3 36880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36881
36882fi
36883echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36884echo "${ECHO_T}$wx_cv_func_statfs" >&6
36885
36886if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 36887 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
36888echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
36889if test "${wx_cv_func_statfs_decl+set}" = set; then
36890 echo $ECHO_N "(cached) $ECHO_C" >&6
36891else
9b8888f9
VZ
36892 ac_ext=cc
36893ac_cpp='$CXXCPP $CPPFLAGS'
36894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36897
36898 cat >conftest.$ac_ext <<_ACEOF
0683aca6
VZ
36899/* confdefs.h. */
36900_ACEOF
36901cat confdefs.h >>conftest.$ac_ext
36902cat >>conftest.$ac_ext <<_ACEOF
36903/* end confdefs.h. */
84ae7ca4 36904
0683aca6
VZ
36905 #if defined(__BSD__)
36906 #include <sys/param.h>
36907 #include <sys/mount.h>
36908 #else
36909 #include <sys/vfs.h>
36910 #endif
36911
36912int
36913main ()
36914{
36915
36916 struct statfs fs;
36917 statfs("", &fs);
36918
36919 ;
36920 return 0;
36921}
36922_ACEOF
36923rm -f conftest.$ac_objext
36924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36925 (eval $ac_compile) 2>conftest.er1
36926 ac_status=$?
36927 grep -v '^ *+' conftest.er1 >conftest.err
36928 rm -f conftest.er1
36929 cat conftest.err >&5
36930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36931 (exit $ac_status); } &&
9b8888f9 36932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
36933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36934 (eval $ac_try) 2>&5
36935 ac_status=$?
36936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36937 (exit $ac_status); }; } &&
36938 { ac_try='test -s conftest.$ac_objext'
36939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36940 (eval $ac_try) 2>&5
36941 ac_status=$?
36942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943 (exit $ac_status); }; }; then
36944 wx_cv_func_statfs_decl=yes
36945else
36946 echo "$as_me: failed program was:" >&5
36947sed 's/^/| /' conftest.$ac_ext >&5
36948
36949wx_cv_func_statfs_decl=no
36950
36951fi
36952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
36953 ac_ext=c
36954ac_cpp='$CPP $CPPFLAGS'
36955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36957ac_compiler_gnu=$ac_cv_c_compiler_gnu
36958
84ae7ca4
VZ
36959
36960fi
36961echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36962echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
36963
36964 if test "$wx_cv_func_statfs_decl" = "yes"; then
36965 cat >>confdefs.h <<\_ACEOF
36966#define HAVE_STATFS_DECL 1
36967_ACEOF
36968
36969 fi
36970
a848cd7e
SC
36971 wx_cv_type_statvfs_t="struct statfs"
36972 cat >>confdefs.h <<\_ACEOF
36973#define HAVE_STATFS 1
36974_ACEOF
36975
36976else
36977 echo "$as_me:$LINENO: checking for statvfs" >&5
36978echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
36979if test "${wx_cv_func_statvfs+set}" = set; then
36980 echo $ECHO_N "(cached) $ECHO_C" >&6
36981else
36982 cat >conftest.$ac_ext <<_ACEOF
36983/* confdefs.h. */
36984_ACEOF
36985cat confdefs.h >>conftest.$ac_ext
36986cat >>conftest.$ac_ext <<_ACEOF
36987/* end confdefs.h. */
36988
36989 #include <stddef.h>
36990 #include <sys/statvfs.h>
36991
36992int
36993main ()
36994{
36995
36996 statvfs("/", NULL);
36997
36998 ;
36999 return 0;
37000}
37001_ACEOF
37002rm -f conftest.$ac_objext
37003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37004 (eval $ac_compile) 2>conftest.er1
a848cd7e 37005 ac_status=$?
ac1cb8d3
VS
37006 grep -v '^ *+' conftest.er1 >conftest.err
37007 rm -f conftest.er1
37008 cat conftest.err >&5
a848cd7e
SC
37009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010 (exit $ac_status); } &&
fd5199d6 37011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37013 (eval $ac_try) 2>&5
37014 ac_status=$?
37015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37016 (exit $ac_status); }; } &&
37017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37019 (eval $ac_try) 2>&5
37020 ac_status=$?
37021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37022 (exit $ac_status); }; }; then
37023 wx_cv_func_statvfs=yes
37024else
37025 echo "$as_me: failed program was:" >&5
37026sed 's/^/| /' conftest.$ac_ext >&5
37027
37028wx_cv_func_statvfs=no
37029
37030fi
ac1cb8d3 37031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37032
37033fi
37034echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37035echo "${ECHO_T}$wx_cv_func_statvfs" >&6
37036
37037 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 37038 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
37039echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
37040if test "${wx_cv_type_statvfs_t+set}" = set; then
37041 echo $ECHO_N "(cached) $ECHO_C" >&6
37042else
9b8888f9
VZ
37043 ac_ext=cc
37044ac_cpp='$CXXCPP $CPPFLAGS'
37045ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37046ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37047ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37048
37049 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
37050/* confdefs.h. */
37051_ACEOF
37052cat confdefs.h >>conftest.$ac_ext
37053cat >>conftest.$ac_ext <<_ACEOF
37054/* end confdefs.h. */
37055
37056 #include <sys/statvfs.h>
37057
37058int
37059main ()
37060{
37061
37062 long l;
37063 statvfs_t fs;
37064 statvfs("/", &fs);
37065 l = fs.f_bsize;
37066 l += fs.f_blocks;
37067 l += fs.f_bavail;
37068
37069 ;
37070 return 0;
37071}
37072_ACEOF
37073rm -f conftest.$ac_objext
37074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37075 (eval $ac_compile) 2>conftest.er1
a848cd7e 37076 ac_status=$?
ac1cb8d3
VS
37077 grep -v '^ *+' conftest.er1 >conftest.err
37078 rm -f conftest.er1
37079 cat conftest.err >&5
a848cd7e
SC
37080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37081 (exit $ac_status); } &&
9b8888f9 37082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37084 (eval $ac_try) 2>&5
37085 ac_status=$?
37086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37087 (exit $ac_status); }; } &&
37088 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37090 (eval $ac_try) 2>&5
37091 ac_status=$?
37092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37093 (exit $ac_status); }; }; then
37094 wx_cv_type_statvfs_t=statvfs_t
37095else
37096 echo "$as_me: failed program was:" >&5
37097sed 's/^/| /' conftest.$ac_ext >&5
37098
37099
37100 cat >conftest.$ac_ext <<_ACEOF
37101/* confdefs.h. */
37102_ACEOF
37103cat confdefs.h >>conftest.$ac_ext
37104cat >>conftest.$ac_ext <<_ACEOF
37105/* end confdefs.h. */
37106
37107 #include <sys/statvfs.h>
37108
37109int
37110main ()
37111{
37112
37113 long l;
37114 struct statvfs fs;
37115 statvfs("/", &fs);
37116 l = fs.f_bsize;
37117 l += fs.f_blocks;
37118 l += fs.f_bavail;
37119
37120 ;
37121 return 0;
37122}
37123_ACEOF
37124rm -f conftest.$ac_objext
37125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37126 (eval $ac_compile) 2>conftest.er1
a848cd7e 37127 ac_status=$?
ac1cb8d3
VS
37128 grep -v '^ *+' conftest.er1 >conftest.err
37129 rm -f conftest.er1
37130 cat conftest.err >&5
a848cd7e
SC
37131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37132 (exit $ac_status); } &&
9b8888f9 37133 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37135 (eval $ac_try) 2>&5
37136 ac_status=$?
37137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37138 (exit $ac_status); }; } &&
37139 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37141 (eval $ac_try) 2>&5
37142 ac_status=$?
37143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37144 (exit $ac_status); }; }; then
37145 wx_cv_type_statvfs_t="struct statvfs"
37146else
37147 echo "$as_me: failed program was:" >&5
37148sed 's/^/| /' conftest.$ac_ext >&5
37149
37150wx_cv_type_statvfs_t="unknown"
37151
37152fi
ac1cb8d3 37153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37154
37155
37156fi
ac1cb8d3 37157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
37158 ac_ext=c
37159ac_cpp='$CPP $CPPFLAGS'
37160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37162ac_compiler_gnu=$ac_cv_c_compiler_gnu
37163
a848cd7e
SC
37164
37165fi
37166echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37167echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
37168
a848cd7e
SC
37169 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37170 cat >>confdefs.h <<\_ACEOF
37171#define HAVE_STATVFS 1
37172_ACEOF
37173
37174 fi
37175 else
37176 wx_cv_type_statvfs_t="unknown"
37177 fi
37178fi
37179
37180if test "$wx_cv_type_statvfs_t" != "unknown"; then
37181 cat >>confdefs.h <<_ACEOF
37182#define WX_STATFS_T $wx_cv_type_statvfs_t
37183_ACEOF
37184
37185else
37186 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37187echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37188fi
37189
37190if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37191
37192
37193for ac_func in fcntl flock
37194do
37195as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37196echo "$as_me:$LINENO: checking for $ac_func" >&5
37197echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37198if eval "test \"\${$as_ac_var+set}\" = set"; then
37199 echo $ECHO_N "(cached) $ECHO_C" >&6
37200else
37201 cat >conftest.$ac_ext <<_ACEOF
37202/* confdefs.h. */
37203_ACEOF
37204cat confdefs.h >>conftest.$ac_ext
37205cat >>conftest.$ac_ext <<_ACEOF
37206/* end confdefs.h. */
ac1cb8d3
VS
37207/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37209#define $ac_func innocuous_$ac_func
37210
a848cd7e
SC
37211/* System header to define __stub macros and hopefully few prototypes,
37212 which can conflict with char $ac_func (); below.
37213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37214 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37215
a848cd7e
SC
37216#ifdef __STDC__
37217# include <limits.h>
37218#else
37219# include <assert.h>
37220#endif
ac1cb8d3
VS
37221
37222#undef $ac_func
37223
a848cd7e
SC
37224/* Override any gcc2 internal prototype to avoid an error. */
37225#ifdef __cplusplus
37226extern "C"
37227{
37228#endif
37229/* We use char because int might match the return type of a gcc2
37230 builtin and then its argument prototype would still apply. */
37231char $ac_func ();
37232/* The GNU C library defines this for functions which it implements
37233 to always fail with ENOSYS. Some functions are actually named
37234 something starting with __ and the normal name is an alias. */
37235#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37236choke me
37237#else
37238char (*f) () = $ac_func;
37239#endif
37240#ifdef __cplusplus
37241}
37242#endif
37243
37244int
37245main ()
37246{
37247return f != $ac_func;
37248 ;
37249 return 0;
37250}
37251_ACEOF
37252rm -f conftest.$ac_objext conftest$ac_exeext
37253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37254 (eval $ac_link) 2>conftest.er1
a848cd7e 37255 ac_status=$?
ac1cb8d3
VS
37256 grep -v '^ *+' conftest.er1 >conftest.err
37257 rm -f conftest.er1
37258 cat conftest.err >&5
a848cd7e
SC
37259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37260 (exit $ac_status); } &&
fd5199d6 37261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37263 (eval $ac_try) 2>&5
37264 ac_status=$?
37265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37266 (exit $ac_status); }; } &&
37267 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37269 (eval $ac_try) 2>&5
37270 ac_status=$?
37271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37272 (exit $ac_status); }; }; then
37273 eval "$as_ac_var=yes"
37274else
37275 echo "$as_me: failed program was:" >&5
37276sed 's/^/| /' conftest.$ac_ext >&5
37277
37278eval "$as_ac_var=no"
37279fi
ac1cb8d3
VS
37280rm -f conftest.err conftest.$ac_objext \
37281 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37282fi
37283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37284echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37285if test `eval echo '${'$as_ac_var'}'` = yes; then
37286 cat >>confdefs.h <<_ACEOF
37287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37288_ACEOF
37289 break
37290fi
37291done
37292
37293
37294 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37295 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37296echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37297 wxUSE_SNGLINST_CHECKER=no
37298 fi
37299fi
37300
37301
37302for ac_func in timegm
37303do
37304as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37305echo "$as_me:$LINENO: checking for $ac_func" >&5
37306echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37307if eval "test \"\${$as_ac_var+set}\" = set"; then
37308 echo $ECHO_N "(cached) $ECHO_C" >&6
37309else
37310 cat >conftest.$ac_ext <<_ACEOF
37311/* confdefs.h. */
37312_ACEOF
37313cat confdefs.h >>conftest.$ac_ext
37314cat >>conftest.$ac_ext <<_ACEOF
37315/* end confdefs.h. */
ac1cb8d3
VS
37316/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37318#define $ac_func innocuous_$ac_func
37319
a848cd7e
SC
37320/* System header to define __stub macros and hopefully few prototypes,
37321 which can conflict with char $ac_func (); below.
37322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37323 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37324
a848cd7e
SC
37325#ifdef __STDC__
37326# include <limits.h>
37327#else
37328# include <assert.h>
37329#endif
ac1cb8d3
VS
37330
37331#undef $ac_func
37332
a848cd7e
SC
37333/* Override any gcc2 internal prototype to avoid an error. */
37334#ifdef __cplusplus
37335extern "C"
37336{
37337#endif
37338/* We use char because int might match the return type of a gcc2
37339 builtin and then its argument prototype would still apply. */
37340char $ac_func ();
37341/* The GNU C library defines this for functions which it implements
37342 to always fail with ENOSYS. Some functions are actually named
37343 something starting with __ and the normal name is an alias. */
37344#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37345choke me
37346#else
37347char (*f) () = $ac_func;
37348#endif
37349#ifdef __cplusplus
37350}
37351#endif
37352
37353int
37354main ()
37355{
37356return f != $ac_func;
37357 ;
37358 return 0;
37359}
37360_ACEOF
37361rm -f conftest.$ac_objext conftest$ac_exeext
37362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37363 (eval $ac_link) 2>conftest.er1
a848cd7e 37364 ac_status=$?
ac1cb8d3
VS
37365 grep -v '^ *+' conftest.er1 >conftest.err
37366 rm -f conftest.er1
37367 cat conftest.err >&5
a848cd7e
SC
37368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37369 (exit $ac_status); } &&
fd5199d6 37370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37372 (eval $ac_try) 2>&5
37373 ac_status=$?
37374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37375 (exit $ac_status); }; } &&
37376 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37378 (eval $ac_try) 2>&5
37379 ac_status=$?
37380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37381 (exit $ac_status); }; }; then
37382 eval "$as_ac_var=yes"
37383else
37384 echo "$as_me: failed program was:" >&5
37385sed 's/^/| /' conftest.$ac_ext >&5
37386
37387eval "$as_ac_var=no"
37388fi
ac1cb8d3
VS
37389rm -f conftest.err conftest.$ac_objext \
37390 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37391fi
37392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37393echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37394if test `eval echo '${'$as_ac_var'}'` = yes; then
37395 cat >>confdefs.h <<_ACEOF
37396#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37397_ACEOF
37398
37399fi
37400done
37401
37402
37403
37404
37405for ac_func in putenv setenv
37406do
37407as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37408echo "$as_me:$LINENO: checking for $ac_func" >&5
37409echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37410if eval "test \"\${$as_ac_var+set}\" = set"; then
37411 echo $ECHO_N "(cached) $ECHO_C" >&6
37412else
37413 cat >conftest.$ac_ext <<_ACEOF
37414/* confdefs.h. */
37415_ACEOF
37416cat confdefs.h >>conftest.$ac_ext
37417cat >>conftest.$ac_ext <<_ACEOF
37418/* end confdefs.h. */
ac1cb8d3
VS
37419/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37421#define $ac_func innocuous_$ac_func
37422
a848cd7e
SC
37423/* System header to define __stub macros and hopefully few prototypes,
37424 which can conflict with char $ac_func (); below.
37425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37426 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37427
a848cd7e
SC
37428#ifdef __STDC__
37429# include <limits.h>
37430#else
37431# include <assert.h>
37432#endif
ac1cb8d3
VS
37433
37434#undef $ac_func
37435
a848cd7e
SC
37436/* Override any gcc2 internal prototype to avoid an error. */
37437#ifdef __cplusplus
37438extern "C"
37439{
37440#endif
37441/* We use char because int might match the return type of a gcc2
37442 builtin and then its argument prototype would still apply. */
37443char $ac_func ();
37444/* The GNU C library defines this for functions which it implements
37445 to always fail with ENOSYS. Some functions are actually named
37446 something starting with __ and the normal name is an alias. */
37447#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37448choke me
37449#else
37450char (*f) () = $ac_func;
37451#endif
37452#ifdef __cplusplus
37453}
37454#endif
37455
37456int
37457main ()
37458{
37459return f != $ac_func;
37460 ;
37461 return 0;
37462}
37463_ACEOF
37464rm -f conftest.$ac_objext conftest$ac_exeext
37465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37466 (eval $ac_link) 2>conftest.er1
a848cd7e 37467 ac_status=$?
ac1cb8d3
VS
37468 grep -v '^ *+' conftest.er1 >conftest.err
37469 rm -f conftest.er1
37470 cat conftest.err >&5
a848cd7e
SC
37471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37472 (exit $ac_status); } &&
fd5199d6 37473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37475 (eval $ac_try) 2>&5
37476 ac_status=$?
37477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37478 (exit $ac_status); }; } &&
37479 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37481 (eval $ac_try) 2>&5
37482 ac_status=$?
37483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37484 (exit $ac_status); }; }; then
37485 eval "$as_ac_var=yes"
37486else
37487 echo "$as_me: failed program was:" >&5
37488sed 's/^/| /' conftest.$ac_ext >&5
37489
37490eval "$as_ac_var=no"
37491fi
ac1cb8d3
VS
37492rm -f conftest.err conftest.$ac_objext \
37493 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37494fi
37495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37496echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37497if test `eval echo '${'$as_ac_var'}'` = yes; then
37498 cat >>confdefs.h <<_ACEOF
37499#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37500_ACEOF
37501 break
37502fi
37503done
37504
37505
37506HAVE_SOME_SLEEP_FUNC=0
37507if test "$USE_BEOS" = 1; then
37508 cat >>confdefs.h <<\_ACEOF
37509#define HAVE_SLEEP 1
37510_ACEOF
37511
37512 HAVE_SOME_SLEEP_FUNC=1
37513fi
37514
37515if test "$USE_DARWIN" = 1; then
37516 cat >>confdefs.h <<\_ACEOF
37517#define HAVE_USLEEP 1
37518_ACEOF
37519
37520 HAVE_SOME_SLEEP_FUNC=1
37521fi
37522
37523if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37524 POSIX4_LINK=
37525
37526for ac_func in nanosleep
37527do
37528as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37529echo "$as_me:$LINENO: checking for $ac_func" >&5
37530echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37531if eval "test \"\${$as_ac_var+set}\" = set"; then
37532 echo $ECHO_N "(cached) $ECHO_C" >&6
37533else
37534 cat >conftest.$ac_ext <<_ACEOF
37535/* confdefs.h. */
37536_ACEOF
37537cat confdefs.h >>conftest.$ac_ext
37538cat >>conftest.$ac_ext <<_ACEOF
37539/* end confdefs.h. */
ac1cb8d3
VS
37540/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37542#define $ac_func innocuous_$ac_func
37543
a848cd7e
SC
37544/* System header to define __stub macros and hopefully few prototypes,
37545 which can conflict with char $ac_func (); below.
37546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37547 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37548
a848cd7e
SC
37549#ifdef __STDC__
37550# include <limits.h>
37551#else
37552# include <assert.h>
37553#endif
ac1cb8d3
VS
37554
37555#undef $ac_func
37556
a848cd7e
SC
37557/* Override any gcc2 internal prototype to avoid an error. */
37558#ifdef __cplusplus
37559extern "C"
37560{
37561#endif
37562/* We use char because int might match the return type of a gcc2
37563 builtin and then its argument prototype would still apply. */
37564char $ac_func ();
37565/* The GNU C library defines this for functions which it implements
37566 to always fail with ENOSYS. Some functions are actually named
37567 something starting with __ and the normal name is an alias. */
37568#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37569choke me
37570#else
37571char (*f) () = $ac_func;
37572#endif
37573#ifdef __cplusplus
37574}
37575#endif
37576
37577int
37578main ()
37579{
37580return f != $ac_func;
37581 ;
37582 return 0;
37583}
37584_ACEOF
37585rm -f conftest.$ac_objext conftest$ac_exeext
37586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37587 (eval $ac_link) 2>conftest.er1
a848cd7e 37588 ac_status=$?
ac1cb8d3
VS
37589 grep -v '^ *+' conftest.er1 >conftest.err
37590 rm -f conftest.er1
37591 cat conftest.err >&5
a848cd7e
SC
37592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37593 (exit $ac_status); } &&
fd5199d6 37594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37596 (eval $ac_try) 2>&5
37597 ac_status=$?
37598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37599 (exit $ac_status); }; } &&
37600 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37602 (eval $ac_try) 2>&5
37603 ac_status=$?
37604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37605 (exit $ac_status); }; }; then
37606 eval "$as_ac_var=yes"
37607else
37608 echo "$as_me: failed program was:" >&5
37609sed 's/^/| /' conftest.$ac_ext >&5
37610
37611eval "$as_ac_var=no"
37612fi
ac1cb8d3
VS
37613rm -f conftest.err conftest.$ac_objext \
37614 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37615fi
37616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37617echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37618if test `eval echo '${'$as_ac_var'}'` = yes; then
37619 cat >>confdefs.h <<_ACEOF
37620#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37621_ACEOF
37622 cat >>confdefs.h <<\_ACEOF
37623#define HAVE_NANOSLEEP 1
37624_ACEOF
37625
37626else
37627
37628 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37629echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
37630if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37631 echo $ECHO_N "(cached) $ECHO_C" >&6
37632else
37633 ac_check_lib_save_LIBS=$LIBS
37634LIBS="-lposix4 $LIBS"
37635cat >conftest.$ac_ext <<_ACEOF
37636/* confdefs.h. */
37637_ACEOF
37638cat confdefs.h >>conftest.$ac_ext
37639cat >>conftest.$ac_ext <<_ACEOF
37640/* end confdefs.h. */
37641
37642/* Override any gcc2 internal prototype to avoid an error. */
37643#ifdef __cplusplus
37644extern "C"
37645#endif
37646/* We use char because int might match the return type of a gcc2
37647 builtin and then its argument prototype would still apply. */
37648char nanosleep ();
37649int
37650main ()
37651{
37652nanosleep ();
37653 ;
37654 return 0;
37655}
37656_ACEOF
37657rm -f conftest.$ac_objext conftest$ac_exeext
37658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37659 (eval $ac_link) 2>conftest.er1
a848cd7e 37660 ac_status=$?
ac1cb8d3
VS
37661 grep -v '^ *+' conftest.er1 >conftest.err
37662 rm -f conftest.er1
37663 cat conftest.err >&5
a848cd7e
SC
37664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37665 (exit $ac_status); } &&
fd5199d6 37666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37668 (eval $ac_try) 2>&5
37669 ac_status=$?
37670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671 (exit $ac_status); }; } &&
37672 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37674 (eval $ac_try) 2>&5
37675 ac_status=$?
37676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37677 (exit $ac_status); }; }; then
37678 ac_cv_lib_posix4_nanosleep=yes
37679else
37680 echo "$as_me: failed program was:" >&5
37681sed 's/^/| /' conftest.$ac_ext >&5
37682
37683ac_cv_lib_posix4_nanosleep=no
37684fi
ac1cb8d3
VS
37685rm -f conftest.err conftest.$ac_objext \
37686 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37687LIBS=$ac_check_lib_save_LIBS
37688fi
37689echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37690echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
37691if test $ac_cv_lib_posix4_nanosleep = yes; then
37692
37693 cat >>confdefs.h <<\_ACEOF
37694#define HAVE_NANOSLEEP 1
37695_ACEOF
37696
37697 POSIX4_LINK=" -lposix4"
37698
37699else
37700
37701
fd5199d6
VZ
37702 for wx_func in usleep
37703 do
37704 echo "$as_me:$LINENO: checking for $wx_func" >&5
37705echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37706if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
37707 echo $ECHO_N "(cached) $ECHO_C" >&6
37708else
fd5199d6
VZ
37709
37710 cat >conftest.$ac_ext <<_ACEOF
37711
37712 /* confdefs.h. */
a848cd7e
SC
37713_ACEOF
37714cat confdefs.h >>conftest.$ac_ext
37715cat >>conftest.$ac_ext <<_ACEOF
37716/* end confdefs.h. */
ac1cb8d3 37717
ac1cb8d3 37718
fd5199d6 37719 $ac_includes_default
a848cd7e
SC
37720
37721int
37722main ()
37723{
fd5199d6
VZ
37724
37725 #ifndef $wx_func
37726 &$wx_func;
37727 #endif
37728
37729
a848cd7e
SC
37730 ;
37731 return 0;
37732}
fd5199d6 37733
a848cd7e
SC
37734_ACEOF
37735rm -f conftest.$ac_objext conftest$ac_exeext
37736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37737 (eval $ac_link) 2>conftest.er1
a848cd7e 37738 ac_status=$?
ac1cb8d3
VS
37739 grep -v '^ *+' conftest.er1 >conftest.err
37740 rm -f conftest.er1
37741 cat conftest.err >&5
a848cd7e
SC
37742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37743 (exit $ac_status); } &&
fd5199d6 37744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37746 (eval $ac_try) 2>&5
37747 ac_status=$?
37748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37749 (exit $ac_status); }; } &&
37750 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37752 (eval $ac_try) 2>&5
37753 ac_status=$?
37754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37755 (exit $ac_status); }; }; then
fd5199d6 37756 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
37757else
37758 echo "$as_me: failed program was:" >&5
37759sed 's/^/| /' conftest.$ac_ext >&5
37760
fd5199d6 37761eval wx_cv_func_$wx_func=no
a848cd7e 37762fi
ac1cb8d3
VS
37763rm -f conftest.err conftest.$ac_objext \
37764 conftest$ac_exeext conftest.$ac_ext
fd5199d6 37765
a848cd7e 37766fi
fd5199d6
VZ
37767echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
37768echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
37769
37770 if eval test \$wx_cv_func_$wx_func = yes
37771 then
37772 cat >>confdefs.h <<_ACEOF
37773#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
a848cd7e
SC
37774_ACEOF
37775
fd5199d6
VZ
37776
37777 else
37778 :
37779 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
a848cd7e
SC
37780echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37781
fd5199d6
VZ
37782 fi
37783 done
a848cd7e
SC
37784
37785
37786
37787fi
37788
37789
37790
37791fi
37792done
37793
37794fi
37795
37796
9b8888f9
VZ
37797 for wx_func in uname
37798 do
37799 echo "$as_me:$LINENO: checking for $wx_func" >&5
37800echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37801if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
37802 echo $ECHO_N "(cached) $ECHO_C" >&6
37803else
37804
37805 cat >conftest.$ac_ext <<_ACEOF
37806
37807 /* confdefs.h. */
37808_ACEOF
37809cat confdefs.h >>conftest.$ac_ext
37810cat >>conftest.$ac_ext <<_ACEOF
37811/* end confdefs.h. */
37812
37813 #include <sys/utsname.h>
37814 $ac_includes_default
37815
37816int
37817main ()
37818{
37819
37820 #ifndef $wx_func
37821 &$wx_func;
37822 #endif
37823
37824
37825 ;
37826 return 0;
37827}
37828
37829_ACEOF
37830rm -f conftest.$ac_objext conftest$ac_exeext
37831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37832 (eval $ac_link) 2>conftest.er1
37833 ac_status=$?
37834 grep -v '^ *+' conftest.er1 >conftest.err
37835 rm -f conftest.er1
37836 cat conftest.err >&5
37837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37838 (exit $ac_status); } &&
37839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37841 (eval $ac_try) 2>&5
37842 ac_status=$?
37843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37844 (exit $ac_status); }; } &&
37845 { ac_try='test -s conftest$ac_exeext'
37846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37847 (eval $ac_try) 2>&5
37848 ac_status=$?
37849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37850 (exit $ac_status); }; }; then
37851 eval wx_cv_func_$wx_func=yes
37852else
37853 echo "$as_me: failed program was:" >&5
37854sed 's/^/| /' conftest.$ac_ext >&5
37855
37856eval wx_cv_func_$wx_func=no
37857fi
37858rm -f conftest.err conftest.$ac_objext \
37859 conftest$ac_exeext conftest.$ac_ext
37860
37861fi
37862echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
37863echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
37864
37865 if eval test \$wx_cv_func_$wx_func = yes
37866 then
37867 cat >>confdefs.h <<_ACEOF
37868#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
37869_ACEOF
37870
37871
37872 else
37873 :
37874
37875 fi
37876 done
37877
37878if test "$wx_cv_func_uname" != yes; then
37879
37880 for wx_func in gethostname
fd5199d6
VZ
37881 do
37882 echo "$as_me:$LINENO: checking for $wx_func" >&5
37883echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37884if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
37885 echo $ECHO_N "(cached) $ECHO_C" >&6
37886else
fd5199d6
VZ
37887
37888 cat >conftest.$ac_ext <<_ACEOF
37889
37890 /* confdefs.h. */
a848cd7e
SC
37891_ACEOF
37892cat confdefs.h >>conftest.$ac_ext
37893cat >>conftest.$ac_ext <<_ACEOF
37894/* end confdefs.h. */
ac1cb8d3 37895
ac1cb8d3 37896
fd5199d6 37897 $ac_includes_default
a848cd7e
SC
37898
37899int
37900main ()
37901{
fd5199d6
VZ
37902
37903 #ifndef $wx_func
37904 &$wx_func;
37905 #endif
37906
37907
a848cd7e
SC
37908 ;
37909 return 0;
37910}
fd5199d6 37911
a848cd7e
SC
37912_ACEOF
37913rm -f conftest.$ac_objext conftest$ac_exeext
37914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37915 (eval $ac_link) 2>conftest.er1
a848cd7e 37916 ac_status=$?
ac1cb8d3
VS
37917 grep -v '^ *+' conftest.er1 >conftest.err
37918 rm -f conftest.er1
37919 cat conftest.err >&5
a848cd7e
SC
37920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37921 (exit $ac_status); } &&
fd5199d6 37922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37924 (eval $ac_try) 2>&5
37925 ac_status=$?
37926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37927 (exit $ac_status); }; } &&
37928 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37930 (eval $ac_try) 2>&5
37931 ac_status=$?
37932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37933 (exit $ac_status); }; }; then
fd5199d6 37934 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
37935else
37936 echo "$as_me: failed program was:" >&5
37937sed 's/^/| /' conftest.$ac_ext >&5
37938
fd5199d6 37939eval wx_cv_func_$wx_func=no
a848cd7e 37940fi
ac1cb8d3
VS
37941rm -f conftest.err conftest.$ac_objext \
37942 conftest$ac_exeext conftest.$ac_ext
fd5199d6 37943
a848cd7e 37944fi
fd5199d6
VZ
37945echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
37946echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
37947
37948 if eval test \$wx_cv_func_$wx_func = yes
37949 then
37950 cat >>confdefs.h <<_ACEOF
37951#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
a848cd7e 37952_ACEOF
fd5199d6 37953
9b8888f9 37954
fd5199d6
VZ
37955 else
37956 :
37957
37958 fi
37959 done
a848cd7e 37960
9b8888f9 37961fi
a848cd7e 37962
56632e81
MW
37963
37964 for wx_func in strtok_r
37965 do
37966 echo "$as_me:$LINENO: checking for $wx_func" >&5
37967echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37968if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
37969 echo $ECHO_N "(cached) $ECHO_C" >&6
37970else
56632e81
MW
37971
37972 cat >conftest.$ac_ext <<_ACEOF
37973
37974 /* confdefs.h. */
a848cd7e
SC
37975_ACEOF
37976cat confdefs.h >>conftest.$ac_ext
37977cat >>conftest.$ac_ext <<_ACEOF
37978/* end confdefs.h. */
56632e81
MW
37979
37980 #define _REENTRANT
37981 $ac_includes_default
37982
a848cd7e
SC
37983int
37984main ()
37985{
56632e81
MW
37986
37987 #ifndef $wx_func
37988 &$wx_func;
37989 #endif
37990
5acfd58d 37991
a848cd7e
SC
37992 ;
37993 return 0;
37994}
56632e81 37995
a848cd7e 37996_ACEOF
56632e81
MW
37997rm -f conftest.$ac_objext conftest$ac_exeext
37998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37999 (eval $ac_link) 2>conftest.er1
a848cd7e 38000 ac_status=$?
ac1cb8d3
VS
38001 grep -v '^ *+' conftest.er1 >conftest.err
38002 rm -f conftest.er1
38003 cat conftest.err >&5
a848cd7e
SC
38004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38005 (exit $ac_status); } &&
fd5199d6 38006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38008 (eval $ac_try) 2>&5
38009 ac_status=$?
38010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38011 (exit $ac_status); }; } &&
56632e81 38012 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38014 (eval $ac_try) 2>&5
38015 ac_status=$?
38016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38017 (exit $ac_status); }; }; then
56632e81 38018 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
38019else
38020 echo "$as_me: failed program was:" >&5
38021sed 's/^/| /' conftest.$ac_ext >&5
38022
56632e81 38023eval wx_cv_func_$wx_func=no
a848cd7e 38024fi
56632e81
MW
38025rm -f conftest.err conftest.$ac_objext \
38026 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38027
56632e81
MW
38028fi
38029echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38030echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
a848cd7e 38031
56632e81
MW
38032 if eval test \$wx_cv_func_$wx_func = yes
38033 then
38034 cat >>confdefs.h <<_ACEOF
38035#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
82a2636b
MW
38036_ACEOF
38037
38038
56632e81
MW
38039 else
38040 :
5acfd58d 38041
56632e81
MW
38042 fi
38043 done
5acfd58d 38044
a848cd7e 38045
a848cd7e
SC
38046INET_LINK=
38047
38048for ac_func in inet_addr
38049do
38050as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38051echo "$as_me:$LINENO: checking for $ac_func" >&5
38052echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38053if eval "test \"\${$as_ac_var+set}\" = set"; then
38054 echo $ECHO_N "(cached) $ECHO_C" >&6
38055else
38056 cat >conftest.$ac_ext <<_ACEOF
38057/* confdefs.h. */
38058_ACEOF
38059cat confdefs.h >>conftest.$ac_ext
38060cat >>conftest.$ac_ext <<_ACEOF
38061/* end confdefs.h. */
ac1cb8d3
VS
38062/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38064#define $ac_func innocuous_$ac_func
38065
a848cd7e
SC
38066/* System header to define __stub macros and hopefully few prototypes,
38067 which can conflict with char $ac_func (); below.
38068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38069 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38070
a848cd7e
SC
38071#ifdef __STDC__
38072# include <limits.h>
38073#else
38074# include <assert.h>
38075#endif
ac1cb8d3
VS
38076
38077#undef $ac_func
38078
a848cd7e
SC
38079/* Override any gcc2 internal prototype to avoid an error. */
38080#ifdef __cplusplus
38081extern "C"
38082{
38083#endif
38084/* We use char because int might match the return type of a gcc2
38085 builtin and then its argument prototype would still apply. */
38086char $ac_func ();
38087/* The GNU C library defines this for functions which it implements
38088 to always fail with ENOSYS. Some functions are actually named
38089 something starting with __ and the normal name is an alias. */
38090#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38091choke me
38092#else
38093char (*f) () = $ac_func;
38094#endif
38095#ifdef __cplusplus
38096}
38097#endif
38098
38099int
38100main ()
38101{
38102return f != $ac_func;
38103 ;
38104 return 0;
38105}
38106_ACEOF
38107rm -f conftest.$ac_objext conftest$ac_exeext
38108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38109 (eval $ac_link) 2>conftest.er1
a848cd7e 38110 ac_status=$?
ac1cb8d3
VS
38111 grep -v '^ *+' conftest.er1 >conftest.err
38112 rm -f conftest.er1
38113 cat conftest.err >&5
a848cd7e
SC
38114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38115 (exit $ac_status); } &&
fd5199d6 38116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38118 (eval $ac_try) 2>&5
38119 ac_status=$?
38120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38121 (exit $ac_status); }; } &&
38122 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38124 (eval $ac_try) 2>&5
38125 ac_status=$?
38126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38127 (exit $ac_status); }; }; then
38128 eval "$as_ac_var=yes"
38129else
38130 echo "$as_me: failed program was:" >&5
38131sed 's/^/| /' conftest.$ac_ext >&5
38132
38133eval "$as_ac_var=no"
38134fi
ac1cb8d3
VS
38135rm -f conftest.err conftest.$ac_objext \
38136 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38137fi
38138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38139echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38140if test `eval echo '${'$as_ac_var'}'` = yes; then
38141 cat >>confdefs.h <<_ACEOF
38142#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38143_ACEOF
38144 cat >>confdefs.h <<\_ACEOF
38145#define HAVE_INET_ADDR 1
38146_ACEOF
38147
38148else
38149
38150 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38151echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
38152if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38153 echo $ECHO_N "(cached) $ECHO_C" >&6
38154else
38155 ac_check_lib_save_LIBS=$LIBS
38156LIBS="-lnsl $LIBS"
38157cat >conftest.$ac_ext <<_ACEOF
38158/* confdefs.h. */
38159_ACEOF
38160cat confdefs.h >>conftest.$ac_ext
38161cat >>conftest.$ac_ext <<_ACEOF
38162/* end confdefs.h. */
38163
38164/* Override any gcc2 internal prototype to avoid an error. */
38165#ifdef __cplusplus
38166extern "C"
38167#endif
38168/* We use char because int might match the return type of a gcc2
38169 builtin and then its argument prototype would still apply. */
38170char inet_addr ();
38171int
38172main ()
38173{
38174inet_addr ();
38175 ;
38176 return 0;
38177}
38178_ACEOF
38179rm -f conftest.$ac_objext conftest$ac_exeext
38180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38181 (eval $ac_link) 2>conftest.er1
a848cd7e 38182 ac_status=$?
ac1cb8d3
VS
38183 grep -v '^ *+' conftest.er1 >conftest.err
38184 rm -f conftest.er1
38185 cat conftest.err >&5
a848cd7e
SC
38186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38187 (exit $ac_status); } &&
fd5199d6 38188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38190 (eval $ac_try) 2>&5
38191 ac_status=$?
38192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38193 (exit $ac_status); }; } &&
38194 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38196 (eval $ac_try) 2>&5
38197 ac_status=$?
38198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38199 (exit $ac_status); }; }; then
38200 ac_cv_lib_nsl_inet_addr=yes
38201else
38202 echo "$as_me: failed program was:" >&5
38203sed 's/^/| /' conftest.$ac_ext >&5
38204
38205ac_cv_lib_nsl_inet_addr=no
38206fi
ac1cb8d3
VS
38207rm -f conftest.err conftest.$ac_objext \
38208 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38209LIBS=$ac_check_lib_save_LIBS
38210fi
38211echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38212echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
38213if test $ac_cv_lib_nsl_inet_addr = yes; then
38214 INET_LINK="nsl"
38215else
38216
38217 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38218echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
38219if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38220 echo $ECHO_N "(cached) $ECHO_C" >&6
38221else
38222 ac_check_lib_save_LIBS=$LIBS
38223LIBS="-lresolv $LIBS"
38224cat >conftest.$ac_ext <<_ACEOF
38225/* confdefs.h. */
38226_ACEOF
38227cat confdefs.h >>conftest.$ac_ext
38228cat >>conftest.$ac_ext <<_ACEOF
38229/* end confdefs.h. */
38230
38231/* Override any gcc2 internal prototype to avoid an error. */
38232#ifdef __cplusplus
38233extern "C"
38234#endif
38235/* We use char because int might match the return type of a gcc2
38236 builtin and then its argument prototype would still apply. */
38237char inet_addr ();
38238int
38239main ()
38240{
38241inet_addr ();
38242 ;
38243 return 0;
38244}
38245_ACEOF
38246rm -f conftest.$ac_objext conftest$ac_exeext
38247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38248 (eval $ac_link) 2>conftest.er1
a848cd7e 38249 ac_status=$?
ac1cb8d3
VS
38250 grep -v '^ *+' conftest.er1 >conftest.err
38251 rm -f conftest.er1
38252 cat conftest.err >&5
a848cd7e
SC
38253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38254 (exit $ac_status); } &&
fd5199d6 38255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38257 (eval $ac_try) 2>&5
38258 ac_status=$?
38259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38260 (exit $ac_status); }; } &&
38261 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38263 (eval $ac_try) 2>&5
38264 ac_status=$?
38265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38266 (exit $ac_status); }; }; then
38267 ac_cv_lib_resolv_inet_addr=yes
38268else
38269 echo "$as_me: failed program was:" >&5
38270sed 's/^/| /' conftest.$ac_ext >&5
38271
38272ac_cv_lib_resolv_inet_addr=no
38273fi
ac1cb8d3
VS
38274rm -f conftest.err conftest.$ac_objext \
38275 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38276LIBS=$ac_check_lib_save_LIBS
38277fi
38278echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38279echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
38280if test $ac_cv_lib_resolv_inet_addr = yes; then
38281 INET_LINK="resolv"
38282else
38283
38284 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38285echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
38286if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38287 echo $ECHO_N "(cached) $ECHO_C" >&6
38288else
38289 ac_check_lib_save_LIBS=$LIBS
38290LIBS="-lsocket $LIBS"
38291cat >conftest.$ac_ext <<_ACEOF
38292/* confdefs.h. */
38293_ACEOF
38294cat confdefs.h >>conftest.$ac_ext
38295cat >>conftest.$ac_ext <<_ACEOF
38296/* end confdefs.h. */
38297
38298/* Override any gcc2 internal prototype to avoid an error. */
38299#ifdef __cplusplus
38300extern "C"
38301#endif
38302/* We use char because int might match the return type of a gcc2
38303 builtin and then its argument prototype would still apply. */
38304char inet_addr ();
38305int
38306main ()
38307{
38308inet_addr ();
38309 ;
38310 return 0;
38311}
38312_ACEOF
38313rm -f conftest.$ac_objext conftest$ac_exeext
38314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38315 (eval $ac_link) 2>conftest.er1
a848cd7e 38316 ac_status=$?
ac1cb8d3
VS
38317 grep -v '^ *+' conftest.er1 >conftest.err
38318 rm -f conftest.er1
38319 cat conftest.err >&5
a848cd7e
SC
38320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38321 (exit $ac_status); } &&
fd5199d6 38322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38324 (eval $ac_try) 2>&5
38325 ac_status=$?
38326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38327 (exit $ac_status); }; } &&
38328 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38330 (eval $ac_try) 2>&5
38331 ac_status=$?
38332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38333 (exit $ac_status); }; }; then
38334 ac_cv_lib_socket_inet_addr=yes
38335else
38336 echo "$as_me: failed program was:" >&5
38337sed 's/^/| /' conftest.$ac_ext >&5
38338
38339ac_cv_lib_socket_inet_addr=no
38340fi
ac1cb8d3
VS
38341rm -f conftest.err conftest.$ac_objext \
38342 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38343LIBS=$ac_check_lib_save_LIBS
38344fi
38345echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38346echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
38347if test $ac_cv_lib_socket_inet_addr = yes; then
38348 INET_LINK="socket"
38349
38350fi
38351
38352
38353
38354fi
38355
38356
38357
38358fi
38359
38360
38361
38362fi
38363done
38364
38365
38366
38367for ac_func in inet_aton
38368do
38369as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38370echo "$as_me:$LINENO: checking for $ac_func" >&5
38371echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38372if eval "test \"\${$as_ac_var+set}\" = set"; then
38373 echo $ECHO_N "(cached) $ECHO_C" >&6
38374else
38375 cat >conftest.$ac_ext <<_ACEOF
38376/* confdefs.h. */
38377_ACEOF
38378cat confdefs.h >>conftest.$ac_ext
38379cat >>conftest.$ac_ext <<_ACEOF
38380/* end confdefs.h. */
ac1cb8d3
VS
38381/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38383#define $ac_func innocuous_$ac_func
38384
a848cd7e
SC
38385/* System header to define __stub macros and hopefully few prototypes,
38386 which can conflict with char $ac_func (); below.
38387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38388 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38389
a848cd7e
SC
38390#ifdef __STDC__
38391# include <limits.h>
38392#else
38393# include <assert.h>
38394#endif
ac1cb8d3
VS
38395
38396#undef $ac_func
38397
a848cd7e
SC
38398/* Override any gcc2 internal prototype to avoid an error. */
38399#ifdef __cplusplus
38400extern "C"
38401{
38402#endif
38403/* We use char because int might match the return type of a gcc2
38404 builtin and then its argument prototype would still apply. */
38405char $ac_func ();
38406/* The GNU C library defines this for functions which it implements
38407 to always fail with ENOSYS. Some functions are actually named
38408 something starting with __ and the normal name is an alias. */
38409#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38410choke me
38411#else
38412char (*f) () = $ac_func;
38413#endif
38414#ifdef __cplusplus
38415}
38416#endif
38417
38418int
38419main ()
38420{
38421return f != $ac_func;
38422 ;
38423 return 0;
38424}
38425_ACEOF
38426rm -f conftest.$ac_objext conftest$ac_exeext
38427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38428 (eval $ac_link) 2>conftest.er1
a848cd7e 38429 ac_status=$?
ac1cb8d3
VS
38430 grep -v '^ *+' conftest.er1 >conftest.err
38431 rm -f conftest.er1
38432 cat conftest.err >&5
a848cd7e
SC
38433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38434 (exit $ac_status); } &&
fd5199d6 38435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38437 (eval $ac_try) 2>&5
38438 ac_status=$?
38439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38440 (exit $ac_status); }; } &&
38441 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38443 (eval $ac_try) 2>&5
38444 ac_status=$?
38445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38446 (exit $ac_status); }; }; then
38447 eval "$as_ac_var=yes"
38448else
38449 echo "$as_me: failed program was:" >&5
38450sed 's/^/| /' conftest.$ac_ext >&5
38451
38452eval "$as_ac_var=no"
38453fi
ac1cb8d3
VS
38454rm -f conftest.err conftest.$ac_objext \
38455 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38456fi
38457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38458echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38459if test `eval echo '${'$as_ac_var'}'` = yes; then
38460 cat >>confdefs.h <<_ACEOF
38461#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38462_ACEOF
38463 cat >>confdefs.h <<\_ACEOF
38464#define HAVE_INET_ATON 1
38465_ACEOF
38466
38467else
38468
38469 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38470echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38471echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
38472if eval "test \"\${$as_ac_Lib+set}\" = set"; then
38473 echo $ECHO_N "(cached) $ECHO_C" >&6
38474else
38475 ac_check_lib_save_LIBS=$LIBS
38476LIBS="-l$INET_LINK $LIBS"
38477cat >conftest.$ac_ext <<_ACEOF
38478/* confdefs.h. */
38479_ACEOF
38480cat confdefs.h >>conftest.$ac_ext
38481cat >>conftest.$ac_ext <<_ACEOF
38482/* end confdefs.h. */
38483
38484/* Override any gcc2 internal prototype to avoid an error. */
38485#ifdef __cplusplus
38486extern "C"
38487#endif
38488/* We use char because int might match the return type of a gcc2
38489 builtin and then its argument prototype would still apply. */
38490char inet_aton ();
38491int
38492main ()
38493{
38494inet_aton ();
38495 ;
38496 return 0;
38497}
38498_ACEOF
38499rm -f conftest.$ac_objext conftest$ac_exeext
38500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38501 (eval $ac_link) 2>conftest.er1
a848cd7e 38502 ac_status=$?
ac1cb8d3
VS
38503 grep -v '^ *+' conftest.er1 >conftest.err
38504 rm -f conftest.er1
38505 cat conftest.err >&5
a848cd7e
SC
38506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38507 (exit $ac_status); } &&
fd5199d6 38508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38510 (eval $ac_try) 2>&5
38511 ac_status=$?
38512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38513 (exit $ac_status); }; } &&
38514 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38516 (eval $ac_try) 2>&5
38517 ac_status=$?
38518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38519 (exit $ac_status); }; }; then
38520 eval "$as_ac_Lib=yes"
38521else
38522 echo "$as_me: failed program was:" >&5
38523sed 's/^/| /' conftest.$ac_ext >&5
38524
38525eval "$as_ac_Lib=no"
38526fi
ac1cb8d3
VS
38527rm -f conftest.err conftest.$ac_objext \
38528 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38529LIBS=$ac_check_lib_save_LIBS
38530fi
38531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
38532echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
38533if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38534 cat >>confdefs.h <<\_ACEOF
38535#define HAVE_INET_ATON 1
38536_ACEOF
38537
38538fi
38539
38540
38541fi
38542done
38543
38544
38545if test "x$INET_LINK" != "x"; then
38546 cat >>confdefs.h <<\_ACEOF
38547#define HAVE_INET_ADDR 1
38548_ACEOF
38549
38550 INET_LINK=" -l$INET_LINK"
38551fi
38552
f8f6c91a
MW
38553
38554 for wx_func in fdopen
38555 do
38556 echo "$as_me:$LINENO: checking for $wx_func" >&5
38557echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38558if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
38559 echo $ECHO_N "(cached) $ECHO_C" >&6
38560else
38561
38562 cat >conftest.$ac_ext <<_ACEOF
38563
38564 /* confdefs.h. */
38565_ACEOF
38566cat confdefs.h >>conftest.$ac_ext
38567cat >>conftest.$ac_ext <<_ACEOF
38568/* end confdefs.h. */
38569
38570
38571 $ac_includes_default
38572
38573int
38574main ()
38575{
38576
38577 #ifndef $wx_func
38578 &$wx_func;
38579 #endif
38580
38581
38582 ;
38583 return 0;
38584}
38585
38586_ACEOF
38587rm -f conftest.$ac_objext conftest$ac_exeext
38588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38589 (eval $ac_link) 2>conftest.er1
38590 ac_status=$?
38591 grep -v '^ *+' conftest.er1 >conftest.err
38592 rm -f conftest.er1
38593 cat conftest.err >&5
38594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38595 (exit $ac_status); } &&
fd5199d6 38596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f8f6c91a
MW
38597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38598 (eval $ac_try) 2>&5
38599 ac_status=$?
38600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38601 (exit $ac_status); }; } &&
38602 { ac_try='test -s conftest$ac_exeext'
38603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38604 (eval $ac_try) 2>&5
38605 ac_status=$?
38606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38607 (exit $ac_status); }; }; then
38608 eval wx_cv_func_$wx_func=yes
38609else
38610 echo "$as_me: failed program was:" >&5
38611sed 's/^/| /' conftest.$ac_ext >&5
38612
38613eval wx_cv_func_$wx_func=no
a848cd7e 38614fi
f8f6c91a
MW
38615rm -f conftest.err conftest.$ac_objext \
38616 conftest$ac_exeext conftest.$ac_ext
38617
38618fi
38619echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38620echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
38621
38622 if eval test \$wx_cv_func_$wx_func = yes
38623 then
38624 cat >>confdefs.h <<_ACEOF
38625#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38626_ACEOF
38627
38628
38629 else
38630 :
38631
38632 fi
38633 done
38634
38635
38636fi
38637
a848cd7e
SC
38638
38639
38640
38641EXTRALIBS_ESD=
38642echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
38643echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
38644if test "${ac_cv_lib_esd_esd_close+set}" = set; then
38645 echo $ECHO_N "(cached) $ECHO_C" >&6
38646else
38647 ac_check_lib_save_LIBS=$LIBS
38648LIBS="-lesd $LIBS"
38649cat >conftest.$ac_ext <<_ACEOF
38650/* confdefs.h. */
38651_ACEOF
38652cat confdefs.h >>conftest.$ac_ext
38653cat >>conftest.$ac_ext <<_ACEOF
38654/* end confdefs.h. */
38655
38656/* Override any gcc2 internal prototype to avoid an error. */
38657#ifdef __cplusplus
38658extern "C"
38659#endif
38660/* We use char because int might match the return type of a gcc2
38661 builtin and then its argument prototype would still apply. */
38662char esd_close ();
38663int
38664main ()
38665{
38666esd_close ();
38667 ;
38668 return 0;
38669}
38670_ACEOF
38671rm -f conftest.$ac_objext conftest$ac_exeext
38672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38673 (eval $ac_link) 2>conftest.er1
a848cd7e 38674 ac_status=$?
ac1cb8d3
VS
38675 grep -v '^ *+' conftest.er1 >conftest.err
38676 rm -f conftest.er1
38677 cat conftest.err >&5
a848cd7e
SC
38678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38679 (exit $ac_status); } &&
fd5199d6 38680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38682 (eval $ac_try) 2>&5
38683 ac_status=$?
38684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38685 (exit $ac_status); }; } &&
38686 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38688 (eval $ac_try) 2>&5
38689 ac_status=$?
38690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38691 (exit $ac_status); }; }; then
38692 ac_cv_lib_esd_esd_close=yes
38693else
38694 echo "$as_me: failed program was:" >&5
38695sed 's/^/| /' conftest.$ac_ext >&5
38696
38697ac_cv_lib_esd_esd_close=no
38698fi
ac1cb8d3
VS
38699rm -f conftest.err conftest.$ac_objext \
38700 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38701LIBS=$ac_check_lib_save_LIBS
38702fi
38703echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
38704echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
38705if test $ac_cv_lib_esd_esd_close = yes; then
38706
38707
38708for ac_header in esd.h
38709do
38710as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38711if eval "test \"\${$as_ac_Header+set}\" = set"; then
38712 echo "$as_me:$LINENO: checking for $ac_header" >&5
38713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38714if eval "test \"\${$as_ac_Header+set}\" = set"; then
38715 echo $ECHO_N "(cached) $ECHO_C" >&6
38716fi
38717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38718echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38719else
38720 # Is the header compilable?
38721echo "$as_me:$LINENO: checking $ac_header usability" >&5
38722echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38723cat >conftest.$ac_ext <<_ACEOF
38724/* confdefs.h. */
38725_ACEOF
38726cat confdefs.h >>conftest.$ac_ext
38727cat >>conftest.$ac_ext <<_ACEOF
38728/* end confdefs.h. */
38729$ac_includes_default
38730#include <$ac_header>
38731_ACEOF
38732rm -f conftest.$ac_objext
38733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38734 (eval $ac_compile) 2>conftest.er1
a848cd7e 38735 ac_status=$?
ac1cb8d3
VS
38736 grep -v '^ *+' conftest.er1 >conftest.err
38737 rm -f conftest.er1
38738 cat conftest.err >&5
a848cd7e
SC
38739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38740 (exit $ac_status); } &&
fd5199d6 38741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38743 (eval $ac_try) 2>&5
38744 ac_status=$?
38745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38746 (exit $ac_status); }; } &&
38747 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38749 (eval $ac_try) 2>&5
38750 ac_status=$?
38751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38752 (exit $ac_status); }; }; then
38753 ac_header_compiler=yes
38754else
38755 echo "$as_me: failed program was:" >&5
38756sed 's/^/| /' conftest.$ac_ext >&5
38757
38758ac_header_compiler=no
38759fi
ac1cb8d3 38760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38761echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38762echo "${ECHO_T}$ac_header_compiler" >&6
38763
38764# Is the header present?
38765echo "$as_me:$LINENO: checking $ac_header presence" >&5
38766echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38767cat >conftest.$ac_ext <<_ACEOF
38768/* confdefs.h. */
38769_ACEOF
38770cat confdefs.h >>conftest.$ac_ext
38771cat >>conftest.$ac_ext <<_ACEOF
38772/* end confdefs.h. */
38773#include <$ac_header>
38774_ACEOF
38775if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38777 ac_status=$?
38778 grep -v '^ *+' conftest.er1 >conftest.err
38779 rm -f conftest.er1
38780 cat conftest.err >&5
38781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38782 (exit $ac_status); } >/dev/null; then
38783 if test -s conftest.err; then
fd5199d6
VZ
38784 ac_cpp_err=$ac_c_preproc_warn_flag
38785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38786 else
38787 ac_cpp_err=
38788 fi
38789else
38790 ac_cpp_err=yes
38791fi
38792if test -z "$ac_cpp_err"; then
38793 ac_header_preproc=yes
38794else
38795 echo "$as_me: failed program was:" >&5
38796sed 's/^/| /' conftest.$ac_ext >&5
38797
38798 ac_header_preproc=no
38799fi
38800rm -f conftest.err conftest.$ac_ext
38801echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38802echo "${ECHO_T}$ac_header_preproc" >&6
38803
38804# So? What about this header?
fd5199d6 38805case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 38806 yes:no: )
a848cd7e
SC
38807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38808echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38810echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38811 ac_header_preproc=yes
a848cd7e 38812 ;;
ac1cb8d3 38813 no:yes:* )
a848cd7e
SC
38814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38815echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38817echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38819echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38821echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38823echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38825echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38826 (
38827 cat <<\_ASBOX
ac1cb8d3
VS
38828## ----------------------------------------- ##
38829## Report this to wx-dev@lists.wxwidgets.org ##
38830## ----------------------------------------- ##
a848cd7e
SC
38831_ASBOX
38832 ) |
38833 sed "s/^/$as_me: WARNING: /" >&2
38834 ;;
38835esac
38836echo "$as_me:$LINENO: checking for $ac_header" >&5
38837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38838if eval "test \"\${$as_ac_Header+set}\" = set"; then
38839 echo $ECHO_N "(cached) $ECHO_C" >&6
38840else
ac1cb8d3 38841 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38842fi
38843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38844echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38845
38846fi
38847if test `eval echo '${'$as_ac_Header'}'` = yes; then
38848 cat >>confdefs.h <<_ACEOF
38849#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38850_ACEOF
38851
38852 EXTRALIBS_ESD="-lesd"
38853
38854fi
38855
38856done
38857
38858
38859fi
38860
38861
38862
38863echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
38864echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
38865cat >conftest.$ac_ext <<_ACEOF
38866/* confdefs.h. */
38867_ACEOF
38868cat confdefs.h >>conftest.$ac_ext
38869cat >>conftest.$ac_ext <<_ACEOF
38870/* end confdefs.h. */
38871#ifdef __linux__
38872 #include <linux/cdrom.h>
38873 #else
38874 /* For Solaris */
38875 #include <sys/cdio.h>
38876 #endif
38877
38878int
38879main ()
38880{
38881struct cdrom_tocentry entry, old_entry;
38882 ;
38883 return 0;
38884}
38885_ACEOF
38886rm -f conftest.$ac_objext
38887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38888 (eval $ac_compile) 2>conftest.er1
a848cd7e 38889 ac_status=$?
ac1cb8d3
VS
38890 grep -v '^ *+' conftest.er1 >conftest.err
38891 rm -f conftest.er1
38892 cat conftest.err >&5
a848cd7e
SC
38893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38894 (exit $ac_status); } &&
fd5199d6 38895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38897 (eval $ac_try) 2>&5
38898 ac_status=$?
38899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38900 (exit $ac_status); }; } &&
38901 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38903 (eval $ac_try) 2>&5
38904 ac_status=$?
38905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38906 (exit $ac_status); }; }; then
38907 echo "$as_me:$LINENO: result: yes" >&5
38908echo "${ECHO_T}yes" >&6
38909 cat >>confdefs.h <<\_ACEOF
38910#define HAVE_KNOWN_CDROM_INTERFACE 1
38911_ACEOF
38912
38913else
38914 echo "$as_me: failed program was:" >&5
38915sed 's/^/| /' conftest.$ac_ext >&5
38916
38917echo "$as_me:$LINENO: result: no" >&5
38918echo "${ECHO_T}no" >&6
38919fi
ac1cb8d3 38920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38921
38922
38923cat >confcache <<\_ACEOF
38924# This file is a shell script that caches the results of configure
38925# tests run on this system so they can be shared between configure
38926# scripts and configure runs, see configure's option --config-cache.
38927# It is not useful on other systems. If it contains results you don't
38928# want to keep, you may remove or edit it.
38929#
38930# config.status only pays attention to the cache file if you give it
38931# the --recheck option to rerun configure.
38932#
38933# `ac_cv_env_foo' variables (set or unset) will be overridden when
38934# loading this file, other *unset* `ac_cv_foo' will be assigned the
38935# following values.
38936
38937_ACEOF
38938
38939# The following way of writing the cache mishandles newlines in values,
38940# but we know of no workaround that is simple, portable, and efficient.
38941# So, don't put newlines in cache variables' values.
38942# Ultrix sh set writes to stderr and can't be redirected directly,
38943# and sets the high bit in the cache file unless we assign to the vars.
38944{
38945 (set) 2>&1 |
38946 case `(ac_space=' '; set | grep ac_space) 2>&1` in
38947 *ac_space=\ *)
38948 # `set' does not quote correctly, so add quotes (double-quote
38949 # substitution turns \\\\ into \\, and sed turns \\ into \).
38950 sed -n \
ac1cb8d3
VS
38951 "s/'/'\\\\''/g;
38952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
38953 ;;
38954 *)
38955 # `set' quotes correctly as required by POSIX, so do not add quotes.
38956 sed -n \
ac1cb8d3 38957 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
38958 ;;
38959 esac;
38960} |
38961 sed '
38962 t clear
38963 : clear
38964 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38965 t end
38966 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38967 : end' >>confcache
38968if diff $cache_file confcache >/dev/null 2>&1; then :; else
38969 if test -w $cache_file; then
38970 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38971 cat confcache >$cache_file
38972 else
38973 echo "not updating unwritable cache $cache_file"
38974 fi
38975fi
38976rm -f confcache
38977
38978
a848cd7e
SC
38979if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38980
38981
38982 THREADS_LINK=
9b8888f9 38983 THREADS_CFLAGS=
a848cd7e
SC
38984
38985 if test "$wxUSE_THREADS" = "yes" ; then
38986 if test "$USE_BEOS" = 1; then
38987 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38988echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38989 wxUSE_THREADS="no"
38990 fi
38991 fi
38992
38993 if test "$wxUSE_THREADS" = "yes" ; then
38994
38995
38996 THREAD_OPTS="-pthread"
38997 case "${host}" in
38998 *-*-solaris2* | *-*-sunos4* )
38999 if test "x$GCC" = "xyes"; then
39000 THREAD_OPTS="-pthreads $THREAD_OPTS"
39001 else
39002 THREAD_OPTS="-mt $THREAD_OPTS"
39003 fi
39004 ;;
39005 *-*-freebsd*)
39006 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
39007 ;;
39008 *-*-darwin* | *-*-cygwin* )
39009 THREAD_OPTS=""
39010 ;;
39011 *-*-aix*)
39012 THREAD_OPTS="pthreads"
39013 ;;
39014 *-hp-hpux* )
00421666
MW
39015 if test "x$GCC" = "xyes"; then
39016 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
39017 THREAD_OPTS=""
39018 else
0093c2fc 39019 THREAD_OPTS="-mt"
a848cd7e
SC
39020 fi
39021 ;;
39022
39023 *-*-irix* )
39024 if test "x$GCC" = "xyes"; then
39025 THREAD_OPTS=""
39026 fi
39027 ;;
39028
39029 *-*-*UnixWare*)
39030 if test "x$GCC" != "xyes"; then
39031 THREAD_OPTS="-Ethread"
39032 fi
39033 ;;
39034 esac
39035
39036 THREAD_OPTS="$THREAD_OPTS pthread none"
39037
39038 THREADS_OK=no
39039 for flag in $THREAD_OPTS; do
39040 case $flag in
39041 none)
39042 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39043echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
39044 ;;
39045
39046 -*)
39047 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39048echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
9b8888f9 39049 THREADS_CFLAGS="$flag"
a848cd7e
SC
39050 ;;
39051
39052 *)
39053 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39054echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
39055 THREADS_LINK="-l$flag"
39056 ;;
39057 esac
39058
39059 save_LIBS="$LIBS"
9b8888f9 39060 save_CFLAGS="$CFLAGS"
a848cd7e 39061 LIBS="$THREADS_LINK $LIBS"
9b8888f9 39062 CFLAGS="$THREADS_CFLAGS $CFLAGS"
a848cd7e
SC
39063
39064 cat >conftest.$ac_ext <<_ACEOF
39065/* confdefs.h. */
39066_ACEOF
39067cat confdefs.h >>conftest.$ac_ext
39068cat >>conftest.$ac_ext <<_ACEOF
39069/* end confdefs.h. */
39070#include <pthread.h>
39071int
39072main ()
39073{
39074pthread_create(0,0,0,0);
39075 ;
39076 return 0;
39077}
39078_ACEOF
39079rm -f conftest.$ac_objext conftest$ac_exeext
39080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39081 (eval $ac_link) 2>conftest.er1
a848cd7e 39082 ac_status=$?
ac1cb8d3
VS
39083 grep -v '^ *+' conftest.er1 >conftest.err
39084 rm -f conftest.er1
39085 cat conftest.err >&5
a848cd7e
SC
39086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39087 (exit $ac_status); } &&
fd5199d6 39088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39090 (eval $ac_try) 2>&5
39091 ac_status=$?
39092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39093 (exit $ac_status); }; } &&
39094 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39096 (eval $ac_try) 2>&5
39097 ac_status=$?
39098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39099 (exit $ac_status); }; }; then
39100 THREADS_OK=yes
39101else
39102 echo "$as_me: failed program was:" >&5
39103sed 's/^/| /' conftest.$ac_ext >&5
39104
39105fi
ac1cb8d3
VS
39106rm -f conftest.err conftest.$ac_objext \
39107 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39108
39109 LIBS="$save_LIBS"
9b8888f9 39110 CFLAGS="$save_CFLAGS"
a848cd7e
SC
39111
39112 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39113echo "${ECHO_T}$THREADS_OK" >&6
39114 if test "x$THREADS_OK" = "xyes"; then
39115 break;
39116 fi
39117
39118 THREADS_LINK=""
9b8888f9 39119 THREADS_CFLAGS=""
a848cd7e
SC
39120 done
39121
39122 if test "x$THREADS_OK" != "xyes"; then
39123 wxUSE_THREADS=no
39124 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39125echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39126 else
9b8888f9 39127 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
a848cd7e
SC
39128 LIBS="$THREADS_LINK $LIBS"
39129
39130 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39131echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
39132 flag=no
39133 case "${host}" in
39134 *-aix*)
39135 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39136 flag="-D_THREAD_SAFE"
39137 ;;
39138 *-freebsd*)
39139 flag="-D_THREAD_SAFE"
39140 ;;
39141 *-hp-hpux* )
39142 flag="-D_REENTRANT"
39143 if test "x$GCC" != "xyes"; then
39144 flag="$flag -D_RWSTD_MULTI_THREAD"
39145 fi
39146 ;;
39147 *solaris* | alpha*-osf*)
39148 flag="-D_REENTRANT"
39149 ;;
39150 esac
39151 echo "$as_me:$LINENO: result: ${flag}" >&5
39152echo "${ECHO_T}${flag}" >&6
39153 if test "x$flag" != xno; then
9b8888f9 39154 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
a848cd7e
SC
39155 fi
39156
9b8888f9 39157 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
a848cd7e
SC
39158 fi
39159 fi
39160
39161 if test "$wxUSE_THREADS" = "yes" ; then
39162
39163for ac_func in thr_setconcurrency
39164do
39165as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39166echo "$as_me:$LINENO: checking for $ac_func" >&5
39167echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39168if eval "test \"\${$as_ac_var+set}\" = set"; then
39169 echo $ECHO_N "(cached) $ECHO_C" >&6
39170else
39171 cat >conftest.$ac_ext <<_ACEOF
39172/* confdefs.h. */
39173_ACEOF
39174cat confdefs.h >>conftest.$ac_ext
39175cat >>conftest.$ac_ext <<_ACEOF
39176/* end confdefs.h. */
ac1cb8d3
VS
39177/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39179#define $ac_func innocuous_$ac_func
39180
a848cd7e
SC
39181/* System header to define __stub macros and hopefully few prototypes,
39182 which can conflict with char $ac_func (); below.
39183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39184 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39185
a848cd7e
SC
39186#ifdef __STDC__
39187# include <limits.h>
39188#else
39189# include <assert.h>
39190#endif
ac1cb8d3
VS
39191
39192#undef $ac_func
39193
a848cd7e
SC
39194/* Override any gcc2 internal prototype to avoid an error. */
39195#ifdef __cplusplus
39196extern "C"
39197{
39198#endif
39199/* We use char because int might match the return type of a gcc2
39200 builtin and then its argument prototype would still apply. */
39201char $ac_func ();
39202/* The GNU C library defines this for functions which it implements
39203 to always fail with ENOSYS. Some functions are actually named
39204 something starting with __ and the normal name is an alias. */
39205#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39206choke me
39207#else
39208char (*f) () = $ac_func;
39209#endif
39210#ifdef __cplusplus
39211}
39212#endif
39213
39214int
39215main ()
39216{
39217return f != $ac_func;
39218 ;
39219 return 0;
39220}
39221_ACEOF
39222rm -f conftest.$ac_objext conftest$ac_exeext
39223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39224 (eval $ac_link) 2>conftest.er1
a848cd7e 39225 ac_status=$?
ac1cb8d3
VS
39226 grep -v '^ *+' conftest.er1 >conftest.err
39227 rm -f conftest.er1
39228 cat conftest.err >&5
a848cd7e
SC
39229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39230 (exit $ac_status); } &&
fd5199d6 39231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39233 (eval $ac_try) 2>&5
39234 ac_status=$?
39235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39236 (exit $ac_status); }; } &&
39237 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39239 (eval $ac_try) 2>&5
39240 ac_status=$?
39241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39242 (exit $ac_status); }; }; then
39243 eval "$as_ac_var=yes"
39244else
39245 echo "$as_me: failed program was:" >&5
39246sed 's/^/| /' conftest.$ac_ext >&5
39247
39248eval "$as_ac_var=no"
39249fi
ac1cb8d3
VS
39250rm -f conftest.err conftest.$ac_objext \
39251 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39252fi
39253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39254echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39255if test `eval echo '${'$as_ac_var'}'` = yes; then
39256 cat >>confdefs.h <<_ACEOF
39257#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39258_ACEOF
39259
39260fi
39261done
39262
39263
6ebeb4c7
VZ
39264 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39265echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
39266if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39267 echo $ECHO_N "(cached) $ECHO_C" >&6
39268else
39269
39270 cat >conftest.$ac_ext <<_ACEOF
39271/* confdefs.h. */
39272_ACEOF
39273cat confdefs.h >>conftest.$ac_ext
39274cat >>conftest.$ac_ext <<_ACEOF
39275/* end confdefs.h. */
39276#include <pthread.h>
39277 void ThreadCleanupFunc(void *p);
39278
39279int
39280main ()
39281{
39282
39283 void *p;
39284 pthread_cleanup_push(ThreadCleanupFunc, p);
39285 pthread_cleanup_pop(0);
39286
39287 ;
39288 return 0;
39289}
39290_ACEOF
39291rm -f conftest.$ac_objext
39292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39293 (eval $ac_compile) 2>conftest.er1
39294 ac_status=$?
39295 grep -v '^ *+' conftest.er1 >conftest.err
39296 rm -f conftest.er1
39297 cat conftest.err >&5
39298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39299 (exit $ac_status); } &&
fd5199d6 39300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
39301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39302 (eval $ac_try) 2>&5
39303 ac_status=$?
39304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39305 (exit $ac_status); }; } &&
39306 { ac_try='test -s conftest.$ac_objext'
39307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39308 (eval $ac_try) 2>&5
39309 ac_status=$?
39310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39311 (exit $ac_status); }; }; then
39312
39313 wx_cv_func_pthread_cleanup=yes
39314
39315else
39316 echo "$as_me: failed program was:" >&5
39317sed 's/^/| /' conftest.$ac_ext >&5
39318
39319
39320 wx_cv_func_pthread_cleanup=no
39321
39322
39323fi
39324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39325
39326fi
39327echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39328echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
39329 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39330 cat >>confdefs.h <<\_ACEOF
39331#define wxHAVE_PTHREAD_CLEANUP 1
39332_ACEOF
39333
39334 fi
39335
a848cd7e
SC
39336
39337for ac_header in sched.h
39338do
39339as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39340if eval "test \"\${$as_ac_Header+set}\" = set"; then
39341 echo "$as_me:$LINENO: checking for $ac_header" >&5
39342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39343if eval "test \"\${$as_ac_Header+set}\" = set"; then
39344 echo $ECHO_N "(cached) $ECHO_C" >&6
39345fi
39346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39347echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39348else
39349 # Is the header compilable?
39350echo "$as_me:$LINENO: checking $ac_header usability" >&5
39351echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39352cat >conftest.$ac_ext <<_ACEOF
39353/* confdefs.h. */
39354_ACEOF
39355cat confdefs.h >>conftest.$ac_ext
39356cat >>conftest.$ac_ext <<_ACEOF
39357/* end confdefs.h. */
39358$ac_includes_default
39359#include <$ac_header>
39360_ACEOF
39361rm -f conftest.$ac_objext
39362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39363 (eval $ac_compile) 2>conftest.er1
a848cd7e 39364 ac_status=$?
ac1cb8d3
VS
39365 grep -v '^ *+' conftest.er1 >conftest.err
39366 rm -f conftest.er1
39367 cat conftest.err >&5
a848cd7e
SC
39368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39369 (exit $ac_status); } &&
fd5199d6 39370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39372 (eval $ac_try) 2>&5
39373 ac_status=$?
39374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39375 (exit $ac_status); }; } &&
39376 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39378 (eval $ac_try) 2>&5
39379 ac_status=$?
39380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39381 (exit $ac_status); }; }; then
39382 ac_header_compiler=yes
39383else
39384 echo "$as_me: failed program was:" >&5
39385sed 's/^/| /' conftest.$ac_ext >&5
39386
39387ac_header_compiler=no
39388fi
ac1cb8d3 39389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39390echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39391echo "${ECHO_T}$ac_header_compiler" >&6
39392
39393# Is the header present?
39394echo "$as_me:$LINENO: checking $ac_header presence" >&5
39395echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39396cat >conftest.$ac_ext <<_ACEOF
39397/* confdefs.h. */
39398_ACEOF
39399cat confdefs.h >>conftest.$ac_ext
39400cat >>conftest.$ac_ext <<_ACEOF
39401/* end confdefs.h. */
39402#include <$ac_header>
39403_ACEOF
39404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39406 ac_status=$?
39407 grep -v '^ *+' conftest.er1 >conftest.err
39408 rm -f conftest.er1
39409 cat conftest.err >&5
39410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39411 (exit $ac_status); } >/dev/null; then
39412 if test -s conftest.err; then
fd5199d6
VZ
39413 ac_cpp_err=$ac_c_preproc_warn_flag
39414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39415 else
39416 ac_cpp_err=
39417 fi
39418else
39419 ac_cpp_err=yes
39420fi
39421if test -z "$ac_cpp_err"; then
39422 ac_header_preproc=yes
39423else
39424 echo "$as_me: failed program was:" >&5
39425sed 's/^/| /' conftest.$ac_ext >&5
39426
39427 ac_header_preproc=no
39428fi
39429rm -f conftest.err conftest.$ac_ext
39430echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39431echo "${ECHO_T}$ac_header_preproc" >&6
39432
39433# So? What about this header?
fd5199d6 39434case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 39435 yes:no: )
a848cd7e
SC
39436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39437echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39439echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39440 ac_header_preproc=yes
a848cd7e 39441 ;;
ac1cb8d3 39442 no:yes:* )
a848cd7e
SC
39443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39444echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39446echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39448echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39450echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39452echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39454echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39455 (
39456 cat <<\_ASBOX
ac1cb8d3
VS
39457## ----------------------------------------- ##
39458## Report this to wx-dev@lists.wxwidgets.org ##
39459## ----------------------------------------- ##
a848cd7e
SC
39460_ASBOX
39461 ) |
39462 sed "s/^/$as_me: WARNING: /" >&2
39463 ;;
39464esac
39465echo "$as_me:$LINENO: checking for $ac_header" >&5
39466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39467if eval "test \"\${$as_ac_Header+set}\" = set"; then
39468 echo $ECHO_N "(cached) $ECHO_C" >&6
39469else
ac1cb8d3 39470 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39471fi
39472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39473echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39474
39475fi
39476if test `eval echo '${'$as_ac_Header'}'` = yes; then
39477 cat >>confdefs.h <<_ACEOF
39478#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39479_ACEOF
39480
39481fi
39482
39483done
39484
39485 if test "$ac_cv_header_sched_h" = "yes"; then
39486 echo "$as_me:$LINENO: checking for sched_yield" >&5
39487echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
39488if test "${ac_cv_func_sched_yield+set}" = set; then
39489 echo $ECHO_N "(cached) $ECHO_C" >&6
39490else
39491 cat >conftest.$ac_ext <<_ACEOF
39492/* confdefs.h. */
39493_ACEOF
39494cat confdefs.h >>conftest.$ac_ext
39495cat >>conftest.$ac_ext <<_ACEOF
39496/* end confdefs.h. */
ac1cb8d3
VS
39497/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39499#define sched_yield innocuous_sched_yield
39500
a848cd7e
SC
39501/* System header to define __stub macros and hopefully few prototypes,
39502 which can conflict with char sched_yield (); below.
39503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39504 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39505
a848cd7e
SC
39506#ifdef __STDC__
39507# include <limits.h>
39508#else
39509# include <assert.h>
39510#endif
ac1cb8d3
VS
39511
39512#undef sched_yield
39513
a848cd7e
SC
39514/* Override any gcc2 internal prototype to avoid an error. */
39515#ifdef __cplusplus
39516extern "C"
39517{
39518#endif
39519/* We use char because int might match the return type of a gcc2
39520 builtin and then its argument prototype would still apply. */
39521char sched_yield ();
39522/* The GNU C library defines this for functions which it implements
39523 to always fail with ENOSYS. Some functions are actually named
39524 something starting with __ and the normal name is an alias. */
39525#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
39526choke me
39527#else
39528char (*f) () = sched_yield;
39529#endif
39530#ifdef __cplusplus
39531}
39532#endif
39533
39534int
39535main ()
39536{
39537return f != sched_yield;
39538 ;
39539 return 0;
39540}
39541_ACEOF
39542rm -f conftest.$ac_objext conftest$ac_exeext
39543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39544 (eval $ac_link) 2>conftest.er1
a848cd7e 39545 ac_status=$?
ac1cb8d3
VS
39546 grep -v '^ *+' conftest.er1 >conftest.err
39547 rm -f conftest.er1
39548 cat conftest.err >&5
a848cd7e
SC
39549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39550 (exit $ac_status); } &&
fd5199d6 39551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39553 (eval $ac_try) 2>&5
39554 ac_status=$?
39555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39556 (exit $ac_status); }; } &&
39557 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39559 (eval $ac_try) 2>&5
39560 ac_status=$?
39561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39562 (exit $ac_status); }; }; then
39563 ac_cv_func_sched_yield=yes
39564else
39565 echo "$as_me: failed program was:" >&5
39566sed 's/^/| /' conftest.$ac_ext >&5
39567
39568ac_cv_func_sched_yield=no
39569fi
ac1cb8d3
VS
39570rm -f conftest.err conftest.$ac_objext \
39571 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39572fi
39573echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39574echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
39575if test $ac_cv_func_sched_yield = yes; then
39576 cat >>confdefs.h <<\_ACEOF
39577#define HAVE_SCHED_YIELD 1
39578_ACEOF
39579
39580else
39581
39582 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39583echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
39584if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39585 echo $ECHO_N "(cached) $ECHO_C" >&6
39586else
39587 ac_check_lib_save_LIBS=$LIBS
39588LIBS="-lposix4 $LIBS"
39589cat >conftest.$ac_ext <<_ACEOF
39590/* confdefs.h. */
39591_ACEOF
39592cat confdefs.h >>conftest.$ac_ext
39593cat >>conftest.$ac_ext <<_ACEOF
39594/* end confdefs.h. */
39595
39596/* Override any gcc2 internal prototype to avoid an error. */
39597#ifdef __cplusplus
39598extern "C"
39599#endif
39600/* We use char because int might match the return type of a gcc2
39601 builtin and then its argument prototype would still apply. */
39602char sched_yield ();
39603int
39604main ()
39605{
39606sched_yield ();
39607 ;
39608 return 0;
39609}
39610_ACEOF
39611rm -f conftest.$ac_objext conftest$ac_exeext
39612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39613 (eval $ac_link) 2>conftest.er1
a848cd7e 39614 ac_status=$?
ac1cb8d3
VS
39615 grep -v '^ *+' conftest.er1 >conftest.err
39616 rm -f conftest.er1
39617 cat conftest.err >&5
a848cd7e
SC
39618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39619 (exit $ac_status); } &&
fd5199d6 39620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39622 (eval $ac_try) 2>&5
39623 ac_status=$?
39624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39625 (exit $ac_status); }; } &&
39626 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39628 (eval $ac_try) 2>&5
39629 ac_status=$?
39630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39631 (exit $ac_status); }; }; then
39632 ac_cv_lib_posix4_sched_yield=yes
39633else
39634 echo "$as_me: failed program was:" >&5
39635sed 's/^/| /' conftest.$ac_ext >&5
39636
39637ac_cv_lib_posix4_sched_yield=no
39638fi
ac1cb8d3
VS
39639rm -f conftest.err conftest.$ac_objext \
39640 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39641LIBS=$ac_check_lib_save_LIBS
39642fi
39643echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39644echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
39645if test $ac_cv_lib_posix4_sched_yield = yes; then
39646 cat >>confdefs.h <<\_ACEOF
39647#define HAVE_SCHED_YIELD 1
39648_ACEOF
39649 POSIX4_LINK=" -lposix4"
39650else
39651 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39652echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39653
39654fi
39655
39656
39657
39658fi
39659
39660 fi
39661
39662 HAVE_PRIOR_FUNCS=0
39663 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39664echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
39665if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39666 echo $ECHO_N "(cached) $ECHO_C" >&6
39667else
39668 cat >conftest.$ac_ext <<_ACEOF
39669/* confdefs.h. */
39670_ACEOF
39671cat confdefs.h >>conftest.$ac_ext
39672cat >>conftest.$ac_ext <<_ACEOF
39673/* end confdefs.h. */
ac1cb8d3
VS
39674/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39676#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39677
a848cd7e
SC
39678/* System header to define __stub macros and hopefully few prototypes,
39679 which can conflict with char pthread_attr_getschedpolicy (); below.
39680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39681 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39682
a848cd7e
SC
39683#ifdef __STDC__
39684# include <limits.h>
39685#else
39686# include <assert.h>
39687#endif
ac1cb8d3
VS
39688
39689#undef pthread_attr_getschedpolicy
39690
a848cd7e
SC
39691/* Override any gcc2 internal prototype to avoid an error. */
39692#ifdef __cplusplus
39693extern "C"
39694{
39695#endif
39696/* We use char because int might match the return type of a gcc2
39697 builtin and then its argument prototype would still apply. */
39698char pthread_attr_getschedpolicy ();
39699/* The GNU C library defines this for functions which it implements
39700 to always fail with ENOSYS. Some functions are actually named
39701 something starting with __ and the normal name is an alias. */
39702#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
39703choke me
39704#else
39705char (*f) () = pthread_attr_getschedpolicy;
39706#endif
39707#ifdef __cplusplus
39708}
39709#endif
39710
39711int
39712main ()
39713{
39714return f != pthread_attr_getschedpolicy;
39715 ;
39716 return 0;
39717}
39718_ACEOF
39719rm -f conftest.$ac_objext conftest$ac_exeext
39720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39721 (eval $ac_link) 2>conftest.er1
a848cd7e 39722 ac_status=$?
ac1cb8d3
VS
39723 grep -v '^ *+' conftest.er1 >conftest.err
39724 rm -f conftest.er1
39725 cat conftest.err >&5
a848cd7e
SC
39726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39727 (exit $ac_status); } &&
fd5199d6 39728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39730 (eval $ac_try) 2>&5
39731 ac_status=$?
39732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39733 (exit $ac_status); }; } &&
39734 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39736 (eval $ac_try) 2>&5
39737 ac_status=$?
39738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39739 (exit $ac_status); }; }; then
39740 ac_cv_func_pthread_attr_getschedpolicy=yes
39741else
39742 echo "$as_me: failed program was:" >&5
39743sed 's/^/| /' conftest.$ac_ext >&5
39744
39745ac_cv_func_pthread_attr_getschedpolicy=no
39746fi
ac1cb8d3
VS
39747rm -f conftest.err conftest.$ac_objext \
39748 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39749fi
39750echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39751echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
39752if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39753 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39754echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
39755if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39756 echo $ECHO_N "(cached) $ECHO_C" >&6
39757else
39758 cat >conftest.$ac_ext <<_ACEOF
39759/* confdefs.h. */
39760_ACEOF
39761cat confdefs.h >>conftest.$ac_ext
39762cat >>conftest.$ac_ext <<_ACEOF
39763/* end confdefs.h. */
ac1cb8d3
VS
39764/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39766#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39767
a848cd7e
SC
39768/* System header to define __stub macros and hopefully few prototypes,
39769 which can conflict with char pthread_attr_setschedparam (); below.
39770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39771 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39772
a848cd7e
SC
39773#ifdef __STDC__
39774# include <limits.h>
39775#else
39776# include <assert.h>
39777#endif
ac1cb8d3
VS
39778
39779#undef pthread_attr_setschedparam
39780
a848cd7e
SC
39781/* Override any gcc2 internal prototype to avoid an error. */
39782#ifdef __cplusplus
39783extern "C"
39784{
39785#endif
39786/* We use char because int might match the return type of a gcc2
39787 builtin and then its argument prototype would still apply. */
39788char pthread_attr_setschedparam ();
39789/* The GNU C library defines this for functions which it implements
39790 to always fail with ENOSYS. Some functions are actually named
39791 something starting with __ and the normal name is an alias. */
39792#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
39793choke me
39794#else
39795char (*f) () = pthread_attr_setschedparam;
39796#endif
39797#ifdef __cplusplus
39798}
39799#endif
39800
39801int
39802main ()
39803{
39804return f != pthread_attr_setschedparam;
39805 ;
39806 return 0;
39807}
39808_ACEOF
39809rm -f conftest.$ac_objext conftest$ac_exeext
39810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39811 (eval $ac_link) 2>conftest.er1
a848cd7e 39812 ac_status=$?
ac1cb8d3
VS
39813 grep -v '^ *+' conftest.er1 >conftest.err
39814 rm -f conftest.er1
39815 cat conftest.err >&5
a848cd7e
SC
39816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39817 (exit $ac_status); } &&
fd5199d6 39818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39820 (eval $ac_try) 2>&5
39821 ac_status=$?
39822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39823 (exit $ac_status); }; } &&
39824 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39826 (eval $ac_try) 2>&5
39827 ac_status=$?
39828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39829 (exit $ac_status); }; }; then
39830 ac_cv_func_pthread_attr_setschedparam=yes
39831else
39832 echo "$as_me: failed program was:" >&5
39833sed 's/^/| /' conftest.$ac_ext >&5
39834
39835ac_cv_func_pthread_attr_setschedparam=no
39836fi
ac1cb8d3
VS
39837rm -f conftest.err conftest.$ac_objext \
39838 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39839fi
39840echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39841echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
39842if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39843 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39844echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
39845if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39846 echo $ECHO_N "(cached) $ECHO_C" >&6
39847else
39848 cat >conftest.$ac_ext <<_ACEOF
39849/* confdefs.h. */
39850_ACEOF
39851cat confdefs.h >>conftest.$ac_ext
39852cat >>conftest.$ac_ext <<_ACEOF
39853/* end confdefs.h. */
ac1cb8d3
VS
39854/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39856#define sched_get_priority_max innocuous_sched_get_priority_max
39857
a848cd7e
SC
39858/* System header to define __stub macros and hopefully few prototypes,
39859 which can conflict with char sched_get_priority_max (); below.
39860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39861 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39862
a848cd7e
SC
39863#ifdef __STDC__
39864# include <limits.h>
39865#else
39866# include <assert.h>
39867#endif
ac1cb8d3
VS
39868
39869#undef sched_get_priority_max
39870
a848cd7e
SC
39871/* Override any gcc2 internal prototype to avoid an error. */
39872#ifdef __cplusplus
39873extern "C"
39874{
39875#endif
39876/* We use char because int might match the return type of a gcc2
39877 builtin and then its argument prototype would still apply. */
39878char sched_get_priority_max ();
39879/* The GNU C library defines this for functions which it implements
39880 to always fail with ENOSYS. Some functions are actually named
39881 something starting with __ and the normal name is an alias. */
39882#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
39883choke me
39884#else
39885char (*f) () = sched_get_priority_max;
39886#endif
39887#ifdef __cplusplus
39888}
39889#endif
39890
39891int
39892main ()
39893{
39894return f != sched_get_priority_max;
39895 ;
39896 return 0;
39897}
39898_ACEOF
39899rm -f conftest.$ac_objext conftest$ac_exeext
39900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39901 (eval $ac_link) 2>conftest.er1
a848cd7e 39902 ac_status=$?
ac1cb8d3
VS
39903 grep -v '^ *+' conftest.er1 >conftest.err
39904 rm -f conftest.er1
39905 cat conftest.err >&5
a848cd7e
SC
39906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39907 (exit $ac_status); } &&
fd5199d6 39908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39910 (eval $ac_try) 2>&5
39911 ac_status=$?
39912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39913 (exit $ac_status); }; } &&
39914 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39916 (eval $ac_try) 2>&5
39917 ac_status=$?
39918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39919 (exit $ac_status); }; }; then
39920 ac_cv_func_sched_get_priority_max=yes
39921else
39922 echo "$as_me: failed program was:" >&5
39923sed 's/^/| /' conftest.$ac_ext >&5
39924
39925ac_cv_func_sched_get_priority_max=no
39926fi
ac1cb8d3
VS
39927rm -f conftest.err conftest.$ac_objext \
39928 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39929fi
39930echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39931echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
39932if test $ac_cv_func_sched_get_priority_max = yes; then
39933 HAVE_PRIOR_FUNCS=1
39934else
39935 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39936echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
39937if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39938 echo $ECHO_N "(cached) $ECHO_C" >&6
39939else
39940 ac_check_lib_save_LIBS=$LIBS
39941LIBS="-lposix4 $LIBS"
39942cat >conftest.$ac_ext <<_ACEOF
39943/* confdefs.h. */
39944_ACEOF
39945cat confdefs.h >>conftest.$ac_ext
39946cat >>conftest.$ac_ext <<_ACEOF
39947/* end confdefs.h. */
39948
39949/* Override any gcc2 internal prototype to avoid an error. */
39950#ifdef __cplusplus
39951extern "C"
39952#endif
39953/* We use char because int might match the return type of a gcc2
39954 builtin and then its argument prototype would still apply. */
39955char sched_get_priority_max ();
39956int
39957main ()
39958{
39959sched_get_priority_max ();
39960 ;
39961 return 0;
39962}
39963_ACEOF
39964rm -f conftest.$ac_objext conftest$ac_exeext
39965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39966 (eval $ac_link) 2>conftest.er1
a848cd7e 39967 ac_status=$?
ac1cb8d3
VS
39968 grep -v '^ *+' conftest.er1 >conftest.err
39969 rm -f conftest.er1
39970 cat conftest.err >&5
a848cd7e
SC
39971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39972 (exit $ac_status); } &&
fd5199d6 39973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39975 (eval $ac_try) 2>&5
39976 ac_status=$?
39977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39978 (exit $ac_status); }; } &&
39979 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39981 (eval $ac_try) 2>&5
39982 ac_status=$?
39983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39984 (exit $ac_status); }; }; then
39985 ac_cv_lib_posix4_sched_get_priority_max=yes
39986else
39987 echo "$as_me: failed program was:" >&5
39988sed 's/^/| /' conftest.$ac_ext >&5
39989
39990ac_cv_lib_posix4_sched_get_priority_max=no
39991fi
ac1cb8d3
VS
39992rm -f conftest.err conftest.$ac_objext \
39993 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39994LIBS=$ac_check_lib_save_LIBS
39995fi
39996echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39997echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
39998if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39999
40000 HAVE_PRIOR_FUNCS=1
40001 POSIX4_LINK=" -lposix4"
40002
40003fi
40004
40005
40006fi
40007
40008
40009fi
40010
40011
40012fi
40013
40014
40015 if test "$HAVE_PRIOR_FUNCS" = 1; then
40016 cat >>confdefs.h <<\_ACEOF
40017#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
40018_ACEOF
40019
40020 else
40021 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
40022echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
40023 fi
40024
40025 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
40026echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
40027if test "${ac_cv_func_pthread_cancel+set}" = set; then
40028 echo $ECHO_N "(cached) $ECHO_C" >&6
40029else
40030 cat >conftest.$ac_ext <<_ACEOF
40031/* confdefs.h. */
40032_ACEOF
40033cat confdefs.h >>conftest.$ac_ext
40034cat >>conftest.$ac_ext <<_ACEOF
40035/* end confdefs.h. */
ac1cb8d3
VS
40036/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
40037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40038#define pthread_cancel innocuous_pthread_cancel
40039
a848cd7e
SC
40040/* System header to define __stub macros and hopefully few prototypes,
40041 which can conflict with char pthread_cancel (); below.
40042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40043 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40044
a848cd7e
SC
40045#ifdef __STDC__
40046# include <limits.h>
40047#else
40048# include <assert.h>
40049#endif
ac1cb8d3
VS
40050
40051#undef pthread_cancel
40052
a848cd7e
SC
40053/* Override any gcc2 internal prototype to avoid an error. */
40054#ifdef __cplusplus
40055extern "C"
40056{
40057#endif
40058/* We use char because int might match the return type of a gcc2
40059 builtin and then its argument prototype would still apply. */
40060char pthread_cancel ();
40061/* The GNU C library defines this for functions which it implements
40062 to always fail with ENOSYS. Some functions are actually named
40063 something starting with __ and the normal name is an alias. */
40064#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
40065choke me
40066#else
40067char (*f) () = pthread_cancel;
40068#endif
40069#ifdef __cplusplus
40070}
40071#endif
40072
40073int
40074main ()
40075{
40076return f != pthread_cancel;
40077 ;
40078 return 0;
40079}
40080_ACEOF
40081rm -f conftest.$ac_objext conftest$ac_exeext
40082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40083 (eval $ac_link) 2>conftest.er1
a848cd7e 40084 ac_status=$?
ac1cb8d3
VS
40085 grep -v '^ *+' conftest.er1 >conftest.err
40086 rm -f conftest.er1
40087 cat conftest.err >&5
a848cd7e
SC
40088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40089 (exit $ac_status); } &&
fd5199d6 40090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40092 (eval $ac_try) 2>&5
40093 ac_status=$?
40094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40095 (exit $ac_status); }; } &&
40096 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40098 (eval $ac_try) 2>&5
40099 ac_status=$?
40100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40101 (exit $ac_status); }; }; then
40102 ac_cv_func_pthread_cancel=yes
40103else
40104 echo "$as_me: failed program was:" >&5
40105sed 's/^/| /' conftest.$ac_ext >&5
40106
40107ac_cv_func_pthread_cancel=no
40108fi
ac1cb8d3
VS
40109rm -f conftest.err conftest.$ac_objext \
40110 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40111fi
40112echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
40113echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
40114if test $ac_cv_func_pthread_cancel = yes; then
40115 cat >>confdefs.h <<\_ACEOF
40116#define HAVE_PTHREAD_CANCEL 1
40117_ACEOF
40118
40119else
40120 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
40121echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
40122fi
40123
40124
abc736fd
MW
40125 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40126echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
40127if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40128 echo $ECHO_N "(cached) $ECHO_C" >&6
40129else
40130 cat >conftest.$ac_ext <<_ACEOF
40131/* confdefs.h. */
40132_ACEOF
40133cat confdefs.h >>conftest.$ac_ext
40134cat >>conftest.$ac_ext <<_ACEOF
40135/* end confdefs.h. */
40136/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40138#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40139
40140/* System header to define __stub macros and hopefully few prototypes,
40141 which can conflict with char pthread_attr_setstacksize (); below.
40142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40143 <limits.h> exists even on freestanding compilers. */
40144
40145#ifdef __STDC__
40146# include <limits.h>
40147#else
40148# include <assert.h>
40149#endif
40150
40151#undef pthread_attr_setstacksize
40152
40153/* Override any gcc2 internal prototype to avoid an error. */
40154#ifdef __cplusplus
40155extern "C"
40156{
40157#endif
40158/* We use char because int might match the return type of a gcc2
40159 builtin and then its argument prototype would still apply. */
40160char pthread_attr_setstacksize ();
40161/* The GNU C library defines this for functions which it implements
40162 to always fail with ENOSYS. Some functions are actually named
40163 something starting with __ and the normal name is an alias. */
40164#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
40165choke me
40166#else
40167char (*f) () = pthread_attr_setstacksize;
40168#endif
40169#ifdef __cplusplus
40170}
40171#endif
40172
40173int
40174main ()
40175{
40176return f != pthread_attr_setstacksize;
40177 ;
40178 return 0;
40179}
40180_ACEOF
40181rm -f conftest.$ac_objext conftest$ac_exeext
40182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40183 (eval $ac_link) 2>conftest.er1
40184 ac_status=$?
40185 grep -v '^ *+' conftest.er1 >conftest.err
40186 rm -f conftest.er1
40187 cat conftest.err >&5
40188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40189 (exit $ac_status); } &&
fd5199d6 40190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
40191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40192 (eval $ac_try) 2>&5
40193 ac_status=$?
40194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40195 (exit $ac_status); }; } &&
40196 { ac_try='test -s conftest$ac_exeext'
40197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40198 (eval $ac_try) 2>&5
40199 ac_status=$?
40200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40201 (exit $ac_status); }; }; then
40202 ac_cv_func_pthread_attr_setstacksize=yes
40203else
40204 echo "$as_me: failed program was:" >&5
40205sed 's/^/| /' conftest.$ac_ext >&5
40206
40207ac_cv_func_pthread_attr_setstacksize=no
40208fi
40209rm -f conftest.err conftest.$ac_objext \
40210 conftest$ac_exeext conftest.$ac_ext
40211fi
40212echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40213echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
40214if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40215 cat >>confdefs.h <<\_ACEOF
40216#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40217_ACEOF
40218
40219fi
40220
a848cd7e
SC
40221
40222
40223 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40224echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
40225if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40226 echo $ECHO_N "(cached) $ECHO_C" >&6
40227else
40228
40229 cat >conftest.$ac_ext <<_ACEOF
40230/* confdefs.h. */
40231_ACEOF
40232cat confdefs.h >>conftest.$ac_ext
40233cat >>conftest.$ac_ext <<_ACEOF
40234/* end confdefs.h. */
40235#include <pthread.h>
40236int
40237main ()
40238{
40239
40240 pthread_mutexattr_t attr;
40241 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40242
40243 ;
40244 return 0;
40245}
40246_ACEOF
40247rm -f conftest.$ac_objext
40248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40249 (eval $ac_compile) 2>conftest.er1
a848cd7e 40250 ac_status=$?
ac1cb8d3
VS
40251 grep -v '^ *+' conftest.er1 >conftest.err
40252 rm -f conftest.er1
40253 cat conftest.err >&5
a848cd7e
SC
40254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40255 (exit $ac_status); } &&
fd5199d6 40256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40258 (eval $ac_try) 2>&5
40259 ac_status=$?
40260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40261 (exit $ac_status); }; } &&
40262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40264 (eval $ac_try) 2>&5
40265 ac_status=$?
40266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40267 (exit $ac_status); }; }; then
123dca7d 40268 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
40269else
40270 echo "$as_me: failed program was:" >&5
40271sed 's/^/| /' conftest.$ac_ext >&5
40272
123dca7d 40273wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
40274
40275fi
ac1cb8d3 40276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40277
40278fi
40279echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40280echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
40281
40282 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40283 cat >>confdefs.h <<\_ACEOF
40284#define HAVE_PTHREAD_MUTEXATTR_T 1
40285_ACEOF
40286
123dca7d
VZ
40287
40288 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40289echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
40290if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40291 echo $ECHO_N "(cached) $ECHO_C" >&6
40292else
40293
40294 cat >conftest.$ac_ext <<_ACEOF
40295/* confdefs.h. */
40296_ACEOF
40297cat confdefs.h >>conftest.$ac_ext
40298cat >>conftest.$ac_ext <<_ACEOF
40299/* end confdefs.h. */
40300#include <pthread.h>
40301int
40302main ()
40303{
40304
40305 pthread_mutexattr_t attr;
40306 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40307
40308 ;
40309 return 0;
40310}
40311_ACEOF
40312rm -f conftest.$ac_objext
40313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40314 (eval $ac_compile) 2>conftest.er1
40315 ac_status=$?
40316 grep -v '^ *+' conftest.er1 >conftest.err
40317 rm -f conftest.er1
40318 cat conftest.err >&5
40319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40320 (exit $ac_status); } &&
fd5199d6 40321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
40322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40323 (eval $ac_try) 2>&5
40324 ac_status=$?
40325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40326 (exit $ac_status); }; } &&
40327 { ac_try='test -s conftest.$ac_objext'
40328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40329 (eval $ac_try) 2>&5
40330 ac_status=$?
40331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40332 (exit $ac_status); }; }; then
40333 wx_cv_func_pthread_mutexattr_settype_decl=yes
40334else
40335 echo "$as_me: failed program was:" >&5
40336sed 's/^/| /' conftest.$ac_ext >&5
40337
40338wx_cv_func_pthread_mutexattr_settype_decl=no
40339
40340fi
40341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40342
40343fi
40344echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40345echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
40346 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40347 cat >>confdefs.h <<\_ACEOF
40348#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40349_ACEOF
40350
40351 fi
a848cd7e
SC
40352 else
40353 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40354echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
40355if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40356 echo $ECHO_N "(cached) $ECHO_C" >&6
40357else
40358
40359 cat >conftest.$ac_ext <<_ACEOF
40360/* confdefs.h. */
40361_ACEOF
40362cat confdefs.h >>conftest.$ac_ext
40363cat >>conftest.$ac_ext <<_ACEOF
40364/* end confdefs.h. */
40365#include <pthread.h>
40366int
40367main ()
40368{
40369
40370 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40371
40372 ;
40373 return 0;
40374}
40375_ACEOF
40376rm -f conftest.$ac_objext
40377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40378 (eval $ac_compile) 2>conftest.er1
a848cd7e 40379 ac_status=$?
ac1cb8d3
VS
40380 grep -v '^ *+' conftest.er1 >conftest.err
40381 rm -f conftest.er1
40382 cat conftest.err >&5
a848cd7e
SC
40383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40384 (exit $ac_status); } &&
fd5199d6 40385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40387 (eval $ac_try) 2>&5
40388 ac_status=$?
40389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40390 (exit $ac_status); }; } &&
40391 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40393 (eval $ac_try) 2>&5
40394 ac_status=$?
40395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40396 (exit $ac_status); }; }; then
40397
40398 wx_cv_type_pthread_rec_mutex_init=yes
40399
40400else
40401 echo "$as_me: failed program was:" >&5
40402sed 's/^/| /' conftest.$ac_ext >&5
40403
40404
40405 wx_cv_type_pthread_rec_mutex_init=no
40406
40407
40408fi
ac1cb8d3 40409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40410
40411fi
40412echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40413echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
40414 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40415 cat >>confdefs.h <<\_ACEOF
40416#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40417_ACEOF
40418
40419 else
40420 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40421echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40422 fi
40423 fi
40424 fi
40425
40426else
40427 if test "$wxUSE_THREADS" = "yes" ; then
40428 case "${host}" in
40429 *-*-mingw32* )
40430 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40431echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
40432if test "${wx_cv_cflags_mthread+set}" = set; then
40433 echo $ECHO_N "(cached) $ECHO_C" >&6
40434else
40435
9b8888f9
VZ
40436 CFLAGS_OLD="$CFLAGS"
40437 CFLAGS="-mthreads $CFLAGS"
a848cd7e
SC
40438 cat >conftest.$ac_ext <<_ACEOF
40439/* confdefs.h. */
40440_ACEOF
40441cat confdefs.h >>conftest.$ac_ext
40442cat >>conftest.$ac_ext <<_ACEOF
40443/* end confdefs.h. */
40444
40445int
40446main ()
40447{
40448
40449 ;
40450 return 0;
40451}
40452_ACEOF
40453rm -f conftest.$ac_objext
40454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40455 (eval $ac_compile) 2>conftest.er1
a848cd7e 40456 ac_status=$?
ac1cb8d3
VS
40457 grep -v '^ *+' conftest.er1 >conftest.err
40458 rm -f conftest.er1
40459 cat conftest.err >&5
a848cd7e
SC
40460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40461 (exit $ac_status); } &&
fd5199d6 40462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40464 (eval $ac_try) 2>&5
40465 ac_status=$?
40466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40467 (exit $ac_status); }; } &&
40468 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
40474 wx_cv_cflags_mthread=yes
40475else
40476 echo "$as_me: failed program was:" >&5
40477sed 's/^/| /' conftest.$ac_ext >&5
40478
40479wx_cv_cflags_mthread=no
40480
40481fi
ac1cb8d3 40482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40483
40484
40485fi
40486echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40487echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
40488
40489 if test "$wx_cv_cflags_mthread" = "yes"; then
9b8888f9 40490 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
a848cd7e
SC
40491 LDFLAGS="$LDFLAGS -mthreads"
40492 else
9b8888f9 40493 CFLAGS="$CFLAGS_OLD"
a848cd7e
SC
40494 fi
40495 ;;
40496 *-pc-os2*emx )
5ff751d6 40497 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
40498 LDFLAGS="$LDFLAGS -Zmt"
40499 ;;
40500 esac
40501 fi
40502fi
40503
004ee6da
RL
40504echo "$as_me:$LINENO: checking for localtime_r" >&5
40505echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
40506if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
40507 echo $ECHO_N "(cached) $ECHO_C" >&6
40508else
40509 cat >conftest.$ac_ext <<_ACEOF
40510/* confdefs.h. */
40511_ACEOF
40512cat confdefs.h >>conftest.$ac_ext
40513cat >>conftest.$ac_ext <<_ACEOF
40514/* end confdefs.h. */
004ee6da 40515/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 40516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 40517#define localtime_r innocuous_localtime_r
ac1cb8d3 40518
a848cd7e 40519/* System header to define __stub macros and hopefully few prototypes,
004ee6da 40520 which can conflict with char localtime_r (); below.
a848cd7e
SC
40521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40522 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40523
a848cd7e
SC
40524#ifdef __STDC__
40525# include <limits.h>
40526#else
40527# include <assert.h>
40528#endif
ac1cb8d3 40529
004ee6da 40530#undef localtime_r
ac1cb8d3 40531
a848cd7e
SC
40532/* Override any gcc2 internal prototype to avoid an error. */
40533#ifdef __cplusplus
40534extern "C"
40535{
40536#endif
40537/* We use char because int might match the return type of a gcc2
40538 builtin and then its argument prototype would still apply. */
004ee6da 40539char localtime_r ();
a848cd7e
SC
40540/* The GNU C library defines this for functions which it implements
40541 to always fail with ENOSYS. Some functions are actually named
40542 something starting with __ and the normal name is an alias. */
004ee6da 40543#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
40544choke me
40545#else
004ee6da 40546char (*f) () = localtime_r;
a848cd7e
SC
40547#endif
40548#ifdef __cplusplus
40549}
40550#endif
40551
40552int
40553main ()
40554{
004ee6da
RL
40555return f != localtime_r;
40556 ;
40557 return 0;
40558}
40559_ACEOF
40560rm -f conftest.$ac_objext conftest$ac_exeext
40561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40562 (eval $ac_link) 2>conftest.er1
40563 ac_status=$?
40564 grep -v '^ *+' conftest.er1 >conftest.err
40565 rm -f conftest.er1
40566 cat conftest.err >&5
40567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40568 (exit $ac_status); } &&
fd5199d6 40569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40571 (eval $ac_try) 2>&5
40572 ac_status=$?
40573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40574 (exit $ac_status); }; } &&
40575 { ac_try='test -s conftest$ac_exeext'
40576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40577 (eval $ac_try) 2>&5
40578 ac_status=$?
40579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40580 (exit $ac_status); }; }; then
40581 ac_cv_func_localtime_r=yes
40582else
40583 echo "$as_me: failed program was:" >&5
40584sed 's/^/| /' conftest.$ac_ext >&5
40585
40586ac_cv_func_localtime_r=no
40587fi
40588rm -f conftest.err conftest.$ac_objext \
40589 conftest$ac_exeext conftest.$ac_ext
40590fi
40591echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40592echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
40593if test $ac_cv_func_localtime_r = yes; then
40594 cat >>confdefs.h <<\_ACEOF
40595#define HAVE_LOCALTIME_R 1
40596_ACEOF
40597
40598fi
40599
40600echo "$as_me:$LINENO: checking for gmtime_r" >&5
40601echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
40602if test "${ac_cv_func_gmtime_r+set}" = set; then
40603 echo $ECHO_N "(cached) $ECHO_C" >&6
40604else
40605 cat >conftest.$ac_ext <<_ACEOF
40606/* confdefs.h. */
40607_ACEOF
40608cat confdefs.h >>conftest.$ac_ext
40609cat >>conftest.$ac_ext <<_ACEOF
40610/* end confdefs.h. */
40611/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40613#define gmtime_r innocuous_gmtime_r
40614
40615/* System header to define __stub macros and hopefully few prototypes,
40616 which can conflict with char gmtime_r (); below.
40617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40618 <limits.h> exists even on freestanding compilers. */
40619
40620#ifdef __STDC__
40621# include <limits.h>
40622#else
40623# include <assert.h>
40624#endif
40625
40626#undef gmtime_r
40627
40628/* Override any gcc2 internal prototype to avoid an error. */
40629#ifdef __cplusplus
40630extern "C"
40631{
40632#endif
40633/* We use char because int might match the return type of a gcc2
40634 builtin and then its argument prototype would still apply. */
40635char gmtime_r ();
40636/* The GNU C library defines this for functions which it implements
40637 to always fail with ENOSYS. Some functions are actually named
40638 something starting with __ and the normal name is an alias. */
40639#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
40640choke me
40641#else
40642char (*f) () = gmtime_r;
40643#endif
40644#ifdef __cplusplus
40645}
40646#endif
40647
40648int
40649main ()
40650{
40651return f != gmtime_r;
40652 ;
40653 return 0;
40654}
40655_ACEOF
40656rm -f conftest.$ac_objext conftest$ac_exeext
40657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40658 (eval $ac_link) 2>conftest.er1
40659 ac_status=$?
40660 grep -v '^ *+' conftest.er1 >conftest.err
40661 rm -f conftest.er1
40662 cat conftest.err >&5
40663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40664 (exit $ac_status); } &&
fd5199d6 40665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40667 (eval $ac_try) 2>&5
40668 ac_status=$?
40669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40670 (exit $ac_status); }; } &&
40671 { ac_try='test -s conftest$ac_exeext'
40672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40673 (eval $ac_try) 2>&5
40674 ac_status=$?
40675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40676 (exit $ac_status); }; }; then
40677 ac_cv_func_gmtime_r=yes
40678else
40679 echo "$as_me: failed program was:" >&5
40680sed 's/^/| /' conftest.$ac_ext >&5
40681
40682ac_cv_func_gmtime_r=no
40683fi
40684rm -f conftest.err conftest.$ac_objext \
40685 conftest$ac_exeext conftest.$ac_ext
40686fi
40687echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40688echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
40689if test $ac_cv_func_gmtime_r = yes; then
40690 cat >>confdefs.h <<\_ACEOF
40691#define HAVE_GMTIME_R 1
40692_ACEOF
40693
40694fi
40695
40696echo "$as_me:$LINENO: checking for readdir_r" >&5
40697echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
40698if test "${ac_cv_func_readdir_r+set}" = set; then
40699 echo $ECHO_N "(cached) $ECHO_C" >&6
40700else
40701 cat >conftest.$ac_ext <<_ACEOF
40702/* confdefs.h. */
40703_ACEOF
40704cat confdefs.h >>conftest.$ac_ext
40705cat >>conftest.$ac_ext <<_ACEOF
40706/* end confdefs.h. */
40707/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
40708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40709#define readdir_r innocuous_readdir_r
40710
40711/* System header to define __stub macros and hopefully few prototypes,
40712 which can conflict with char readdir_r (); below.
40713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40714 <limits.h> exists even on freestanding compilers. */
40715
40716#ifdef __STDC__
40717# include <limits.h>
40718#else
40719# include <assert.h>
40720#endif
40721
40722#undef readdir_r
40723
40724/* Override any gcc2 internal prototype to avoid an error. */
40725#ifdef __cplusplus
40726extern "C"
40727{
40728#endif
40729/* We use char because int might match the return type of a gcc2
40730 builtin and then its argument prototype would still apply. */
40731char readdir_r ();
40732/* The GNU C library defines this for functions which it implements
40733 to always fail with ENOSYS. Some functions are actually named
40734 something starting with __ and the normal name is an alias. */
40735#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
40736choke me
40737#else
40738char (*f) () = readdir_r;
40739#endif
40740#ifdef __cplusplus
40741}
40742#endif
40743
40744int
40745main ()
40746{
40747return f != readdir_r;
40748 ;
40749 return 0;
40750}
40751_ACEOF
40752rm -f conftest.$ac_objext conftest$ac_exeext
40753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40754 (eval $ac_link) 2>conftest.er1
40755 ac_status=$?
40756 grep -v '^ *+' conftest.er1 >conftest.err
40757 rm -f conftest.er1
40758 cat conftest.err >&5
40759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40760 (exit $ac_status); } &&
fd5199d6 40761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40763 (eval $ac_try) 2>&5
40764 ac_status=$?
40765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40766 (exit $ac_status); }; } &&
40767 { ac_try='test -s conftest$ac_exeext'
40768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40769 (eval $ac_try) 2>&5
40770 ac_status=$?
40771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40772 (exit $ac_status); }; }; then
40773 ac_cv_func_readdir_r=yes
40774else
40775 echo "$as_me: failed program was:" >&5
40776sed 's/^/| /' conftest.$ac_ext >&5
40777
40778ac_cv_func_readdir_r=no
40779fi
40780rm -f conftest.err conftest.$ac_objext \
40781 conftest$ac_exeext conftest.$ac_ext
40782fi
40783echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
40784echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
40785if test $ac_cv_func_readdir_r = yes; then
40786 cat >>confdefs.h <<\_ACEOF
40787#define HAVE_READDIR_R 1
40788_ACEOF
40789
40790fi
40791
004ee6da 40792
004ee6da
RL
40793
40794
40795 ac_ext=c
40796ac_cpp='$CPP $CPPFLAGS'
40797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40799ac_compiler_gnu=$ac_cv_c_compiler_gnu
40800
40801 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40802echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
40803
40804 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40805 echo $ECHO_N "(cached) $ECHO_C" >&6
40806else
40807
40808
2f6c5bb5 40809################################################################
004ee6da
RL
40810
40811ac_cv_func_which_gethostbyname_r=unknown
40812
40813#
40814# ONE ARGUMENT (sanity check)
40815#
40816
40817# This should fail, as there is no variant of gethostbyname_r() that takes
40818# a single argument. If it actually compiles, then we can assume that
40819# netdb.h is not declaring the function, and the compiler is thereby
40820# assuming an implicit prototype. In which case, we're out of luck.
40821#
40822cat >conftest.$ac_ext <<_ACEOF
40823/* confdefs.h. */
40824_ACEOF
40825cat confdefs.h >>conftest.$ac_ext
40826cat >>conftest.$ac_ext <<_ACEOF
40827/* end confdefs.h. */
40828#include <netdb.h>
40829int
40830main ()
40831{
40832
40833 char *name = "www.gnu.org";
40834 (void)gethostbyname_r(name) /* ; */
40835
40836 ;
40837 return 0;
40838}
40839_ACEOF
40840rm -f conftest.$ac_objext
40841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40842 (eval $ac_compile) 2>conftest.er1
40843 ac_status=$?
40844 grep -v '^ *+' conftest.er1 >conftest.err
40845 rm -f conftest.er1
40846 cat conftest.err >&5
40847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40848 (exit $ac_status); } &&
bb9e79c0 40849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40851 (eval $ac_try) 2>&5
40852 ac_status=$?
40853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40854 (exit $ac_status); }; } &&
40855 { ac_try='test -s conftest.$ac_objext'
40856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40857 (eval $ac_try) 2>&5
40858 ac_status=$?
40859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40860 (exit $ac_status); }; }; then
40861 ac_cv_func_which_gethostbyname_r=no
40862else
40863 echo "$as_me: failed program was:" >&5
40864sed 's/^/| /' conftest.$ac_ext >&5
40865
40866fi
40867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40868
40869#
40870# SIX ARGUMENTS
40871# (e.g. Linux)
40872#
40873
40874if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40875
40876cat >conftest.$ac_ext <<_ACEOF
40877/* confdefs.h. */
40878_ACEOF
40879cat confdefs.h >>conftest.$ac_ext
40880cat >>conftest.$ac_ext <<_ACEOF
40881/* end confdefs.h. */
40882#include <netdb.h>
40883int
40884main ()
40885{
40886
40887 char *name = "www.gnu.org";
40888 struct hostent ret, *retp;
40889 char buf[1024];
40890 int buflen = 1024;
40891 int my_h_errno;
40892 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40893
40894 ;
40895 return 0;
40896}
40897_ACEOF
40898rm -f conftest.$ac_objext
40899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40900 (eval $ac_compile) 2>conftest.er1
40901 ac_status=$?
40902 grep -v '^ *+' conftest.er1 >conftest.err
40903 rm -f conftest.er1
40904 cat conftest.err >&5
40905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40906 (exit $ac_status); } &&
bb9e79c0 40907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40909 (eval $ac_try) 2>&5
40910 ac_status=$?
40911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40912 (exit $ac_status); }; } &&
40913 { ac_try='test -s conftest.$ac_objext'
40914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40915 (eval $ac_try) 2>&5
40916 ac_status=$?
40917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40918 (exit $ac_status); }; }; then
40919 ac_cv_func_which_gethostbyname_r=six
40920else
40921 echo "$as_me: failed program was:" >&5
40922sed 's/^/| /' conftest.$ac_ext >&5
40923
40924fi
40925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40926
40927fi
40928
40929#
40930# FIVE ARGUMENTS
40931# (e.g. Solaris)
40932#
40933
40934if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40935
40936cat >conftest.$ac_ext <<_ACEOF
40937/* confdefs.h. */
40938_ACEOF
40939cat confdefs.h >>conftest.$ac_ext
40940cat >>conftest.$ac_ext <<_ACEOF
40941/* end confdefs.h. */
40942#include <netdb.h>
40943int
40944main ()
40945{
40946
40947 char *name = "www.gnu.org";
40948 struct hostent ret;
40949 char buf[1024];
40950 int buflen = 1024;
40951 int my_h_errno;
40952 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40953
40954 ;
40955 return 0;
40956}
40957_ACEOF
40958rm -f conftest.$ac_objext
40959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40960 (eval $ac_compile) 2>conftest.er1
40961 ac_status=$?
40962 grep -v '^ *+' conftest.er1 >conftest.err
40963 rm -f conftest.er1
40964 cat conftest.err >&5
40965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40966 (exit $ac_status); } &&
bb9e79c0 40967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40969 (eval $ac_try) 2>&5
40970 ac_status=$?
40971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40972 (exit $ac_status); }; } &&
40973 { ac_try='test -s conftest.$ac_objext'
40974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40975 (eval $ac_try) 2>&5
40976 ac_status=$?
40977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40978 (exit $ac_status); }; }; then
40979 ac_cv_func_which_gethostbyname_r=five
40980else
40981 echo "$as_me: failed program was:" >&5
40982sed 's/^/| /' conftest.$ac_ext >&5
40983
40984fi
40985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40986
40987fi
40988
40989#
40990# THREE ARGUMENTS
40991# (e.g. AIX, HP-UX, Tru64)
40992#
40993
40994if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40995
40996cat >conftest.$ac_ext <<_ACEOF
40997/* confdefs.h. */
40998_ACEOF
40999cat confdefs.h >>conftest.$ac_ext
41000cat >>conftest.$ac_ext <<_ACEOF
41001/* end confdefs.h. */
41002#include <netdb.h>
41003int
41004main ()
41005{
41006
41007 char *name = "www.gnu.org";
41008 struct hostent ret;
41009 struct hostent_data data;
41010 (void)gethostbyname_r(name, &ret, &data) /* ; */
41011
41012 ;
41013 return 0;
41014}
41015_ACEOF
41016rm -f conftest.$ac_objext
41017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41018 (eval $ac_compile) 2>conftest.er1
41019 ac_status=$?
41020 grep -v '^ *+' conftest.er1 >conftest.err
41021 rm -f conftest.er1
41022 cat conftest.err >&5
41023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41024 (exit $ac_status); } &&
bb9e79c0 41025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41027 (eval $ac_try) 2>&5
41028 ac_status=$?
41029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41030 (exit $ac_status); }; } &&
41031 { ac_try='test -s conftest.$ac_objext'
41032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41033 (eval $ac_try) 2>&5
41034 ac_status=$?
41035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41036 (exit $ac_status); }; }; then
41037 ac_cv_func_which_gethostbyname_r=three
41038else
41039 echo "$as_me: failed program was:" >&5
41040sed 's/^/| /' conftest.$ac_ext >&5
41041
41042fi
41043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41044
41045fi
41046
2f6c5bb5 41047################################################################
004ee6da
RL
41048
41049
41050fi
41051
41052case "$ac_cv_func_which_gethostbyname_r" in
41053 three)
41054 echo "$as_me:$LINENO: result: three" >&5
41055echo "${ECHO_T}three" >&6
41056 cat >>confdefs.h <<\_ACEOF
41057#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
41058_ACEOF
41059
41060 ;;
41061
41062 five)
41063 echo "$as_me:$LINENO: result: five" >&5
41064echo "${ECHO_T}five" >&6
41065 cat >>confdefs.h <<\_ACEOF
41066#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
41067_ACEOF
41068
41069 ;;
41070
41071 six)
41072 echo "$as_me:$LINENO: result: six" >&5
41073echo "${ECHO_T}six" >&6
41074 cat >>confdefs.h <<\_ACEOF
41075#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
41076_ACEOF
41077
41078 ;;
41079
41080 no)
41081 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
41082echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
41083 ;;
41084
41085 unknown)
41086 echo "$as_me:$LINENO: result: can't tell" >&5
41087echo "${ECHO_T}can't tell" >&6
41088 ;;
41089
41090 *)
41091 { { echo "$as_me:$LINENO: error: internal error" >&5
41092echo "$as_me: error: internal error" >&2;}
41093 { (exit 1); exit 1; }; }
41094 ;;
41095esac
41096
fd5199d6
VZ
41097ac_ext=c
41098ac_cpp='$CPP $CPPFLAGS'
41099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41101ac_compiler_gnu=$ac_cv_c_compiler_gnu
004ee6da
RL
41102
41103
41104
41105 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
ec3edcc9 41106 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
004ee6da
RL
41107 echo "$as_me:$LINENO: checking for gethostbyname" >&5
41108echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
41109if test "${ac_cv_func_gethostbyname+set}" = set; then
41110 echo $ECHO_N "(cached) $ECHO_C" >&6
41111else
41112 cat >conftest.$ac_ext <<_ACEOF
41113/* confdefs.h. */
41114_ACEOF
41115cat confdefs.h >>conftest.$ac_ext
41116cat >>conftest.$ac_ext <<_ACEOF
41117/* end confdefs.h. */
41118/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41120#define gethostbyname innocuous_gethostbyname
41121
41122/* System header to define __stub macros and hopefully few prototypes,
41123 which can conflict with char gethostbyname (); below.
41124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41125 <limits.h> exists even on freestanding compilers. */
41126
41127#ifdef __STDC__
41128# include <limits.h>
41129#else
41130# include <assert.h>
41131#endif
41132
41133#undef gethostbyname
41134
41135/* Override any gcc2 internal prototype to avoid an error. */
41136#ifdef __cplusplus
41137extern "C"
41138{
41139#endif
41140/* We use char because int might match the return type of a gcc2
41141 builtin and then its argument prototype would still apply. */
41142char gethostbyname ();
41143/* The GNU C library defines this for functions which it implements
41144 to always fail with ENOSYS. Some functions are actually named
41145 something starting with __ and the normal name is an alias. */
41146#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
41147choke me
41148#else
41149char (*f) () = gethostbyname;
41150#endif
41151#ifdef __cplusplus
41152}
41153#endif
41154
41155int
41156main ()
41157{
41158return f != gethostbyname;
41159 ;
41160 return 0;
41161}
41162_ACEOF
41163rm -f conftest.$ac_objext conftest$ac_exeext
41164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41165 (eval $ac_link) 2>conftest.er1
41166 ac_status=$?
41167 grep -v '^ *+' conftest.er1 >conftest.err
41168 rm -f conftest.er1
41169 cat conftest.err >&5
41170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41171 (exit $ac_status); } &&
fd5199d6 41172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41174 (eval $ac_try) 2>&5
41175 ac_status=$?
41176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41177 (exit $ac_status); }; } &&
41178 { ac_try='test -s conftest$ac_exeext'
41179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41180 (eval $ac_try) 2>&5
41181 ac_status=$?
41182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41183 (exit $ac_status); }; }; then
41184 ac_cv_func_gethostbyname=yes
41185else
41186 echo "$as_me: failed program was:" >&5
41187sed 's/^/| /' conftest.$ac_ext >&5
41188
41189ac_cv_func_gethostbyname=no
41190fi
41191rm -f conftest.err conftest.$ac_objext \
41192 conftest$ac_exeext conftest.$ac_ext
41193fi
41194echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41195echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
41196if test $ac_cv_func_gethostbyname = yes; then
41197 cat >>confdefs.h <<\_ACEOF
41198#define HAVE_GETHOSTBYNAME 1
41199_ACEOF
41200
41201fi
41202
41203 fi
3ecd9f92 41204
81c330c6
VZ
41205echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41206echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
41207if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
004ee6da
RL
41208 echo $ECHO_N "(cached) $ECHO_C" >&6
41209else
3ecd9f92 41210
fd5199d6
VZ
41211 ac_ext=cc
41212ac_cpp='$CXXCPP $CPPFLAGS'
41213ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41214ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41215ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41216
41217
3ecd9f92 41218 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41219/* confdefs.h. */
41220_ACEOF
41221cat confdefs.h >>conftest.$ac_ext
41222cat >>conftest.$ac_ext <<_ACEOF
41223/* end confdefs.h. */
81c330c6 41224#include <netdb.h>
004ee6da
RL
41225int
41226main ()
41227{
41228
81c330c6
VZ
41229 char *name;
41230 char *proto;
41231 struct servent *se, *res;
41232 char buffer[2048];
41233 int buflen = 2048;
41234 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
41235
41236 ;
41237 return 0;
41238}
41239_ACEOF
41240rm -f conftest.$ac_objext
41241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41242 (eval $ac_compile) 2>conftest.er1
41243 ac_status=$?
41244 grep -v '^ *+' conftest.er1 >conftest.err
41245 rm -f conftest.er1
41246 cat conftest.err >&5
41247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41248 (exit $ac_status); } &&
bb9e79c0 41249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41251 (eval $ac_try) 2>&5
41252 ac_status=$?
41253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41254 (exit $ac_status); }; } &&
41255 { ac_try='test -s conftest.$ac_objext'
41256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41257 (eval $ac_try) 2>&5
41258 ac_status=$?
41259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41260 (exit $ac_status); }; }; then
81c330c6 41261 ac_cv_func_which_getservbyname_r=six
004ee6da
RL
41262else
41263 echo "$as_me: failed program was:" >&5
41264sed 's/^/| /' conftest.$ac_ext >&5
41265
3ecd9f92 41266
81c330c6 41267 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41268/* confdefs.h. */
41269_ACEOF
41270cat confdefs.h >>conftest.$ac_ext
41271cat >>conftest.$ac_ext <<_ACEOF
41272/* end confdefs.h. */
81c330c6 41273#include <netdb.h>
004ee6da
RL
41274int
41275main ()
41276{
41277
81c330c6
VZ
41278 char *name;
41279 char *proto;
41280 struct servent *se;
41281 char buffer[2048];
41282 int buflen = 2048;
41283 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
41284
41285 ;
41286 return 0;
41287}
41288_ACEOF
41289rm -f conftest.$ac_objext
41290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41291 (eval $ac_compile) 2>conftest.er1
41292 ac_status=$?
41293 grep -v '^ *+' conftest.er1 >conftest.err
41294 rm -f conftest.er1
41295 cat conftest.err >&5
41296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41297 (exit $ac_status); } &&
bb9e79c0 41298 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41300 (eval $ac_try) 2>&5
41301 ac_status=$?
41302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41303 (exit $ac_status); }; } &&
41304 { ac_try='test -s conftest.$ac_objext'
41305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41306 (eval $ac_try) 2>&5
41307 ac_status=$?
41308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41309 (exit $ac_status); }; }; then
81c330c6 41310 ac_cv_func_which_getservbyname_r=five
004ee6da
RL
41311else
41312 echo "$as_me: failed program was:" >&5
41313sed 's/^/| /' conftest.$ac_ext >&5
41314
3ecd9f92 41315
81c330c6 41316 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41317/* confdefs.h. */
41318_ACEOF
41319cat confdefs.h >>conftest.$ac_ext
41320cat >>conftest.$ac_ext <<_ACEOF
41321/* end confdefs.h. */
81c330c6 41322#include <netdb.h>
004ee6da
RL
41323int
41324main ()
41325{
41326
81c330c6
VZ
41327 char *name;
41328 char *proto;
41329 struct servent *se;
41330 struct servent_data data;
41331 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
41332
41333 ;
41334 return 0;
41335}
41336_ACEOF
41337rm -f conftest.$ac_objext
41338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41339 (eval $ac_compile) 2>conftest.er1
41340 ac_status=$?
41341 grep -v '^ *+' conftest.er1 >conftest.err
41342 rm -f conftest.er1
41343 cat conftest.err >&5
41344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41345 (exit $ac_status); } &&
bb9e79c0 41346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41348 (eval $ac_try) 2>&5
41349 ac_status=$?
41350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41351 (exit $ac_status); }; } &&
41352 { ac_try='test -s conftest.$ac_objext'
41353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41354 (eval $ac_try) 2>&5
41355 ac_status=$?
41356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41357 (exit $ac_status); }; }; then
81c330c6 41358 ac_cv_func_which_getservbyname_r=four
004ee6da
RL
41359else
41360 echo "$as_me: failed program was:" >&5
41361sed 's/^/| /' conftest.$ac_ext >&5
41362
41363ac_cv_func_which_getservbyname_r=no
81c330c6 41364
004ee6da
RL
41365fi
41366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41367
3ecd9f92 41368
004ee6da
RL
41369fi
41370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41371
3ecd9f92 41372
004ee6da
RL
41373fi
41374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fd5199d6
VZ
41375 ac_ext=c
41376ac_cpp='$CPP $CPPFLAGS'
41377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41379ac_compiler_gnu=$ac_cv_c_compiler_gnu
41380
3ecd9f92 41381
004ee6da 41382
3ecd9f92
MW
41383fi
41384echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41385echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
41386
41387if test $ac_cv_func_which_getservbyname_r = six; then
41388 cat >>confdefs.h <<\_ACEOF
41389#define HAVE_FUNC_GETSERVBYNAME_R_6 1
41390_ACEOF
41391
41392elif test $ac_cv_func_which_getservbyname_r = five; then
41393 cat >>confdefs.h <<\_ACEOF
41394#define HAVE_FUNC_GETSERVBYNAME_R_5 1
41395_ACEOF
41396
41397elif test $ac_cv_func_which_getservbyname_r = four; then
41398 cat >>confdefs.h <<\_ACEOF
41399#define HAVE_FUNC_GETSERVBYNAME_R_4 1
41400_ACEOF
41401
004ee6da
RL
41402fi
41403
41404
41405 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
ec3edcc9 41406 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
004ee6da
RL
41407
41408for ac_func in getservbyname
41409do
41410as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41411echo "$as_me:$LINENO: checking for $ac_func" >&5
41412echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41413if eval "test \"\${$as_ac_var+set}\" = set"; then
41414 echo $ECHO_N "(cached) $ECHO_C" >&6
41415else
41416 cat >conftest.$ac_ext <<_ACEOF
41417/* confdefs.h. */
41418_ACEOF
41419cat confdefs.h >>conftest.$ac_ext
41420cat >>conftest.$ac_ext <<_ACEOF
41421/* end confdefs.h. */
41422/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41424#define $ac_func innocuous_$ac_func
41425
41426/* System header to define __stub macros and hopefully few prototypes,
41427 which can conflict with char $ac_func (); below.
41428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41429 <limits.h> exists even on freestanding compilers. */
41430
41431#ifdef __STDC__
41432# include <limits.h>
41433#else
41434# include <assert.h>
41435#endif
41436
41437#undef $ac_func
41438
41439/* Override any gcc2 internal prototype to avoid an error. */
41440#ifdef __cplusplus
41441extern "C"
41442{
41443#endif
41444/* We use char because int might match the return type of a gcc2
41445 builtin and then its argument prototype would still apply. */
41446char $ac_func ();
41447/* The GNU C library defines this for functions which it implements
41448 to always fail with ENOSYS. Some functions are actually named
41449 something starting with __ and the normal name is an alias. */
41450#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41451choke me
41452#else
41453char (*f) () = $ac_func;
41454#endif
41455#ifdef __cplusplus
41456}
41457#endif
41458
41459int
41460main ()
41461{
41462return f != $ac_func;
41463 ;
41464 return 0;
41465}
41466_ACEOF
41467rm -f conftest.$ac_objext conftest$ac_exeext
41468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41469 (eval $ac_link) 2>conftest.er1
41470 ac_status=$?
41471 grep -v '^ *+' conftest.er1 >conftest.err
41472 rm -f conftest.er1
41473 cat conftest.err >&5
41474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41475 (exit $ac_status); } &&
fd5199d6 41476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41478 (eval $ac_try) 2>&5
41479 ac_status=$?
41480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41481 (exit $ac_status); }; } &&
41482 { ac_try='test -s conftest$ac_exeext'
41483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41484 (eval $ac_try) 2>&5
41485 ac_status=$?
41486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41487 (exit $ac_status); }; }; then
41488 eval "$as_ac_var=yes"
41489else
41490 echo "$as_me: failed program was:" >&5
41491sed 's/^/| /' conftest.$ac_ext >&5
41492
41493eval "$as_ac_var=no"
41494fi
41495rm -f conftest.err conftest.$ac_objext \
41496 conftest$ac_exeext conftest.$ac_ext
41497fi
41498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41499echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41500if test `eval echo '${'$as_ac_var'}'` = yes; then
41501 cat >>confdefs.h <<_ACEOF
41502#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41503_ACEOF
41504 cat >>confdefs.h <<\_ACEOF
41505#define HAVE_GETSERVBYNAME 1
41506_ACEOF
41507
41508fi
41509done
41510
41511 fi
41512
004ee6da
RL
41513if test "$wxUSE_THREADS" = "yes"; then
41514 cat >>confdefs.h <<\_ACEOF
41515#define wxUSE_THREADS 1
41516_ACEOF
41517
41518
41519 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41520else
56632e81 41521 if test "$wx_cv_func_strtok_r" = "yes"; then
004ee6da
RL
41522 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41523echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
41524 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41525 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41526 echo "$as_me:$LINENO: result: yes" >&5
41527echo "${ECHO_T}yes" >&6
41528 else
41529 echo "$as_me:$LINENO: result: no" >&5
41530echo "${ECHO_T}no" >&6
41531 fi
41532 fi
41533fi
41534
41535if test "$WXGTK20" = 1 ; then
41536 cat >>confdefs.h <<_ACEOF
41537#define __WXGTK20__ $WXGTK20
41538_ACEOF
41539
41540 WXGTK12=1
41541fi
41542
41543if test "$WXGTK12" = 1 ; then
41544 cat >>confdefs.h <<_ACEOF
41545#define __WXGTK12__ $WXGTK12
41546_ACEOF
41547
41548fi
41549
41550if test "$WXGTK127" = 1 ; then
41551 cat >>confdefs.h <<_ACEOF
41552#define __WXGTK127__ $WXGTK127
41553_ACEOF
41554
41555fi
41556
41557if test "$WXGPE" = 1 ; then
41558 cat >>confdefs.h <<_ACEOF
41559#define __WXGPE__ $WXGPE
41560_ACEOF
41561
41562fi
41563
41564DEBUG_CFLAGS=
41565if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41566 DEBUG_CFLAGS="-g"
41567 wxUSE_OPTIMISE=no
41568fi
41569
41570if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41571 wxUSE_DEBUG_INFO=yes
41572 if test "$GCC" = yes; then
41573 DEBUG_CFLAGS="-ggdb"
41574 fi
41575fi
41576
41577if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41578 cat >>confdefs.h <<\_ACEOF
41579#define WXDEBUG 1
41580_ACEOF
41581
41582 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41583else
41584 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
41585 if test "x$wxGTK_VERSION" = "x1" ; then
41586 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41587 fi
004ee6da
RL
41588 fi
41589fi
41590
41591if test "$wxUSE_MEM_TRACING" = "yes" ; then
41592 cat >>confdefs.h <<\_ACEOF
41593#define wxUSE_MEMORY_TRACING 1
41594_ACEOF
41595
41596 cat >>confdefs.h <<\_ACEOF
41597#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41598_ACEOF
41599
41600 cat >>confdefs.h <<\_ACEOF
41601#define wxUSE_DEBUG_NEW_ALWAYS 1
41602_ACEOF
41603
41604 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41605fi
41606
41607if test "$wxUSE_DMALLOC" = "yes" ; then
41608 DMALLOC_LIBS="-ldmallocthcxx"
41609fi
41610
41611PROFILE_FLAGS=
41612if test "$wxUSE_PROFILE" = "yes" ; then
41613 PROFILE_FLAGS=" -pg"
41614fi
41615
41616if test "$GCC" = "yes" ; then
41617 if test "$wxUSE_NO_RTTI" = "yes" ; then
41618 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41619 fi
41620 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41621 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41622 fi
41623 if test "$wxUSE_PERMISSIVE" = "yes" ; then
41624 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41625 fi
41626
41627 case "${host}" in
41628 powerpc*-*-aix* )
41629 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41630 ;;
41631 *-hppa* )
41632 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41633 ;;
41634 esac
41635fi
41636
41637OPTIMISE_CFLAGS=
41638if test "$wxUSE_OPTIMISE" = "no" ; then
41639 if test "$GCC" = yes ; then
41640 OPTIMISE_CFLAGS="-O0"
41641 fi
41642else
41643 if test "$GCC" = yes ; then
e5efa97e
VZ
41644 case "${host}" in
41645 *-pc-os2_emx | *-pc-os2-emx )
41646 OPTIMISE_CFLAGS="-O2"
41647 ;;
41648 *)
41649 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41650 ;;
41651 esac
004ee6da
RL
41652 else
41653 OPTIMISE_CFLAGS="-O"
41654 fi
41655fi
41656
41657
41658if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
41659 cat >>confdefs.h <<\_ACEOF
41660#define WXWIN_COMPATIBILITY_2_4 1
41661_ACEOF
41662
41663
41664 WXWIN_COMPATIBILITY_2_6="yes"
41665fi
41666
41667if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
41668 cat >>confdefs.h <<\_ACEOF
41669#define WXWIN_COMPATIBILITY_2_6 1
41670_ACEOF
41671
41672fi
41673
41674
41675if test "$wxUSE_GUI" = "yes"; then
41676 cat >>confdefs.h <<\_ACEOF
41677#define wxUSE_GUI 1
41678_ACEOF
41679
41680
41681 fi
41682
41683
41684if test "$wxUSE_UNIX" = "yes"; then
41685 cat >>confdefs.h <<\_ACEOF
41686#define wxUSE_UNIX 1
41687_ACEOF
41688
41689fi
41690
41691
41692if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41693
41694 HAVE_DL_FUNCS=0
41695 HAVE_SHL_FUNCS=0
41696 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41697 if test "$USE_DARWIN" = 1; then
41698 HAVE_DL_FUNCS=1
41699 elif test "$USE_DOS" = 1; then
41700 HAVE_DL_FUNCS=0
41701 else
41702
41703for ac_func in dlopen
41704do
41705as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41706echo "$as_me:$LINENO: checking for $ac_func" >&5
41707echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41708if eval "test \"\${$as_ac_var+set}\" = set"; then
41709 echo $ECHO_N "(cached) $ECHO_C" >&6
41710else
41711 cat >conftest.$ac_ext <<_ACEOF
41712/* confdefs.h. */
41713_ACEOF
41714cat confdefs.h >>conftest.$ac_ext
41715cat >>conftest.$ac_ext <<_ACEOF
41716/* end confdefs.h. */
41717/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41719#define $ac_func innocuous_$ac_func
41720
41721/* System header to define __stub macros and hopefully few prototypes,
41722 which can conflict with char $ac_func (); below.
41723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41724 <limits.h> exists even on freestanding compilers. */
41725
41726#ifdef __STDC__
41727# include <limits.h>
41728#else
41729# include <assert.h>
41730#endif
41731
41732#undef $ac_func
41733
41734/* Override any gcc2 internal prototype to avoid an error. */
41735#ifdef __cplusplus
41736extern "C"
41737{
41738#endif
41739/* We use char because int might match the return type of a gcc2
41740 builtin and then its argument prototype would still apply. */
41741char $ac_func ();
41742/* The GNU C library defines this for functions which it implements
41743 to always fail with ENOSYS. Some functions are actually named
41744 something starting with __ and the normal name is an alias. */
41745#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41746choke me
41747#else
41748char (*f) () = $ac_func;
41749#endif
41750#ifdef __cplusplus
41751}
41752#endif
41753
41754int
41755main ()
41756{
41757return f != $ac_func;
a848cd7e
SC
41758 ;
41759 return 0;
41760}
41761_ACEOF
41762rm -f conftest.$ac_objext conftest$ac_exeext
41763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41764 (eval $ac_link) 2>conftest.er1
a848cd7e 41765 ac_status=$?
ac1cb8d3
VS
41766 grep -v '^ *+' conftest.er1 >conftest.err
41767 rm -f conftest.er1
41768 cat conftest.err >&5
a848cd7e
SC
41769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41770 (exit $ac_status); } &&
fd5199d6 41771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41773 (eval $ac_try) 2>&5
41774 ac_status=$?
41775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41776 (exit $ac_status); }; } &&
41777 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41779 (eval $ac_try) 2>&5
41780 ac_status=$?
41781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41782 (exit $ac_status); }; }; then
41783 eval "$as_ac_var=yes"
41784else
41785 echo "$as_me: failed program was:" >&5
41786sed 's/^/| /' conftest.$ac_ext >&5
41787
41788eval "$as_ac_var=no"
41789fi
ac1cb8d3
VS
41790rm -f conftest.err conftest.$ac_objext \
41791 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41792fi
41793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41794echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41795if test `eval echo '${'$as_ac_var'}'` = yes; then
41796 cat >>confdefs.h <<_ACEOF
41797#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41798_ACEOF
41799
41800 cat >>confdefs.h <<\_ACEOF
41801#define HAVE_DLOPEN 1
41802_ACEOF
41803
41804 HAVE_DL_FUNCS=1
41805
41806else
41807
41808 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41809echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
41810if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41811 echo $ECHO_N "(cached) $ECHO_C" >&6
41812else
41813 ac_check_lib_save_LIBS=$LIBS
41814LIBS="-ldl $LIBS"
41815cat >conftest.$ac_ext <<_ACEOF
41816/* confdefs.h. */
41817_ACEOF
41818cat confdefs.h >>conftest.$ac_ext
41819cat >>conftest.$ac_ext <<_ACEOF
41820/* end confdefs.h. */
41821
41822/* Override any gcc2 internal prototype to avoid an error. */
41823#ifdef __cplusplus
41824extern "C"
41825#endif
41826/* We use char because int might match the return type of a gcc2
41827 builtin and then its argument prototype would still apply. */
41828char dlopen ();
41829int
41830main ()
41831{
41832dlopen ();
41833 ;
41834 return 0;
41835}
41836_ACEOF
41837rm -f conftest.$ac_objext conftest$ac_exeext
41838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41839 (eval $ac_link) 2>conftest.er1
a848cd7e 41840 ac_status=$?
ac1cb8d3
VS
41841 grep -v '^ *+' conftest.er1 >conftest.err
41842 rm -f conftest.er1
41843 cat conftest.err >&5
a848cd7e
SC
41844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41845 (exit $ac_status); } &&
fd5199d6 41846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41848 (eval $ac_try) 2>&5
41849 ac_status=$?
41850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41851 (exit $ac_status); }; } &&
41852 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41854 (eval $ac_try) 2>&5
41855 ac_status=$?
41856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41857 (exit $ac_status); }; }; then
41858 ac_cv_lib_dl_dlopen=yes
41859else
41860 echo "$as_me: failed program was:" >&5
41861sed 's/^/| /' conftest.$ac_ext >&5
41862
41863ac_cv_lib_dl_dlopen=no
41864fi
ac1cb8d3
VS
41865rm -f conftest.err conftest.$ac_objext \
41866 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41867LIBS=$ac_check_lib_save_LIBS
41868fi
41869echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41870echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
41871if test $ac_cv_lib_dl_dlopen = yes; then
41872
41873 cat >>confdefs.h <<\_ACEOF
41874#define HAVE_DLOPEN 1
41875_ACEOF
41876
41877 HAVE_DL_FUNCS=1
41878 DL_LINK=" -ldl$DL_LINK"
41879
41880else
41881
41882
41883for ac_func in shl_load
41884do
41885as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41886echo "$as_me:$LINENO: checking for $ac_func" >&5
41887echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41888if eval "test \"\${$as_ac_var+set}\" = set"; then
41889 echo $ECHO_N "(cached) $ECHO_C" >&6
41890else
41891 cat >conftest.$ac_ext <<_ACEOF
41892/* confdefs.h. */
41893_ACEOF
41894cat confdefs.h >>conftest.$ac_ext
41895cat >>conftest.$ac_ext <<_ACEOF
41896/* end confdefs.h. */
ac1cb8d3
VS
41897/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41899#define $ac_func innocuous_$ac_func
41900
a848cd7e
SC
41901/* System header to define __stub macros and hopefully few prototypes,
41902 which can conflict with char $ac_func (); below.
41903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41904 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41905
a848cd7e
SC
41906#ifdef __STDC__
41907# include <limits.h>
41908#else
41909# include <assert.h>
41910#endif
ac1cb8d3
VS
41911
41912#undef $ac_func
41913
a848cd7e
SC
41914/* Override any gcc2 internal prototype to avoid an error. */
41915#ifdef __cplusplus
41916extern "C"
41917{
41918#endif
41919/* We use char because int might match the return type of a gcc2
41920 builtin and then its argument prototype would still apply. */
41921char $ac_func ();
41922/* The GNU C library defines this for functions which it implements
41923 to always fail with ENOSYS. Some functions are actually named
41924 something starting with __ and the normal name is an alias. */
41925#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41926choke me
41927#else
41928char (*f) () = $ac_func;
41929#endif
41930#ifdef __cplusplus
41931}
41932#endif
41933
41934int
41935main ()
41936{
41937return f != $ac_func;
41938 ;
41939 return 0;
41940}
41941_ACEOF
41942rm -f conftest.$ac_objext conftest$ac_exeext
41943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41944 (eval $ac_link) 2>conftest.er1
a848cd7e 41945 ac_status=$?
ac1cb8d3
VS
41946 grep -v '^ *+' conftest.er1 >conftest.err
41947 rm -f conftest.er1
41948 cat conftest.err >&5
a848cd7e
SC
41949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41950 (exit $ac_status); } &&
fd5199d6 41951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41953 (eval $ac_try) 2>&5
41954 ac_status=$?
41955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41956 (exit $ac_status); }; } &&
41957 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41959 (eval $ac_try) 2>&5
41960 ac_status=$?
41961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41962 (exit $ac_status); }; }; then
41963 eval "$as_ac_var=yes"
41964else
41965 echo "$as_me: failed program was:" >&5
41966sed 's/^/| /' conftest.$ac_ext >&5
41967
41968eval "$as_ac_var=no"
41969fi
ac1cb8d3
VS
41970rm -f conftest.err conftest.$ac_objext \
41971 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41972fi
41973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41974echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41975if test `eval echo '${'$as_ac_var'}'` = yes; then
41976 cat >>confdefs.h <<_ACEOF
41977#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41978_ACEOF
41979
41980 cat >>confdefs.h <<\_ACEOF
41981#define HAVE_SHL_LOAD 1
41982_ACEOF
41983
41984 HAVE_SHL_FUNCS=1
41985
41986else
41987
41988 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41989echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
41990if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41991 echo $ECHO_N "(cached) $ECHO_C" >&6
41992else
41993 ac_check_lib_save_LIBS=$LIBS
41994LIBS="-lshl_load $LIBS"
41995cat >conftest.$ac_ext <<_ACEOF
41996/* confdefs.h. */
41997_ACEOF
41998cat confdefs.h >>conftest.$ac_ext
41999cat >>conftest.$ac_ext <<_ACEOF
42000/* end confdefs.h. */
42001
42002/* Override any gcc2 internal prototype to avoid an error. */
42003#ifdef __cplusplus
42004extern "C"
42005#endif
42006/* We use char because int might match the return type of a gcc2
42007 builtin and then its argument prototype would still apply. */
42008char dld ();
42009int
42010main ()
42011{
42012dld ();
42013 ;
42014 return 0;
42015}
42016_ACEOF
42017rm -f conftest.$ac_objext conftest$ac_exeext
42018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42019 (eval $ac_link) 2>conftest.er1
a848cd7e 42020 ac_status=$?
ac1cb8d3
VS
42021 grep -v '^ *+' conftest.er1 >conftest.err
42022 rm -f conftest.er1
42023 cat conftest.err >&5
a848cd7e
SC
42024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42025 (exit $ac_status); } &&
fd5199d6 42026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42028 (eval $ac_try) 2>&5
42029 ac_status=$?
42030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42031 (exit $ac_status); }; } &&
42032 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42034 (eval $ac_try) 2>&5
42035 ac_status=$?
42036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42037 (exit $ac_status); }; }; then
42038 ac_cv_lib_shl_load_dld=yes
42039else
42040 echo "$as_me: failed program was:" >&5
42041sed 's/^/| /' conftest.$ac_ext >&5
42042
42043ac_cv_lib_shl_load_dld=no
42044fi
ac1cb8d3
VS
42045rm -f conftest.err conftest.$ac_objext \
42046 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42047LIBS=$ac_check_lib_save_LIBS
42048fi
42049echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
42050echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
42051if test $ac_cv_lib_shl_load_dld = yes; then
42052
42053 HAVE_SHL_FUNCS=1
42054 DL_LINK=" -ldld$DL_LINK"
42055
42056fi
42057
42058
42059fi
42060done
42061
42062
42063fi
42064
42065
42066fi
42067done
42068
42069
42070 if test "$HAVE_DL_FUNCS" = 1; then
42071
42072for ac_func in dlerror
42073do
42074as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42075echo "$as_me:$LINENO: checking for $ac_func" >&5
42076echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42077if eval "test \"\${$as_ac_var+set}\" = set"; then
42078 echo $ECHO_N "(cached) $ECHO_C" >&6
42079else
42080 cat >conftest.$ac_ext <<_ACEOF
42081/* confdefs.h. */
42082_ACEOF
42083cat confdefs.h >>conftest.$ac_ext
42084cat >>conftest.$ac_ext <<_ACEOF
42085/* end confdefs.h. */
ac1cb8d3
VS
42086/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42088#define $ac_func innocuous_$ac_func
42089
a848cd7e
SC
42090/* System header to define __stub macros and hopefully few prototypes,
42091 which can conflict with char $ac_func (); below.
42092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42093 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42094
a848cd7e
SC
42095#ifdef __STDC__
42096# include <limits.h>
42097#else
42098# include <assert.h>
42099#endif
ac1cb8d3
VS
42100
42101#undef $ac_func
42102
a848cd7e
SC
42103/* Override any gcc2 internal prototype to avoid an error. */
42104#ifdef __cplusplus
42105extern "C"
42106{
42107#endif
42108/* We use char because int might match the return type of a gcc2
42109 builtin and then its argument prototype would still apply. */
42110char $ac_func ();
42111/* The GNU C library defines this for functions which it implements
42112 to always fail with ENOSYS. Some functions are actually named
42113 something starting with __ and the normal name is an alias. */
42114#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42115choke me
42116#else
42117char (*f) () = $ac_func;
42118#endif
42119#ifdef __cplusplus
42120}
42121#endif
42122
42123int
42124main ()
42125{
42126return f != $ac_func;
42127 ;
42128 return 0;
42129}
42130_ACEOF
42131rm -f conftest.$ac_objext conftest$ac_exeext
42132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42133 (eval $ac_link) 2>conftest.er1
a848cd7e 42134 ac_status=$?
ac1cb8d3
VS
42135 grep -v '^ *+' conftest.er1 >conftest.err
42136 rm -f conftest.er1
42137 cat conftest.err >&5
a848cd7e
SC
42138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42139 (exit $ac_status); } &&
fd5199d6 42140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42142 (eval $ac_try) 2>&5
42143 ac_status=$?
42144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42145 (exit $ac_status); }; } &&
42146 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42148 (eval $ac_try) 2>&5
42149 ac_status=$?
42150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42151 (exit $ac_status); }; }; then
42152 eval "$as_ac_var=yes"
42153else
42154 echo "$as_me: failed program was:" >&5
42155sed 's/^/| /' conftest.$ac_ext >&5
42156
42157eval "$as_ac_var=no"
42158fi
ac1cb8d3
VS
42159rm -f conftest.err conftest.$ac_objext \
42160 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42161fi
42162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42163echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42164if test `eval echo '${'$as_ac_var'}'` = yes; then
42165 cat >>confdefs.h <<_ACEOF
42166#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42167_ACEOF
42168 cat >>confdefs.h <<\_ACEOF
42169#define HAVE_DLERROR 1
42170_ACEOF
42171
42172else
42173
42174 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42175echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
42176if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42177 echo $ECHO_N "(cached) $ECHO_C" >&6
42178else
42179 ac_check_lib_save_LIBS=$LIBS
42180LIBS="-ldl $LIBS"
42181cat >conftest.$ac_ext <<_ACEOF
42182/* confdefs.h. */
42183_ACEOF
42184cat confdefs.h >>conftest.$ac_ext
42185cat >>conftest.$ac_ext <<_ACEOF
42186/* end confdefs.h. */
42187
42188/* Override any gcc2 internal prototype to avoid an error. */
42189#ifdef __cplusplus
42190extern "C"
42191#endif
42192/* We use char because int might match the return type of a gcc2
42193 builtin and then its argument prototype would still apply. */
42194char dlerror ();
42195int
42196main ()
42197{
42198dlerror ();
42199 ;
42200 return 0;
42201}
42202_ACEOF
42203rm -f conftest.$ac_objext conftest$ac_exeext
42204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42205 (eval $ac_link) 2>conftest.er1
a848cd7e 42206 ac_status=$?
ac1cb8d3
VS
42207 grep -v '^ *+' conftest.er1 >conftest.err
42208 rm -f conftest.er1
42209 cat conftest.err >&5
a848cd7e
SC
42210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42211 (exit $ac_status); } &&
fd5199d6 42212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42214 (eval $ac_try) 2>&5
42215 ac_status=$?
42216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42217 (exit $ac_status); }; } &&
42218 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42220 (eval $ac_try) 2>&5
42221 ac_status=$?
42222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42223 (exit $ac_status); }; }; then
42224 ac_cv_lib_dl_dlerror=yes
42225else
42226 echo "$as_me: failed program was:" >&5
42227sed 's/^/| /' conftest.$ac_ext >&5
42228
42229ac_cv_lib_dl_dlerror=no
42230fi
ac1cb8d3
VS
42231rm -f conftest.err conftest.$ac_objext \
42232 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42233LIBS=$ac_check_lib_save_LIBS
42234fi
42235echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42236echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
42237if test $ac_cv_lib_dl_dlerror = yes; then
42238 cat >>confdefs.h <<\_ACEOF
42239#define HAVE_DLERROR 1
42240_ACEOF
42241
42242fi
42243
42244
42245
42246fi
42247done
42248
42249 fi
42250 fi
42251
42252 if test "$HAVE_DL_FUNCS" = 0; then
42253 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 42254 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
42255 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42256echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42257 wxUSE_DYNAMIC_LOADER=no
42258 wxUSE_DYNLIB_CLASS=no
42259 else
42260 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42261echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42262 fi
42263 fi
42264 fi
42265 fi
42266fi
42267
42268if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42269 cat >>confdefs.h <<\_ACEOF
42270#define wxUSE_DYNAMIC_LOADER 1
42271_ACEOF
42272
42273fi
42274if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42275 cat >>confdefs.h <<\_ACEOF
42276#define wxUSE_DYNLIB_CLASS 1
42277_ACEOF
42278
42279fi
42280
42281
42282
42283if test "$wxUSE_PLUGINS" = "yes" ; then
42284 if test "$wxUSE_SHARED" = "no" ; then
42285 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42286echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42287 wxUSE_PLUGINS=no
42288 fi
42289 if test "$wxUSE_MONOLITHIC" = "yes" ; then
42290 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42291echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42292 wxUSE_PLUGINS=no
42293 fi
42294 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42295 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42296echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42297 wxUSE_PLUGINS=no
42298 fi
42299 if test "$wxUSE_PLUGINS" = "yes" ; then
42300 cat >>confdefs.h <<\_ACEOF
42301#define wxUSE_PLUGINS 1
42302_ACEOF
42303
42304 fi
42305fi
42306
42307
42308if test "$wxUSE_STL" = "yes"; then
42309 cat >>confdefs.h <<\_ACEOF
42310#define wxUSE_STL 1
42311_ACEOF
42312
42313fi
42314
42315if test "$wxUSE_APPLE_IEEE" = "yes"; then
42316 cat >>confdefs.h <<\_ACEOF
42317#define wxUSE_APPLE_IEEE 1
42318_ACEOF
42319
42320fi
42321
42322if test "$wxUSE_TIMER" = "yes"; then
42323 cat >>confdefs.h <<\_ACEOF
42324#define wxUSE_TIMER 1
42325_ACEOF
42326
42327fi
42328
9c112555 42329if test "$USE_UNIX" = "1" ; then
a1b1cf33
VZ
42330 if test "$wxUSE_MGL" != 1; then
42331 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
31714590 42332echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 42333if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 42334 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 42335else
d12aef51 42336
a1b1cf33 42337 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42338/* confdefs.h. */
42339_ACEOF
42340cat confdefs.h >>conftest.$ac_ext
42341cat >>conftest.$ac_ext <<_ACEOF
42342/* end confdefs.h. */
d12aef51 42343
a1b1cf33
VZ
42344 #include <sys/ioctl.h>
42345 #include <sys/soundcard.h>
d12aef51
VZ
42346
42347int
42348main ()
42349{
42350
a1b1cf33 42351 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42352
42353 ;
42354 return 0;
42355}
a848cd7e 42356_ACEOF
d12aef51
VZ
42357rm -f conftest.$ac_objext conftest$ac_exeext
42358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42359 (eval $ac_link) 2>conftest.er1
a848cd7e 42360 ac_status=$?
ac1cb8d3
VS
42361 grep -v '^ *+' conftest.er1 >conftest.err
42362 rm -f conftest.er1
42363 cat conftest.err >&5
a848cd7e
SC
42364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42365 (exit $ac_status); } &&
fd5199d6 42366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42368 (eval $ac_try) 2>&5
42369 ac_status=$?
42370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42371 (exit $ac_status); }; } &&
d12aef51 42372 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42374 (eval $ac_try) 2>&5
42375 ac_status=$?
42376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42377 (exit $ac_status); }; }; then
d12aef51 42378 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42379else
42380 echo "$as_me: failed program was:" >&5
42381sed 's/^/| /' conftest.$ac_ext >&5
42382
a848cd7e 42383
a1b1cf33
VZ
42384 saveLibs="$LIBS"
42385 LIBS="$saveLibs -lossaudio"
42386 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42387/* confdefs.h. */
42388_ACEOF
42389cat confdefs.h >>conftest.$ac_ext
42390cat >>conftest.$ac_ext <<_ACEOF
42391/* end confdefs.h. */
d12aef51 42392
a1b1cf33
VZ
42393 #include <sys/ioctl.h>
42394 #include <sys/soundcard.h>
d12aef51
VZ
42395
42396int
42397main ()
42398{
42399
a1b1cf33 42400 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42401
42402 ;
42403 return 0;
42404}
a848cd7e 42405_ACEOF
d12aef51
VZ
42406rm -f conftest.$ac_objext conftest$ac_exeext
42407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42408 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
42409 ac_status=$?
42410 grep -v '^ *+' conftest.er1 >conftest.err
42411 rm -f conftest.er1
42412 cat conftest.err >&5
42413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 42414 (exit $ac_status); } &&
fd5199d6 42415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
42416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42417 (eval $ac_try) 2>&5
42418 ac_status=$?
42419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42420 (exit $ac_status); }; } &&
42421 { ac_try='test -s conftest$ac_exeext'
42422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42423 (eval $ac_try) 2>&5
42424 ac_status=$?
42425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42426 (exit $ac_status); }; }; then
42427 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42428else
42429 echo "$as_me: failed program was:" >&5
42430sed 's/^/| /' conftest.$ac_ext >&5
42431
a848cd7e 42432
a1b1cf33
VZ
42433 LIBS="$saveLibs"
42434 ac_cv_header_sys_soundcard=no
d12aef51
VZ
42435
42436
a848cd7e 42437fi
d12aef51
VZ
42438rm -f conftest.err conftest.$ac_objext \
42439 conftest$ac_exeext conftest.$ac_ext
42440
a848cd7e
SC
42441
42442fi
d12aef51
VZ
42443rm -f conftest.err conftest.$ac_objext \
42444 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42445
42446fi
d12aef51
VZ
42447echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42448echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a1b1cf33 42449 fi
a848cd7e 42450
d12aef51
VZ
42451 if test "$ac_cv_header_sys_soundcard" = "yes"; then
42452 cat >>confdefs.h <<\_ACEOF
42453#define HAVE_SYS_SOUNDCARD_H 1
42454_ACEOF
a848cd7e 42455
d12aef51
VZ
42456 else
42457 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
42458 fi
9c112555 42459fi
a1b1cf33 42460
9c112555
MW
42461WITH_PLUGIN_SDL=0
42462if test "$wxUSE_SOUND" = "yes"; then
42463 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
42464 if test "$wxUSE_LIBSDL" != "no"; then
42465
42466# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
42467if test "${with_sdl_prefix+set}" = set; then
42468 withval="$with_sdl_prefix"
42469 sdl_prefix="$withval"
42470else
42471 sdl_prefix=""
42472fi;
42473
42474# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
42475if test "${with_sdl_exec_prefix+set}" = set; then
42476 withval="$with_sdl_exec_prefix"
42477 sdl_exec_prefix="$withval"
42478else
42479 sdl_exec_prefix=""
42480fi;
42481# Check whether --enable-sdltest or --disable-sdltest was given.
42482if test "${enable_sdltest+set}" = set; then
42483 enableval="$enable_sdltest"
42484
42485else
42486 enable_sdltest=yes
42487fi;
42488
42489 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
42490 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42491 if test x${SDL_CONFIG+set} != xset ; then
42492 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42493 fi
a848cd7e
SC
42494 fi
42495 if test x$sdl_prefix != x ; then
3ecd9f92
MW
42496 sdl_args="$sdl_args --prefix=$sdl_prefix"
42497 if test x${SDL_CONFIG+set} != xset ; then
42498 SDL_CONFIG=$sdl_prefix/bin/sdl-config
42499 fi
a848cd7e
SC
42500 fi
42501
3ecd9f92
MW
42502 if test "x$prefix" != xNONE; then
42503 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42504 fi
a848cd7e
SC
42505 # Extract the first word of "sdl-config", so it can be a program name with args.
42506set dummy sdl-config; ac_word=$2
42507echo "$as_me:$LINENO: checking for $ac_word" >&5
42508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42509if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42510 echo $ECHO_N "(cached) $ECHO_C" >&6
42511else
42512 case $SDL_CONFIG in
42513 [\\/]* | ?:[\\/]*)
42514 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42515 ;;
42516 *)
42517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42518for as_dir in $PATH
42519do
42520 IFS=$as_save_IFS
42521 test -z "$as_dir" && as_dir=.
42522 for ac_exec_ext in '' $ac_executable_extensions; do
42523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42524 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42526 break 2
42527 fi
42528done
42529done
42530
42531 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42532 ;;
42533esac
42534fi
42535SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42536
42537if test -n "$SDL_CONFIG"; then
42538 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42539echo "${ECHO_T}$SDL_CONFIG" >&6
42540else
42541 echo "$as_me:$LINENO: result: no" >&5
42542echo "${ECHO_T}no" >&6
42543fi
42544
42545 min_sdl_version=1.2.0
42546 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42547echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
42548 no_sdl=""
42549 if test "$SDL_CONFIG" = "no" ; then
42550 no_sdl=yes
42551 else
42552 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42553 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42554
42555 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42556 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42557 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42558 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42559 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42560 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42561 if test "x$enable_sdltest" = "xyes" ; then
42562 ac_save_CFLAGS="$CFLAGS"
94acd38e 42563 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
42564 ac_save_LIBS="$LIBS"
42565 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42566 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42567 LIBS="$LIBS $SDL_LIBS"
42568 rm -f conf.sdltest
42569 if test "$cross_compiling" = yes; then
42570 echo $ac_n "cross compiling; assumed OK... $ac_c"
42571else
42572 cat >conftest.$ac_ext <<_ACEOF
42573/* confdefs.h. */
42574_ACEOF
42575cat confdefs.h >>conftest.$ac_ext
42576cat >>conftest.$ac_ext <<_ACEOF
42577/* end confdefs.h. */
42578
42579#include <stdio.h>
42580#include <stdlib.h>
42581#include <string.h>
42582#include "SDL.h"
42583
42584char*
42585my_strdup (char *str)
42586{
42587 char *new_str;
42588
42589 if (str)
42590 {
42591 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42592 strcpy (new_str, str);
42593 }
42594 else
42595 new_str = NULL;
42596
42597 return new_str;
42598}
42599
42600int main (int argc, char *argv[])
42601{
42602 int major, minor, micro;
42603 char *tmp_version;
42604
42605 /* This hangs on some systems (?)
42606 system ("touch conf.sdltest");
42607 */
42608 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42609
42610 /* HP/UX 9 (%@#!) writes to sscanf strings */
42611 tmp_version = my_strdup("$min_sdl_version");
42612 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42613 printf("%s, bad version string\n", "$min_sdl_version");
42614 exit(1);
42615 }
42616
42617 if (($sdl_major_version > major) ||
42618 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42619 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42620 {
42621 return 0;
42622 }
42623 else
42624 {
42625 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42626 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42627 printf("*** best to upgrade to the required version.\n");
42628 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42629 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42630 printf("*** config.cache before re-running configure\n");
42631 return 1;
42632 }
42633}
42634
42635
42636_ACEOF
42637rm -f conftest$ac_exeext
42638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42639 (eval $ac_link) 2>&5
42640 ac_status=$?
42641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42644 (eval $ac_try) 2>&5
42645 ac_status=$?
42646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42647 (exit $ac_status); }; }; then
42648 :
42649else
42650 echo "$as_me: program exited with status $ac_status" >&5
42651echo "$as_me: failed program was:" >&5
42652sed 's/^/| /' conftest.$ac_ext >&5
42653
42654( exit $ac_status )
42655no_sdl=yes
42656fi
ac1cb8d3 42657rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42658fi
42659 CFLAGS="$ac_save_CFLAGS"
94acd38e 42660 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42661 LIBS="$ac_save_LIBS"
42662 fi
42663 fi
42664 if test "x$no_sdl" = x ; then
42665 echo "$as_me:$LINENO: result: yes" >&5
42666echo "${ECHO_T}yes" >&6
42667
42668 EXTRALIBS_SDL="$SDL_LIBS"
9b8888f9 42669 CFLAGS="$SDL_CFLAGS $CFLAGS"
c92ad099 42670 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
42671 cat >>confdefs.h <<\_ACEOF
42672#define wxUSE_LIBSDL 1
42673_ACEOF
42674
42675
42676 else
42677 echo "$as_me:$LINENO: result: no" >&5
42678echo "${ECHO_T}no" >&6
42679 if test "$SDL_CONFIG" = "no" ; then
42680 echo "*** The sdl-config script installed by SDL could not be found"
42681 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42682 echo "*** your path, or set the SDL_CONFIG environment variable to the"
42683 echo "*** full path to sdl-config."
42684 else
42685 if test -f conf.sdltest ; then
42686 :
42687 else
42688 echo "*** Could not run SDL test program, checking why..."
42689 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42690 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42691 LIBS="$LIBS $SDL_LIBS"
42692 cat >conftest.$ac_ext <<_ACEOF
42693/* confdefs.h. */
42694_ACEOF
42695cat confdefs.h >>conftest.$ac_ext
42696cat >>conftest.$ac_ext <<_ACEOF
42697/* end confdefs.h. */
42698
42699#include <stdio.h>
42700#include "SDL.h"
42701
42702int main(int argc, char *argv[])
42703{ return 0; }
42704#undef main
42705#define main K_and_R_C_main
42706
42707int
42708main ()
42709{
42710 return 0;
42711 ;
42712 return 0;
42713}
42714_ACEOF
42715rm -f conftest.$ac_objext conftest$ac_exeext
42716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42717 (eval $ac_link) 2>conftest.er1
a848cd7e 42718 ac_status=$?
ac1cb8d3
VS
42719 grep -v '^ *+' conftest.er1 >conftest.err
42720 rm -f conftest.er1
42721 cat conftest.err >&5
a848cd7e
SC
42722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42723 (exit $ac_status); } &&
fd5199d6 42724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42726 (eval $ac_try) 2>&5
42727 ac_status=$?
42728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42729 (exit $ac_status); }; } &&
42730 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42732 (eval $ac_try) 2>&5
42733 ac_status=$?
42734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42735 (exit $ac_status); }; }; then
42736 echo "*** The test program compiled, but did not run. This usually means"
42737 echo "*** that the run-time linker is not finding SDL or finding the wrong"
42738 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42739 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42740 echo "*** to the installed location Also, make sure you have run ldconfig if that"
42741 echo "*** is required on your system"
42742 echo "***"
42743 echo "*** If you have an old version installed, it is best to remove it, although"
42744 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42745else
42746 echo "$as_me: failed program was:" >&5
42747sed 's/^/| /' conftest.$ac_ext >&5
42748
42749 echo "*** The test program failed to compile or link. See the file config.log for the"
42750 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42751 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42752 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42753fi
ac1cb8d3
VS
42754rm -f conftest.err conftest.$ac_objext \
42755 conftest$ac_exeext conftest.$ac_ext
a848cd7e 42756 CFLAGS="$ac_save_CFLAGS"
94acd38e 42757 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42758 LIBS="$ac_save_LIBS"
42759 fi
42760 fi
42761 SDL_CFLAGS=""
42762 SDL_LIBS=""
42763 wxUSE_LIBSDL="no"
42764 fi
42765
42766
42767 rm -f conf.sdltest
42768
42769 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42770 WITH_PLUGIN_SDL=1
42771 fi
42772 fi
480b9f18
VZ
42773 else
42774 if test "$wxUSE_MGL" = 1; then
42775 { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
42776echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
42777 wxUSE_SOUND="no"
42778 fi
a848cd7e 42779 fi
480b9f18 42780fi
a848cd7e 42781
480b9f18 42782if test "$wxUSE_SOUND" = "yes"; then
a848cd7e
SC
42783 cat >>confdefs.h <<\_ACEOF
42784#define wxUSE_SOUND 1
42785_ACEOF
42786
42787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42788fi
42789
d1c38808 42790if test "$WXGTK20" = 1; then
d6fb5527
VZ
42791
42792
42793if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
42794 if test -n "$ac_tool_prefix"; then
42795 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
42796set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
42797echo "$as_me:$LINENO: checking for $ac_word" >&5
42798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42799if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42800 echo $ECHO_N "(cached) $ECHO_C" >&6
42801else
42802 case $PKG_CONFIG in
42803 [\\/]* | ?:[\\/]*)
42804 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42805 ;;
42806 *)
42807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42808for as_dir in $PATH
42809do
42810 IFS=$as_save_IFS
42811 test -z "$as_dir" && as_dir=.
42812 for ac_exec_ext in '' $ac_executable_extensions; do
42813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42814 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42816 break 2
42817 fi
42818done
42819done
42820
42821 ;;
42822esac
42823fi
42824PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42825
42826if test -n "$PKG_CONFIG"; then
42827 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42828echo "${ECHO_T}$PKG_CONFIG" >&6
42829else
42830 echo "$as_me:$LINENO: result: no" >&5
42831echo "${ECHO_T}no" >&6
42832fi
42833
42834fi
42835if test -z "$ac_cv_path_PKG_CONFIG"; then
42836 ac_pt_PKG_CONFIG=$PKG_CONFIG
42837 # Extract the first word of "pkg-config", so it can be a program name with args.
42838set dummy pkg-config; ac_word=$2
42839echo "$as_me:$LINENO: checking for $ac_word" >&5
42840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42841if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
42842 echo $ECHO_N "(cached) $ECHO_C" >&6
42843else
42844 case $ac_pt_PKG_CONFIG in
42845 [\\/]* | ?:[\\/]*)
42846 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
42847 ;;
42848 *)
42849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42850for as_dir in $PATH
42851do
42852 IFS=$as_save_IFS
42853 test -z "$as_dir" && as_dir=.
42854 for ac_exec_ext in '' $ac_executable_extensions; do
42855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42856 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42858 break 2
42859 fi
42860done
42861done
42862
42863 ;;
42864esac
42865fi
42866ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
42867
42868if test -n "$ac_pt_PKG_CONFIG"; then
42869 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
42870echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
42871else
42872 echo "$as_me:$LINENO: result: no" >&5
42873echo "${ECHO_T}no" >&6
42874fi
42875
42876 PKG_CONFIG=$ac_pt_PKG_CONFIG
42877else
42878 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42879fi
42880
42881fi
42882if test -n "$PKG_CONFIG"; then
42883 _pkg_min_version=0.9.0
42884 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
42885echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
42886 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42887 echo "$as_me:$LINENO: result: yes" >&5
42888echo "${ECHO_T}yes" >&6
42889 else
42890 echo "$as_me:$LINENO: result: no" >&5
42891echo "${ECHO_T}no" >&6
42892 PKG_CONFIG=""
42893 fi
42894
42895fi
42896
d1c38808
VZ
42897 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42898 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42899
42900
3ecd9f92
MW
42901pkg_failed=no
42902echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42903echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 42904
3ecd9f92
MW
42905if test -n "$PKG_CONFIG"; then
42906 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42907 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42908 else
42909 if test -n "$PKG_CONFIG" && \
42910 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42911 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42912 ac_status=$?
42913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42914 (exit $ac_status); }; then
42915 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42916else
3ecd9f92
MW
42917 pkg_failed=yes
42918fi
42919 fi
42920else
42921 pkg_failed=untried
d1c38808 42922fi
d1c38808 42923if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42924 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42925 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42926 else
42927 if test -n "$PKG_CONFIG" && \
42928 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42929 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42930 ac_status=$?
42931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42932 (exit $ac_status); }; then
42933 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42934else
3ecd9f92
MW
42935 pkg_failed=yes
42936fi
42937 fi
42938else
42939 pkg_failed=untried
d1c38808
VZ
42940fi
42941
d1c38808 42942
d1c38808 42943
3ecd9f92 42944if test $pkg_failed = yes; then
d1c38808 42945
3ecd9f92
MW
42946if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42947 _pkg_short_errors_supported=yes
42948else
42949 _pkg_short_errors_supported=no
42950fi
42951 if test $_pkg_short_errors_supported = yes; then
42952 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42953 else
42954 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 42955 fi
3ecd9f92
MW
42956 # Put the nasty error message in config.log where it belongs
42957 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
42958
42959
3ecd9f92
MW
42960 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42961echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42962 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
42963
42964
3ecd9f92 42965elif test $pkg_failed = untried; then
d1c38808
VZ
42966
42967 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42968echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42969 wxUSE_LIBGNOMEPRINT="no"
42970
42971
3ecd9f92
MW
42972else
42973 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42974 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42975 echo "$as_me:$LINENO: result: yes" >&5
42976echo "${ECHO_T}yes" >&6
d1c38808 42977
9b8888f9 42978 CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
3ecd9f92
MW
42979 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42980 cat >>confdefs.h <<\_ACEOF
42981#define wxUSE_LIBGNOMEPRINT 1
42982_ACEOF
42983
42984
42985fi
d1c38808
VZ
42986 fi
42987 fi
d1c38808 42988
2b850ae1
RR
42989 if test "$wxUSE_MIMETYPE" = "yes" ; then
42990 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42991
42992
3ecd9f92
MW
42993pkg_failed=no
42994echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42995echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 42996
3ecd9f92
MW
42997if test -n "$PKG_CONFIG"; then
42998 if test -n "$GNOMEVFS_CFLAGS"; then
42999 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
43000 else
43001 if test -n "$PKG_CONFIG" && \
43002 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43003 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43004 ac_status=$?
43005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43006 (exit $ac_status); }; then
43007 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 43008else
3ecd9f92
MW
43009 pkg_failed=yes
43010fi
43011 fi
43012else
43013 pkg_failed=untried
2b850ae1 43014fi
2b850ae1 43015if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43016 if test -n "$GNOMEVFS_LIBS"; then
43017 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
43018 else
43019 if test -n "$PKG_CONFIG" && \
43020 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43021 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43022 ac_status=$?
43023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43024 (exit $ac_status); }; then
43025 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 43026else
3ecd9f92
MW
43027 pkg_failed=yes
43028fi
43029 fi
43030else
43031 pkg_failed=untried
2b850ae1
RR
43032fi
43033
2b850ae1 43034
2b850ae1 43035
3ecd9f92 43036if test $pkg_failed = yes; then
2b850ae1 43037
3ecd9f92
MW
43038if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43039 _pkg_short_errors_supported=yes
43040else
43041 _pkg_short_errors_supported=no
43042fi
43043 if test $_pkg_short_errors_supported = yes; then
43044 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43045 else
43046 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 43047 fi
3ecd9f92
MW
43048 # Put the nasty error message in config.log where it belongs
43049 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
43050
43051
3ecd9f92
MW
43052 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43053echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43054 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
43055
43056
3ecd9f92 43057elif test $pkg_failed = untried; then
2b850ae1
RR
43058
43059 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43060echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43061 wxUSE_LIBGNOMEVFS="no"
43062
43063
3ecd9f92
MW
43064else
43065 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43066 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
43067 echo "$as_me:$LINENO: result: yes" >&5
43068echo "${ECHO_T}yes" >&6
2b850ae1 43069
9b8888f9 43070 CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
3ecd9f92
MW
43071 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43072 cat >>confdefs.h <<\_ACEOF
43073#define wxUSE_LIBGNOMEVFS 1
43074_ACEOF
43075
43076
43077fi
2b850ae1
RR
43078 fi
43079 fi
2b850ae1 43080
3565d135
RR
43081 if test "$wxUSE_LIBHILDON" = "yes" ; then
43082
3ecd9f92
MW
43083pkg_failed=no
43084echo "$as_me:$LINENO: checking for HILDON" >&5
43085echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 43086
3ecd9f92
MW
43087if test -n "$PKG_CONFIG"; then
43088 if test -n "$HILDON_CFLAGS"; then
43089 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43090 else
43091 if test -n "$PKG_CONFIG" && \
43092 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43093 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43094 ac_status=$?
43095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43096 (exit $ac_status); }; then
43097 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 43098else
3ecd9f92
MW
43099 pkg_failed=yes
43100fi
43101 fi
43102else
43103 pkg_failed=untried
3565d135 43104fi
3565d135 43105if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43106 if test -n "$HILDON_LIBS"; then
43107 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43108 else
43109 if test -n "$PKG_CONFIG" && \
43110 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43111 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43112 ac_status=$?
43113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43114 (exit $ac_status); }; then
43115 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 43116else
3ecd9f92
MW
43117 pkg_failed=yes
43118fi
43119 fi
43120else
43121 pkg_failed=untried
3565d135
RR
43122fi
43123
3565d135 43124
3565d135 43125
3ecd9f92 43126if test $pkg_failed = yes; then
3565d135 43127
3ecd9f92
MW
43128if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43129 _pkg_short_errors_supported=yes
43130else
43131 _pkg_short_errors_supported=no
43132fi
43133 if test $_pkg_short_errors_supported = yes; then
43134 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43135 else
43136 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 43137 fi
3ecd9f92
MW
43138 # Put the nasty error message in config.log where it belongs
43139 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
43140
43141
3ecd9f92
MW
43142 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43143echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43144 wxUSE_LIBHILDON="no"
3565d135 43145
3565d135 43146
3ecd9f92
MW
43147elif test $pkg_failed = untried; then
43148
43149 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43150echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43151 wxUSE_LIBHILDON="no"
43152
43153
43154else
43155 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43156 HILDON_LIBS=$pkg_cv_HILDON_LIBS
43157 echo "$as_me:$LINENO: result: yes" >&5
43158echo "${ECHO_T}yes" >&6
3565d135
RR
43159
43160 EXTRALIBS_HILDON="$HILDON_LIBS"
9b8888f9 43161 CFLAGS="$CFLAGS $HILDON_CFLAGS"
3565d135
RR
43162 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43163 cat >>confdefs.h <<\_ACEOF
43164#define wxUSE_LIBHILDON 1
43165_ACEOF
43166
43167
3ecd9f92 43168fi
3565d135
RR
43169 fi
43170fi
d1c38808 43171
a848cd7e
SC
43172if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43173 cat >>confdefs.h <<\_ACEOF
43174#define wxUSE_CMDLINE_PARSER 1
43175_ACEOF
43176
43177fi
43178
43179if test "$wxUSE_STOPWATCH" = "yes"; then
43180 cat >>confdefs.h <<\_ACEOF
43181#define wxUSE_STOPWATCH 1
43182_ACEOF
43183
43184fi
43185
43186if test "$wxUSE_DATETIME" = "yes"; then
43187 cat >>confdefs.h <<\_ACEOF
43188#define wxUSE_DATETIME 1
43189_ACEOF
43190
43191fi
43192
43193if test "$wxUSE_FILE" = "yes"; then
43194 cat >>confdefs.h <<\_ACEOF
43195#define wxUSE_FILE 1
43196_ACEOF
43197
43198fi
43199
43200if test "$wxUSE_FFILE" = "yes"; then
43201 cat >>confdefs.h <<\_ACEOF
43202#define wxUSE_FFILE 1
43203_ACEOF
43204
43205fi
43206
9e8e867f 43207if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
26e422a9
MW
43208 if test "$wxUSE_STREAMS" != yes; then
43209 { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
43210echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
916af76f 43211 wxUSE_ARCHIVE_STREAMS=no
26e422a9
MW
43212 else
43213 cat >>confdefs.h <<\_ACEOF
9e8e867f 43214#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
43215_ACEOF
43216
26e422a9 43217 fi
81f90336
MW
43218fi
43219
43220if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 43221 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
43222 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43223echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43224 elif test "$wxUSE_ZLIB" = "no"; then
43225 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43226echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43227 else
43228 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43229#define wxUSE_ZIPSTREAM 1
43230_ACEOF
43231
81f90336 43232 fi
a848cd7e
SC
43233fi
43234
26e422a9
MW
43235if test "$wxUSE_TARSTREAM" = "yes"; then
43236 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43237 { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
43238echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
43239 else
43240 cat >>confdefs.h <<\_ACEOF
43241#define wxUSE_TARSTREAM 1
43242_ACEOF
43243
43244 fi
43245fi
43246
916af76f 43247if test "$wxUSE_FILESYSTEM" = "yes"; then
f8f6c91a 43248 if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
916af76f
MW
43249 { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
43250echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43251 wxUSE_FILESYSTEM=no
f8f6c91a
MW
43252 else
43253 cat >>confdefs.h <<\_ACEOF
916af76f 43254#define wxUSE_FILESYSTEM 1
f8f6c91a
MW
43255_ACEOF
43256
43257 fi
43258fi
43259
26e422a9 43260if test "$wxUSE_FS_ARCHIVE" = "yes"; then
916af76f
MW
43261 if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
43262 { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
43263echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
26e422a9
MW
43264 else
43265 cat >>confdefs.h <<\_ACEOF
43266#define wxUSE_FS_ARCHIVE 1
43267_ACEOF
43268
43269 fi
43270fi
43271
916af76f
MW
43272if test "$wxUSE_FS_ZIP" = "yes"; then
43273 if test "$wxUSE_FS_ARCHIVE" != yes; then
43274 { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
43275echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
43276 else
43277 cat >>confdefs.h <<\_ACEOF
43278#define wxUSE_FS_ZIP 1
43279_ACEOF
43280
43281 fi
43282fi
43283
a848cd7e 43284if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
43285 if test "$USE_UNIX" != 1; then
43286 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43287echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43288 wxUSE_ON_FATAL_EXCEPTION=no
43289 else
43290 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43291#define wxUSE_ON_FATAL_EXCEPTION 1
43292_ACEOF
43293
18228ab4 43294 fi
a848cd7e
SC
43295fi
43296
eaff0f0d
VZ
43297if test "$wxUSE_STACKWALKER" = "yes"; then
43298 cat >>confdefs.h <<\_ACEOF
43299#define wxUSE_STACKWALKER 1
43300_ACEOF
43301
43302fi
43303
36b6448c 43304if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
43305 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
43306 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43307echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
43308 wxUSE_DEBUGREPORT=no
43309 else
43310 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
43311#define wxUSE_DEBUGREPORT 1
43312_ACEOF
43313
21dfc162
MW
43314 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43315 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43316 fi
dfe0c803 43317 fi
36b6448c
VZ
43318fi
43319
a848cd7e
SC
43320if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43321 cat >>confdefs.h <<\_ACEOF
43322#define wxUSE_SNGLINST_CHECKER 1
43323_ACEOF
43324
43325fi
43326
43327if test "$wxUSE_BUSYINFO" = "yes"; then
43328 cat >>confdefs.h <<\_ACEOF
43329#define wxUSE_BUSYINFO 1
43330_ACEOF
43331
43332fi
43333
43334if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43335 cat >>confdefs.h <<\_ACEOF
43336#define wxUSE_STD_IOSTREAM 1
43337_ACEOF
43338
43339fi
43340
59746b65
MW
43341if test "$wxUSE_STD_STRING" = "yes"; then
43342 cat >>confdefs.h <<\_ACEOF
43343#define wxUSE_STD_STRING 1
43344_ACEOF
43345
43346fi
43347
07158944
VZ
43348if test "$wxUSE_STDPATHS" = "yes"; then
43349 cat >>confdefs.h <<\_ACEOF
43350#define wxUSE_STDPATHS 1
43351_ACEOF
43352
43353fi
43354
a848cd7e
SC
43355if test "$wxUSE_TEXTBUFFER" = "yes"; then
43356 cat >>confdefs.h <<\_ACEOF
43357#define wxUSE_TEXTBUFFER 1
43358_ACEOF
43359
43360fi
43361
43362if test "$wxUSE_TEXTFILE" = "yes"; then
43363 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43364 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43365echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43366 else
43367 cat >>confdefs.h <<\_ACEOF
43368#define wxUSE_TEXTFILE 1
43369_ACEOF
43370
43371 fi
43372fi
43373
43374if test "$wxUSE_CONFIG" = "yes" ; then
43375 if test "$wxUSE_TEXTFILE" != "yes"; then
43376 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43377echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43378 else
43379 cat >>confdefs.h <<\_ACEOF
43380#define wxUSE_CONFIG 1
89be85c2
VS
43381_ACEOF
43382
43383 cat >>confdefs.h <<\_ACEOF
43384#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
43385_ACEOF
43386
43387 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43388 fi
43389fi
43390
43391if test "$wxUSE_INTL" = "yes" ; then
43392 if test "$wxUSE_FILE" != "yes"; then
43393 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43394echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43395 else
43396 cat >>confdefs.h <<\_ACEOF
43397#define wxUSE_INTL 1
43398_ACEOF
43399
43400 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43401 GUIDIST="$GUIDIST INTL_DIST"
43402 fi
43403fi
43404
43405if test "$wxUSE_LOG" = "yes"; then
43406 cat >>confdefs.h <<\_ACEOF
43407#define wxUSE_LOG 1
43408_ACEOF
43409
43410
43411 if test "$wxUSE_LOGGUI" = "yes"; then
43412 cat >>confdefs.h <<\_ACEOF
43413#define wxUSE_LOGGUI 1
43414_ACEOF
43415
43416 fi
43417
43418 if test "$wxUSE_LOGWINDOW" = "yes"; then
43419 cat >>confdefs.h <<\_ACEOF
43420#define wxUSE_LOGWINDOW 1
43421_ACEOF
43422
43423 fi
43424
43425 if test "$wxUSE_LOGDIALOG" = "yes"; then
43426 cat >>confdefs.h <<\_ACEOF
43427#define wxUSE_LOG_DIALOG 1
43428_ACEOF
43429
43430 fi
0b78747f
MW
43431
43432 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
43433fi
43434
43435if test "$wxUSE_LONGLONG" = "yes"; then
43436 cat >>confdefs.h <<\_ACEOF
43437#define wxUSE_LONGLONG 1
43438_ACEOF
43439
43440fi
43441
43442if test "$wxUSE_GEOMETRY" = "yes"; then
43443 cat >>confdefs.h <<\_ACEOF
43444#define wxUSE_GEOMETRY 1
43445_ACEOF
43446
43447fi
43448
a848cd7e
SC
43449if test "$wxUSE_STREAMS" = "yes" ; then
43450 cat >>confdefs.h <<\_ACEOF
43451#define wxUSE_STREAMS 1
43452_ACEOF
43453
43454fi
43455
8b6682b9
JS
43456if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43457 cat >>confdefs.h <<\_ACEOF
43458#define wxUSE_PRINTF_POS_PARAMS 1
43459_ACEOF
43460
43461fi
43462
43463
a848cd7e
SC
43464
43465if test "$wxUSE_DATETIME" = "yes"; then
43466
43467for ac_func in strptime
43468do
43469as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43470echo "$as_me:$LINENO: checking for $ac_func" >&5
43471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43472if eval "test \"\${$as_ac_var+set}\" = set"; then
43473 echo $ECHO_N "(cached) $ECHO_C" >&6
43474else
43475 cat >conftest.$ac_ext <<_ACEOF
43476/* confdefs.h. */
43477_ACEOF
43478cat confdefs.h >>conftest.$ac_ext
43479cat >>conftest.$ac_ext <<_ACEOF
43480/* end confdefs.h. */
ac1cb8d3
VS
43481/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43483#define $ac_func innocuous_$ac_func
43484
a848cd7e
SC
43485/* System header to define __stub macros and hopefully few prototypes,
43486 which can conflict with char $ac_func (); below.
43487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43488 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43489
a848cd7e
SC
43490#ifdef __STDC__
43491# include <limits.h>
43492#else
43493# include <assert.h>
43494#endif
ac1cb8d3
VS
43495
43496#undef $ac_func
43497
a848cd7e
SC
43498/* Override any gcc2 internal prototype to avoid an error. */
43499#ifdef __cplusplus
43500extern "C"
43501{
43502#endif
43503/* We use char because int might match the return type of a gcc2
43504 builtin and then its argument prototype would still apply. */
43505char $ac_func ();
43506/* The GNU C library defines this for functions which it implements
43507 to always fail with ENOSYS. Some functions are actually named
43508 something starting with __ and the normal name is an alias. */
43509#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43510choke me
43511#else
43512char (*f) () = $ac_func;
43513#endif
43514#ifdef __cplusplus
43515}
43516#endif
43517
43518int
43519main ()
43520{
43521return f != $ac_func;
43522 ;
43523 return 0;
43524}
43525_ACEOF
43526rm -f conftest.$ac_objext conftest$ac_exeext
43527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43528 (eval $ac_link) 2>conftest.er1
a848cd7e 43529 ac_status=$?
ac1cb8d3
VS
43530 grep -v '^ *+' conftest.er1 >conftest.err
43531 rm -f conftest.er1
43532 cat conftest.err >&5
a848cd7e
SC
43533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43534 (exit $ac_status); } &&
fd5199d6 43535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43537 (eval $ac_try) 2>&5
43538 ac_status=$?
43539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43540 (exit $ac_status); }; } &&
43541 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43543 (eval $ac_try) 2>&5
43544 ac_status=$?
43545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43546 (exit $ac_status); }; }; then
43547 eval "$as_ac_var=yes"
43548else
43549 echo "$as_me: failed program was:" >&5
43550sed 's/^/| /' conftest.$ac_ext >&5
43551
43552eval "$as_ac_var=no"
43553fi
ac1cb8d3
VS
43554rm -f conftest.err conftest.$ac_objext \
43555 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43556fi
43557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43558echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43559if test `eval echo '${'$as_ac_var'}'` = yes; then
43560 cat >>confdefs.h <<_ACEOF
43561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43562_ACEOF
43563
43564fi
43565done
43566
f536f005
VZ
43567 if test "$ac_cv_func_strptime" = "yes"; then
43568 echo "$as_me:$LINENO: checking for strptime declaration" >&5
43569echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
43570if test "${wx_cv_func_strptime_decl+set}" = set; then
43571 echo $ECHO_N "(cached) $ECHO_C" >&6
43572else
43573
9b8888f9
VZ
43574 ac_ext=cc
43575ac_cpp='$CXXCPP $CPPFLAGS'
43576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43579
f536f005
VZ
43580 cat >conftest.$ac_ext <<_ACEOF
43581/* confdefs.h. */
43582_ACEOF
43583cat confdefs.h >>conftest.$ac_ext
43584cat >>conftest.$ac_ext <<_ACEOF
43585/* end confdefs.h. */
43586
43587 #include <time.h>
43588
43589int
43590main ()
43591{
43592
43593 struct tm t;
43594 strptime("foo", "bar", &t);
43595
43596 ;
43597 return 0;
43598}
43599_ACEOF
43600rm -f conftest.$ac_objext
43601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43602 (eval $ac_compile) 2>conftest.er1
43603 ac_status=$?
43604 grep -v '^ *+' conftest.er1 >conftest.err
43605 rm -f conftest.er1
43606 cat conftest.err >&5
43607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43608 (exit $ac_status); } &&
9b8888f9 43609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
43610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43611 (eval $ac_try) 2>&5
43612 ac_status=$?
43613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43614 (exit $ac_status); }; } &&
43615 { ac_try='test -s conftest.$ac_objext'
43616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43617 (eval $ac_try) 2>&5
43618 ac_status=$?
43619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43620 (exit $ac_status); }; }; then
43621 wx_cv_func_strptime_decl=yes
43622else
43623 echo "$as_me: failed program was:" >&5
43624sed 's/^/| /' conftest.$ac_ext >&5
43625
43626wx_cv_func_strptime_decl=no
43627
43628fi
43629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
43630 ac_ext=c
43631ac_cpp='$CPP $CPPFLAGS'
43632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43634ac_compiler_gnu=$ac_cv_c_compiler_gnu
43635
f536f005
VZ
43636
43637
43638fi
43639echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43640echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
43641 fi
43642 if test "$wx_cv_func_strptime_decl" = "yes"; then
43643 cat >>confdefs.h <<\_ACEOF
43644#define HAVE_STRPTIME_DECL 1
43645_ACEOF
43646
43647 fi
a848cd7e
SC
43648
43649 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43650echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
43651if test "${wx_cv_var_timezone+set}" = set; then
43652 echo $ECHO_N "(cached) $ECHO_C" >&6
43653else
43654
715d53e4
VZ
43655 ac_ext=cc
43656ac_cpp='$CXXCPP $CPPFLAGS'
43657ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43658ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43659ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43660
a848cd7e
SC
43661 cat >conftest.$ac_ext <<_ACEOF
43662/* confdefs.h. */
43663_ACEOF
43664cat confdefs.h >>conftest.$ac_ext
43665cat >>conftest.$ac_ext <<_ACEOF
43666/* end confdefs.h. */
43667
43668 #include <time.h>
43669
43670int
43671main ()
43672{
43673
43674 int tz;
43675 tz = timezone;
43676
43677 ;
43678 return 0;
43679}
43680_ACEOF
43681rm -f conftest.$ac_objext
43682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43683 (eval $ac_compile) 2>conftest.er1
a848cd7e 43684 ac_status=$?
ac1cb8d3
VS
43685 grep -v '^ *+' conftest.er1 >conftest.err
43686 rm -f conftest.er1
43687 cat conftest.err >&5
a848cd7e
SC
43688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43689 (exit $ac_status); } &&
715d53e4 43690 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43692 (eval $ac_try) 2>&5
43693 ac_status=$?
43694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43695 (exit $ac_status); }; } &&
43696 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43698 (eval $ac_try) 2>&5
43699 ac_status=$?
43700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43701 (exit $ac_status); }; }; then
43702
43703 wx_cv_var_timezone=timezone
43704
43705else
43706 echo "$as_me: failed program was:" >&5
43707sed 's/^/| /' conftest.$ac_ext >&5
43708
43709
43710 cat >conftest.$ac_ext <<_ACEOF
43711/* confdefs.h. */
43712_ACEOF
43713cat confdefs.h >>conftest.$ac_ext
43714cat >>conftest.$ac_ext <<_ACEOF
43715/* end confdefs.h. */
43716
43717 #include <time.h>
43718
43719int
43720main ()
43721{
43722
43723 int tz;
43724 tz = _timezone;
43725
43726 ;
43727 return 0;
43728}
43729_ACEOF
43730rm -f conftest.$ac_objext
43731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43732 (eval $ac_compile) 2>conftest.er1
a848cd7e 43733 ac_status=$?
ac1cb8d3
VS
43734 grep -v '^ *+' conftest.er1 >conftest.err
43735 rm -f conftest.er1
43736 cat conftest.err >&5
a848cd7e
SC
43737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43738 (exit $ac_status); } &&
715d53e4 43739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43741 (eval $ac_try) 2>&5
43742 ac_status=$?
43743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43744 (exit $ac_status); }; } &&
43745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43747 (eval $ac_try) 2>&5
43748 ac_status=$?
43749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43750 (exit $ac_status); }; }; then
43751
43752 wx_cv_var_timezone=_timezone
43753
43754else
43755 echo "$as_me: failed program was:" >&5
43756sed 's/^/| /' conftest.$ac_ext >&5
43757
43758
43759 cat >conftest.$ac_ext <<_ACEOF
43760/* confdefs.h. */
43761_ACEOF
43762cat confdefs.h >>conftest.$ac_ext
43763cat >>conftest.$ac_ext <<_ACEOF
43764/* end confdefs.h. */
43765
43766 #include <time.h>
43767
43768int
43769main ()
43770{
43771
43772 int tz;
43773 tz = __timezone;
43774
43775 ;
43776 return 0;
43777}
43778_ACEOF
43779rm -f conftest.$ac_objext
43780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43781 (eval $ac_compile) 2>conftest.er1
a848cd7e 43782 ac_status=$?
ac1cb8d3
VS
43783 grep -v '^ *+' conftest.er1 >conftest.err
43784 rm -f conftest.er1
43785 cat conftest.err >&5
a848cd7e
SC
43786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43787 (exit $ac_status); } &&
715d53e4 43788 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43790 (eval $ac_try) 2>&5
43791 ac_status=$?
43792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43793 (exit $ac_status); }; } &&
43794 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43796 (eval $ac_try) 2>&5
43797 ac_status=$?
43798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43799 (exit $ac_status); }; }; then
43800
43801 wx_cv_var_timezone=__timezone
43802
43803else
43804 echo "$as_me: failed program was:" >&5
43805sed 's/^/| /' conftest.$ac_ext >&5
43806
43807
43808 if test "$USE_DOS" = 0 ; then
43809 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43810echo "$as_me: WARNING: no timezone variable" >&2;}
43811 fi
43812
43813
43814fi
ac1cb8d3 43815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43816
43817
43818fi
ac1cb8d3 43819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43820
43821
43822fi
ac1cb8d3 43823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
715d53e4
VZ
43824 ac_ext=c
43825ac_cpp='$CPP $CPPFLAGS'
43826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43828ac_compiler_gnu=$ac_cv_c_compiler_gnu
43829
a848cd7e
SC
43830
43831
43832fi
43833echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43834echo "${ECHO_T}$wx_cv_var_timezone" >&6
43835
43836 if test "x$wx_cv_var_timezone" != x ; then
43837 cat >>confdefs.h <<_ACEOF
43838#define WX_TIMEZONE $wx_cv_var_timezone
43839_ACEOF
43840
43841 fi
43842
43843
43844for ac_func in localtime
43845do
43846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43847echo "$as_me:$LINENO: checking for $ac_func" >&5
43848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43849if eval "test \"\${$as_ac_var+set}\" = set"; then
43850 echo $ECHO_N "(cached) $ECHO_C" >&6
43851else
43852 cat >conftest.$ac_ext <<_ACEOF
43853/* confdefs.h. */
43854_ACEOF
43855cat confdefs.h >>conftest.$ac_ext
43856cat >>conftest.$ac_ext <<_ACEOF
43857/* end confdefs.h. */
ac1cb8d3
VS
43858/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43860#define $ac_func innocuous_$ac_func
43861
a848cd7e
SC
43862/* System header to define __stub macros and hopefully few prototypes,
43863 which can conflict with char $ac_func (); below.
43864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43865 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43866
a848cd7e
SC
43867#ifdef __STDC__
43868# include <limits.h>
43869#else
43870# include <assert.h>
43871#endif
ac1cb8d3
VS
43872
43873#undef $ac_func
43874
a848cd7e
SC
43875/* Override any gcc2 internal prototype to avoid an error. */
43876#ifdef __cplusplus
43877extern "C"
43878{
43879#endif
43880/* We use char because int might match the return type of a gcc2
43881 builtin and then its argument prototype would still apply. */
43882char $ac_func ();
43883/* The GNU C library defines this for functions which it implements
43884 to always fail with ENOSYS. Some functions are actually named
43885 something starting with __ and the normal name is an alias. */
43886#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43887choke me
43888#else
43889char (*f) () = $ac_func;
43890#endif
43891#ifdef __cplusplus
43892}
43893#endif
43894
43895int
43896main ()
43897{
43898return f != $ac_func;
43899 ;
43900 return 0;
43901}
43902_ACEOF
43903rm -f conftest.$ac_objext conftest$ac_exeext
43904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43905 (eval $ac_link) 2>conftest.er1
a848cd7e 43906 ac_status=$?
ac1cb8d3
VS
43907 grep -v '^ *+' conftest.er1 >conftest.err
43908 rm -f conftest.er1
43909 cat conftest.err >&5
a848cd7e
SC
43910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43911 (exit $ac_status); } &&
fd5199d6 43912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43914 (eval $ac_try) 2>&5
43915 ac_status=$?
43916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43917 (exit $ac_status); }; } &&
43918 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43920 (eval $ac_try) 2>&5
43921 ac_status=$?
43922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43923 (exit $ac_status); }; }; then
43924 eval "$as_ac_var=yes"
43925else
43926 echo "$as_me: failed program was:" >&5
43927sed 's/^/| /' conftest.$ac_ext >&5
43928
43929eval "$as_ac_var=no"
43930fi
ac1cb8d3
VS
43931rm -f conftest.err conftest.$ac_objext \
43932 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43933fi
43934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43935echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43936if test `eval echo '${'$as_ac_var'}'` = yes; then
43937 cat >>confdefs.h <<_ACEOF
43938#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43939_ACEOF
43940
43941fi
43942done
43943
43944
43945 if test "$ac_cv_func_localtime" = "yes"; then
43946 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
43947echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
43948if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
43949 echo $ECHO_N "(cached) $ECHO_C" >&6
43950else
43951
43952 cat >conftest.$ac_ext <<_ACEOF
43953/* confdefs.h. */
43954_ACEOF
43955cat confdefs.h >>conftest.$ac_ext
43956cat >>conftest.$ac_ext <<_ACEOF
43957/* end confdefs.h. */
43958
43959 #include <time.h>
43960
43961int
43962main ()
43963{
43964
43965 struct tm tm;
43966 tm.tm_gmtoff++;
43967
43968 ;
43969 return 0;
43970}
43971_ACEOF
43972rm -f conftest.$ac_objext
43973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43974 (eval $ac_compile) 2>conftest.er1
a848cd7e 43975 ac_status=$?
ac1cb8d3
VS
43976 grep -v '^ *+' conftest.er1 >conftest.err
43977 rm -f conftest.er1
43978 cat conftest.err >&5
a848cd7e
SC
43979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43980 (exit $ac_status); } &&
fd5199d6 43981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43983 (eval $ac_try) 2>&5
43984 ac_status=$?
43985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43986 (exit $ac_status); }; } &&
43987 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43989 (eval $ac_try) 2>&5
43990 ac_status=$?
43991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43992 (exit $ac_status); }; }; then
43993
43994 wx_cv_struct_tm_has_gmtoff=yes
43995
43996else
43997 echo "$as_me: failed program was:" >&5
43998sed 's/^/| /' conftest.$ac_ext >&5
43999
44000wx_cv_struct_tm_has_gmtoff=no
44001
44002fi
ac1cb8d3 44003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44004
44005fi
44006echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44007echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
44008 fi
44009
44010 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44011 cat >>confdefs.h <<\_ACEOF
44012#define WX_GMTOFF_IN_TM 1
44013_ACEOF
44014
44015 fi
44016
44017
44018
44019for ac_func in gettimeofday ftime
44020do
44021as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44022echo "$as_me:$LINENO: checking for $ac_func" >&5
44023echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44024if eval "test \"\${$as_ac_var+set}\" = set"; then
44025 echo $ECHO_N "(cached) $ECHO_C" >&6
44026else
44027 cat >conftest.$ac_ext <<_ACEOF
44028/* confdefs.h. */
44029_ACEOF
44030cat confdefs.h >>conftest.$ac_ext
44031cat >>conftest.$ac_ext <<_ACEOF
44032/* end confdefs.h. */
ac1cb8d3
VS
44033/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44035#define $ac_func innocuous_$ac_func
44036
a848cd7e
SC
44037/* System header to define __stub macros and hopefully few prototypes,
44038 which can conflict with char $ac_func (); below.
44039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44040 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44041
a848cd7e
SC
44042#ifdef __STDC__
44043# include <limits.h>
44044#else
44045# include <assert.h>
44046#endif
ac1cb8d3
VS
44047
44048#undef $ac_func
44049
a848cd7e
SC
44050/* Override any gcc2 internal prototype to avoid an error. */
44051#ifdef __cplusplus
44052extern "C"
44053{
44054#endif
44055/* We use char because int might match the return type of a gcc2
44056 builtin and then its argument prototype would still apply. */
44057char $ac_func ();
44058/* The GNU C library defines this for functions which it implements
44059 to always fail with ENOSYS. Some functions are actually named
44060 something starting with __ and the normal name is an alias. */
44061#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44062choke me
44063#else
44064char (*f) () = $ac_func;
44065#endif
44066#ifdef __cplusplus
44067}
44068#endif
44069
44070int
44071main ()
44072{
44073return f != $ac_func;
44074 ;
44075 return 0;
44076}
44077_ACEOF
44078rm -f conftest.$ac_objext conftest$ac_exeext
44079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44080 (eval $ac_link) 2>conftest.er1
a848cd7e 44081 ac_status=$?
ac1cb8d3
VS
44082 grep -v '^ *+' conftest.er1 >conftest.err
44083 rm -f conftest.er1
44084 cat conftest.err >&5
a848cd7e
SC
44085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44086 (exit $ac_status); } &&
fd5199d6 44087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44089 (eval $ac_try) 2>&5
44090 ac_status=$?
44091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44092 (exit $ac_status); }; } &&
44093 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44095 (eval $ac_try) 2>&5
44096 ac_status=$?
44097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44098 (exit $ac_status); }; }; then
44099 eval "$as_ac_var=yes"
44100else
44101 echo "$as_me: failed program was:" >&5
44102sed 's/^/| /' conftest.$ac_ext >&5
44103
44104eval "$as_ac_var=no"
44105fi
ac1cb8d3
VS
44106rm -f conftest.err conftest.$ac_objext \
44107 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44108fi
44109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44110echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44111if test `eval echo '${'$as_ac_var'}'` = yes; then
44112 cat >>confdefs.h <<_ACEOF
44113#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44114_ACEOF
44115 break
44116fi
44117done
44118
44119
44120 if test "$ac_cv_func_gettimeofday" = "yes"; then
44121 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
44122echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
44123if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
44124 echo $ECHO_N "(cached) $ECHO_C" >&6
44125else
44126
5d7b7554 44127 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
44128/* confdefs.h. */
44129_ACEOF
44130cat confdefs.h >>conftest.$ac_ext
44131cat >>conftest.$ac_ext <<_ACEOF
44132/* end confdefs.h. */
44133
44134 #include <sys/time.h>
44135 #include <unistd.h>
44136
44137int
44138main ()
44139{
44140
44141 struct timeval tv;
44142 gettimeofday(&tv, NULL);
44143
44144 ;
44145 return 0;
44146}
44147_ACEOF
44148rm -f conftest.$ac_objext
44149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44150 (eval $ac_compile) 2>conftest.er1
a848cd7e 44151 ac_status=$?
ac1cb8d3
VS
44152 grep -v '^ *+' conftest.er1 >conftest.err
44153 rm -f conftest.er1
44154 cat conftest.err >&5
a848cd7e
SC
44155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44156 (exit $ac_status); } &&
fd5199d6 44157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44159 (eval $ac_try) 2>&5
44160 ac_status=$?
44161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44162 (exit $ac_status); }; } &&
44163 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44165 (eval $ac_try) 2>&5
44166 ac_status=$?
44167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44168 (exit $ac_status); }; }; then
44169 wx_cv_func_gettimeofday_has_2_args=yes
44170else
44171 echo "$as_me: failed program was:" >&5
44172sed 's/^/| /' conftest.$ac_ext >&5
44173
44174cat >conftest.$ac_ext <<_ACEOF
44175/* confdefs.h. */
44176_ACEOF
44177cat confdefs.h >>conftest.$ac_ext
44178cat >>conftest.$ac_ext <<_ACEOF
44179/* end confdefs.h. */
44180
44181 #include <sys/time.h>
44182 #include <unistd.h>
44183
44184int
44185main ()
44186{
44187
44188 struct timeval tv;
44189 gettimeofday(&tv);
44190
44191 ;
44192 return 0;
44193}
44194_ACEOF
44195rm -f conftest.$ac_objext
44196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44197 (eval $ac_compile) 2>conftest.er1
a848cd7e 44198 ac_status=$?
ac1cb8d3
VS
44199 grep -v '^ *+' conftest.er1 >conftest.err
44200 rm -f conftest.er1
44201 cat conftest.err >&5
a848cd7e
SC
44202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44203 (exit $ac_status); } &&
fd5199d6 44204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44206 (eval $ac_try) 2>&5
44207 ac_status=$?
44208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44209 (exit $ac_status); }; } &&
44210 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44212 (eval $ac_try) 2>&5
44213 ac_status=$?
44214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44215 (exit $ac_status); }; }; then
44216 wx_cv_func_gettimeofday_has_2_args=no
44217else
44218 echo "$as_me: failed program was:" >&5
44219sed 's/^/| /' conftest.$ac_ext >&5
44220
44221
44222 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
44223echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
44224 wx_cv_func_gettimeofday_has_2_args=unknown
44225
44226
44227fi
ac1cb8d3 44228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44229
44230fi
ac1cb8d3 44231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44232
44233fi
44234echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
44235echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
44236
44237 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
44238 cat >>confdefs.h <<\_ACEOF
44239#define WX_GETTIMEOFDAY_NO_TZ 1
44240_ACEOF
44241
44242 fi
44243 fi
44244
44245 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44246fi
44247
44248
44249if test "$wxUSE_SOCKETS" = "yes"; then
44250 if test "$wxUSE_MGL" = "1"; then
44251 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44252echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44253 wxUSE_SOCKETS="no"
44254 fi
44255fi
44256
44257if test "$wxUSE_SOCKETS" = "yes"; then
44258 if test "$TOOLKIT" != "MSW"; then
44259 echo "$as_me:$LINENO: checking for socket" >&5
44260echo $ECHO_N "checking for socket... $ECHO_C" >&6
44261if test "${ac_cv_func_socket+set}" = set; then
44262 echo $ECHO_N "(cached) $ECHO_C" >&6
44263else
44264 cat >conftest.$ac_ext <<_ACEOF
44265/* confdefs.h. */
44266_ACEOF
44267cat confdefs.h >>conftest.$ac_ext
44268cat >>conftest.$ac_ext <<_ACEOF
44269/* end confdefs.h. */
ac1cb8d3
VS
44270/* Define socket to an innocuous variant, in case <limits.h> declares socket.
44271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44272#define socket innocuous_socket
44273
a848cd7e
SC
44274/* System header to define __stub macros and hopefully few prototypes,
44275 which can conflict with char socket (); below.
44276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44277 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44278
a848cd7e
SC
44279#ifdef __STDC__
44280# include <limits.h>
44281#else
44282# include <assert.h>
44283#endif
ac1cb8d3
VS
44284
44285#undef socket
44286
a848cd7e
SC
44287/* Override any gcc2 internal prototype to avoid an error. */
44288#ifdef __cplusplus
44289extern "C"
44290{
44291#endif
44292/* We use char because int might match the return type of a gcc2
44293 builtin and then its argument prototype would still apply. */
44294char socket ();
44295/* The GNU C library defines this for functions which it implements
44296 to always fail with ENOSYS. Some functions are actually named
44297 something starting with __ and the normal name is an alias. */
44298#if defined (__stub_socket) || defined (__stub___socket)
44299choke me
44300#else
44301char (*f) () = socket;
44302#endif
44303#ifdef __cplusplus
44304}
44305#endif
44306
44307int
44308main ()
44309{
44310return f != socket;
44311 ;
44312 return 0;
44313}
44314_ACEOF
44315rm -f conftest.$ac_objext conftest$ac_exeext
44316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44317 (eval $ac_link) 2>conftest.er1
a848cd7e 44318 ac_status=$?
ac1cb8d3
VS
44319 grep -v '^ *+' conftest.er1 >conftest.err
44320 rm -f conftest.er1
44321 cat conftest.err >&5
a848cd7e
SC
44322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44323 (exit $ac_status); } &&
fd5199d6 44324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44326 (eval $ac_try) 2>&5
44327 ac_status=$?
44328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44329 (exit $ac_status); }; } &&
44330 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44332 (eval $ac_try) 2>&5
44333 ac_status=$?
44334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44335 (exit $ac_status); }; }; then
44336 ac_cv_func_socket=yes
44337else
44338 echo "$as_me: failed program was:" >&5
44339sed 's/^/| /' conftest.$ac_ext >&5
44340
44341ac_cv_func_socket=no
44342fi
ac1cb8d3
VS
44343rm -f conftest.err conftest.$ac_objext \
44344 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44345fi
44346echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44347echo "${ECHO_T}$ac_cv_func_socket" >&6
44348if test $ac_cv_func_socket = yes; then
44349 :
44350else
44351
44352 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44353echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
44354if test "${ac_cv_lib_socket_socket+set}" = set; then
44355 echo $ECHO_N "(cached) $ECHO_C" >&6
44356else
44357 ac_check_lib_save_LIBS=$LIBS
44358LIBS="-lsocket $LIBS"
44359cat >conftest.$ac_ext <<_ACEOF
44360/* confdefs.h. */
44361_ACEOF
44362cat confdefs.h >>conftest.$ac_ext
44363cat >>conftest.$ac_ext <<_ACEOF
44364/* end confdefs.h. */
44365
44366/* Override any gcc2 internal prototype to avoid an error. */
44367#ifdef __cplusplus
44368extern "C"
44369#endif
44370/* We use char because int might match the return type of a gcc2
44371 builtin and then its argument prototype would still apply. */
44372char socket ();
44373int
44374main ()
44375{
44376socket ();
44377 ;
44378 return 0;
44379}
44380_ACEOF
44381rm -f conftest.$ac_objext conftest$ac_exeext
44382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44383 (eval $ac_link) 2>conftest.er1
a848cd7e 44384 ac_status=$?
ac1cb8d3
VS
44385 grep -v '^ *+' conftest.er1 >conftest.err
44386 rm -f conftest.er1
44387 cat conftest.err >&5
a848cd7e
SC
44388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44389 (exit $ac_status); } &&
fd5199d6 44390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44392 (eval $ac_try) 2>&5
44393 ac_status=$?
44394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44395 (exit $ac_status); }; } &&
44396 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44398 (eval $ac_try) 2>&5
44399 ac_status=$?
44400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44401 (exit $ac_status); }; }; then
44402 ac_cv_lib_socket_socket=yes
44403else
44404 echo "$as_me: failed program was:" >&5
44405sed 's/^/| /' conftest.$ac_ext >&5
44406
44407ac_cv_lib_socket_socket=no
44408fi
ac1cb8d3
VS
44409rm -f conftest.err conftest.$ac_objext \
44410 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44411LIBS=$ac_check_lib_save_LIBS
44412fi
44413echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44414echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
44415if test $ac_cv_lib_socket_socket = yes; then
44416 if test "$INET_LINK" != " -lsocket"; then
44417 INET_LINK="$INET_LINK -lsocket"
44418 fi
44419else
44420
44421 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44422echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44423 wxUSE_SOCKETS=no
44424
44425
44426fi
44427
44428
44429
44430fi
44431
44432 fi
44433fi
44434
44435if test "$wxUSE_SOCKETS" = "yes" ; then
44436 if test "$TOOLKIT" != "MSW"; then
5d7b7554 44437 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
44438echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
44439if test "${wx_cv_type_getsockname3+set}" = set; then
44440 echo $ECHO_N "(cached) $ECHO_C" >&6
44441else
44442
9b8888f9
VZ
44443 ac_ext=cc
44444ac_cpp='$CXXCPP $CPPFLAGS'
44445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44448
a848cd7e
SC
44449 cat >conftest.$ac_ext <<_ACEOF
44450/* confdefs.h. */
44451_ACEOF
44452cat confdefs.h >>conftest.$ac_ext
44453cat >>conftest.$ac_ext <<_ACEOF
44454/* end confdefs.h. */
44455
44456 #include <sys/types.h>
44457 #include <sys/socket.h>
44458
44459int
44460main ()
44461{
44462
44463 socklen_t len;
44464 getsockname(0, 0, &len);
44465
44466 ;
44467 return 0;
44468}
44469_ACEOF
44470rm -f conftest.$ac_objext
44471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44472 (eval $ac_compile) 2>conftest.er1
a848cd7e 44473 ac_status=$?
ac1cb8d3
VS
44474 grep -v '^ *+' conftest.er1 >conftest.err
44475 rm -f conftest.er1
44476 cat conftest.err >&5
a848cd7e
SC
44477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44478 (exit $ac_status); } &&
9b8888f9 44479 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44481 (eval $ac_try) 2>&5
44482 ac_status=$?
44483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44484 (exit $ac_status); }; } &&
44485 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44487 (eval $ac_try) 2>&5
44488 ac_status=$?
44489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44490 (exit $ac_status); }; }; then
44491 wx_cv_type_getsockname3=socklen_t
44492else
44493 echo "$as_me: failed program was:" >&5
44494sed 's/^/| /' conftest.$ac_ext >&5
44495
44496
9b8888f9 44497 CFLAGS_OLD="$CFLAGS"
a848cd7e 44498 if test "$GCC" = yes ; then
9b8888f9 44499 CFLAGS="-Werror $CFLAGS"
a848cd7e
SC
44500 fi
44501
44502 cat >conftest.$ac_ext <<_ACEOF
44503/* confdefs.h. */
44504_ACEOF
44505cat confdefs.h >>conftest.$ac_ext
44506cat >>conftest.$ac_ext <<_ACEOF
44507/* end confdefs.h. */
44508
44509 #include <sys/types.h>
44510 #include <sys/socket.h>
44511
44512int
44513main ()
44514{
44515
44516 size_t len;
44517 getsockname(0, 0, &len);
44518
44519 ;
44520 return 0;
44521}
44522_ACEOF
44523rm -f conftest.$ac_objext
44524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44525 (eval $ac_compile) 2>conftest.er1
a848cd7e 44526 ac_status=$?
ac1cb8d3
VS
44527 grep -v '^ *+' conftest.er1 >conftest.err
44528 rm -f conftest.er1
44529 cat conftest.err >&5
a848cd7e
SC
44530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44531 (exit $ac_status); } &&
9b8888f9 44532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44534 (eval $ac_try) 2>&5
44535 ac_status=$?
44536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44537 (exit $ac_status); }; } &&
44538 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44540 (eval $ac_try) 2>&5
44541 ac_status=$?
44542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44543 (exit $ac_status); }; }; then
44544 wx_cv_type_getsockname3=size_t
44545else
44546 echo "$as_me: failed program was:" >&5
44547sed 's/^/| /' conftest.$ac_ext >&5
44548
44549cat >conftest.$ac_ext <<_ACEOF
44550/* confdefs.h. */
44551_ACEOF
44552cat confdefs.h >>conftest.$ac_ext
44553cat >>conftest.$ac_ext <<_ACEOF
44554/* end confdefs.h. */
44555
44556 #include <sys/types.h>
44557 #include <sys/socket.h>
44558
44559int
44560main ()
44561{
44562
44563 int len;
44564 getsockname(0, 0, &len);
44565
44566 ;
44567 return 0;
44568}
44569_ACEOF
44570rm -f conftest.$ac_objext
44571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44572 (eval $ac_compile) 2>conftest.er1
a848cd7e 44573 ac_status=$?
ac1cb8d3
VS
44574 grep -v '^ *+' conftest.er1 >conftest.err
44575 rm -f conftest.er1
44576 cat conftest.err >&5
a848cd7e
SC
44577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44578 (exit $ac_status); } &&
9b8888f9 44579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44581 (eval $ac_try) 2>&5
44582 ac_status=$?
44583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44584 (exit $ac_status); }; } &&
44585 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44587 (eval $ac_try) 2>&5
44588 ac_status=$?
44589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44590 (exit $ac_status); }; }; then
44591 wx_cv_type_getsockname3=int
44592else
44593 echo "$as_me: failed program was:" >&5
44594sed 's/^/| /' conftest.$ac_ext >&5
44595
44596wx_cv_type_getsockname3=unknown
44597
44598fi
ac1cb8d3 44599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44600
44601fi
ac1cb8d3 44602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 44603
9b8888f9 44604 CFLAGS="$CFLAGS_OLD"
a848cd7e
SC
44605
44606
44607fi
ac1cb8d3 44608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
44609 ac_ext=c
44610ac_cpp='$CPP $CPPFLAGS'
44611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44613ac_compiler_gnu=$ac_cv_c_compiler_gnu
44614
a848cd7e
SC
44615
44616fi
44617echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44618echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
44619
44620 if test "$wx_cv_type_getsockname3" = "unknown"; then
44621 wxUSE_SOCKETS=no
44622 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44623echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44624 else
44625 cat >>confdefs.h <<_ACEOF
9e03e02d 44626#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
44627_ACEOF
44628
44629 fi
44630 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44631echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
44632if test "${wx_cv_type_getsockopt5+set}" = set; then
44633 echo $ECHO_N "(cached) $ECHO_C" >&6
44634else
44635
44636 cat >conftest.$ac_ext <<_ACEOF
44637/* confdefs.h. */
44638_ACEOF
44639cat confdefs.h >>conftest.$ac_ext
44640cat >>conftest.$ac_ext <<_ACEOF
44641/* end confdefs.h. */
44642
44643 #include <sys/types.h>
44644 #include <sys/socket.h>
44645
44646int
44647main ()
44648{
44649
44650 socklen_t len;
44651 getsockopt(0, 0, 0, 0, &len);
44652
44653 ;
44654 return 0;
44655}
44656_ACEOF
44657rm -f conftest.$ac_objext
44658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44659 (eval $ac_compile) 2>conftest.er1
44660 ac_status=$?
44661 grep -v '^ *+' conftest.er1 >conftest.err
44662 rm -f conftest.er1
44663 cat conftest.err >&5
44664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44665 (exit $ac_status); } &&
fd5199d6 44666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44668 (eval $ac_try) 2>&5
44669 ac_status=$?
44670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44671 (exit $ac_status); }; } &&
44672 { ac_try='test -s conftest.$ac_objext'
44673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44674 (eval $ac_try) 2>&5
44675 ac_status=$?
44676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44677 (exit $ac_status); }; }; then
44678 wx_cv_type_getsockopt5=socklen_t
44679else
44680 echo "$as_me: failed program was:" >&5
44681sed 's/^/| /' conftest.$ac_ext >&5
44682
44683
e43101ee
SN
44684 ac_ext=cc
44685ac_cpp='$CXXCPP $CPPFLAGS'
44686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5b674b9d
DE
44689
44690 cat >conftest.$ac_ext <<_ACEOF
44691/* confdefs.h. */
44692_ACEOF
44693cat confdefs.h >>conftest.$ac_ext
44694cat >>conftest.$ac_ext <<_ACEOF
44695/* end confdefs.h. */
44696
44697 #include <sys/types.h>
44698 #include <sys/socket.h>
44699
44700int
44701main ()
44702{
44703
44704 size_t len;
44705 getsockopt(0, 0, 0, 0, &len);
44706
44707 ;
44708 return 0;
44709}
44710_ACEOF
44711rm -f conftest.$ac_objext
44712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44713 (eval $ac_compile) 2>conftest.er1
44714 ac_status=$?
44715 grep -v '^ *+' conftest.er1 >conftest.err
44716 rm -f conftest.er1
44717 cat conftest.err >&5
44718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44719 (exit $ac_status); } &&
e43101ee 44720 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44722 (eval $ac_try) 2>&5
44723 ac_status=$?
44724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44725 (exit $ac_status); }; } &&
44726 { ac_try='test -s conftest.$ac_objext'
44727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44728 (eval $ac_try) 2>&5
44729 ac_status=$?
44730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44731 (exit $ac_status); }; }; then
44732 wx_cv_type_getsockopt5=size_t
44733else
44734 echo "$as_me: failed program was:" >&5
44735sed 's/^/| /' conftest.$ac_ext >&5
44736
44737cat >conftest.$ac_ext <<_ACEOF
44738/* confdefs.h. */
44739_ACEOF
44740cat confdefs.h >>conftest.$ac_ext
44741cat >>conftest.$ac_ext <<_ACEOF
44742/* end confdefs.h. */
44743
44744 #include <sys/types.h>
44745 #include <sys/socket.h>
44746
44747int
44748main ()
44749{
44750
44751 int len;
44752 getsockopt(0, 0, 0, 0, &len);
44753
44754 ;
44755 return 0;
44756}
44757_ACEOF
44758rm -f conftest.$ac_objext
44759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44760 (eval $ac_compile) 2>conftest.er1
44761 ac_status=$?
44762 grep -v '^ *+' conftest.er1 >conftest.err
44763 rm -f conftest.er1
44764 cat conftest.err >&5
44765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44766 (exit $ac_status); } &&
e43101ee 44767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44769 (eval $ac_try) 2>&5
44770 ac_status=$?
44771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44772 (exit $ac_status); }; } &&
44773 { ac_try='test -s conftest.$ac_objext'
44774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44775 (eval $ac_try) 2>&5
44776 ac_status=$?
44777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44778 (exit $ac_status); }; }; then
44779 wx_cv_type_getsockopt5=int
44780else
44781 echo "$as_me: failed program was:" >&5
44782sed 's/^/| /' conftest.$ac_ext >&5
44783
44784wx_cv_type_getsockopt5=unknown
44785
44786fi
44787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44788
44789fi
44790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e43101ee
SN
44791 ac_ext=c
44792ac_cpp='$CPP $CPPFLAGS'
44793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44795ac_compiler_gnu=$ac_cv_c_compiler_gnu
5b674b9d 44796
5b674b9d
DE
44797
44798
44799fi
44800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44801
44802fi
44803echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44804echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
44805
44806 if test "$wx_cv_type_getsockopt5" = "unknown"; then
44807 wxUSE_SOCKETS=no
44808 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44809echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44810 else
44811 cat >>confdefs.h <<_ACEOF
44812#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
44813_ACEOF
44814
44815 fi
44816 fi
44817fi
44818
44819if test "$wxUSE_SOCKETS" = "yes" ; then
44820 cat >>confdefs.h <<\_ACEOF
44821#define wxUSE_SOCKETS 1
44822_ACEOF
44823
44824 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44825fi
44826
44827if test "$wxUSE_PROTOCOL" = "yes"; then
44828 if test "$wxUSE_SOCKETS" != "yes"; then
44829 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44830echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44831 wxUSE_PROTOCOL=no
44832 fi
44833fi
44834
44835if test "$wxUSE_PROTOCOL" = "yes"; then
44836 cat >>confdefs.h <<\_ACEOF
44837#define wxUSE_PROTOCOL 1
44838_ACEOF
44839
44840
44841 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44842 cat >>confdefs.h <<\_ACEOF
44843#define wxUSE_PROTOCOL_HTTP 1
44844_ACEOF
44845
44846 fi
44847 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44848 cat >>confdefs.h <<\_ACEOF
44849#define wxUSE_PROTOCOL_FTP 1
44850_ACEOF
44851
44852 fi
44853 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44854 cat >>confdefs.h <<\_ACEOF
44855#define wxUSE_PROTOCOL_FILE 1
44856_ACEOF
44857
44858 fi
44859else
44860 if test "$wxUSE_FS_INET" = "yes"; then
44861 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44862echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44863 wxUSE_FS_INET="no"
44864 fi
44865fi
44866
44867if test "$wxUSE_URL" = "yes"; then
44868 if test "$wxUSE_PROTOCOL" != "yes"; then
44869 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44870echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44871 wxUSE_URL=no
44872 fi
44873 if test "$wxUSE_URL" = "yes"; then
44874 cat >>confdefs.h <<\_ACEOF
44875#define wxUSE_URL 1
44876_ACEOF
44877
44878 fi
44879fi
44880
ca5c6ac3
VZ
44881if test "$wxUSE_VARIANT" = "yes"; then
44882 cat >>confdefs.h <<\_ACEOF
44883#define wxUSE_VARIANT 1
44884_ACEOF
44885
44886fi
44887
a848cd7e
SC
44888if test "$wxUSE_FS_INET" = "yes"; then
44889 cat >>confdefs.h <<\_ACEOF
44890#define wxUSE_FS_INET 1
44891_ACEOF
44892
44893fi
44894
44895
ee45c548
MW
44896if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44897 wxUSE_JOYSTICK=no
44898
44899 if test "$TOOLKIT" = "MSW"; then
44900 wxUSE_JOYSTICK=yes
44901
44902 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44903 if test "$USE_DARWIN" = 1; then
44904 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44905echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
9b8888f9
VZ
44906 ac_ext=cc
44907ac_cpp='$CXXCPP $CPPFLAGS'
44908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44911
ee45c548
MW
44912 cat >conftest.$ac_ext <<_ACEOF
44913/* confdefs.h. */
44914_ACEOF
44915cat confdefs.h >>conftest.$ac_ext
44916cat >>conftest.$ac_ext <<_ACEOF
44917/* end confdefs.h. */
44918 #include <IOKit/hid/IOHIDLib.h>
44919int
44920main ()
44921{
44922 IOHIDQueueInterface *qi = NULL;
44923 IOHIDCallbackFunction cb = NULL;
44924 qi->setEventCallout(NULL, cb, NULL, NULL);
44925 ;
44926 return 0;
44927}
44928_ACEOF
44929rm -f conftest.$ac_objext
44930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44931 (eval $ac_compile) 2>conftest.er1
44932 ac_status=$?
44933 grep -v '^ *+' conftest.er1 >conftest.err
44934 rm -f conftest.er1
44935 cat conftest.err >&5
44936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44937 (exit $ac_status); } &&
9b8888f9 44938 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
44939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44940 (eval $ac_try) 2>&5
44941 ac_status=$?
44942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44943 (exit $ac_status); }; } &&
44944 { ac_try='test -s conftest.$ac_objext'
44945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44946 (eval $ac_try) 2>&5
44947 ac_status=$?
44948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44949 (exit $ac_status); }; }; then
44950 wxUSE_JOYSTICK=yes
a848cd7e 44951
ee45c548
MW
44952else
44953 echo "$as_me: failed program was:" >&5
44954sed 's/^/| /' conftest.$ac_ext >&5
44955
44956fi
44957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9b8888f9
VZ
44958 ac_ext=c
44959ac_cpp='$CPP $CPPFLAGS'
44960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44962ac_compiler_gnu=$ac_cv_c_compiler_gnu
44963
ee45c548
MW
44964 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44965echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
44966 fi
44967
44968 else
b6814e24 44969 if test "$wxUSE_MGL" != "1"; then
a848cd7e
SC
44970
44971for ac_header in linux/joystick.h
44972do
44973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44974if eval "test \"\${$as_ac_Header+set}\" = set"; then
44975 echo "$as_me:$LINENO: checking for $ac_header" >&5
44976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44977if eval "test \"\${$as_ac_Header+set}\" = set"; then
44978 echo $ECHO_N "(cached) $ECHO_C" >&6
44979fi
44980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44981echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44982else
44983 # Is the header compilable?
44984echo "$as_me:$LINENO: checking $ac_header usability" >&5
44985echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44986cat >conftest.$ac_ext <<_ACEOF
44987/* confdefs.h. */
44988_ACEOF
44989cat confdefs.h >>conftest.$ac_ext
44990cat >>conftest.$ac_ext <<_ACEOF
44991/* end confdefs.h. */
44992$ac_includes_default
44993#include <$ac_header>
44994_ACEOF
44995rm -f conftest.$ac_objext
44996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44997 (eval $ac_compile) 2>conftest.er1
a848cd7e 44998 ac_status=$?
ac1cb8d3
VS
44999 grep -v '^ *+' conftest.er1 >conftest.err
45000 rm -f conftest.er1
45001 cat conftest.err >&5
a848cd7e
SC
45002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45003 (exit $ac_status); } &&
fd5199d6 45004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45006 (eval $ac_try) 2>&5
45007 ac_status=$?
45008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45009 (exit $ac_status); }; } &&
45010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45012 (eval $ac_try) 2>&5
45013 ac_status=$?
45014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45015 (exit $ac_status); }; }; then
45016 ac_header_compiler=yes
45017else
45018 echo "$as_me: failed program was:" >&5
45019sed 's/^/| /' conftest.$ac_ext >&5
45020
45021ac_header_compiler=no
45022fi
ac1cb8d3 45023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45024echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45025echo "${ECHO_T}$ac_header_compiler" >&6
45026
45027# Is the header present?
45028echo "$as_me:$LINENO: checking $ac_header presence" >&5
45029echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45030cat >conftest.$ac_ext <<_ACEOF
45031/* confdefs.h. */
45032_ACEOF
45033cat confdefs.h >>conftest.$ac_ext
45034cat >>conftest.$ac_ext <<_ACEOF
45035/* end confdefs.h. */
45036#include <$ac_header>
45037_ACEOF
45038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45040 ac_status=$?
45041 grep -v '^ *+' conftest.er1 >conftest.err
45042 rm -f conftest.er1
45043 cat conftest.err >&5
45044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45045 (exit $ac_status); } >/dev/null; then
45046 if test -s conftest.err; then
fd5199d6
VZ
45047 ac_cpp_err=$ac_c_preproc_warn_flag
45048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
45049 else
45050 ac_cpp_err=
45051 fi
45052else
45053 ac_cpp_err=yes
45054fi
45055if test -z "$ac_cpp_err"; then
45056 ac_header_preproc=yes
45057else
45058 echo "$as_me: failed program was:" >&5
45059sed 's/^/| /' conftest.$ac_ext >&5
45060
45061 ac_header_preproc=no
45062fi
45063rm -f conftest.err conftest.$ac_ext
45064echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45065echo "${ECHO_T}$ac_header_preproc" >&6
45066
45067# So? What about this header?
fd5199d6 45068case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 45069 yes:no: )
a848cd7e
SC
45070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45071echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
45072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45073echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45074 ac_header_preproc=yes
a848cd7e 45075 ;;
ac1cb8d3 45076 no:yes:* )
a848cd7e
SC
45077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45078echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
45079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45080echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45082echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45084echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
45085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45086echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
45087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45088echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
45089 (
45090 cat <<\_ASBOX
ac1cb8d3
VS
45091## ----------------------------------------- ##
45092## Report this to wx-dev@lists.wxwidgets.org ##
45093## ----------------------------------------- ##
a848cd7e
SC
45094_ASBOX
45095 ) |
45096 sed "s/^/$as_me: WARNING: /" >&2
45097 ;;
45098esac
45099echo "$as_me:$LINENO: checking for $ac_header" >&5
45100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45101if eval "test \"\${$as_ac_Header+set}\" = set"; then
45102 echo $ECHO_N "(cached) $ECHO_C" >&6
45103else
ac1cb8d3 45104 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
45105fi
45106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45108
45109fi
45110if test `eval echo '${'$as_ac_Header'}'` = yes; then
45111 cat >>confdefs.h <<_ACEOF
45112#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45113_ACEOF
ee45c548 45114 wxUSE_JOYSTICK=yes
a848cd7e
SC
45115fi
45116
45117done
45118
b6814e24 45119 fi
ee45c548 45120 fi
4cb1d3da 45121
ee45c548
MW
45122 if test "$wxUSE_JOYSTICK" = "yes"; then
45123 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45124#define wxUSE_JOYSTICK 1
45125_ACEOF
45126
ee45c548
MW
45127 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45128 else
45129 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45130echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
45131 fi
45132fi
45133
45134
45135
45136if test "$wxUSE_FONTMAP" = "yes" ; then
45137 cat >>confdefs.h <<\_ACEOF
45138#define wxUSE_FONTMAP 1
45139_ACEOF
45140
45141fi
45142
45143if test "$wxUSE_UNICODE" = "yes" ; then
45144 cat >>confdefs.h <<\_ACEOF
45145#define wxUSE_UNICODE 1
45146_ACEOF
45147
45148
45149 if test "$USE_WIN32" != 1; then
45150 wxUSE_UNICODE_MSLU=no
45151 fi
45152
45153 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45154 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45155echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
45156if test "${ac_cv_lib_unicows_main+set}" = set; then
45157 echo $ECHO_N "(cached) $ECHO_C" >&6
45158else
45159 ac_check_lib_save_LIBS=$LIBS
45160LIBS="-lunicows $LIBS"
45161cat >conftest.$ac_ext <<_ACEOF
45162/* confdefs.h. */
45163_ACEOF
45164cat confdefs.h >>conftest.$ac_ext
45165cat >>conftest.$ac_ext <<_ACEOF
45166/* end confdefs.h. */
45167
45168
45169int
45170main ()
45171{
45172main ();
45173 ;
45174 return 0;
45175}
45176_ACEOF
45177rm -f conftest.$ac_objext conftest$ac_exeext
45178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 45179 (eval $ac_link) 2>conftest.er1
a848cd7e 45180 ac_status=$?
ac1cb8d3
VS
45181 grep -v '^ *+' conftest.er1 >conftest.err
45182 rm -f conftest.er1
45183 cat conftest.err >&5
a848cd7e
SC
45184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45185 (exit $ac_status); } &&
fd5199d6 45186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45188 (eval $ac_try) 2>&5
45189 ac_status=$?
45190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45191 (exit $ac_status); }; } &&
45192 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
45193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45194 (eval $ac_try) 2>&5
45195 ac_status=$?
45196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45197 (exit $ac_status); }; }; then
45198 ac_cv_lib_unicows_main=yes
45199else
45200 echo "$as_me: failed program was:" >&5
45201sed 's/^/| /' conftest.$ac_ext >&5
45202
45203ac_cv_lib_unicows_main=no
45204fi
ac1cb8d3
VS
45205rm -f conftest.err conftest.$ac_objext \
45206 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
45207LIBS=$ac_check_lib_save_LIBS
45208fi
45209echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45210echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
45211if test $ac_cv_lib_unicows_main = yes; then
45212
45213 cat >>confdefs.h <<\_ACEOF
45214#define wxUSE_UNICODE_MSLU 1
45215_ACEOF
45216
45217
45218else
45219
45220 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45221 Applications will only run on Windows NT/2000/XP!" >&5
45222echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45223 Applications will only run on Windows NT/2000/XP!" >&2;}
45224 wxUSE_UNICODE_MSLU=no
45225
45226fi
45227
45228 fi
45229fi
45230
45231if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
45232 cat >>confdefs.h <<\_ACEOF
45233#define wxUSE_EXPERIMENTAL_PRINTF 1
45234_ACEOF
45235
45236fi
45237
45238
45239if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45240 cat >>confdefs.h <<\_ACEOF
45241#define wxUSE_POSTSCRIPT 1
45242_ACEOF
45243
45244fi
45245
45246cat >>confdefs.h <<\_ACEOF
45247#define wxUSE_AFM_FOR_POSTSCRIPT 1
45248_ACEOF
45249
45250
45251cat >>confdefs.h <<\_ACEOF
45252#define wxUSE_NORMALIZED_PS_FONTS 1
45253_ACEOF
45254
45255
45256
45257if test "$wxUSE_CONSTRAINTS" = "yes"; then
45258 cat >>confdefs.h <<\_ACEOF
45259#define wxUSE_CONSTRAINTS 1
45260_ACEOF
45261
45262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45263fi
45264
8a7b1113
VZ
45265if test "$wxUSE_MDI" = "yes"; then
45266 cat >>confdefs.h <<\_ACEOF
45267#define wxUSE_MDI 1
45268_ACEOF
45269
45270
45271 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45272 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45273#define wxUSE_MDI_ARCHITECTURE 1
45274_ACEOF
45275
8a7b1113
VZ
45276 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45277 fi
a848cd7e
SC
45278fi
45279
45280if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45281 cat >>confdefs.h <<\_ACEOF
45282#define wxUSE_DOC_VIEW_ARCHITECTURE 1
45283_ACEOF
45284
45285 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45286 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45287 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
45288 fi
45289fi
45290
45291if test "$wxUSE_HELP" = "yes"; then
45292 cat >>confdefs.h <<\_ACEOF
45293#define wxUSE_HELP 1
45294_ACEOF
45295
45296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45297
45298 if test "$wxUSE_MSW" = 1; then
45299 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45300 cat >>confdefs.h <<\_ACEOF
45301#define wxUSE_MS_HTML_HELP 1
45302_ACEOF
45303
45304 fi
45305 fi
45306
45307 if test "$wxUSE_WXHTML_HELP" = "yes"; then
45308 if test "$wxUSE_HTML" = "yes"; then
45309 cat >>confdefs.h <<\_ACEOF
45310#define wxUSE_WXHTML_HELP 1
45311_ACEOF
45312
45313 else
45314 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45315echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45316 wxUSE_WXHTML_HELP=no
45317 fi
45318 fi
45319fi
45320
45321if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45322 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45323 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
45324echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
45325 else
45326 cat >>confdefs.h <<\_ACEOF
45327#define wxUSE_PRINTING_ARCHITECTURE 1
45328_ACEOF
45329
45330 fi
45331 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45332fi
45333
45334if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
45335 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
45336echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
45337 { (exit 1); exit 1; }; }
45338fi
45339
45340
efdf6afe
VZ
45341if test "$wxUSE_METAFILE" = "yes"; then
45342 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45343 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45344echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45345 wxUSE_METAFILE=no
45346 fi
45347fi
45348
45349
a848cd7e
SC
45350if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
45351 -o "$wxUSE_CLIPBOARD" = "yes" \
45352 -o "$wxUSE_OLE" = "yes" \
45353 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45354
45355for ac_header in ole2.h
45356do
45357as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45358if eval "test \"\${$as_ac_Header+set}\" = set"; then
45359 echo "$as_me:$LINENO: checking for $ac_header" >&5
45360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45361if eval "test \"\${$as_ac_Header+set}\" = set"; then
45362 echo $ECHO_N "(cached) $ECHO_C" >&6
45363fi
45364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45365echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45366else
45367 # Is the header compilable?
45368echo "$as_me:$LINENO: checking $ac_header usability" >&5
45369echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45370cat >conftest.$ac_ext <<_ACEOF
45371/* confdefs.h. */
45372_ACEOF
45373cat confdefs.h >>conftest.$ac_ext
45374cat >>conftest.$ac_ext <<_ACEOF
45375/* end confdefs.h. */
45376$ac_includes_default
45377#include <$ac_header>
45378_ACEOF
45379rm -f conftest.$ac_objext
45380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45381 (eval $ac_compile) 2>conftest.er1
a848cd7e 45382 ac_status=$?
ac1cb8d3
VS
45383 grep -v '^ *+' conftest.er1 >conftest.err
45384 rm -f conftest.er1
45385 cat conftest.err >&5
a848cd7e
SC
45386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45387 (exit $ac_status); } &&
fd5199d6 45388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45390 (eval $ac_try) 2>&5
45391 ac_status=$?
45392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45393 (exit $ac_status); }; } &&
45394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45396 (eval $ac_try) 2>&5
45397 ac_status=$?
45398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45399 (exit $ac_status); }; }; then
45400 ac_header_compiler=yes
45401else
45402 echo "$as_me: failed program was:" >&5
45403sed 's/^/| /' conftest.$ac_ext >&5
45404
45405ac_header_compiler=no
45406fi
ac1cb8d3 45407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45408echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45409echo "${ECHO_T}$ac_header_compiler" >&6
45410
45411# Is the header present?
45412echo "$as_me:$LINENO: checking $ac_header presence" >&5
45413echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45414cat >conftest.$ac_ext <<_ACEOF
45415/* confdefs.h. */
45416_ACEOF
45417cat confdefs.h >>conftest.$ac_ext
45418cat >>conftest.$ac_ext <<_ACEOF
45419/* end confdefs.h. */
45420#include <$ac_header>
45421_ACEOF
45422if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45424 ac_status=$?
45425 grep -v '^ *+' conftest.er1 >conftest.err
45426 rm -f conftest.er1
45427 cat conftest.err >&5
45428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45429 (exit $ac_status); } >/dev/null; then
45430 if test -s conftest.err; then
fd5199d6
VZ
45431 ac_cpp_err=$ac_c_preproc_warn_flag
45432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
45433 else
45434 ac_cpp_err=
45435 fi
45436else
45437 ac_cpp_err=yes
45438fi
45439if test -z "$ac_cpp_err"; then
45440 ac_header_preproc=yes
45441else
45442 echo "$as_me: failed program was:" >&5
45443sed 's/^/| /' conftest.$ac_ext >&5
45444
45445 ac_header_preproc=no
45446fi
45447rm -f conftest.err conftest.$ac_ext
45448echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45449echo "${ECHO_T}$ac_header_preproc" >&6
45450
45451# So? What about this header?
fd5199d6 45452case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
ac1cb8d3 45453 yes:no: )
a848cd7e
SC
45454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45455echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
45456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45457echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45458 ac_header_preproc=yes
a848cd7e 45459 ;;
ac1cb8d3 45460 no:yes:* )
a848cd7e
SC
45461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45462echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
45463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45464echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45466echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45468echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
45469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45470echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
45471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45472echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
45473 (
45474 cat <<\_ASBOX
ac1cb8d3
VS
45475## ----------------------------------------- ##
45476## Report this to wx-dev@lists.wxwidgets.org ##
45477## ----------------------------------------- ##
a848cd7e
SC
45478_ASBOX
45479 ) |
45480 sed "s/^/$as_me: WARNING: /" >&2
45481 ;;
45482esac
45483echo "$as_me:$LINENO: checking for $ac_header" >&5
45484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45485if eval "test \"\${$as_ac_Header+set}\" = set"; then
45486 echo $ECHO_N "(cached) $ECHO_C" >&6
45487else
ac1cb8d3 45488 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
45489fi
45490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45491echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45492
45493fi
45494if test `eval echo '${'$as_ac_Header'}'` = yes; then
45495 cat >>confdefs.h <<_ACEOF
45496#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45497_ACEOF
45498
45499fi
45500
45501done
45502
45503
45504 if test "$ac_cv_header_ole2_h" = "yes" ; then
45505 if test "$GCC" = yes ; then
a848cd7e
SC
45506 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45507echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
45508 cat >conftest.$ac_ext <<_ACEOF
45509/* confdefs.h. */
45510_ACEOF
45511cat confdefs.h >>conftest.$ac_ext
45512cat >>conftest.$ac_ext <<_ACEOF
45513/* end confdefs.h. */
45514#include <windows.h>
45515 #include <ole2.h>
45516int
45517main ()
45518{
45519
45520 ;
45521 return 0;
45522}
45523_ACEOF
45524rm -f conftest.$ac_objext
45525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45526 (eval $ac_compile) 2>conftest.er1
a848cd7e 45527 ac_status=$?
ac1cb8d3
VS
45528 grep -v '^ *+' conftest.er1 >conftest.err
45529 rm -f conftest.er1
45530 cat conftest.err >&5
a848cd7e
SC
45531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45532 (exit $ac_status); } &&
fd5199d6 45533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45535 (eval $ac_try) 2>&5
45536 ac_status=$?
45537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45538 (exit $ac_status); }; } &&
45539 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45541 (eval $ac_try) 2>&5
45542 ac_status=$?
45543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45544 (exit $ac_status); }; }; then
45545 echo "$as_me:$LINENO: result: no" >&5
45546echo "${ECHO_T}no" >&6
45547else
45548 echo "$as_me: failed program was:" >&5
45549sed 's/^/| /' conftest.$ac_ext >&5
45550
45551echo "$as_me:$LINENO: result: yes" >&5
45552echo "${ECHO_T}yes" >&6
5ff751d6 45553 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 45554fi
ac1cb8d3 45555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45556 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45557 if test "$wxUSE_OLE" = "yes" ; then
45558 cat >>confdefs.h <<\_ACEOF
45559#define wxUSE_OLE 1
f43426c1
RD
45560_ACEOF
45561
45562 cat >>confdefs.h <<\_ACEOF
45563#define wxUSE_OLE_AUTOMATION 1
45564_ACEOF
45565
45566 cat >>confdefs.h <<\_ACEOF
45567#define wxUSE_OLE_ACTIVEX 1
a848cd7e
SC
45568_ACEOF
45569
0b78747f 45570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
45571 fi
45572 fi
45573
45574 if test "$wxUSE_DATAOBJ" = "yes" ; then
45575 cat >>confdefs.h <<\_ACEOF
45576#define wxUSE_DATAOBJ 1
45577_ACEOF
45578
45579 fi
45580 else
45581 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45582echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45583
45584 wxUSE_CLIPBOARD=no
45585 wxUSE_DRAG_AND_DROP=no
45586 wxUSE_DATAOBJ=no
45587 wxUSE_OLE=no
45588 fi
45589
45590 if test "$wxUSE_METAFILE" = "yes"; then
45591 cat >>confdefs.h <<\_ACEOF
45592#define wxUSE_METAFILE 1
45593_ACEOF
45594
45595
45596 cat >>confdefs.h <<\_ACEOF
45597#define wxUSE_ENH_METAFILE 1
45598_ACEOF
45599
45600 fi
45601fi
45602
45603if test "$wxUSE_IPC" = "yes"; then
0b78747f 45604 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
45605 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45606echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 45607 wxUSE_IPC=no
a848cd7e
SC
45608 fi
45609
0b78747f
MW
45610 if test "$wxUSE_IPC" = "yes"; then
45611 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45612#define wxUSE_IPC 1
45613_ACEOF
45614
0b78747f
MW
45615 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45616 fi
a848cd7e
SC
45617fi
45618
eb730a0c 45619if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
45620 if test "$wxUSE_MGL" = 1; then
45621 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
45622echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
45623 wxUSE_DATAOBJ=no
45624 else
45625 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
45626#define wxUSE_DATAOBJ 1
45627_ACEOF
45628
2113bc77 45629 fi
eb730a0c
JS
45630else
45631 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45632echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45633 wxUSE_CLIPBOARD=no
45634 wxUSE_DRAG_AND_DROP=no
45635fi
45636
a848cd7e
SC
45637if test "$wxUSE_CLIPBOARD" = "yes"; then
45638 if test "$wxUSE_MGL" = 1; then
45639 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
45640echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
45641 wxUSE_CLIPBOARD=no
45642 fi
45643
45644 if test "$wxUSE_CLIPBOARD" = "yes"; then
45645 cat >>confdefs.h <<\_ACEOF
45646#define wxUSE_CLIPBOARD 1
45647_ACEOF
45648
a848cd7e
SC
45649 fi
45650fi
45651
45652if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45653 if test "$wxUSE_GTK" = 1; then
45654 if test "$WXGTK12" != 1; then
45655 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45656echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45657 wxUSE_DRAG_AND_DROP=no
45658 fi
45659 fi
45660
45661 if test "$wxUSE_MOTIF" = 1; then
45662 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
45663echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
45664 wxUSE_DRAG_AND_DROP=no
45665 fi
45666
45667 if test "$wxUSE_X11" = 1; then
45668 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
45669echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
45670 wxUSE_DRAG_AND_DROP=no
45671 fi
45672
45673 if test "$wxUSE_MGL" = 1; then
45674 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
45675echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
45676 wxUSE_DRAG_AND_DROP=no
45677 fi
45678
45679 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45680 cat >>confdefs.h <<\_ACEOF
45681#define wxUSE_DRAG_AND_DROP 1
45682_ACEOF
45683
45684 fi
45685
45686fi
45687
45688if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45690fi
45691
45692if test "$wxUSE_SPLINES" = "yes" ; then
45693 cat >>confdefs.h <<\_ACEOF
45694#define wxUSE_SPLINES 1
45695_ACEOF
45696
45697fi
45698
fbe2ca43
SN
45699if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45700 cat >>confdefs.h <<\_ACEOF
45701#define wxUSE_MOUSEWHEEL 1
45702_ACEOF
45703
45704fi
45705
a848cd7e
SC
45706
45707USES_CONTROLS=0
45708if test "$wxUSE_CONTROLS" = "yes"; then
45709 USES_CONTROLS=1
45710fi
45711
45712if test "$wxUSE_ACCEL" = "yes"; then
45713 cat >>confdefs.h <<\_ACEOF
45714#define wxUSE_ACCEL 1
45715_ACEOF
45716
45717 USES_CONTROLS=1
45718fi
45719
7067783d 45720if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
3ea50042
VZ
45721 cat >>confdefs.h <<\_ACEOF
45722#define wxUSE_ANIMATIONCTRL 1
45723_ACEOF
45724
45725 USES_CONTROLS=1
45726 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45727fi
45728
a848cd7e
SC
45729if test "$wxUSE_BUTTON" = "yes"; then
45730 cat >>confdefs.h <<\_ACEOF
45731#define wxUSE_BUTTON 1
45732_ACEOF
45733
45734 USES_CONTROLS=1
45735fi
45736
45737if test "$wxUSE_BMPBUTTON" = "yes"; then
45738 cat >>confdefs.h <<\_ACEOF
45739#define wxUSE_BMPBUTTON 1
45740_ACEOF
45741
45742 USES_CONTROLS=1
45743fi
45744
45745if test "$wxUSE_CALCTRL" = "yes"; then
45746 cat >>confdefs.h <<\_ACEOF
45747#define wxUSE_CALENDARCTRL 1
45748_ACEOF
45749
45750 USES_CONTROLS=1
45751 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45752fi
45753
45754if test "$wxUSE_CARET" = "yes"; then
45755 cat >>confdefs.h <<\_ACEOF
45756#define wxUSE_CARET 1
45757_ACEOF
45758
45759 USES_CONTROLS=1
45760 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45761fi
45762
bd915ace
RR
45763if test "$wxUSE_COLLPANE" = "yes"; then
45764 cat >>confdefs.h <<\_ACEOF
45765#define wxUSE_COLLPANE 1
45766_ACEOF
45767
45768 USES_CONTROLS=1
45769 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
45770fi
45771
a848cd7e
SC
45772if test "$wxUSE_COMBOBOX" = "yes"; then
45773 cat >>confdefs.h <<\_ACEOF
45774#define wxUSE_COMBOBOX 1
45775_ACEOF
45776
45777 USES_CONTROLS=1
45778fi
45779
a57d600f 45780if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 45781 cat >>confdefs.h <<\_ACEOF
a57d600f 45782#define wxUSE_COMBOCTRL 1
642bcba9
VZ
45783_ACEOF
45784
45785 USES_CONTROLS=1
45786fi
45787
a848cd7e
SC
45788if test "$wxUSE_CHOICE" = "yes"; then
45789 cat >>confdefs.h <<\_ACEOF
45790#define wxUSE_CHOICE 1
45791_ACEOF
45792
45793 USES_CONTROLS=1
45794fi
45795
92bbdbcd
WS
45796if test "$wxUSE_CHOICEBOOK" = "yes"; then
45797 cat >>confdefs.h <<\_ACEOF
45798#define wxUSE_CHOICEBOOK 1
45799_ACEOF
45800
45801 USES_CONTROLS=1
45802fi
45803
a848cd7e
SC
45804if test "$wxUSE_CHECKBOX" = "yes"; then
45805 cat >>confdefs.h <<\_ACEOF
45806#define wxUSE_CHECKBOX 1
45807_ACEOF
45808
45809 USES_CONTROLS=1
45810fi
45811
45812if test "$wxUSE_CHECKLST" = "yes"; then
45813 cat >>confdefs.h <<\_ACEOF
45814#define wxUSE_CHECKLISTBOX 1
45815_ACEOF
45816
45817 USES_CONTROLS=1
45818 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
45819fi
45820
e9263684
VZ
45821if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45822 cat >>confdefs.h <<\_ACEOF
45823#define wxUSE_COLOURPICKERCTRL 1
45824_ACEOF
45825
45826 USES_CONTROLS=1
45827fi
45828
da98e9be
VZ
45829if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45830 cat >>confdefs.h <<\_ACEOF
45831#define wxUSE_DATEPICKCTRL 1
45832_ACEOF
45833
45834 USES_CONTROLS=1
45835fi
45836
e9263684
VZ
45837if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45838 cat >>confdefs.h <<\_ACEOF
45839#define wxUSE_DIRPICKERCTRL 1
45840_ACEOF
45841
45842 USES_CONTROLS=1
45843fi
45844
45845if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45846 cat >>confdefs.h <<\_ACEOF
45847#define wxUSE_FILEPICKERCTRL 1
45848_ACEOF
45849
45850 USES_CONTROLS=1
45851fi
45852
45853if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45854 cat >>confdefs.h <<\_ACEOF
45855#define wxUSE_FONTPICKERCTRL 1
45856_ACEOF
45857
45858 USES_CONTROLS=1
45859fi
45860
a848cd7e
SC
45861if test "$wxUSE_DISPLAY" = "yes"; then
45862 cat >>confdefs.h <<\_ACEOF
45863#define wxUSE_DISPLAY 1
45864_ACEOF
45865
0b78747f 45866 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
45867fi
45868
88bbc332
RR
45869if test "$wxUSE_DETECT_SM" = "yes"; then
45870 cat >>confdefs.h <<\_ACEOF
45871#define wxUSE_DETECT_SM 1
45872_ACEOF
45873
45874fi
45875
a848cd7e
SC
45876if test "$wxUSE_GAUGE" = "yes"; then
45877 cat >>confdefs.h <<\_ACEOF
45878#define wxUSE_GAUGE 1
45879_ACEOF
45880
45881 USES_CONTROLS=1
45882fi
45883
45884if test "$wxUSE_GRID" = "yes"; then
45885 cat >>confdefs.h <<\_ACEOF
45886#define wxUSE_GRID 1
45887_ACEOF
45888
45889 USES_CONTROLS=1
45890 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45891fi
45892
6954625c
VZ
45893if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45894 cat >>confdefs.h <<\_ACEOF
45895#define wxUSE_HYPERLINKCTRL 1
45896_ACEOF
45897
45898 USES_CONTROLS=1
45899fi
45900
95a46303
RR
45901if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45902 cat >>confdefs.h <<\_ACEOF
45903#define wxUSE_BITMAPCOMBOBOX 1
45904_ACEOF
45905
45906 USES_CONTROLS=1
45907fi
45908
20e34ecc
RR
45909if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45910 cat >>confdefs.h <<\_ACEOF
45911#define wxUSE_DATAVIEWCTRL 1
45912_ACEOF
45913
45914 USES_CONTROLS=1
45915 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45916fi
45917
a848cd7e
SC
45918if test "$wxUSE_IMAGLIST" = "yes"; then
45919 cat >>confdefs.h <<\_ACEOF
45920#define wxUSE_IMAGLIST 1
45921_ACEOF
45922
45923fi
45924
45925if test "$wxUSE_LISTBOOK" = "yes"; then
45926 cat >>confdefs.h <<\_ACEOF
45927#define wxUSE_LISTBOOK 1
45928_ACEOF
45929
45930 USES_CONTROLS=1
45931fi
45932
45933if test "$wxUSE_LISTBOX" = "yes"; then
45934 cat >>confdefs.h <<\_ACEOF
45935#define wxUSE_LISTBOX 1
45936_ACEOF
45937
45938 USES_CONTROLS=1
0b78747f 45939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
45940fi
45941
45942if test "$wxUSE_LISTCTRL" = "yes"; then
45943 if test "$wxUSE_IMAGLIST" = "yes"; then
45944 cat >>confdefs.h <<\_ACEOF
45945#define wxUSE_LISTCTRL 1
45946_ACEOF
45947
45948 USES_CONTROLS=1
45949 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45950 else
45951 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45952echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45953 fi
45954fi
45955
45956if test "$wxUSE_NOTEBOOK" = "yes"; then
45957 cat >>confdefs.h <<\_ACEOF
45958#define wxUSE_NOTEBOOK 1
45959_ACEOF
45960
45961 USES_CONTROLS=1
45962 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45963fi
45964
a57d600f 45965if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 45966 cat >>confdefs.h <<\_ACEOF
a57d600f 45967#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
45968_ACEOF
45969
45970 USES_CONTROLS=1
45971 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45972fi
45973
a848cd7e
SC
45974
45975if test "$wxUSE_RADIOBOX" = "yes"; then
45976 cat >>confdefs.h <<\_ACEOF
45977#define wxUSE_RADIOBOX 1
45978_ACEOF
45979
45980 USES_CONTROLS=1
45981fi
45982
45983if test "$wxUSE_RADIOBTN" = "yes"; then
45984 cat >>confdefs.h <<\_ACEOF
45985#define wxUSE_RADIOBTN 1
45986_ACEOF
45987
45988 USES_CONTROLS=1
45989fi
45990
45991if test "$wxUSE_SASH" = "yes"; then
45992 cat >>confdefs.h <<\_ACEOF
45993#define wxUSE_SASH 1
45994_ACEOF
45995
45996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45997fi
45998
45999if test "$wxUSE_SCROLLBAR" = "yes"; then
46000 cat >>confdefs.h <<\_ACEOF
46001#define wxUSE_SCROLLBAR 1
46002_ACEOF
46003
46004 USES_CONTROLS=1
46005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
46006fi
46007
46008if test "$wxUSE_SLIDER" = "yes"; then
46009 cat >>confdefs.h <<\_ACEOF
46010#define wxUSE_SLIDER 1
46011_ACEOF
46012
46013 USES_CONTROLS=1
46014fi
46015
46016if test "$wxUSE_SPINBTN" = "yes"; then
46017 cat >>confdefs.h <<\_ACEOF
46018#define wxUSE_SPINBTN 1
46019_ACEOF
46020
46021 USES_CONTROLS=1
46022fi
46023
46024if test "$wxUSE_SPINCTRL" = "yes"; then
46025 cat >>confdefs.h <<\_ACEOF
46026#define wxUSE_SPINCTRL 1
46027_ACEOF
46028
46029 USES_CONTROLS=1
46030fi
46031
46032if test "$wxUSE_SPLITTER" = "yes"; then
46033 cat >>confdefs.h <<\_ACEOF
46034#define wxUSE_SPLITTER 1
46035_ACEOF
46036
46037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
46038fi
46039
46040if test "$wxUSE_STATBMP" = "yes"; then
46041 cat >>confdefs.h <<\_ACEOF
46042#define wxUSE_STATBMP 1
46043_ACEOF
46044
46045 USES_CONTROLS=1
46046fi
46047
46048if test "$wxUSE_STATBOX" = "yes"; then
46049 cat >>confdefs.h <<\_ACEOF
46050#define wxUSE_STATBOX 1
46051_ACEOF
46052
46053 USES_CONTROLS=1
46054fi
46055
46056if test "$wxUSE_STATTEXT" = "yes"; then
46057 cat >>confdefs.h <<\_ACEOF
46058#define wxUSE_STATTEXT 1
46059_ACEOF
46060
46061 USES_CONTROLS=1
46062fi
46063
46064if test "$wxUSE_STATLINE" = "yes"; then
46065 cat >>confdefs.h <<\_ACEOF
46066#define wxUSE_STATLINE 1
46067_ACEOF
46068
46069 USES_CONTROLS=1
46070fi
46071
46072if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
46073 cat >>confdefs.h <<\_ACEOF
46074#define wxUSE_NATIVE_STATUSBAR 1
46075_ACEOF
46076
a848cd7e
SC
46077 cat >>confdefs.h <<\_ACEOF
46078#define wxUSE_STATUSBAR 1
46079_ACEOF
46080
46081 USES_CONTROLS=1
46082
46083 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
46084fi
46085
f10e38c4 46086if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
46087 cat >>confdefs.h <<\_ACEOF
46088#define wxUSE_TAB_DIALOG 1
46089_ACEOF
46090
a848cd7e
SC
46091fi
46092
46093if test "$wxUSE_TEXTCTRL" = "yes"; then
46094 cat >>confdefs.h <<\_ACEOF
46095#define wxUSE_TEXTCTRL 1
46096_ACEOF
46097
46098 USES_CONTROLS=1
46099 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
46100fi
46101
46102if test "$wxUSE_TOGGLEBTN" = "yes"; then
46103 if test "$wxUSE_COCOA" = 1 ; then
46104 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
46105echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
46106 wxUSE_TOGGLEBTN=no
46107 fi
a848cd7e
SC
46108
46109 if test "$wxUSE_TOGGLEBTN" = "yes"; then
46110 cat >>confdefs.h <<\_ACEOF
46111#define wxUSE_TOGGLEBTN 1
46112_ACEOF
46113
46114 USES_CONTROLS=1
46115 fi
46116fi
46117
a848cd7e
SC
46118if test "$wxUSE_TOOLBAR" = "yes"; then
46119 cat >>confdefs.h <<\_ACEOF
46120#define wxUSE_TOOLBAR 1
46121_ACEOF
46122
46123 USES_CONTROLS=1
46124
452b6243
VS
46125 if test "$wxUSE_UNIVERSAL" = "yes"; then
46126 wxUSE_TOOLBAR_NATIVE="no"
46127 else
46128 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
46129 cat >>confdefs.h <<\_ACEOF
46130#define wxUSE_TOOLBAR_NATIVE 1
46131_ACEOF
46132
a848cd7e
SC
46133 fi
46134
46135 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
46136fi
46137
46138if test "$wxUSE_TOOLTIPS" = "yes"; then
46139 if test "$wxUSE_MOTIF" = 1; then
46140 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
46141echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
46142 else
46143 if test "$wxUSE_UNIVERSAL" = "yes"; then
46144 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46145echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
46146 else
46147 cat >>confdefs.h <<\_ACEOF
46148#define wxUSE_TOOLTIPS 1
46149_ACEOF
46150
46151 fi
46152 fi
46153fi
46154
0093c2fc
VZ
46155if test "$wxUSE_TREEBOOK" = "yes"; then
46156 cat >>confdefs.h <<\_ACEOF
46157#define wxUSE_TREEBOOK 1
46158_ACEOF
46159
46160 USES_CONTROLS=1
46161fi
46162
5ec3bc43
JS
46163if test "$wxUSE_TOOLBOOK" = "yes"; then
46164 cat >>confdefs.h <<\_ACEOF
46165#define wxUSE_TOOLBOOK 1
46166_ACEOF
46167
46168 USES_CONTROLS=1
46169fi
46170
a848cd7e
SC
46171if test "$wxUSE_TREECTRL" = "yes"; then
46172 if test "$wxUSE_IMAGLIST" = "yes"; then
46173 cat >>confdefs.h <<\_ACEOF
46174#define wxUSE_TREECTRL 1
46175_ACEOF
46176
46177 USES_CONTROLS=1
46178 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46179 else
46180 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46181echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46182 fi
46183fi
46184
46185if test "$wxUSE_POPUPWIN" = "yes"; then
46186 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
46187 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46188echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
46189 else
46190 if test "$wxUSE_PM" = 1; then
46191 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46192echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46193 else
46194 cat >>confdefs.h <<\_ACEOF
46195#define wxUSE_POPUPWIN 1
46196_ACEOF
46197
0b78747f 46198 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
46199
46200 USES_CONTROLS=1
46201 fi
46202 fi
46203fi
46204
0dcd06dd 46205if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
56c6aab7 46206 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
480b9f18 46207 { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
56c6aab7 46208echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
b843b628
MB
46209 else
46210 cat >>confdefs.h <<\_ACEOF
46211#define wxUSE_DIALUP_MANAGER 1
46212_ACEOF
46213
46214 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46215 fi
46216fi
46217
a848cd7e
SC
46218if test "$wxUSE_TIPWINDOW" = "yes"; then
46219 if test "$wxUSE_PM" = 1; then
46220 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46221echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46222 else
46223 cat >>confdefs.h <<\_ACEOF
46224#define wxUSE_TIPWINDOW 1
46225_ACEOF
46226
46227 fi
46228fi
46229
46230if test "$USES_CONTROLS" = 1; then
46231 cat >>confdefs.h <<\_ACEOF
46232#define wxUSE_CONTROLS 1
46233_ACEOF
46234
46235fi
46236
46237
46238if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46239 cat >>confdefs.h <<\_ACEOF
46240#define wxUSE_ACCESSIBILITY 1
46241_ACEOF
46242
46243 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46244fi
46245
38b4a946
VZ
46246if test "$wxUSE_DC_CACHEING" = "yes"; then
46247 cat >>confdefs.h <<\_ACEOF
46248#define wxUSE_DC_CACHEING 1
46249_ACEOF
46250
46251fi
46252
a848cd7e
SC
46253if test "$wxUSE_DRAGIMAGE" = "yes"; then
46254 cat >>confdefs.h <<\_ACEOF
46255#define wxUSE_DRAGIMAGE 1
46256_ACEOF
46257
46258 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46259fi
46260
46261if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
46262 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46263 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46264echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46265 else
46266 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
46267#define wxUSE_EXCEPTIONS 1
46268_ACEOF
46269
07bea8f0
VS
46270 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46271 fi
a848cd7e
SC
46272fi
46273
46274USE_HTML=0
46275if test "$wxUSE_HTML" = "yes"; then
46276 cat >>confdefs.h <<\_ACEOF
46277#define wxUSE_HTML 1
46278_ACEOF
46279
46280 USE_HTML=1
46281 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
46282 if test "$wxUSE_MAC" = 1; then
46283 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46284 fi
a848cd7e 46285fi
646b6ec1 46286if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 46287 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 46288 old_CPPFLAGS="$CPPFLAGS"
c92ad099 46289 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
46290 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46291echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
46292if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46293 echo $ECHO_N "(cached) $ECHO_C" >&6
46294else
46295 cat >conftest.$ac_ext <<_ACEOF
46296/* confdefs.h. */
46297_ACEOF
46298cat confdefs.h >>conftest.$ac_ext
46299cat >>conftest.$ac_ext <<_ACEOF
46300/* end confdefs.h. */
46301#include <Carbon/Carbon.h>
46302
46303#include <WebKit/HIWebView.h>
46304_ACEOF
46305rm -f conftest.$ac_objext
46306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46307 (eval $ac_compile) 2>conftest.er1
46308 ac_status=$?
46309 grep -v '^ *+' conftest.er1 >conftest.err
46310 rm -f conftest.er1
46311 cat conftest.err >&5
46312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46313 (exit $ac_status); } &&
fd5199d6 46314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
46315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46316 (eval $ac_try) 2>&5
46317 ac_status=$?
46318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46319 (exit $ac_status); }; } &&
46320 { ac_try='test -s conftest.$ac_objext'
46321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46322 (eval $ac_try) 2>&5
46323 ac_status=$?
46324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46325 (exit $ac_status); }; }; then
46326 ac_cv_header_WebKit_HIWebView_h=yes
46327else
46328 echo "$as_me: failed program was:" >&5
46329sed 's/^/| /' conftest.$ac_ext >&5
46330
46331ac_cv_header_WebKit_HIWebView_h=no
46332fi
46333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46334fi
46335echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46336echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
46337if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46338
46339 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
46340#define wxUSE_WEBKIT 1
46341_ACEOF
46342
07bea8f0
VS
46343 WEBKIT_LINK="-framework WebKit"
46344
46345else
46346
46347 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46348echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46349 wxUSE_WEBKIT=no
46350
646b6ec1
VS
46351fi
46352
07bea8f0
VS
46353
46354 CPPFLAGS="$old_CPPFLAGS"
46355 elif test "$wxUSE_COCOA" = 1; then
46356 cat >>confdefs.h <<\_ACEOF
46357#define wxUSE_WEBKIT 1
46358_ACEOF
46359
46360 else
46361 wxUSE_WEBKIT=no
46362 fi
46363fi
46364
9a8f0513
VS
46365USE_XRC=0
46366if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
46367 if test "$wxUSE_XML" != "yes"; then
46368 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46369echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46370 wxUSE_XRC=no
46371 else
46372 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
46373#define wxUSE_XRC 1
46374_ACEOF
46375
d2ebf0b7
VS
46376 USE_XRC=1
46377 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46378 fi
9a8f0513 46379fi
07bea8f0 46380
3f60522a
JS
46381USE_AUI=0
46382if test "$wxUSE_AUI" = "yes"; then
46383 cat >>confdefs.h <<\_ACEOF
46384#define wxUSE_AUI 1
46385_ACEOF
46386
46387 USE_AUI=1
46388 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46389fi
46390
a848cd7e
SC
46391if test "$wxUSE_MENUS" = "yes"; then
46392 cat >>confdefs.h <<\_ACEOF
46393#define wxUSE_MENUS 1
46394_ACEOF
46395
46396 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46397fi
46398
46399if test "$wxUSE_METAFILE" = "yes"; then
46400 cat >>confdefs.h <<\_ACEOF
46401#define wxUSE_METAFILE 1
46402_ACEOF
46403
46404fi
46405
46406if test "$wxUSE_MIMETYPE" = "yes"; then
46407 cat >>confdefs.h <<\_ACEOF
46408#define wxUSE_MIMETYPE 1
46409_ACEOF
46410
46411fi
46412
46413if test "$wxUSE_MINIFRAME" = "yes"; then
46414 cat >>confdefs.h <<\_ACEOF
46415#define wxUSE_MINIFRAME 1
46416_ACEOF
46417
46418 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
46419fi
46420
46421if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46422 cat >>confdefs.h <<\_ACEOF
46423#define wxUSE_SYSTEM_OPTIONS 1
46424_ACEOF
46425
46426 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 46427 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
46428 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46429 fi
46430fi
46431
46432
46433if test "$wxUSE_VALIDATORS" = "yes"; then
46434 cat >>confdefs.h <<\_ACEOF
46435#define wxUSE_VALIDATORS 1
46436_ACEOF
46437
46438 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46439fi
46440
46441if test "$wxUSE_PALETTE" = "yes" ; then
46442 cat >>confdefs.h <<\_ACEOF
46443#define wxUSE_PALETTE 1
46444_ACEOF
46445
46446fi
46447
46448if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46449 LIBS=" -lunicows $LIBS"
46450fi
46451
91dea314
MW
46452USE_RICHTEXT=0
46453if test "$wxUSE_RICHTEXT" = "yes"; then
46454 cat >>confdefs.h <<\_ACEOF
46455#define wxUSE_RICHTEXT 1
46456_ACEOF
46457
46458 USE_RICHTEXT=1
46459 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46460fi
46461
a848cd7e
SC
46462
46463if test "$wxUSE_IMAGE" = "yes" ; then
46464 cat >>confdefs.h <<\_ACEOF
46465#define wxUSE_IMAGE 1
46466_ACEOF
46467
46468
46469 if test "$wxUSE_GIF" = "yes" ; then
46470 cat >>confdefs.h <<\_ACEOF
46471#define wxUSE_GIF 1
46472_ACEOF
46473
46474 fi
46475
46476 if test "$wxUSE_PCX" = "yes" ; then
46477 cat >>confdefs.h <<\_ACEOF
46478#define wxUSE_PCX 1
46479_ACEOF
46480
46481 fi
46482
bb9e79c0
VZ
46483 if test "$wxUSE_TGA" = "yes" ; then
46484 cat >>confdefs.h <<\_ACEOF
46485#define wxUSE_TGA 1
46486_ACEOF
46487
46488 fi
46489
a848cd7e
SC
46490 if test "$wxUSE_IFF" = "yes" ; then
46491 cat >>confdefs.h <<\_ACEOF
46492#define wxUSE_IFF 1
46493_ACEOF
46494
46495 fi
46496
46497 if test "$wxUSE_PNM" = "yes" ; then
46498 cat >>confdefs.h <<\_ACEOF
46499#define wxUSE_PNM 1
46500_ACEOF
46501
46502 fi
46503
46504 if test "$wxUSE_XPM" = "yes" ; then
46505 cat >>confdefs.h <<\_ACEOF
46506#define wxUSE_XPM 1
46507_ACEOF
46508
46509 fi
46510
46511 if test "$wxUSE_ICO_CUR" = "yes" ; then
46512 cat >>confdefs.h <<\_ACEOF
46513#define wxUSE_ICO_CUR 1
46514_ACEOF
46515
46516 fi
46517fi
46518
46519
319c5ed4
VZ
46520if test "$wxUSE_ABOUTDLG" = "yes"; then
46521 cat >>confdefs.h <<\_ACEOF
46522#define wxUSE_ABOUTDLG 1
46523_ACEOF
46524
46525fi
46526
a848cd7e
SC
46527if test "$wxUSE_CHOICEDLG" = "yes"; then
46528 cat >>confdefs.h <<\_ACEOF
46529#define wxUSE_CHOICEDLG 1
46530_ACEOF
46531
46532fi
46533
46534if test "$wxUSE_COLOURDLG" = "yes"; then
46535 cat >>confdefs.h <<\_ACEOF
46536#define wxUSE_COLOURDLG 1
46537_ACEOF
46538
46539fi
46540
46541if test "$wxUSE_FILEDLG" = "yes"; then
46542 cat >>confdefs.h <<\_ACEOF
46543#define wxUSE_FILEDLG 1
46544_ACEOF
46545
46546fi
46547
46548if test "$wxUSE_FINDREPLDLG" = "yes"; then
46549 cat >>confdefs.h <<\_ACEOF
46550#define wxUSE_FINDREPLDLG 1
46551_ACEOF
46552
46553fi
46554
46555if test "$wxUSE_FONTDLG" = "yes"; then
46556 cat >>confdefs.h <<\_ACEOF
46557#define wxUSE_FONTDLG 1
46558_ACEOF
46559
46560fi
46561
46562if test "$wxUSE_DIRDLG" = "yes"; then
46563 if test "$wxUSE_TREECTRL" != "yes"; then
46564 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46565echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46566 else
46567 cat >>confdefs.h <<\_ACEOF
46568#define wxUSE_DIRDLG 1
46569_ACEOF
46570
46571 fi
46572fi
46573
46574if test "$wxUSE_MSGDLG" = "yes"; then
46575 cat >>confdefs.h <<\_ACEOF
46576#define wxUSE_MSGDLG 1
46577_ACEOF
46578
46579fi
46580
46581if test "$wxUSE_NUMBERDLG" = "yes"; then
46582 cat >>confdefs.h <<\_ACEOF
46583#define wxUSE_NUMBERDLG 1
46584_ACEOF
46585
46586fi
46587
46588if test "$wxUSE_PROGRESSDLG" = "yes"; then
46589 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46590 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46591echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46592 else
46593 cat >>confdefs.h <<\_ACEOF
46594#define wxUSE_PROGRESSDLG 1
46595_ACEOF
46596
46597 fi
46598fi
46599
46600if test "$wxUSE_SPLASH" = "yes"; then
46601 cat >>confdefs.h <<\_ACEOF
46602#define wxUSE_SPLASH 1
46603_ACEOF
46604
2057db16 46605 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
46606fi
46607
46608if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46609 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46610 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
46611echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
46612 else
46613 cat >>confdefs.h <<\_ACEOF
46614#define wxUSE_STARTUP_TIPS 1
46615_ACEOF
46616
46617 fi
46618fi
46619
46620if test "$wxUSE_TEXTDLG" = "yes"; then
46621 cat >>confdefs.h <<\_ACEOF
46622#define wxUSE_TEXTDLG 1
46623_ACEOF
46624
46625fi
46626
46627if test "$wxUSE_WIZARDDLG" = "yes"; then
46628 cat >>confdefs.h <<\_ACEOF
46629#define wxUSE_WIZARDDLG 1
46630_ACEOF
46631
46632 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46633fi
46634
46635
64b75e64
RD
46636if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46637 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
46638 cat >>confdefs.h <<\_ACEOF
46639#define wxUSE_GRAPHICS_CONTEXT 1
46640_ACEOF
46641
46642 elif test "$wxUSE_GTK" != 1; then
46643 cat >>confdefs.h <<\_ACEOF
46644#define wxUSE_GRAPHICS_CONTEXT 1
46645_ACEOF
46646
46647 else
46648
46649pkg_failed=no
46650echo "$as_me:$LINENO: checking for CAIRO" >&5
46651echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6
46652
46653if test -n "$PKG_CONFIG"; then
46654 if test -n "$CAIRO_CFLAGS"; then
46655 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46656 else
46657 if test -n "$PKG_CONFIG" && \
46658 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46659 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46660 ac_status=$?
46661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46662 (exit $ac_status); }; then
46663 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46664else
46665 pkg_failed=yes
46666fi
46667 fi
46668else
46669 pkg_failed=untried
46670fi
46671if test -n "$PKG_CONFIG"; then
46672 if test -n "$CAIRO_LIBS"; then
46673 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46674 else
46675 if test -n "$PKG_CONFIG" && \
46676 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46677 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46678 ac_status=$?
46679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46680 (exit $ac_status); }; then
46681 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46682else
46683 pkg_failed=yes
46684fi
46685 fi
46686else
46687 pkg_failed=untried
46688fi
46689
46690
46691
46692if test $pkg_failed = yes; then
46693
46694if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46695 _pkg_short_errors_supported=yes
46696else
46697 _pkg_short_errors_supported=no
46698fi
46699 if test $_pkg_short_errors_supported = yes; then
46700 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46701 else
46702 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46703 fi
46704 # Put the nasty error message in config.log where it belongs
46705 echo "$CAIRO_PKG_ERRORS" >&5
46706
ec3edcc9 46707 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
64b75e64
RD
46708echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46709
64b75e64 46710elif test $pkg_failed = untried; then
ec3edcc9 46711 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
64b75e64
RD
46712echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46713
64b75e64
RD
46714else
46715 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46716 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46717 echo "$as_me:$LINENO: result: yes" >&5
46718echo "${ECHO_T}yes" >&6
ec3edcc9 46719 cat >>confdefs.h <<\_ACEOF
64b75e64
RD
46720#define wxUSE_GRAPHICS_CONTEXT 1
46721_ACEOF
46722
64b75e64
RD
46723fi
46724 fi
46725fi
46726
46727
f10e38c4
VZ
46728USE_MEDIA=0
46729
ce756cb0 46730if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
46731 USE_MEDIA=1
46732
ce756cb0 46733 if test "$wxUSE_GTK" = 1; then
c9a66001 46734 wxUSE_GSTREAMER="no"
ce756cb0 46735
f10e38c4
VZ
46736 GST_VERSION_MAJOR=0
46737 GST_VERSION_MINOR=10
2f6c5bb5 46738 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
46739
46740 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 46741
3ecd9f92
MW
46742pkg_failed=no
46743echo "$as_me:$LINENO: checking for GST" >&5
46744echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 46745
3ecd9f92
MW
46746if test -n "$PKG_CONFIG"; then
46747 if test -n "$GST_CFLAGS"; then
46748 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46749 else
46750 if test -n "$PKG_CONFIG" && \
46751 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46752 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46753 ac_status=$?
46754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46755 (exit $ac_status); }; then
46756 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46757else
3ecd9f92
MW
46758 pkg_failed=yes
46759fi
46760 fi
46761else
46762 pkg_failed=untried
dae87f93 46763fi
dae87f93 46764if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46765 if test -n "$GST_LIBS"; then
46766 pkg_cv_GST_LIBS="$GST_LIBS"
46767 else
46768 if test -n "$PKG_CONFIG" && \
46769 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46770 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46771 ac_status=$?
46772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46773 (exit $ac_status); }; then
46774 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46775else
3ecd9f92
MW
46776 pkg_failed=yes
46777fi
46778 fi
46779else
46780 pkg_failed=untried
dae87f93
RN
46781fi
46782
dae87f93 46783
2f6c5bb5 46784
3ecd9f92 46785if test $pkg_failed = yes; then
ce756cb0 46786
3ecd9f92
MW
46787if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46788 _pkg_short_errors_supported=yes
46789else
46790 _pkg_short_errors_supported=no
46791fi
46792 if test $_pkg_short_errors_supported = yes; then
46793 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46794 else
46795 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 46796 fi
3ecd9f92
MW
46797 # Put the nasty error message in config.log where it belongs
46798 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46799
46800
3ecd9f92
MW
46801 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46802echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46803 GST_VERSION_MINOR=8
dae87f93 46804
ce756cb0 46805
3ecd9f92 46806elif test $pkg_failed = untried; then
dae87f93 46807
2f6c5bb5
VZ
46808 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46809echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 46810 GST_VERSION_MINOR=8
dae87f93 46811
2f6c5bb5 46812
3ecd9f92
MW
46813else
46814 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46815 GST_LIBS=$pkg_cv_GST_LIBS
46816 echo "$as_me:$LINENO: result: yes" >&5
46817echo "${ECHO_T}yes" >&6
46818
46819 wxUSE_GSTREAMER="yes"
46820 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 46821
3ecd9f92 46822fi
2f6c5bb5
VZ
46823 else
46824 GST_VERSION_MINOR=8
f10e38c4 46825 fi
dae87f93 46826
2f6c5bb5
VZ
46827 if test $GST_VERSION_MINOR = "8"; then
46828 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 46829
3ecd9f92
MW
46830pkg_failed=no
46831echo "$as_me:$LINENO: checking for GST" >&5
46832echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 46833
3ecd9f92
MW
46834if test -n "$PKG_CONFIG"; then
46835 if test -n "$GST_CFLAGS"; then
46836 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46837 else
46838 if test -n "$PKG_CONFIG" && \
46839 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46840 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46841 ac_status=$?
46842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46843 (exit $ac_status); }; then
46844 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46845else
3ecd9f92
MW
46846 pkg_failed=yes
46847fi
46848 fi
46849else
46850 pkg_failed=untried
dae87f93 46851fi
f10e38c4 46852if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46853 if test -n "$GST_LIBS"; then
46854 pkg_cv_GST_LIBS="$GST_LIBS"
46855 else
46856 if test -n "$PKG_CONFIG" && \
46857 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46858 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46859 ac_status=$?
46860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46861 (exit $ac_status); }; then
46862 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46863else
3ecd9f92
MW
46864 pkg_failed=yes
46865fi
46866 fi
46867else
46868 pkg_failed=untried
dae87f93
RN
46869fi
46870
ce756cb0 46871
2f6c5bb5 46872
3ecd9f92 46873if test $pkg_failed = yes; then
dae87f93 46874
3ecd9f92
MW
46875if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46876 _pkg_short_errors_supported=yes
46877else
46878 _pkg_short_errors_supported=no
46879fi
46880 if test $_pkg_short_errors_supported = yes; then
46881 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46882 else
46883 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 46884 fi
3ecd9f92
MW
46885 # Put the nasty error message in config.log where it belongs
46886 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46887
46888
3ecd9f92
MW
46889 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46890echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46891
3ecd9f92 46892elif test $pkg_failed = untried; then
ce756cb0 46893
2f6c5bb5
VZ
46894 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46895echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46896
3ecd9f92
MW
46897else
46898 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46899 GST_LIBS=$pkg_cv_GST_LIBS
46900 echo "$as_me:$LINENO: result: yes" >&5
46901echo "${ECHO_T}yes" >&6
46902 wxUSE_GSTREAMER="yes"
46903fi
dae87f93 46904 fi
ce756cb0 46905
f10e38c4 46906
dae87f93 46907 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
46908 case "${host}" in
46909 *-*-solaris2* )
46910 if "$GCC" = yes; then
46911 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
46912 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
46913 fi
46914 esac
46915
46916 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46917 LIBS="$GST_LIBS $LIBS"
46918
dae87f93 46919 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46920#define wxUSE_GSTREAMER 1
46921_ACEOF
46922
2f6c5bb5
VZ
46923 else
46924 USE_MEDIA=0
ce756cb0
RN
46925 fi
46926 fi
2f6c5bb5
VZ
46927
46928 if test $USE_MEDIA = 1; then
46929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46930 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46931#define wxUSE_MEDIACTRL 1
46932_ACEOF
46933
2f6c5bb5 46934 fi
ce756cb0
RN
46935fi
46936
46937
a848cd7e
SC
46938if test "$cross_compiling" = "yes"; then
46939 OSINFO="\"$host\""
46940else
46941 OSINFO=`uname -s -r -m`
46942 OSINFO="\"$OSINFO\""
46943fi
46944
46945cat >>confdefs.h <<_ACEOF
46946#define WXWIN_OS_DESCRIPTION $OSINFO
46947_ACEOF
46948
46949
46950
46951if test "x$prefix" != "xNONE"; then
46952 wxPREFIX=$prefix
46953else
46954 wxPREFIX=$ac_default_prefix
46955fi
46956
46957cat >>confdefs.h <<_ACEOF
46958#define wxINSTALL_PREFIX "$wxPREFIX"
46959_ACEOF
46960
46961
a848cd7e
SC
46962
46963
46964CORE_BASE_LIBS="net base"
46965CORE_GUI_LIBS="adv core"
46966
46967if test "$wxUSE_XML" = "yes" ; then
46968 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
46969fi
46970if test "$wxUSE_ODBC" != "no" ; then
46971 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
46972 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
46973fi
46974if test "$wxUSE_HTML" = "yes" ; then
46975 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
46976fi
61639efb
VZ
46977if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46978 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
46979fi
9a8f0513
VS
46980if test "$wxUSE_XRC" = "yes" ; then
46981 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
46982fi
3f60522a
JS
46983if test "$wxUSE_AUI" = "yes" ; then
46984 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
46985fi
a848cd7e
SC
46986
46987if test "$wxUSE_GUI" != "yes"; then
46988 CORE_GUI_LIBS=""
46989fi
46990
46991
46992
46993
46994
a848cd7e 46995
a848cd7e 46996if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 46997 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
46998 if test "$USE_DARWIN" = 1; then
46999 LDFLAGS="$LDFLAGS -framework QuickTime"
47000 else
47001 LDFLAGS="$LDFLAGS -lQuickTimeLib"
47002 fi
07bea8f0 47003 fi
5dcf30a0 47004 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
47005 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
47006 else
47007 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 47008 fi
a848cd7e
SC
47009fi
47010if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 47011 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
47012 if test "$wxUSE_MEDIACTRL" = "yes"; then
47013 LDFLAGS="$LDFLAGS -framework QuickTime"
47014 fi
a848cd7e 47015fi
19b27e78
MW
47016if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
47017 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
47018fi
a848cd7e 47019
a848cd7e
SC
47020LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
47021
a848cd7e
SC
47022if test "$wxUSE_GUI" = "yes"; then
47023
47024
8bce5cda
MW
47025 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
47026 dynamic erase event exec font image minimal mobile \
47027 mobile/wxedit mobile/styles propsize render \
9e39d889 47028 rotate shaped vscroll widgets"
a848cd7e
SC
47029
47030 if test "$wxUSE_MONOLITHIC" != "yes"; then
47031 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
47032 fi
0b78747f 47033 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
47034 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
47035 if test "$wxUSE_UNIVERSAL" != "yes"; then
47036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
47037 fi
47038 fi
47039 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
47040 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 47041 fi
a848cd7e
SC
47042else
47043 SAMPLES_SUBDIRS="console"
47044fi
47045
47046
48f625bc 47047if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
47048 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
47049elif test "$GCC" = yes ; then
47050 CWARNINGS="-Wall -Wundef"
47051fi
47052
48f625bc 47053if test "x$INTELCXX" = "xyes" ; then
7f47faf4 47054 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
47055elif test "$GXX" = yes ; then
47056 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 47057fi
a848cd7e 47058
a848cd7e 47059
5ff751d6
VZ
47060WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
47061WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
47062
47063
c92ad099 47064CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
02b05020 47065 -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
47066 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
47067 $CPPFLAGS `
5ff751d6 47068
8aeeb05c 47069C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 47070CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 47071CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
47072
47073WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
47074
a848cd7e 47075
95986553
DE
47076if test "x$MWCC" = "xyes"; then
47077
47078 CC="$CC -cwd source -I-"
47079 CXX="$CXX -cwd source -I-"
47080fi
47081
a848cd7e 47082
0c3c69fc 47083LIBS=`echo $LIBS`
a848cd7e
SC
47084EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
47085EXTRALIBS_XML="$EXPAT_LINK"
47086EXTRALIBS_HTML="$MSPACK_LINK"
47087EXTRALIBS_ODBC="$ODBC_LINK"
47088if test "$wxUSE_GUI" = "yes"; then
2b850ae1 47089 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
47090fi
47091if test "$wxUSE_OPENGL" = "yes"; then
47092 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
47093fi
47094
8aeeb05c 47095LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 47096
5ff751d6 47097WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
47098
47099if test "$wxUSE_REGEX" = "builtin" ; then
74802184 47100 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
47101fi
47102if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 47103 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
47104fi
47105if test "$wxUSE_ODBC" = "builtin" ; then
74802184 47106 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
47107fi
47108if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 47109 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
47110fi
47111if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 47112 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
47113fi
47114if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 47115 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
47116fi
47117if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 47118 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
47119fi
47120
47121for i in $wxconfig_3rdparty ; do
5ff751d6 47122 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
47123done
47124
47125
47126if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47127 WXUNIV=1
4353a8df
VZ
47128
47129 case "$wxUNIV_THEMES" in
47130 ''|all)
47131 cat >>confdefs.h <<\_ACEOF
47132#define wxUSE_ALL_THEMES 1
47133_ACEOF
47134
47135 ;;
47136
47137 *)
47138 for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
47139 cat >>confdefs.h <<_ACEOF
47140#define wxUSE_THEME_$t 1
47141_ACEOF
47142
47143 done
47144 esac
a848cd7e
SC
47145else
47146 WXUNIV=0
47147fi
47148
47149
47150
47151
47152
47153
47154
47155
47156
47157if test $wxUSE_MONOLITHIC = "yes" ; then
47158 MONOLITHIC=1
47159else
47160 MONOLITHIC=0
47161fi
47162
47163if test $wxUSE_PLUGINS = "yes" ; then
47164 USE_PLUGINS=1
47165else
47166 USE_PLUGINS=0
47167fi
47168
47169if test $wxUSE_ODBC != "no" ; then
47170 USE_ODBC=1
47171else
47172 USE_ODBC=0
47173fi
47174
16358932
VZ
47175if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47176 USE_QA=1
47177else
47178 USE_QA=0
47179fi
47180
a848cd7e
SC
47181if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47182 OFFICIAL_BUILD=1
47183else
47184 OFFICIAL_BUILD=0
47185fi
47186
47187
47188
47189
47190
47191
47192
47193
47194
47195
47196
47197
47198
47199
47200
47201
47202
47203
47204
ceec2216 47205
d1c38808 47206
3565d135 47207
2b850ae1 47208
a848cd7e
SC
47209
47210
47211TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
47212
47213
47214
47215
47216
47217
47218
47219
4d4ff94c
VZ
47220case "$TOOLKIT" in
47221 GTK)
c2e9ada4 47222 TOOLKIT_DESC="GTK+"
4d4ff94c 47223 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
47224 TOOLKIT_DESC="$TOOLKIT_DESC 2"
47225 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47226 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47227 fi
47228 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47229 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47230 fi
47231 if test "$wxUSE_LIBHILDON" = "yes"; then
47232 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47233 fi
47234
47235 if test "$TOOLKIT_EXTRA" != ""; then
47236 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47237 fi
4d4ff94c 47238 fi
9a8f0513 47239 ;;
4d4ff94c 47240
c2e9ada4
VZ
47241 ?*)
47242 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47243 ;;
47244
4d4ff94c 47245 *)
c2e9ada4 47246 TOOLKIT_DESC="base only"
9a8f0513 47247 ;;
4d4ff94c 47248esac
a848cd7e 47249
fb00f58d
JS
47250if test "$wxUSE_WINE" = "yes"; then
47251 BAKEFILE_FORCE_PLATFORM=win32
47252fi
47253
7afc46ab 47254if test "$wxUSE_MAC" = 1 ; then
95768535
MW
47255 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
47256 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
47257 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
47258 else
47259 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
47260 fi
47261 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
47262 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
47263 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
47264 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
47265 bk_use_pch=no
47266 fi
47267 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
47268 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
47269fi
47270
a81d5bb6
MW
47271if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47272then
47273 echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47274echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6
47275if test "${wx_cv_gcc_pch_bug+set}" = set; then
47276 echo $ECHO_N "(cached) $ECHO_C" >&6
47277else
47278
6d952fd7
MW
47279 echo '#include <stdio.h>
47280 const wchar_t test_var[] = L"awidetest";' > conftest.h
47281
47282 echo '#include "conftest.h"
47283 int main()
47284 {
be49c6ec 47285 printf("%ls", test_var);
6d952fd7
MW
47286 return 0;
47287 }' > conftest.cpp
47288
47289 wx_cv_gcc_pch_bug="pch not supported"
a81d5bb6 47290
b2983f42 47291 if $CXX conftest.h >/dev/null 2>&1
a81d5bb6 47292 then
6d952fd7 47293 wx_cv_gcc_pch_bug=
a81d5bb6 47294
6c7f5e56 47295 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
a81d5bb6 47296 then
6c7f5e56
MW
47297 if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47298 grep awidetest >/dev/null
6d952fd7
MW
47299 then
47300 wx_cv_gcc_pch_bug=no
47301 else
a81d5bb6 47302 wx_cv_gcc_pch_bug=yes
6d952fd7 47303 fi
a81d5bb6
MW
47304 fi
47305 fi
47306
6c7f5e56 47307 rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
a81d5bb6
MW
47308
47309fi
47310echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47311echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6
47312
47313 if test "$wx_cv_gcc_pch_bug" = yes; then
47314 bk_use_pch=no
47315 fi
47316fi
47317
9a8f0513 47318
1e9e8aba
DE
47319
47320
a848cd7e 47321 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
47322 if test "x${host}" = "x" ; then
47323 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47324echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47325 { (exit 1); exit 1; }; }
47326 fi
47327
a848cd7e
SC
47328 BAKEFILE_HOST="${host}"
47329 fi
47330
47331 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47332
47333 if test -n "$ac_tool_prefix"; then
47334 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47335set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47336echo "$as_me:$LINENO: checking for $ac_word" >&5
47337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47338if test "${ac_cv_prog_RANLIB+set}" = set; then
47339 echo $ECHO_N "(cached) $ECHO_C" >&6
47340else
47341 if test -n "$RANLIB"; then
47342 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47343else
47344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47345for as_dir in $PATH
47346do
47347 IFS=$as_save_IFS
47348 test -z "$as_dir" && as_dir=.
47349 for ac_exec_ext in '' $ac_executable_extensions; do
47350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47351 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47353 break 2
47354 fi
47355done
47356done
47357
47358fi
47359fi
47360RANLIB=$ac_cv_prog_RANLIB
47361if test -n "$RANLIB"; then
47362 echo "$as_me:$LINENO: result: $RANLIB" >&5
47363echo "${ECHO_T}$RANLIB" >&6
47364else
47365 echo "$as_me:$LINENO: result: no" >&5
47366echo "${ECHO_T}no" >&6
47367fi
47368
47369fi
47370if test -z "$ac_cv_prog_RANLIB"; then
47371 ac_ct_RANLIB=$RANLIB
47372 # Extract the first word of "ranlib", so it can be a program name with args.
47373set dummy ranlib; ac_word=$2
47374echo "$as_me:$LINENO: checking for $ac_word" >&5
47375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47376if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47377 echo $ECHO_N "(cached) $ECHO_C" >&6
47378else
47379 if test -n "$ac_ct_RANLIB"; then
47380 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47381else
47382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47383for as_dir in $PATH
47384do
47385 IFS=$as_save_IFS
47386 test -z "$as_dir" && as_dir=.
47387 for ac_exec_ext in '' $ac_executable_extensions; do
47388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47389 ac_cv_prog_ac_ct_RANLIB="ranlib"
47390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47391 break 2
47392 fi
47393done
47394done
47395
47396 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
47397fi
47398fi
47399ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47400if test -n "$ac_ct_RANLIB"; then
47401 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47402echo "${ECHO_T}$ac_ct_RANLIB" >&6
47403else
47404 echo "$as_me:$LINENO: result: no" >&5
47405echo "${ECHO_T}no" >&6
47406fi
47407
47408 RANLIB=$ac_ct_RANLIB
47409else
47410 RANLIB="$ac_cv_prog_RANLIB"
47411fi
47412
47413 # Find a good install program. We prefer a C program (faster),
47414# so one script is as good as another. But avoid the broken or
47415# incompatible versions:
47416# SysV /etc/install, /usr/sbin/install
47417# SunOS /usr/etc/install
47418# IRIX /sbin/install
47419# AIX /bin/install
47420# AmigaOS /C/install, which installs bootblocks on floppy discs
47421# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47422# AFS /usr/afsws/bin/install, which mishandles nonexistent args
47423# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 47424# OS/2's system install, which has a completely different semantic
a848cd7e
SC
47425# ./install, which can be erroneously created by make from ./install.sh.
47426echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47427echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
47428if test -z "$INSTALL"; then
47429if test "${ac_cv_path_install+set}" = set; then
47430 echo $ECHO_N "(cached) $ECHO_C" >&6
47431else
47432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47433for as_dir in $PATH
47434do
47435 IFS=$as_save_IFS
47436 test -z "$as_dir" && as_dir=.
47437 # Account for people who put trailing slashes in PATH elements.
47438case $as_dir/ in
47439 ./ | .// | /cC/* | \
47440 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 47441 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
47442 /usr/ucb/* ) ;;
47443 *)
47444 # OSF1 and SCO ODT 3.0 have their own names for install.
47445 # Don't use installbsd from OSF since it installs stuff as root
47446 # by default.
47447 for ac_prog in ginstall scoinst install; do
47448 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
47449 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
47450 if test $ac_prog = install &&
47451 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47452 # AIX install. It has an incompatible calling convention.
47453 :
47454 elif test $ac_prog = install &&
47455 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47456 # program-specific install script used by HP pwplus--don't use.
47457 :
47458 else
47459 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47460 break 3
47461 fi
47462 fi
a848cd7e
SC
47463 done
47464 done
47465 ;;
47466esac
47467done
47468
47469
47470fi
47471 if test "${ac_cv_path_install+set}" = set; then
47472 INSTALL=$ac_cv_path_install
47473 else
47474 # As a last resort, use the slow shell script. We don't cache a
47475 # path for INSTALL within a source directory, because that will
47476 # break other packages using the cache if that directory is
47477 # removed, or if the path is relative.
47478 INSTALL=$ac_install_sh
47479 fi
47480fi
47481echo "$as_me:$LINENO: result: $INSTALL" >&5
47482echo "${ECHO_T}$INSTALL" >&6
47483
47484# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47485# It thinks the first close brace ends the variable substitution.
47486test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47487
47488test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47489
47490test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47491
47492 echo "$as_me:$LINENO: checking whether ln -s works" >&5
47493echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
47494LN_S=$as_ln_s
47495if test "$LN_S" = "ln -s"; then
47496 echo "$as_me:$LINENO: result: yes" >&5
47497echo "${ECHO_T}yes" >&6
47498else
47499 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47500echo "${ECHO_T}no, using $LN_S" >&6
47501fi
47502
47503
47504 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47505echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 47506set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
47507if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
47508 echo $ECHO_N "(cached) $ECHO_C" >&6
47509else
47510 cat >conftest.make <<\_ACEOF
47511all:
47512 @echo 'ac_maketemp="$(MAKE)"'
47513_ACEOF
47514# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47515eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
47516if test -n "$ac_maketemp"; then
47517 eval ac_cv_prog_make_${ac_make}_set=yes
47518else
47519 eval ac_cv_prog_make_${ac_make}_set=no
47520fi
47521rm -f conftest.make
47522fi
47523if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
47524 echo "$as_me:$LINENO: result: yes" >&5
47525echo "${ECHO_T}yes" >&6
47526 SET_MAKE=
47527else
47528 echo "$as_me:$LINENO: result: no" >&5
47529echo "${ECHO_T}no" >&6
47530 SET_MAKE="MAKE=${MAKE-make}"
47531fi
47532
47533
47534
a485900c
VZ
47535 if test "x$SUNCXX" = "xyes"; then
47536 AR=$CXX
47537
47538 AROPTIONS="-xar -o"
47539 else
47540 if test -n "$ac_tool_prefix"; then
a848cd7e
SC
47541 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47542set dummy ${ac_tool_prefix}ar; ac_word=$2
47543echo "$as_me:$LINENO: checking for $ac_word" >&5
47544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47545if test "${ac_cv_prog_AR+set}" = set; then
47546 echo $ECHO_N "(cached) $ECHO_C" >&6
47547else
47548 if test -n "$AR"; then
47549 ac_cv_prog_AR="$AR" # Let the user override the test.
47550else
47551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47552for as_dir in $PATH
47553do
47554 IFS=$as_save_IFS
47555 test -z "$as_dir" && as_dir=.
47556 for ac_exec_ext in '' $ac_executable_extensions; do
47557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47558 ac_cv_prog_AR="${ac_tool_prefix}ar"
47559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47560 break 2
47561 fi
47562done
47563done
47564
47565fi
47566fi
47567AR=$ac_cv_prog_AR
47568if test -n "$AR"; then
47569 echo "$as_me:$LINENO: result: $AR" >&5
47570echo "${ECHO_T}$AR" >&6
47571else
47572 echo "$as_me:$LINENO: result: no" >&5
47573echo "${ECHO_T}no" >&6
47574fi
47575
47576fi
47577if test -z "$ac_cv_prog_AR"; then
47578 ac_ct_AR=$AR
47579 # Extract the first word of "ar", so it can be a program name with args.
47580set dummy ar; ac_word=$2
47581echo "$as_me:$LINENO: checking for $ac_word" >&5
47582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47583if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47584 echo $ECHO_N "(cached) $ECHO_C" >&6
47585else
47586 if test -n "$ac_ct_AR"; then
47587 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47588else
47589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47590for as_dir in $PATH
47591do
47592 IFS=$as_save_IFS
47593 test -z "$as_dir" && as_dir=.
47594 for ac_exec_ext in '' $ac_executable_extensions; do
47595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47596 ac_cv_prog_ac_ct_AR="ar"
47597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47598 break 2
47599 fi
47600done
47601done
47602
47603 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
47604fi
47605fi
47606ac_ct_AR=$ac_cv_prog_ac_ct_AR
47607if test -n "$ac_ct_AR"; then
47608 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47609echo "${ECHO_T}$ac_ct_AR" >&6
47610else
47611 echo "$as_me:$LINENO: result: no" >&5
47612echo "${ECHO_T}no" >&6
47613fi
47614
47615 AR=$ac_ct_AR
47616else
47617 AR="$ac_cv_prog_AR"
47618fi
47619
a485900c
VZ
47620 AROPTIONS=rcu
47621 fi
47622
47623
a848cd7e
SC
47624 if test -n "$ac_tool_prefix"; then
47625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47626set dummy ${ac_tool_prefix}strip; ac_word=$2
47627echo "$as_me:$LINENO: checking for $ac_word" >&5
47628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47629if test "${ac_cv_prog_STRIP+set}" = set; then
47630 echo $ECHO_N "(cached) $ECHO_C" >&6
47631else
47632 if test -n "$STRIP"; then
47633 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47634else
47635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47636for as_dir in $PATH
47637do
47638 IFS=$as_save_IFS
47639 test -z "$as_dir" && as_dir=.
47640 for ac_exec_ext in '' $ac_executable_extensions; do
47641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47642 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47644 break 2
47645 fi
47646done
47647done
47648
47649fi
47650fi
47651STRIP=$ac_cv_prog_STRIP
47652if test -n "$STRIP"; then
47653 echo "$as_me:$LINENO: result: $STRIP" >&5
47654echo "${ECHO_T}$STRIP" >&6
47655else
47656 echo "$as_me:$LINENO: result: no" >&5
47657echo "${ECHO_T}no" >&6
47658fi
47659
47660fi
47661if test -z "$ac_cv_prog_STRIP"; then
47662 ac_ct_STRIP=$STRIP
47663 # Extract the first word of "strip", so it can be a program name with args.
47664set dummy strip; ac_word=$2
47665echo "$as_me:$LINENO: checking for $ac_word" >&5
47666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47667if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47668 echo $ECHO_N "(cached) $ECHO_C" >&6
47669else
47670 if test -n "$ac_ct_STRIP"; then
47671 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47672else
47673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47674for as_dir in $PATH
47675do
47676 IFS=$as_save_IFS
47677 test -z "$as_dir" && as_dir=.
47678 for ac_exec_ext in '' $ac_executable_extensions; do
47679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47680 ac_cv_prog_ac_ct_STRIP="strip"
47681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47682 break 2
47683 fi
47684done
47685done
47686
47687 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
47688fi
47689fi
47690ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47691if test -n "$ac_ct_STRIP"; then
47692 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47693echo "${ECHO_T}$ac_ct_STRIP" >&6
47694else
47695 echo "$as_me:$LINENO: result: no" >&5
47696echo "${ECHO_T}no" >&6
47697fi
47698
47699 STRIP=$ac_ct_STRIP
47700else
47701 STRIP="$ac_cv_prog_STRIP"
47702fi
47703
47704 if test -n "$ac_tool_prefix"; then
47705 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47706set dummy ${ac_tool_prefix}nm; ac_word=$2
47707echo "$as_me:$LINENO: checking for $ac_word" >&5
47708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47709if test "${ac_cv_prog_NM+set}" = set; then
47710 echo $ECHO_N "(cached) $ECHO_C" >&6
47711else
47712 if test -n "$NM"; then
47713 ac_cv_prog_NM="$NM" # Let the user override the test.
47714else
47715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47716for as_dir in $PATH
47717do
47718 IFS=$as_save_IFS
47719 test -z "$as_dir" && as_dir=.
47720 for ac_exec_ext in '' $ac_executable_extensions; do
47721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47722 ac_cv_prog_NM="${ac_tool_prefix}nm"
47723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47724 break 2
47725 fi
47726done
47727done
47728
47729fi
47730fi
47731NM=$ac_cv_prog_NM
47732if test -n "$NM"; then
47733 echo "$as_me:$LINENO: result: $NM" >&5
47734echo "${ECHO_T}$NM" >&6
47735else
47736 echo "$as_me:$LINENO: result: no" >&5
47737echo "${ECHO_T}no" >&6
47738fi
47739
47740fi
47741if test -z "$ac_cv_prog_NM"; then
47742 ac_ct_NM=$NM
47743 # Extract the first word of "nm", so it can be a program name with args.
47744set dummy nm; ac_word=$2
47745echo "$as_me:$LINENO: checking for $ac_word" >&5
47746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47747if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47748 echo $ECHO_N "(cached) $ECHO_C" >&6
47749else
47750 if test -n "$ac_ct_NM"; then
47751 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47752else
47753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47754for as_dir in $PATH
47755do
47756 IFS=$as_save_IFS
47757 test -z "$as_dir" && as_dir=.
47758 for ac_exec_ext in '' $ac_executable_extensions; do
47759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47760 ac_cv_prog_ac_ct_NM="nm"
47761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47762 break 2
47763 fi
47764done
47765done
47766
47767 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
47768fi
47769fi
47770ac_ct_NM=$ac_cv_prog_ac_ct_NM
47771if test -n "$ac_ct_NM"; then
47772 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47773echo "${ECHO_T}$ac_ct_NM" >&6
47774else
47775 echo "$as_me:$LINENO: result: no" >&5
47776echo "${ECHO_T}no" >&6
47777fi
47778
47779 NM=$ac_ct_NM
47780else
47781 NM="$ac_cv_prog_NM"
47782fi
47783
47784
47785 case ${BAKEFILE_HOST} in
47786 *-hp-hpux* )
1e9e8aba 47787 INSTALL_DIR="mkdir -p"
a848cd7e 47788 ;;
a485900c
VZ
47789 * )
47790 INSTALL_DIR='$(INSTALL) -d'
a848cd7e
SC
47791 ;;
47792 esac
47793
47794
47795 LDFLAGS_GUI=
47796 case ${BAKEFILE_HOST} in
47797 *-*-cygwin* | *-*-mingw32* )
47798 LDFLAGS_GUI="-mwindows"
47799 esac
47800
47801
47802 fi
47803
47804 echo "$as_me:$LINENO: checking if make is GNU make" >&5
47805echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
47806if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47807 echo $ECHO_N "(cached) $ECHO_C" >&6
47808else
47809
47810 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47811 egrep -s GNU > /dev/null); then
47812 bakefile_cv_prog_makeisgnu="yes"
47813 else
47814 bakefile_cv_prog_makeisgnu="no"
47815 fi
47816
47817fi
47818echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47819echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
47820
47821 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47822 IF_GNU_MAKE=""
47823 else
47824 IF_GNU_MAKE="#"
47825 fi
47826
47827
47828
47829 PLATFORM_UNIX=0
47830 PLATFORM_WIN32=0
47831 PLATFORM_MSDOS=0
47832 PLATFORM_MAC=0
1e9e8aba 47833 PLATFORM_MACOS=0
a848cd7e
SC
47834 PLATFORM_MACOSX=0
47835 PLATFORM_OS2=0
1e9e8aba 47836 PLATFORM_BEOS=0
a848cd7e
SC
47837
47838 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47839 case "${BAKEFILE_HOST}" in
810b94f0 47840 *-*-mingw32* )
a848cd7e
SC
47841 PLATFORM_WIN32=1
47842 ;;
47843 *-pc-msdosdjgpp )
47844 PLATFORM_MSDOS=1
47845 ;;
47846 *-pc-os2_emx | *-pc-os2-emx )
47847 PLATFORM_OS2=1
47848 ;;
47bd5406 47849 *-*-darwin* )
a848cd7e
SC
47850 PLATFORM_MAC=1
47851 PLATFORM_MACOSX=1
47852 ;;
1e9e8aba
DE
47853 *-*-beos* )
47854 PLATFORM_BEOS=1
47855 ;;
47856 powerpc-apple-macos* )
47857 PLATFORM_MAC=1
47858 PLATFORM_MACOS=1
47859 ;;
a848cd7e
SC
47860 * )
47861 PLATFORM_UNIX=1
47862 ;;
47863 esac
47864 else
47865 case "$BAKEFILE_FORCE_PLATFORM" in
47866 win32 )
47867 PLATFORM_WIN32=1
47868 ;;
47869 msdos )
47870 PLATFORM_MSDOS=1
47871 ;;
47872 os2 )
47873 PLATFORM_OS2=1
47874 ;;
47875 darwin )
47876 PLATFORM_MAC=1
47877 PLATFORM_MACOSX=1
47878 ;;
47879 unix )
47880 PLATFORM_UNIX=1
47881 ;;
1e9e8aba
DE
47882 beos )
47883 PLATFORM_BEOS=1
47884 ;;
a848cd7e
SC
47885 * )
47886 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
47887echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
47888 { (exit 1); exit 1; }; }
47889 ;;
47890 esac
47891 fi
47892
47893
47894
47895
47896
47897
47898
47899
47900
1e9e8aba
DE
47901
47902
a848cd7e
SC
47903 # Check whether --enable-omf or --disable-omf was given.
47904if test "${enable_omf+set}" = set; then
47905 enableval="$enable_omf"
47906 bk_os2_use_omf="$enableval"
47907fi;
47908
47909 case "${BAKEFILE_HOST}" in
47910 *-*-darwin* )
47bd5406
VZ
47911 if test "x$GCC" = "xyes"; then
47912 CFLAGS="$CFLAGS -fno-common"
47913 CXXFLAGS="$CXXFLAGS -fno-common"
47914 fi
47915 if test "x$XLCC" = "xyes"; then
47916 CFLAGS="$CFLAGS -qnocommon"
47917 CXXFLAGS="$CXXFLAGS -qnocommon"
47918 fi
a848cd7e
SC
47919 ;;
47920
47921 *-pc-os2_emx | *-pc-os2-emx )
47922 if test "x$bk_os2_use_omf" = "xyes" ; then
47923 AR=emxomfar
47924 RANLIB=:
47925 LDFLAGS="-Zomf $LDFLAGS"
47926 CFLAGS="-Zomf $CFLAGS"
47927 CXXFLAGS="-Zomf $CXXFLAGS"
47928 OS2_LIBEXT="lib"
47929 else
47930 OS2_LIBEXT="a"
47931 fi
47932 ;;
1e9e8aba
DE
47933
47934 i*86-*-beos* )
47935 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47936 ;;
a848cd7e
SC
47937 esac
47938
47939
47940 SO_SUFFIX="so"
47941 SO_SUFFIX_MODULE="so"
47942 EXEEXT=""
47943 LIBPREFIX="lib"
47944 LIBEXT=".a"
47945 DLLPREFIX="lib"
47946 DLLPREFIX_MODULE=""
47947 DLLIMP_SUFFIX=""
810b94f0 47948 dlldir="$libdir"
a848cd7e
SC
47949
47950 case "${BAKEFILE_HOST}" in
47951 *-hp-hpux* )
47952 SO_SUFFIX="sl"
47953 SO_SUFFIX_MODULE="sl"
47954 ;;
47955 *-*-aix* )
47956 SO_SUFFIX="a"
47957 SO_SUFFIX_MODULE="a"
47958 ;;
810b94f0
MW
47959 *-*-cygwin* )
47960 SO_SUFFIX="dll"
47961 SO_SUFFIX_MODULE="dll"
47962 DLLIMP_SUFFIX="dll.a"
47963 EXEEXT=".exe"
47964 DLLPREFIX="cyg"
47965 dlldir="$bindir"
47966 ;;
47967 *-*-mingw32* )
a848cd7e
SC
47968 SO_SUFFIX="dll"
47969 SO_SUFFIX_MODULE="dll"
47970 DLLIMP_SUFFIX="dll.a"
47971 EXEEXT=".exe"
47972 DLLPREFIX=""
810b94f0 47973 dlldir="$bindir"
a848cd7e
SC
47974 ;;
47975 *-pc-msdosdjgpp )
47976 EXEEXT=".exe"
47977 DLLPREFIX=""
810b94f0 47978 dlldir="$bindir"
a848cd7e
SC
47979 ;;
47980 *-pc-os2_emx | *-pc-os2-emx )
47981 SO_SUFFIX="dll"
47982 SO_SUFFIX_MODULE="dll"
47983 DLLIMP_SUFFIX=$OS2_LIBEXT
47984 EXEEXT=".exe"
47985 DLLPREFIX=""
47986 LIBPREFIX=""
47987 LIBEXT=".$OS2_LIBEXT"
810b94f0 47988 dlldir="$bindir"
a848cd7e 47989 ;;
47bd5406 47990 *-*-darwin* )
a848cd7e
SC
47991 SO_SUFFIX="dylib"
47992 SO_SUFFIX_MODULE="bundle"
47993 ;;
47994 esac
47995
47996 if test "x$DLLIMP_SUFFIX" = "x" ; then
47997 DLLIMP_SUFFIX="$SO_SUFFIX"
47998 fi
47999
48000
48001
48002
48003
48004
48005
48006
48007
48008
48009
810b94f0 48010
1e9e8aba
DE
48011 PIC_FLAG=""
48012 if test "x$GCC" = "xyes"; then
a848cd7e
SC
48013 PIC_FLAG="-fPIC"
48014 fi
48015
1e9e8aba
DE
48016 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
48017 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 48018 WINDOWS_IMPLIB=0
1e9e8aba 48019
a848cd7e
SC
48020 case "${BAKEFILE_HOST}" in
48021 *-hp-hpux* )
1e9e8aba 48022 if test "x$GCC" != "xyes"; then
a848cd7e
SC
48023 LDFLAGS="$LDFLAGS -L/usr/lib"
48024
48025 SHARED_LD_CC="${CC} -b -o"
48026 SHARED_LD_CXX="${CXX} -b -o"
48027 PIC_FLAG="+Z"
48028 fi
48029 ;;
48030
48031 *-*-linux* )
48032 if test "x$GCC" != "xyes"; then
48033 echo "$as_me:$LINENO: checking for Intel compiler" >&5
48034echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
48035if test "${bakefile_cv_prog_icc+set}" = set; then
48036 echo $ECHO_N "(cached) $ECHO_C" >&6
48037else
48038
48039 cat >conftest.$ac_ext <<_ACEOF
48040/* confdefs.h. */
48041_ACEOF
48042cat confdefs.h >>conftest.$ac_ext
48043cat >>conftest.$ac_ext <<_ACEOF
48044/* end confdefs.h. */
48045
48046int
48047main ()
48048{
48049
48050 #ifndef __INTEL_COMPILER
e5efa97e 48051 This is not ICC
a848cd7e
SC
48052 #endif
48053
48054 ;
48055 return 0;
48056}
48057_ACEOF
48058rm -f conftest.$ac_objext
48059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 48060 (eval $ac_compile) 2>conftest.er1
a848cd7e 48061 ac_status=$?
ac1cb8d3
VS
48062 grep -v '^ *+' conftest.er1 >conftest.err
48063 rm -f conftest.er1
48064 cat conftest.err >&5
a848cd7e
SC
48065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48066 (exit $ac_status); } &&
bb9e79c0 48067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
48068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48069 (eval $ac_try) 2>&5
48070 ac_status=$?
48071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48072 (exit $ac_status); }; } &&
48073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
48074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48075 (eval $ac_try) 2>&5
48076 ac_status=$?
48077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48078 (exit $ac_status); }; }; then
48079 bakefile_cv_prog_icc=yes
48080else
48081 echo "$as_me: failed program was:" >&5
48082sed 's/^/| /' conftest.$ac_ext >&5
48083
48084bakefile_cv_prog_icc=no
48085
48086fi
ac1cb8d3 48087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
48088
48089fi
48090echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
48091echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
48092 if test "$bakefile_cv_prog_icc" = "yes"; then
48093 PIC_FLAG="-KPIC"
48094 fi
48095 fi
48096 ;;
48097
48098 *-*-solaris2* )
48099 if test "x$GCC" != xyes ; then
48100 SHARED_LD_CC="${CC} -G -o"
48101 SHARED_LD_CXX="${CXX} -G -o"
48102 PIC_FLAG="-KPIC"
48103 fi
48104 ;;
48105
48106 *-*-darwin* )
48107
473276a9
VS
48108D='$'
48109cat <<EOF >shared-ld-sh
a848cd7e
SC
48110#!/bin/sh
48111#-----------------------------------------------------------------------------
48112#-- Name: distrib/mac/shared-ld-sh
48113#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
48114#-- Author: Gilles Depeyrot
48115#-- Copyright: (c) 2002 Gilles Depeyrot
48116#-- Licence: any use permitted
48117#-----------------------------------------------------------------------------
48118
48119verbose=0
48120args=""
48121objects=""
48122linking_flag="-dynamiclib"
810b94f0 48123ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 48124
473276a9
VS
48125while test ${D}# -gt 0; do
48126 case ${D}1 in
a848cd7e
SC
48127
48128 -v)
48129 verbose=1
48130 ;;
48131
48132 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
48133 # collect these options and values
473276a9 48134 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
48135 shift
48136 ;;
48137
810b94f0
MW
48138 -s|-Wl,*)
48139 # collect these load args
48140 ldargs="${D}{ldargs} ${D}1"
2113bc77 48141 ;;
810b94f0
MW
48142
48143 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 48144 # collect these options
473276a9 48145 args="${D}{args} ${D}1"
a848cd7e
SC
48146 ;;
48147
48148 -dynamiclib|-bundle)
473276a9 48149 linking_flag="${D}1"
a848cd7e
SC
48150 ;;
48151
48152 -*)
473276a9 48153 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
48154 exit 1
48155 ;;
48156
48157 *.o | *.a | *.dylib)
48158 # collect object files
473276a9 48159 objects="${D}{objects} ${D}1"
a848cd7e
SC
48160 ;;
48161
48162 *)
473276a9 48163 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
48164 exit 1
48165 ;;
48166
48167 esac
48168 shift
48169done
48170
810b94f0
MW
48171status=0
48172
a848cd7e
SC
48173#
48174# Link one module containing all the others
48175#
473276a9 48176if test ${D}{verbose} = 1; then
810b94f0 48177 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 48178fi
810b94f0 48179c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 48180status=${D}?
a848cd7e
SC
48181
48182#
810b94f0
MW
48183# Link the shared library from the single module created, but only if the
48184# previous command didn't fail:
a848cd7e 48185#
810b94f0
MW
48186if test ${D}{status} = 0; then
48187 if test ${D}{verbose} = 1; then
48188 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48189 fi
48190 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48191 status=${D}?
a848cd7e
SC
48192fi
48193
48194#
48195# Remove intermediate module
48196#
473276a9 48197rm -f master.${D}${D}.o
a848cd7e 48198
810b94f0 48199exit ${D}status
a848cd7e 48200EOF
473276a9 48201
583d6b4b
VZ
48202 chmod +x shared-ld-sh
48203
48204 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48205 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
48206
48207
48208 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48209echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
48210if test "${bakefile_cv_gcc31+set}" = set; then
48211 echo $ECHO_N "(cached) $ECHO_C" >&6
48212else
48213
48214 cat >conftest.$ac_ext <<_ACEOF
48215/* confdefs.h. */
48216_ACEOF
48217cat confdefs.h >>conftest.$ac_ext
48218cat >>conftest.$ac_ext <<_ACEOF
48219/* end confdefs.h. */
48220
48221int
48222main ()
48223{
48224
48225 #if (__GNUC__ < 3) || \
48226 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 48227 This is old gcc
583d6b4b 48228 #endif
a848cd7e 48229
583d6b4b
VZ
48230 ;
48231 return 0;
48232}
48233_ACEOF
48234rm -f conftest.$ac_objext
48235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48236 (eval $ac_compile) 2>conftest.er1
48237 ac_status=$?
48238 grep -v '^ *+' conftest.er1 >conftest.err
48239 rm -f conftest.er1
48240 cat conftest.err >&5
48241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48242 (exit $ac_status); } &&
bb9e79c0 48243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
48244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48245 (eval $ac_try) 2>&5
48246 ac_status=$?
48247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48248 (exit $ac_status); }; } &&
48249 { ac_try='test -s conftest.$ac_objext'
48250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48251 (eval $ac_try) 2>&5
48252 ac_status=$?
48253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48254 (exit $ac_status); }; }; then
48255
48256 bakefile_cv_gcc31=yes
48257
48258else
48259 echo "$as_me: failed program was:" >&5
48260sed 's/^/| /' conftest.$ac_ext >&5
48261
48262
48263 bakefile_cv_gcc31=no
48264
48265
48266fi
48267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48268
48269fi
48270echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48271echo "${ECHO_T}$bakefile_cv_gcc31" >&6
48272 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 48273 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 48274 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
48275 else
48276 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 48277 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
48278 fi
48279
47bd5406
VZ
48280 if test "x$GCC" == "xyes"; then
48281 PIC_FLAG="-dynamic -fPIC"
48282 fi
48283 if test "x$XLCC" = "xyes"; then
48284 PIC_FLAG="-dynamic -DPIC"
48285 fi
a848cd7e
SC
48286 ;;
48287
48288 *-*-aix* )
f6b50c59 48289 if test "x$GCC" = "xyes"; then
583d6b4b 48290 PIC_FLAG=""
f6b50c59 48291
583d6b4b
VZ
48292 case "${BAKEFILE_HOST}" in
48293 *-*-aix5* )
48294 LD_EXPFULL="-Wl,-bexpfull"
48295 ;;
48296 esac
f6b50c59 48297
583d6b4b
VZ
48298 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48299 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48300 else
48301 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
48302set dummy makeC++SharedLib; ac_word=$2
48303echo "$as_me:$LINENO: checking for $ac_word" >&5
48304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48305if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48306 echo $ECHO_N "(cached) $ECHO_C" >&6
48307else
48308 if test -n "$AIX_CXX_LD"; then
48309 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48310else
48311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48312for as_dir in $PATH
48313do
48314 IFS=$as_save_IFS
48315 test -z "$as_dir" && as_dir=.
48316 for ac_exec_ext in '' $ac_executable_extensions; do
48317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48318 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48320 break 2
48321 fi
48322done
48323done
48324
48325 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48326fi
48327fi
48328AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48329if test -n "$AIX_CXX_LD"; then
48330 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48331echo "${ECHO_T}$AIX_CXX_LD" >&6
48332else
48333 echo "$as_me:$LINENO: result: no" >&5
48334echo "${ECHO_T}no" >&6
48335fi
48336
f6b50c59 48337 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
48338 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48339 fi
48340 ;;
48341
48342 *-*-beos* )
1e9e8aba
DE
48343 SHARED_LD_CC="${LD} -nostart -o"
48344 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
48345 ;;
48346
48347 *-*-irix* )
48348 if test "x$GCC" != "xyes"; then
48349 PIC_FLAG="-KPIC"
48350 fi
48351 ;;
48352
48353 *-*-cygwin* | *-*-mingw32* )
48354 PIC_FLAG=""
1e9e8aba
DE
48355 SHARED_LD_CC="\$(CC) -shared -o"
48356 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 48357 WINDOWS_IMPLIB=1
a848cd7e
SC
48358 ;;
48359
48360 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
48361 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48362 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 48363 PIC_FLAG=""
473276a9
VS
48364
48365D='$'
48366cat <<EOF >dllar.sh
48367#!/bin/sh
48368#
48369# dllar - a tool to build both a .dll and an .a file
48370# from a set of object (.o) files for EMX/OS2.
48371#
48372# Written by Andrew Zabolotny, bit@freya.etu.ru
48373# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48374#
48375# This script will accept a set of files on the command line.
48376# All the public symbols from the .o files will be exported into
48377# a .DEF file, then linker will be run (through gcc) against them to
48378# build a shared library consisting of all given .o files. All libraries
48379# (.a) will be first decompressed into component .o files then act as
48380# described above. You can optionally give a description (-d "description")
48381# which will be put into .DLL. To see the list of accepted options (as well
48382# as command-line format) simply run this program without options. The .DLL
48383# is built to be imported by name (there is no guarantee that new versions
48384# of the library you build will have same ordinals for same symbols).
48385#
48386# dllar is free software; you can redistribute it and/or modify
48387# it under the terms of the GNU General Public License as published by
48388# the Free Software Foundation; either version 2, or (at your option)
48389# any later version.
48390#
48391# dllar is distributed in the hope that it will be useful,
48392# but WITHOUT ANY WARRANTY; without even the implied warranty of
48393# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48394# GNU General Public License for more details.
48395#
48396# You should have received a copy of the GNU General Public License
48397# along with dllar; see the file COPYING. If not, write to the Free
48398# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48399# 02111-1307, USA.
48400
48401# To successfuly run this program you will need:
48402# - Current drive should have LFN support (HPFS, ext2, network, etc)
48403# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48404# - gcc
48405# (used to build the .dll)
48406# - emxexp
48407# (used to create .def file from .o files)
48408# - emximp
48409# (used to create .a file from .def file)
48410# - GNU text utilites (cat, sort, uniq)
48411# used to process emxexp output
48412# - GNU file utilities (mv, rm)
48413# - GNU sed
48414# - lxlite (optional, see flag below)
48415# (used for general .dll cleanup)
48416#
48417
48418flag_USE_LXLITE=1;
48419
48420#
48421# helper functions
48422# basnam, variant of basename, which does _not_ remove the path, _iff_
48423# second argument (suffix to remove) is given
48424basnam(){
48425 case ${D}# in
48426 1)
1e9e8aba 48427 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
48428 ;;
48429 2)
48430 echo ${D}1 | sed 's/'${D}2'${D}//'
48431 ;;
48432 *)
48433 echo "error in basnam ${D}*"
48434 exit 8
48435 ;;
48436 esac
48437}
48438
48439# Cleanup temporary files and output
48440CleanUp() {
48441 cd ${D}curDir
48442 for i in ${D}inputFiles ; do
48443 case ${D}i in
48444 *!)
48445 rm -rf \`basnam ${D}i !\`
48446 ;;
48447 *)
48448 ;;
48449 esac
48450 done
48451
48452 # Kill result in case of failure as there is just to many stupid make/nmake
48453 # things out there which doesn't do this.
1e9e8aba 48454 if [ ${D}# -eq 0 ]; then
473276a9
VS
48455 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48456 fi
48457}
48458
48459# Print usage and exit script with rc=1.
48460PrintHelp() {
b1d22ded
DE
48461 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48462 echo ' [-name-mangler-script script.sh]'
48463 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48464 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
48465 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 48466 echo ' [*.o] [*.a]'
473276a9
VS
48467 echo '*> "output_file" should have no extension.'
48468 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
48469 echo ' The import library name is derived from this and is set to "name".a,'
48470 echo ' unless overridden by -import'
48471 echo '*> "importlib_name" should have no extension.'
48472 echo ' If it has the .o, or .a extension, it is automatically removed.'
48473 echo ' This name is used as the import library name and may be longer and'
48474 echo ' more descriptive than the DLL name which has to follow the old '
48475 echo ' 8.3 convention of FAT.'
b1d22ded
DE
48476 echo '*> "script.sh may be given to override the output_file name by a'
48477 echo ' different name. It is mainly useful if the regular make process'
48478 echo ' of some package does not take into account OS/2 restriction of'
48479 echo ' DLL name lengths. It takes the importlib name as input and is'
48480 echo ' supposed to procude a shorter name as output. The script should'
48481 echo ' expect to get importlib_name without extension and should produce'
48482 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
48483 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
48484 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48485 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
48486 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48487 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
48488 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48489 echo ' If the last character of a symbol is "*", all symbols beginning'
48490 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 48491 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 48492 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 48493 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 48494 echo ' C runtime DLLs.'
b1d22ded 48495 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
48496 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48497 echo ' unchanged to GCC at the end of command line.'
48498 echo '*> If you create a DLL from a library and you do not specify -o,'
48499 echo ' the basename for DLL and import library will be set to library name,'
48500 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
48501 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48502 echo ' library will be renamed into gcc_s.a.'
48503 echo '--------'
48504 echo 'Example:'
48505 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48506 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48507 CleanUp
48508 exit 1
48509}
48510
48511# Execute a command.
48512# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48513# @Uses Whatever CleanUp() uses.
48514doCommand() {
48515 echo "${D}*"
48516 eval ${D}*
48517 rcCmd=${D}?
48518
1e9e8aba 48519 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
48520 echo "command failed, exit code="${D}rcCmd
48521 CleanUp
48522 exit ${D}rcCmd
48523 fi
48524}
48525
48526# main routine
48527# setup globals
48528cmdLine=${D}*
48529outFile=""
48530outimpFile=""
48531inputFiles=""
b1d22ded 48532renameScript=""
473276a9
VS
48533description=""
48534CC=gcc.exe
48535CFLAGS="-s -Zcrtdll"
48536EXTRA_CFLAGS=""
48537EXPORT_BY_ORDINALS=0
48538exclude_symbols=""
48539library_flags=""
48540curDir=\`pwd\`
48541curDirS=curDir
48542case ${D}curDirS in
48543*/)
48544 ;;
48545*)
48546 curDirS=${D}{curDirS}"/"
48547 ;;
48548esac
48549# Parse commandline
48550libsToLink=0
b1d22ded 48551omfLinking=0
1e9e8aba 48552while [ ${D}1 ]; do
473276a9
VS
48553 case ${D}1 in
48554 -ord*)
48555 EXPORT_BY_ORDINALS=1;
48556 ;;
48557 -o*)
48558 shift
48559 outFile=${D}1
48560 ;;
48561 -i*)
48562 shift
48563 outimpFile=${D}1
48564 ;;
b1d22ded
DE
48565 -name-mangler-script)
48566 shift
48567 renameScript=${D}1
48568 ;;
473276a9
VS
48569 -d*)
48570 shift
48571 description=${D}1
48572 ;;
48573 -f*)
48574 shift
48575 CFLAGS=${D}1
48576 ;;
48577 -c*)
48578 shift
48579 CC=${D}1
48580 ;;
48581 -h*)
48582 PrintHelp
48583 ;;
48584 -ex*)
48585 shift
48586 exclude_symbols=${D}{exclude_symbols}${D}1" "
48587 ;;
48588 -libf*)
48589 shift
48590 library_flags=${D}{library_flags}${D}1" "
48591 ;;
48592 -nocrt*)
48593 CFLAGS="-s"
48594 ;;
48595 -nolxl*)
48596 flag_USE_LXLITE=0
48597 ;;
48598 -* | /*)
48599 case ${D}1 in
48600 -L* | -l*)
48601 libsToLink=1
48602 ;;
b1d22ded
DE
48603 -Zomf)
48604 omfLinking=1
48605 ;;
473276a9
VS
48606 *)
48607 ;;
48608 esac
48609 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48610 ;;
b1d22ded
DE
48611 *.dll)
48612 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48613 if [ ${D}omfLinking -eq 1 ]; then
48614 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48615 else
48616 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48617 fi
48618 ;;
473276a9
VS
48619 *)
48620 found=0;
1e9e8aba 48621 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
48622 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48623 else
48624 for file in ${D}1 ; do
1e9e8aba 48625 if [ -f ${D}file ]; then
473276a9
VS
48626 inputFiles="${D}{inputFiles} ${D}file"
48627 found=1
48628 fi
48629 done
1e9e8aba 48630 if [ ${D}found -eq 0 ]; then
473276a9
VS
48631 echo "ERROR: No file(s) found: "${D}1
48632 exit 8
48633 fi
48634 fi
48635 ;;
48636 esac
48637 shift
48638done # iterate cmdline words
48639
48640#
1e9e8aba 48641if [ -z "${D}inputFiles" ]; then
473276a9
VS
48642 echo "dllar: no input files"
48643 PrintHelp
48644fi
48645
48646# Now extract all .o files from .a files
48647newInputFiles=""
48648for file in ${D}inputFiles ; do
48649 case ${D}file in
48650 *.a | *.lib)
48651 case ${D}file in
48652 *.a)
48653 suffix=".a"
48654 AR="ar"
48655 ;;
48656 *.lib)
48657 suffix=".lib"
48658 AR="emxomfar"
48659 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48660 ;;
48661 *)
48662 ;;
48663 esac
48664 dirname=\`basnam ${D}file ${D}suffix\`"_%"
48665 mkdir ${D}dirname
1e9e8aba 48666 if [ ${D}? -ne 0 ]; then
473276a9
VS
48667 echo "Failed to create subdirectory ./${D}dirname"
48668 CleanUp
48669 exit 8;
48670 fi
48671 # Append '!' to indicate archive
48672 newInputFiles="${D}newInputFiles ${D}{dirname}!"
48673 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48674 cd ${D}curDir
48675 found=0;
48676 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 48677 if [ -f ${D}subfile ]; then
473276a9 48678 found=1
1e9e8aba 48679 if [ -s ${D}subfile ]; then
473276a9
VS
48680 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48681 newInputFiles="${D}newInputFiles ${D}subfile"
48682 fi
48683 fi
48684 done
1e9e8aba
DE
48685 if [ ${D}found -eq 0 ]; then
48686 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
48687 fi
48688 ;;
48689 *)
48690 newInputFiles="${D}{newInputFiles} ${D}file"
48691 ;;
48692 esac
48693done
48694inputFiles="${D}newInputFiles"
48695
48696# Output filename(s).
48697do_backup=0;
1e9e8aba 48698if [ -z ${D}outFile ]; then
473276a9
VS
48699 do_backup=1;
48700 set outFile ${D}inputFiles; outFile=${D}2
48701fi
48702
48703# If it is an archive, remove the '!' and the '_%' suffixes
48704case ${D}outFile in
48705*_%!)
48706 outFile=\`basnam ${D}outFile _%!\`
48707 ;;
48708*)
48709 ;;
48710esac
48711case ${D}outFile in
48712*.dll)
48713 outFile=\`basnam ${D}outFile .dll\`
48714 ;;
48715*.DLL)
48716 outFile=\`basnam ${D}outFile .DLL\`
48717 ;;
48718*.o)
48719 outFile=\`basnam ${D}outFile .o\`
48720 ;;
48721*.obj)
48722 outFile=\`basnam ${D}outFile .obj\`
48723 ;;
48724*.a)
48725 outFile=\`basnam ${D}outFile .a\`
48726 ;;
48727*.lib)
48728 outFile=\`basnam ${D}outFile .lib\`
48729 ;;
48730*)
48731 ;;
48732esac
48733case ${D}outimpFile in
48734*.a)
48735 outimpFile=\`basnam ${D}outimpFile .a\`
48736 ;;
48737*.lib)
48738 outimpFile=\`basnam ${D}outimpFile .lib\`
48739 ;;
48740*)
48741 ;;
48742esac
1e9e8aba 48743if [ -z ${D}outimpFile ]; then
473276a9
VS
48744 outimpFile=${D}outFile
48745fi
48746defFile="${D}{outFile}.def"
48747arcFile="${D}{outimpFile}.a"
48748arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
48749
48750#create ${D}dllFile as something matching 8.3 restrictions,
48751if [ -z ${D}renameScript ] ; then
48752 dllFile="${D}outFile"
48753else
48754 dllFile=\`${D}renameScript ${D}outimpFile\`
48755fi
473276a9 48756
1e9e8aba
DE
48757if [ ${D}do_backup -ne 0 ] ; then
48758 if [ -f ${D}arcFile ] ; then
473276a9
VS
48759 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48760 fi
1e9e8aba 48761 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
48762 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48763 fi
48764fi
48765
48766# Extract public symbols from all the object files.
48767tmpdefFile=${D}{defFile}_%
48768rm -f ${D}tmpdefFile
48769for file in ${D}inputFiles ; do
48770 case ${D}file in
48771 *!)
48772 ;;
48773 *)
48774 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48775 ;;
48776 esac
48777done
48778
48779# Create the def file.
48780rm -f ${D}defFile
48781echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
48782dllFile="${D}{dllFile}.dll"
48783if [ ! -z ${D}description ]; then
1e9e8aba 48784 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
48785fi
48786echo "EXPORTS" >> ${D}defFile
48787
48788doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48789grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48790
48791# Checks if the export is ok or not.
48792for word in ${D}exclude_symbols; do
48793 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48794 mv ${D}{tmpdefFile}% ${D}tmpdefFile
48795done
48796
48797
1e9e8aba
DE
48798if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48799 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
48800 sed '
48801 N
48802 : loop
1e9e8aba 48803 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
48804 t loop
48805 ' > ${D}{tmpdefFile}%
48806 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48807else
48808 rm -f ${D}{tmpdefFile}%
48809fi
48810cat ${D}tmpdefFile >> ${D}defFile
48811rm -f ${D}tmpdefFile
48812
48813# Do linking, create implib, and apply lxlite.
48814gccCmdl="";
48815for file in ${D}inputFiles ; do
48816 case ${D}file in
48817 *!)
48818 ;;
48819 *)
48820 gccCmdl="${D}gccCmdl ${D}file"
48821 ;;
48822 esac
48823done
48824doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48825touch "${D}{outFile}.dll"
48826
48827doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 48828if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 48829 add_flags="";
1e9e8aba 48830 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
48831 add_flags="-ynd"
48832 fi
48833 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48834fi
48835doCommand "emxomf -s -l ${D}arcFile"
48836
48837# Successful exit.
48838CleanUp 1
48839exit 0
48840EOF
48841
48842 chmod +x dllar.sh
a848cd7e
SC
48843 ;;
48844
1e9e8aba 48845 powerpc-apple-macos* | \
0ad5d837 48846 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a485900c 48847 *-*-mirbsd* | \
a848cd7e
SC
48848 *-*-sunos4* | \
48849 *-*-osf* | \
48850 *-*-dgux5* | \
47a7e797
MW
48851 *-*-sysv5* | \
48852 *-pc-msdosdjgpp )
a848cd7e
SC
48853 ;;
48854
48855 *)
3ecd9f92 48856 esac
a848cd7e 48857
2057db16
VS
48858 if test "x$PIC_FLAG" != "x" ; then
48859 PIC_FLAG="$PIC_FLAG -DPIC"
48860 fi
48861
a848cd7e
SC
48862 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48863 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48864 fi
48865 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48866 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48867 fi
48868
48869
48870
48871
48872
48873
48874
48875
810b94f0 48876
a848cd7e
SC
48877 USE_SOVERSION=0
48878 USE_SOVERLINUX=0
48879 USE_SOVERSOLARIS=0
810b94f0 48880 USE_SOVERCYGWIN=0
a848cd7e
SC
48881 USE_SOSYMLINKS=0
48882 USE_MACVERSION=0
48883 SONAME_FLAG=
48884
48885 case "${BAKEFILE_HOST}" in
0ad5d837 48886 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
48887 SONAME_FLAG="-Wl,-soname,"
48888 USE_SOVERSION=1
48889 USE_SOVERLINUX=1
48890 USE_SOSYMLINKS=1
48891 ;;
48892
a848cd7e
SC
48893 *-*-solaris2* )
48894 SONAME_FLAG="-h "
48895 USE_SOVERSION=1
48896 USE_SOVERSOLARIS=1
48897 USE_SOSYMLINKS=1
48898 ;;
48899
48900 *-*-darwin* )
48901 USE_MACVERSION=1
48902 USE_SOVERSION=1
48903 USE_SOSYMLINKS=1
48904 ;;
810b94f0
MW
48905
48906 *-*-cygwin* )
48907 USE_SOVERSION=1
48908 USE_SOVERCYGWIN=1
48909 ;;
a848cd7e
SC
48910 esac
48911
48912
48913
48914
48915
48916
48917
48918
48919
810b94f0 48920
f10e38c4
VZ
48921 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
48922if test "${enable_dependency_tracking+set}" = set; then
48923 enableval="$enable_dependency_tracking"
48924 bk_use_trackdeps="$enableval"
48925fi;
48926
a848cd7e
SC
48927 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48928echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 48929
a485900c 48930 BK_DEPS=""
f10e38c4
VZ
48931 if test "x$bk_use_trackdeps" = "xno" ; then
48932 DEPS_TRACKING=0
48933 echo "$as_me:$LINENO: result: disabled" >&5
48934echo "${ECHO_T}disabled" >&6
48935 else
48936 DEPS_TRACKING=1
48937
48938 if test "x$GCC" = "xyes"; then
48939 DEPSMODE=gcc
48940 case "${BAKEFILE_HOST}" in
48941 *-*-darwin* )
48942 DEPSFLAG="-no-cpp-precomp -MMD"
48943 ;;
48944 * )
48945 DEPSFLAG="-MMD"
48946 ;;
48947 esac
48948 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 48949echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
48950 elif test "x$MWCC" = "xyes"; then
48951 DEPSMODE=mwcc
48952 DEPSFLAG="-MM"
48953 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 48954echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
48955 elif test "x$SUNCC" = "xyes"; then
48956 DEPSMODE=unixcc
48957 DEPSFLAG="-xM1"
48958 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 48959echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
48960 elif test "x$SGICC" = "xyes"; then
48961 DEPSMODE=unixcc
48962 DEPSFLAG="-M"
48963 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 48964echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
48965 elif test "x$HPCC" = "xyes"; then
48966 DEPSMODE=unixcc
48967 DEPSFLAG="+make"
48968 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 48969echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
48970 elif test "x$COMPAQCC" = "xyes"; then
48971 DEPSMODE=gcc
48972 DEPSFLAG="-MD"
48973 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 48974echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
48975 else
48976 DEPS_TRACKING=0
48977 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 48978echo "${ECHO_T}none" >&6
f10e38c4 48979 fi
a848cd7e 48980
f10e38c4 48981 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
48982
48983D='$'
48984cat <<EOF >bk-deps
a848cd7e
SC
48985#!/bin/sh
48986
48987# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48988# script. It is used to track C/C++ files dependencies in portable way.
48989#
48990# Permission is given to use this file in any way.
48991
473276a9 48992DEPSMODE=${DEPSMODE}
a848cd7e 48993DEPSDIR=.deps
0ad5d837 48994DEPSFLAG="${DEPSFLAG}"
a848cd7e 48995
473276a9 48996mkdir -p ${D}DEPSDIR
a848cd7e 48997
473276a9 48998if test ${D}DEPSMODE = gcc ; then
0ad5d837 48999 ${D}* ${D}{DEPSFLAG}
473276a9
VS
49000 status=${D}?
49001 if test ${D}{status} != 0 ; then
49002 exit ${D}{status}
a848cd7e
SC
49003 fi
49004 # move created file to the location we want it in:
473276a9
VS
49005 while test ${D}# -gt 0; do
49006 case "${D}1" in
a848cd7e
SC
49007 -o )
49008 shift
473276a9 49009 objfile=${D}1
a848cd7e
SC
49010 ;;
49011 -* )
49012 ;;
49013 * )
473276a9 49014 srcfile=${D}1
a848cd7e
SC
49015 ;;
49016 esac
49017 shift
49018 done
1e9e8aba
DE
49019 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
49020 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
49021 if test -f ${D}depfile ; then
49022 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
49023 rm -f ${D}depfile
a848cd7e 49024 else
a1aa0349 49025 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 49026 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
49027 if test ! -f ${D}depfile ; then
49028 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
49029 depfile="${D}objfile.d"
49030 fi
473276a9
VS
49031 if test -f ${D}depfile ; then
49032 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
49033 rm -f ${D}depfile
a848cd7e
SC
49034 fi
49035 fi
49036 exit 0
81f90336 49037elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 49038 ${D}* || exit ${D}?
81f90336
MW
49039 # Run mwcc again with -MM and redirect into the dep file we want
49040 # NOTE: We can't use shift here because we need ${D}* to be valid
49041 prevarg=
49042 for arg in ${D}* ; do
49043 if test "${D}prevarg" = "-o"; then
49044 objfile=${D}arg
49045 else
49046 case "${D}arg" in
49047 -* )
49048 ;;
49049 * )
49050 srcfile=${D}arg
49051 ;;
49052 esac
49053 fi
49054 prevarg="${D}arg"
49055 done
0ad5d837 49056 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 49057 exit 0
0ad5d837 49058elif test ${D}DEPSMODE = unixcc; then
f6b50c59 49059 ${D}* || exit ${D}?
a9e5b1f0
MW
49060 # Run compiler again with deps flag and redirect into the dep file.
49061 # It doesn't work if the '-o FILE' option is used, but without it the
49062 # dependency file will contain the wrong name for the object. So it is
49063 # removed from the command line, and the dep file is fixed with sed.
49064 cmd=""
49065 while test ${D}# -gt 0; do
49066 case "${D}1" in
49067 -o )
49068 shift
49069 objfile=${D}1
49070 ;;
49071 * )
49072 eval arg${D}#=\\${D}1
49073 cmd="${D}cmd \\${D}arg${D}#"
49074 ;;
49075 esac
49076 shift
49077 done
0ad5d837 49078 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 49079 exit 0
a848cd7e 49080else
473276a9
VS
49081 ${D}*
49082 exit ${D}?
a848cd7e
SC
49083fi
49084EOF
473276a9 49085
f10e38c4 49086 chmod +x bk-deps
a485900c 49087 BK_DEPS="`pwd`/bk-deps"
f10e38c4 49088 fi
a848cd7e
SC
49089 fi
49090
49091
49092
49093
a485900c 49094
a848cd7e
SC
49095 case ${BAKEFILE_HOST} in
49096 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
49097 if test -n "$ac_tool_prefix"; then
49098 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
49099set dummy ${ac_tool_prefix}windres; ac_word=$2
49100echo "$as_me:$LINENO: checking for $ac_word" >&5
49101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49102if test "${ac_cv_prog_WINDRES+set}" = set; then
49103 echo $ECHO_N "(cached) $ECHO_C" >&6
49104else
49105 if test -n "$WINDRES"; then
49106 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
49107else
49108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49109for as_dir in $PATH
49110do
49111 IFS=$as_save_IFS
49112 test -z "$as_dir" && as_dir=.
49113 for ac_exec_ext in '' $ac_executable_extensions; do
49114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49115 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
49116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49117 break 2
49118 fi
49119done
49120done
49121
49122fi
49123fi
49124WINDRES=$ac_cv_prog_WINDRES
49125if test -n "$WINDRES"; then
49126 echo "$as_me:$LINENO: result: $WINDRES" >&5
49127echo "${ECHO_T}$WINDRES" >&6
49128else
49129 echo "$as_me:$LINENO: result: no" >&5
49130echo "${ECHO_T}no" >&6
49131fi
49132
49133fi
49134if test -z "$ac_cv_prog_WINDRES"; then
49135 ac_ct_WINDRES=$WINDRES
49136 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
49137set dummy windres; ac_word=$2
49138echo "$as_me:$LINENO: checking for $ac_word" >&5
49139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 49140if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
49141 echo $ECHO_N "(cached) $ECHO_C" >&6
49142else
8ced02f6
DE
49143 if test -n "$ac_ct_WINDRES"; then
49144 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
49145else
49146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49147for as_dir in $PATH
49148do
49149 IFS=$as_save_IFS
49150 test -z "$as_dir" && as_dir=.
49151 for ac_exec_ext in '' $ac_executable_extensions; do
49152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 49153 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
49154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49155 break 2
49156 fi
49157done
49158done
49159
a848cd7e
SC
49160fi
49161fi
8ced02f6
DE
49162ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49163if test -n "$ac_ct_WINDRES"; then
49164 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49165echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
49166else
49167 echo "$as_me:$LINENO: result: no" >&5
49168echo "${ECHO_T}no" >&6
49169fi
49170
8ced02f6
DE
49171 WINDRES=$ac_ct_WINDRES
49172else
49173 WINDRES="$ac_cv_prog_WINDRES"
49174fi
49175
a848cd7e
SC
49176 ;;
49177
1e9e8aba 49178 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
49179 # Extract the first word of "Rez", so it can be a program name with args.
49180set dummy Rez; ac_word=$2
49181echo "$as_me:$LINENO: checking for $ac_word" >&5
49182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 49183if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
49184 echo $ECHO_N "(cached) $ECHO_C" >&6
49185else
8ced02f6
DE
49186 if test -n "$REZ"; then
49187 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
49188else
49189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49190for as_dir in $PATH
49191do
49192 IFS=$as_save_IFS
49193 test -z "$as_dir" && as_dir=.
49194 for ac_exec_ext in '' $ac_executable_extensions; do
49195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 49196 ac_cv_prog_REZ="Rez"
a848cd7e
SC
49197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49198 break 2
49199 fi
49200done
49201done
49202
8ced02f6 49203 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
49204fi
49205fi
8ced02f6
DE
49206REZ=$ac_cv_prog_REZ
49207if test -n "$REZ"; then
49208 echo "$as_me:$LINENO: result: $REZ" >&5
49209echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
49210else
49211 echo "$as_me:$LINENO: result: no" >&5
49212echo "${ECHO_T}no" >&6
49213fi
49214
49215 # Extract the first word of "SetFile", so it can be a program name with args.
49216set dummy SetFile; ac_word=$2
49217echo "$as_me:$LINENO: checking for $ac_word" >&5
49218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49219if test "${ac_cv_prog_SETFILE+set}" = set; then
49220 echo $ECHO_N "(cached) $ECHO_C" >&6
49221else
49222 if test -n "$SETFILE"; then
49223 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49224else
49225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49226for as_dir in $PATH
49227do
49228 IFS=$as_save_IFS
49229 test -z "$as_dir" && as_dir=.
49230 for ac_exec_ext in '' $ac_executable_extensions; do
49231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49232 ac_cv_prog_SETFILE="SetFile"
49233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49234 break 2
49235 fi
49236done
49237done
49238
49239 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49240fi
49241fi
49242SETFILE=$ac_cv_prog_SETFILE
49243if test -n "$SETFILE"; then
49244 echo "$as_me:$LINENO: result: $SETFILE" >&5
49245echo "${ECHO_T}$SETFILE" >&6
49246else
49247 echo "$as_me:$LINENO: result: no" >&5
49248echo "${ECHO_T}no" >&6
49249fi
49250
49251 ;;
49252 esac
49253
49254
49255
49256
49257
8ced02f6 49258
99a2637b 49259 BAKEFILE_BAKEFILE_M4_VERSION="0.2.1"
a848cd7e 49260
dcc1b6ad 49261
480b9f18 49262BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.1"
a848cd7e 49263
646b6ec1 49264
74b84332 49265
a848cd7e
SC
49266 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
49267if test "${enable_precomp_headers+set}" = set; then
49268 enableval="$enable_precomp_headers"
49269 bk_use_pch="$enableval"
49270fi;
49271
49272 GCC_PCH=0
f10e38c4
VZ
49273 ICC_PCH=0
49274 USE_PCH=0
a485900c 49275 BK_MAKE_PCH=""
a848cd7e 49276
5c60e845
MW
49277 case ${BAKEFILE_HOST} in
49278 *-*-cygwin* )
49279 bk_use_pch="no"
49280 ;;
49281 esac
49282
a848cd7e
SC
49283 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49284 if test "x$GCC" = "xyes"; then
49285 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49286echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
49287 cat >conftest.$ac_ext <<_ACEOF
49288/* confdefs.h. */
49289_ACEOF
49290cat confdefs.h >>conftest.$ac_ext
49291cat >>conftest.$ac_ext <<_ACEOF
49292/* end confdefs.h. */
49293
49294int
49295main ()
49296{
49297
49298 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 49299 There is no PCH support
a848cd7e
SC
49300 #endif
49301 #if (__GNUC__ < 3)
e5efa97e 49302 There is no PCH support
a848cd7e
SC
49303 #endif
49304 #if (__GNUC__ == 3) && \
49305 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
49306 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49307 ( defined(__INTEL_COMPILER) )
e5efa97e 49308 There is no PCH support
a848cd7e
SC
49309 #endif
49310
49311 ;
49312 return 0;
49313}
49314_ACEOF
49315rm -f conftest.$ac_objext
49316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 49317 (eval $ac_compile) 2>conftest.er1
a848cd7e 49318 ac_status=$?
ac1cb8d3
VS
49319 grep -v '^ *+' conftest.er1 >conftest.err
49320 rm -f conftest.er1
49321 cat conftest.err >&5
a848cd7e
SC
49322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49323 (exit $ac_status); } &&
bb9e79c0 49324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
49325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49326 (eval $ac_try) 2>&5
49327 ac_status=$?
49328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49329 (exit $ac_status); }; } &&
49330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
49331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49332 (eval $ac_try) 2>&5
49333 ac_status=$?
49334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49335 (exit $ac_status); }; }; then
49336
49337 echo "$as_me:$LINENO: result: yes" >&5
49338echo "${ECHO_T}yes" >&6
a848cd7e
SC
49339 GCC_PCH=1
49340
49341else
49342 echo "$as_me: failed program was:" >&5
49343sed 's/^/| /' conftest.$ac_ext >&5
49344
49345
f10e38c4
VZ
49346 cat >conftest.$ac_ext <<_ACEOF
49347/* confdefs.h. */
49348_ACEOF
49349cat confdefs.h >>conftest.$ac_ext
49350cat >>conftest.$ac_ext <<_ACEOF
49351/* end confdefs.h. */
49352
49353int
49354main ()
49355{
49356
49357 #if !defined(__INTEL_COMPILER) || \
49358 (__INTEL_COMPILER < 800)
e5efa97e 49359 There is no PCH support
f10e38c4
VZ
49360 #endif
49361
49362 ;
49363 return 0;
49364}
49365_ACEOF
49366rm -f conftest.$ac_objext
49367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49368 (eval $ac_compile) 2>conftest.er1
49369 ac_status=$?
49370 grep -v '^ *+' conftest.er1 >conftest.err
49371 rm -f conftest.er1
49372 cat conftest.err >&5
49373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49374 (exit $ac_status); } &&
bb9e79c0 49375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
49376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49377 (eval $ac_try) 2>&5
49378 ac_status=$?
49379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49380 (exit $ac_status); }; } &&
49381 { ac_try='test -s conftest.$ac_objext'
49382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49383 (eval $ac_try) 2>&5
49384 ac_status=$?
49385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49386 (exit $ac_status); }; }; then
49387
49388 echo "$as_me:$LINENO: result: yes" >&5
49389echo "${ECHO_T}yes" >&6
49390 ICC_PCH=1
49391
49392else
49393 echo "$as_me: failed program was:" >&5
49394sed 's/^/| /' conftest.$ac_ext >&5
49395
49396
49397 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
49398echo "${ECHO_T}no" >&6
49399
49400fi
ac1cb8d3 49401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
49402
49403fi
49404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49405 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49406 USE_PCH=1
1e9e8aba
DE
49407
49408D='$'
49409cat <<EOF >bk-make-pch
a848cd7e
SC
49410#!/bin/sh
49411
49412# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
49413# script. It is used to generated precompiled headers.
49414#
49415# Permission is given to use this file in any way.
49416
1e9e8aba
DE
49417outfile="${D}{1}"
49418header="${D}{2}"
a848cd7e
SC
49419shift
49420shift
49421
f10e38c4
VZ
49422compiler=""
49423headerfile=""
49424
1e9e8aba 49425while test ${D}{#} -gt 0; do
f10e38c4 49426 add_to_cmdline=1
1e9e8aba 49427 case "${D}{1}" in
a848cd7e 49428 -I* )
1e9e8aba
DE
49429 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49430 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49431 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
49432 fi
49433 ;;
f10e38c4
VZ
49434 -use-pch|-use_pch )
49435 shift
49436 add_to_cmdline=0
49437 ;;
a848cd7e 49438 esac
f10e38c4
VZ
49439 if test ${D}add_to_cmdline = 1 ; then
49440 compiler="${D}{compiler} ${D}{1}"
49441 fi
a848cd7e
SC
49442 shift
49443done
49444
1e9e8aba 49445if test "x${D}{headerfile}" = "x" ; then
f10e38c4 49446 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 49447else
1e9e8aba
DE
49448 if test -f ${D}{outfile} ; then
49449 rm -f ${D}{outfile}
a848cd7e 49450 else
1e9e8aba 49451 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 49452 fi
1e9e8aba 49453 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 49454 mkdir -p .deps
f10e38c4
VZ
49455 if test "x${GCC_PCH}" = "x1" ; then
49456 # can do this because gcc is >= 3.4:
49457 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49458 elif test "x${ICC_PCH}" = "x1" ; then
49459 filename=pch_gen-${D}${D}
49460 file=${D}{filename}.c
49461 dfile=${D}{filename}.d
49462 cat > ${D}file <<EOT
49463#include "${D}header"
49464EOT
49465 # using -MF icc complains about differing command lines in creation/use
49466 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
49467 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49468 rm -f ${D}file ${D}dfile ${D}{filename}.o
49469 fi
1e9e8aba 49470 exit ${D}{?}
a848cd7e
SC
49471fi
49472EOF
1e9e8aba 49473
a848cd7e 49474 chmod +x bk-make-pch
a485900c 49475 BK_MAKE_PCH="`pwd`/bk-make-pch"
a848cd7e
SC
49476 fi
49477 fi
49478 fi
49479
49480
49481
f10e38c4 49482
a485900c 49483
a848cd7e
SC
49484 COND_BUILD_DEBUG="#"
49485 if test "x$BUILD" = "xdebug" ; then
49486 COND_BUILD_DEBUG=""
49487 fi
49488
49489 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49490 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49491 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49492 fi
49493
49494 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49495 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49496 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49497 fi
49498
49499 COND_BUILD_DEBUG_UNICODE_0="#"
49500 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49501 COND_BUILD_DEBUG_UNICODE_0=""
49502 fi
49503
49504 COND_BUILD_DEBUG_UNICODE_1="#"
49505 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49506 COND_BUILD_DEBUG_UNICODE_1=""
49507 fi
49508
49509 COND_BUILD_RELEASE="#"
49510 if test "x$BUILD" = "xrelease" ; then
49511 COND_BUILD_RELEASE=""
49512 fi
49513
49514 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49515 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49516 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49517 fi
49518
49519 COND_BUILD_RELEASE_UNICODE_0="#"
49520 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49521 COND_BUILD_RELEASE_UNICODE_0=""
49522 fi
49523
49524 COND_BUILD_RELEASE_UNICODE_1="#"
49525 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49526 COND_BUILD_RELEASE_UNICODE_1=""
49527 fi
49528
49529 COND_DEBUG_FLAG_1="#"
49530 if test "x$DEBUG_FLAG" = "x1" ; then
49531 COND_DEBUG_FLAG_1=""
49532 fi
49533
49534 COND_DEBUG_INFO_0="#"
49535 if test "x$DEBUG_INFO" = "x0" ; then
49536 COND_DEBUG_INFO_0=""
49537 fi
49538
49539 COND_DEBUG_INFO_1="#"
49540 if test "x$DEBUG_INFO" = "x1" ; then
49541 COND_DEBUG_INFO_1=""
49542 fi
49543
49544 COND_DEPS_TRACKING_0="#"
49545 if test "x$DEPS_TRACKING" = "x0" ; then
49546 COND_DEPS_TRACKING_0=""
49547 fi
49548
49549 COND_DEPS_TRACKING_1="#"
49550 if test "x$DEPS_TRACKING" = "x1" ; then
49551 COND_DEPS_TRACKING_1=""
49552 fi
49553
49554 COND_GCC_PCH_1="#"
49555 if test "x$GCC_PCH" = "x1" ; then
49556 COND_GCC_PCH_1=""
49557 fi
49558
f10e38c4
VZ
49559 COND_ICC_PCH_1="#"
49560 if test "x$ICC_PCH" = "x1" ; then
49561 COND_ICC_PCH_1=""
49562 fi
49563
a848cd7e
SC
49564 COND_MONOLITHIC_0="#"
49565 if test "x$MONOLITHIC" = "x0" ; then
49566 COND_MONOLITHIC_0=""
49567 fi
49568
49569 COND_MONOLITHIC_0_SHARED_0="#"
49570 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49571 COND_MONOLITHIC_0_SHARED_0=""
49572 fi
49573
3f60522a
JS
49574 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49575 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49576 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49577 fi
49578
a848cd7e
SC
49579 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49580 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49581 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49582 fi
49583
90970d69
DE
49584 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49585 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49586 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49587 fi
49588
f10e38c4
VZ
49589 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49590 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49591 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49592 fi
49593
a848cd7e
SC
49594 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
49595 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49596 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
49597 fi
49598
6671c68b
VZ
49599 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49600 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49601 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49602 fi
49603
a848cd7e
SC
49604 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
49605 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
49606 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
49607 fi
49608
8b6682b9
JS
49609 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49610 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49611 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49612 fi
49613
ceec2216
RL
49614 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49615 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49616 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49617 fi
49618
a848cd7e
SC
49619 COND_MONOLITHIC_0_SHARED_1="#"
49620 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49621 COND_MONOLITHIC_0_SHARED_1=""
49622 fi
49623
3f60522a
JS
49624 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49625 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49626 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49627 fi
49628
a848cd7e
SC
49629 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49630 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49631 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49632 fi
49633
90970d69
DE
49634 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49635 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49636 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49637 fi
49638
f10e38c4
VZ
49639 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49640 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49641 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49642 fi
49643
a848cd7e
SC
49644 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
49645 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49646 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
49647 fi
49648
6671c68b
VZ
49649 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49650 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49651 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49652 fi
49653
a848cd7e
SC
49654 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
49655 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
49656 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
49657 fi
49658
8b6682b9
JS
49659 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49660 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49661 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49662 fi
49663
ceec2216
RL
49664 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49665 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49666 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49667 fi
49668
e5efa97e
VZ
49669 COND_MONOLITHIC_0_USE_MEDIA_1="#"
49670 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49671 COND_MONOLITHIC_0_USE_MEDIA_1=""
49672 fi
49673
a848cd7e
SC
49674 COND_MONOLITHIC_0_USE_ODBC_1="#"
49675 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
49676 COND_MONOLITHIC_0_USE_ODBC_1=""
49677 fi
49678
49679 COND_MONOLITHIC_1="#"
49680 if test "x$MONOLITHIC" = "x1" ; then
49681 COND_MONOLITHIC_1=""
49682 fi
49683
49684 COND_MONOLITHIC_1_SHARED_0="#"
49685 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49686 COND_MONOLITHIC_1_SHARED_0=""
49687 fi
49688
49689 COND_MONOLITHIC_1_SHARED_1="#"
49690 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49691 COND_MONOLITHIC_1_SHARED_1=""
49692 fi
49693
49694 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49695 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49696 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49697 fi
49698
49699 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49700 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49701 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49702 fi
49703
eb730a0c
JS
49704 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49705 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49706 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49707 fi
49708
a848cd7e
SC
49709 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49710 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49711 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49712 fi
49713
49714 COND_PLATFORM_MACOSX_1="#"
49715 if test "x$PLATFORM_MACOSX" = "x1" ; then
49716 COND_PLATFORM_MACOSX_1=""
49717 fi
49718
a30f955f
VS
49719 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
49720 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
49721 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
49722 fi
49723
a848cd7e
SC
49724 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
49725 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
49726 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
49727 fi
49728
49729 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
49730 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
49731 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
49732 fi
49733
49734 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
49735 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
49736 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
49737 fi
49738
fc480dc1
DE
49739 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
49740 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49741 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
49742 fi
49743
ebee3cd0
VS
49744 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
49745 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
49746 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
49747 fi
49748
49749 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
49750 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
49751 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
49752 fi
49753
a848cd7e
SC
49754 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49755 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49756 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49757 fi
49758
49759 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49760 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49761 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49762 fi
49763
b48a2016
DE
49764 COND_PLATFORM_MACOS_1="#"
49765 if test "x$PLATFORM_MACOS" = "x1" ; then
49766 COND_PLATFORM_MACOS_1=""
49767 fi
49768
083508af
MW
49769 COND_PLATFORM_MAC_1="#"
49770 if test "x$PLATFORM_MAC" = "x1" ; then
49771 COND_PLATFORM_MAC_1=""
49772 fi
49773
e5efa97e
VZ
49774 COND_PLATFORM_MSDOS_0="#"
49775 if test "x$PLATFORM_MSDOS" = "x0" ; then
49776 COND_PLATFORM_MSDOS_0=""
49777 fi
49778
83d8eb47
MW
49779 COND_PLATFORM_MSDOS_1="#"
49780 if test "x$PLATFORM_MSDOS" = "x1" ; then
49781 COND_PLATFORM_MSDOS_1=""
49782 fi
49783
a848cd7e
SC
49784 COND_PLATFORM_OS2_1="#"
49785 if test "x$PLATFORM_OS2" = "x1" ; then
49786 COND_PLATFORM_OS2_1=""
49787 fi
49788
49789 COND_PLATFORM_UNIX_0="#"
49790 if test "x$PLATFORM_UNIX" = "x0" ; then
49791 COND_PLATFORM_UNIX_0=""
49792 fi
49793
49794 COND_PLATFORM_UNIX_1="#"
49795 if test "x$PLATFORM_UNIX" = "x1" ; then
49796 COND_PLATFORM_UNIX_1=""
49797 fi
49798
3ad202f9
VZ
49799 COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
49800 if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
49801 COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
49802 fi
49803
49804 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
49805 if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49806 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
49807 fi
49808
a848cd7e
SC
49809 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49810 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49811 COND_PLATFORM_UNIX_1_USE_GUI_1=""
49812 fi
49813
49814 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49815 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49816 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49817 fi
49818
49819 COND_PLATFORM_WIN32_0="#"
49820 if test "x$PLATFORM_WIN32" = "x0" ; then
49821 COND_PLATFORM_WIN32_0=""
49822 fi
49823
49824 COND_PLATFORM_WIN32_1="#"
49825 if test "x$PLATFORM_WIN32" = "x1" ; then
49826 COND_PLATFORM_WIN32_1=""
49827 fi
49828
49829 COND_SHARED_0="#"
49830 if test "x$SHARED" = "x0" ; then
49831 COND_SHARED_0=""
49832 fi
49833
083508af
MW
49834 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49835 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49836 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49837 fi
49838
49839 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49840 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49841 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49842 fi
49843
49844 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49845 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49846 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49847 fi
49848
a848cd7e
SC
49849 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49850 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49851 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49852 fi
49853
49854 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49855 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49856 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49857 fi
49858
49859 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49860 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49861 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49862 fi
49863
49864 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49865 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49866 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49867 fi
49868
083508af
MW
49869 COND_SHARED_0_USE_XRC_1="#"
49870 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49871 COND_SHARED_0_USE_XRC_1=""
49872 fi
49873
a848cd7e
SC
49874 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49875 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49876 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49877 fi
49878
49879 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
49880 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
49881 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
49882 fi
49883
49884 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49885 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49886 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49887 fi
49888
49889 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49890 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49891 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49892 fi
49893
49894 COND_SHARED_1="#"
49895 if test "x$SHARED" = "x1" ; then
49896 COND_SHARED_1=""
49897 fi
49898
49899 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49900 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49901 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49902 fi
49903
083508af
MW
49904 COND_SHARED_1_USE_XRC_1="#"
49905 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49906 COND_SHARED_1_USE_XRC_1=""
49907 fi
49908
a30f955f
VS
49909 COND_TOOLKIT_="#"
49910 if test "x$TOOLKIT" = "x" ; then
49911 COND_TOOLKIT_=""
49912 fi
49913
a848cd7e
SC
49914 COND_TOOLKIT_COCOA="#"
49915 if test "x$TOOLKIT" = "xCOCOA" ; then
49916 COND_TOOLKIT_COCOA=""
49917 fi
49918
a49baeab
DE
49919 COND_TOOLKIT_COCOA_USE_GUI_1="#"
49920 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49921 COND_TOOLKIT_COCOA_USE_GUI_1=""
49922 fi
49923
a848cd7e
SC
49924 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49925 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49926 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49927 fi
49928
b3c86150
VS
49929 COND_TOOLKIT_DFB="#"
49930 if test "x$TOOLKIT" = "xDFB" ; then
49931 COND_TOOLKIT_DFB=""
49932 fi
49933
49934 COND_TOOLKIT_DFB_USE_GUI_1="#"
49935 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49936 COND_TOOLKIT_DFB_USE_GUI_1=""
49937 fi
49938
a848cd7e
SC
49939 COND_TOOLKIT_GTK="#"
49940 if test "x$TOOLKIT" = "xGTK" ; then
49941 COND_TOOLKIT_GTK=""
49942 fi
49943
d044deea
MW
49944 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49945 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49946 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49947 fi
49948
49949 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49950 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49951 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49952 fi
49953
49954 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49955 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49956 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49957 fi
49958
49959 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49960 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49961 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49962 fi
49963
49964 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49965 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49966 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49967 fi
49968
49969 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49970 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49971 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49972 fi
49973
a848cd7e
SC
49974 COND_TOOLKIT_GTK_USE_GUI_1="#"
49975 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49976 COND_TOOLKIT_GTK_USE_GUI_1=""
49977 fi
49978
a848cd7e
SC
49979 COND_TOOLKIT_MAC="#"
49980 if test "x$TOOLKIT" = "xMAC" ; then
49981 COND_TOOLKIT_MAC=""
49982 fi
49983
49984 COND_TOOLKIT_MAC_USE_GUI_1="#"
49985 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49986 COND_TOOLKIT_MAC_USE_GUI_1=""
49987 fi
49988
49989 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49990 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49991 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49992 fi
49993
49994 COND_TOOLKIT_MGL="#"
49995 if test "x$TOOLKIT" = "xMGL" ; then
49996 COND_TOOLKIT_MGL=""
49997 fi
49998
49999 COND_TOOLKIT_MGL_USE_GUI_1="#"
50000 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50001 COND_TOOLKIT_MGL_USE_GUI_1=""
50002 fi
50003
50004 COND_TOOLKIT_MOTIF="#"
50005 if test "x$TOOLKIT" = "xMOTIF" ; then
50006 COND_TOOLKIT_MOTIF=""
50007 fi
50008
50009 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
50010 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
50011 COND_TOOLKIT_MOTIF_USE_GUI_1=""
50012 fi
50013
50014 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
50015 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50016 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
50017 fi
50018
50019 COND_TOOLKIT_MSW="#"
50020 if test "x$TOOLKIT" = "xMSW" ; then
50021 COND_TOOLKIT_MSW=""
50022 fi
50023
50024 COND_TOOLKIT_MSW_USE_GUI_1="#"
50025 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
50026 COND_TOOLKIT_MSW_USE_GUI_1=""
50027 fi
50028
50029 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
50030 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50031 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
50032 fi
50033
0ee4059d
DE
50034 COND_TOOLKIT_MSW_WXUNIV_0="#"
50035 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50036 COND_TOOLKIT_MSW_WXUNIV_0=""
50037 fi
50038
a848cd7e
SC
50039 COND_TOOLKIT_PM="#"
50040 if test "x$TOOLKIT" = "xPM" ; then
50041 COND_TOOLKIT_PM=""
50042 fi
50043
50044 COND_TOOLKIT_PM_USE_GUI_1="#"
50045 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
50046 COND_TOOLKIT_PM_USE_GUI_1=""
50047 fi
50048
50049 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
50050 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50051 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
50052 fi
50053
3fd9c298
DE
50054 COND_TOOLKIT_WINCE="#"
50055 if test "x$TOOLKIT" = "xWINCE" ; then
50056 COND_TOOLKIT_WINCE=""
50057 fi
50058
50059 COND_TOOLKIT_WINCE_USE_GUI_1="#"
50060 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
50061 COND_TOOLKIT_WINCE_USE_GUI_1=""
50062 fi
50063
50064 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
50065 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50066 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
50067 fi
50068
0ee4059d
DE
50069 COND_TOOLKIT_WINCE_WXUNIV_0="#"
50070 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
50071 COND_TOOLKIT_WINCE_WXUNIV_0=""
50072 fi
50073
a848cd7e
SC
50074 COND_TOOLKIT_X11="#"
50075 if test "x$TOOLKIT" = "xX11" ; then
50076 COND_TOOLKIT_X11=""
50077 fi
50078
50079 COND_TOOLKIT_X11_USE_GUI_1="#"
50080 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
50081 COND_TOOLKIT_X11_USE_GUI_1=""
50082 fi
50083
50084 COND_UNICODE_1="#"
50085 if test "x$UNICODE" = "x1" ; then
50086 COND_UNICODE_1=""
50087 fi
50088
50089 COND_USE_EXCEPTIONS_0="#"
50090 if test "x$USE_EXCEPTIONS" = "x0" ; then
50091 COND_USE_EXCEPTIONS_0=""
50092 fi
50093
50094 COND_USE_EXCEPTIONS_1="#"
50095 if test "x$USE_EXCEPTIONS" = "x1" ; then
50096 COND_USE_EXCEPTIONS_1=""
50097 fi
50098
50099 COND_USE_GUI_0="#"
50100 if test "x$USE_GUI" = "x0" ; then
50101 COND_USE_GUI_0=""
50102 fi
50103
50104 COND_USE_GUI_1="#"
50105 if test "x$USE_GUI" = "x1" ; then
50106 COND_USE_GUI_1=""
50107 fi
50108
50109 COND_USE_GUI_1_WXUNIV_0="#"
50110 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50111 COND_USE_GUI_1_WXUNIV_0=""
50112 fi
50113
50114 COND_USE_GUI_1_WXUNIV_1="#"
50115 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50116 COND_USE_GUI_1_WXUNIV_1=""
50117 fi
50118
50119 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50120 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50121 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50122 fi
50123
50124 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50125 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50126 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50127 fi
50128
50129 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50130 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50131 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50132 fi
50133
083508af
MW
50134 COND_USE_ODBC_1="#"
50135 if test "x$USE_ODBC" = "x1" ; then
50136 COND_USE_ODBC_1=""
50137 fi
50138
50139 COND_USE_OPENGL_1="#"
50140 if test "x$USE_OPENGL" = "x1" ; then
50141 COND_USE_OPENGL_1=""
50142 fi
50143
f10e38c4
VZ
50144 COND_USE_PCH_1="#"
50145 if test "x$USE_PCH" = "x1" ; then
50146 COND_USE_PCH_1=""
50147 fi
50148
a848cd7e
SC
50149 COND_USE_PLUGINS_0="#"
50150 if test "x$USE_PLUGINS" = "x0" ; then
50151 COND_USE_PLUGINS_0=""
50152 fi
50153
0b78747f
MW
50154 COND_USE_RTTI_0="#"
50155 if test "x$USE_RTTI" = "x0" ; then
50156 COND_USE_RTTI_0=""
50157 fi
50158
50159 COND_USE_RTTI_1="#"
50160 if test "x$USE_RTTI" = "x1" ; then
50161 COND_USE_RTTI_1=""
50162 fi
50163
a848cd7e
SC
50164 COND_USE_SOSYMLINKS_1="#"
50165 if test "x$USE_SOSYMLINKS" = "x1" ; then
50166 COND_USE_SOSYMLINKS_1=""
50167 fi
50168
eb730a0c
JS
50169 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50170 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50171 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50172 fi
50173
a848cd7e
SC
50174 COND_USE_SOVERLINUX_1="#"
50175 if test "x$USE_SOVERLINUX" = "x1" ; then
50176 COND_USE_SOVERLINUX_1=""
50177 fi
50178
50179 COND_USE_SOVERSION_0="#"
50180 if test "x$USE_SOVERSION" = "x0" ; then
50181 COND_USE_SOVERSION_0=""
50182 fi
50183
50184 COND_USE_SOVERSOLARIS_1="#"
50185 if test "x$USE_SOVERSOLARIS" = "x1" ; then
50186 COND_USE_SOVERSOLARIS_1=""
50187 fi
50188
0b78747f
MW
50189 COND_USE_THREADS_0="#"
50190 if test "x$USE_THREADS" = "x0" ; then
50191 COND_USE_THREADS_0=""
50192 fi
50193
50194 COND_USE_THREADS_1="#"
50195 if test "x$USE_THREADS" = "x1" ; then
50196 COND_USE_THREADS_1=""
50197 fi
50198
a13a7f89
RL
50199 COND_USE_XRC_1="#"
50200 if test "x$USE_XRC" = "x1" ; then
50201 COND_USE_XRC_1=""
50202 fi
50203
eb730a0c
JS
50204 COND_WINDOWS_IMPLIB_1="#"
50205 if test "x$WINDOWS_IMPLIB" = "x1" ; then
50206 COND_WINDOWS_IMPLIB_1=""
50207 fi
50208
a848cd7e
SC
50209 COND_WITH_PLUGIN_SDL_1="#"
50210 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50211 COND_WITH_PLUGIN_SDL_1=""
50212 fi
50213
1e6eb025
VZ
50214 COND_WXUNIV_0="#"
50215 if test "x$WXUNIV" = "x0" ; then
50216 COND_WXUNIV_0=""
50217 fi
50218
a848cd7e
SC
50219 COND_WXUNIV_1="#"
50220 if test "x$WXUNIV" = "x1" ; then
50221 COND_WXUNIV_1=""
50222 fi
50223
50224 COND_WXUSE_EXPAT_BUILTIN="#"
50225 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50226 COND_WXUSE_EXPAT_BUILTIN=""
50227 fi
50228
50229 COND_WXUSE_LIBJPEG_BUILTIN="#"
50230 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50231 COND_WXUSE_LIBJPEG_BUILTIN=""
50232 fi
50233
50234 COND_WXUSE_LIBPNG_BUILTIN="#"
50235 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50236 COND_WXUSE_LIBPNG_BUILTIN=""
50237 fi
50238
50239 COND_WXUSE_LIBTIFF_BUILTIN="#"
50240 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50241 COND_WXUSE_LIBTIFF_BUILTIN=""
50242 fi
50243
50244 COND_WXUSE_ODBC_BUILTIN="#"
50245 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
50246 COND_WXUSE_ODBC_BUILTIN=""
50247 fi
50248
50249 COND_WXUSE_REGEX_BUILTIN="#"
50250 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50251 COND_WXUSE_REGEX_BUILTIN=""
50252 fi
50253
50254 COND_WXUSE_ZLIB_BUILTIN="#"
50255 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50256 COND_WXUSE_ZLIB_BUILTIN=""
50257 fi
50258
50259
50260
810b94f0
MW
50261 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50262 { { 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
50263echo "$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;}
50264 { (exit 1); exit 1; }; }
50265 fi
50266
2057db16
VS
50267 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50268 { { 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
50269echo "$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;}
50270 { (exit 1); exit 1; }; }
50271 fi
50272
a848cd7e 50273
a81d5bb6
MW
50274if test $GCC_PCH = 1
50275then
50276 if test "$wx_cv_gcc_pch_bug" = yes; then
50277 { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50278echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50279 { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50280echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50281 { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50282echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50283 fi
50284
50285 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
50286fi
50287
7afc46ab
KO
50288
50289if test "$wxUSE_MAC" = 1 ; then
95768535 50290 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
50291 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50292 mv temp bk-deps
50293 chmod +x bk-deps
50294 fi
50295fi
50296
ceec2216
RL
50297if test "$wxUSE_SHARED" = "yes"; then
50298
50299 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
50300 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
50301
5b674b9d
DE
50302 case "${host}" in
50303 *-pc-os2_emx | *-pc-os2-emx )
50304 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50305 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
ec3edcc9
VZ
50306 cp -p ${srcdir}/src/os2/dllnames.sh .
50307 cp -p ${srcdir}/src/os2/dllar.sh .
5b674b9d
DE
50308 ;;
50309 esac
ceec2216
RL
50310else
50311
50312 EXE_LINKER="$CXX -o"
50313
50314fi
69120ee4
VZ
50315if test "$wxUSE_OMF" = "yes"; then
50316 case "${host}" in
50317 *-pc-os2_emx | *-pc-os2-emx )
50318 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50319 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50320 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50321 ;;
50322 esac
50323fi
a848cd7e 50324
5ff751d6 50325WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
50326
50327SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50328
50329
50330
50331
50332
50333
50334
50335
50336
50337
50338
50339
50340
50341
50342
50343
50344
50345
50346
50347
50348
50349
50350
50351
50352
50353
50354
50355
50356
50357
50358
50359
50360
50361
50362
50363
50364
50365
50366
50367
50368
50369
a848cd7e
SC
50370
50371
50372
50373
50374
50375
50376
50377
50378
50379
50380
50381
a848cd7e
SC
50382
50383
ddd14b14 50384
370d2fd7 50385
8ced02f6 50386
a848cd7e
SC
50387
50388
50389echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50390echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 50391set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
50392if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
50393 echo $ECHO_N "(cached) $ECHO_C" >&6
50394else
50395 cat >conftest.make <<\_ACEOF
50396all:
50397 @echo 'ac_maketemp="$(MAKE)"'
50398_ACEOF
50399# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50400eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
50401if test -n "$ac_maketemp"; then
50402 eval ac_cv_prog_make_${ac_make}_set=yes
50403else
50404 eval ac_cv_prog_make_${ac_make}_set=no
50405fi
50406rm -f conftest.make
50407fi
50408if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
50409 echo "$as_me:$LINENO: result: yes" >&5
50410echo "${ECHO_T}yes" >&6
50411 SET_MAKE=
50412else
50413 echo "$as_me:$LINENO: result: no" >&5
50414echo "${ECHO_T}no" >&6
50415 SET_MAKE="MAKE=${MAKE-make}"
50416fi
50417
50418
a848cd7e 50419
ceec2216
RL
50420 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50421
a848cd7e 50422
5c60e845
MW
50423if test "$USE_WIN32" = 1; then
50424 ac_config_commands="$ac_config_commands
50425 rcdefs.h
50426 "
50427
50428fi
50429
ceec2216 50430 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 50431
a848cd7e 50432
ceec2216 50433 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 50434
ceec2216 50435
2dbd07cb
VZ
50436if test "$wx_cv_version_script" = "yes"; then
50437 ac_config_files="$ac_config_files version-script"
50438
50439fi
50440 ac_config_files="$ac_config_files Makefile"
ceec2216
RL
50441
50442
5c60e845 50443 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
50444
50445
9103d280 50446
1c14217d 50447if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
50448if test "$wxUSE_GUI" = "yes"; then
50449 SUBDIRS="samples demos utils contrib"
50450else SUBDIRS="samples utils"
50451fi
50452
50453
50454
50455# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
50456if test "${with_cppunit_prefix+set}" = set; then
50457 withval="$with_cppunit_prefix"
50458 cppunit_config_prefix="$withval"
50459else
50460 cppunit_config_prefix=""
50461fi;
50462
50463# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
50464if test "${with_cppunit_exec_prefix+set}" = set; then
50465 withval="$with_cppunit_exec_prefix"
50466 cppunit_config_exec_prefix="$withval"
50467else
50468 cppunit_config_exec_prefix=""
50469fi;
50470
50471 if test x$cppunit_config_exec_prefix != x ; then
50472 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50473 if test x${CPPUNIT_CONFIG+set} != xset ; then
50474 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50475 fi
50476 fi
50477 if test x$cppunit_config_prefix != x ; then
50478 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50479 if test x${CPPUNIT_CONFIG+set} != xset ; then
50480 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50481 fi
50482 fi
50483
50484 # Extract the first word of "cppunit-config", so it can be a program name with args.
50485set dummy cppunit-config; ac_word=$2
50486echo "$as_me:$LINENO: checking for $ac_word" >&5
50487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
50488if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50489 echo $ECHO_N "(cached) $ECHO_C" >&6
50490else
50491 case $CPPUNIT_CONFIG in
50492 [\\/]* | ?:[\\/]*)
50493 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50494 ;;
50495 *)
50496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50497for as_dir in $PATH
50498do
50499 IFS=$as_save_IFS
50500 test -z "$as_dir" && as_dir=.
50501 for ac_exec_ext in '' $ac_executable_extensions; do
50502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50503 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50505 break 2
50506 fi
50507done
50508done
50509
50510 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50511 ;;
50512esac
50513fi
50514CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50515
50516if test -n "$CPPUNIT_CONFIG"; then
50517 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50518echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
50519else
50520 echo "$as_me:$LINENO: result: no" >&5
50521echo "${ECHO_T}no" >&6
50522fi
50523
50524 cppunit_version_min=1.8.0
50525
50526 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50527echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
50528 no_cppunit=""
50529 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
50530 echo "$as_me:$LINENO: result: no" >&5
50531echo "${ECHO_T}no" >&6
a848cd7e
SC
50532 no_cppunit=yes
50533 else
50534 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50535 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50536 cppunit_version=`$CPPUNIT_CONFIG --version`
50537
50538 cppunit_major_version=`echo $cppunit_version | \
50539 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50540 cppunit_minor_version=`echo $cppunit_version | \
50541 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50542 cppunit_micro_version=`echo $cppunit_version | \
50543 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50544
50545 cppunit_major_min=`echo $cppunit_version_min | \
50546 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50547 cppunit_minor_min=`echo $cppunit_version_min | \
50548 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50549 cppunit_micro_min=`echo $cppunit_version_min | \
50550 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50551
50552 cppunit_version_proper=`expr \
50553 $cppunit_major_version \> $cppunit_major_min \| \
50554 $cppunit_major_version \= $cppunit_major_min \& \
50555 $cppunit_minor_version \> $cppunit_minor_min \| \
50556 $cppunit_major_version \= $cppunit_major_min \& \
50557 $cppunit_minor_version \= $cppunit_minor_min \& \
50558 $cppunit_micro_version \>= $cppunit_micro_min `
50559
50560 if test "$cppunit_version_proper" = "1" ; then
50561 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50562echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
50563 else
50564 echo "$as_me:$LINENO: result: no" >&5
50565echo "${ECHO_T}no" >&6
50566 no_cppunit=yes
50567 fi
50568 fi
50569
50570 if test "x$no_cppunit" = x ; then
c2218763 50571 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
50572 else
50573 CPPUNIT_CFLAGS=""
50574 CPPUNIT_LIBS=""
c2218763 50575 :
a848cd7e
SC
50576 fi
50577
50578
50579
50580
50581
74d92aac
VZ
50582if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
50583 DISABLED_CONTRIB="$DISABLED_CONTRIB net"
50584fi
50585
a848cd7e
SC
50586for subdir in `echo $SUBDIRS`; do
50587 if test -d ${srcdir}/${subdir} ; then
50588 if test "$wxUSE_GUI" = "yes"; then
50589 if test ${subdir} = "samples"; then
50590 makefiles="samples/Makefile.in $makefiles"
50591 for sample in `echo $SAMPLES_SUBDIRS`; do
50592 if test -d $srcdir/samples/$sample; then
50593 makefiles="samples/$sample/Makefile.in $makefiles"
50594 fi
50595 done
9c112555
MW
50596 else
50597 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
50598 eval "disabled=\$$disabled_var"
50599 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50600 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
50601 fi
50602 else if test ${subdir} = "samples"; then
50603 makefiles="samples/Makefile.in samples/console/Makefile.in"
50604 elif test ${subdir} = "utils"; then
6537ccf8
VS
50605 makefiles=""
50606 for util in HelpGen tex2rtf ; do
50607 if test -d $srcdir/utils/$util ; then
50608 makefiles="utils/$util/Makefile.in \
50609 utils/$util/src/Makefile.in \
50610 $makefiles"
50611 fi
50612 done
a848cd7e
SC
50613 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50614 fi
50615 fi
50616
50617 for mkin in $makefiles ; do
50618 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50619 ac_config_files="$ac_config_files $mk"
50620
50621 done
50622 fi
50623done
1c14217d 50624fi
a848cd7e
SC
50625cat >confcache <<\_ACEOF
50626# This file is a shell script that caches the results of configure
50627# tests run on this system so they can be shared between configure
50628# scripts and configure runs, see configure's option --config-cache.
50629# It is not useful on other systems. If it contains results you don't
50630# want to keep, you may remove or edit it.
50631#
50632# config.status only pays attention to the cache file if you give it
50633# the --recheck option to rerun configure.
50634#
50635# `ac_cv_env_foo' variables (set or unset) will be overridden when
50636# loading this file, other *unset* `ac_cv_foo' will be assigned the
50637# following values.
50638
50639_ACEOF
50640
50641# The following way of writing the cache mishandles newlines in values,
50642# but we know of no workaround that is simple, portable, and efficient.
50643# So, don't put newlines in cache variables' values.
50644# Ultrix sh set writes to stderr and can't be redirected directly,
50645# and sets the high bit in the cache file unless we assign to the vars.
50646{
50647 (set) 2>&1 |
50648 case `(ac_space=' '; set | grep ac_space) 2>&1` in
50649 *ac_space=\ *)
50650 # `set' does not quote correctly, so add quotes (double-quote
50651 # substitution turns \\\\ into \\, and sed turns \\ into \).
50652 sed -n \
ac1cb8d3
VS
50653 "s/'/'\\\\''/g;
50654 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
50655 ;;
50656 *)
50657 # `set' quotes correctly as required by POSIX, so do not add quotes.
50658 sed -n \
ac1cb8d3 50659 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
50660 ;;
50661 esac;
50662} |
50663 sed '
50664 t clear
50665 : clear
50666 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50667 t end
50668 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50669 : end' >>confcache
50670if diff $cache_file confcache >/dev/null 2>&1; then :; else
50671 if test -w $cache_file; then
50672 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
50673 cat confcache >$cache_file
50674 else
50675 echo "not updating unwritable cache $cache_file"
50676 fi
50677fi
50678rm -f confcache
50679
50680test "x$prefix" = xNONE && prefix=$ac_default_prefix
50681# Let make expand exec_prefix.
50682test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50683
50684# VPATH may cause trouble with some makes, so we remove $(srcdir),
50685# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
50686# trailing colons and then remove the whole line if VPATH becomes empty
50687# (actually we leave an empty line to preserve line numbers).
50688if test "x$srcdir" = x.; then
ac1cb8d3 50689 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
50690s/:*\$(srcdir):*/:/;
50691s/:*\${srcdir}:*/:/;
50692s/:*@srcdir@:*/:/;
ac1cb8d3 50693s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 50694s/:*$//;
ac1cb8d3 50695s/^[^=]*=[ ]*$//;
a848cd7e
SC
50696}'
50697fi
50698
50699DEFS=-DHAVE_CONFIG_H
50700
50701ac_libobjs=
50702ac_ltlibobjs=
50703for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50704 # 1. Remove the extension, and $U if already installed.
50705 ac_i=`echo "$ac_i" |
ac1cb8d3 50706 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
50707 # 2. Add them.
50708 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
50709 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
50710done
50711LIBOBJS=$ac_libobjs
50712
50713LTLIBOBJS=$ac_ltlibobjs
50714
50715
50716
50717: ${CONFIG_STATUS=./config.status}
50718ac_clean_files_save=$ac_clean_files
50719ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50720{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50721echo "$as_me: creating $CONFIG_STATUS" >&6;}
50722cat >$CONFIG_STATUS <<_ACEOF
50723#! $SHELL
50724# Generated by $as_me.
50725# Run this file to recreate the current configuration.
50726# Compiler output produced by configure, useful for debugging
50727# configure, is in config.log if it exists.
50728
50729debug=false
50730ac_cs_recheck=false
50731ac_cs_silent=false
50732SHELL=\${CONFIG_SHELL-$SHELL}
50733_ACEOF
50734
50735cat >>$CONFIG_STATUS <<\_ACEOF
50736## --------------------- ##
50737## M4sh Initialization. ##
50738## --------------------- ##
50739
50740# Be Bourne compatible
50741if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50742 emulate sh
50743 NULLCMD=:
50744 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50745 # is contrary to our usage. Disable this feature.
50746 alias -g '${1+"$@"}'='"$@"'
50747elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
50748 set -o posix
50749fi
ac1cb8d3 50750DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
50751
50752# Support unset when possible.
ac1cb8d3 50753if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
50754 as_unset=unset
50755else
50756 as_unset=false
50757fi
50758
50759
50760# Work around bugs in pre-3.0 UWIN ksh.
50761$as_unset ENV MAIL MAILPATH
50762PS1='$ '
50763PS2='> '
50764PS4='+ '
50765
50766# NLS nuisances.
50767for as_var in \
50768 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50769 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50770 LC_TELEPHONE LC_TIME
50771do
ac1cb8d3 50772 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
50773 eval $as_var=C; export $as_var
50774 else
50775 $as_unset $as_var
50776 fi
50777done
50778
50779# Required to use basename.
50780if expr a : '\(a\)' >/dev/null 2>&1; then
50781 as_expr=expr
50782else
50783 as_expr=false
50784fi
50785
50786if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
50787 as_basename=basename
50788else
50789 as_basename=false
50790fi
50791
50792
50793# Name of the executable.
50794as_me=`$as_basename "$0" ||
50795$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50796 X"$0" : 'X\(//\)$' \| \
50797 X"$0" : 'X\(/\)$' \| \
50798 . : '\(.\)' 2>/dev/null ||
50799echo X/"$0" |
50800 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
50801 /^X\/\(\/\/\)$/{ s//\1/; q; }
50802 /^X\/\(\/\).*/{ s//\1/; q; }
50803 s/.*/./; q'`
50804
50805
50806# PATH needs CR, and LINENO needs CR and PATH.
50807# Avoid depending upon Character Ranges.
50808as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50809as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50810as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50811as_cr_digits='0123456789'
50812as_cr_alnum=$as_cr_Letters$as_cr_digits
50813
50814# The user is always right.
50815if test "${PATH_SEPARATOR+set}" != set; then
50816 echo "#! /bin/sh" >conf$$.sh
50817 echo "exit 0" >>conf$$.sh
50818 chmod +x conf$$.sh
50819 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50820 PATH_SEPARATOR=';'
50821 else
50822 PATH_SEPARATOR=:
50823 fi
50824 rm -f conf$$.sh
50825fi
50826
50827
50828 as_lineno_1=$LINENO
50829 as_lineno_2=$LINENO
50830 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50831 test "x$as_lineno_1" != "x$as_lineno_2" &&
50832 test "x$as_lineno_3" = "x$as_lineno_2" || {
50833 # Find who we are. Look in the path if we contain no path at all
50834 # relative or not.
50835 case $0 in
50836 *[\\/]* ) as_myself=$0 ;;
50837 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50838for as_dir in $PATH
50839do
50840 IFS=$as_save_IFS
50841 test -z "$as_dir" && as_dir=.
50842 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50843done
50844
50845 ;;
50846 esac
50847 # We did not find ourselves, most probably we were run as `sh COMMAND'
50848 # in which case we are not to be found in the path.
50849 if test "x$as_myself" = x; then
50850 as_myself=$0
50851 fi
50852 if test ! -f "$as_myself"; then
50853 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
50854echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
50855 { (exit 1); exit 1; }; }
50856 fi
50857 case $CONFIG_SHELL in
50858 '')
50859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50860for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
50861do
50862 IFS=$as_save_IFS
50863 test -z "$as_dir" && as_dir=.
50864 for as_base in sh bash ksh sh5; do
50865 case $as_dir in
50866 /*)
50867 if ("$as_dir/$as_base" -c '
50868 as_lineno_1=$LINENO
50869 as_lineno_2=$LINENO
50870 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50871 test "x$as_lineno_1" != "x$as_lineno_2" &&
50872 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
50873 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
50874 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
50875 CONFIG_SHELL=$as_dir/$as_base
50876 export CONFIG_SHELL
50877 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
50878 fi;;
50879 esac
50880 done
50881done
50882;;
50883 esac
50884
50885 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50886 # uniformly replaced by the line number. The first 'sed' inserts a
50887 # line-number line before each line; the second 'sed' does the real
50888 # work. The second script uses 'N' to pair each line-number line
50889 # with the numbered line, and appends trailing '-' during
50890 # substitution so that $LINENO is not a special case at line end.
50891 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50892 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
50893 sed '=' <$as_myself |
50894 sed '
50895 N
50896 s,$,-,
50897 : loop
50898 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
50899 t loop
50900 s,-$,,
50901 s,^['$as_cr_digits']*\n,,
50902 ' >$as_me.lineno &&
50903 chmod +x $as_me.lineno ||
50904 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
50905echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
50906 { (exit 1); exit 1; }; }
50907
50908 # Don't try to exec as it changes $[0], causing all sort of problems
50909 # (the dirname of $[0] is not the place where we might find the
50910 # original and so on. Autoconf is especially sensible to this).
50911 . ./$as_me.lineno
50912 # Exit status is that of the last command.
50913 exit
50914}
50915
50916
50917case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
50918 *c*,-n*) ECHO_N= ECHO_C='
50919' ECHO_T=' ' ;;
50920 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
50921 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
50922esac
50923
50924if expr a : '\(a\)' >/dev/null 2>&1; then
50925 as_expr=expr
50926else
50927 as_expr=false
50928fi
50929
50930rm -f conf$$ conf$$.exe conf$$.file
50931echo >conf$$.file
50932if ln -s conf$$.file conf$$ 2>/dev/null; then
50933 # We could just check for DJGPP; but this test a) works b) is more generic
50934 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
50935 if test -f conf$$.exe; then
50936 # Don't use ln at all; we don't have any links
50937 as_ln_s='cp -p'
50938 else
50939 as_ln_s='ln -s'
50940 fi
50941elif ln conf$$.file conf$$ 2>/dev/null; then
50942 as_ln_s=ln
50943else
50944 as_ln_s='cp -p'
50945fi
50946rm -f conf$$ conf$$.exe conf$$.file
50947
50948if mkdir -p . 2>/dev/null; then
50949 as_mkdir_p=:
50950else
ac1cb8d3 50951 test -d ./-p && rmdir ./-p
a848cd7e
SC
50952 as_mkdir_p=false
50953fi
50954
50955as_executable_p="test -f"
50956
50957# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 50958as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50959
50960# Sed expression to map a string onto a valid variable name.
ac1cb8d3 50961as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50962
50963
50964# IFS
50965# We need space, tab and new line, in precisely that order.
50966as_nl='
50967'
50968IFS=" $as_nl"
50969
50970# CDPATH.
50971$as_unset CDPATH
50972
50973exec 6>&1
50974
50975# Open the log real soon, to keep \$[0] and so on meaningful, and to
50976# report actual input values of CONFIG_FILES etc. instead of their
50977# values after options handling. Logging --version etc. is OK.
50978exec 5>>config.log
50979{
50980 echo
50981 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50982## Running $as_me. ##
50983_ASBOX
50984} >&5
50985cat >&5 <<_CSEOF
50986
25bb1412 50987This file was extended by wxWidgets $as_me 2.8.0, which was
ac1cb8d3 50988generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
50989
50990 CONFIG_FILES = $CONFIG_FILES
50991 CONFIG_HEADERS = $CONFIG_HEADERS
50992 CONFIG_LINKS = $CONFIG_LINKS
50993 CONFIG_COMMANDS = $CONFIG_COMMANDS
50994 $ $0 $@
50995
50996_CSEOF
50997echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
50998echo >&5
50999_ACEOF
51000
51001# Files that config.status was made for.
51002if test -n "$ac_config_files"; then
51003 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51004fi
51005
51006if test -n "$ac_config_headers"; then
51007 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51008fi
51009
51010if test -n "$ac_config_links"; then
51011 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51012fi
51013
51014if test -n "$ac_config_commands"; then
51015 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51016fi
51017
51018cat >>$CONFIG_STATUS <<\_ACEOF
51019
51020ac_cs_usage="\
51021\`$as_me' instantiates files from templates according to the
51022current configuration.
51023
51024Usage: $0 [OPTIONS] [FILE]...
51025
51026 -h, --help print this help, then exit
51027 -V, --version print version number, then exit
51028 -q, --quiet do not print progress messages
51029 -d, --debug don't remove temporary files
51030 --recheck update $as_me by reconfiguring in the same conditions
51031 --file=FILE[:TEMPLATE]
ac1cb8d3 51032 instantiate the configuration file FILE
a848cd7e 51033 --header=FILE[:TEMPLATE]
ac1cb8d3 51034 instantiate the configuration header FILE
a848cd7e
SC
51035
51036Configuration files:
51037$config_files
51038
51039Configuration headers:
51040$config_headers
51041
51042Configuration commands:
51043$config_commands
51044
51045Report bugs to <bug-autoconf@gnu.org>."
51046_ACEOF
51047
51048cat >>$CONFIG_STATUS <<_ACEOF
51049ac_cs_version="\\
25bb1412 51050wxWidgets config.status 2.8.0
ac1cb8d3 51051configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
51052 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51053
ac1cb8d3 51054Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
51055This config.status script is free software; the Free Software Foundation
51056gives unlimited permission to copy, distribute and modify it."
51057srcdir=$srcdir
51058INSTALL="$INSTALL"
51059_ACEOF
51060
51061cat >>$CONFIG_STATUS <<\_ACEOF
51062# If no file are specified by the user, then we need to provide default
51063# value. By we need to know if files were specified by the user.
51064ac_need_defaults=:
51065while test $# != 0
51066do
51067 case $1 in
51068 --*=*)
51069 ac_option=`expr "x$1" : 'x\([^=]*\)='`
51070 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51071 ac_shift=:
51072 ;;
51073 -*)
51074 ac_option=$1
51075 ac_optarg=$2
51076 ac_shift=shift
51077 ;;
51078 *) # This is not an option, so the user has probably given explicit
51079 # arguments.
51080 ac_option=$1
51081 ac_need_defaults=false;;
51082 esac
51083
51084 case $ac_option in
51085 # Handling of the options.
51086_ACEOF
51087cat >>$CONFIG_STATUS <<\_ACEOF
51088 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51089 ac_cs_recheck=: ;;
51090 --version | --vers* | -V )
51091 echo "$ac_cs_version"; exit 0 ;;
51092 --he | --h)
51093 # Conflict between --help and --header
51094 { { echo "$as_me:$LINENO: error: ambiguous option: $1
51095Try \`$0 --help' for more information." >&5
51096echo "$as_me: error: ambiguous option: $1
51097Try \`$0 --help' for more information." >&2;}
51098 { (exit 1); exit 1; }; };;
51099 --help | --hel | -h )
51100 echo "$ac_cs_usage"; exit 0 ;;
51101 --debug | --d* | -d )
51102 debug=: ;;
51103 --file | --fil | --fi | --f )
51104 $ac_shift
51105 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51106 ac_need_defaults=false;;
51107 --header | --heade | --head | --hea )
51108 $ac_shift
51109 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51110 ac_need_defaults=false;;
51111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51112 | -silent | --silent | --silen | --sile | --sil | --si | --s)
51113 ac_cs_silent=: ;;
51114
51115 # This is an error.
51116 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51117Try \`$0 --help' for more information." >&5
51118echo "$as_me: error: unrecognized option: $1
51119Try \`$0 --help' for more information." >&2;}
51120 { (exit 1); exit 1; }; } ;;
51121
51122 *) ac_config_targets="$ac_config_targets $1" ;;
51123
51124 esac
51125 shift
51126done
51127
51128ac_configure_extra_args=
51129
51130if $ac_cs_silent; then
51131 exec 6>/dev/null
51132 ac_configure_extra_args="$ac_configure_extra_args --silent"
51133fi
51134
51135_ACEOF
51136cat >>$CONFIG_STATUS <<_ACEOF
51137if \$ac_cs_recheck; then
51138 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51139 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51140fi
51141
51142_ACEOF
51143
51144cat >>$CONFIG_STATUS <<_ACEOF
51145#
51146# INIT-COMMANDS section.
51147#
51148
5c60e845
MW
51149
51150 CPP="$CPP"
51151 infile="$srcdir/include/wx/msw/genrcdefs.h"
51152 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51153
51154
ceec2216
RL
51155 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51156 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51157 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51158 LN_S="${LN_S}"
a848cd7e
SC
51159
51160
51161_ACEOF
51162
51163
51164
51165cat >>$CONFIG_STATUS <<\_ACEOF
51166for ac_config_target in $ac_config_targets
51167do
51168 case "$ac_config_target" in
51169 # Handling of arguments.
ceec2216
RL
51170 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51171 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
51172 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
51173 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51174 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 51175 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
51176 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51177 "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
51178 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51179echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51180 { (exit 1); exit 1; }; };;
51181 esac
51182done
51183
51184# If the user did not use the arguments to specify the items to instantiate,
51185# then the envvar interface is used. Set only those that are not.
51186# We use the long form for the default assignment because of an extremely
51187# bizarre bug on SunOS 4.1.3.
51188if $ac_need_defaults; then
51189 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51190 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51191 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51192fi
51193
51194# Have a temporary directory for convenience. Make it in the build tree
51195# simply because there is no reason to put it here, and in addition,
51196# creating and moving files from /tmp can sometimes cause problems.
51197# Create a temporary directory, and hook for its removal unless debugging.
51198$debug ||
51199{
51200 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51201 trap '{ (exit 1); exit 1; }' 1 2 13 15
51202}
51203
51204# Create a (secure) tmp directory for tmp files.
51205
51206{
51207 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51208 test -n "$tmp" && test -d "$tmp"
51209} ||
51210{
51211 tmp=./confstat$$-$RANDOM
51212 (umask 077 && mkdir $tmp)
51213} ||
51214{
51215 echo "$me: cannot create a temporary directory in ." >&2
51216 { (exit 1); exit 1; }
51217}
51218
51219_ACEOF
51220
51221cat >>$CONFIG_STATUS <<_ACEOF
51222
51223#
51224# CONFIG_FILES section.
51225#
51226
51227# No need to generate the scripts if there are no CONFIG_FILES.
51228# This happens for instance when ./config.status config.h
51229if test -n "\$CONFIG_FILES"; then
51230 # Protect against being on the right side of a sed subst in config.status.
51231 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51232 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51233s,@SHELL@,$SHELL,;t t
51234s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51235s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51236s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51237s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51238s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51239s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51240s,@exec_prefix@,$exec_prefix,;t t
51241s,@prefix@,$prefix,;t t
51242s,@program_transform_name@,$program_transform_name,;t t
51243s,@bindir@,$bindir,;t t
51244s,@sbindir@,$sbindir,;t t
51245s,@libexecdir@,$libexecdir,;t t
51246s,@datadir@,$datadir,;t t
51247s,@sysconfdir@,$sysconfdir,;t t
51248s,@sharedstatedir@,$sharedstatedir,;t t
51249s,@localstatedir@,$localstatedir,;t t
51250s,@libdir@,$libdir,;t t
51251s,@includedir@,$includedir,;t t
51252s,@oldincludedir@,$oldincludedir,;t t
51253s,@infodir@,$infodir,;t t
51254s,@mandir@,$mandir,;t t
51255s,@build_alias@,$build_alias,;t t
51256s,@host_alias@,$host_alias,;t t
51257s,@target_alias@,$target_alias,;t t
51258s,@DEFS@,$DEFS,;t t
51259s,@ECHO_C@,$ECHO_C,;t t
51260s,@ECHO_N@,$ECHO_N,;t t
51261s,@ECHO_T@,$ECHO_T,;t t
51262s,@LIBS@,$LIBS,;t t
51263s,@build@,$build,;t t
51264s,@build_cpu@,$build_cpu,;t t
51265s,@build_vendor@,$build_vendor,;t t
51266s,@build_os@,$build_os,;t t
51267s,@host@,$host,;t t
51268s,@host_cpu@,$host_cpu,;t t
51269s,@host_vendor@,$host_vendor,;t t
51270s,@host_os@,$host_os,;t t
51271s,@target@,$target,;t t
51272s,@target_cpu@,$target_cpu,;t t
51273s,@target_vendor@,$target_vendor,;t t
51274s,@target_os@,$target_os,;t t
02b05020 51275s,@wx_top_builddir@,$wx_top_builddir,;t t
a848cd7e
SC
51276s,@CC@,$CC,;t t
51277s,@CFLAGS@,$CFLAGS,;t t
51278s,@LDFLAGS@,$LDFLAGS,;t t
51279s,@CPPFLAGS@,$CPPFLAGS,;t t
51280s,@ac_ct_CC@,$ac_ct_CC,;t t
51281s,@EXEEXT@,$EXEEXT,;t t
51282s,@OBJEXT@,$OBJEXT,;t t
51283s,@CPP@,$CPP,;t t
51284s,@EGREP@,$EGREP,;t t
51285s,@CXX@,$CXX,;t t
51286s,@CXXFLAGS@,$CXXFLAGS,;t t
51287s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51288s,@RANLIB@,$RANLIB,;t t
51289s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51290s,@AR@,$AR,;t t
8c80d384 51291s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
51292s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51293s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51294s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51295s,@STRIP@,$STRIP,;t t
8c80d384 51296s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
51297s,@WINDRES@,$WINDRES,;t t
51298s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
51299s,@DLLTOOL@,$DLLTOOL,;t t
51300s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
51301s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
51302s,@LN_S@,$LN_S,;t t
51303s,@CXXCPP@,$CXXCPP,;t t
51304s,@subdirs@,$subdirs,;t t
51305s,@PKG_CONFIG@,$PKG_CONFIG,;t t
51306s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
51307s,@GTK_LIBS@,$GTK_LIBS,;t t
51308s,@GTK_CONFIG@,$GTK_CONFIG,;t t
b3c86150
VS
51309s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
51310s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
51311s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
a848cd7e
SC
51312s,@X_CFLAGS@,$X_CFLAGS,;t t
51313s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
51314s,@X_LIBS@,$X_LIBS,;t t
51315s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
51316s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
51317s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
51318s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
51319s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
51320s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
51321s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 51322s,@REZ@,$REZ,;t t
a848cd7e
SC
51323s,@DEREZ@,$DEREZ,;t t
51324s,@SETFILE@,$SETFILE,;t t
51325s,@LIBICONV@,$LIBICONV,;t t
51326s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
51327s,@SDL_CONFIG@,$SDL_CONFIG,;t t
51328s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
51329s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
51330s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
51331s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
51332s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
51333s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
51334s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
51335s,@HILDON_LIBS@,$HILDON_LIBS,;t t
64b75e64
RD
51336s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
51337s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
f10e38c4
VZ
51338s,@GST_CFLAGS@,$GST_CFLAGS,;t t
51339s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
51340s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
51341s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
51342s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
51343s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
51344s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
51345s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
51346s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
51347s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
51348s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
51349s,@VENDOR@,$VENDOR,;t t
51350s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
51351s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
51352s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
51353s,@WXUNIV@,$WXUNIV,;t t
51354s,@MONOLITHIC@,$MONOLITHIC,;t t
51355s,@USE_PLUGINS@,$USE_PLUGINS,;t t
51356s,@EXTRALIBS@,$EXTRALIBS,;t t
51357s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
51358s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
51359s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
51360s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
51361s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
51362s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
51363s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 51364s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 51365s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 51366s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
51367s,@UNICODE@,$UNICODE,;t t
51368s,@BUILD@,$BUILD,;t t
51369s,@DEBUG_INFO@,$DEBUG_INFO,;t t
51370s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
51371s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
51372s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
51373s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
51374s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
51375s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
51376s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
51377s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
51378s,@SET_MAKE@,$SET_MAKE,;t t
51379s,@MAKE_SET@,$MAKE_SET,;t t
a485900c 51380s,@AROPTIONS@,$AROPTIONS,;t t
a848cd7e
SC
51381s,@NM@,$NM,;t t
51382s,@ac_ct_NM@,$ac_ct_NM,;t t
51383s,@INSTALL_DIR@,$INSTALL_DIR,;t t
51384s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
51385s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
51386s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
51387s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
51388s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 51389s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
51390s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
51391s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 51392s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
51393s,@SO_SUFFIX@,$SO_SUFFIX,;t t
51394s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
51395s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
51396s,@LIBPREFIX@,$LIBPREFIX,;t t
51397s,@LIBEXT@,$LIBEXT,;t t
51398s,@DLLPREFIX@,$DLLPREFIX,;t t
51399s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 51400s,@dlldir@,$dlldir,;t t
a848cd7e
SC
51401s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
51402s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
51403s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
51404s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
51405s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
51406s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 51407s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
51408s,@USE_SOVERSION@,$USE_SOVERSION,;t t
51409s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
51410s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 51411s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
51412s,@USE_MACVERSION@,$USE_MACVERSION,;t t
51413s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
51414s,@SONAME_FLAG@,$SONAME_FLAG,;t t
51415s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
a485900c 51416s,@BK_DEPS@,$BK_DEPS,;t t
a848cd7e 51417s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 51418s,@ICC_PCH@,$ICC_PCH,;t t
a485900c 51419s,@BK_MAKE_PCH@,$BK_MAKE_PCH,;t t
a848cd7e
SC
51420s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
51421s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
51422s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
51423s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
51424s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
51425s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
51426s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
51427s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
51428s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
51429s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
51430s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
51431s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
51432s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
51433s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
51434s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 51435s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
51436s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
51437s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 51438s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 51439s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 51440s,@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 51441s,@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 51442s,@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 51443s,@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 51444s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 51445s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 51446s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 51447s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 51448s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 51449s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 51450s,@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 51451s,@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 51452s,@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 51453s,@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 51454s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 51455s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 51456s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 51457s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
51458s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
51459s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
51460s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
51461s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
51462s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
51463s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 51464s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
51465s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
51466s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 51467s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
51468s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
51469s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
51470s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 51471s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
ebee3cd0
VS
51472s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
51473s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
51474s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
51475s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 51476s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 51477s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 51478s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 51479s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
51480s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
51481s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
51482s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
3ad202f9
VZ
51483s,@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@,$COND_PLATFORM_UNIX_1_TOOLKIT_MGL,;t t
51484s,@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@,$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1,;t t
a848cd7e
SC
51485s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
51486s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
51487s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
51488s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
51489s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
51490s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
51491s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
51492s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
51493s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
51494s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51495s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51496s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 51497s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
51498s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
51499s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
51500s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
51501s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
51502s,@COND_SHARED_1@,$COND_SHARED_1,;t t
51503s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 51504s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 51505s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 51506s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 51507s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e 51508s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
b3c86150
VS
51509s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
51510s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
a848cd7e 51511s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
51512s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
51513s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
51514s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
51515s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
51516s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
51517s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 51518s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
51519s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
51520s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
51521s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
51522s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
51523s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
51524s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
51525s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
51526s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
51527s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
51528s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
51529s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 51530s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
51531s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
51532s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
51533s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
51534s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
51535s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
51536s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 51537s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
51538s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
51539s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
51540s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
51541s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
51542s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
51543s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
51544s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
51545s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
51546s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
51547s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51548s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51549s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
51550s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
51551s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 51552s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 51553s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
51554s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
51555s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 51556s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 51557s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
51558s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
51559s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
51560s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
51561s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
51562s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 51563s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 51564s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 51565s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 51566s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
51567s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
51568s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
51569s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
51570s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
51571s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
51572s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
51573s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
51574s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 51575s,@SHARED@,$SHARED,;t t
a848cd7e
SC
51576s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
51577s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
51578s,@USE_GUI@,$USE_GUI,;t t
51579s,@AFMINSTALL@,$AFMINSTALL,;t t
51580s,@WIN32INSTALL@,$WIN32INSTALL,;t t
51581s,@TOOLKIT@,$TOOLKIT,;t t
51582s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 51583s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 51584s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 51585s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
51586s,@WIDGET_SET@,$WIDGET_SET,;t t
51587s,@WX_RELEASE@,$WX_RELEASE,;t t
51588s,@WX_VERSION@,$WX_VERSION,;t t
51589s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
51590s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
51591s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
51592s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
51593s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
51594s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
51595s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
51596s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
51597s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 51598s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 51599s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 51600s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
51601s,@DISTDIR@,$DISTDIR,;t t
51602s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
51603s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
51604s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
51605s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
51606s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 51607s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
51608s,@RESFLAGS@,$RESFLAGS,;t t
51609s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
51610s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
51611s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
51612s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 51613s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 51614s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 51615s,@GCC@,$GCC,;t t
a848cd7e
SC
51616s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
51617s,@LIBOBJS@,$LIBOBJS,;t t
51618s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51619CEOF
51620
51621_ACEOF
51622
51623 cat >>$CONFIG_STATUS <<\_ACEOF
51624 # Split the substitutions into bite-sized pieces for seds with
51625 # small command number limits, like on Digital OSF/1 and HP-UX.
51626 ac_max_sed_lines=48
51627 ac_sed_frag=1 # Number of current file.
51628 ac_beg=1 # First line for current file.
51629 ac_end=$ac_max_sed_lines # Line after last line for current file.
51630 ac_more_lines=:
51631 ac_sed_cmds=
51632 while $ac_more_lines; do
51633 if test $ac_beg -gt 1; then
51634 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51635 else
51636 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51637 fi
51638 if test ! -s $tmp/subs.frag; then
51639 ac_more_lines=false
51640 else
51641 # The purpose of the label and of the branching condition is to
51642 # speed up the sed processing (if there are no `@' at all, there
51643 # is no need to browse any of the substitutions).
51644 # These are the two extra sed commands mentioned above.
51645 (echo ':t
51646 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
51647 if test -z "$ac_sed_cmds"; then
ac1cb8d3 51648 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 51649 else
ac1cb8d3 51650 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
51651 fi
51652 ac_sed_frag=`expr $ac_sed_frag + 1`
51653 ac_beg=$ac_end
51654 ac_end=`expr $ac_end + $ac_max_sed_lines`
51655 fi
51656 done
51657 if test -z "$ac_sed_cmds"; then
51658 ac_sed_cmds=cat
51659 fi
51660fi # test -n "$CONFIG_FILES"
51661
51662_ACEOF
51663cat >>$CONFIG_STATUS <<\_ACEOF
51664for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
51665 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51666 case $ac_file in
51667 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
51668 cat >$tmp/stdin
51669 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51670 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 51671 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 51672 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51673 * ) ac_file_in=$ac_file.in ;;
51674 esac
51675
51676 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
51677 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51678$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51679 X"$ac_file" : 'X\(//\)[^/]' \| \
51680 X"$ac_file" : 'X\(//\)$' \| \
51681 X"$ac_file" : 'X\(/\)' \| \
51682 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51683echo X"$ac_file" |
51684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51686 /^X\(\/\/\)$/{ s//\1/; q; }
51687 /^X\(\/\).*/{ s//\1/; q; }
51688 s/.*/./; q'`
51689 { if $as_mkdir_p; then
51690 mkdir -p "$ac_dir"
51691 else
51692 as_dir="$ac_dir"
51693 as_dirs=
51694 while test ! -d "$as_dir"; do
51695 as_dirs="$as_dir $as_dirs"
51696 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51697$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51698 X"$as_dir" : 'X\(//\)[^/]' \| \
51699 X"$as_dir" : 'X\(//\)$' \| \
51700 X"$as_dir" : 'X\(/\)' \| \
51701 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51702echo X"$as_dir" |
51703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51705 /^X\(\/\/\)$/{ s//\1/; q; }
51706 /^X\(\/\).*/{ s//\1/; q; }
51707 s/.*/./; q'`
51708 done
51709 test ! -n "$as_dirs" || mkdir $as_dirs
51710 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51711echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51712 { (exit 1); exit 1; }; }; }
51713
51714 ac_builddir=.
51715
51716if test "$ac_dir" != .; then
51717 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51718 # A "../" for each directory in $ac_dir_suffix.
51719 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51720else
51721 ac_dir_suffix= ac_top_builddir=
51722fi
51723
51724case $srcdir in
51725 .) # No --srcdir option. We are building in place.
51726 ac_srcdir=.
51727 if test -z "$ac_top_builddir"; then
51728 ac_top_srcdir=.
51729 else
51730 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51731 fi ;;
51732 [\\/]* | ?:[\\/]* ) # Absolute path.
51733 ac_srcdir=$srcdir$ac_dir_suffix;
51734 ac_top_srcdir=$srcdir ;;
51735 *) # Relative path.
51736 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51737 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51738esac
ac1cb8d3
VS
51739
51740# Do not use `cd foo && pwd` to compute absolute paths, because
51741# the directories may not exist.
51742case `pwd` in
51743.) ac_abs_builddir="$ac_dir";;
51744*)
51745 case "$ac_dir" in
51746 .) ac_abs_builddir=`pwd`;;
51747 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51748 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51749 esac;;
51750esac
51751case $ac_abs_builddir in
51752.) ac_abs_top_builddir=${ac_top_builddir}.;;
51753*)
51754 case ${ac_top_builddir}. in
51755 .) ac_abs_top_builddir=$ac_abs_builddir;;
51756 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51757 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51758 esac;;
51759esac
51760case $ac_abs_builddir in
51761.) ac_abs_srcdir=$ac_srcdir;;
51762*)
51763 case $ac_srcdir in
51764 .) ac_abs_srcdir=$ac_abs_builddir;;
51765 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51766 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51767 esac;;
51768esac
51769case $ac_abs_builddir in
51770.) ac_abs_top_srcdir=$ac_top_srcdir;;
51771*)
51772 case $ac_top_srcdir in
51773 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51774 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51775 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51776 esac;;
51777esac
a848cd7e
SC
51778
51779
51780 case $INSTALL in
51781 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51782 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
51783 esac
51784
a848cd7e
SC
51785 # Let's still pretend it is `configure' which instantiates (i.e., don't
51786 # use $as_me), people would be surprised to read:
51787 # /* config.h. Generated by config.status. */
51788 if test x"$ac_file" = x-; then
51789 configure_input=
51790 else
51791 configure_input="$ac_file. "
51792 fi
51793 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 51794 sed 's,.*/,,'` by configure."
a848cd7e
SC
51795
51796 # First look for the input files in the build tree, otherwise in the
51797 # src tree.
51798 ac_file_inputs=`IFS=:
51799 for f in $ac_file_in; do
51800 case $f in
51801 -) echo $tmp/stdin ;;
51802 [\\/$]*)
ac1cb8d3
VS
51803 # Absolute (can't be DOS-style, as IFS=:)
51804 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51805echo "$as_me: error: cannot find input file: $f" >&2;}
51806 { (exit 1); exit 1; }; }
ac1cb8d3 51807 echo "$f";;
a848cd7e 51808 *) # Relative
ac1cb8d3
VS
51809 if test -f "$f"; then
51810 # Build tree
51811 echo "$f"
51812 elif test -f "$srcdir/$f"; then
51813 # Source tree
51814 echo "$srcdir/$f"
51815 else
51816 # /dev/null tree
51817 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51818echo "$as_me: error: cannot find input file: $f" >&2;}
51819 { (exit 1); exit 1; }; }
ac1cb8d3 51820 fi;;
a848cd7e
SC
51821 esac
51822 done` || { (exit 1); exit 1; }
bb9e79c0
VZ
51823
51824 if test x"$ac_file" != x-; then
51825 { echo "$as_me:$LINENO: creating $ac_file" >&5
51826echo "$as_me: creating $ac_file" >&6;}
51827 rm -f "$ac_file"
51828 fi
a848cd7e
SC
51829_ACEOF
51830cat >>$CONFIG_STATUS <<_ACEOF
51831 sed "$ac_vpsub
51832$extrasub
51833_ACEOF
51834cat >>$CONFIG_STATUS <<\_ACEOF
51835:t
51836/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51837s,@configure_input@,$configure_input,;t t
51838s,@srcdir@,$ac_srcdir,;t t
51839s,@abs_srcdir@,$ac_abs_srcdir,;t t
51840s,@top_srcdir@,$ac_top_srcdir,;t t
51841s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
51842s,@builddir@,$ac_builddir,;t t
51843s,@abs_builddir@,$ac_abs_builddir,;t t
51844s,@top_builddir@,$ac_top_builddir,;t t
51845s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
51846s,@INSTALL@,$ac_INSTALL,;t t
51847" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
51848 rm -f $tmp/stdin
51849 if test x"$ac_file" != x-; then
51850 mv $tmp/out $ac_file
51851 else
51852 cat $tmp/out
51853 rm -f $tmp/out
51854 fi
51855
ceec2216
RL
51856 # Run the commands associated with the file.
51857 case $ac_file in
51858 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
51859 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
51860 esac
a848cd7e
SC
51861done
51862_ACEOF
51863cat >>$CONFIG_STATUS <<\_ACEOF
51864
51865#
51866# CONFIG_HEADER section.
51867#
51868
51869# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
51870# NAME is the cpp macro being defined and VALUE is the value it is being given.
51871#
51872# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
51873ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
51874ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
51875ac_dC=' '
51876ac_dD=',;t'
51877# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 51878ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
51879ac_uB='$,\1#\2define\3'
51880ac_uC=' '
51881ac_uD=',;t'
51882
51883for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
51884 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51885 case $ac_file in
51886 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
51887 cat >$tmp/stdin
51888 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51889 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 51890 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 51891 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51892 * ) ac_file_in=$ac_file.in ;;
51893 esac
51894
51895 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
51896echo "$as_me: creating $ac_file" >&6;}
51897
51898 # First look for the input files in the build tree, otherwise in the
51899 # src tree.
51900 ac_file_inputs=`IFS=:
51901 for f in $ac_file_in; do
51902 case $f in
51903 -) echo $tmp/stdin ;;
51904 [\\/$]*)
ac1cb8d3
VS
51905 # Absolute (can't be DOS-style, as IFS=:)
51906 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51907echo "$as_me: error: cannot find input file: $f" >&2;}
51908 { (exit 1); exit 1; }; }
ac1cb8d3
VS
51909 # Do quote $f, to prevent DOS paths from being IFS'd.
51910 echo "$f";;
a848cd7e 51911 *) # Relative
ac1cb8d3
VS
51912 if test -f "$f"; then
51913 # Build tree
51914 echo "$f"
51915 elif test -f "$srcdir/$f"; then
51916 # Source tree
51917 echo "$srcdir/$f"
51918 else
51919 # /dev/null tree
51920 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51921echo "$as_me: error: cannot find input file: $f" >&2;}
51922 { (exit 1); exit 1; }; }
ac1cb8d3 51923 fi;;
a848cd7e
SC
51924 esac
51925 done` || { (exit 1); exit 1; }
51926 # Remove the trailing spaces.
ac1cb8d3 51927 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
51928
51929_ACEOF
51930
51931# Transform confdefs.h into two sed scripts, `conftest.defines' and
51932# `conftest.undefs', that substitutes the proper values into
51933# config.h.in to produce config.h. The first handles `#define'
51934# templates, and the second `#undef' templates.
51935# And first: Protect against being on the right side of a sed subst in
51936# config.status. Protect against being in an unquoted here document
51937# in config.status.
51938rm -f conftest.defines conftest.undefs
51939# Using a here document instead of a string reduces the quoting nightmare.
51940# Putting comments in sed scripts is not portable.
51941#
51942# `end' is used to avoid that the second main sed command (meant for
51943# 0-ary CPP macros) applies to n-ary macro definitions.
51944# See the Autoconf documentation for `clear'.
51945cat >confdef2sed.sed <<\_ACEOF
51946s/[\\&,]/\\&/g
51947s,[\\$`],\\&,g
51948t clear
51949: clear
ac1cb8d3 51950s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 51951t end
ac1cb8d3 51952s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
51953: end
51954_ACEOF
51955# If some macros were called several times there might be several times
51956# the same #defines, which is useless. Nevertheless, we may not want to
51957# sort them, since we want the *last* AC-DEFINE to be honored.
51958uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
51959sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
51960rm -f confdef2sed.sed
51961
51962# This sed command replaces #undef with comments. This is necessary, for
51963# example, in the case of _POSIX_SOURCE, which is predefined and required
51964# on some systems where configure will not decide to define it.
51965cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 51966s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
51967_ACEOF
51968
51969# Break up conftest.defines because some shells have a limit on the size
51970# of here documents, and old seds have small limits too (100 cmds).
51971echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 51972echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
51973echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
51974echo ' :' >>$CONFIG_STATUS
51975rm -f conftest.tail
51976while grep . conftest.defines >/dev/null
51977do
51978 # Write a limited-size here document to $tmp/defines.sed.
51979 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
51980 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 51981 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
51982 # Work around the forget-to-reset-the-flag bug.
51983 echo 't clr' >>$CONFIG_STATUS
51984 echo ': clr' >>$CONFIG_STATUS
51985 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
51986 echo 'CEOF
51987 sed -f $tmp/defines.sed $tmp/in >$tmp/out
51988 rm -f $tmp/in
51989 mv $tmp/out $tmp/in
51990' >>$CONFIG_STATUS
51991 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
51992 rm -f conftest.defines
51993 mv conftest.tail conftest.defines
51994done
51995rm -f conftest.defines
51996echo ' fi # grep' >>$CONFIG_STATUS
51997echo >>$CONFIG_STATUS
51998
51999# Break up conftest.undefs because some shells have a limit on the size
52000# of here documents, and old seds have small limits too (100 cmds).
52001echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
52002rm -f conftest.tail
52003while grep . conftest.undefs >/dev/null
52004do
52005 # Write a limited-size here document to $tmp/undefs.sed.
52006 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52007 # Speed up: don't consider the non `#undef'
ac1cb8d3 52008 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
52009 # Work around the forget-to-reset-the-flag bug.
52010 echo 't clr' >>$CONFIG_STATUS
52011 echo ': clr' >>$CONFIG_STATUS
52012 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52013 echo 'CEOF
52014 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52015 rm -f $tmp/in
52016 mv $tmp/out $tmp/in
52017' >>$CONFIG_STATUS
52018 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52019 rm -f conftest.undefs
52020 mv conftest.tail conftest.undefs
52021done
52022rm -f conftest.undefs
52023
52024cat >>$CONFIG_STATUS <<\_ACEOF
52025 # Let's still pretend it is `configure' which instantiates (i.e., don't
52026 # use $as_me), people would be surprised to read:
52027 # /* config.h. Generated by config.status. */
52028 if test x"$ac_file" = x-; then
52029 echo "/* Generated by configure. */" >$tmp/config.h
52030 else
52031 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
52032 fi
52033 cat $tmp/in >>$tmp/config.h
52034 rm -f $tmp/in
52035 if test x"$ac_file" != x-; then
52036 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52037 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52038echo "$as_me: $ac_file is unchanged" >&6;}
52039 else
52040 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52041$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52042 X"$ac_file" : 'X\(//\)[^/]' \| \
52043 X"$ac_file" : 'X\(//\)$' \| \
52044 X"$ac_file" : 'X\(/\)' \| \
52045 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52046echo X"$ac_file" |
52047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52048 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52049 /^X\(\/\/\)$/{ s//\1/; q; }
52050 /^X\(\/\).*/{ s//\1/; q; }
52051 s/.*/./; q'`
52052 { if $as_mkdir_p; then
52053 mkdir -p "$ac_dir"
52054 else
52055 as_dir="$ac_dir"
52056 as_dirs=
52057 while test ! -d "$as_dir"; do
52058 as_dirs="$as_dir $as_dirs"
52059 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52060$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52061 X"$as_dir" : 'X\(//\)[^/]' \| \
52062 X"$as_dir" : 'X\(//\)$' \| \
52063 X"$as_dir" : 'X\(/\)' \| \
52064 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52065echo X"$as_dir" |
52066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52068 /^X\(\/\/\)$/{ s//\1/; q; }
52069 /^X\(\/\).*/{ s//\1/; q; }
52070 s/.*/./; q'`
52071 done
52072 test ! -n "$as_dirs" || mkdir $as_dirs
52073 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52074echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52075 { (exit 1); exit 1; }; }; }
52076
52077 rm -f $ac_file
52078 mv $tmp/config.h $ac_file
52079 fi
52080 else
52081 cat $tmp/config.h
52082 rm -f $tmp/config.h
52083 fi
52084done
52085_ACEOF
52086cat >>$CONFIG_STATUS <<\_ACEOF
52087
52088#
52089# CONFIG_COMMANDS section.
52090#
52091for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52092 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52093 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52094 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52095$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52096 X"$ac_dest" : 'X\(//\)[^/]' \| \
52097 X"$ac_dest" : 'X\(//\)$' \| \
52098 X"$ac_dest" : 'X\(/\)' \| \
52099 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52100echo X"$ac_dest" |
52101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52102 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52103 /^X\(\/\/\)$/{ s//\1/; q; }
52104 /^X\(\/\).*/{ s//\1/; q; }
52105 s/.*/./; q'`
ac1cb8d3
VS
52106 { if $as_mkdir_p; then
52107 mkdir -p "$ac_dir"
52108 else
52109 as_dir="$ac_dir"
52110 as_dirs=
52111 while test ! -d "$as_dir"; do
52112 as_dirs="$as_dir $as_dirs"
52113 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52114$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52115 X"$as_dir" : 'X\(//\)[^/]' \| \
52116 X"$as_dir" : 'X\(//\)$' \| \
52117 X"$as_dir" : 'X\(/\)' \| \
52118 . : '\(.\)' 2>/dev/null ||
52119echo X"$as_dir" |
52120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52121 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52122 /^X\(\/\/\)$/{ s//\1/; q; }
52123 /^X\(\/\).*/{ s//\1/; q; }
52124 s/.*/./; q'`
52125 done
52126 test ! -n "$as_dirs" || mkdir $as_dirs
52127 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52128echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52129 { (exit 1); exit 1; }; }; }
52130
a848cd7e
SC
52131 ac_builddir=.
52132
52133if test "$ac_dir" != .; then
52134 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52135 # A "../" for each directory in $ac_dir_suffix.
52136 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52137else
52138 ac_dir_suffix= ac_top_builddir=
52139fi
52140
52141case $srcdir in
52142 .) # No --srcdir option. We are building in place.
52143 ac_srcdir=.
52144 if test -z "$ac_top_builddir"; then
52145 ac_top_srcdir=.
52146 else
52147 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52148 fi ;;
52149 [\\/]* | ?:[\\/]* ) # Absolute path.
52150 ac_srcdir=$srcdir$ac_dir_suffix;
52151 ac_top_srcdir=$srcdir ;;
52152 *) # Relative path.
52153 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52154 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52155esac
ac1cb8d3
VS
52156
52157# Do not use `cd foo && pwd` to compute absolute paths, because
52158# the directories may not exist.
52159case `pwd` in
52160.) ac_abs_builddir="$ac_dir";;
52161*)
52162 case "$ac_dir" in
52163 .) ac_abs_builddir=`pwd`;;
52164 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52165 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52166 esac;;
52167esac
52168case $ac_abs_builddir in
52169.) ac_abs_top_builddir=${ac_top_builddir}.;;
52170*)
52171 case ${ac_top_builddir}. in
52172 .) ac_abs_top_builddir=$ac_abs_builddir;;
52173 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52174 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52175 esac;;
52176esac
52177case $ac_abs_builddir in
52178.) ac_abs_srcdir=$ac_srcdir;;
52179*)
52180 case $ac_srcdir in
52181 .) ac_abs_srcdir=$ac_abs_builddir;;
52182 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52183 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52184 esac;;
52185esac
52186case $ac_abs_builddir in
52187.) ac_abs_top_srcdir=$ac_top_srcdir;;
52188*)
52189 case $ac_top_srcdir in
52190 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52191 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52192 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52193 esac;;
52194esac
a848cd7e
SC
52195
52196
52197 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52198echo "$as_me: executing $ac_dest commands" >&6;}
52199 case $ac_dest in
5c60e845
MW
52200 rcdefs.h )
52201 mkdir -p $outdir &&
52202 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52203 ;;
ceec2216
RL
52204 wx-config ) rm -f wx-config
52205 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52206 ;;
a848cd7e
SC
52207 esac
52208done
52209_ACEOF
52210
52211cat >>$CONFIG_STATUS <<\_ACEOF
52212
52213{ (exit 0); exit 0; }
52214_ACEOF
52215chmod +x $CONFIG_STATUS
52216ac_clean_files=$ac_clean_files_save
52217
52218
52219# configure is writing to config.log, and then calls config.status.
52220# config.status does its own redirection, appending to config.log.
52221# Unfortunately, on DOS this fails, as config.log is still kept open
52222# by configure, so config.status won't be able to write to it; its
52223# output is simply discarded. So we exec the FD to /dev/null,
52224# effectively closing config.log, so it can be properly (re)opened and
52225# appended to by config.status. When coming back to configure, we
52226# need to make the FD available again.
52227if test "$no_create" != yes; then
52228 ac_cs_success=:
52229 ac_config_status_args=
52230 test "$silent" = yes &&
52231 ac_config_status_args="$ac_config_status_args --quiet"
52232 exec 5>/dev/null
52233 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52234 exec 5>>config.log
52235 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52236 # would make configure fail if this is the last instruction.
52237 $ac_cs_success || { (exit 1); exit 1; }
52238fi
52239
52240#
52241# CONFIG_SUBDIRS section.
52242#
52243if test "$no_recursion" != yes; then
52244
52245 # Remove --cache-file and --srcdir arguments so they do not pile up.
52246 ac_sub_configure_args=
52247 ac_prev=
52248 for ac_arg in $ac_configure_args; do
52249 if test -n "$ac_prev"; then
52250 ac_prev=
52251 continue
52252 fi
52253 case $ac_arg in
52254 -cache-file | --cache-file | --cache-fil | --cache-fi \
52255 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52256 ac_prev=cache_file ;;
52257 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52258 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52259 | --c=*)
52260 ;;
52261 --config-cache | -C)
52262 ;;
52263 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52264 ac_prev=srcdir ;;
52265 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52266 ;;
52267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52268 ac_prev=prefix ;;
52269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52270 ;;
52271 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
52272 esac
52273 done
52274
52275 # Always prepend --prefix to ensure using the same prefix
52276 # in subdir configurations.
52277 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
52278
52279 ac_popdir=`pwd`
52280 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52281
52282 # Do not complain, so a configure script can configure whichever
52283 # parts of a large source tree are present.
52284 test -d $srcdir/$ac_dir || continue
52285
52286 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
52287echo "$as_me: configuring in $ac_dir" >&6;}
52288 { if $as_mkdir_p; then
52289 mkdir -p "$ac_dir"
52290 else
52291 as_dir="$ac_dir"
52292 as_dirs=
52293 while test ! -d "$as_dir"; do
52294 as_dirs="$as_dir $as_dirs"
52295 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52296$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52297 X"$as_dir" : 'X\(//\)[^/]' \| \
52298 X"$as_dir" : 'X\(//\)$' \| \
52299 X"$as_dir" : 'X\(/\)' \| \
52300 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52301echo X"$as_dir" |
52302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52303 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52304 /^X\(\/\/\)$/{ s//\1/; q; }
52305 /^X\(\/\).*/{ s//\1/; q; }
52306 s/.*/./; q'`
52307 done
52308 test ! -n "$as_dirs" || mkdir $as_dirs
52309 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52310echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52311 { (exit 1); exit 1; }; }; }
52312
52313 ac_builddir=.
52314
52315if test "$ac_dir" != .; then
52316 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52317 # A "../" for each directory in $ac_dir_suffix.
52318 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52319else
52320 ac_dir_suffix= ac_top_builddir=
52321fi
52322
52323case $srcdir in
52324 .) # No --srcdir option. We are building in place.
52325 ac_srcdir=.
52326 if test -z "$ac_top_builddir"; then
52327 ac_top_srcdir=.
52328 else
52329 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52330 fi ;;
52331 [\\/]* | ?:[\\/]* ) # Absolute path.
52332 ac_srcdir=$srcdir$ac_dir_suffix;
52333 ac_top_srcdir=$srcdir ;;
52334 *) # Relative path.
52335 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52336 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52337esac
ac1cb8d3
VS
52338
52339# Do not use `cd foo && pwd` to compute absolute paths, because
52340# the directories may not exist.
52341case `pwd` in
52342.) ac_abs_builddir="$ac_dir";;
52343*)
52344 case "$ac_dir" in
52345 .) ac_abs_builddir=`pwd`;;
52346 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52347 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52348 esac;;
52349esac
52350case $ac_abs_builddir in
52351.) ac_abs_top_builddir=${ac_top_builddir}.;;
52352*)
52353 case ${ac_top_builddir}. in
52354 .) ac_abs_top_builddir=$ac_abs_builddir;;
52355 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52356 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52357 esac;;
52358esac
52359case $ac_abs_builddir in
52360.) ac_abs_srcdir=$ac_srcdir;;
52361*)
52362 case $ac_srcdir in
52363 .) ac_abs_srcdir=$ac_abs_builddir;;
52364 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52365 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52366 esac;;
52367esac
52368case $ac_abs_builddir in
52369.) ac_abs_top_srcdir=$ac_top_srcdir;;
52370*)
52371 case $ac_top_srcdir in
52372 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52373 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52374 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52375 esac;;
52376esac
a848cd7e
SC
52377
52378
52379 cd $ac_dir
52380
52381 # Check for guested configure; otherwise get Cygnus style configure.
52382 if test -f $ac_srcdir/configure.gnu; then
52383 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
52384 elif test -f $ac_srcdir/configure; then
52385 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
52386 elif test -f $ac_srcdir/configure.in; then
52387 ac_sub_configure=$ac_configure
52388 else
52389 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52390echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52391 ac_sub_configure=
52392 fi
52393
52394 # The recursion is here.
52395 if test -n "$ac_sub_configure"; then
52396 # Make the cache file name correct relative to the subdirectory.
52397 case $cache_file in
52398 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52399 *) # Relative path.
ac1cb8d3 52400 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
52401 esac
52402
52403 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52404echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
52405 # The eval makes quoting arguments work.
52406 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
52407 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
52408 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
52409echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52410 { (exit 1); exit 1; }; }
52411 fi
52412
bb9e79c0 52413 cd "$ac_popdir"
a848cd7e
SC
52414 done
52415fi
52416
52417
52418echo
77ffb593 52419echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 52420echo ""
c2e9ada4 52421echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 52422echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 52423
77ffb593
JS
52424echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
52425echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
52426echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 52427
77ffb593 52428echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
52429echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
52430echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 52431
77ffb593 52432echo " Which libraries should wxWidgets use?"
a848cd7e
SC
52433echo " jpeg ${wxUSE_LIBJPEG-none}"
52434echo " png ${wxUSE_LIBPNG-none}"
52435echo " regex ${wxUSE_REGEX}"
52436echo " tiff ${wxUSE_LIBTIFF-none}"
52437if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52438echo " xpm ${wxUSE_LIBXPM-none}"
52439fi
52440echo " zlib ${wxUSE_ZLIB}"
52441echo " odbc ${wxUSE_ODBC}"
52442echo " expat ${wxUSE_EXPAT}"
52443echo " libmspack ${wxUSE_LIBMSPACK}"
52444echo " sdl ${wxUSE_LIBSDL}"
52445
52446echo ""
52447